/* Dolmeh v105 — clean stabilization layer built from v103 */
:root{
  --v105-dock-bottom:8px;
  --v105-dock-h:72px;
  --v105-dock-gap:8px;
  --v105-cart-h:60px;
}

/* ---------- HEADER ---------- */
html body .v77-header{
  border-radius:28px!important;
  overflow:hidden!important;
  clip-path:inset(0 round 28px)!important;
  background-clip:padding-box!important;
}
html[data-theme="light"] body .v77-header{
  background:linear-gradient(145deg,rgba(255,253,249,.94),rgba(249,240,228,.91))!important;
  border:1px solid rgba(181,128,79,.18)!important;
  box-shadow:0 12px 28px rgba(120,75,38,.07),inset 0 1px 0 rgba(255,255,255,.98)!important;
}
html[data-theme="dark"] body .v77-header{
  background:linear-gradient(145deg,rgba(42,42,37,.94),rgba(31,31,27,.92))!important;
  border:1px solid rgba(239,168,70,.12)!important;
}

/* ---------- MOBILE HERO: compact and not washed out ---------- */
@media(max-width:760px){
  html body .site-shell,
  html body .site-shell.compact{padding-inline:10px!important}

  html body .v77-header{
    width:100%!important;
    height:78px!important;
    min-height:78px!important;
    margin:12px 0 16px!important;
    padding:8px 10px!important;
    border-radius:24px!important;
    clip-path:inset(0 round 24px)!important;
    grid-template-columns:54px minmax(0,1fr) 54px!important;
  }
  html body .v77-header-side{z-index:4!important}
  html body .v77-brand{
    position:absolute!important;
    left:50%!important;
    top:50%!important;
    transform:translate(-50%,-50%)!important;
    width:auto!important;
    max-width:220px!important;
    height:60px!important;
    display:flex!important;
    align-items:center!important;
    gap:8px!important;
    z-index:3!important;
  }
  html body .v77-brand-disc{width:50px!important;height:50px!important;flex:0 0 50px!important}
  html body .v77-brand-disc .header-brand-video-only,
  html body .v77-brand-disc .header-chroma-brand,
  html body .v77-brand-disc .header-plain-video-stage{width:50px!important;height:50px!important}
  html body .v77-brand-disc .header-logo-video,
  html body .v77-brand-disc .header-logo-chroma-canvas,
  html body .v77-brand-disc .header-logo-chroma-fallback{width:48px!important;height:48px!important;max-width:48px!important;max-height:48px!important}
  html body .v96-brand-copy{display:flex!important;flex-direction:column!important;align-items:flex-start!important;min-width:0!important}
  html body .v96-brand-copy strong{display:block!important;font-size:15px!important;line-height:1.25!important;white-space:nowrap!important;max-width:120px!important;overflow:hidden!important;text-overflow:ellipsis!important}
  html body .v96-brand-copy small{display:block!important;font-size:8.5px!important;line-height:1.25!important;margin-top:2px!important;white-space:nowrap!important}
  html body .v77-nav-button,
  html body .cart-header-btn{width:46px!important;height:46px!important;min-width:46px!important;min-height:46px!important;border-radius:14px!important}

  html body .v98-reference-hero{
    min-height:500px!important;
    height:500px!important;
    margin:0 0 26px!important;
    grid-template-columns:1fr!important;
    grid-template-rows:55% 45%!important;
    border-radius:26px!important;
    overflow:hidden!important;
    clip-path:inset(0 round 26px)!important;
  }
  html body .v98-hero-media{grid-row:1!important;min-height:0!important}
  html[data-theme="light"] body .v98-hero-media img{
    filter:saturate(1.06) contrast(1.04) brightness(.97)!important;
  }
  html[data-theme="light"] body .v98-hero-media:after{
    background:linear-gradient(0deg,rgba(249,235,218,.94) 0%,rgba(249,235,218,.52) 25%,transparent 55%)!important;
  }
  html[data-theme="dark"] body .v98-hero-media:after{
    background:linear-gradient(0deg,rgba(14,13,10,.92) 0%,rgba(14,13,10,.42) 27%,transparent 56%)!important;
  }
  html body .v98-hero-copy{
    grid-row:2!important;
    margin-top:-28px!important;
    padding:0 18px 18px!important;
    justify-content:flex-end!important;
    align-items:stretch!important;
  }
  html body .v98-location-pill{align-self:flex-end!important;font-size:9px!important;padding:6px 9px!important}
  html body .v98-hero-copy h2{font-size:34px!important;line-height:1.23!important;margin-top:9px!important}
  html body .v98-hero-copy>p{font-size:11.5px!important;line-height:1.75!important;margin-top:6px!important}
  html body .v98-hero-actions{margin-top:12px!important;gap:8px!important}
  html body .v98-glass-button{min-height:46px!important;height:46px!important;border-radius:16px!important;font-size:10.5px!important;padding:0 10px!important}
  html body .v98-hero-mini-meta{margin-top:7px!important;gap:5px!important}
  html body .v98-hero-mini-meta span{font-size:7.8px!important;padding:5px 7px!important}
}

/* ---------- BOTTOM DOCK ---------- */
html body .bottom-dock.v98-bottom-dock{
  bottom:max(var(--v105-dock-bottom),env(safe-area-inset-bottom))!important;
  height:var(--v105-dock-h)!important;
  min-height:var(--v105-dock-h)!important;
  padding:5px!important;
  border-radius:26px!important;
  overflow:hidden!important;
  clip-path:inset(0 round 26px)!important;
  contain:paint!important;
  z-index:950!important;
}
html body .v98-bottom-dock>.v98-dock-segment,
html body .v98-bottom-dock>.v98-dock-segment:hover,
html body .v98-bottom-dock>.v98-dock-segment:active,
html body .v98-bottom-dock>.v98-dock-segment.is-tapped,
html body .v98-bottom-dock>.v98-dock-segment.is-pressing{
  height:62px!important;
  min-height:62px!important;
  max-height:62px!important;
  margin:0!important;
  border-radius:18px!important;
  overflow:hidden!important;
  clip-path:inset(0 round 18px)!important;
  transform:none!important;
  box-shadow:none!important;
  background:transparent!important;
}
html body .v98-bottom-dock>.v98-dock-segment:before{display:none!important}
html body .v98-bottom-dock .theme-toggle .v98-dock-icon,
html body .v98-bottom-dock .language-dock .lang-glyph{
  transition:transform .18s ease!important;
}
html body .v98-bottom-dock .theme-toggle:active .v98-dock-icon,
html body .v98-bottom-dock .theme-toggle.is-pressing .v98-dock-icon,
html body .v98-bottom-dock .language-dock:active .lang-glyph,
html body .v98-bottom-dock .language-dock.is-pressing .lang-glyph{transform:scale(.9)!important}
html[data-theme="light"] body .bottom-dock.v98-bottom-dock{
  background:linear-gradient(145deg,rgba(255,252,247,.97),rgba(245,237,226,.95))!important;
  border:1px solid rgba(181,130,81,.18)!important;
  box-shadow:0 14px 34px rgba(111,67,30,.11),inset 0 1px 0 #fff!important;
}
html[data-theme="dark"] body .bottom-dock.v98-bottom-dock{
  background:linear-gradient(145deg,rgba(44,35,27,.95),rgba(29,25,20,.95))!important;
  border:1px solid rgba(239,172,71,.22)!important;
}

/* floating cart always sits above dock with a real gap */
html body .cart-float{
  bottom:calc(var(--v105-dock-bottom) + var(--v105-dock-h) + var(--v105-dock-gap) + env(safe-area-inset-bottom,0px))!important;
  z-index:940!important;
}
html body.has-bottom-dock,
html body:has(.bottom-dock.v98-bottom-dock){
  padding-bottom:calc(var(--v105-dock-bottom) + var(--v105-dock-h) + 18px + env(safe-area-inset-bottom,0px))!important;
}

@media(max-width:760px){
  :root{--v105-dock-h:72px;--v105-dock-bottom:7px;--v105-dock-gap:8px}
  html body .bottom-dock.v98-bottom-dock{
    width:calc(100vw - 18px)!important;
    grid-template-columns:.67fr .67fr 1.66fr!important;
    border-radius:24px!important;
    clip-path:inset(0 round 24px)!important;
  }
  html body .v98-bottom-dock>.v98-dock-segment,
  html body .v98-bottom-dock>.v98-dock-segment:hover,
  html body .v98-bottom-dock>.v98-dock-segment:active,
  html body .v98-bottom-dock>.v98-dock-segment.is-tapped,
  html body .v98-bottom-dock>.v98-dock-segment.is-pressing{
    height:62px!important;min-height:62px!important;max-height:62px!important;border-radius:16px!important;clip-path:inset(0 round 16px)!important;
  }
  html body .v98-bottom-dock .v98-delivery,
  html body .v98-bottom-dock .v98-hours{display:none!important}
  html body .v98-bottom-dock .v98-dock-copy{min-height:auto!important;align-items:center!important;text-align:center!important}
  html body .v98-bottom-dock .v98-dock-copy strong{font-size:8.5px!important}
  html body .v98-bottom-dock .v98-dock-copy small{display:none!important}
  html body .v98-bottom-dock .v98-location{flex-direction:row!important;gap:5px!important;padding-inline:6px!important}
  html body .v98-bottom-dock .v98-location .v98-dock-copy{align-items:center!important;text-align:center!important;min-height:36px!important;justify-content:center!important}
  html body .v98-bottom-dock .v98-location .v98-dock-copy small{display:-webkit-box!important;font-size:6.3px!important;line-height:1.35!important;margin-top:1px!important;text-align:center!important;max-width:150px!important}
  html body .cart-float{
    width:calc(100vw - 18px)!important;
    max-width:none!important;
    min-height:58px!important;
    left:50%!important;
    right:auto!important;
    transform:translateX(-50%) translateY(12px)!important;
    border-radius:18px!important;
  }
  html body .cart-float.is-visible{transform:translateX(-50%)!important}
}

/* ---------- FOOD CARD CONTROL SAFETY ---------- */
html body .qty-stepper,
html body .food-actions>.qty-stepper{
  overflow:hidden!important;
  border-radius:15px!important;
  box-sizing:border-box!important;
}
html body .qty-stepper button,
html body .food-actions>.qty-stepper button{
  margin:0!important;
  line-height:1!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  overflow:hidden!important;
}
html body .qty-stepper .qty-value{display:flex!important;align-items:center!important;justify-content:center!important;min-width:0!important}

/* ---------- LIGHT THEME CLEANUP ---------- */
html[data-theme="light"] body{
  background:#f7f2eb!important;
  color:#432b20!important;
}
html[data-theme="light"] body .site-shell{
  background:linear-gradient(180deg,#fbf7f1,#f5eee5)!important;
}
html[data-theme="light"] body .v98-category-strip,
html[data-theme="light"] body .quick-category-nav{
  background:linear-gradient(145deg,rgba(255,255,255,.72),rgba(249,239,227,.72))!important;
  border-color:rgba(181,128,79,.15)!important;
}
html[data-theme="light"] body .v98-category-chip,
html[data-theme="light"] body .quick-category-item{
  background:linear-gradient(145deg,rgba(255,255,255,.90),rgba(250,241,229,.86))!important;
  border-color:rgba(181,128,79,.14)!important;
  color:#4a3021!important;
}
html[data-theme="light"] body .v98-category-chip:hover,
html[data-theme="light"] body .quick-category-item:hover{border-color:rgba(213,120,62,.28)!important}

@media(max-width:430px){
  html body .v77-brand{max-width:200px!important;gap:6px!important}
  html body .v96-brand-copy strong{font-size:13.5px!important;max-width:103px!important}
  html body .v96-brand-copy small{font-size:7.5px!important}
  html body .v98-reference-hero{height:480px!important;min-height:480px!important;grid-template-rows:54% 46%!important}
  html body .v98-hero-copy h2{font-size:32px!important}
}
