/* Dolmeh v95.3 — Restaurant mobile refinements. Scoped override atop v95.2.
   Unslop workflow by Damir Sokolovsky (@heydamir), CC BY 4.0.
   Direction: warm, assured, food-first. Identity: original crimson, cream and mascot.
   DO NOT change cart state, food prices or payment requests here. */

/* Larger, visible brand without returning to an overlapping absolute logo. */
html body .v77-header,
html body .v77-header.v77-header-home,
html body .v77-header.v77-header-sub {
  min-height: 94px !important;
  height: 94px !important;
  padding: 8px 16px !important;
  margin-block: 16px 16px !important;
  overflow: visible !important;
  grid-template-columns: 48px minmax(0, 1fr) 48px !important;
  border-radius: 16px !important;
}
html body .v77-brand { gap: 10px !important; }
html body .v96-brand-copy { gap: 2px !important; }
html body .v96-brand-copy strong {
  font-size: 20px !important;
  line-height: 1.4 !important;
  font-weight: 600 !important;
  overflow: visible !important;
  letter-spacing: 0 !important;
}
html body .v96-brand-copy small { font-size: 12px !important; line-height: 1.65 !important; }
html body .v77-brand-disc,
html body .v77-brand-disc .header-brand-logo-only,
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,
html body .v77-brand-disc .header-brand-video-only .header-chroma-brand,
html body .v77-brand-disc .header-brand-video-only .header-plain-video-stage {
  width: 72px !important; height: 72px !important;
  min-width: 72px !important; min-height: 72px !important;
  max-width: 72px !important; max-height: 72px !important;
  flex-basis: 72px !important;
  border-radius: 10px !important;
}
html body .v77-brand-disc :is(.header-badge-frame,.header-logo-static,.header-logo-chroma-canvas,.header-logo-video,.header-logo-chroma-fallback,.header-logo-fallback),
html body .v77-brand-disc .header-brand-video-only :is(.header-logo-chroma-canvas,.header-logo-video,.header-logo-chroma-fallback,.header-logo-fallback) {
  width: 70px !important; height: 70px !important;
  min-width: 0 !important; max-width: 70px !important;
  max-height: 70px !important;
  object-fit: contain !important;
}
html body .v77-header .v77-nav-button,
html body .v77-header .cart-header-btn {
  min-width: 46px !important; min-height: 46px !important;
  width: 46px !important; height: 46px !important;
  flex-basis: 46px !important;
  border-radius: 12px !important;
}
html body .v77-header :is(.v77-nav-button,.cart-header-btn) {
  background: var(--dolmeh-soft) !important;
  color: var(--dolmeh-text) !important;
}
html body .v77-header :is(.v77-nav-button,.cart-header-btn):hover { background: var(--dolmeh-hairline) !important; }

/* A real image-only banner. Slider controls, if enabled, still work. */
html body.home-page .hero-v65-overlay { display: none !important; }
html body.home-page .hero-mascot-corner { display: none !important; }

/* A more intentional drawer: brand, a small section key, navigation, then utility actions. */
html body .site-menu-panel {
  width: min(362px, calc(100vw - 12px)) !important;
  padding: 24px 20px calc(20px + env(safe-area-inset-bottom, 0px)) !important;
  background: var(--dolmeh-paper) !important;
  border-inline-start: 1px solid var(--dolmeh-hairline) !important;
  border-radius: 18px 0 0 18px !important;
  gap: 0 !important;
}
html body .site-menu-head {
  gap: 12px !important;
  padding-bottom: 20px !important;
  margin-bottom: 12px !important;
  border-bottom: 1px solid var(--dolmeh-hairline) !important;
}
html body .site-menu-brand { gap: 10px !important; }
html body .site-menu-brand img { width: 84px !important; height: 64px !important; object-fit: contain !important; }
html body .site-menu-brand strong { font-size: 17px !important; line-height: 1.45 !important; }
html body .site-menu-brand small { font-size: 11px !important; line-height: 1.7 !important; }
html body .site-menu-close {
  flex: 0 0 44px !important;
  border: 1px solid var(--dolmeh-hairline) !important;
  border-radius: 12px !important;
  background: var(--dolmeh-soft) !important;
  font-size: 23px !important;
}
html body .v953-menu-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 4px 4px 8px;
  color: var(--dolmeh-secondary);
  font-size: 12px;
  font-weight: 500;
  line-height: 20px;
}
html body .v953-menu-kicker-line { width: 17px; height: 3px; border-radius: 2px; background: var(--dolmeh-accent); }
html body .site-menu-links {
  flex: 0 0 auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 4px 0 12px !important;
  gap: 4px !important;
  overflow: visible !important;
  justify-content: flex-start !important;
}
html body .site-menu-links > a,
html body .site-menu-links > button {
  position: relative;
  display: flex !important;
  align-items: center !important;
  padding: 7px 12px !important;
  min-height: 52px !important;
  text-decoration: none !important;
  border: 1px solid transparent !important;
  border-radius: 12px !important;
  background: transparent !important;
  transition: background-color .16s, border-color .16s !important;
}
html body .site-menu-links strong { font-size: 14px !important; font-weight: 500 !important; }
html body .site-menu-links .menu-icon {
  width: 34px !important; height: 34px !important;
  min-width: 34px !important;
  background: var(--dolmeh-soft) !important;
  color: var(--dolmeh-secondary) !important;
  border-radius: 10px !important;
}
html body .site-menu-links > a::after {
  content: '';
  width: 6px; height: 6px;
  border-inline-end: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg);
  margin-inline-start: auto;
  opacity: .32;
}
html body .site-menu-links > a:hover,
html body .site-menu-links > a[aria-current="page"] {
  background: var(--dolmeh-soft) !important;
  border-color: var(--dolmeh-hairline) !important;
}
html body .site-menu-links > a[aria-current="page"] .menu-icon {
  color: var(--dolmeh-accent) !important;
  background: var(--dolmeh-paper) !important;
}
html body .site-menu-bottom {
  margin-top: 12px !important;
  padding-top: 16px !important;
  border-top: 1px solid var(--dolmeh-hairline) !important;
  gap: 10px !important;
}
html body .site-menu-auth-row { gap: 8px !important; }
html body .site-menu-auth { border-radius: 10px !important; min-height: 46px !important; }
html body .site-menu-language { border-radius: 10px !important; min-height: 44px !important; }

/* Keep add-to-cart on the opposite (left) edge of the food body. */
html body .food-card .food-actions {
  display: flex !important;
  width: 100% !important;
  justify-content: flex-end !important;
  align-items: center !important;
  margin-top: 12px !important;
}
html body .food-card .atc-btn {
  min-height: 44px !important;
  border-radius: 10px !important;
  padding: 9px 16px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  box-shadow: 0 2px 6px rgba(50,35,30,.06) !important;
}
html body .food-card .atc-btn.is-added { background: #315e48 !important; }
html body .food-card .qty-stepper { min-height: 44px !important; }

/* Order summary floats above the existing utility dock: paper + one red action. */
html body .cart-float {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  padding: 8px 10px !important;
  background: var(--dolmeh-paper) !important;
  color: var(--dolmeh-text) !important;
  border: 1px solid var(--dolmeh-hairline) !important;
  border-radius: 14px !important;
  box-shadow: 0 5px 22px rgba(30,25,20,.13) !important;
  text-decoration: none !important;
  min-height: 66px !important;
  transition: opacity .18s var(--dolmeh-ease), transform .18s var(--dolmeh-ease) !important;
}
html body .cart-float-summary { display:flex; flex:1 1 auto; gap:10px; align-items:center; min-width:0; }
html body .cart-float-icon {
  display: inline-flex;
  justify-content: center;
  align-items:center;
  width: 40px; height:40px;
  flex: 0 0 40px;
  border-radius: 11px;
  color: var(--dolmeh-accent);
  background: var(--dolmeh-soft);
  position:relative;
}
html body .cart-float-icon svg { width:21px; height:21px; }
html body .cart-float-count {
  top:-6px !important; inset-inline-end:-7px !important;
  color:#fff !important; background:var(--dolmeh-accent) !important;
  font-size: 11px !important;
  box-shadow: none !important;
}
html body .cart-float-copy { display:flex; flex-direction:column; align-items:flex-start; min-width:0; gap:1px; white-space:nowrap; }
html body .cart-float-copy small { font-size:11px !important; color:var(--dolmeh-secondary) !important; opacity:1 !important; }
html body .cart-float-copy strong { font-size:14px !important; font-weight:600 !important; line-height:1.6 !important; font-variant-numeric:tabular-nums; }
html body .cart-float-action {
  display:inline-flex; flex:0 0 auto; align-items:center; justify-content:center;
  gap:6px; min-height:46px;
  padding:8px 12px;
  background:var(--dolmeh-accent); color:#fff;
  border-radius:10px;
  font-size:13px; font-weight:600;
  line-height:1.3;
  white-space:nowrap;
  transition:background-color .16s;
}
html body .cart-float-action svg { width:15px; height:15px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linejoin:round; stroke-linecap:round; }
html body .cart-float:hover .cart-float-action { background:#aa211e; }
html body .cart-float:focus-visible { outline:2px solid var(--dolmeh-accent) !important; outline-offset:3px; }

@media (max-width:760px) {
  html body .v77-header,
  html body .v77-header.v77-header-home,
  html body .v77-header.v77-header-sub {
    width: calc(100% - 24px) !important;
    min-height: 90px !important;
    height: 90px !important;
    margin: 12px auto 14px !important;
    padding: 8px 10px !important;
    grid-template-columns: 44px minmax(0,1fr) 44px !important;
    gap: 4px !important;
  }
  html body .v77-brand { gap:8px !important; }
  html body .v96-brand-copy strong { font-size:17px !important; }
  html body .v96-brand-copy small { font-size:11px !important; display:block !important; }
  html body .v77-header .v77-nav-button,
  html body .v77-header .cart-header-btn { width:44px !important; height:44px !important; min-width:44px !important; min-height:44px !important; flex-basis:44px !important; }
  html body .v77-brand-disc,
  html body .v77-brand-disc .header-brand-logo-only,
  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,
  html body .v77-brand-disc .header-brand-video-only .header-chroma-brand,
  html body .v77-brand-disc .header-brand-video-only .header-plain-video-stage {
    width:64px !important; height:64px !important;
    min-width:64px !important; min-height:64px !important;
    max-width:64px !important; max-height:64px !important;
    flex-basis:64px !important;
  }
  html body .v77-brand-disc :is(.header-badge-frame,.header-logo-static,.header-logo-chroma-canvas,.header-logo-video,.header-logo-chroma-fallback,.header-logo-fallback),
  html body .v77-brand-disc .header-brand-video-only :is(.header-logo-chroma-canvas,.header-logo-video,.header-logo-chroma-fallback,.header-logo-fallback) {
    width:62px !important; height:62px !important;
    max-width:62px !important; max-height:62px !important;
  }
  /* taller, image-led cards, matching the old Dolmeh proportions */
  html body.home-page .home-category-section .category-grid { gap:12px !important; }
  html body.home-page .home-category-section .category-card { aspect-ratio:.72 !important; border-radius:16px !important; }
  html body.home-page .home-category-section .category-media {
    inset:0 !important; position:absolute !important; height:100% !important;
    background:var(--dolmeh-soft) !important;
  }
  html body.home-page .home-category-section .category-media::after {
    content:'' !important; display:block !important; position:absolute !important;
    inset:34% 0 0 !important; z-index:1 !important;
    background:linear-gradient(to bottom,transparent 10%,rgba(12,15,13,.88) 100%) !important;
    pointer-events:none !important;
  }
  html body.home-page .home-category-section .category-fallback {
    background:repeating-linear-gradient(45deg,rgba(198,40,40,.033) 0 12px, rgba(198,40,40,.07) 12px 24px), var(--dolmeh-soft) !important;
  }
  html body.home-page .home-category-section .category-card .category-content,
  html body.home-page .home-category-section .category-card .v82-category-content {
    position:absolute !important; inset:auto 0 0 !important;
    height:auto !important; min-height:63px !important;
    padding:12px 10px !important;
    display:flex !important; align-items:flex-end !important;
    flex-direction:row !important; justify-content:space-between !important;
    gap:6px !important; background:transparent !important; color:white !important;
    z-index:2 !important;
  }
  html body.home-page .home-category-section .category-card .v82-category-meta h3 {
    color:#fff !important; font-size:14px !important;
    line-height:1.5 !important; text-shadow:none !important;
  }
  html body.home-page .home-category-section .category-card .v82-category-meta > span {
    color:rgba(255,255,255,.78) !important;
    font-size:11px !important;
    line-height:1.5 !important;
  }
  html body.home-page .home-category-section .category-card .v82-category-eye {
    width:32px !important; height:32px !important; flex:0 0 32px !important;
    background:var(--dolmeh-accent) !important; color:#fff !important;
    border-radius:9px !important;
  }
  html body.home-page .home-category-section .category-card .v82-category-eye svg { stroke:#fff !important; width:17px !important; height:17px !important; }
  html body .site-menu-panel {
    top:8px !important; bottom:auto !important;
    height:auto !important; max-height:calc(100dvh - 16px) !important;
    overflow:auto !important;
  }
  html body .cart-float {
    position:fixed !important;
    inset:auto !important;
    left:50% !important; right:auto !important;
    bottom:calc(76px + env(safe-area-inset-bottom, 0px)) !important;
    width:min(420px,calc(100% - 24px)) !important;
    max-width:420px !important;
    min-height:66px !important;
    padding:8px 10px !important;
    transform:translate(-50%,12px) !important;
  }
  html body .cart-float.is-visible { transform:translateX(-50%) !important; }
  html body .site-shell.has-bottom-dock { padding-bottom:174px !important; }
}
@media (max-width:360px) {
  html body .v77-header,
  html body .v77-header.v77-header-home,
  html body .v77-header.v77-header-sub { gap:2px !important; padding:8px !important; }
  html body .v77-brand { gap:5px !important; }
  html body .v96-brand-copy strong { font-size:15px !important; }
  html body .v96-brand-copy small { font-size:10px !important; }
  html body .v77-brand-disc,
  html body .v77-brand-disc .header-brand-logo-only,
  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,
  html body .v77-brand-disc .header-brand-video-only .header-chroma-brand,
  html body .v77-brand-disc .header-brand-video-only .header-chroma-brand,
  html body .v77-brand-disc .header-brand-video-only .header-plain-video-stage {
    width:56px !important; height:56px !important;
    min-width:56px !important; min-height:56px !important;
    max-width:56px !important; max-height:56px !important;
    flex-basis:56px !important;
  }
  html body .v77-brand-disc :is(.header-badge-frame,.header-logo-static,.header-logo-chroma-canvas,.header-logo-video,.header-logo-chroma-fallback,.header-logo-fallback),
  html body .v77-brand-disc .header-brand-video-only :is(.header-logo-chroma-canvas,.header-logo-video,.header-logo-chroma-fallback,.header-logo-fallback) {
    width:54px !important; height:54px !important; max-width:54px !important; max-height:54px !important;
  }
  html body.home-page .home-category-section .category-grid { gap:8px !important; }
  html body.home-page .home-category-section .category-card .v82-category-meta h3 { font-size:13px !important; }
  html body .cart-float { gap:6px !important; padding:6px 8px !important; }
  html body .cart-float-summary { gap:7px !important; }
  html body .cart-float-action { padding:7px 9px !important; font-size:12px !important; }
  html body .cart-float-action svg { display:none !important; }
}
@media (prefers-reduced-motion:reduce) {
  html body .cart-float, html body .site-menu-panel, html body .site-menu-links > a { transition:none !important; }
}

/* The full-card scrim must be on the card itself: the legacy media layer may
   create its own stacking context and otherwise leaves the caption uncovered. */
@media (max-width:760px) {
  html body.home-page .home-category-section .category-media::after {
    display:none !important; content:none !important;
  }
  html body.home-page .home-category-section .category-card::after {
    content:"" !important;
    display:block !important;
    position:absolute !important;
    inset:34% 0 0 !important;
    z-index:1 !important;
    background:linear-gradient(to bottom,rgba(16,19,17,0) 0%,rgba(16,19,17,.12) 20%,rgba(16,19,17,.89) 100%) !important;
    pointer-events:none !important;
    border-radius:0 !important;
  }
  html body.home-page .home-category-section .category-card .v82-category-content {
    z-index:2 !important;
  }
}
/* Subpages can have both a back button and a cart action. Give both room,
   rather than letting them overlap the enlarged center brand. */
@media (min-width:361px) and (max-width:760px) {
  html body .v77-header.v77-header-sub {
    grid-template-columns:44px minmax(0,1fr) 92px !important;
  }
  html body .v77-header.v77-header-sub .v96-brand-copy strong {
    font-size:15px !important;
  }
}
