/* ======================================================
   PRODUCT PAGE
====================================================== */

.productPage{
    width:min(1600px,92%);
    margin:80px auto 140px;
}



/* ======================================================
   HERO
====================================================== */

.productHero{
    display:grid;
    grid-template-columns:1.25fr .75fr;
    gap:90px;
    align-items:start;
}



/* ======================================================
   GALLERY
====================================================== */

.productGallery{
    position:sticky;
    top:120px;
}

.productMainImage{
    background:#fafafa;
    border:1px solid #ececec;
    overflow:hidden;
    aspect-ratio:1/1;
}

.productMainImage img{
    width:100%;
    height:100%;
    object-fit:contain;
    display:block;
    transition:.45s;
}

.productMainImage:hover img{
    transform:scale(1.04);
}



/* ======================================================
   THUMBNAILS
====================================================== */

.productThumbnails{
    display:flex;
    gap:18px;
    margin-top:24px;
}

.thumbnail{
    width:90px;
    height:90px;
    background:#fff;
    border:1px solid #e9e9e9;
    cursor:pointer;
    transition:.25s;
    padding:8px;
}

.thumbnail:hover{
    border-color:#181818;
}

.thumbnail.active{
    border-color:#181818;
}

.thumbnail img{
    width:100%;
    height:100%;
    object-fit:contain;
}



/* ======================================================
   PRODUCT INFO
====================================================== */

.productInfo{
    display:flex;
    flex-direction:column;
}

.productCollection{
    display:block;
    color:#8d8d8d;
    text-transform:uppercase;
    letter-spacing:5px;
    margin-bottom:18px;
}

.productTitle{
    font-weight:300;
    line-height:1.05;
    margin-bottom:24px;
    color:#111;
}

.productPrice{
    font-weight:500;
    margin-bottom:40px;
    color:#181818;
}

.productDescription{
    color:#666;
    line-height:1.9;
    max-width:520px;
    margin-bottom:55px;
}



/* ======================================================
   BLOCKS
====================================================== */

.productBlock{
    margin-bottom:42px;
}

.productBlock h4{
    font-weight:600;
    text-transform:uppercase;
    letter-spacing:2px;
    margin-bottom:18px;
    color:#111;
}



/* ======================================================
   COLOR OPTIONS
====================================================== */

.colorSwatch{
    width:42px;
    height:42px;
    border:none;
    border-radius:50%;
    cursor:pointer;
    position:relative;
    transition:.25s;
}

.colorSwatch::after{
    content:'';
    position:absolute;
    inset:-5px;
    border:2px solid transparent;
    border-radius:50%;
    transition:.25s;
}

.colorSwatch:hover::after,
.colorSwatch.active::after{
    border-color:var(--color);
}

.colorSwatch:hover{
    transform:scale(1.08);
}

.obsidian{
    --color:#161616;
    background:#161616;
}

.graphite{
    --color:#707070;
    background:#707070;
}

.midnight{
    --color:#1C355E;
    background:#1C355E;
}

.forest{
    --color:#2E4635;
    background:#2E4635;
}

.burgundy{
    --color:#5C1F24;
    background:#5C1F24;
}

.champagne{
    --color:#B89B56;
    background:#B89B56;
}

.bronze{
    --color:#7B5636;
    background:#7B5636;
}

.ivory{
    --color:#F2F0EA;
    background:#F2F0EA;
    border:1px solid #D8D8D8;
}

/* ======================================================
   VARIANT BUTTONS
====================================================== */

.productButtons{
    display:flex;
    flex-wrap:wrap;
    gap:12px;
}

.variantButton{
    min-width:90px;
    height:42px;
    padding:0 18px;
    border:1px solid #D9D9D9;
    background:#fff;
    color:#111;
    border-radius:999px;
    font-size:14px;
    font-weight:500;
    cursor:pointer;
    transition:.25s;
}

.variantButton:hover{
    border-color:#111;
    transform:translateY(-2px);
}

.variantButton.active{
    background:#111;
    border-color:#111;
    color:#fff;
}

.variantButton:disabled{
    opacity:.45;
    cursor:not-allowed;
    transform:none;
}

.productBlock.variantError h4{
    color:#d32f2f;
}

.productBlock.variantError h4::after{
    content:" *";
    color:#d32f2f;
}

.productBlock.variantError .productColors,
.productBlock.variantError .productButtons{
    border:2px solid #d32f2f;
    border-radius:12px;
    padding:10px;
    background:#fff8f8;
}

.productBlock.variantError .colorSwatch,
.productBlock.variantError .variantButton{
    border-color:#d32f2f;
}

.productBlock.variantError::after{
    content:"Please select an option";
    display:block;
    margin-top:8px;
    font-size:13px;
    color:#d32f2f;
}

.productBlock.variantError{
    animation:variantShake .25s ease;
}

@keyframes variantShake{
    0%{
        transform:translateX(0);
    }
    25%{
        transform:translateX(-4px);
    }
    50%{
        transform:translateX(4px);
    }
    75%{
        transform:translateX(-4px);
    }
    100%{
        transform:translateX(0);
    }
}

/* ======================================================
   QUANTITY
====================================================== */

.productQuantity{
    width:180px;
    height:58px;
    border:1px solid #dcdcdc;
    display:flex;
    align-items:center;
    justify-content:space-between;
}

.productQuantity button{
    width:58px;
    height:58px;
    background:none;
    border:none;
    cursor:pointer;
    transition:.25s;
    color:#222;
}

.productQuantity button:hover{
    background:#181818;
    color:#fff;
}

.productQuantity input{
    width:64px;
    border:none;
    background:none;
    text-align:center;
    outline:none;
    appearance:textfield;
    -moz-appearance:textfield;
}

.productQuantity input::-webkit-inner-spin-button,
.productQuantity input::-webkit-outer-spin-button{
    appearance:none;
    margin:0;
}

/* ======================================================
   ADD TO CART + WISHLIST
====================================================== */

.add_to_cart{
    width:100%;
    height:64px;
    border:none;
    background:#181818;
    color:#fff;
    cursor:pointer;
    text-transform:uppercase;
    letter-spacing:2px;
    font-weight:600;
    transition:.3s;
    margin-bottom:45px;
}

.add_to_cart:hover{
    background:#000;
    transform:translateY(-2px);
    box-shadow:0 14px 35px rgba(0,0,0,.12);
}

.add_to_cart:active{
    transform:translateY(0);
}

.add_to_cart.unavailable{
    cursor:not-allowed;
    opacity:.45;
}

.add_to_cart.addToCartLater {
    color: #181818;
    background: #fff;
    border: 1px solid #181818;
    margin-bottom: 14px;
}

.add_to_cart.addToCartLater:hover {
    color: #181818;
    background: #f4f1ec;
    border-color: #181818;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .08);
}

.add_to_cart.addToCartLater:active {
    transform: translateY(0);
    box-shadow: none;
}

.add_to_cart.buy_now {
    color: #fff;
    background: #181818;
}

.wishlistBtn{
    width:100%;
    margin:18px 0;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:12px;
    border:none;
    background:none;
    cursor:pointer;
    color:#666;
    font-size:15px;
    transition:.3s;
}

.wishlistBtn svg{
    width:20px;
    height:20px;
    transition:.3s;
    color:#ff0000;
}

.wishlistBtn:hover{
    color:#181818;
}

.wishlistBtn:hover svg{
    transform:scale(1.12);
}

.wishlistBtn.active{
    color:#B22222;
}

.wishlistBtn.active svg{
    fill:#B22222;
    stroke:#B22222;
}



/* ======================================================
   BENEFITS
====================================================== */

.productBenefits{
    display:flex;
    flex-direction:column;
    gap:18px;
}

.benefit{
    display:flex;
    align-items:flex-start;
    gap:18px;
    padding:22px;
    border:1px solid #ececec;
    background:#fff;
    transition:.3s;
}

.benefit:hover{
    border-color:#d3d3d3;
    transform:translateY(-3px);
}

.benefitIcon{
    width:42px;
    height:42px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:50%;
    background:#181818;
    color:#fff;
    flex-shrink:0;
}

.benefit h5{
    font-weight:600;
    color:#181818;
    margin-bottom:6px;
}

.benefit span{
    display:block;
    color:#777;
    line-height:1.6;
}



/* ======================================================
   STORY
====================================================== */

.productStory{
    max-width:900px;
    margin:170px auto;
    text-align:center;
}

.sectionLabel{
    display:block;
    text-transform:uppercase;
    letter-spacing:5px;
    color:#999;
    margin-bottom:18px;
}

.productStory h2{
    font-weight:300;
    color:#181818;
    line-height:1.15;
    margin-bottom:35px;
}

.productStory p{
    color:#666;
    line-height:2;
}



/* ======================================================
   SECTION HEADINGS
====================================================== */

.sectionHeading{
    text-align:center;
    margin-bottom:70px;
}

.sectionHeading h2{
    font-weight:300;
    color:#181818;
}



/* ======================================================
   SPECIFICATIONS
====================================================== */

.productSpecs{
    margin-bottom:170px;
}

.specGrid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:28px;
}

.specCard{
    border:1px solid #ececec;
    background:#fff;
    padding:38px;
    transition:.3s;
    text-align: center;
}

.specCard:hover{
    border-color:#181818;
    transform:translateY(-4px);
}

.specCard span{
    display:block;
    text-transform:uppercase;
    letter-spacing:2px;
    color:#9b9b9b;
    margin-bottom:18px;
}

.specCard strong{
    display:block;
    color:#181818;
    font-weight:400;
}



/* ======================================================
   SMALL DETAILS
====================================================== */

.productInfo>*:last-child{
    margin-bottom:0;
}

.productBlock:last-of-type{
    margin-bottom:34px;
}

.productTitle,
.productPrice,
.productStory h2,
.sectionHeading h2{
    text-wrap:balance;
}

.productDescription,
.productStory p{
    text-wrap:pretty;
}


/* ======================================================
   FULL WIDTH BANNER
====================================================== */

.productBanner{
    margin:0 auto 180px;
    overflow:hidden;
}

.productBanner img{
    width:100%;
    height:700px;
    display:block;
    object-fit:cover;
    transition:transform .8s ease;
}

.productBanner:hover img{
    transform:scale(1.04);
}



/* ======================================================
   RELATED PRODUCTS
====================================================== */

.relatedSliderWrapper{
    position:relative;
}

.relatedSlider{
    display:flex;
    gap:30px;
    overflow-x:auto;
    scroll-behavior:smooth;
    scrollbar-width:none;
    padding-bottom:10px;
}

.relatedSlider::-webkit-scrollbar{
    display:none;
}

.productCard{
    flex:0 0 calc(25% - 23px);
    display:flex;
    flex-direction:column;
    color:#181818;
    text-decoration:none;
}

.productCardImage{
    aspect-ratio:1/1;
    background:#fafafa;
    border:1px solid #ececec;
    overflow:hidden;
    transition:.3s;
}

.productCardImage img{
    width:100%;
    height:100%;
    object-fit:contain;
    display:block;
    transition:.4s;
}

.productCard:hover .productCardImage{
    border-color:#181818;
    box-shadow:0 18px 45px rgba(0,0,0,.06);
}

.productCard:hover .productCardImage img{
    transform:scale(1.05);
}

.productCardContent{
    padding:24px 6px 0;
}

.productCardCollection{
    display:block;
    font-size:11px;
    letter-spacing:2px;
    text-transform:uppercase;
    color:#999;
    margin-bottom:10px;
}

.productCardTitle{
    font-size:22px;
    font-weight:400;
    color:#181818;
    margin-bottom:12px;
}

.productCardDescription{
    color:#666;
    font-size:15px;
    line-height:1.7;
    margin-bottom:20px;
}

.productCardPrice{
    display:block;
    font-size:20px;
    font-weight:600;
    color:#181818;
}

.relatedArrow{
    position:absolute;
    top:40%;
    transform:translateY(-50%);
    width:52px;
    height:52px;
    border:none;
    border-radius:50%;
    background:#fff;
    cursor:pointer;
    font-size:22px;
    box-shadow:0 10px 25px rgba(0,0,0,.08);
    z-index:10;
    transition:.25s;
}

.relatedArrow:hover{
    background:#181818;
    color:#fff;
}

.relatedArrow.prev{
    left:-25px;
}

.relatedArrow.next{
    right:-25px;
}

@media(max-width:1200px){

.productCard{
    flex:0 0 calc(33.333% - 20px);
}

}

@media(max-width:768px){

.productCard{
    flex:0 0 calc(50% - 15px);
}

}

@media(max-width:550px){

.productCard{
    flex:0 0 100%;
}

}



/* ======================================================
   GLOBAL TRANSITIONS
====================================================== */

.productMainImage,
.thumbnail,
.colorOption,
.specCard,
.benefit,
.add_to_cart,
.wishlistBtn,
.productCardImage{
    border-radius:8px;
}

.productMainImage,
.thumbnail,
.specCard,
.benefit,
.productCardImage{
    transition:
        transform .35s ease,
        border-color .35s ease,
        box-shadow .35s ease;
}

.thumbnail:hover,
.specCard:hover,
.productCard:hover .productCardImage,
.benefit:hover{
    box-shadow:0 18px 45px rgba(0,0,0,.06);
}



/* ======================================================
   IMAGE FADE
====================================================== */

.productMainImage img,
.productCardImage img{
    will-change:transform;
}



/* ======================================================
   TABLET
====================================================== */

@media (max-width:1200px){

.productHero{
    grid-template-columns:1fr;
    gap:70px;
}

.productGallery{
    position:static;
}

.relatedGrid{
    grid-template-columns:repeat(2,1fr);
}

.specGrid{
    grid-template-columns:repeat(2,1fr);
}

}



/* ======================================================
   MOBILE
====================================================== */

@media (max-width:768px){

.productPage{
    width:92%;
    margin:40px auto 90px;
}

.productHero{
    gap:45px;
}

.productThumbnails{
    justify-content:center;
    flex-wrap:wrap;
}

.thumbnail{
    width:72px;
    height:72px;
}

.productCollection{
    letter-spacing:3px;
}

.productTitle{
    margin-bottom:16px;
}

.productPrice{
    margin-bottom:28px;
}

.productDescription{
    line-height:1.8;
    margin-bottom:35px;
}

.colorOption{
    flex:1;
    min-width:140px;
}

.productQuantity{
    width:100%;
}

.productQuantity button{
    width:60px;
}

.add_to_cart,
.wishlistBtn{
    height:58px;
}

.benefit{
    padding:18px;
}

.productStory{
    margin:100px auto;
}

.productStory p{
    line-height:1.8;
}

.productSpecs{
    margin-bottom:100px;
}

.specGrid{
    grid-template-columns:1fr;
    gap:18px;
}

.specCard{
    padding:28px;
}

.productBanner{
    margin-bottom:100px;
}

.productBanner img{
    height:320px;
}

.relatedGrid{
    grid-template-columns:1fr;
    gap:28px;
}

.sectionHeading{
    margin-bottom:45px;
}

}



/* ======================================================
   SMALL MOBILE
====================================================== */

@media (max-width:480px){

.productQuantity{
    height:54px;
}

.productQuantity button{
    height:54px;
}

.productBanner img{
    height:240px;
}

}

/* PRODUCT PAGE REDESIGN */
.productPage{width:min(1540px,92%);margin:56px auto 120px}
.productHero{grid-template-columns:minmax(0,1.18fr) minmax(390px,.82fr);gap:clamp(42px,6vw,104px);align-items:start}
.productGallery{top:96px}
.productMainImage{aspect-ratio:1/1.06;border:0;border-radius:4px;background:radial-gradient(ellipse at 50% 48%,#fff 0%,#f7f6f4 65%,#f1efec 100%);position:relative}
.productMainImage:after{content:"";position:absolute;inset:18px;border:1px solid rgba(25,25,25,.055);pointer-events:none}
.productMainImage img{padding:clamp(18px,4vw,64px);mix-blend-mode:multiply}
.productThumbnails{gap:12px;margin-top:16px;justify-content:flex-start;overflow-x:auto;padding:3px 2px 8px;scrollbar-width:thin}
.thumbnail{flex:0 0 76px;width:76px;height:76px;border-radius:3px;padding:5px;background:#f8f7f5}
.thumbnail.active{border-color:#161616;box-shadow:0 0 0 1px #161616}
.productInfo{padding:clamp(26px,3vw,46px);border:1px solid #e9e7e4;background:#fff;box-shadow:0 20px 60px rgba(24,24,24,.045);position:relative}
.productCollection{font-size:11px;letter-spacing:3px;margin-bottom:16px;color:#8a8176}
.productTitle{font-size:clamp(34px,3.3vw,52px);font-weight:400;line-height:1.08;letter-spacing:-.035em;margin:0 0 18px}
.productPrice{font-size:25px;font-weight:500;margin:0 0 20px;display:flex;align-items:center;gap:12px}
.productPrice:after{content:"";height:1px;background:#e9e7e4;flex:1}
.productDescription{font-size:15px;line-height:1.8;color:#68645f;margin:0 0 25px;max-width:unset}
.productBlock{margin:0 0 24px;padding-top:20px;border-top:1px solid #efeeec}
.productBlock h4{font-size:12px;letter-spacing:1.3px;margin:0 0 14px}
.productColors,.productButtons{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.colorSwatch{width:34px;height:34px}
.variantButton{min-width:80px;height:40px;border-radius:3px;font-size:13px}
.productQuantity{width:154px;height:48px;border-color:#dcd9d5;border-radius:3px}
.productQuantity button{width:48px;height:48px}
.productStock{font-size:12px;color:#6f6b66;margin:-10px 0 18px}
.productPurchaseError{margin:0 0 14px;color:#b42318;font-size:13px}
.add_to_cart{height:56px;border-radius:3px;letter-spacing:1.4px;margin-bottom:12px;font-size:12px}
.add_to_cart.addToCartLater{margin-bottom:10px}
.wishlistBtn{height:auto;margin:14px 0 0;font-size:13px}
.productCoupon{border:1px solid #e8e4df;background:#faf9f7;padding:17px;margin:0 0 18px}
.productCouponHeading{display:flex;align-items:center;gap:12px;margin-bottom:13px}
.productCouponIcon{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:#eeeae5;color:#403a34;flex:none}
.productCouponHeading strong,.productCouponHeading small{display:block}
.productCouponHeading strong{font-size:13px;color:#201f1d;margin-bottom:3px}
.productCouponHeading small{font-size:11px;color:#77716a}
.productCouponForm{display:flex;gap:8px}
.productCouponForm input{min-width:0;flex:1;height:44px;border:1px solid #dedad5;background:#fff;padding:0 12px;font:inherit;font-size:13px;outline:none}
.productCouponForm input:focus{border-color:#24211e;box-shadow:0 0 0 2px rgba(36,33,30,.08)}
.productCouponForm button{height:44px;min-width:82px;border:0;background:#22201e;color:#fff;font:inherit;font-size:12px;font-weight:600;cursor:pointer;padding:0 16px}
.productCouponForm button:disabled{opacity:.55;cursor:wait}
.productCouponMessage{display:none;margin:10px 0 0;font-size:12px;line-height:1.5;color:#8b241d}
.productCouponMessage.visible{display:block}
.productCouponMessage.success{color:#27643b}
.productSpecs{margin:110px 0 120px}
.sectionHeading{margin-bottom:38px}
.sectionLabel{font-size:11px;letter-spacing:3px;margin-bottom:10px}
.sectionHeading h2{font-size:clamp(28px,3vw,40px)}
.specGrid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.specCard{padding:25px 22px;border-radius:3px;background:#faf9f7;text-align:left}
.specCard span{font-size:10px;letter-spacing:1.4px;margin-bottom:12px}
.specCard strong{font-size:15px}
.productBanner{margin-bottom:120px}
.productBanner img{height:clamp(300px,42vw,600px)}
@media(max-width:1000px){.productHero{grid-template-columns:minmax(0,1.1fr) minmax(330px,.9fr);gap:30px}.productInfo{padding:26px}.specGrid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.productPage{width:min(640px,92%);margin:26px auto 72px}.productHero{grid-template-columns:1fr;gap:24px}.productGallery{position:static}.productMainImage{aspect-ratio:1/1}.productMainImage img{padding:24px}.productThumbnails{justify-content:flex-start}.productInfo{padding:24px 20px}.productTitle{font-size:36px}.productDescription{margin-bottom:20px}.productBlock{margin-bottom:20px;padding-top:16px}.productSpecs{margin:76px 0}.specGrid{gap:10px}.specCard{padding:20px 16px}.sectionHeading{margin-bottom:28px}.productBanner{margin-bottom:76px}.productBanner img{height:300px}}
@media(max-width:420px){.productInfo{padding:21px 16px}.productTitle{font-size:31px}.productPrice{font-size:22px}.productCoupon{padding:14px}.productCouponForm button{min-width:72px;padding:0 12px}.specGrid{grid-template-columns:1fr}.specCard{display:flex;justify-content:space-between;align-items:center;gap:18px}.specCard span{margin:0}.add_to_cart{height:54px}}
.visuallyHidden{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}

.productMainImage{
    position:relative;
    overflow:hidden;
}

.productMainImage video#mainProductVideo{
    position:absolute !important;
    inset:0 !important;
    width:100% !important;
    height:100% !important;
    max-width:none !important;
    padding:0 !important;
    object-fit:cover !important;
    object-position:center !important;
    display:block !important;
}

.productMainImage video#mainProductVideo[hidden]{
    display:none !important;
}

.productMainImage img[hidden],
.productMainImage video[hidden] {
    display: none !important;
}

.thumbnail{position:relative;overflow:hidden}
.thumbnailPlayIcon{position:absolute;inset:0;display:grid;place-items:center;color:#fff;background:rgba(0,0,0,.22);font-size:15px;pointer-events:none}
.thumbnailPlayIcon i{width:31px;height:31px;border-radius:50%;display:grid;place-items:center;background:rgba(20,20,20,.72);padding-left:2px}
.productCouponApplied{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px;padding:8px 10px;border:1px solid #cfe2d3;background:#f3f8f3;color:#285d36}
.productCouponApplied[hidden],.productCouponForm[hidden]{display:none!important}
.productCouponAppliedText{display:flex;align-items:center;gap:9px;font-size:13px;line-height:1.4}
.productCouponAppliedText>i{font-size:16px}
.productCouponRemove{flex:none;width:30px;height:30px;border:0;border-radius:50%;background:transparent;color:#5b625d;font-size:24px;line-height:1;cursor:pointer;display:grid;place-items:center}
.productCouponRemove:hover{background:#e2eee3;color:#1d3c25}
.productCouponRemove:disabled{opacity:.5;cursor:wait}
.productCouponMessage{display:none;margin:10px 0 0;font-size:12px;line-height:1.5;color:#8b241d}
.productCouponMessage.visible{display:block}
.productCouponMessage.success{color:#27643b}
@media(max-width:760px){.productMainImage video{padding:24px}}

