/* ===================== Sara — theme ===================== */
:root{
    --bg:#ffffff;
    --bg-soft:#f4f0ea;
    --ink:#161413;
    --muted:#8a8178;
    --line:#e7e0d6;
    --serif:'Cormorant Garamond', Georgia, serif;
    --sans:'Jost', system-ui, -apple-system, sans-serif;
    --maxw:1380px;
    --header-h:118px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--bg);color:var(--ink);font-family:var(--sans);font-weight:300;font-size:16px;line-height:1.6;-webkit-font-smoothing:antialiased}
body.drawer-open{overflow:hidden}
img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}
h1,h2,h3{font-family:var(--serif);font-weight:500;margin:0;letter-spacing:.3px}
button{font-family:inherit}

/* ---------- Buttons ---------- */
.btn-dark,.btn-outline,.btn-light{
    display:inline-block;padding:1rem 2.4rem;font-family:var(--sans);font-weight:400;
    font-size:.72rem;letter-spacing:.2em;text-transform:uppercase;cursor:pointer;border-radius:2px;
    transition:.25s;border:1px solid var(--ink);text-align:center;
}
.btn-dark{background:var(--ink);color:#fff}
.btn-dark:hover{background:#000}
.btn-outline{background:transparent;color:var(--ink)}
.btn-outline:hover{background:var(--ink);color:#fff}
.btn-light{background:#fff;color:#111;border-color:#fff}
.btn-light:hover{background:transparent;color:#fff;border-color:#fff}
.btn-block{display:block;width:100%}
.link-btn{background:none;border:none;color:var(--muted);cursor:pointer;font-size:.72rem;letter-spacing:.14em;text-transform:uppercase;padding:.6rem;width:100%}
.link-btn:hover{color:var(--ink)}

/* ---------- Header (Gucci style) ---------- */
.site-header{position:sticky;top:0;z-index:60;background:#fff;border-bottom:1px solid var(--line)}
.header-bar{
    max-width:var(--maxw);margin:0 auto;display:grid;grid-template-columns:1fr auto 1fr;
    align-items:center;gap:1rem;padding:1.1rem 1.6rem;
}
.hb-left{justify-self:start}
.contact-link{font-size:.74rem;letter-spacing:.08em;color:var(--ink)}
.contact-link:hover{color:var(--muted)}
.brand{justify-self:center}
.brand img{height:52px;width:auto;object-fit:contain;filter:brightness(0)}
.hb-right{justify-self:end;display:flex;align-items:center;gap:.3rem}
.icon-btn{display:grid;place-items:center;width:42px;height:42px;border:none;background:none;color:var(--ink);cursor:pointer;border-radius:50%;transition:background .2s;position:relative}
.icon-btn:hover{background:var(--bg-soft)}
.cart-btn #cart-badge .badge-count{
    position:absolute;top:4px;right:4px;min-width:17px;height:17px;padding:0 4px;border-radius:9px;
    background:var(--ink);color:#fff;font-size:.62rem;display:grid;place-items:center;line-height:1;font-weight:500;
}
.menu-btn{display:flex;align-items:center;gap:.5rem;border:none;background:none;cursor:pointer;color:var(--ink);padding:.4rem .6rem}
.menu-ico{display:flex;flex-direction:column;gap:4px;width:22px}
.menu-ico span{height:1.5px;background:currentColor;width:100%}
.menu-label{font-size:.74rem;letter-spacing:.16em;text-transform:uppercase}

.cat-nav{display:flex;justify-content:center;gap:2.4rem;flex-wrap:nowrap;overflow-x:auto;
    padding:.7rem 1.6rem;border-top:1px solid var(--line);font-size:.72rem;letter-spacing:.18em;
    text-transform:uppercase;-webkit-overflow-scrolling:touch;scrollbar-width:none}
.cat-nav::-webkit-scrollbar{display:none}
.cat-link{color:var(--muted);white-space:nowrap;transition:color .2s}
.cat-link:hover{color:var(--ink)}

.announce{display:flex;align-items:center;justify-content:center;gap:1rem;background:var(--bg-soft);
    padding:.55rem 1rem;font-size:.72rem;letter-spacing:.06em;color:#5b534a}
.announce-arrow{background:none;border:none;cursor:pointer;font-size:1.1rem;color:var(--ink);line-height:1;padding:0 .4rem}
.announce-msgs{position:relative;min-width:260px;max-width:70vw;height:1.2em;text-align:center}
.announce-msg{position:absolute;inset:0;opacity:0;transition:opacity .4s;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.announce-msg.is-active{opacity:1}

/* ---------- Hero slider ---------- */
.hero-slider{position:relative;background:#0e0d0c}
.slider-track{display:flex;gap:0;overflow-x:auto;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;scrollbar-width:none}
.slider-track::-webkit-scrollbar{display:none}
.slide{position:relative;flex:0 0 72%;scroll-snap-align:center;height:72vh;min-height:460px;max-height:760px}
.slide-media{position:absolute;inset:0}
.slide-media img{width:100%;height:100%;object-fit:cover}
.slide::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.05) 30%,rgba(0,0,0,.55) 100%)}
.slide-caption{position:absolute;left:0;right:0;bottom:7%;z-index:2;text-align:center;color:#fff;padding:0 1.5rem}
.slide-kicker{letter-spacing:.34em;text-transform:uppercase;font-size:.72rem;opacity:.85;margin:0 0 .5rem}
.slide-title{font-size:clamp(2.6rem,6vw,5rem);line-height:1;margin:0 0 1.4rem;color:#fff}
.slider-nav{position:absolute;top:50%;transform:translateY(-50%);z-index:3;width:50px;height:50px;border-radius:50%;
    border:1px solid rgba(255,255,255,.5);background:rgba(0,0,0,.18);color:#fff;font-size:1.6rem;line-height:1;cursor:pointer;
    display:grid;place-items:center;transition:.2s;backdrop-filter:blur(2px)}
.slider-nav:hover{background:#fff;color:#111}
.slider-nav.prev{left:3%}
.slider-nav.next{right:3%}
.slider-dots{position:absolute;bottom:18px;left:0;right:0;display:flex;justify-content:center;gap:.5rem;z-index:3}
.slider-dot{width:8px;height:8px;border-radius:50%;border:none;background:rgba(255,255,255,.45);cursor:pointer;padding:0}
.slider-dot.is-active{background:#fff;width:22px;border-radius:4px}

/* ---------- Catalog ---------- */
.catalog{max-width:var(--maxw);margin:4rem auto 5rem;padding:0 1.6rem}
.catalog-head{display:flex;justify-content:space-between;align-items:flex-end;flex-wrap:wrap;gap:1rem;margin-bottom:2rem;border-bottom:1px solid var(--line);padding-bottom:1.1rem}
.catalog-head h2{font-size:2.2rem}
.filter-bar{display:flex;gap:.4rem;flex-wrap:wrap}
.filter{background:none;border:1px solid var(--line);color:var(--muted);padding:.5rem 1.1rem;font-size:.7rem;letter-spacing:.14em;text-transform:uppercase;cursor:pointer;border-radius:30px;transition:.2s}
.filter:hover{color:var(--ink);border-color:var(--ink)}
.filter.is-active{background:var(--ink);color:#fff;border-color:var(--ink)}

.product-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:1.6rem}
.product-card{position:relative}
.card-media{position:relative;display:block;aspect-ratio:3/4;overflow:hidden;background:var(--bg-soft);border-radius:3px}
.card-media img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:opacity .5s,transform .6s}
.card-media-hover{opacity:0}
.card-media:hover .card-media-hover{opacity:1}
.card-media:hover img{transform:scale(1.04)}
.card-noimg{position:absolute;inset:0;display:grid;place-items:center;font-family:var(--serif);font-size:2rem;color:var(--muted)}
.card-tag{position:absolute;top:.7rem;left:.7rem;background:rgba(255,255,255,.92);font-size:.6rem;letter-spacing:.12em;text-transform:uppercase;padding:.3rem .6rem;border-radius:30px}
.card-body{padding:.9rem .15rem 0}
.card-title{font-size:1.18rem;line-height:1.25;font-weight:500}
.card-title a:hover{color:var(--muted)}
.card-row{display:flex;align-items:center;justify-content:space-between;margin-top:.35rem}
.card-price{font-size:.95rem;color:var(--muted)}
.card-add{width:34px;height:34px;border-radius:50%;border:1px solid var(--line);background:#fff;cursor:pointer;font-size:1.2rem;line-height:1;color:var(--ink);transition:.2s}
.card-add:hover{background:var(--ink);color:#fff;border-color:var(--ink)}
.empty{color:var(--muted);padding:3rem 0;text-align:center}

/* ---------- Single product ---------- */
.product-single{max-width:var(--maxw);margin:2rem auto 4rem;padding:0 1.6rem;display:grid;grid-template-columns:1.65fr 1fr;gap:2.5rem;align-items:start}
.product-gallery{display:grid;gap:.6rem}
.product-gallery.is-multi{grid-template-columns:1fr 1fr}
.product-gallery.is-single{grid-template-columns:1fr}
.gallery-item{margin:0;background:var(--bg-soft);border-radius:3px;overflow:hidden;aspect-ratio:3/4}
.gallery-item img{width:100%;height:100%;object-fit:cover}
.gallery-empty{display:grid;place-items:center;font-family:var(--serif);color:var(--muted);font-size:2rem}
.product-info{position:sticky;top:calc(var(--header-h) + 14px)}
.crumbs{font-size:.7rem;letter-spacing:.1em;text-transform:uppercase;color:var(--muted);display:flex;gap:.5rem;margin-bottom:1.1rem}
.crumbs a:hover{color:var(--ink)}
.product-name{font-size:2.4rem;line-height:1.08;margin-bottom:.7rem}
.product-price{font-size:1.4rem;margin-bottom:1.6rem}
.product-actions{display:grid;gap:.7rem;margin-bottom:1.1rem}
.installments{background:var(--bg-soft);border-radius:3px;padding:.8rem 1rem;font-size:.85rem;color:var(--muted);margin-bottom:1.8rem}
.installments strong{color:var(--ink);font-weight:500}
.product-desc{border-top:1px solid var(--line);padding-top:1.4rem}
.product-desc h2{font-size:1.3rem;margin-bottom:.6rem}
.product-desc p{color:#544b41;line-height:1.7}
.product-perks{list-style:none;padding:1.4rem 0 0;margin:1.4rem 0 0;border-top:1px solid var(--line);font-size:.85rem;color:var(--muted);display:grid;gap:.5rem}
.product-perks li{padding-left:1.3rem;position:relative}
.product-perks li::before{content:"\2713";position:absolute;left:0;color:var(--ink)}
.related{max-width:var(--maxw);margin:0 auto 5rem;padding:0 1.6rem}
.related-title{font-size:1.9rem;text-align:center;margin-bottom:2rem}

/* ---------- Mobile buy bar ---------- */
.mobile-buybar{display:none;position:fixed;left:0;right:0;bottom:0;z-index:55;background:#fff;border-top:1px solid var(--line);
    padding:.7rem 1rem calc(.7rem + env(safe-area-inset-bottom));gap:.8rem;align-items:center;box-shadow:0 -6px 18px rgba(0,0,0,.06)}
.mb-price{font-size:1.05rem;font-weight:400;white-space:nowrap}
.mb-add{flex:1;padding:.95rem 1rem}

/* ---------- Drawers ---------- */
.overlay{position:fixed;inset:0;background:rgba(0,0,0,.45);opacity:0;visibility:hidden;transition:opacity .3s;z-index:80}
.overlay.is-visible{opacity:1;visibility:visible}
.drawer{position:fixed;top:0;right:0;height:100%;width:420px;max-width:90vw;background:#fff;z-index:90;
    transform:translateX(100%);transition:transform .35s cubic-bezier(.4,0,.2,1);display:flex;flex-direction:column;box-shadow:-10px 0 40px rgba(0,0,0,.12)}
.drawer.is-open{transform:translateX(0)}
.drawer-close{position:absolute;top:1.1rem;right:1.1rem;width:42px;height:42px;border-radius:50%;border:none;background:var(--ink);color:#fff;font-size:1.5rem;line-height:1;cursor:pointer;z-index:2}
.drawer-menu{padding:4.5rem 2.2rem 2rem}
.menu-nav{display:flex;flex-direction:column;gap:.2rem}
.menu-link{font-family:var(--serif);font-size:2rem;padding:.35rem 0;transition:opacity .2s}
.menu-link:hover{opacity:.55}
.menu-sep{height:1px;background:var(--line);margin:1.6rem 0}
.menu-sub{display:flex;flex-direction:column;gap:1rem;font-size:.82rem;letter-spacing:.04em}
.menu-sub a{color:#4a423a;text-decoration:underline;text-underline-offset:3px}
.menu-sub a:hover{color:var(--ink)}

.drawer-head{display:flex;align-items:center;justify-content:space-between;padding:1.4rem 1.6rem;border-bottom:1px solid var(--line)}
.drawer-head h2{font-size:1.5rem}
.drawer-head .drawer-close{position:static;width:38px;height:38px;font-size:1.3rem}
.drawer-body{flex:1;overflow-y:auto;display:flex;flex-direction:column}
.cart-empty{padding:3rem 1.6rem;text-align:center;color:var(--muted);display:grid;gap:1.4rem;place-items:center}
.cart-lines{list-style:none;margin:0;padding:.5rem 1.6rem;flex:1}
.cart-line{display:grid;grid-template-columns:64px 1fr auto;gap:.9rem;padding:1rem 0;border-bottom:1px solid var(--line)}
.cl-media{display:block;width:64px;height:80px;background:var(--bg-soft);border-radius:3px;overflow:hidden}
.cl-media img{width:100%;height:100%;object-fit:cover}
.cl-name{font-family:var(--serif);font-size:1.05rem;line-height:1.2;display:block}
.cl-price{font-size:.8rem;color:var(--muted);margin:.2rem 0 .5rem}
.cl-qty{display:inline-flex;align-items:center;border:1px solid var(--line);border-radius:30px;overflow:hidden}
.qbtn{width:28px;height:28px;border:none;background:none;cursor:pointer;font-size:1rem;line-height:1;color:var(--ink)}
.qbtn:hover{background:var(--bg-soft)}
.qnum{min-width:26px;text-align:center;font-size:.85rem}
.cl-right{text-align:right;display:flex;flex-direction:column;justify-content:space-between;align-items:flex-end}
.cl-total{font-size:.9rem}
.cl-remove{background:none;border:none;color:var(--muted);cursor:pointer;font-size:.7rem;letter-spacing:.06em;text-decoration:underline;text-underline-offset:2px;padding:0}
.cl-remove:hover{color:#a3261f}
.cart-foot{padding:1.4rem 1.6rem;border-top:1px solid var(--line);background:#fff}
.cart-subtotal{display:flex;justify-content:space-between;align-items:center;margin-bottom:1rem;font-size:1rem}
.cart-subtotal strong{font-size:1.2rem}

/* ---------- Checkout ---------- */
.checkout{max-width:1100px;margin:2.5rem auto 4rem;padding:0 1.6rem;display:grid;grid-template-columns:1.4fr 1fr;gap:3rem;align-items:start}
.checkout-form h1{font-size:2.4rem;margin-bottom:1.4rem}
.checkout-form h2{font-size:1.2rem;margin:1.6rem 0 .8rem}
.field{margin-bottom:.8rem}
.checkout .row{display:grid;grid-template-columns:1fr 1fr;gap:.8rem}
.checkout input,.checkout textarea{width:100%;border:1px solid var(--line);border-radius:4px;padding:.9rem 1rem;font-family:inherit;font-size:.95rem;background:#fff}
.checkout input:focus,.checkout textarea:focus{outline:none;border-color:var(--ink)}
.checkout textarea{min-height:90px;resize:vertical}
.field-error{display:block;color:#a3261f;font-size:.78rem;margin-top:.3rem}
.radio{display:flex;align-items:center;gap:.6rem;padding:.7rem .9rem;border:1px solid var(--line);border-radius:4px;margin-bottom:.6rem;cursor:pointer;font-size:.9rem}
.checkout-summary{background:var(--bg-soft);border-radius:6px;padding:1.6rem;position:sticky;top:calc(var(--header-h) + 14px)}
.checkout-summary h2{font-size:1.3rem;margin-bottom:1rem}
.cs-line{display:grid;grid-template-columns:auto 1fr auto;gap:.6rem;padding:.55rem 0;border-bottom:1px solid var(--line);font-size:.88rem}
.cs-q{color:var(--muted)}
.cs-total{display:flex;justify-content:space-between;align-items:center;margin-top:1rem;font-size:1.05rem}
.cs-total strong{font-size:1.3rem}
.checkout-empty,.checkout-success{max-width:560px;margin:5rem auto;text-align:center;padding:0 1.6rem;display:grid;gap:1.2rem;place-items:center}
.checkout-success .cs-check{width:64px;height:64px;border-radius:50%;background:var(--ink);color:#fff;display:grid;place-items:center;font-size:1.8rem}
.checkout-success h1{font-size:2.4rem}
.cs-amount strong{font-size:1.2rem}
.cs-note{color:var(--muted);font-size:.9rem}

/* ---------- Footer ---------- */
.site-footer{border-top:1px solid var(--line);background:var(--bg-soft);margin-top:2rem}
.footer-inner{max-width:var(--maxw);margin:0 auto;padding:3.2rem 1.6rem;text-align:center}
.footer-logo{height:40px;margin:0 auto 1.4rem;width:auto;filter:brightness(0)}
.footer-cats{display:flex;justify-content:center;gap:1.8rem;flex-wrap:wrap;font-size:.72rem;letter-spacing:.16em;text-transform:uppercase;color:var(--muted)}
.footer-cats a:hover{color:var(--ink)}
.footer-contact{margin-top:1.2rem;font-size:.85rem;color:#5b534a}
.copyright{margin-top:.6rem;font-size:.76rem;color:var(--muted)}

/* ===================== Responsive / Mobile ===================== */
@media(max-width:1100px){
    .product-grid{grid-template-columns:repeat(3,1fr)}
    .checkout{grid-template-columns:1fr;gap:1.6rem}
    .checkout-summary{position:static;order:-1}
}
@media(max-width:900px){
    .product-single{grid-template-columns:1fr;gap:1.4rem}
    .product-info{position:static}
    .product-gallery.is-multi{grid-template-columns:1fr 1fr}
    .slide{flex-basis:86%;height:62vh}
}
@media(max-width:680px){
    :root{--header-h:96px}
    .header-bar{grid-template-columns:auto 1fr auto;padding:.8rem 1rem;gap:.5rem}
    .contact-link{display:none}
    .brand img{height:34px}
    .icon-btn{width:38px;height:38px}
    .menu-label{display:none}
    .menu-btn{padding:.4rem}
    .cat-nav{justify-content:flex-start;gap:1.5rem;font-size:.68rem}
    .announce-msgs{min-width:0}
    .slide{flex-basis:100%;height:56vh;min-height:380px;border-radius:0}
    .slider-nav{width:40px;height:40px;font-size:1.3rem}
    .slider-nav.prev{left:2%}.slider-nav.next{right:2%}
    .catalog{margin:2.5rem auto 3rem}
    .catalog-head{align-items:flex-start}
    .catalog-head h2{font-size:1.7rem}
    .product-grid{grid-template-columns:repeat(2,1fr);gap:.9rem 1rem}
    .product-name{font-size:1.9rem}
    .product-gallery.is-multi{grid-template-columns:1fr}
    .drawer{width:100%;max-width:100%}
    .menu-link{font-size:1.7rem}
    /* bottom buy bar visibile solo su mobile, nella pagina prodotto */
    .page-product .mobile-buybar{display:flex}
    .page-product .site-footer{margin-bottom:74px}
    .filter-bar{width:100%;overflow-x:auto;flex-wrap:nowrap;-webkit-overflow-scrolling:touch;scrollbar-width:none}
    .filter-bar::-webkit-scrollbar{display:none}
    .filter{white-space:nowrap}
}
@media(max-width:380px){
    .product-grid{gap:.7rem}
    .card-title{font-size:1.05rem}
}
