﻿/* =========================================================
   GENERIC SHOP PRODUCT DETAIL
   ========================================================= */

.shop-product-page {
    width: 100%;
    max-width: 100%;
    color: var(--ui-color-black);
    font-family: SegoeUIVar, "Segoe UI", system-ui, sans-serif;
    overflow-x: hidden;
}


/* =========================================================
   SECTION
   ========================================================= */

.shop-product-section {
    width: 100%;
    min-height: 650px;
    padding: 55px 0 90px;
    background: var(--ui-color-white);
}


/* =========================================================
   CONTAINER
   ========================================================= */

.shop-product-container {
    display: grid;
    /*
     * Information LEFT
     * Image RIGHT
     */
    grid-template-columns: minmax(350px, 1fr) minmax(400px, 1fr);
    align-items: center;
    gap: clamp( 50px, 8vw, 110px );
    width: min( calc(100% - 80px), 900px );
    margin-inline: auto;
}


/* =========================================================
   PRODUCT INFORMATION
   ========================================================= */

.shop-product-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
    text-align: center;
}


/* =========================================================
   TITLE
   ========================================================= */

.shop-product-title {
    margin: 0;
    color: var(--ui-color-gold);
    font-family: Sabon, Georgia, serif;
    font-size: clamp( 28px, 2.6vw, 42px );
    font-weight: 600;
    line-height: 1.05;
}


/* =========================================================
   PRICE
   ========================================================= */

.shop-product-price {
    margin-top: 10px;
    color: var(--ui-color-black);
    font-family: SegoeUIVar, "Segoe UI", system-ui, sans-serif;
    font-size: clamp( 30px, 3vw, 46px );
    font-weight: 700;
    line-height: 1;
}


/* =========================================================
   VARIANT
   ========================================================= */

.shop-product-variant {
    margin-top: 7px;
    color: var(--ui-color-black);
    font-size: var(--ui-font-size-normal);
    font-weight: 500;
    line-height: 1;
    text-align:left;
}


/* =========================================================
   QUANTITY
   ========================================================= */
/*
.shop-product-quantity {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 24px;
    color: var(--ui-color-black);
    font-size: var(--ui-font-size-normal);
    line-height: 1;
}

.shop-product-quantity-label {
    margin-right: 4px;
}

.shop-product-quantity-button {
    width: auto;
    height: auto;
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--ui-color-black);
    font-family: SegoeUIVar, "Segoe UI", system-ui, sans-serif;
    font-size: var(--ui-font-size-normal);
    line-height: 1;
    cursor: pointer;
}

    .shop-product-quantity-button:hover {
        color: var(--ui-color-gold);
    }

.shop-product-quantity-value {
    display: inline-flex;
    justify-content: center;
    min-width: 14px;
    font-size: var(--ui-font-size-normal);
}*/


.shop-product-quantity-button {
    margin: 0 !important;
    padding: 5px 10px !important;
    border: solid 1px white !important;
    outline: 1px !important;
    color: var(--ui-color-white) !important;
    font-family: var(--font-family) !important;
    font-size: var(--ui-font-size-normal) !important;
    line-height: 1 !important;
    cursor: pointer !important;
    background-color: var(--ui-color-gold) !important;
}

    .shop-product-quantity-button:hover {
        color: var(--ui-color-gold) !important;
        background-color: var(--ui-color-white) !important;
        border: solid 1px var(--ui-color-gold) !important;
    }

.shop-product-quantity-value {
    width: 30px !important;
    color: var(--ui-color-black);
    text-align: center !important;
    border: solid 1px #000;
    padding: 3px 5px;
    margin: 0px 10px;
    display: inline-block; 
}


/* =========================================================
   ADD TO CART
   ========================================================= */
.shop-product-add-button {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 170px;
    height: 40px;
    margin-top: 20px;
    padding: 0;
    border: 0;
    outline: 0;
    background-color: var(--ui-color-gold) !important;
    color: var(--ui-color-white) !important;
    font-family: SegoeUIVar, "Segoe UI", system-ui, sans-serif;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    text-align: center;
    cursor: pointer;
    opacity: 1;
    visibility: visible;
    appearance: none;
    -webkit-appearance: none;
}

    .shop-product-add-button:hover {
        background-color: var(--ui-color-black) !important;
    }

/* =========================================================
   PRODUCT VISUAL
   ========================================================= */

.shop-product-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
    min-height: 360px;
}

.shop-product-image {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 420px;
    height: auto;
    object-fit: contain;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (min-width: 768px) and (max-width: 1100px) {

    .shop-product-container {
        width: min( calc(100% - 60px), 850px );
        grid-template-columns: minmax(300px, 1fr) minmax(330px, 1fr);
        gap: 50px;
    }

    .shop-product-visual {
        min-height: 320px;
    }

    .shop-product-image {
        max-height: 360px;
    }

    .shop-product-title {
        font-size: 34px;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {

    .shop-product-section {
        min-height: auto;
        padding: 35px 0 60px;
    }


    .shop-product-container {
        display: flex;
        flex-direction: column;
        gap: 30px;
        width: calc(100% - 32px);
    }


    /* -----------------------------------------------------
       Image FIRST
       ----------------------------------------------------- */

    .shop-product-visual {
        order: 1;
        width: min( 100%, 360px );
        min-height: 280px;
        margin-inline: auto;
    }

    .shop-product-image {
        width: 100%;
        max-width: 100%;
        max-height: 360px;
    }


    /* -----------------------------------------------------
       Information SECOND
       ----------------------------------------------------- */

    .shop-product-info {
        order: 2;
        width: 100%;
    }

    .shop-product-title {
        font-size: 28px;
    }

    .shop-product-price {
        font-size: 34px;
    }

    .shop-product-variant {
        font-size: var(--ui-font-size-normal);
        
    }


    /* -----------------------------------------------------
       Quantity
       ----------------------------------------------------- */

    .shop-product-quantity {
        margin-top: 22px;
    }


    /* -----------------------------------------------------
       Button
       ----------------------------------------------------- */

    .shop-product-add-button {
        width: 140px;
        min-width: 140px;
        min-height: 38px;
        font-size: var(--ui-font-size-normal);
    }
}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 380px) {

    .shop-product-container {
        width: calc(100% - 24px);
    }

    .shop-product-visual {
        min-height: 250px;
    }

    .shop-product-title {
        font-size: 25px;
    }

    .shop-product-price {
        font-size: 31px;
    }

    .shop-product-add-button {
        width: 100%;
        max-width: 180px;
    }
}
