:root{
  --maxw:1200px; --bg:#ffffff; --muted:#6b6b6b; --primary:#111111; --accent:#d4af37; --radius:12px; --card:#ffffff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}
*{box-sizing:border-box}
html,body{font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important; height:100%;margin:0;background:var(--bg);color:var(--primary);-webkit-font-smoothing:antialiased}
a{text-decoration:none;color:inherit}
.container{max-width:var(--maxw);margin:0 auto;padding:28px}
.header{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:16px 0;position:sticky;top:0;background:linear-gradient(rgba(255,255,255,0.6), rgba(255,255,255,0.6));backdrop-filter: blur(6px);z-index:50}
.brand{display:flex;gap:14px;align-items:center}
.brand img{width:56px;height:56px;border-radius:10px;object-fit:cover;box-shadow:0 6px 18px rgba(17,17,17,0.06)}
.brand h1{font-size:18px;margin:0;letter-spacing:0.6px}
.nav{display:flex;gap:12px;align-items:center}
.nav a{padding:8px 12px;border-radius:8px;color:var(--muted);font-weight:600}
.nav a:hover{color:var(--primary);background:rgba(17,17,17,0.03)}
.cta{background:var(--accent);padding:10px 14px;border-radius:8px;font-weight:700;cursor:pointer;border:none}

/* Hero */
.hero{display:flex;gap:40px;align-items:center;padding:60px 0}
.hero-left{flex:1}
.hero h2{font-size:44px;margin:0 0 12px;line-height:1.02}
.hero p{color:var(--muted);margin:0 0 20px;font-size:16px}
.hero .actions{display:flex;gap:12px}
.hero .eyebrow{font-size:13px;color:var(--muted);letter-spacing:1px;margin-bottom:12px}

/* Gallery */
.gallery{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:26px;padding:26px 0}
.card{background:var(--card);border-radius:14px;padding:12px;border:1px solid rgba(17,17,17,0.04);cursor:pointer;transition:transform .18s ease, box-shadow .18s ease}
.card:hover{transform:translateY(-6px);box-shadow:0 14px 40px rgba(17,17,17,0.08)}
.card img{width:100%;height:320px;object-fit:cover;border-radius:10px}
.card .meta{display:flex;justify-content:space-between;align-items:center;margin-top:12px}
.title{font-weight:700}
.price{font-weight:700;color:var(--primary)}

/* Product page */
.product-page{display:grid;grid-template-columns:520px 1fr;gap:36px;padding:40px 0}
.product-page img{width:100%;height:auto;border-radius:14px;box-shadow:0 18px 50px rgba(17,17,17,0.06)}
.specs{margin-top:16px;color:var(--muted)}

/* Cart & Checkout */
.cart-widget{position:fixed;right:28px;bottom:28px;background:#fff;border-radius:14px;padding:14px;border:1px solid rgba(17,17,17,0.06);box-shadow:0 18px 40px rgba(17,17,17,0.08);width:320px}
.cart-widget h4{margin:0 0 8px}
.cart-widget .line{display:flex;justify-content:space-between;padding:6px 0;border-bottom:1px dashed rgba(17,17,17,0.04)}
.checkout-btn{display:block;width:100%;padding:12px;border-radius:10px;background:var(--accent);border:none;font-weight:800;cursor:pointer;margin-top:12px}

/* Cart page */
.table{width:100%;border-collapse:collapse;margin-top:12px}
.table th, .table td{padding:12px;border-bottom:1px solid rgba(17,17,17,0.04);text-align:left}
.qty{width:120px}

/* Forms */
.form-row{display:flex;gap:12px;flex-wrap:wrap}
.form-row input, textarea{padding:12px;border-radius:8px;border:1px solid rgba(17,17,17,0.06);width:100%;outline:none}

/* Footer */
.footer{padding:50px 0;color:var(--muted);text-align:center;border-top:1px solid rgba(17,17,17,0.03);margin-top:40px}

/* Utility */
.controls{display:flex;gap:12px;margin-top:12px}
.controls input, .controls select{padding:10px;border-radius:10px;border:1px solid rgba(17,17,17,0.04);outline:none}
.small{font-size:13px;color:var(--muted)}

/* Responsive */
@media (max-width:900px){
  .hero{flex-direction:column}
  .product-page{grid-template-columns:1fr}
  .card img{height:220px}
  .cart-widget{position:fixed;left:12px;right:12px;width:auto}
}

/* Verdor minimal mobile */
img, video { max-width:100%; height:auto; }
.container{ width:100%; max-width:1200px; margin:0 auto; padding:0 16px; }
@media (max-width: 720px){ .hide-sm{ display:none !important; } }


/* Verdor cart badge */
#cart-count {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
#cart-count .badge {
  display: inline-block;
  min-width: 20px;
  padding: 2px 8px;
  font-size: 12px;
  line-height: 1.2;
  border-radius: 999px;
  background: #111;
  color: #fff;
  text-align: center;
}
/* Hide floating bottom-right cart bubble if any */
.cart-float, .cart-floating, .floating-cart, .cart-bubble { display: none !important; }


/* === Verdor mobile & cart widget polish === */
img, video { max-width: 100%; height: auto; }
/* Override inline width styles on images that break mobile */
img[style*="width:"] { width: 100% !important; height: auto !important; }

/* Header nav wraps nicely on small screens */
header nav { display: flex; flex-wrap: wrap; gap: 12px; }

/* Gallery/grid responsive */
#gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
#gallery .card { border: 1px solid #eee; border-radius: 12px; overflow: hidden; background: #fff; }
#gallery .card .card-body { padding: 10px; }

/* Tables scroll on small screens */
@media (max-width: 720px){
  table { display: block; width: 100%; overflow-x: auto; }
  .container, main, section { padding-left: 12px; padding-right: 12px; }
}

/* Cart widget redesigned (hidden by default) */
.cart-widget { position: fixed; right: 16px; bottom: 16px; width: 360px; max-width: calc(100% - 32px);
  border: 1px solid #eee; border-radius: 14px; background: #fff;
  box-shadow: 0 8px 28px rgba(0,0,0,.15); z-index: 10000; }
.cart-widget[aria-hidden="true"] { display: none; }
.cart-widget .cw-head { display:flex; align-items:center; justify-content:space-between; gap:8px; padding: 10px 12px; border-bottom: 1px solid #eee; }
.cart-widget .cw-body { max-height: 60vh; overflow:auto; padding: 8px 12px; }
.cart-widget .cw-actions { display:flex; justify-content:space-between; gap:8px; padding: 10px 12px; border-top: 1px solid #eee; }
.cart-widget .close { background: transparent; border: none; font-size: 20px; line-height: 1; padding: 6px 8px; cursor: pointer; }
@media (max-width: 720px){
  .cart-widget { left: 0; right: 0; bottom: 0; width: 100%; border-radius: 16px 16px 0 0; }
}
/* Hide any legacy floating bubbles */
.cart-float, .cart-floating, .floating-cart, .cart-bubble { display: none !important; }


/* === Verdor Mobile v2 (nav, spacing, type, cards, forms) === */
:root{
  --v-space-1: 8px; --v-space-2: 12px; --v-space-3: 16px; --v-space-4: 20px; --v-space-6: 28px;
  --v-radius: 12px;
}
html { -webkit-text-size-adjust: 100%; }
body { line-height: 1.5; }
h1,h2,h3 { line-height: 1.2; margin: var(--v-space-3) 0 var(--v-space-2); }
p,li { margin: 0 0 var(--v-space-2) 0; }

/* Container padding on small screens */
.container, main, section { padding-left: var(--v-space-3); padding-right: var(--v-space-3); }

/* Navbar: hamburger on mobile */
.nav-toggle {
  display: none; background: transparent; border: 1px solid #ddd; border-radius: var(--v-radius);
  padding: 10px 12px; line-height: 1; font-size: 16px;
}
.nav-toggle:focus { outline: 2px solid #000; outline-offset: 2px; }

header nav { display: flex; gap: var(--v-space-3); align-items: center; flex-wrap: wrap; }
@media (max-width: 820px){
  .nav-toggle { display: inline-flex; align-items: center; gap: 8px; }
  header { display: flex; align-items: center; justify-content: space-between; gap: var(--v-space-2); }
  header nav { display: none; flex-direction: column; align-items: flex-start; width: 100%; margin-top: var(--v-space-2); }
  body.nav-open header nav { display: flex; }
  header a, header button { touch-action: manipulation; }
  header a { padding: 8px 2px; }
}

/* Buttons & inputs comfortable */
button, .btn, input[type="submit"] {
  min-height: 44px; padding: 10px 14px; border-radius: var(--v-radius);
}
input, select, textarea { min-height: 44px; padding: 10px 12px; border-radius: var(--v-radius); border: 1px solid #ddd; }

/* Cards & grids responsive */
.grid, #gallery {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: var(--v-space-3);
}
.card { border: 1px solid #eee; border-radius: var(--v-radius); overflow: hidden; background: #fff; }
.card .card-body { padding: var(--v-space-3); }

/* Tables: scroll instead of overflow layout */
@media (max-width: 820px){
  table { display: block; width: 100%; overflow-x: auto; border-spacing: 0; }
  th, td { white-space: nowrap; }
}

/* Footer spacing */
footer { padding: var(--v-space-4) var(--v-space-3); }


/* === Verdor Mobile v3: header/nav polish (mobile-only) === */
@media (max-width: 820px){
  /* Header bar */
  header {
    position: sticky; top: 0; z-index: 1000;
    background: #fff;
    padding: 12px 16px;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    border-bottom: 1px solid rgba(0,0,0,.06);
  }
  /* Normalize brand (avoid wrapping/overlap) */
  header .logo, header .brand, header .site-title, header h1, header .title {
    font-size: 18px; font-weight: 700; margin: 0;
    display: inline-block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 55vw;
  }

  /* Hamburger left, minimal style */
  .nav-toggle {
    order: 0;
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; padding: 0;
    background: transparent; border: 1px solid #ddd; border-radius: 10px;
    font-size: 20px; line-height: 1; color: #111;
  }
  .nav-toggle:active { transform: scale(0.98); }

  /* Cart link aligns right */
  #cart-count { order: 2; }
  /* Nav becomes overlay panel below header */
  header nav {
    position: fixed; left: 0; right: 0; top: 56px;
    display: none; flex-direction: column; align-items: flex-start;
    background: #fff; padding: 12px 16px 20px;
    border-bottom: 1px solid rgba(0,0,0,.06);
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
  }
  body.nav-open header nav { display: flex; }
  header nav a {
    display: block; width: 100%;
    padding: 12px 8px; margin: 2px 0;
    font-size: 16px; color: #333; text-decoration: none;
  }
  header nav a:active { background: rgba(0,0,0,.04); border-radius: 8px; }

  /* Backdrop */
  .nav-backdrop {
    position: fixed; inset: 0; background: rgba(0,0,0,.3);
    z-index: 999; display: none;
  }
  body.nav-open .nav-backdrop { display: block; }

  /* General mobile spacing & type adjustments */
  .container, main, section { padding-left: 16px; padding-right: 16px; }
  h1 { font-size: 32px; }
  h2 { font-size: 22px; }
  h3 { font-size: 18px; }
  p, li { font-size: 16px; }

  /* Buttons: neutralize odd colors on mobile if custom themes leak */
  button, .btn, input[type="submit"] {
    min-height: 44px; padding: 10px 14px; border-radius: 12px;
  }

  /* Ensure hero CTAs don't overflow */
  .hero .cta, .cta { max-width: 100%; }

  /* Grid/cards safe on small screens */
  #gallery, .grid {
    display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }
  .card { border: 1px solid #eee; border-radius: 12px; overflow: hidden; background: #fff; }
  .card .card-body { padding: 12px; }

  /* Prevent body scroll when nav open */
  body.nav-open { overflow: hidden; }
}


/* === Verdor Mobile v5 (premium polish) === */
@media (max-width: 820px){
  :root{
    --vd-bg: #ffffff;
    --vd-surface: #f5f5f7;
    --vd-text: #111111;
    --vd-muted: #6b7280;
    --vd-border: rgba(0,0,0,.08);
    --vd-shadow: 0 10px 30px rgba(0,0,0,.12);
    --vd-radius: 14px;
    --vd-gold: #caa53b; /* unify gold */
    --vd-gold-text: #111;
  }

  /* Reset blue links on mobile */
  a { color: var(--vd-text); text-decoration: none; }
  a:hover { text-decoration: underline; }

  body { background: var(--vd-bg); color: var(--vd-text); line-height: 1.5; }

  /* Header layout: centered brand, icon left, cart right */
  header{
    position: sticky; top:0; z-index:1000; background:var(--vd-bg);
    padding: 10px 16px; border-bottom: 1px solid var(--vd-border);
    text-align: center;
  }
  header .logo, header .brand, header .site-title, header h1, header .title {
    display:inline-block; font-size:18px; font-weight:700; margin:0;
    max-width: 60vw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .nav-toggle{
    position:absolute; left:12px; top:8px; width:40px; height:40px;
    display:inline-flex; align-items:center; justify-content:center;
    border:1px solid #e5e7eb; border-radius:12px; background:#fff; color:#111;
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
  }
  #cart-count{
    position:absolute; right:12px; top:8px; display:inline-flex; align-items:center; gap:6px;
  }

  /* Drawer menu (full-width under header) */
  header nav{
    position: fixed; left:0; right:0; top:58px; display:none;
    background:#fff; box-shadow: var(--vd-shadow); border-bottom:1px solid var(--vd-border);
    padding: 10px 12px 18px;
  }
  body.nav-open header nav{ display:block; }
  header nav a{ display:block; padding:12px 8px; font-size:16px; border-radius:10px; }
  header nav a:active{ background: var(--vd-surface); }

  .nav-backdrop{ position:fixed; inset:0; background:rgba(0,0,0,.28); z-index:999; display:none; }
  body.nav-open .nav-backdrop{ display:block; }

  /* Controls: search + sort */
  .controls, .filters, .toolbox{ display:flex; gap:10px; align-items:center; }
  #search{ flex:1; min-height:44px; padding:10px 14px; border-radius:12px; border:1px solid #e5e7eb; background:var(--vd-surface); }
  #search::placeholder{ color: var(--vd-muted); }
  #sort-by{
    min-height:44px; padding:10px 34px 10px 12px; border-radius:12px; border:1px solid #e5e7eb;
    background: var(--vd-surface) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><path d="M6 8l4 4 4-4" fill="none" stroke="%236b7280" stroke-width="2" stroke-linecap="round"/></svg>') no-repeat right 10px center;
    appearance: none;
  }
  /* On very small screens, stack controls */
  @media (max-width: 420px){
    .controls, .filters, .toolbox{ flex-direction: column; align-items: stretch; }
    #sort-by{ width:100%; }
  }

  /* Buttons & CTA — unify gold */
  button, .btn, input[type=submit], .cta{
    min-height: 44px; padding: 10px 16px; border-radius: 12px;
    background: var(--vd-gold); color: var(--vd-gold-text); border: 1px solid rgba(0,0,0,.06);
    font-weight: 600;
  }
  .btn.secondary, .button.secondary{ background:#fff; border:1px solid #e5e7eb; color:#111; }
  .cta a, .btn a{ color: inherit !important; text-decoration: none !important; }

  /* Cards & grid */
  #gallery, .grid{ display:grid; gap:12px; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .card{ border:1px solid #eee; border-radius:14px; background:#fff; overflow:hidden; }
  .card .card-body{ padding:12px; }

  /* Cart table polish */
  table{ width:100%; border-collapse: collapse; }
  th, td{ padding:12px 8px; border-bottom: 1px solid #f0f0f0; }
  @media (max-width: 720px){
    table{ display:block; overflow-x:auto; }
  }
  .checkout-bar{ display:flex; justify-content: space-between; align-items:center; gap:10px; margin-top:14px; }
  .checkout-bar .total{ font-weight:700; font-size:18px; }
}


/* === Verdor Mobile v6 (drawer + clean controls) === */
@media (max-width: 820px){
  :root{
    --vd-bg: #ffffff;
    --vd-surface: #f6f6f8;
    --vd-text: #111111;
    --vd-muted: #6b7280;
    --vd-border: rgba(0,0,0,.08);
    --vd-shadow: 0 12px 36px rgba(0,0,0,.14);
    --vd-radius: 14px;
    --vd-gold: #caa53b;
    --vd-gold-text: #111;
  }

  /* Neutralize default blue links on iOS */
  a{ color: var(--vd-text); text-decoration: none; }
  a:hover{ text-decoration: underline; }
  .cta a, .btn a{ color: inherit !important; text-decoration: none !important; }

  body{ background: var(--vd-bg); color: var(--vd-text); line-height: 1.5; }

  /* Header: center brand, hamburger left, cart right */
  header{
    position: sticky; top:0; z-index: 1000; background: var(--vd-bg);
    padding: 12px 16px; border-bottom: 1px solid var(--vd-border);
    text-align: center;
  }
  header .logo, header .brand, header .site-title, header h1, header .title {
    display:inline-block; font-size:18px; font-weight:700; margin:0;
    max-width: 60vw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .nav-toggle{
    position:absolute; left:12px; top:10px; width:40px; height:40px;
    display:inline-flex; align-items:center; justify-content:center;
    border:1px solid #e5e7eb; border-radius:12px; background:#fff; color:#111;
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
  }
  /* Hide desktop nav on mobile; drawer will show links */
  header nav{ display: none !important; }

  /* Cart pill right */
  #cart-count{
    position:absolute; right:12px; top:10px; display:inline-flex; align-items:center; gap:6px;
  }
  #cart-count .badge{
    display:inline-block; min-width:20px; padding:2px 8px; font-size:12px; line-height:1.2;
    border-radius: 999px; background: #111; color:#fff;
  }

  /* Drawer + backdrop */
  .drawer{ position: fixed; inset: 0 30% 0 0; transform: translateX(-100%); background:#fff;
           box-shadow: var(--vd-shadow); z-index: 1001; padding: 16px; border-right:1px solid var(--vd-border); }
  .drawer .drawer-title{ font-weight:700; margin: 0 0 8px 2px; }
  .drawer nav a{ display:block; padding: 12px 6px; font-size:16px; border-radius: 10px; color: var(--vd-text); }
  .drawer nav a:active{ background: var(--vd-surface); }
  .backdrop{ position: fixed; inset:0; background: rgba(0,0,0,.3); z-index: 1000; display:none; }
  body.drawer-open .drawer{ transform: translateX(0); }
  body.drawer-open .backdrop{ display:block; }
  body.drawer-open{ overflow: hidden; }

  /* Controls (search + sort) */
  .controls, .filters, .toolbox{ display:flex; gap:10px; align-items:center; margin-bottom: 12px; }
  #search{ flex:1; min-height:44px; padding:10px 14px; border-radius:12px; border:1px solid #e5e7eb; background:var(--vd-surface); }
  #search::placeholder{ color: var(--vd-muted); }
  #sort-by{
    min-height:44px; padding:10px 34px 10px 12px; border-radius:12px; border:1px solid #e5e7eb;
    background: var(--vd-surface) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><path d="M6 8l4 4 4-4" fill="none" stroke="%236b7280" stroke-width="2" stroke-linecap="round"/></svg>') no-repeat right 10px center;
    appearance: none;
  }
  @media (max-width: 420px){
    .controls, .filters, .toolbox{ flex-direction: column; align-items: stretch; }
    #sort-by{ width:100%; }
  }

  /* CTA / buttons */
  button, .btn, input[type=submit], .cta{
    min-height: 44px; padding: 10px 16px; border-radius: 12px;
    background: var(--vd-gold); color: var(--vd-gold-text); border: 1px solid rgba(0,0,0,.06);
    font-weight: 600;
  }
  .btn.secondary, .button.secondary{ background:#fff; border:1px solid #e5e7eb; color:#111; }

  /* Cards & grid */
  #gallery, .grid{ display:grid; gap:12px; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .card{ border:1px solid #eee; border-radius:14px; background:#fff; overflow:hidden; }
  .card .card-body{ padding:12px; }
  img, video{ max-width:100%; height:auto; }

  /* Cart table */
  table{ width:100%; border-collapse: collapse; }
  th, td{ padding:12px 8px; border-bottom: 1px solid #f0f0f0; white-space: nowrap; }
  @media (max-width: 720px){
    table{ display:block; overflow-x:auto; }
  }
  .checkout-bar{ display:flex; justify-content: space-between; align-items:center; gap:10px; margin-top:14px; }
  .checkout-bar .total{ font-weight:700; font-size:18px; }
}


/* Active nav link */
.nav a[aria-current="page"]{ color: var(--primary); background: rgba(212,175,55,0.15); }

/* Account dropdown */
.nav .account{ position: relative; }
.nav .account > a::after{ content:"▾"; margin-left:6px; font-size: 0.8em; }
.nav .account-menu{
  position:absolute; top:100%; right:0; min-width:220px;
  background:#fff; border:1px solid rgba(0,0,0,.06); border-radius:10px;
  box-shadow:0 12px 28px rgba(0,0,0,.12); padding:8px; display:none;
}
.nav .account-menu a{ display:block; padding:10px 12px; color:#333; border-radius:8px; }
.nav .account-menu a:hover{ background:rgba(17,17,17,0.04); }
.nav .account:hover .account-menu{ display:block; }
@media (max-width:820px){
  .nav .account-menu{ position:fixed; right:16px; left:16px; top:auto; bottom:16px; }
}

/* === Verdor Mobile Drawer Styles === */
@media (max-width: 820px){
  .nav-toggle{ display:inline-flex; align-items:center; justify-content:center; padding:10px 12px; border:1px solid #ddd; border-radius:10px; background:transparent; }
  header nav#site-nav{ display:none !important; }
  .vd-backdrop{ position:fixed; inset:0; background:rgba(0,0,0,.35); opacity:0; pointer-events:none; transition:opacity .2s ease; z-index: 1000; }
  .vd-backdrop.is-open{ opacity:1; pointer-events:auto; }
  .vd-drawer{ position:fixed; top:0; left:0; height:100vh; width:min(86vw, 360px); background:#fff; box-shadow: 10px 0 30px rgba(0,0,0,.18);
              transform: translateX(-100%); transition: transform .25s ease; z-index: 1001; display:block; }
  .vd-drawer.is-open{ transform: translateX(0); }
  .vd-drawer__scroll{ height:100%; overflow-y:auto; -webkit-overflow-scrolling:touch; padding: 16px 14px 24px; }
  .vd-drawer__menu a{ display:block; padding:12px 8px; margin: 2px 0; font-size:16px; color:#111; text-decoration:none; border-radius:8px; }
  .vd-drawer__menu a:active{ background: rgba(0,0,0,.06); }
}
/* === /Verdor Mobile Drawer Styles === */

/* === Header mobile polish === */
@media (max-width: 820px){
  header.header, header.container, header {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    justify-content: flex-start !important;
  }
  header .nav-toggle{ flex: 0 0 auto; }
  header .brand{ display:flex; align-items:center; gap:8px; min-width:0; }
  header .brand img{ height:28px; width:auto; }
  header .brand h1, header h1, header .site-title, header .title{
    font-size: 18px; margin: 0;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    max-width: calc(100vw - 56px - 24px);
  }
}
/* === /Header mobile polish === */

/* === Clean Compte trigger === */
header .account { position: relative; display: inline-block; }
header .account-trigger {
  background: transparent; border: 0; padding: 8px 10px; cursor: pointer;
  font: inherit; color: inherit;
}
header .account-trigger:focus { outline: 2px solid rgba(0,0,0,.7); outline-offset: 2px; border-radius: 8px; }
/* Keep dropdown behaviour (assumes existing styles for .account-menu) */

/* === Account dropdown UI === */
header .account { position: relative; }
header .account .account-menu{
  position: absolute; top: 110%; right: 0; min-width: 220px;
  background: #fff; border: 1px solid rgba(0,0,0,.08); border-radius: 12px;
  padding: 12px; box-shadow: 0 8px 30px rgba(0,0,0,.12); display: none;
  z-index: 1002;
}
header .account .account-menu a{ display:block; padding:10px 8px; border-radius:8px; text-decoration:none; color:#111; }
header .account .account-menu a:hover{ background: rgba(0,0,0,.05); }
header .account.open .account-menu{ display:block; }

/* Toggle behaviour (click to open) */
header .account-trigger{ background: transparent; border:0; padding:8px 10px; cursor:pointer; font: inherit; color: inherit; border-radius: 10px; }
header .account-trigger:focus{ outline: 2px solid rgba(0,0,0,.2); outline-offset: 2px; }


/* Force "Compte" button to exactly match other nav links */
.nav .account .account-trigger{
  padding:8px 12px;
  border-radius:8px;
  color:var(--muted);
  font-weight:600 !important;
  background:transparent;
  border:0;
  font-family: inherit !important;
  line-height: inherit;
}
.nav .account .account-trigger:hover{
  color:var(--primary);
  background:rgba(17,17,17,0.03);
}


/* ==== Account menu logic (do not move) ==== */
/* Default: show guest links, hide user links until we know the state */
.account-menu [data-account="account"],
.account-menu [data-account="logout"] { display:none; }

/* When logged-in: hide guest links, show user links */
.logged-in .account-menu [data-account="login"],
.logged-in .account-menu [data-account="register"] { display:none !important; }
.logged-in .account-menu [data-account="account"],
.logged-in .account-menu [data-account="logout"] { display:block !important; }

/* On login page: remove the redundant "Se connecter" item */
.page-login .account-menu [data-account="login"] { display:none !important; }
/* On register page: remove redundant "S'inscrire" */
.page-register .account-menu [data-account="register"] { display:none !important; }

/* Ensure "Compte" button visually matches other nav items */
.nav .account .account-trigger{
  padding:8px 12px;
  border:0;
  background:transparent;
  border-radius:8px;
  color:var(--muted);
  font: inherit;
  font-weight:600 !important;
}
.nav .account .account-trigger:hover{
  color:var(--primary);
  background:rgba(17,17,17,0.03);
}


/* === Account menu visibility (final) === */
/* Default: guest state -> hide account/logout */
.account-menu [data-account="account"],
.account-menu [data-account="logout"]{ display:none !important; }

/* Logged in: hide guest, show user */
.logged-in .account-menu [data-account="login"],
.logged-in .account-menu [data-account="register"]{ display:none !important; }
.logged-in .account-menu [data-account="account"],
.logged-in .account-menu [data-account="logout"]{ display:block !important; }

/* Context pages: remove redundant entries */
.page-login .account-menu [data-account="login"]{ display:none !important; }
.page-register .account-menu [data-account="register"]{ display:none !important; }


/* Normalize nav items vertical alignment across all pages (HTML/PHP) */
.nav a, .nav .account-trigger{
  display:inline-flex;
  align-items:center;
  line-height:1;
}


/* --- Fix alignement vertical du menu (toutes pages, HTML/PHP) --- */
.header { align-items: center; }
.brand { display: flex; align-items: center; }
.brand h1 { line-height: 1; }

.nav { display: flex; align-items: center; }
.nav a,
.nav .account-trigger{
  display: inline-flex;
  align-items: center;
  line-height: 1;
  vertical-align: middle;
}

/* Micro-ajustement global */
.header .nav{ transform: translateY(-2px); }


/* --- Account UX: when logged in, turn menu into a simple "Mon compte" link --- */
/* By default (guest): show dropdown trigger "Compte", hide direct link */
.account .account-trigger{ display:inline-flex; }
.account-link{ display:none; padding:8px 12px; border-radius:8px; color:var(--muted); font-weight:600; }
.account-link:hover{ color:var(--primary); background:rgba(17,17,17,0.03); }

/* When logged in: hide dropdown, show the simple link */
.logged-in .account{ display:none !important; }
.logged-in .account-link{ display:inline-flex; align-items:center; }

/* HOTFIX STRIPE SCROLL (global) */
html, body { overflow-y:auto !important; height:auto !important; }
.checkout-stripe-wrapper { max-height:80vh !important; overflow-y:auto !important; }
@media (max-width:768px){ .checkout-stripe-wrapper{ max-height:85vh !important; } }



/* === Verdor cart widget (revamped) === */
#cart-widget[aria-hidden="true"]{ display:none !important; }
#cart-widget{
  position: fixed; top: 12px; right: 12px; width: min(420px, 92vw);
  max-height: 86vh; overflow: hidden; background: #fff;
  border: 1px solid rgba(17,17,17,.08); border-radius: 16px;
  box-shadow: 0 18px 60px rgba(0,0,0,.22); z-index: 1002;
  display: flex; flex-direction: column;
}
#cart-widget .head{
  display:flex; align-items:center; justify-content:space-between;
  padding: 16px 18px; border-bottom:1px solid rgba(17,17,17,.06); font-weight:800;
}
#cart-widget .close{
  border: 1px solid #eee; background:#fff; border-radius: 10px; width:34px; height:34px; cursor:pointer;
}
#cart-widget .items{
  padding: 10px 16px; overflow:auto; flex:1; display:flex; flex-direction:column; gap:12px;
}
#cart-widget .item{
  display:grid; grid-template-columns: 72px 1fr auto; gap:12px; align-items:center;
  border:1px solid rgba(17,17,17,.06); border-radius:12px; padding:10px; background:#fff;
}
#cart-widget .item img{ width:72px; height:72px; object-fit:contain; background:#f6f7f8; border-radius:10px; }
#cart-widget .title{ font-weight:700; }
#cart-widget .price{ font-weight:700; white-space:nowrap; }
#cart-widget .foot{
  border-top:1px solid rgba(17,17,17,.08); padding: 14px 16px; display:flex; align-items:center; justify-content:space-between; gap:12px;
}
#cart-widget .foot .total{ font-weight:800; }
#cart-widget .actions{ display:flex; gap:10px; }
#cart-widget .btn{ border:none; border-radius: 10px; padding: 10px 14px; font-weight:700; cursor:pointer; }
#cart-widget .btn.secondary{ background:#fff; border:1px solid #e5e7eb; }
#cart-widget .btn.primary{ background: var(--accent); color:#111; }

.nav-toggle{ display:none !important; }



/* === Cart Drawer Recap (v9) === */
#cart-widget{position:fixed; top:14px; right:14px; width:min(460px, 92vw); max-height:86vh;
  background:#fff; border:1px solid rgba(17,17,17,.08); border-radius:16px; box-shadow:0 18px 60px rgba(0,0,0,.22); z-index:1002;
  display:flex; flex-direction:column; overflow:hidden;}
#cart-widget[aria-hidden="true"]{ display:none !important; }
#cart-widget, #cart-widget *{ writing-mode: horizontal-tb !important; text-orientation: mixed !important; }
#cart-widget .head{ display:flex; align-items:center; justify-content:space-between; padding:16px 18px;
  border-bottom:1px solid rgba(17,17,17,.08); font-weight:800; }
#cart-widget .close{ border:1px solid #eee; background:#fff; width:34px; height:34px; border-radius:10px; cursor:pointer; }
#cart-widget .body{ overflow:auto; padding:14px 16px; }
#cart-widget .items{ display:flex; flex-direction:column; gap:10px; }
#cart-widget .row{ display:grid; grid-template-columns:60px 1fr auto; gap:12px; align-items:center;
  border:1px solid rgba(17,17,17,.08); border-radius:12px; padding:10px; background:#fff; }
#cart-widget .thumb img{ width:60px; height:60px; object-fit:contain; background:#f5f6f8; border-radius:10px; display:block; }
#cart-widget .label{ font-weight:700; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
#cart-widget .qty{ color:#6b6b6b; white-space:nowrap; }
#cart-widget .line{ font-weight:800; white-space:nowrap; }
#cart-widget .foot{ display:flex; align-items:center; justify-content:space-between; gap:12px;
  padding:14px 16px; border-top:1px solid rgba(17,17,17,.08); background:#fff; }
#cart-widget .total{ font-weight:800; }
#cart-widget .actions{ display:flex; gap:10px; }
#cart-widget .btn{ border:none; border-radius:10px; padding:10px 14px; font-weight:700; cursor:pointer; }
#cart-widget .btn.primary{ background: var(--accent); color:#111; }
#cart-widget .btn.secondary{ background:#fff; border:1px solid #e5e7eb; }
.nav-toggle{ display:none !important; } /* hide hamburger */


/* === Cart Drawer cleanup (v10) === */
#cart-widget .body .btn,
#cart-widget .body .checkout,
#cart-widget .body .cart-actions{ display:none !important; }
#cart-widget .foot .actions { display:flex !important; }
#cart-widget .pay-card,
#cart-widget [data-pay-card]{ display:none !important; }



/* === Cart UX Additions (v11): backdrop + fly-to-cart animation === */
.vd-backdrop{
  position: fixed; inset: 0; background: rgba(0,0,0,.34);
  opacity: 0; pointer-events: none; transition: opacity .18s ease; z-index: 1001;
}
.vd-backdrop.show{ opacity: 1; pointer-events: all; }

.fly-pill{
  position: fixed; width: 16px; height: 16px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 6px 18px rgba(0,0,0,.25);
  pointer-events: none; z-index: 1100; transform: translate(-50%,-50%);
  animation: fly-to-cart .6s cubic-bezier(.24,.8,.26,1) forwards;
}
@keyframes fly-to-cart{
  0%{ transform: translate(var(--from-x), var(--from-y)) scale(1); opacity:1; }
  100%{ transform: translate(var(--to-x), var(--to-y)) scale(.2); opacity:0; }
}
.cta.added{ transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,.12); }


/* === v12 Toast & actions spacing === */
.vd-toast{
  position: fixed; top: 16px; right: 16px; z-index: 1200;
  background: #111; color: #fff; border-radius: 12px; 
  padding: 10px 12px; display:flex; align-items:center; gap:10px;
  box-shadow: 0 18px 40px rgba(0,0,0,.35); opacity: 0; transform: translateY(-6px);
  transition: opacity .16s ease, transform .16s ease;
}
.vd-toast.show{ opacity: 1; transform: translateY(0); }
.vd-toast img{ width: 34px; height: 34px; object-fit: contain; background:#fff; border-radius:8px; }
#cart-widget .actions{ display:flex; gap:10px; flex-wrap: wrap; }


/* v13: product grid safety */
#gallery, #mini-gallery{ display:grid; grid-template-columns: repeat(auto-fill, minmax(220px,1fr)); gap: 18px; }
.card{ display:block; border:1px solid rgba(17,17,17,.08); border-radius:12px; padding:12px; background:#fff; }
.card img{ width:100%; height:180px; object-fit:contain; display:block; background:#f6f7f8; border-radius:10px; }
.card .title{ font-weight:700; margin-top:8px; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.card .price{ font-weight:800; margin-top:4px; }
.card .cta{ margin-top:10px; border:none; border-radius:10px; padding:10px 14px; font-weight:700; background: var(--accent); color:#111; cursor:pointer; width:100%; }


/* === v15 Add-to-cart UX === */
#cart-count.bump{ animation: cart-bump .34s ease; }
@keyframes cart-bump{
  0% { transform: scale(1); }
  40% { transform: scale(1.25); }
  100% { transform: scale(1); }
}
.fly-pill{ width: 18px; height: 18px; } /* a bit bigger so it's visible */
.vd-toast{ background:#111; color:#fff; } /* ensure visible on all themes */


/* === v17: navbar cart label + badge === */
.nav-cart-link{ display:inline-flex; align-items:center; gap:8px; font-weight:600; }
#cart-count, .cart-count, [data-cart-count]{
  display:inline-flex; align-items:center; justify-content:center;
  min-width:22px; height:22px; padding:0 6px; border-radius:999px;
  background:#111; color:#fff; font-size:12px; line-height:1; font-weight:700;
}


/* === v22: Nav 'Panier' looks like other tabs === */
.nav-cart-link{
  display:inline-flex; align-items:center; gap:6px;
  padding:0; margin:0; background:transparent; border:none; border-radius:0;
  font: inherit; color: inherit; font-weight: 600;
}
#cart-count, .cart-count, [data-cart-count]{
  display:inline-flex; align-items:center; justify-content:center;
  min-width:18px; height:18px; padding:0 5px; border-radius:999px;
  background:#111; color:#fff; font-size:11px; line-height:1; font-weight:700;
}


/* === v23: Nav Panier matches other tabs; only the number is a pill === */
.nav-cart-link{
  display:inline-flex; align-items:center; gap:6px;
  padding:0 !important; margin:0; background:transparent !important; border:none; border-radius:0;
  font: inherit; color: inherit; font-weight:600;
}
header .badge:not(#cart-count):not(.cart-count):not([data-cart-count]),
nav .badge:not(#cart-count):not(.cart-count):not([data-cart-count]){
  background: transparent !important; color: inherit !important; padding:0 !important; border-radius:0 !important;
  font-weight:inherit !important;
}
#cart-count, .cart-count, [data-cart-count]{
  display:inline-flex; align-items:center; justify-content:center;
  min-width:18px; height:18px; padding:0 6px; border-radius:999px;
  background:#111; color:#fff; font-size:11px; line-height:1; font-weight:700;
}


/* === VERDOR: Desktop Cart Tab (PC only) v1 === */
@media (min-width: 821px){
  /* Structure & alignment like other nav items */
  header .nav .nav-cart-link{
    display: inline-flex;
    flex-direction: column; /* badge above, label below */
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 8px;
    color: var(--muted);
    font-weight: 600;
    text-decoration: none;
  }
  header .nav .nav-cart-link:hover{
    color: var(--primary);
    background: rgba(17,17,17,0.03);
  }
  header .nav .nav-cart-link .label{
    line-height: 1;
  }
  /* Circular badge (number) */
  header .nav .nav-cart-link .badge{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 6px;
    border-radius: 999px;
    background: #111;
    color: #fff;
    font-size: 11px;
    line-height: 1;
    font-weight: 700;
  }
}
/* Strong override to avoid legacy styles turning the whole link into a badge */
header .nav #cart-count.badge{ 
  /* if any old rule added 'badge' directly to the link, neutralize it */
  background: transparent !important;
  color: inherit !important;
  min-width: auto !important;
  height: auto !important;
  padding: 8px 12px !important;
  border-radius: 8px !important;
}



/* === VERDOR: Neutralize legacy #cart-count pill === */
#cart-count{
  background: transparent !important;
  color: inherit !important;
  min-width: 0 !important;
  height: auto !important;
  padding: 0 !important;
  border-radius: 0 !important;
  font-size: inherit !important;
  font-weight: inherit !important;
}



/* === VERDOR: Robust desktop cart styling (location-agnostic) === */
@media (min-width: 821px){
  #cart-count{
    display: inline-flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 8px 12px !important;
    border-radius: 8px !important;
    text-decoration: none !important;
  }
  #cart-count .label{
    line-height: 1 !important;
  }
  #cart-count .badge{
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 18px !important;
    height: 18px !important;
    padding: 0 6px !important;
    border-radius: 999px !important;
    background: #111 !important;
    color: #fff !important;
    font-size: 11px !important;
    line-height: 1 !important;
    font-weight: 700 !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
}



/* === VERDOR: Desktop reset for legacy inline positioning of #cart-count === */
@media (min-width: 821px){
  #cart-count{
    position: static !important;
    right: auto !important;
    top: auto !important;
    margin: 0 !important;
  }
}



/* === VERDOR v4: Desktop cart link same baseline as other tabs; badge absolutely positioned === */
@media (min-width: 821px){
  #cart-count{
    display: inline-block !important;
    position: relative !important;
    vertical-align: middle !important;
    padding: 8px 12px !important;
    border-radius: 8px !important;
    text-decoration: none !important;
  }
  #cart-count .label{
    display: inline-block !important;
    line-height: 1 !important;
  }
  #cart-count .badge{
    position: absolute !important;
    left: 50% !important;
    transform: translateX(-50%) translateY(-8px) !important; /* above the word */
    top: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 18px !important;
    height: 18px !important;
    padding: 0 6px !important;
    border-radius: 999px !important;
    background: #111 !important;
    color: #fff !important;
    font-size: 11px !important;
    line-height: 1 !important;
    font-weight: 700 !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
}



/* ==== Global mobile cleanup: keep mb27 header only ==== */
@media (max-width: 1024px){
  header .nav-toggle,
  header .menu-toggle,
  header #menu-toggle,
  header .hamburger { display:none !important; }
  /* keep .mb27-burger visible */
}


/* === vd-toast-mobile-kill === */
@media (max-width: 820px){
  .vd-toast{ display:none !important; opacity:0 !important; visibility:hidden !important; }
}


/* === HERO / PROMO clean === */
.hero.hero-premium{position:relative;overflow:hidden;background:#fff;border-radius:22px;box-shadow:0 16px 48px rgba(0,0,0,.08);padding:28px 24px;margin:0 auto 36px;max-width:1200px}
.hero.hero-premium .hero-left{z-index:2;position:relative}
.hero.hero-premium .hero-left h1{font-size:clamp(28px,5.5vw,56px);line-height:1.06;margin:.2rem 0 0}
.hero.hero-premium .hero-left p{font-size:clamp(14px,2.3vw,18px);color:#3e3e3e;max-width:640px;margin:10px 0 16px}
.hero.hero-premium .hero-right{position:relative}
.hero-premium .hero-imgwrap{position:relative;display:inline-block}
.hero.hero-premium .hero-right a{display:block;position:relative;z-index:1}
.hero.hero-premium .hero-right img.hero-img{max-width:720px;width:100%;display:block;margin:0 auto;transition:transform .25s ease,opacity .25s ease;filter: drop-shadow(0 22px 60px rgba(0,0,0,.15));}
.hero-premium .hero-badge{position:absolute;right:18px;top:18px;background:#c7a557;color:#fff;padding:8px 14px;border-radius:10px;font-weight:700;letter-spacing:.3px;backdrop-filter:blur(6px);z-index:5}
.hero-premium .hero-right .hero-nav{position:absolute;top:50%;transform:translateY(-50%);background:#fff;color:#111;border:1px solid rgba(0,0,0,.12);border-radius:999px;width:40px;height:40px;display:flex;align-items:center;justify-content:center;box-shadow:0 6px 18px rgba(0,0,0,.1);cursor:pointer;z-index:10}
.hero-premium .hero-right .hero-nav.prev{left:6px}
.hero-premium .hero-right .hero-nav.next{right:6px}
.hero-premium .hero-dots{display:flex;gap:8px;justify-content:center;margin-top:10px}
.hero-premium .hero-dot{width:8px;height:8px;border-radius:999px;background:#d7d7d7;border:none;cursor:pointer}
.hero-premium .hero-dot.is-active{background:#c7a557}
@media(max-width:820px){
  .hero.hero-premium{padding:18px 14px;border-radius:18px}
  .hero-premium .hero-right .hero-nav{width:36px;height:36px}
}

/* === Mobile menu: drawer 78vw, not full-screen === */
@media(max-width:820px){
  .narrow-menu{width:78vw!important;max-width:78vw!important;right:auto!important;left:0!important;border-top-right-radius:18px;border-bottom-right-radius:18px;box-shadow:0 10px 40px rgba(0,0,0,.18)}
  .narrow-menu .menu-item{padding-right:12px}
  .menu-backdrop-soft{background:linear-gradient(90deg, rgba(0,0,0,.08), rgba(0,0,0,0))!important}
}


/* === PATCH v3: hero arrows + dots placement + badge mobile === */
.hero.hero-premium .hero-right{position:relative}
.hero.hero-premium .hero-right .hero-nav{position:absolute;top:50%;transform:translateY(-50%);background:#fff;color:#111;border:1px solid rgba(0,0,0,.12);width:40px;height:40px;border-radius:999px;display:flex;align-items:center;justify-content:center;box-shadow:0 6px 18px rgba(0,0,0,.1);cursor:pointer;z-index:10}
.hero.hero-premium .hero-right .hero-nav.prev{left:8px}
.hero.hero-premium .hero-right .hero-nav.next{right:8px}
.hero.hero-premium .hero-right .hero-dots{position:absolute;left:50%;transform:translateX(-50%);bottom:10px;display:flex;gap:6px;z-index:9}
.hero.hero-premium .hero-right .hero-dot{width:10px;height:10px;border-radius:999px;background:#d5d5d5;border:none;cursor:pointer;opacity:.9}
.hero.hero-premium .hero-right .hero-dot.is-active{background:#111}
@media(max-width:820px){
  .hero.hero-premium .hero-right .hero-nav{width:36px;height:36px}
  .hero-premium .hero-badge{right:12px;top:12px;transform:none;pointer-events:none}
}


/* ===== PATCH: HERO desktop+mobile polish ===== */

/* Desktop: stable two-column layout to avoid vertical letters */
@media (min-width: 981px){
  .hero.hero-premium{
    display:grid;
    grid-template-columns: 46% 54%;
    align-items:center;
  }
  .hero.hero-premium .hero-left{ min-width:420px; max-width:640px; }
  .hero.hero-premium .hero-left h1{
    white-space:normal; word-break:normal; overflow-wrap:break-word;
  }
  .hero.hero-premium .hero-right img.hero-img{ max-width:720px; }
}

/* Base arrows + position (then override color on desktop) */
.hero.hero-premium .hero-right{ position:relative; }
.hero.hero-premium .hero-right .hero-nav{
  position:absolute; top:50%; transform:translateY(-50%);
  width:40px; height:40px; border-radius:999px;
  display:flex; align-items:center; justify-content:center;
  background:#fff; color:#111; border:1px solid rgba(0,0,0,.12);
  z-index:10; cursor:pointer;
}
.hero.hero-premium .hero-right .hero-nav.prev{ left:8px; }
.hero.hero-premium .hero-right .hero-nav.next{ right:8px; }

/* Desktop: gold arrows */
@media (min-width: 981px){
  .hero.hero-premium .hero-right .hero-nav{
    background:#c7a557; color:#fff; border-color:transparent;
    box-shadow:0 10px 24px rgba(0,0,0,.18);
  }
  .hero.hero-premium .hero-right .hero-nav:hover{ filter:brightness(1.05); }
}

/* Dots centered under the image */
.hero.hero-premium .hero-right .hero-dots{
  position:absolute; left:50%; transform:translateX(-50%);
  bottom:12px; display:flex; gap:6px; z-index:9;
}
.hero.hero-premium .hero-right .hero-dot{
  width:9px; height:9px; border-radius:999px;
  background:#d5d5d5; border:none; opacity:.9;
}
.hero.hero-premium .hero-right .hero-dot.is-active{ background:#c7a557; } /* actif doré */

/* Mobile: hide arrows, correct badge */
@media (max-width:820px){
  .hero.hero-premium .hero-right .hero-nav{ display:none !important; }
  .hero-premium .hero-badge{ right:12px; top:12px; transform:none; }
}

/* Swipe hint bubble */
.hero-swipe-hint{
  position:absolute; right:14px; bottom:14px; z-index:8;
  display:flex; align-items:center; gap:6px;
  background:rgba(0,0,0,.55); color:#fff; font-size:12px;
  padding:6px 10px; border-radius:999px; backdrop-filter:blur(4px);
  animation:hintFade 4s 1 both;
}
.hero-swipe-hint svg{ width:14px; height:14px; opacity:.9; }
@keyframes hintFade{
  0%{opacity:0; transform:translateX(6px)}
  8%{opacity:1; transform:translateX(0)}
  85%{opacity:1}
  100%{opacity:0; transform:translateX(6px)}
}


/* === SWIPE-ONLY HERO (no arrows, no dots) === */
.hero .hero-right{ position:relative; }
.hero .hero-right .hero-nav,
.hero .hero-dots{ display:none !important; }

/* Desktop: keep hero grid stable */
@media (min-width: 981px){
  .hero{ display:grid; grid-template-columns:46% 54%; align-items:center; gap:2rem; }
  .hero .hero-left{ min-width:420px; max-width:640px; }
  .hero .hero-left h1{ white-space:normal; word-break:normal; overflow-wrap:break-word; }
}

/* Cursor hint for drag on desktop */
@media (hover:hover){
  .hero .hero-right a{ cursor: grab; }
  .hero .hero-right a:active{ cursor: grabbing; }
}


/* === HERO progress pills (iOS-like) === */
.hero .hero-right{ position:relative; }
.hero .hero-progress{
  position:absolute;
  left:50%;
  transform:translateX(-50%);
  bottom:12px;
  display:flex;
  gap:6px;
  z-index:9;
  pointer-events:none;
}
.hero .hero-progress .hero-bar{
  width:18px;
  height:4px;
  border-radius:999px;
  background:#e6e6e6;   /* light grey */
  box-shadow:0 0 0 1px rgba(0,0,0,0.03) inset;
  opacity:.95;
}
.hero .hero-progress .hero-bar.is-active{
  background:#cfcfcf;   /* slightly darker to stand out */
  box-shadow:0 0 0 1px rgba(0,0,0,0.08) inset;
}
@media (max-width: 480px){
  .hero .hero-progress .hero-bar{ width:14px; height:3.5px; }
}


/* === HERO progress pills (iOS-like) — visible below image === */
.hero .hero-right{ position:relative; }
.hero .hero-progress{
  position: static;              /* sit BELOW the image, not overlay */
  margin: 10px auto 0;           /* small spacing from image */
  display: flex;
  justify-content: center;
  gap: 8px;
  width: 100%;
}
.hero .hero-progress .hero-bar{
  width: 22px;
  height: 4px;
  border-radius: 999px;
  background: #e9e9e9;                 /* light grey */
  box-shadow: 0 0 0 1px rgba(0,0,0,.05) inset;
}
.hero .hero-progress .hero-bar.is-active{
  background: #bfc3c7;                 /* darker so it pops on white */
  box-shadow: 0 0 0 1px rgba(0,0,0,.12) inset;
}
@media (max-width: 480px){
  .hero .hero-progress .hero-bar{ width: 18px; height: 4px; }
  .hero .hero-progress{ gap: 7px; margin-top: 8px; }
}


/* === FINAL: progress pills visible under hero image === */
.hero .hero-right{ position:relative; }
.hero .hero-progress{
  position: static;
  margin: 10px auto 0;
  display: flex;
  justify-content: center;
  gap: 8px;
  width: 100%;
}
.hero .hero-progress .hero-bar{
  width: 22px;
  height: 4px;
  border-radius: 999px;
  background: #e9e9e9;
  box-shadow: 0 0 0 1px rgba(0,0,0,.05) inset;
}
.hero .hero-progress .hero-bar.is-active{
  background: #bfc3c7;
  box-shadow: 0 0 0 1px rgba(0,0,0,.12) inset;
}
@media (max-width:480px){
  .hero .hero-progress .hero-bar{ width: 18px; height: 4px; }
  .hero .hero-progress{ gap: 7px; margin-top: 8px; }
}


/* === PROGRESS BARS: separate row under image (always visible) === */
.hero .hero-progress{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:8px;
  margin:12px auto 0;
  width:100%;
}
.hero .hero-progress .hero-bar{
  width:22px;
  height:4px;
  border-radius:999px;
  background:#e9e9e9;
  box-shadow:0 0 0 1px rgba(0,0,0,.05) inset;
}
.hero .hero-progress .hero-bar.is-active{
  background:#bfc3c7;
  box-shadow:0 0 0 1px rgba(0,0,0,.12) inset;
}
@media(max-width:480px){
  .hero .hero-progress .hero-bar{ width:18px; height:4px; }
  .hero .hero-progress{ gap:7px; margin-top:10px; }
}


/* === LOCK HERO IMAGE FRAME & KEEP CONSISTENT SCALE === */
.hero .hero-right a,
.hero .hero-right .hero-image-frame{
  display:block;
  width:100%;
  aspect-ratio: 16 / 9;              /* lock ratio so layout doesn't jump */
  background:#fff;
  border-radius:12px;
  overflow:hidden;
}
.hero .hero-right a img,
.hero .hero-right .hero-image-frame img{
  width:100%;
  height:100%;
  object-fit:contain;                 /* keep full image visible without cropping */
  display:block;
}
/* Make sure the hero container doesn't shrink while image is loading */
.hero .hero-right{ min-height: 0; }


/* === UNIFIED: fixed hero frame, hidden stubs for legacy scripts, pointer swipe === */
.hero .hero-right{ position:relative; }
.hero .hero-right .hero-frame{
  display:block;
  width:100%;
  aspect-ratio: 3 / 2;      /* consistent visual ratio */
  background:#fff;
  border-radius:12px;
  overflow:hidden;
  box-shadow: 0 6px 24px rgba(0,0,0,.06);
}
.hero .hero-right .hero-frame img{
  width:100%;
  height:100%;
  object-fit:contain;
  display:block;
}

/* Hidden fallback elements some old scripts expect (arrows/dots) */
.hero .hero-right .hero-nav,
.hero .hero-right .hero-dots{ display:none !important; }

/* Progress pills directly under image */
.hero .hero-progress{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:8px;
  margin:10px auto 0;
  width:100%;
}
.hero .hero-progress .hero-bar{
  width:22px; height:4px; border-radius:999px;
  background:#e9e9e9;
  box-shadow:0 0 0 1px rgba(0,0,0,.05) inset;
}
.hero .hero-progress .hero-bar.is-active{
  background:#bfc3c7;
  box-shadow:0 0 0 1px rgba(0,0,0,.12) inset;
}

/* Cursor hint on desktop for drag */
@media (hover:hover){
  .hero .hero-right .hero-frame{ cursor:grab; }
  .hero .hero-right .hero-frame:active{ cursor:grabbing; }
}

/* Keep typographic side stable */
@media (min-width:981px){
  .hero{ display:grid; grid-template-columns:46% 54%; align-items:center; gap:2rem; }
  .hero .hero-left{ min-width:420px; max-width:640px; }
}


/* === HERO: fixed frame 16/9 + centered progress === */
.hero .hero-right .hero-frame{ display:block; width:100%; aspect-ratio:16/9; background:#fff; border-radius:12px; overflow:hidden; box-shadow:0 6px 24px rgba(0,0,0,.06); }
.hero .hero-right .hero-frame img{ width:100%; height:100%; object-fit:contain; display:block; }

.hero .hero-progress{ display:flex; justify-content:center; align-items:center; gap:8px; margin:10px auto 0; width:100%; max-width:100%; }
.hero .hero-progress .hero-bar{ width:22px; height:4px; border-radius:999px; background:#e9e9e9; box-shadow:0 0 0 1px rgba(0,0,0,.05) inset; }
.hero .hero-progress .hero-bar.is-active{ background:#bfc3c7; box-shadow:0 0 0 1px rgba(0,0,0,.12) inset; }
@media(max-width:480px){ .hero .hero-progress .hero-bar{ width:18px; height:4px; } .hero .hero-progress{ gap:7px; margin-top:8px; } }


/* ===== Panier (cart.html uniquement) : ligne sur une seule ligne ===== */
body.cart-page .table{ table-layout: fixed; width:100%; }
body.cart-page .table th, body.cart-page .table td{ vertical-align: middle; }

/* 1 Photo */
body.cart-page .table th:nth-child(1), body.cart-page .table td:nth-child(1){ width:64px; }

/* 2 Produit */
body.cart-page .table th:nth-child(2), body.cart-page .table td:nth-child(2){
  width:auto; padding-right:10px;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}

/* 3 Quantité */
body.cart-page .table th:nth-child(3), body.cart-page .table td:nth-child(3){
  width:100px; text-align:center;
}

/* 4 Prix unitaire */
body.cart-page .table th:nth-child(4), body.cart-page .table td:nth-child(4){
  width:120px; text-align:right; white-space:nowrap;
}

/* 5 Sous-total (s'il existe) */
body.cart-page .table th:nth-child(5), body.cart-page .table td:nth-child(5){
  width:120px; text-align:right; white-space:nowrap;
}

/* 6 Action (Supprimer) */
body.cart-page .table th:nth-child(6), body.cart-page .table td:nth-child(6){
  width:132px; text-align:right;
}

/* Quantité input compact et stable */
body.cart-page #qty-input{ width:70px; min-width:70px; max-width:70px; }



/* ===== Cart page: prevent horizontal sliding ===== */
body.cart-page,
body.cart-page html { overflow-x: hidden; }

body.cart-page .section,
body.cart-page .container,
body.cart-page .card,
body.cart-page .card-body,
body.cart-page .cart-wrap{ overflow-x: hidden; }

body.cart-page .table{ width:100%; table-layout: fixed; }
body.cart-page img{ max-width:100%; height:auto; display:block; }



/* === OOS (rupture) UX improvements === */
.cta[disabled], .btn[disabled], button[disabled]{
  opacity:.45 !important;
  cursor:not-allowed !important;
  filter:grayscale(20%);
  pointer-events:none;
}
.card.oos, .product-card.oos{ opacity:1; }
.card.oos img, .product-card.oos img{ opacity:.5; filter:grayscale(35%); }
.card .oos-note, .product .oos-note{ font-size:13px; color:#b91c1c; margin-top:6px; }
.stock-badge{display:inline-block;padding:4px 10px;border-radius:999px;font-size:12px;border:1px solid #e5e7eb;color:#111;background:#fff;margin:6px 0}
.stock-badge.oos{border-color:#ef4444;color:#b91c1c;background:#fff7f7}
[data-oos="1"] .cta, [data-oos="1"] .btn{ pointer-events:none; }

/* OOS global */
button[disabled], .btn[disabled], .cta[disabled]{opacity:.45 !important; cursor:not-allowed !important; filter:grayscale(25%); pointer-events:none;}
.card.oos img{opacity:.55; filter:grayscale(35%);}

.verdor-tile.oos img{opacity:.55; filter:grayscale(35%);}

/* Precommande CTA (distinct du panier) */
.cta.preorder, .btn.preorder, button.preorder{
  background:#fdf4d7 !important;
  border:1px solid #f3d38c !important;
  color:#7a5a00 !important;
}
.cta.preorder[disabled], .btn.preorder[disabled], button.preorder[disabled]{
  opacity:0.9;
}
