/* style for mobile first, then work your way up to tablet and desktop sizes */

.product-container {
    width: 100%;
}

.page-header {
    flex-flow: row wrap;
    gap: 0.25rem;
}

.next-prev-prod {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.next-prev-prod a {
    color: white;
    font-size: 1.1rem;
    font-weight: bold;
    text-decoration: none;
}

.next-prev-prod a:hover {
    text-decoration: underline;
}

.product-contents {
    width: 100%;
}

.action-container {
    width: 100%;
}

.action-bar {
    display: flex;
    gap: 0.25rem;
    overflow-x: scroll;
    width: 100%;
    padding: 0.25rem 0.5rem;
}

.action-bar a {
    text-decoration: none;
}

.action-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.25rem;
    background-color: inherit;
    border: none;
    height: 5.5rem;
    color: var(--blue);
    font-size: 0.75rem;
    text-decoration: none;
    cursor: pointer;
}

.action-btn:hover {
    background-color: var(--gray);
    transition: background-color 0.3s;
}

.action-btn svg {
    fill: var(--blue);
    width: 2.5rem;
    height: 2.5rem;
}

.action-btn p {
    width: 5.5rem;
}

.image-container {
    width: 100%;
}

.main-image {
    display: flex;
    justify-content: center;
}

.normal-image {
    width: 250px;
    height: 250px;
    cursor: pointer;
}

.extra-images-container {
    width: 100%;
    padding: 0.25rem 0.5rem;
}

.extra-images {
    display: flex;
    gap: 1rem;
    overflow-x: scroll;
}

.mini-image {
    width: 50px;
    height: 50px;
}

.extra-prev, .extra-next {
    display: none;
}

.main-info-container {
    width: 100%;
}

.main-info-container section {
    width: 100%;
    padding: 0.25rem 0.5rem;
}

.main-info-container .price-table-container {
    padding: 0;
}

.item-heading {
    margin-bottom: 0.25rem;
    color: var(--dkblue);
    font-size: 1.5rem;
    font-weight: bold;
}

.item-sub-heading {
    color: var(--black);
    font-size: 1.2rem;
    font-weight: bold;
}

.item-paragraph {
    color: var(--black);
    font-size: 1.1rem;
}

.item-paragraph.warning {
    color: var(--red);
    font-size: 0.9rem;
}

.out-of-stock .item-heading {
    color: var(--red);
}

.price-table-container {
    overflow-x: scroll;
}

.price-table {
    background-color: var(--ltgray);
    border: 1px solid var(--dkgray);
    border-collapse: collapse;
    border-spacing: 0;
    width: 100%;
}

.price-table thead {
    background-color: var(--gray);
    border-bottom: 1px solid var(--dkgray);
}

.price-table tbody tr:nth-child(even) {
    background-color: var(--gray);
}

.table-heading {
    width: 7rem;
    color: var(--black);
    font-size: 1.25rem;
    font-weight: bold;
    text-align: right;
}

.table-price {
    width: 7rem;
    color: var(--black);
    font-size: 1.1rem;
    text-align: right;
}

.table-price.crossed {
    text-decoration: line-through;
}

.table-price.special {
    color: var(--red);
}

.price-table tbody {
    border-bottom: 1px solid var(--gray);
}

.price-table tr {
    display: flex;
    justify-content: space-between;
}

.price-table th, .price-table td {
    padding: 0.25rem 0.5rem;
}

.price-table .table-heading:first-child {
    width: 16rem;
    text-align: left;
}

.price-table tfoot tr {
    justify-content: flex-end;
}

.price-table tfoot tr td {
    color: var(--black);
    font-size: 1rem;
    font-weight: bold;
}

.more-info-container {
    width: 100%;
}

.box {
    width: 100%;
}

.specifications, .printing, .set-up-charges, .full-color-transfers, .shipping {
    width: 100%;
    padding: 0.25rem 0.5rem;
}

.more-info-container .item-paragraph {
    margin-bottom: 0.5rem;
}

.fct-table-container, .shipping-table-container {
    width: 100%;
    overflow-x: auto;
}

.fct-table, .shipping-table {
    background-color: var(--ltgray);
    border: 1px solid var(--dkgray);
    border-collapse: collapse;
    border-spacing: 0;
    width: 100%;
}

.fct-table thead, .shipping-table thead {
    background-color: var(--gray);
    border-bottom: 1px solid var(--dkgray);
}

.fct-table .table-heading, .shipping-table .table-heading {
    width: 12rem;
}

.fct-table th, .fct-table td, .shipping-table th, .shipping-table td {
    padding: 0.25rem 0.5rem;
}

.fct-table tbody td, .shipping-table tbody td {
    width: 12rem;
    color: var(--black);
    font-size: 1.1rem;
    text-align: right;
}

.fct-table tr, .shipping-table tr {
    display: flex;
    justify-content: space-between;
}

.fct-table tbody tr:nth-child(even), .shipping-table tbody tr:nth-child(even) {
    background-color: var(--gray);
}

.bottom-images {
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
    gap: 0.5rem;
}

.bottom-image-normal {
    width: 100%;
    cursor: pointer;
}

@media (min-width: 401px) {
    .bottom-image-normal {
        width: 400px;
    }
}

.bottom-image-large {
    width: 100%;
}

@media (min-width: 601px) {
    .bottom-image-large {
        width: 600px;
    }
}

.item-modal-container {
    position: fixed;
    top: 0;
    left: 0;
    display: none;
    background-color: rgba(0, 0, 0, 0.75);
    width: 100%;
    height: 100%;
    z-index: 99999;
}

.item-modal-container.open {
    display: block;
}

.item-modal {
    position: relative;
    top: 0;
    background-color: white;
    border-radius: 0.75rem;
    width: 100%;
    max-height: 100%;
    overflow-y: auto;
    margin: auto;
}

.modal-contents {
    display: flex;
    justify-content: center;
    flex-flow: row wrap;
    gap: 0.5rem;
    padding: 0.5rem;
}

.modal-header {
    background: linear-gradient(0deg, var(--blue), var(--ltblue));
    border-bottom: 3px solid var(--dkgray);
    border-radius: 0.75rem 0.75rem 0 0;
    padding: 0.25rem;
}

.modal-heading {
    color: white;
    font-size: 1.25rem;
    text-align: center;
}

.modal-footer {
    display: flex;
    justify-content: center;
    padding: 0.25rem;
}

.hi-res-image {
    width: 100%;
    height: 100%;
}

@media (min-width: 501px) {
    .hi-res-image {
        width: 500px;
        height: 500px;
    }
}

.hi-res-extra-images-container {
    width: 100%;
}

.popup-form {
    display: flex;
    flex-flow: row wrap;
    gap: 0.5rem;
}

.form-divider {
    display: flex;
    flex-flow: row wrap;
    justify-content: space-between;
    width: 100%;
}

.popup-form .form-divider:last-child {
    justify-content: center;
    gap: 1.5rem;
}

.form-divider label, .form-divider input, .form-divider textarea {
    width: 100%;
    resize: none;
    color: var(--black);
    font-size: 1.2rem;
}

.form-divider label {
    font-weight: bold;
}

.required {
    color: var(--red);
    font-size: 1rem;
}

.form-divider input, .form-divider textarea {
    padding: 0.25rem;
}

.form-divider button, .close-modal-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--blue);
    border: none;
    border-radius: 0.25rem;
    width: 6rem;
    padding: 0.5rem 0.75rem;
    color: white;
    font-size: 1.25rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.form-divider button:hover, .close-modal-btn:hover {
    background-color: var(--dkblue);
    transition: background-color 0.3s;
}

.half-divider {
    width: 48%;
}

/* 768px x 1024 desktop screens */

@media screen and (min-width: 768px) {
    .image-container {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .extra-images-container {
        width: 90%;
    }

    .table-heading {
        font-size: 1.1rem;
    }

    .price-table .table-heading:first-child {
        width: 14rem;
    }

    .item-modal {
        width: 600px;
        /* height: 600px; */
    }
}

/* 1024 tablet screens */

@media screen and (min-width: 1024px) {
    .action-bar {
        justify-content: space-between;
        gap: 0;
    }

    .bottom-images {
        flex-flow: row nowrap;
        justify-content: flex-start;
    }
}

@media screen and (min-width: 1280px) {
    .page-header {
        justify-content: space-between;
        flex-flow: row nowrap;
        gap: 0;
    }

    .next-prev-prod {
        gap: 1rem;
        width: auto;
        padding-right: 0.5rem;
    }

    .next-prev-prod a {
        font-size: 1rem;
    }

    .product-container {
        width: 79%;
    }

    .product-contents {
        display: flex;
        flex-flow: row wrap;
        gap: 0.25rem;
        border-left: 1px solid var(--dkgray);
        border-right: 1px solid var(--dkgray);
        border-bottom: 1px solid var(--dkgray);
        border-radius: 0 0 0.75rem 0.75rem;
        padding: 0.25rem;
    }

    .action-bar {
        overflow-x: hidden;
        width: 100%;
        padding: 0;
    }

    .action-btn {
        gap: 0.25rem;
        height: 4.25rem;
        font-size: 0.6rem;
    }

    .action-btn svg {
        width: 2rem;
        height: 2rem;
    }

    .action-btn p {
        width: 4.25rem;
    }

    .image-container {
        width: calc(30% - 0.25rem);
    }

    .extra-images-container {
        position: relative;
        display: flex;
        justify-content: center;
        width: 100%;
    }

    .extra-images {
        width: 80%;
        overflow-x: hidden;
    }

    .extra-prev, .extra-next {
        position: absolute;
        top: 50%;
        left: 0;
        transform: translateY(-50%);
        display: flex;
        justify-content: center;
        align-items: center;
        background-color: var(--gray);
        border: none;
        border-radius: 50%;
        opacity: 0.5;
        cursor: pointer;
        transition: opacity 0.3s;
    }

    .extra-prev:hover, .extra-next:hover {
        opacity: 0.75;
        transition: opacity 0.3s;
    }

    .extra-next {
        left: auto;
        right: 0;
    }

    .main-info-container {
        width: calc(70% - 0.25rem);
    }
    
    .item-heading {
        font-size: 1.25rem;
    }
    .item-paragraph {
        font-size: 1rem;
    }

    .price-table-container {
        overflow-x: hidden;
    }

    .table-heading {
        width: 4rem;
        font-size: 1rem;
    }

    .table-price {
        width: 4rem;
        font-size: 1rem;
    }

    .price-table .table-heading:first-child {
        width: 13rem;
    }

    .more-info-container {
        display: flex;
        flex-flow: row wrap;
    }

    .box {
        width: calc(50% - 0.5rem);
    }

    .specifications, .printing, .set-up-charges, .full-color-transfers, .shipping {
        width: 100%;
    }

    .item-sub-heading {
        font-size: 1rem;
    }

    .fct-table-container, .shipping-table-container {
        width: 100%;
        overflow-x: hidden;
    }

    .fct-table th, .fct-table td, .shipping-table th, .shipping-table td {
        padding: 0.25rem;
    }

    .fct-table .table-heading, .fct-table tbody td {
        width: 8.5rem;
        font-size: 0.9rem;
    }

    .shipping-table .table-heading, .shipping-table tbody td {
        width: 7rem;
        font-size: 0.9rem;
    }

    .item-modal-container {
        background-color: rgba(0, 0, 0, 0.5);
    }

    .item-modal {
        top: 2.5rem;
        width: auto;
        height: auto;
        max-width: 625px;
        max-height: 625px;
    }

    .modal-header {
        padding: 0.25rem;
    }

    .modal-contents {
        flex-flow: row nowrap;
        gap: 0.25rem;
        padding: 1rem;
    }

    .hi-res-extra-images-container .extra-images {
        flex-flow: row wrap;
        gap: 0.25rem;
        width: calc(100px + 0.25rem);
    }

    .form-divider label {
        font-size: 1rem;
    }

    .form-divider input, .form-divider textarea {
        font-size: 0.9rem;
    }

    .form-divider button {
        padding: 0.5rem 0.75rem;
        font-size: 1.2rem;
    }
}

@media screen and (min-width: 1366px) {
    .fct-table .table-heading, .fct-table tbody td {
        width: 10rem;
        font-size: 0.9rem;
    }

    .shipping-table .table-heading, .shipping-table tbody td {
        width: 7.25rem;
        font-size: 0.9rem;
    }
}

@media screen and (min-width: 1440px) {
}

@media screen and (min-width: 1536px) {
    .product-container {
        width: 81%;
    }
}

@media screen and (min-width: 1600px) {
}

@media screen and (min-width: 1920px) {
    .next-prev-prod a {
        font-size: 1.1rem;
    }
}