/* Modern theme overrides for SpiceForSoul — scoped to body.theme-modern */
body.theme-modern{
  --bg-1: #120f0c;
  --bg-2: #1a1714;
  --bg-3: #211b17;
  --brand: #d98b42;
  --brand-700: #b56d2a;
  --brand-800: #8b4b1d;
  --accent: #f4c86e;
  --muted: #d8c8b6;
  --surface: #1f1b18;
  --surface-soft: #2a241f;
  --surface-strong: #120f0c;
  --glass: rgba(17,13,11,0.52);
  --line: rgba(244,200,110,0.18);
  --ink: #f9f0e6;
  --radius: 12px;
}

html,body{height:100%;}

body.theme-modern{
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  background: #17120f;
  color: var(--ink);
  -webkit-font-smoothing:antialiased; -moz-osx-font-smoothing:grayscale;
}
body.theme-modern::before{
  content:"";
  position:fixed;
  inset:0;
  z-index:-1;
  pointer-events:none;
  background:
    radial-gradient(circle at 18% 8%, rgba(217,139,66,0.13), transparent 28%),
    radial-gradient(circle at 86% 64%, rgba(96,72,48,0.1), transparent 32%);
}

/* Brand */
body.theme-modern .brand{ font-family: 'Playfair Display', Georgia, serif; font-size:1.05rem; color:var(--brand); }
body.theme-modern .brand span{ font-weight:700; letter-spacing:0.2px }
body.theme-modern .brand img{
  width: 58px; height: 58px; border-radius: 0; box-shadow:none;
  border: 0; background: transparent; padding: 0;
}
body.theme-modern .brand {
  position: relative; gap: 10px; padding: 4px 8px 4px 0; border-radius: 0; background: transparent;
  border: 0; box-shadow: none;
}
body.theme-modern .brand span{ font-size: 1.18rem; letter-spacing: 0.01em; }

/* Top nav */
body.theme-modern .top-bar{
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1400;
  background: linear-gradient(180deg, rgba(18,15,12,0.82), rgba(18,15,12,0.56));
  backdrop-filter: blur(14px) saturate(1.5);
  -webkit-backdrop-filter: blur(14px) saturate(1.5);
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
  border-bottom: 1px solid rgba(244,200,110,0.12);
  transition: background .24s ease, box-shadow .24s ease, border-color .24s ease;
}
body.theme-modern{ padding-top: 82px; }
body.theme-modern .top-nav{ padding:14px 18px; align-items:center; transition: padding .24s ease; }
body.theme-modern .top-bar.scrolled{
  background: rgba(18,15,12,0.96);
  border-bottom-color: rgba(244,200,110,0.24);
  box-shadow: 0 12px 34px rgba(0,0,0,0.34);
}
body.theme-modern .top-bar.scrolled .top-nav{ padding-top:8px; padding-bottom:8px; }
body.theme-modern .top-bar.scrolled .brand img{ width:48px; height:48px; }
body.theme-modern .top-bar.scrolled .brand span{ font-size:1.08rem; }
body.theme-modern .links a{
  color:#f7e5d5; padding:8px 12px; border-radius:12px; transition:all .16s ease; font-weight:700;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
}
body.theme-modern .links a:hover{ transform:translateY(-2px); background: rgba(217,139,66,0.10); box-shadow:0 6px 18px rgba(217,139,66,0.12) }
body.theme-modern .links .cta{ background: linear-gradient(135deg, var(--brand), var(--brand-700)); color:#fff; padding:10px 14px; border-radius:999px; box-shadow:0 10px 30px rgba(217,139,66,0.26) }
body.theme-modern .links .cta:hover{ background: linear-gradient(135deg, var(--brand-700), var(--brand-800)); }
body.theme-modern .is-disabled,
body.theme-modern .is-disabled:hover,
body.theme-modern .is-disabled:focus-visible{
  display: none;
  cursor: not-allowed;
  opacity: .52;
  filter: saturate(.45);
  transform: none;
  box-shadow: none;
}

body.theme-modern .menu-toggle{ background:transparent; border:1px solid rgba(12,107,81,0.06); }

/* Hero updates */
body.theme-modern header.hero{ min-height:60vh; display:flex; align-items:center; justify-content:center; padding:48px 18px; }
body.theme-modern .hero-slides .slide{ filter:contrast(1.02) saturate(1.05); }
body.theme-modern .hero-content{ max-width:980px; text-align:center; color:#fff8ef }
body.theme-modern .hero h1{ font-family:'Playfair Display', serif; font-weight:700; color:#fff8ef; font-size:clamp(1.6rem, 3.8vw, 3.2rem); margin-bottom:6px }
body.theme-modern .hero p{ color:#fff1e2; font-size:1.06rem; margin:0 auto; max-width:780px }
body.theme-modern .logo{ box-shadow:0 12px 40px rgba(6,34,25,0.08); border-radius:16px }
body.theme-modern .hero .logo{ width:76px !important; max-width:76px !important; height:76px !important; }

body.theme-modern .hero-ctas .btn{ display:inline-block; padding:13px 20px; border-radius:12px; font-weight:800; text-decoration:none }
body.theme-modern .btn{ background: linear-gradient(135deg, var(--brand), var(--brand-700)); color:#fff; border:1px solid rgba(244,200,110,0.25); letter-spacing:0.02em; }
body.theme-modern .btn.secondary{ background: rgba(255,255,255,0.04); color:#f7e5d5; border:1px solid rgba(244,200,110,0.22) }
body.theme-modern .btn:hover{ transform:translateY(-3px); box-shadow:0 18px 36px rgba(217,139,66,0.16) }

/* Fresh premium hero and section polish */
body.theme-modern .hero{
  background: linear-gradient(135deg, rgba(18,15,12,0.42), rgba(217,139,66,0.12));
  box-shadow: inset 0 -1px 0 rgba(255,255,255,0.18);
}
body.theme-modern .hero::after{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(90deg, rgba(8,6,4,0.48), transparent 48%, rgba(8,6,4,0.26)), linear-gradient(180deg, rgba(0,0,0,0.06), rgba(0,0,0,0.72));
  z-index:1;
}
body.theme-modern .hero::before{
  background: radial-gradient(circle at center, transparent 30%, rgba(8,6,4,0.48) 100%);
  z-index: 1;
}
body.theme-modern .hero-content{ position:relative; z-index:2; animation: heroReveal 900ms cubic-bezier(.2,.8,.2,1) both; }
body.theme-modern .hero-content .logo{ animation: heroReveal 900ms cubic-bezier(.2,.8,.2,1) 120ms both; }
body.theme-modern .hero-content h1{ animation: heroReveal 800ms cubic-bezier(.2,.8,.2,1) 220ms both; }
body.theme-modern .hero-content p{ animation: heroReveal 800ms cubic-bezier(.2,.8,.2,1) 380ms both; }
body.theme-modern .hero-content .hero-ctas{ animation: heroReveal 800ms cubic-bezier(.2,.8,.2,1) 520ms both; }
body.theme-modern .hero-content .logo {
  border: 0;
  background: transparent;
  padding: 0;
  box-shadow: none;
  backdrop-filter: none;
}
body.theme-modern .hero h1 {
  letter-spacing: -0.04em;
  text-shadow: 0 3px 20px rgba(0,0,0,0.8);
}
body.theme-modern .hero p {
  color: #fff1e2;
  font-size: 1.08rem; letter-spacing: 0.01em;
  text-shadow: 0 2px 14px rgba(0,0,0,0.75);
}
body.theme-modern .hero-slides .slide{
  animation: modernHeroSlide 16s ease-in-out infinite;
  transform: scale(1.08);
  filter: saturate(1.2) contrast(1.08);
}
body.theme-modern .hero-slides .s1 { animation-delay: 0s; }
body.theme-modern .hero-slides .s2 { animation-delay: 4s; }
body.theme-modern .hero-slides .s3 { animation-delay: 8s; }
body.theme-modern .hero-slides .s4 { animation-delay: 12s; }
body.theme-modern .hero-ctas .btn {
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 26px rgba(217,139,66,0.22);
  border: 1px solid rgba(244,200,110,0.25);
}
body.theme-modern .hero-ctas .btn::after {
  content: "";
  position: absolute;
  inset: -50%;
  background: linear-gradient(135deg, rgba(255,255,255,0.28), rgba(255,255,255,0.04), rgba(255,255,255,0.28));
  transform: translateX(-90%) rotate(12deg);
  animation: ctaShimmer 3s ease-in-out infinite;
}
body.theme-modern .hero-ctas .btn:hover,
body.theme-modern .hero-ctas .btn:focus-visible {
  animation: ctaPulse 1.7s ease-in-out infinite;
}
@keyframes modernHeroSlide {
  0%, 18% { opacity: 0; transform: scale(1.12); }
  22%, 44% { opacity: 1; transform: scale(1.04); }
  48%, 100% { opacity: 0; transform: scale(1.18); }
}
@keyframes heroReveal {
  0% { opacity: 0; transform: translateY(22px) scale(0.98); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes ctaPulse {
  0%, 100% { box-shadow: 0 10px 24px rgba(12,107,81,0.2); }
  50% { box-shadow: 0 0 0 8px rgba(12,107,81,0.08), 0 18px 34px rgba(12,107,81,0.24); }
}
@keyframes ctaShimmer {
  0%, 100% { transform: translateX(-90%) rotate(12deg); }
  40%, 60% { transform: translateX(90%) rotate(12deg); }
}

body.theme-modern .section,
body.theme-modern .intro,
body.theme-modern .table-wrap,
body.theme-modern .t-card,
body.theme-modern .ws-card,
body.theme-modern .rec-card {
  opacity: 0;
  transform: translateY(26px);
  animation: sectionReveal 700ms ease forwards;
}
body.theme-modern .mthumb,
body.theme-modern .hero-slides .slide,
body.theme-modern .ws-media img,
body.theme-modern .rec-img,
body.theme-modern .modal-media img {
  will-change: transform, opacity;
}
body.theme-modern .mthumb,
body.theme-modern .ws-media img,
body.theme-modern .rec-img,
body.theme-modern .modal-media img {
  transform-origin: center;
  transition: transform 0.7s cubic-bezier(.2,.8,.2,1), filter 0.7s ease;
}
body.theme-modern .section:hover .mthumb,
body.theme-modern .ws-card:hover .ws-media img,
body.theme-modern .rec-card:hover .rec-img,
body.theme-modern .modal-media:hover img {
  transform: scale(1.06);
  filter: saturate(1.08);
}
body.theme-modern .intro { animation-delay: 120ms; }
body.theme-modern #main > .section:nth-of-type(1) { animation-delay: 180ms; }
body.theme-modern #main > .section:nth-of-type(2) { animation-delay: 240ms; }
body.theme-modern #main > .section:nth-of-type(3) { animation-delay: 300ms; }
body.theme-modern #main > .section:nth-of-type(4) { animation-delay: 360ms; }
body.theme-modern #main > .section:nth-of-type(5) { animation-delay: 420ms; }
body.theme-modern #main > .section:nth-of-type(6) { animation-delay: 480ms; }
body.theme-modern .table-wrap { animation-delay: 140ms; }
body.theme-modern .t-card { animation-delay: 200ms; }
body.theme-modern .ws-card { animation-delay: 220ms; }
body.theme-modern .rec-card { animation-delay: 260ms; }
@media (prefers-reduced-motion: reduce) {
  body.theme-modern .hero-content,
  body.theme-modern .hero-content .logo,
  body.theme-modern .hero-content h1,
  body.theme-modern .hero-content p,
  body.theme-modern .hero-content .hero-ctas,
  body.theme-modern .hero-slides .slide,
  body.theme-modern .hero-ctas .btn,
  body.theme-modern .section,
  body.theme-modern .intro,
  body.theme-modern .table-wrap,
  body.theme-modern .t-card,
  body.theme-modern .ws-card,
  body.theme-modern .rec-card {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
@keyframes sectionReveal {
  0% { opacity: 0; transform: translateY(26px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Intro + badges */
body.theme-modern .intro{
  background: linear-gradient(135deg, rgba(217,139,66,0.08), rgba(255,255,255,0.02));
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 32px 20px 26px;
  box-shadow: 0 20px 52px rgba(0,0,0,0.14);
}
body.theme-modern .intro h2{
  font-family:'Playfair Display', serif;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  color: #f7e5d5;
  margin: 0; text-align:center;
}
body.theme-modern .tagline-subtext {
  margin: 12px auto 0; max-width: 760px; text-align:center; color: #f0dfcc; opacity: 0.9; font-size: 1rem; line-height: 1.7;
}
body.theme-modern .intro-line {
  display:flex; justify-content:center; align-items:center; gap:12px; margin-bottom: 18px;
}
body.theme-modern .intro-line span {
  display:block; width: 42px; height: 2px; border-radius:999px; background: linear-gradient(90deg, transparent, var(--brand), transparent);
}
body.theme-modern .intro-line span:nth-child(2) {
  width: 10px; height: 10px; border-radius:50%; background: var(--brand); box-shadow:0 0 16px rgba(244,200,110,0.48);
}
body.theme-modern .badges{
  display:flex; justify-content:center; flex-wrap:wrap; gap:10px; margin-top:18px;
}
body.theme-modern .badge{
  display:inline-flex; align-items:center; justify-content:center;
  padding: 10px 16px; border-radius:999px; font-weight:800; font-size:0.86rem;
  background: linear-gradient(135deg, rgba(217,139,66,0.18), rgba(244,200,110,0.12));
  border: 1px solid rgba(244,200,110,0.25); color: #f5e9db;
  box-shadow: 0 10px 22px rgba(217,139,66,0.08);
}
body.theme-modern .feature-banner {
  margin: 18px auto 14px;
  max-width: 1100px;
  padding: 0 18px;
}
body.theme-modern .feature-banner-card {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid rgba(244,200,110,0.18);
  background: linear-gradient(135deg, rgba(217,139,66,0.12), rgba(18,15,12,0.96));
  border-radius: 30px;
  box-shadow: 0 26px 60px rgba(0,0,0,0.18);
}
body.theme-modern .feature-banner-copy {
  padding: 30px 28px 26px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
body.theme-modern .feature-banner-copy h2 {
  margin: 0 0 12px;
  color: #fff4e6;
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.1rem, 3vw, 3.2rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
}
body.theme-modern .feature-banner-copy p {
  margin: 0;
  color: #f0dfcc;
  line-height: 1.7;
}
body.theme-modern .feature-banner-actions {
  margin-top: 22px;
}
body.theme-modern .feature-banner-image {
  position: relative;
  min-height: 300px;
  background: rgba(0,0,0,0.12);
}
body.theme-modern .feature-banner-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.2) contrast(1.08);
  transform: scale(1.02);
}
body.theme-modern .feature-banner-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(18,15,12,0.1), rgba(18,15,12,0.46));
}
body.theme-modern .featured-highlight {
  width: min(1100px, calc(100% - 36px));
  margin: 32px auto 18px;
}
body.theme-modern .featured-heading{
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:20px;
  margin-bottom:18px;
  padding:0 4px;
}
body.theme-modern .featured-heading h2{
  margin:0;
  color:#fff4e6;
  font-family:'Playfair Display',serif;
  font-size:clamp(2rem,3.4vw,3rem);
  line-height:1;
}
body.theme-modern .featured-heading > p{ margin:0 0 2px; color:#d8c8b6; }
body.theme-modern .featured-collection{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:10px;
}
body.theme-modern .favorite-card{
  position:relative;
  height:240px;
  overflow:hidden;
  cursor:pointer;
  border:1px solid rgba(244,200,110,0.16);
  border-radius:18px;
  background:#1d1713;
  box-shadow:0 18px 36px rgba(0,0,0,0.18);
  transition:transform .24s ease, box-shadow .24s ease, border-color .24s ease;
}
body.theme-modern .favorite-card:hover,
body.theme-modern .favorite-card:focus-within{
  transform:translateY(-5px);
  border-color:rgba(244,200,110,0.4);
  box-shadow:0 24px 44px rgba(0,0,0,0.3);
}
body.theme-modern .favorite-card img{
  width:100%;
  height:100%;
  min-height:0;
  object-fit:cover;
  filter:saturate(1.12) contrast(1.06);
  transition:transform .5s ease;
}
body.theme-modern .favorite-card:hover img{ transform:scale(1.06); }
body.theme-modern .favorite-card::after{
  content:"";
  position:absolute;
  inset:35% 0 0;
  background:linear-gradient(180deg,transparent,rgba(12,8,5,.9));
}
body.theme-modern .favorite-card-copy{
  position:absolute;
  z-index:1;
  inset:auto 14px 14px;
  display:flex;
  flex-direction:column;
  gap:5px;
}
body.theme-modern .favorite-card-copy span{
  color:#f7d18e;
  font-size:.68rem;
  letter-spacing:.12em;
  text-transform:uppercase;
  font-weight:800;
}
body.theme-modern .favorite-card-copy .dish-btn{
  width:max-content;
  max-width:100%;
  padding:0;
  color:#fff4e6;
  font-family:'Playfair Display',serif;
  font-size:1.18rem;
  text-align:left;
}
body.theme-modern .favorite-card-copy .dish-btn::after{
  content:"";
  position:absolute;
  inset:0;
}
body.theme-modern .favorite-card:has(.dish-btn:focus-visible){
  outline:3px solid #f7d18e;
  outline-offset:3px;
}
body.theme-modern .favorite-card-large{ height:240px; }
body.theme-modern .favorite-card-large img{ min-height:0; }
body.theme-modern .favorite-card-large .favorite-card-copy .dish-btn{ font-size:1.18rem; }
@media (max-width:980px){
  body.theme-modern .featured-collection{ grid-template-columns:repeat(3,1fr); }
}
@media (max-width:640px){
  body.theme-modern .feature-banner {
    padding: 0 14px;
  }
  body.theme-modern .feature-banner-card {
    grid-template-columns: 1fr;
    grid-template-areas: "image" "copy";
    border-radius: 18px;
  }
  body.theme-modern .feature-banner-copy {
    grid-area: copy;
    padding: 24px 20px 22px;
  }
  body.theme-modern .feature-banner-copy h2 {
    font-size: 2rem;
    letter-spacing: 0;
  }
  body.theme-modern .feature-banner-image {
    grid-area: image;
    min-height: 0;
    height: 210px;
  }
  body.theme-modern .feature-banner-image::after {
    background: linear-gradient(180deg, transparent 55%, rgba(18,15,12,0.42));
  }
  body.theme-modern .featured-heading{ display:block; }
  body.theme-modern .featured-heading > p{ margin-top:10px; }
  body.theme-modern .featured-collection{
    display:flex;
    gap:12px;
    overflow-x:auto;
    overscroll-behavior-inline:contain;
    scroll-snap-type:x mandatory;
    scrollbar-width:thin;
    scrollbar-color:#d98b42 rgba(255,255,255,0.06);
    padding:2px 2px 16px;
  }
  body.theme-modern .favorite-card,
  body.theme-modern .favorite-card-large{
    flex:0 0 min(78vw, 320px);
    height:250px;
    scroll-snap-align:start;
    animation:none;
  }
  body.theme-modern .favorite-card:active { transform:scale(.985); }
}
@media (prefers-reduced-motion: reduce){
  body.theme-modern .favorite-card{ animation:none; }
}
body.theme-modern .featured-card {
  display: grid; grid-template-columns: 1.2fr 0.9fr; gap: 8px; align-items: stretch;
  background: linear-gradient(135deg, rgba(217,139,66,0.12), rgba(18,15,12,0.94));
  border: 1px solid rgba(244,200,110,0.18); border-radius: 28px; box-shadow: 0 22px 52px rgba(0,0,0,0.18);
  overflow: hidden;
}
body.theme-modern .featured-copy {
  padding: 28px 28px 24px; display:flex; flex-direction:column; justify-content:center;
}
body.theme-modern .eyebrow {
  margin: 0 0 8px; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: #f7d18e; font-weight: 800;
}
body.theme-modern .featured-copy h3 {
  margin: 0 0 12px; font-family:'Playfair Display', serif; font-size: clamp(2rem, 3vw, 3rem); color:#fff4e6; letter-spacing:-0.03em;
}
body.theme-modern .featured-copy p {
  margin: 0; color: #f4e5d7; line-height: 1.7;
}
body.theme-modern .recipe-videos {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 18px;
}
body.theme-modern .recipe-videos-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}
body.theme-modern .recipe-videos-heading h2 {
  margin: 0;
  color: #fff0dc;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}
body.theme-modern .recipe-videos-heading > p {
  max-width: 330px;
  margin: 0 0 3px;
  color: #cbb9a7;
  line-height: 1.55;
  text-align: right;
}
body.theme-modern .recipe-video-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
body.theme-modern .recipe-video-card {
  overflow: hidden;
  border: 1px solid rgba(244,200,110,0.14);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(39,31,25,0.96), rgba(24,19,16,0.96));
  box-shadow: 0 16px 34px rgba(0,0,0,0.14);
}
body.theme-modern .recipe-video-poster {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #211b17;
}
body.theme-modern .recipe-video-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08);
}
body.theme-modern .recipe-video-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(12,9,7,0.72));
}
body.theme-modern .recipe-video-play {
  position: absolute;
  z-index: 1;
  left: 16px;
  bottom: 16px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  padding-left: 2px;
  border: 1px solid rgba(255,248,239,0.5);
  border-radius: 50%;
  background: rgba(217,139,66,0.94);
  color: #fff8ef;
  font-size: .88rem;
  box-shadow: 0 8px 20px rgba(0,0,0,0.24);
}
body.theme-modern .recipe-video-status {
  position: absolute;
  z-index: 1;
  right: 14px;
  bottom: 18px;
  color: #fff0dc;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
body.theme-modern .recipe-video-copy {
  padding: 16px 18px 18px;
}
body.theme-modern .recipe-video-kicker {
  color: #f7d18e;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
body.theme-modern .recipe-video-copy h3 {
  margin: 5px 0 6px;
  color: #fff0dc;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.35rem;
}
body.theme-modern .recipe-video-copy p {
  margin: 0;
  color: #cbb9a7;
  font-size: .86rem;
  line-height: 1.55;
}
@media (max-width:860px){
  body.theme-modern .recipe-videos-heading {
    display: block;
  }
  body.theme-modern .recipe-videos-heading > p {
    max-width: 420px;
    margin-top: 8px;
    text-align: left;
  }
  body.theme-modern .recipe-video-grid {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding: 2px 2px 12px;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
  }
  body.theme-modern .recipe-video-card {
    flex: 0 0 min(82vw, 320px);
    scroll-snap-align: start;
  }
}
body.theme-modern .menu-view-panel {
  width: 100%;
  margin: 0 auto 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 2px 15px;
  border-top: 1px solid rgba(244,200,110,0.22);
  border-bottom: 1px solid rgba(244,200,110,0.12);
  position: relative;
}
body.theme-modern .menu-view-panel::before {
  content: "";
  position: absolute;
  left: 0;
  top: -1px;
  width: 64px;
  height: 2px;
  background: var(--brand);
}
body.theme-modern .menu-view-copy {
  display: grid;
  gap: 3px;
}
body.theme-modern .menu-view-label {
  color: #f7d18e;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.05rem;
  letter-spacing: .01em;
  font-weight: 800;
}
body.theme-modern .menu-view-hint {
  color: #bda995;
  font-size: .76rem;
  line-height: 1.35;
}
body.theme-modern .menu-view-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(244,200,110,0.28);
  background: rgba(255,255,255,0.06);
  color: #fff0dc;
  border-radius: 999px;
  padding: 6px 14px 6px 7px;
  font-size: 0.83rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
body.theme-modern .menu-view-toggle::before {
  content: "▦";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 27px;
  height: 27px;
  border-radius: 8px;
  background: var(--accent);
  color: #211b17;
  font-size: 1.2rem;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 4px 10px rgba(0,0,0,0.18);
}
body.theme-modern.menu-image-view .menu-view-toggle::before {
  content: "☷";
  background: var(--brand);
  color: #fff8ef;
}
body.theme-modern .menu-view-toggle:hover,
body.theme-modern .menu-view-toggle:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(244,200,110,0.48);
  box-shadow: 0 12px 26px rgba(0,0,0,0.18);
}
body.theme-modern.menu-image-view .table-wrap td:first-child {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 92px;
  padding: 14px 16px;
}
body.theme-modern .table-wrap .dish-thumb {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(244,200,110,0.2);
  box-shadow: 0 12px 22px rgba(0,0,0,0.18);
  flex-shrink: 0;
  background: rgba(255,255,255,0.04);
}
body.theme-modern.menu-image-view .table-wrap tbody tr {
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-rows: auto !important;
  align-items: stretch;
  border-bottom: 1px solid rgba(244,200,110,0.1);
}
body.theme-modern.menu-image-view .table-wrap tbody tr:last-child { border-bottom: 0; }
body.theme-modern.menu-image-view .table-wrap tbody td:not(:first-child) {
  display: none !important;
}
body.theme-modern.menu-image-view .table-wrap tbody td:first-child .dish-btn {
  align-self: flex-start;
  padding: 0;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.16rem;
}
body.theme-modern .dish-description {
  margin: 4px 0 0;
  color: #cbb9a7;
  font-size: .82rem;
  font-weight: 500;
  line-height: 1.45;
}

@media (min-width:861px){
  body.theme-modern.menu-image-view .table-wrap thead { display: none; }
  body.theme-modern.menu-image-view .table-wrap tbody {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 18px !important;
  }
  body.theme-modern.menu-image-view .table-wrap tbody tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: minmax(126px, 1fr);
    align-items: stretch;
    border: 1px solid rgba(244,200,110,0.14);
    border-radius: 18px;
    overflow: hidden;
    background: linear-gradient(145deg, rgba(39,31,25,0.98), rgba(24,19,16,0.98));
    box-shadow: 0 16px 34px rgba(0,0,0,0.16);
  }
  body.theme-modern.menu-image-view .table-wrap tbody tr:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 42px rgba(0,0,0,0.24);
  }
  body.theme-modern.menu-image-view .table-wrap tbody td:first-child {
    grid-column: 1 / -1;
    min-height: 0;
    padding: 16px;
    border-bottom: 1px solid rgba(244,200,110,0.12);
  }
  body.theme-modern.menu-image-view .table-wrap .dish-thumb {
    width: 96px;
    height: 96px;
    border-radius: 16px;
  }
}
body.theme-modern .featured-meta {
  display:flex; flex-wrap:wrap; gap:8px; margin-top:18px;
}
body.theme-modern .featured-meta span {
  display:inline-flex; padding: 7px 10px; border-radius:999px; background: rgba(255,255,255,0.05); border:1px solid rgba(244,200,110,0.15); color:#f5d7a8; font-size:0.8rem; font-weight:700;
}
body.theme-modern .featured-actions {
  margin-top: 22px;
}
body.theme-modern .featured-visual {
  position: relative; min-height: 280px; background: rgba(0,0,0,0.15);
}
body.theme-modern .featured-visual img {
  width:100%; height:100%; object-fit:cover; filter: saturate(1.15) contrast(1.08);
}
body.theme-modern .featured-visual::after {
  content:""; position:absolute; inset:0; background: linear-gradient(90deg, rgba(18,15,12,0.12), rgba(18,15,12,0.38));
}

/* Sections */
body.theme-modern .section{ padding:54px 0 }
body.theme-modern .section .section-header{
  margin-bottom: 26px;
  padding-bottom: 14px;
  border-bottom: 2px solid rgba(244,200,110,0.22);
  position: relative;
}
body.theme-modern .section .section-header::after{
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 120px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand), rgba(244,200,110,0.15));
}
body.theme-modern .section .section-header h2{
  font-family:'Playfair Display', serif; font-size: clamp(1.9rem, 2.4vw, 2.7rem); color:#f7e5d5;
  padding-bottom: 6px; letter-spacing: -0.03em; text-transform: none;
  text-shadow: 0 2px 20px rgba(0,0,0,0.2);
}
body.theme-modern .mthumb{
  width: 46px; height: 46px; border-radius: 14px; object-fit: cover;
  box-shadow: 0 10px 22px rgba(12,107,81,0.12);
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}
body.theme-modern .mthumb:hover{
  transform: scale(1.08);
  box-shadow: 0 14px 30px rgba(12,107,81,0.16);
}
body.theme-modern .table-wrap table{
  border-radius:20px; overflow:hidden; border: 1px solid rgba(244,200,110,0.12);
  box-shadow: 0 18px 44px rgba(0,0,0,0.18);
  background: linear-gradient(180deg, rgba(27,22,19,0.96), rgba(18,15,12,0.92));
  table-layout: fixed;
}
body.theme-modern .table-wrap table col:first-child{ width: 58%; }
body.theme-modern .table-wrap table col[data-col]{ width: 21%; }
body.theme-modern .table-wrap thead th:first-child{ text-align: left; }
body.theme-modern .table-wrap thead th:not(:first-child),
body.theme-modern .table-wrap tbody td:not(:first-child){ text-align: center; }
body.theme-modern .table-wrap tbody tr{
  position: relative;
  background: rgba(255,255,255,0.012);
  cursor: pointer;
}
body.theme-modern .table-wrap tbody tr:focus-visible{
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}
body.theme-modern .table-wrap tbody tr::before{
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: transparent;
  transition: background .24s ease;
}
body.theme-modern .table-wrap tbody tr:hover::before{
  background: linear-gradient(180deg, transparent, var(--brand), transparent);
}
body.theme-modern .table-wrap td:first-child .dish-btn{
  color: #fff0dc;
  letter-spacing: .01em;
}
body.theme-modern .table-wrap td:not(:first-child){
  min-width: 92px;
  text-align: center;
}
body.theme-modern thead th{
  background: linear-gradient(180deg, rgba(217,139,66,0.22), rgba(255,255,255,0.02));
  color: #f6dca9; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.76rem;
}
body.theme-modern tbody tr{
  transition: background 0.24s ease, transform 0.24s ease, box-shadow 0.24s ease;
}
body.theme-modern tbody tr:hover{
  background: linear-gradient(90deg, rgba(217,139,66,0.05), rgba(244,200,110,0.05), rgba(217,139,66,0.08));
  transform: translateX(4px);
  box-shadow: inset 0 0 0 1px rgba(244,200,110,0.08);
}
body.theme-modern tbody td{ color:#f7e5d5; }
body.theme-modern .table-wrap td, body.theme-modern .table-wrap th{ padding:16px 18px }
body.theme-modern .table-wrap td:first-child {
  font-weight: 700;
  letter-spacing: 0.01em;
}
body.theme-modern .table-wrap td:not(:first-child) {
  font-weight: 700;
  color: #f8dca7;
}

/* Cards and small UI */
body.theme-modern .ws-card, body.theme-modern .t-card, body.theme-modern .rec-card, body.theme-modern .contact-card{
  border-radius:20px; background: linear-gradient(180deg, rgba(31,27,24,0.96), rgba(25,21,18,0.92));
  box-shadow:0 18px 40px rgba(0,0,0,0.14); border:1px solid rgba(244,200,110,0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}
body.theme-modern .ws-card::before, body.theme-modern .t-card::before, body.theme-modern .rec-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 110px; height: 3px;
  background: linear-gradient(90deg, var(--brand), transparent);
}
body.theme-modern .ws-card:hover, body.theme-modern .t-card:hover, body.theme-modern .rec-card:hover, body.theme-modern .contact-card:hover{
  transform: translateY(-4px); box-shadow:0 24px 52px rgba(0,0,0,0.18);
}
body.theme-modern .badge{ font-weight:800 }

/* Testimonials */
body.theme-modern #testimonials .t-card{
  border-left: 4px solid rgba(255,209,102,0.8);
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(244,255,248,0.96));
}
body.theme-modern #testimonials .t-card:nth-child(1){
  border-left-color:#d98b42;
  background:linear-gradient(145deg, rgba(217,139,66,0.2), rgba(31,27,24,0.96));
}
body.theme-modern #testimonials .t-card:nth-child(2){
  border-left-color:#c86f61;
  background:linear-gradient(145deg, rgba(200,111,97,0.2), rgba(31,27,24,0.96));
}
body.theme-modern #testimonials .t-card:nth-child(3){
  border-left-color:#779b62;
  background:linear-gradient(145deg, rgba(119,155,98,0.2), rgba(31,27,24,0.96));
}
body.theme-modern #testimonials .t-card .t-quote,
body.theme-modern #testimonials .t-card .t-meta{ color:#f7e5d5; }
body.theme-modern #testimonials .t-stars{ letter-spacing:0.14em; }
body.theme-modern #testimonials .t-quote{ font-size:0.98rem; }

/* Menu buttons */
body.theme-modern .dish-btn{
  position:relative; border-radius:6px; padding: 3px 4px; transition: background 0.2s ease, transform 0.2s ease;
}
body.theme-modern .dish-btn:hover, body.theme-modern .dish-btn:focus-visible{
  background: rgba(12,107,81,0.06); transform: translateX(2px); text-decoration:none;
}

/* Readable dish modal */
body.theme-modern .modal-backdrop{ background: rgba(5,4,3,0.78); backdrop-filter: blur(8px); }
body.theme-modern .modal-dialog{
  width: min(860px, calc(100vw - 28px));
  max-height: min(88vh, 760px);
  background: #211b17;
  border: 1px solid rgba(244,200,110,0.2);
  border-radius: 24px;
  color: #fff0dc;
  overflow: hidden;
}
body.theme-modern .modal-media{ min-height: 0; height: 250px; background: #120f0c; flex: 0 0 250px; }
body.theme-modern .modal-media img{ width: 100%; height: 100%; object-fit: cover; }
body.theme-modern .modal-body{ padding: 24px 26px 28px; overflow-y: auto; background: linear-gradient(180deg, #211b17, #18130f); }
body.theme-modern .modal-body h3{ margin: 0 0 12px; color: #fff4e6; font-family: 'Playfair Display', serif; font-size: clamp(1.6rem, 4vw, 2.2rem); line-height: 1.1; }
body.theme-modern .modal-body p,
body.theme-modern .modal-body .dish-desc{ margin: 0 0 14px; color: #f0dfcc; line-height: 1.7; font-size: 1rem; }
body.theme-modern .modal-body .dish-ingredients{ margin: 0; padding-left: 20px; color: #f7e5d5; line-height: 1.7; }
body.theme-modern .modal-body .dish-ingredients li{ margin: 3px 0; }
body.theme-modern .modal-tags .tag{ background: rgba(217,139,66,0.14); color: #f7d18e; border-color: rgba(244,200,110,0.26); }
body.theme-modern .modal-close{ z-index: 2; background: rgba(18,15,12,0.82); border: 1px solid rgba(244,200,110,0.3); }
body.theme-modern .modal-close .x::before,
body.theme-modern .modal-close .x::after{ background: #f7d18e; }
body.theme-modern .go-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border: 1px solid rgba(244,200,110,0.3);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(217,139,66,0.95), rgba(128,79,32,0.9));
  color: #fff7eb;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 18px 26px rgba(0,0,0,0.22);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: bottom 0.2s ease, opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 50;
}
body.theme-modern .go-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
body.theme-modern .go-top:hover,
body.theme-modern .go-top:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 20px 30px rgba(0,0,0,0.28);
}
@media (min-width:900px){
  body.theme-modern .modal-dialog{ display:grid; grid-template-columns: 48% 1fr; grid-template-areas: "media body"; }
  body.theme-modern .modal-media{ grid-area: media; height: auto; min-height: 100%; }
  body.theme-modern .modal-body{ grid-area: body; min-height: 0; }
}
@media (max-width:899px){
  body.theme-modern .modal-dialog{ max-height: 90vh; }
  body.theme-modern .modal-media{ height: 210px; flex-basis: 210px; }
  body.theme-modern .modal-body{ padding: 20px 20px 24px; }
}

/* Footer */
body.theme-modern footer{
  background: linear-gradient(180deg, rgba(18,15,12,0.8), rgba(18,15,12,0.96));
  border-top: 1px solid rgba(244,200,110,0.12);
  color: var(--muted);
}

/* Footer */
body.theme-modern footer{ background:transparent; color:var(--muted); padding:30px 18px; border-top:1px solid rgba(8,21,18,0.04) }
body.theme-modern footer{
  margin-top: 28px;
  padding: 38px 18px 34px;
  background: linear-gradient(180deg, rgba(18,15,12,0.4), rgba(10,8,6,0.96));
  border-top: 1px solid rgba(244,200,110,0.2);
}
body.theme-modern .footer-inner{
  max-width: 1100px;
  margin: 0 auto;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(220px, .7fr) minmax(0, 1.3fr);
  align-items: start;
  gap: 48px;
}
body.theme-modern .footer-brand{
  display: flex;
  align-items: center;
  gap: 16px;
}
body.theme-modern .footer-brand-copy,
body.theme-modern .footer-notice{
  display: block;
  max-width: none;
  margin: 0;
}
body.theme-modern .footer-logo{
  width: 72px;
  height: 72px;
  flex: 0 0 72px;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid rgba(244,200,110,0.34);
  box-shadow: 0 10px 28px rgba(217,139,66,0.2);
}
body.theme-modern .footer-brand strong,
body.theme-modern .footer-brand small{ display: block; }
body.theme-modern .footer-brand strong{ color: #fff0dc; font-family: 'Playfair Display', serif; font-size: 1.28rem; }
body.theme-modern .footer-brand small{ margin-top: 5px; color: #bda995; font-size: .8rem; }
body.theme-modern .footer-notices{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 24px;
  padding-left: 28px;
  border-left: 1px solid rgba(244,200,110,0.22);
  color: #bda995;
  font-size: .78rem;
  line-height: 1.5;
  text-align: left;
}
body.theme-modern .footer-notices-label{
  grid-column: 1 / -1;
  margin: 0 0 12px;
  color: #f7d18e;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
body.theme-modern .footer-notice + .footer-notice{ border-left: 1px solid rgba(244,200,110,0.14); padding-left: 24px; }
body.theme-modern .footer-notice strong{ display: block; margin-bottom: 5px; color: #f0dfcc; font-size: .82rem; }
body.theme-modern .footer-notice p{ margin: 0; }
body.theme-modern .theme-control{ display:flex; align-items:center; gap:10px; }
body.theme-modern .theme-label{ color:#bda995; font-weight:700; font-size:.82rem; text-transform:uppercase; letter-spacing:.12em; }

/* Responsive tweaks */
@media (max-width:860px){
  body.theme-modern{ padding-top: 78px; }
  body.theme-modern .table-wrap { overflow: visible; }
  body.theme-modern .table-wrap table,
  body.theme-modern .table-wrap thead,
  body.theme-modern .table-wrap tbody { display: block; width: 100%; min-width: 0; }
  body.theme-modern .table-wrap colgroup { display: none; }
  body.theme-modern .table-wrap thead tr,
  body.theme-modern .table-wrap tbody tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 72px 72px;
    align-items: center;
    position: relative;
  }
  body.theme-modern .table-wrap thead th,
  body.theme-modern .table-wrap tbody td {
    display: block;
    width: auto !important;
    min-width: 0 !important;
    padding: 12px 8px;
  }
  body.theme-modern .table-wrap thead th:first-child,
  body.theme-modern .table-wrap tbody td:first-child {
    grid-column: 1;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    text-align: left;
  }
  body.theme-modern .table-wrap thead th:not(:first-child),
  body.theme-modern .table-wrap tbody td:not(:first-child) { text-align: center; }
  body.theme-modern .table-wrap thead th:nth-child(3),
  body.theme-modern .table-wrap tbody td:nth-child(3) {
    position: absolute;
    right: 0;
    top: 0;
    width: 72px !important;
    height: 100%;
  }
  body.theme-modern .table-wrap tbody td:first-child .dish-btn { white-space: normal; text-align: left; overflow-wrap: anywhere; }
  body.theme-modern .table-wrap tbody td .price { min-width: 0 !important; white-space: nowrap; }
  body.theme-modern .links{ gap:8px }
  body.theme-modern .hero{ padding:36px 16px }
  body.theme-modern .featured-card { grid-template-columns: 1fr; }
  body.theme-modern .featured-copy { padding: 24px 20px 18px; }
  body.theme-modern .featured-visual { min-height: 220px; }
}

/* Small utility */
body.theme-modern a{text-decoration:none}
body.theme-modern [id]{ scroll-margin-top: 92px; }

/* Hamburger + mobile sheet behaviour (global) */
.menu-toggle{transition:transform .18s ease}
.menu-toggle .bar{transition:transform .18s cubic-bezier(.2,.9,.2,1), opacity .12s ease}
.menu-toggle.open .bar:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.menu-toggle.open .bar:nth-child(2){ opacity:0; transform: scaleX(0); }
.menu-toggle.open .bar:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

@media (max-width:860px){
  .links{ display: none; transition: transform .28s cubic-bezier(.2,.9,.2,1), opacity .18s ease; transform-origin: top; }
  .links{ transform: translateY(-6vh); opacity:0; }
  .links.open{ display: grid !important; transform: translateY(0); opacity:1; }
  body.nav-open{ overflow:hidden; touch-action:none; }
  body.theme-modern .links {
    position: absolute;
    top: calc(100% + 10px);
    left: 16px;
    right: 16px;
    bottom: auto;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
    background: rgba(18,15,12,0.97); border: 1px solid rgba(244,200,110,0.15); box-shadow: 0 25px 50px rgba(0,0,0,0.42);
    border-radius: 20px; padding: 16px; backdrop-filter: blur(12px);
    z-index: 1450;
  }
  body.theme-modern .top-bar.scrolled .links{ top: calc(100% + 8px); max-height: calc(100vh - 92px); }
  body.theme-modern .links a {
    background: rgba(255,255,255,0.03); border: 1px solid rgba(244,200,110,0.1); color: #f7e5d5; padding: 12px 14px;
  }
  body.theme-modern .links .cta {
    margin-top: 4px; padding: 12px 16px; }
  body.theme-modern .menu-toggle {
    position: relative;
    z-index: 1500;
    background: linear-gradient(135deg, rgba(217,139,66,0.14), rgba(255,255,255,0.02));
    border: 1px solid rgba(244,200,110,0.18); box-shadow: 0 10px 20px rgba(0,0,0,0.12);
  }
  body.theme-modern .brand img{ width: 50px; height: 50px; }
  body.theme-modern .brand span{ font-size: 1.05rem; }
  body.theme-modern .hero .logo{ width:64px !important; max-width:64px !important; height:64px !important; }
  body.theme-modern footer{ padding: 30px 18px max(30px, calc(env(safe-area-inset-bottom) + 18px)); }
  body.theme-modern .footer-inner{ width: 100%; grid-template-columns: 1fr; gap: 20px; }
  body.theme-modern .footer-brand{ justify-content: center; width: 100%; }
  body.theme-modern .footer-logo{ width: 64px; height: 64px; flex-basis: 64px; }
  body.theme-modern .footer-notices{
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 18px 0 0;
    border-left: 0;
    border-top: 1px solid rgba(244,200,110,0.22);
    text-align: left;
  }
  body.theme-modern .footer-notices-label{ margin-bottom: 0; text-align: center; }
  body.theme-modern .footer-notice + .footer-notice{ padding: 14px 0 0; border-left: 0; border-top: 1px solid rgba(244,200,110,0.14); }
}

@media (max-width:1200px){
  body.theme-modern .table-wrap { overflow: visible; }
  body.theme-modern .table-wrap table,
  body.theme-modern .table-wrap thead,
  body.theme-modern .table-wrap tbody { display: block; width: 100%; min-width: 0; }
  body.theme-modern .table-wrap colgroup { display: none; }
  body.theme-modern .table-wrap thead tr,
  body.theme-modern .table-wrap tbody tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 72px 72px;
    align-items: center;
  }
  body.theme-modern .table-wrap thead th,
  body.theme-modern .table-wrap tbody td {
    display: block;
    width: auto !important;
    min-width: 0 !important;
    padding: 12px 8px;
  }
  body.theme-modern .table-wrap thead th:first-child,
  body.theme-modern .table-wrap tbody td:first-child {
    grid-column: 1;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    text-align: left;
  }
  body.theme-modern .table-wrap thead th:not(:first-child),
  body.theme-modern .table-wrap tbody td:not(:first-child) { text-align: center; }
  body.theme-modern .table-wrap tbody td:first-child .dish-btn { white-space: normal; text-align: left; overflow-wrap: anywhere; }
  body.theme-modern .table-wrap tbody td .price { min-width: 0 !important; white-space: nowrap; }
}

/* Stable menu layout: one dish column and two fixed price columns at every width. */
body.theme-modern .table-wrap table,
body.theme-modern .table-wrap thead,
body.theme-modern .table-wrap tbody { display: block; width: 100%; min-width: 0; }
body.theme-modern .table-wrap colgroup { display: none; }
body.theme-modern .table-wrap thead tr,
body.theme-modern .table-wrap tbody tr {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 88px 88px;
  position: relative;
}
body.theme-modern .table-wrap thead th,
body.theme-modern .table-wrap tbody td {
  display: block;
  width: auto !important;
  min-width: 0 !important;
  padding: 14px 10px;
}
body.theme-modern .table-wrap thead th:first-child,
body.theme-modern .table-wrap tbody td:first-child {
  grid-column: 1;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  text-align: left;
}
body.theme-modern .table-wrap thead th:not(:first-child),
body.theme-modern .table-wrap tbody td:not(:first-child) { text-align: center; }
body.theme-modern .table-wrap tbody td:first-child .dish-btn {
  white-space: normal;
  text-align: left;
  overflow-wrap: anywhere;
}
body.theme-modern .table-wrap tbody td .price { min-width: 0 !important; white-space: nowrap; }

/* Dish-only menu view: tray and price columns are intentionally omitted. */
body.theme-modern .table-wrap table th:not(:first-child),
body.theme-modern .table-wrap table td:not(:first-child) { display: none !important; }
body.theme-modern .table-wrap table tr { grid-template-columns: minmax(0, 1fr) !important; }

@media (max-width:1200px){
  body.theme-modern .table-wrap thead tr { grid-template-columns: minmax(0, 1fr) 1fr 1fr; }
  body.theme-modern .table-wrap tbody tr { grid-template-columns: 1fr 1fr; }
  body.theme-modern .table-wrap thead th:first-child,
  body.theme-modern .table-wrap tbody td:first-child { grid-column: 1 / -1; }
  body.theme-modern .table-wrap thead th:nth-child(3),
  body.theme-modern .table-wrap tbody td:nth-child(3) {
    position: static;
    width: auto !important;
    height: auto;
  }
  body.theme-modern .table-wrap tbody td:not(:first-child) {
    border-top: 1px solid rgba(244,200,110,0.1);
  }
}

/* Theme switch UI (applies regardless of theme) */
.theme-switch{
  display:inline-flex; align-items:center; gap:10px; background:transparent; border:0; padding:4px; cursor:pointer;
}
.theme-switch .track{ width:56px; height:28px; background:#e9e9e9; border-radius:999px; position:relative; display:inline-block; flex:0 0 auto }
.theme-switch .knob{ position:absolute; left:4px; top:4px; width:20px; height:20px; background:#fff; border-radius:50%; box-shadow:0 6px 18px rgba(2,6,4,0.12); transition:transform .22s cubic-bezier(.2,.9,.2,1); }
.theme-switch.on .track{ background:var(--brand); }
.theme-switch.on .knob{ transform:translateX(28px); }
.theme-switch .switch-text{ font-weight:800; color:#334; min-width:64px; text-align:left }
body.theme-modern .theme-switch .switch-text{ color: #fff }

