:root{
    --cream:#F7F3EC;
    --charcoal:#0B1F4A;
    --amber:#F0B23A;
    --line:#E2DCCF;
}

*{margin:0;padding:0;box-sizing:border-box}

body{
    background:radial-gradient(circle at top left, rgba(240,178,58,0.16), transparent 24%), linear-gradient(135deg,#f9f4eb 0%,#f6efe3 100%);
    color:var(--charcoal);
    font-family:'Inter',sans-serif;
    overflow-x:hidden;
}

.gallery img,
.thumbnails img,
.main-image img,
.cart-drawer-item img{
    display:block;
    width:100%;
    height:auto;
    object-fit:cover;
}

.product-header{
    height:80px;
    padding:0 6vw;
    display:flex;
    justify-content:space-between;
    align-items:center;
    background:#0B1F4A;
}

.logo{
    display:flex;
    align-items:center;
    gap:12px;
    text-decoration:none;
    color:#fff;
    font-family:'Fraunces',serif;
    font-weight:700;
}

.logo img{
    width:48px;
    height:48px;
    border-radius:50%;
}

.gold{color:var(--amber);}

.cart-btn{
    display:flex;
    align-items:center;
    justify-content:center;
    position:absolute;
    right:5vw;
    width:44px;
    height:44px;
    border-radius:14px;
    background:rgba(255,255,255,.12);
    color:#fff;
    text-decoration:none;
    border:none;
    cursor:pointer;
}

#cart-count{
    position:absolute;
    top:-5px;
    right:-5px;
    width:22px;
    height:22px;
    border-radius:50%;
    background:#fff;
    color:var(--charcoal);
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:.75rem;
    font-weight:700;
}

.cart-drawer-backdrop{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.45);
    backdrop-filter:blur(6px);
    opacity:0;
    visibility:hidden;
    transition:opacity .35s ease, visibility .35s ease;
    z-index:110;
}

.cart-drawer-backdrop.is-open{
    opacity:1;
    visibility:visible;
}

.cart-drawer{
    position:fixed;
    top:0;
    right:0;
    height:100vh;
    width:min(420px,100%);
    background:linear-gradient(180deg,#fff 0%,#f9f6ef 100%);
    box-shadow:-20px 0 60px rgba(0,0,0,.22);
    transform:translateX(100%);
    transition:transform .35s ease;
    z-index:111;
    display:flex;
    flex-direction:column;
    overflow:hidden;
}

.cart-drawer.is-open{
    transform:translateX(0);
}

.cart-drawer-header{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:12px;
    padding:24px 24px 18px;
    border-bottom:1px solid rgba(11,31,74,.08);
    background:rgba(255,255,255,.92);
    backdrop-filter:blur(10px);
}

.cart-drawer-kicker{
    font-size:.72rem;
    letter-spacing:.22em;
    text-transform:uppercase;
    color:var(--amber);
    font-weight:700;
    margin-bottom:4px;
}

.cart-drawer-header h2{
    font-size:1.35rem;
    color:var(--charcoal);
    margin:0 0 4px;
}

.cart-drawer-subtitle{
    font-size:.95rem;
    color:#5f6675;
}

.cart-drawer-close{
    width:42px;
    height:42px;
    border:none;
    border-radius:50%;
    background:#f3efe7;
    color:var(--charcoal);
    font-size:1.45rem;
    cursor:pointer;
    display:grid;
    place-items:center;
}

.cart-drawer-body{
    flex:1;
    overflow-y:auto;
    padding:16px 16px 8px;
}

.cart-drawer-items{display:flex;flex-direction:column;gap:12px;}

.cart-drawer-item{
    display:flex;
    gap:14px;
    padding:14px;
    border:1px solid rgba(11,31,74,.08);
    background:#fff;
    border-radius:18px;
    box-shadow:0 16px 34px rgba(0,0,0,.05);
    opacity:0;
    transform:translateX(20px);
    transition:opacity .35s ease, transform .35s ease;
}

.cart-drawer-item.is-visible{opacity:1;transform:translateX(0);}

.cart-drawer-item img{width:84px;height:84px;border-radius:14px;object-fit:cover;flex-shrink:0;}
.cart-drawer-item-content{display:flex;flex-direction:column;gap:6px;flex:1;min-width:0;}
.cart-drawer-item-content h3{font-size:1rem;color:var(--charcoal);margin:0;}
.cart-drawer-meta{font-size:.84rem;color:#67707e;margin:0;}
.cart-drawer-price{font-size:1rem;font-weight:700;color:var(--amber);margin-top:2px;}
.cart-drawer-actions{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:4px;}
.cart-drawer-qty{display:inline-flex;align-items:center;border:1px solid rgba(11,31,74,.1);border-radius:999px;overflow:hidden;background:#f7f3ec;}
.cart-drawer-qty-btn{width:32px;height:32px;border:none;background:transparent;color:var(--charcoal);font-size:1rem;cursor:pointer;}
.cart-drawer-qty span{min-width:26px;text-align:center;font-weight:700;color:var(--charcoal);}
.cart-drawer-remove{border:none;background:transparent;color:#b75350;font-weight:600;cursor:pointer;padding:0;}
.cart-drawer-empty{padding:40px 18px;text-align:center;border:1px dashed rgba(11,31,74,.16);border-radius:20px;background:rgba(255,255,255,.65);}
.cart-drawer-empty-icon{width:58px;height:58px;border-radius:50%;display:grid;place-items:center;margin:0 auto 12px;background:rgba(240,178,58,.16);color:var(--amber);font-size:1.25rem;}
.cart-drawer-empty h3{font-size:1.1rem;margin-bottom:6px;color:var(--charcoal);} .cart-drawer-empty p{color:#68738a;line-height:1.6;font-size:.95rem;}
.cart-drawer-footer{padding:18px 18px 22px;border-top:1px solid rgba(11,31,74,.08);background:rgba(255,255,255,.94);backdrop-filter:blur(10px);} 
.cart-drawer-summary{display:flex;flex-direction:column;gap:8px;margin-bottom:14px;}
.cart-drawer-summary-row{display:flex;justify-content:space-between;align-items:center;color:#5f6675;font-size:.95rem;}
.cart-drawer-summary-row.total{font-size:1.05rem;color:var(--charcoal);font-weight:700;padding-top:6px;border-top:1px solid rgba(11,31,74,.08);} 
.cart-whatsapp-btn,.cart-continue-btn{display:block;width:100%;border:none;border-radius:999px;padding:13px 16px;text-align:center;text-decoration:none;font-weight:700;cursor:pointer;transition:transform .2s ease, box-shadow .2s ease, background .2s ease;}
.cart-whatsapp-btn{background:linear-gradient(135deg,#25D366 0%,#1fa855 100%);color:#fff;box-shadow:0 12px 24px rgba(37,211,102,.2);margin-bottom:10px;}
.cart-continue-btn{background:#f3efe7;color:var(--charcoal);border:1px solid rgba(11,31,74,.08);} 
.cart-whatsapp-btn.is-disabled{opacity:.55;pointer-events:none;}
body.cart-open{overflow:hidden;}

@media (max-width:768px){
    .cart-drawer{width:100%;border-radius:24px 24px 0 0;top:auto;bottom:0;height:min(90vh,100%);transform:translateY(100%);} 
    .cart-drawer.is-open{transform:translateY(0);} 
    .cart-drawer-header{padding:20px 18px 14px;} 
    .cart-drawer-body{padding:12px 12px 8px;} 
    .cart-drawer-footer{padding:16px 16px 20px;} 
    .cart-drawer-item{padding:12px;} 
    .cart-drawer-item img{width:72px;height:72px;} 
}

.product-container{
    max-width:1500px;
    width:95%;
    margin:24px auto 48px;
    padding:0;
    display:grid;
    grid-template-columns:2fr 1fr;
    gap:32px;
    align-items:start;
}

.reviews-carousel{width:100%;background:transparent;padding:20px 0 24px}
.carousel-center{max-width:1400px;margin:0 auto;padding:0 12px;position:relative}
.carousel-head{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:18px}
.carousel-head .eyebrow{color:var(--amber);margin:0}

.carousel-viewport{position:relative;overflow:hidden}
.carousel-track{display:flex;gap:20px;transition:transform .5s cubic-bezier(.22,.9,.32,1);will-change:transform}
.carousel-slide{flex:0 0 auto;display:flex;justify-content:center}

.testimonial-card{background:linear-gradient(145deg,#fffdf8 0%,#f7ebdc 100%);border:1px solid rgba(11,31,74,0.06);border-radius:20px;padding:28px;width:520px;box-shadow:0 18px 40px rgba(11,31,74,0.06);display:flex;flex-direction:column;justify-content:space-between;height:100%}
.testimonial-card .stars{color:var(--amber);margin-bottom:12px}
.testimonial-card p{color:#3a3a36;line-height:1.6;margin-bottom:14px}
.testimonial-name{font-weight:700;color:var(--charcoal);}
.testimonial-loc{font-size:0.85rem;color:#8a8a86}

.carousel-prev,.carousel-next{position:absolute;top:50%;transform:translateY(-50%);width:52px;height:52px;border-radius:50%;display:grid;place-items:center;background:var(--charcoal);color:#fff;border:none;cursor:pointer;box-shadow:0 10px 24px rgba(11,31,74,0.12);z-index:10}
.carousel-prev{left:-26px}
.carousel-next{right:-26px}
.carousel-prev:focus,.carousel-next:focus{outline:2px solid rgba(240,178,58,.25)}

.carousel-dots{display:flex;justify-content:center;gap:8px;margin-top:18px}
.carousel-dots button{width:10px;height:10px;border-radius:50%;background:#ddd;border:none;cursor:pointer}
.carousel-dots button.is-active{background:var(--charcoal)}

@media (max-width:1100px){
    .carousel-slide{flex:0 0 70%}
    .testimonial-card{width:480px}
    .carousel-prev{left:12px}
    .carousel-next{right:12px}
}

@media (max-width:900px){
    .carousel-slide{flex:0 0 100%}
    .testimonial-card{width:100%;max-width:720px}
    .carousel-prev{left:8px}
    .carousel-next{right:8px}
}

.gallery{
    width:100%;
    max-width:none;
    margin:0;
    padding:0;
    display:flex;
    flex-direction:column;
    gap:12px;
    position:relative;
}

.gallery::before{
    content:"";
    position:absolute;
    inset:-12px;
    border-radius:36px;
    background:linear-gradient(135deg,rgba(240,178,58,.16),rgba(11,31,74,.06));
    z-index:-1;
}

.main-image{
    width:100%;
    aspect-ratio:4 / 3;
    min-height:280px;
    max-height:700px;
    border-radius:28px;
    overflow:hidden;
    background:#fff;
    border:1px solid rgba(11,31,74,.08);
    box-shadow:0 28px 70px rgba(11,31,74,.12);
    position:relative;
    isolation:isolate;
}

.main-image::after{
    content:"";
    position:absolute;
    inset:0;
    background:linear-gradient(135deg,rgba(255,255,255,.18) 0%,transparent 42%,rgba(11,31,74,.1) 100%);
    pointer-events:none;
    z-index:3;
}

.main-image img{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
    opacity:1;
    transform:scale(1);
    transition:opacity .8s cubic-bezier(.22,.9,.32,1), transform .8s cubic-bezier(.22,.9,.32,1);
}

.main-image:hover img{transform:scale(1.025);}

.thumbnails{
    display:grid;
    grid-template-columns:repeat(auto-fit, minmax(90px, 1fr));
    gap:12px;
    margin-top:16px;
    width:100%;
    max-width:none;
}

.thumbnails img{
    width:100%;
    aspect-ratio:1 / 1;
    height:auto;
    border-radius:18px;
    object-fit:cover;
    display:block;
    cursor:pointer;
    border:2px solid #fff;
    box-sizing:border-box;
    transition:transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.thumbnails img:not(.selected):hover{
    transform:translateY(-4px);
}

.thumbnails img.selected{
    border:3px solid #E8A93B;
    transform:scale(1.05);
    box-shadow:0 8px 20px rgba(232,169,59,.25);
}

.thumbnails img{
    box-shadow:0 10px 24px rgba(11,31,74,.08);
}

@media (max-width:1200px){
    .thumbnails{grid-template-columns:repeat(auto-fit, minmax(80px, 1fr));}
}

@media (max-width:900px){
    .thumbnails{grid-template-columns:repeat(auto-fit, minmax(72px, 1fr));}
}

@media (max-width:600px){
    .thumbnails{grid-template-columns:repeat(4, minmax(0, 1fr));}
}

.product-info{
    display:flex;
    flex-direction:column;
    gap:12px;
    padding:14px 16px 16px;
    border-radius:28px;
    background:rgba(255,255,255,.66);
    backdrop-filter:blur(12px);
    box-shadow:0 20px 50px rgba(11,31,74,.08);
    border:1px solid rgba(255,255,255,.7);
}

.category{
    color:var(--amber);
    font-weight:700;
    letter-spacing:2px;
    text-transform:uppercase;
}

.product-info h1{
    font-family:'Fraunces',serif;
    font-size:clamp(2.1rem,3vw,3.1rem);
    margin:0;
    line-height:1.08;
    letter-spacing:-0.02em;
}

.product-rating{
    display:flex;
    align-items:center;
    gap:10px;
    color:var(--amber);
    font-weight:700;
}

.product-rating span{
    color:#666;
    font-size:.9rem;
}

#description{
    margin:0;
    line-height:1.8;
    color:#545b68;
    font-size:1rem;
}

.price{margin:4px 0 2px;}

#price{
    font-family:'Fraunces',serif;
    font-size:2.35rem;
    color:var(--charcoal);
}

.trust-badges{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
}

.trust-badge{
    background:rgba(255,255,255,.88);
    border:1px solid rgba(11,31,74,.08);
    border-radius:999px;
    padding:10px 14px;
    font-size:.85rem;
    font-weight:600;
    color:#334054;
    box-shadow:0 6px 16px rgba(11,31,74,.04);
}

.option{display:flex;flex-direction:column;gap:10px;}

.option label{
    display:block;
    font-weight:700;
}

.comfort-selector{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
}

.comfort-btn{
    border:1px solid var(--line);
    background:#fff;
    color:var(--charcoal);
    padding:12px 18px;
    border-radius:999px;
    font-weight:700;
    cursor:pointer;
    transition:transform .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.comfort-btn:hover{transform:translateY(-1px);border-color:var(--amber);box-shadow:0 8px 18px rgba(11,31,74,.06);} 
.comfort-btn.active{background:var(--amber);border-color:var(--amber);color:#0c1b3f;box-shadow:0 10px 22px rgba(240,178,58,.2);}

#size-select{
    width:100%;
    padding:14px 16px;
    border-radius:16px;
    border:1px solid var(--line);
    background:#fff;
    color:var(--charcoal);
}

.quantity{
    display:inline-flex;
    align-items:center;
    gap:12px;
    width:fit-content;
    padding:8px;
    border:1px solid var(--line);
    border-radius:999px;
    background:#fff;
}

.quantity button{
    width:42px;
    height:42px;
    border:none;
    border-radius:50%;
    background:var(--charcoal);
    color:#fff;
    cursor:pointer;
    font-size:1.1rem;
}

.quantity span{
    min-width:24px;
    text-align:center;
    font-weight:700;
    color:var(--charcoal);
}

.whatsapp-btn,
#add-cart{
    width:100%;
    display:flex;
    justify-content:center;
    align-items:center;
    padding:18px;
    border:none;
    border-radius:16px;
    text-decoration:none;
    font-weight:700;
    cursor:pointer;
    transition:transform .2s ease, box-shadow .2s ease;
}

.whatsapp-btn{
    background:linear-gradient(135deg,#25D366 0%,#1ea952 100%);
    color:#fff;
    box-shadow:0 14px 30px rgba(37,211,102,.23);
    margin-bottom:0;
}

#add-cart{
    background:var(--charcoal);
    color:#fff;
    box-shadow:0 14px 30px rgba(11,31,74,.16);
}

.whatsapp-btn:hover,
#add-cart:hover{transform:translateY(-2px);}

.benefits{display:grid;gap:12px;}

.benefit{
    background:#fff;
    border:1px solid var(--line);
    padding:14px 16px;
    border-radius:16px;
    display:flex;
    align-items:center;
    gap:10px;
    color:#334054;
}

.benefit i{color:var(--amber);}

.reviews-section{margin-top:8px;}

.section-head{max-width:680px;margin:0 0 32px;}
.section-head .eyebrow{color:var(--amber);} 
.section-head .eyebrow::before{background:var(--amber);} 
.section-head h2{font-size:clamp(2rem,4vw,2.8rem);margin:0 0 16px;line-height:1.2;color:var(--charcoal);} 
.section-head p{color:#4A4A45;font-size:1.05rem;line-height:1.75;margin:0;}

.testimonials{
    display:grid;
    grid-template-columns:repeat(3, minmax(0, 1fr));
    gap:28px;
}

/* Make reviews span the full product container and center the testimonial grid */
.product-container > .reviews-section{
    grid-column: 1 / -1;
    padding-top:28px;
}

.reviews-section .testimonials{
    max-width:1100px;
    margin:0 auto;
    align-items:stretch; /* ensure grid items stretch to equal height */
}

.testimonial-card{display:flex;flex-direction:column;justify-content:space-between;height:100%;}

.testimonial-card{
    background:#fff;
    border:1px solid var(--line);
    border-radius:18px;
    padding:30px;
    display:flex;
    flex-direction:column;
    height:100%;
    box-shadow:0 10px 24px rgba(0,0,0,0.04);
    transition:transform .25s ease, box-shadow .25s ease;
}

.testimonial-card:hover{
    transform:translateY(-4px);
    box-shadow:0 16px 30px rgba(11,31,74,.08);
}

.stars{color:var(--amber);font-size:1rem;margin-bottom:14px;letter-spacing:2px;}
.testimonial-card p{font-size:0.96rem;line-height:1.7;color:#3a3a36;margin:0 0 18px;}
.testimonial-name{font-weight:700;font-size:0.92rem;color:var(--charcoal);} 
.testimonial-loc{font-size:0.8rem;color:#999;}

.product-container{animation:fadeUp .7s ease both;}

@keyframes fadeUp{
    from{opacity:0;transform:translateY(20px);} 
    to{opacity:1;transform:translateY(0);} 
}

@media (max-width:1024px){
    .product-container{grid-template-columns:minmax(0,0.55fr) minmax(280px,0.45fr);gap:48px;}
    .main-image{min-height:320px;}
}

@media (max-width:900px){
    .product-container{grid-template-columns:1fr;gap:32px;}
    .testimonials{grid-template-columns:repeat(2, minmax(0, 1fr));}
}

@media (max-width:768px){
    .product-container{
        display:flex;
        flex-direction:column;
        width:100%;
        max-width:100%;
        margin:0 auto 56px;
        padding:0 16px;
        gap:24px;
        box-sizing:border-box;
    }

    .gallery,
    .product-info,
    .reviews-carousel,
    .carousel-center,
    .carousel-head,
    .carousel-viewport,
    .carousel-track,
    .carousel-slide,
    .testimonial-card,
    .benefits,
    .benefit,
    .option,
    .comfort-selector,
    .quantity,
    .trust-badges,
    .trust-badge,
    .whatsapp-btn,
    #add-cart{
        width:100%;
        max-width:100%;
        margin:0 auto;
        box-sizing:border-box;
    }

    .gallery{
        align-items:center;
        gap:14px;
    }

    .main-image{
        width:100%;
        max-width:100%;
        min-height:0;
        aspect-ratio:4 / 3;
        border-radius:18px;
        margin:0 auto;
    }

    .thumbnails{
        grid-template-columns:repeat(3, minmax(0, 1fr));
        gap:10px;
    }

    .thumbnails img{
        width:100%;
        height:auto;
        aspect-ratio:1 / 1;
        max-height:92px;
        border-radius:12px;
    }

    .product-info{
        padding:0;
        gap:14px;
        align-items:center;
        text-align:center;
    }

    .product-info h1{
        font-size:clamp(1.7rem,7vw,2.4rem);
        text-align:center;
    }

    .product-rating{
        justify-content:center;
        flex-wrap:wrap;
        gap:8px;
    }

    #description{
        font-size:.95rem;
        line-height:1.7;
        text-align:center;
    }

    .price{
        display:flex;
        justify-content:center;
    }

    .trust-badges{
        display:flex;
        flex-direction:column;
        gap:10px;
        align-items:stretch;
    }

    .trust-badge{
        width:100%;
        text-align:center;
        justify-content:center;
    }

    .option{
        align-items:center;
        gap:8px;
    }

    .option label{
        width:100%;
        text-align:center;
    }

    .comfort-selector{
        justify-content:center;
        gap:8px;
    }

    .comfort-btn{
        flex:1 1 calc(50% - 8px);
        min-width:0;
        justify-content:center;
        text-align:center;
    }

    .quantity{
        width:min(100%,220px);
        justify-content:center;
        padding:8px;
        border-radius:999px;
    }

    .whatsapp-btn,
    #add-cart{
        width:100%;
        max-width:100%;
        padding:16px 18px;
        border-radius:14px;
    }

    .benefits{
        gap:10px;
    }

    .benefit{
        justify-content:center;
        align-items:center;
        text-align:center;
        padding:12px 14px;
    }

    .reviews-carousel{
        padding:24px 0 8px;
    }

    .carousel-center{
        padding:0 16px;
    }

    .carousel-head{
        flex-direction:column;
        align-items:center;
        justify-content:center;
        text-align:center;
        gap:8px;
        margin-bottom:16px;
    }

    .carousel-viewport{
        overflow:hidden;
    }

    .carousel-slide{
        flex:0 0 100%;
        width:100%;
        justify-content:center;
    }

    .testimonial-card{
        width:100%;
        max-width:100%;
        padding:20px;
        border-radius:16px;
    }

    .carousel-prev,
    .carousel-next{
        display:none;
    }

    .carousel-dots{
        margin-top:14px;
    }
}