/* ============================================================
   LEMENU — 4 DISTINCT THEMES (RESET V2)
   ============================================================ */

/* Base shared adjustments */
html[data-template] body {
  color: var(--menu-text-color, #ffffff);
}

html[data-template] #menuShell {
  border-color: var(--menu-line-soft, rgba(255,255,255,.16));
}

html[data-template] #menuRoot section > div:first-child,
html[data-template] #menuRoot .group,
html[data-template] #menuRoot .group .flex-1.border-b,
html[data-template] #menuRoot .group .border,
html[data-template] #menuRoot .group .px-2.py-1.rounded-full.border {
  border-color: var(--menu-line-soft, rgba(255,255,255,.16)) !important;
}

html[data-template] #menuRoot .group img {
  border-color: var(--menu-line-soft, rgba(255,255,255,.16)) !important;
}

html[data-template] #menuRoot .group {
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
}

@media (min-width: 1080px) {
  html[data-template] #menuShell {
    max-width: min(1180px, 97vw) !important;
  }

  html[data-template] #menuMain {
    padding-left: 2.2rem !important;
    padding-right: 2.2rem !important;
  }

  html[data-template="1"] #menuRoot,
  html[data-template="3"] #menuRoot {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.1rem !important;
  }

  html[data-template="1"] #menuRoot section:nth-child(odd):last-child,
  html[data-template="3"] #menuRoot section:nth-child(odd):last-child {
    grid-column: span 2;
  }
}

/* ============================================================
   TEMPLATE 1 — LUXURY RESERVE
   dark editorial serif, premium contrast, sharp geometry
   ============================================================ */

html[data-template="1"] body {
  background: #131313;
  color: #e5e2e1;
}

html[data-template="1"] #menuShell {
  max-width: min(760px, 100%);
  background: var(--menu-bg);
  border-color: rgba(233, 193, 118, .22);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
  border-left: 0 !important;
  border-right: 0 !important;
}

html[data-template="1"] #heroBg {
  filter: grayscale(.22) contrast(1.2) brightness(.62);
}

html[data-template="1"][data-has-hero-image="1"] #heroBg {
  display: block !important;
}

html[data-template="1"][data-has-hero-image="0"] #heroBg {
  display: none !important;
}

html[data-template="1"] header {
  height: 530px;
  background: linear-gradient(180deg, rgba(13, 13, 13, .72) 0%, rgba(19, 19, 19, .95) 75%, #131313 100%) !important;
  border-bottom: 0 !important;
}

html[data-template="1"][data-has-hero-image="0"] header {
  height: 360px !important;
  background: var(--menu-hero-bg, #1f1a15) !important;
}

html[data-template="1"][data-has-hero-image="0"] header .bg-gradient-to-b {
  display: none !important;
}

html[data-template="1"] #heroTitleFallback {
  color: var(--menu-hero-title-color, #e5e2e1) !important;
  letter-spacing: .03em !important;
  font-style: italic !important;
  text-transform: none !important;
  font-weight: 500 !important;
  font-size: clamp(2.45rem, 8.8vw, 4.4rem) !important;
  text-shadow: 0 18px 50px rgba(0, 0, 0, .65);
}

html[data-template="1"][data-hero-compact="1"] header {
  height: 300px !important;
  background: var(--menu-hero-bg, var(--menu-bg)) !important;
}

html[data-template="1"][data-hero-compact="1"] #heroBg {
  display: none !important;
}

html[data-template="1"][data-hero-compact="1"] header .bg-gradient-to-b {
  display: none !important;
}

html[data-template="1"][data-hero-compact="1"] #heroTitleFallback {
  display: block !important;
  max-width: min(92%, 720px);
  margin: 0 auto;
  font-size: clamp(1.9rem, 7vw, 3rem) !important;
  line-height: 1.15 !important;
  letter-spacing: .08em !important;
  font-style: normal !important;
  text-transform: uppercase !important;
  text-align: center !important;
  text-shadow: none !important;
}

html[data-template="1"] #stickyBar {
  top: -2px;
  margin-top: -1px;
  background: var(--menu-accent-2);
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-top: 0 !important;
  border-bottom: 1px solid rgba(233, 193, 118, .16);
  box-shadow: 0 -4px 0 var(--menu-accent-2);
}

html[data-template="1"] #stickyBar nav {
  background: transparent !important;
  border-bottom: 0 !important;
  padding: 1.15rem 0 .95rem;
}

html[data-template="1"] #categoryNav {
  gap: 1.3rem !important;
}

html[data-template="1"] #categoryNav button {
  border-radius: 0 !important;
  background: transparent !important;
  border: 0 !important;
  color: var(--menu-cat-color, rgba(229, 226, 225, .82)) !important;
  opacity: .72;
  font-size: .8rem !important;
  font-weight: 500 !important;
  text-transform: uppercase !important;
  letter-spacing: .2em !important;
  padding: 0 0 .4rem !important;
  box-shadow: none !important;
}

html[data-template="1"] #categoryNav button.bg-primary,
html[data-template="1"] #categoryNav button[class*="bg-primary"] {
  color: var(--menu-cat-color, #e5e2e1) !important;
  opacity: 1;
  border-bottom: 2px solid var(--menu-accent) !important;
}

html[data-template="1"] #displayFab {
  width: 2.65rem !important;
  height: 2.65rem !important;
  border-radius: 0 !important;
  background: rgba(19, 19, 19, .75) !important;
  border: 1px solid rgba(233, 193, 118, .35) !important;
}

html[data-template="1"][data-appearance-mode="light"] #displayFab {
  background: rgba(255, 255, 255, .86) !important;
  border: 1px solid rgba(32, 31, 31, .2) !important;
}

html[data-template="1"] #displayFab .material-symbols-outlined {
  color: var(--menu-accent) !important;
}

html[data-template="1"] #langSwitcher {
  border-radius: 0 !important;
  background: rgba(19, 19, 19, .72) !important;
  border: 1px solid rgba(233, 193, 118, .18) !important;
}

html[data-template="1"][data-appearance-mode="light"] #langSwitcher {
  background: rgba(255, 255, 255, .86) !important;
  border: 1px solid rgba(32, 31, 31, .18) !important;
}

html[data-template="1"] #menuMain {
  --lux-main-x: 1.35rem;
  padding: 1.45rem 1.35rem 10rem !important;
}

html[data-template="1"] #menuRoot {
  gap: 2rem !important;
}

html[data-template="1"] #menuRoot section > div:first-child {
  border-bottom: 1px solid rgba(154, 143, 128, .28) !important;
  padding-bottom: 1rem !important;
}

html[data-template="1"] #menuRoot .menu-category-title {
  color: var(--menu-text-color, rgba(229, 226, 225, .9)) !important;
  font-size: calc(.73rem * var(--menu-cat-scale, 1)) !important;
  letter-spacing: .36em !important;
  text-transform: uppercase !important;
  font-weight: 700 !important;
}

html[data-template="1"] #menuRoot section > div:first-child > div.h-1 { display: none !important; }

html[data-template="1"] #menuRoot .group {
  border: 0 !important;
  border-bottom: 1px solid rgba(154, 143, 128, .2) !important;
  border-radius: 0 !important;
  padding: .95rem 0 !important;
  background: transparent !important;
}

html[data-template="1"] #menuRoot .menu-item-media {
  margin-left: calc(-1 * var(--lux-main-x));
  margin-right: calc(-1 * var(--lux-main-x));
  border-left: 0 !important;
  border-right: 0 !important;
  border-radius: 0 !important;
}

html[data-template="1"] #menuRoot .menu-item-media img {
  border-radius: 0 !important;
}

html[data-template="1"] #menuRoot .menu-item-title {
  color: var(--menu-item-color, #e5e2e1) !important;
  font-size: calc(2.15rem * var(--menu-item-scale, 1)) !important;
  font-style: var(--menu-item-italic, normal) !important;
  text-transform: none !important;
  letter-spacing: .01em !important;
  font-weight: 500 !important;
  line-height: 1.12 !important;
}

html[data-template="1"] #menuRoot .menu-item-desc {
  color: var(--menu-desc-color, rgba(209, 197, 180, .82)) !important;
  font-size: calc(.98rem * var(--menu-desc-scale, 1)) !important;
  font-style: var(--menu-desc-italic, normal) !important;
  line-height: 1.7 !important;
  font-weight: 450 !important;
}

html[data-template="1"] #menuRoot .menu-price {
  color: var(--menu-price-color, var(--menu-text-color, #e5e2e1)) !important;
  font-size: 1.12rem !important;
  font-weight: 700 !important;
}

html[data-template="4"] #menuRoot .menu-price {
  color: var(--menu-price-color, var(--menu-accent, #ee8c2b)) !important;
}

html[data-template="1"] #menuMain > div.pt-2 p {
  color: var(--menu-text-color, #e5e2e1) !important;
}

html[data-template="1"] #googleReviewSection p {
  color: var(--menu-cat-color, rgba(229, 226, 225, .82)) !important;
}

html[data-template="1"] #googleReviewSection a,
html[data-template="1"] #googleReviewSection a span {
  color: var(--menu-cat-color, rgba(229, 226, 225, .82)) !important;
}

html[data-template="1"] #typeSwitcher {
  background: rgba(32, 31, 31, .92) !important;
  border: 1px solid rgba(154, 143, 128, .28) !important;
  border-radius: 0 !important;
}

html[data-template="1"][data-appearance-mode="light"] #typeSwitcher {
  background: rgba(255, 255, 255, .9) !important;
  border: 1px solid rgba(32, 31, 31, .2) !important;
}

html[data-template="1"] #typeSwitcher button {
  border-radius: 0 !important;
  font-size: .72rem !important;
  letter-spacing: .2em !important;
  font-weight: 700 !important;
}

html[data-template="1"] #displayPanel {
  background: rgba(32, 31, 31, .95) !important;
  border: 1px solid rgba(154, 143, 128, .3) !important;
  border-radius: 0 !important;
}

html[data-template="1"][data-appearance-mode="light"] #displayPanel {
  background: rgba(255, 255, 255, .96) !important;
  border: 1px solid rgba(32, 31, 31, .2) !important;
}

html[data-template="1"][data-appearance-mode="light"] #displayPanel [data-i18n],
html[data-template="1"][data-appearance-mode="light"] #displayPanel span.text-xs {
  color: rgba(43, 36, 28, .85) !important;
}

/* ============================================================
   TEMPLATE 3 — CANVAS
   airy, image-centric, soft luxury casual
   ============================================================ */

html[data-template="3"] body { background: var(--menu-bg); }

html[data-template="3"] #menuShell {
  background: linear-gradient(180deg, color-mix(in srgb, #fff 86%, var(--menu-bg) 14%), var(--menu-bg));
  border-color: rgba(54, 33, 24, .15);
}

html[data-template="3"] header {
  height: 255px;
  background: linear-gradient(150deg, color-mix(in srgb, var(--menu-accent-2) 42%, #fff 58%), var(--menu-bg)) !important;
}

html[data-template="3"] #heroBg {
  filter: saturate(1.08) contrast(1.03) brightness(.84);
}

html[data-template="3"] #heroTitleFallback {
  color: var(--menu-text-color, #2d2018) !important;
  font-weight: 700 !important;
  letter-spacing: .05em !important;
}

html[data-template="3"] #stickyBar {
  background: color-mix(in srgb, var(--menu-bg) 95%, #fff 5%);
  border-bottom: 1px solid rgba(54, 33, 24, .15);
}

html[data-template="3"] #categoryNav button {
  border-radius: 10px !important;
  background: rgba(255,255,255,.72) !important;
  border: 1px solid rgba(54, 33, 24, .16) !important;
  color: color-mix(in srgb, var(--menu-text-color, #2d2018) 82%, #fff 18%) !important;
  font-weight: 700 !important;
}

html[data-template="3"] #categoryNav button.bg-primary,
html[data-template="3"] #categoryNav button[class*="bg-primary"] {
  background: var(--menu-accent) !important;
  color: #fff !important;
}

html[data-template="3"] #menuMain { padding: 1.35rem 1rem 8.7rem !important; }
html[data-template="3"] #menuRoot { gap: 1.5rem !important; }

html[data-template="3"] #menuRoot .menu-category-title {
  color: var(--menu-cat-color, var(--menu-text-color, #2d2018)) !important;
  font-size: calc(1.5rem * var(--menu-cat-scale, 1)) !important;
}

html[data-template="3"] #menuRoot .group {
  background: #fff !important;
  border: 1px solid rgba(54, 33, 24, .1) !important;
  border-radius: 16px !important;
  padding: .95rem !important;
  box-shadow: 0 9px 22px rgba(54, 33, 24, .08);
}

html[data-template="3"] #menuRoot .group > div:first-child img {
  border-radius: 12px !important;
}

html[data-template="3"] #menuRoot .menu-item-title {
  color: var(--menu-item-color, var(--menu-text-color, #2d2018)) !important;
  font-size: calc(1.32rem * var(--menu-item-scale, 1)) !important;
  font-weight: 700 !important;
}

html[data-template="3"] #menuRoot .menu-item-desc {
  color: var(--menu-desc-color, color-mix(in srgb, var(--menu-text-color, #2d2018) 68%, #fff 32%)) !important;
  font-size: calc(.93rem * var(--menu-desc-scale, 1)) !important;
}

html[data-template="3"] #menuRoot [class*="text-primary"] {
  color: color-mix(in srgb, var(--menu-accent) 90%, #111 10%) !important;
  font-weight: 700 !important;
}

html[data-template="3"] #typeSwitcher {
  background: color-mix(in srgb, var(--menu-bg) 95%, #fff 5%) !important;
  border: 1px solid rgba(54, 33, 24, .16) !important;
  border-radius: 14px !important;
}

html[data-template="3"] #displayPanel {
  background: color-mix(in srgb, var(--menu-bg) 94%, #fff 6%) !important;
  border: 1px solid rgba(54, 33, 24, .16) !important;
}

/* ============================================================
   TEMPLATE 4 — BOLD FAST
   intentionally different: no hero image, punchy, promo-first
   ============================================================ */

html[data-template="4"] body {
  background: var(--menu-bg);
  color: #1f1f1f;
}

html[data-template="4"] #menuShell {
  max-width: 560px;
  background: var(--menu-bg);
  border: 0;
  box-shadow: none;
}

html[data-template="4"] #heroBg,
html[data-template="4"] #heroLogo,
html[data-template="4"] #heroTitleFallback,
html[data-template="4"] #displayFab,
html[data-template="4"] #langSwitcher {
  display: none !important;
}

html[data-template="4"] header {
  height: 112px !important;
  background: var(--menu-accent-2) !important;
  border-bottom: 3px solid rgba(0,0,0,.06);
}

html[data-template="4"] #fastTopRow {
  display: flex !important;
}

html[data-template="4"] #stickyBar {
  top: 0;
  background: var(--menu-bg);
  border-bottom: 1px solid rgba(0,0,0,.08);
}

html[data-template="4"] #stickyBar nav {
  background: transparent !important;
  border-bottom: none !important;
  padding: .72rem 0;
}

html[data-template="4"] #categoryNav button {
  border-radius: 999px !important;
  font-size: .82rem !important;
  font-weight: 800 !important;
  padding: .62rem 1.15rem !important;
  background: #efefef !important;
  border: 1px solid rgba(0,0,0,.18) !important;
  color: #1f1f1f !important;
}

html[data-template="4"] #categoryNav button.bg-primary,
html[data-template="4"] #categoryNav button[class*="bg-primary"] {
  background: var(--menu-accent) !important;
  border-color: var(--menu-accent) !important;
  color: #fff !important;
}

html[data-template="4"] #menuMain {
  padding: .6rem 1.15rem 7.9rem !important;
}

html[data-template="4"] #menuRoot {
  gap: 1rem !important;
}

html[data-template="4"] #menuRoot section > div:first-child {
  background: transparent !important;
  border-bottom: 0 !important;
  padding-bottom: .2rem !important;
}

html[data-template="4"] #menuRoot .menu-category-title {
  font-size: calc(2rem * var(--menu-cat-scale, 1)) !important;
  font-weight: 900 !important;
  font-style: italic !important;
  text-transform: uppercase !important;
  color: var(--menu-cat-color, color-mix(in srgb, var(--menu-text-color, #1f2a36) 70%, #fff 30%)) !important;
  letter-spacing: .01em !important;
}

html[data-template="4"] #menuRoot .menu-item-title {
  color: var(--menu-item-color, #1f1f1f) !important;
  font-size: calc(1.5rem * var(--menu-item-scale, 1)) !important;
}

html[data-template="4"] #menuRoot .menu-item-desc {
  color: var(--menu-desc-color, #757575) !important;
  font-size: calc(1rem * var(--menu-desc-scale, 1)) !important;
}

html[data-template="4"] #menuRoot section > div:first-child > div.h-1 {
  display: none !important;
}

html[data-template="4"] #typeSwitcher {
  background: #ffffff !important;
  border: 1px solid rgba(0,0,0,.14) !important;
}

html[data-template="4"] #displayPanel {
  background: #ffffff !important;
  border: 1px solid rgba(0,0,0,.12) !important;
}

@media (max-width: 1079px) {
  html[data-template="1"] #menuRoot,
  html[data-template="3"] #menuRoot {
    display: block !important;
  }

  html[data-template="1"] #menuRoot section,
  html[data-template="3"] #menuRoot section {
    margin-bottom: 2rem !important;
  }
}
