/* =========================================================
   URNEST PRODUCT PAGE
   COMPLETE RESPONSIVE CSS
========================================================= */


/* =========================================================
   GLOBAL RESET
========================================================= */

* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}


/* =========================================================
   PRODUCT PAGE CONTAINER
========================================================= */

.container {
    width: 100%;
    max-width: 1450px;

    min-height: 1000px;

    margin: 0 auto;

    padding: 20px;

    border: 2px solid black;

    overflow: hidden;
}


/* =========================================================
   LOGO
========================================================= */

#logo {
    width: 170px;
    height: 70px;

    background-image: url("Untitled\ design\ \(1\).png");

    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}


/* =========================================================
   MAIN PRODUCT LAYOUT
========================================================= */

/*
   DESKTOP:

   LEFT SIDE  = PRODUCT IMAGES
   RIGHT SIDE = PRODUCT INFORMATION
*/

#product {
    width: calc(100% - 40px);

    max-width: 1400px;

    margin: 45px auto;

    padding: 0;

    display: grid !important;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, 1fr) !important;

    column-gap: 60px;

    row-gap: 0;

    align-items: start;

    justify-content: stretch;
}


/* =========================================================
   LEFT SIDE - PRODUCT IMAGES
========================================================= */

#product > #left {
    grid-column: 1 !important;

    grid-row: 1 !important;

    width: 100% !important;

    min-width: 0 !important;

    margin: 0 !important;

    padding: 0 !important;

    display: flex !important;

    flex-direction: column !important;

    align-items: center !important;

    justify-content: flex-start !important;

    align-self: start !important;
}


/* =========================================================
   RIGHT SIDE - PRODUCT INFORMATION
========================================================= */

#product > #right {
    grid-column: 2 !important;

    grid-row: 1 !important;

    width: 100% !important;

    min-width: 0 !important;

    margin: 0 !important;

    padding: 5px 0 0 0 !important;

    display: block !important;

    align-self: start !important;

    color: #000000 !important;

    overflow-wrap: break-word;

    word-wrap: break-word;
}


/* =========================================================
   FORCE ALL NORMAL PRODUCT TEXT BLACK
========================================================= */

#right,
#right *,
#right h1,
#right h2,
#right h3,
#right h4,
#right h5,
#right h6,
#right p,
#right span,
#right div,
#right label,
#right strong,
#right b {
    color: #000000;
}


/* =========================================================
   MAIN PRODUCT IMAGE
========================================================= */

#mainImage {
    width: 100%;

    max-width: 600px;

    height: 560px;
    height: min(560px, 58vh);

    border: none;

    background-color: white;

    display: flex;

    align-items: center;

    justify-content: center;

    overflow: hidden;

    margin: 0 auto;
}


#mainImage img {
    width: 100%;

    height: 100%;

    object-fit: contain;

    display: block;
}


/* =========================================================
   OLD PRODUCT IMAGE CLASS
========================================================= */

.proimage {
    width: 100%;

    max-width: 600px;

    height: 560px;

    border: 2px solid black;

    margin: 25px auto 0;

    background-size: contain;

    background-position: center;

    background-repeat: no-repeat;
}


/* =========================================================
   THUMBNAILS
========================================================= */

#thumbNails {
    width: 100%;

    max-width: 600px;

    display: flex;

    justify-content: flex-start;

    align-items: center;

    flex-wrap: nowrap;

    overflow-x: auto;

    gap: 12px;

    margin-top: 20px;

    padding-bottom: 8px;
}


.thumb {
    width: 75px;

    height: 75px;

    flex: 0 0 75px;

    border: none;

    background-color: white;

    overflow: hidden;
}


.thumb img {
    width: 100%;

    height: 100%;

    object-fit: cover;

    display: block;

    cursor: pointer;
}


/* =========================================================
   PRODUCT TITLE
========================================================= */

#right h1 {
    width: 100%;

    margin: 0 0 20px 0;

    padding: 0;

    font-size: 40px;

    line-height: 1.25;

    font-weight: bold;

    color: #000000 !important;

    word-wrap: break-word;

    overflow-wrap: break-word;
}


/* =========================================================
   PRODUCT TEXT / DESCRIPTION
========================================================= */

#right p {
    width: 100%;

    margin: 10px 0;

    padding: 0;

    font-size: 17px;

    line-height: 1.6;

    color: #000000 !important;

    word-wrap: break-word;

    overflow-wrap: break-word;
}


/* =========================================================
   SKU
========================================================= */

#right .sku {
    font-size: 16px;

    font-weight: 600;

    color: #000000 !important;

    margin: 10px 0;
}


/* =========================================================
   LOGIN TO VIEW PRICE
========================================================= */

#right a {
    color: #000000 !important;

    text-decoration: underline;
}


#right a:visited {
    color: #000000 !important;
}


#right a:hover {
    color: #000000 !important;
}


/* =========================================================
   SIZE
========================================================= */

.size-option {
    width: 100%;

    margin-top: 20px;

    color: #000000 !important;
}


.size-option label {
    display: inline-flex;

    align-items: center;

    gap: 5px;

    margin-right: 20px;

    margin-bottom: 10px;

    font-size: 18px;

    color: #000000 !important;

    cursor: pointer;
}


.size-option input {
    margin-right: 5px;

    cursor: pointer;
}


/* =========================================================
   QUANTITY
========================================================= */

.quantity-box {
    display: flex;

    align-items: center;

    gap: 15px;

    margin-top: 20px;

    color: #000000 !important;
}


.quantity-box button {
    width: 40px;

    height: 40px;

    font-size: 22px;

    cursor: pointer;

    border: 1px solid #999;

    background-color: white;

    color: #000000 !important;

    border-radius: 5px;

    display: flex;

    align-items: center;

    justify-content: center;
}


.quantity-box button:hover {
    background-color: #eeeeee;

    color: #000000 !important;
}


.quantity-box span {
    min-width: 30px;

    text-align: center;

    font-size: 22px;

    font-weight: bold;

    color: #000000 !important;
}


/* =========================================================
   PRICE
========================================================= */

.price {
    font-size: 28px;

    font-weight: bold;

    margin-top: 20px;

    color: #000000 !important;
}


/* =========================================================
   BUTTON GROUP
========================================================= */

.button-group {
    width: 100%;

    display: flex;

    align-items: center;

    flex-wrap: wrap;

    gap: 15px;

    margin-top: 30px;
}


/* =========================================================
   PERSONALIZE BUTTON
========================================================= */

#PERSONALIZE {
    background-color:burlywood;

    color: white !important;

    display: flex;

    justify-content: center;

    align-items: center;

    text-decoration:none !important;

    font-size: 22px;

    font-weight: bold;

    padding: 12px 30px;

    border-radius: 10px;

    min-height: 60px;

    cursor: pointer;

    transition: 0.3s ease;

    opacity: 1 !important;
}


/* Force text inside Personalize button to stay white */

#PERSONALIZE,
#PERSONALIZE span,
#PERSONALIZE a {
    color: #ffffff !important;
}


/* Hover */

#PERSONALIZE:hover {
    background-color:#e3b500 !important;

    color: #ffffff !important;

    opacity: 1 !important;
}


/* Active / Click */

#PERSONALIZE:active {
    background-color: #222222 !important;

    color: #ffffff !important;

    transform: scale(0.98);
}


/* =========================================================
   CART BUTTON
========================================================= */

#CART {
    background-color: gold;

    color: black !important;

    display: flex;

    justify-content: center;

    align-items: center;

    text-decoration: none;

    min-height: 55px;

    padding: 12px 25px;

    border-radius: 10px;

    cursor: pointer;

    transition: 0.3s ease;
}


#CART:hover {
    background-color: #e3b500;

    color: black !important;
}


/* =========================================================
   BUY NOW BUTTON
========================================================= */

#buynow {
    background-color: firebrick;

    color: white !important;

    display: flex;

    justify-content: center;

    align-items: center;

    text-decoration: none;

    min-height: 55px;

    padding: 12px 25px;

    border-radius: 10px;

    cursor: pointer;

    transition: 0.3s ease;
}


#buynow:hover {
    background-color: rgb(168, 17, 17);

    color: white !important;
}


/* =========================================================
   IMAGE MODAL
========================================================= */

#imageModal {
    display: none;

    position: fixed;

    top: 0;

    left: 0;

    width: 100%;

    height: 100%;

    background: rgba(0, 0, 0, 0.9);

    justify-content: center;

    align-items: center;

    padding: 20px;

    z-index: 9999;
}


#modalImage {
    max-width: 90%;

    max-height: 90%;

    object-fit: contain;
}


#closeBtn {
    position: absolute;

    top: 20px;

    right: 35px;

    color: white !important;

    font-size: 45px;

    cursor: pointer;

    line-height: 1;
}


/* =========================================================
   RELATED PRODUCTS
========================================================= */

.related-products {
    width: 90%;

    max-width: 1400px;

    margin: 70px auto;

    padding: 0 10px;
}


.related-products h2 {
    text-align: center;

    font-size: 32px;

    margin-bottom: 35px;

    color: #000000 !important;
}


/* =========================================================
   RELATED PRODUCT GRID
========================================================= */

.product-container {
    width: 100%;

    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 25px;
}


/* =========================================================
   RELATED PRODUCT CARD
========================================================= */

.related-product-card {
    width: 100%;

    min-width: 0;

    background: white;

    border: 1px solid #ddd;

    border-radius: 8px;

    overflow: hidden;

    padding-bottom: 20px;

    transition: 0.3s ease;
}


.related-product-card:hover {
    transform: translateY(-5px);

    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.12);
}


/* =========================================================
   RELATED PRODUCT IMAGE
========================================================= */

.product-image-link {
    display: block;

    width: 100%;

    height: 260px;

    overflow: hidden;

    background: white;
}


.product-image-link img {
    width: 100%;

    height: 100%;

    object-fit: contain;

    display: block;

    transition: transform 0.3s ease;
}


.related-product-card:hover
.product-image-link img {
    transform: scale(1.05);
}


/* =========================================================
   RELATED PRODUCT INFORMATION
========================================================= */

.related-product-info {
    padding: 15px;

    text-align: center;

    color: #000000 !important;
}


/* =========================================================
   RELATED PRODUCT TITLE
========================================================= */

/*
   THIS MAKES THE TITLE BLACK
   EVEN IF ANOTHER CSS FILE MAKES
   LINKS PURPLE/BLUE.
*/

.related-product-info h3 {
    font-size: 18px;

    line-height: 1.4;

    margin: 10px 0;

    font-weight: bold;

    color: #000000 !important;
}


.related-product-info h3 a,
.related-product-info h3 a:link,
.related-product-info h3 a:visited,
.related-product-info h3 a:hover,
.related-product-info h3 a:active {
    color: #000000 !important;

    text-decoration: none !important;
}


/* =========================================================
   RELATED PRODUCT PRICE
========================================================= */

.related-price {
    font-size: 22px;

    font-weight: bold;

    margin: 12px 0;

    color: #b22222 !important;
}


/* =========================================================
   RELATED PRODUCT LOGIN
========================================================= */

.related-login {
    margin: 12px 0;

    color: #000000 !important;
}


.related-login a,
.related-login a:link,
.related-login a:visited,
.related-login a:hover,
.related-login a:active {
    color: #000000 !important;

    text-decoration: underline;
}


/* =========================================================
   VIEW PRODUCT BUTTON
========================================================= */

.view-product-btn,
.view-product-btn:link,
.view-product-btn:visited,
.view-product-btn:hover,
.view-product-btn:active {
    display: inline-block;

    background-color: #287bea;

    color: white !important;

    padding: 10px 18px;

    text-decoration: none !important;

    border-radius: 5px;

    margin-top: 8px;
}


.view-product-btn:hover {
    background-color: #1769d1;

    color: white !important;
}


/* =========================================================
   NO RELATED PRODUCTS
========================================================= */

.no-related-products {
    text-align: center;

    color: #000000 !important;

    font-size: 18px;
}


/* =========================================================
   DESKTOP
   1201px AND ABOVE
========================================================= */

@media (min-width: 1201px) {

    #product {
        width: calc(100% - 40px) !important;

        max-width: 1400px !important;

        margin: 45px auto !important;

        display: grid !important;

        grid-template-columns:
            minmax(0, 1fr)
            minmax(0, 1fr) !important;

        column-gap: 60px !important;

        row-gap: 0 !important;

        align-items: start !important;
    }


    #product > #left {
        grid-column: 1 !important;

        grid-row: 1 !important;

        width: 100% !important;

        align-items: flex-start !important;
    }


    #product > #right {
        grid-column: 2 !important;

        grid-row: 1 !important;

        width: 100% !important;

        padding: 5px 0 0 0 !important;
    }


    #mainImage {
        width: 100%;

        max-width: 600px;

        height: 560px;
        height: min(560px, 58vh);
    }


    #thumbNails {
        width: 100%;

        max-width: 600px;

        justify-content: flex-start;
    }


    #right h1 {
        font-size: 40px;

        color: #000000 !important;
    }


    #right p {
        font-size: 17px;

        color: #000000 !important;
    }


    .related-product-info h3,
    .related-product-info h3 a {
        color: #000000 !important;
    }
}


/* =========================================================
   LAPTOP
   951px - 1200px
========================================================= */

@media (max-width: 1200px) and (min-width: 951px) {

    #product {
        width: 94% !important;

        max-width: 1150px !important;

        margin: 35px auto !important;

        display: grid !important;

        grid-template-columns:
            minmax(0, 1fr)
            minmax(0, 1fr) !important;

        column-gap: 35px !important;

        row-gap: 0 !important;

        align-items: start !important;
    }


    #product > #left {
        grid-column: 1 !important;

        grid-row: 1 !important;

        width: 100% !important;

        align-items: center !important;
    }


    #product > #right {
        grid-column: 2 !important;

        grid-row: 1 !important;

        width: 100% !important;

        padding: 0 !important;
    }


    #mainImage {
        width: 100%;

        max-width: 480px;

        height: 480px;
        height: min(480px, 55vh);
    }


    #thumbNails {
        width: 100%;

        max-width: 480px;

        justify-content: flex-start;
    }


    .thumb {
        width: 65px;

        height: 65px;

        flex: 0 0 65px;
    }


    #right h1 {
        font-size: 32px;

        line-height: 1.25;

        color: #000000 !important;
    }


    #right p {
        font-size: 15px;

        line-height: 1.55;

        color: #000000 !important;
    }


    .size-option {
        margin-top: 18px;
    }


    .size-option label {
        font-size: 16px;

        margin-right: 12px;

        color: #000000 !important;
    }


    .quantity-box {
        margin-top: 15px;

        gap: 12px;
    }


    .price {
        font-size: 25px;

        color: #000000 !important;
    }


    .button-group {
        gap: 10px;

        margin-top: 25px;
    }


    #PERSONALIZE,
    #CART,
    #buynow {
        min-height: 50px;

        font-size: 17px;

        padding: 10px 18px;
    }


    .product-container {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }
}


/* =========================================================
   TABLET PORTRAIT
   601px - 950px

   IMAGE FIRST
   INFORMATION BELOW
========================================================= */

@media (max-width: 950px) and (min-width: 601px) {

    .container {
        min-height: auto;

        padding: 15px;

        border: none;
    }


    #product {
        width: calc(100% - 40px) !important;

        max-width: 850px !important;

        margin: 30px auto !important;

        padding: 0 !important;

        display: flex !important;

        flex-direction: column !important;

        gap: 30px !important;
    }


    #product > #left {
        width: 100% !important;

        order: 1 !important;

        align-items: center !important;
    }


    #product > #right {
        width: 100% !important;

        order: 2 !important;

        max-width: 800px !important;

        margin: 0 auto !important;

        padding: 0 !important;
    }


    #mainImage {
        width: 100%;

        max-width: 500px;

        height: 450px;
    }


    #thumbNails {
        width: 100%;

        max-width: 500px;

        justify-content: flex-start;
    }


    #right h1 {
        font-size: 30px;

        color: #000000 !important;
    }


    #right p {
        font-size: 15px;

        line-height: 1.55;

        color: #000000 !important;
    }


    .product-container {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }


    .related-product-info h3,
    .related-product-info h3 a {
        color: #000000 !important;
    }
}


/* =========================================================
   MOBILE
   600px AND BELOW
========================================================= */

@media (max-width: 600px) {

    .container {
        width: 100%;

        min-height: auto;

        padding: 10px;

        border: none;
    }


    #product {
        width: 100% !important;

        max-width: none !important;

        margin: 20px auto !important;

        padding: 0 12px !important;

        display: flex !important;

        flex-direction: column !important;

        gap: 25px !important;
    }


    #product > #left {
        width: 100% !important;

        order: 1 !important;

        align-items: center !important;
    }


    #product > #right {
        width: 100% !important;

        order: 2 !important;

        padding: 0 !important;

        margin: 0 !important;
    }


    #mainImage {
        width: 100%;

        max-width: 100%;

        height: 350px;

        border-width: 1px;
    }


    #thumbNails {
        width: 100%;

        max-width: 100%;

        justify-content: flex-start;

        flex-wrap: nowrap;

        overflow-x: auto;

        gap: 10px;

        margin-top: 15px;

        padding-bottom: 8px;
    }


    .thumb {
        width: 65px;

        height: 65px;

        flex: 0 0 65px;
    }


    #right h1 {
        font-size: 26px;

        line-height: 1.3;

        color: #000000 !important;
    }


    #right p {
        font-size: 15px;

        line-height: 1.55;

        color: #000000 !important;
    }


    #right .sku {
        color: #000000 !important;
    }


    .size-option label {
        font-size: 16px;

        margin-right: 12px;

        color: #000000 !important;
    }


    .quantity-box {
        gap: 12px;

        margin-top: 15px;
    }


    .quantity-box span {
        color: #000000 !important;
    }


    .price {
        font-size: 24px;

        color: #000000 !important;
    }


    .button-group {
        width: 100%;

        flex-direction: column;

        align-items: stretch;

        gap: 12px;
    }


    #PERSONALIZE,
    #CART,
    #buynow {
        width: 100%;

        min-height: 52px;

        font-size: 18px;

        padding: 12px 15px;
    }


    #PERSONALIZE {
        color: white !important;
    }


    #CART {
        color: black !important;
    }


    #buynow {
        color: white !important;
    }


    .related-products {
        width: 100%;

        padding: 0 15px;

        margin: 50px auto;
    }


    .related-products h2 {
        font-size: 27px;

        color: #000000 !important;
    }


    .product-container {
        grid-template-columns: 1fr;

        gap: 20px;
    }


    .related-product-card {
        max-width: 450px;

        margin: 0 auto;
    }


    .related-product-info h3,
    .related-product-info h3 a,
    .related-product-info h3 a:visited,
    .related-product-info h3 a:hover {
        color: #000000 !important;
    }


    .related-login,
    .related-login a {
        color: #000000 !important;
    }
}


/* =========================================================
   SMALL MOBILE
   400px
========================================================= */

@media (max-width: 400px) {

    #product {
        padding: 0 10px !important;
    }


    #mainImage {
        height: 300px;
    }


    .thumb {
        width: 58px;

        height: 58px;

        flex-basis: 58px;
    }


    #right h1 {
        font-size: 23px;

        color: #000000 !important;
    }


    #right p {
        font-size: 14px;

        color: #000000 !important;
    }


    .size-option label {
        font-size: 15px;

        margin-right: 8px;

        color: #000000 !important;
    }


    .price {
        font-size: 22px;

        color: #000000 !important;
    }


    #PERSONALIZE,
    #CART,
    #buynow {
        font-size: 17px;
    }
}


/* =========================================================
   VERY SMALL MOBILE
   350px
========================================================= */

@media (max-width: 350px) {

    #product {
        padding: 0 8px !important;

        gap: 20px !important;
    }


    #mainImage {
        height: 270px;
    }


    .thumb {
        width: 52px;

        height: 52px;

        flex-basis: 52px;
    }


    #right h1 {
        font-size: 21px;

        color: #000000 !important;
    }


    #right p {
        font-size: 13px;

        color: #000000 !important;
    }


    .quantity-box button {
        width: 36px;

        height: 36px;
    }


    .price {
        font-size: 21px;

        color: #000000 !important;
    }


    #PERSONALIZE,
    #CART,
    #buynow {
        font-size: 16px;
    }

}

#productForm .button-group {
    margin-top: 0;

    justify-content: flex-start !important;

    gap: 10px !important;
}