/* Restaurant / food storefront theme. Colours and surfaces only; no layout or behaviour changes. */
body.theme-restaurant{
  --sf-brand:#b8321a;
  --sf-acc:#f5b301;
  --sf-bg:#fffaf3;
  --sf-ink:#1d1a17;
  --sf-line:#f0e4d4;
  --sf-mut:#7a6e63;
  background:var(--sf-bg);
}
body.theme-restaurant .sf-hero{background:linear-gradient(135deg,#1d1a17 0%,#2e1b14 60%,#4a2016 100%)}
body.theme-restaurant .sf-hero h1{color:#fff}
body.theme-restaurant .sf-type{background:#f5b301;color:#1d1a17;border-radius:999px;padding:3px 10px;font-weight:700}
body.theme-restaurant .sf-slogan{color:#f5b301}
body.theme-restaurant .sf-tabs a.is-on,
body.theme-restaurant .sf-browse a.is-on{background:#b8321a;color:#fff}
body.theme-restaurant .sf-card{border-radius:16px;border-color:#f0e4d4;background:#fff}
body.theme-restaurant .sf-card .sf-badge{background:#f5b301;color:#1d1a17}
body.theme-restaurant .sf-card .sf-price b{color:#b8321a}
body.theme-restaurant .sf-card .sf-stock{color:#2f7d46}
body.theme-restaurant .sf-btn-primary,
body.theme-restaurant .sf-hbtn-solid{background:#b8321a;border-color:#b8321a;color:#fff}
body.theme-restaurant .sf-btn-primary:hover,
body.theme-restaurant .sf-hbtn-solid:hover{background:#9a2814}
body.theme-restaurant .sf-group-head h3{color:#1d1a17}
body.theme-restaurant .sf-group-head{border-bottom-color:#f0e4d4}

/* ===== Premium pass: serif headings, gold details, refined cards, shimmer while photos load ===== */
body.theme-restaurant{
  --sf-gold:#c9a24a;
  --sf-radius:18px;
  --sf-shadow:0 1px 2px rgba(29,26,23,.06),0 12px 28px -16px rgba(29,26,23,.28);
  font-family:"DM Sans",system-ui,-apple-system,"Segoe UI",sans-serif;
}
body.theme-restaurant h1,
body.theme-restaurant .sf-heading h2,
body.theme-restaurant .sf-group-head h3,
body.theme-restaurant .sf-ghead h2{
  font-family:Georgia,"Times New Roman",serif;
  font-weight:600;
  letter-spacing:-.2px;
}
body.theme-restaurant .sf-hero{
  border-bottom:1px solid rgba(201,162,74,.35);
}
body.theme-restaurant .sf-hero::after{
  content:"";display:block;height:3px;width:72px;margin:18px auto 0;background:var(--sf-gold);border-radius:3px;
}
body.theme-restaurant .sf-type{background:transparent;color:var(--sf-gold);border:1px solid var(--sf-gold);font-size:11px;letter-spacing:1.2px;text-transform:uppercase}
body.theme-restaurant .sf-card{border-radius:var(--sf-radius);box-shadow:var(--sf-shadow);border:1px solid #efe4d6}
body.theme-restaurant .sf-card .sf-name{font-family:Georgia,"Times New Roman",serif;font-size:17px;font-weight:600}
body.theme-restaurant .sf-card .sf-price b{color:var(--sf-brand);font-size:16px}
body.theme-restaurant .sf-card .sf-desc{color:var(--sf-mut)}
body.theme-restaurant .sf-card .sf-badge{letter-spacing:.4px;font-size:11px;text-transform:uppercase}
body.theme-restaurant .sf-group-head{border-bottom:1px solid #eadfcf}

/* Shimmer placeholder behind food photos while they load (pure CSS). */
body.theme-restaurant .sf-media{
  background:linear-gradient(90deg,#f4ece1 0%,#fffaf3 50%,#f4ece1 100%);
  background-size:200% 100%;
  animation:sf-shimmer 1.6s ease-in-out infinite;
}
body.theme-restaurant .sf-media img{background:transparent}
body.theme-restaurant .sf-media img[src]{animation:none}
@keyframes sf-shimmer{
  0%{background-position:100% 0}
  100%{background-position:-100% 0}
}
@media (prefers-reduced-motion:reduce){
  body.theme-restaurant .sf-media{animation:none}
}

/* Premium buttons */
body.theme-restaurant .sf-btn,
body.theme-restaurant .sf-hbtn{letter-spacing:.2px;border-radius:999px}
body.theme-restaurant .sf-btn-primary,
body.theme-restaurant .sf-hbtn-solid{box-shadow:0 10px 22px -12px rgba(184,50,26,.6)}

/* ===== Appetite pass: warm shadows, gold name underline, fade-up reveal as dishes scroll in ===== */
body.theme-restaurant{
  --sf-shadow-rest:0 1px 2px rgba(60,30,15,.06),0 10px 24px -14px rgba(60,30,15,.28);
  --sf-shadow-hover:0 2px 4px rgba(60,30,15,.08),0 22px 40px -18px rgba(184,50,26,.38);
}
body.theme-restaurant .sf-card{
  box-shadow:var(--sf-shadow-rest);
  transition:transform .35s cubic-bezier(.2,.7,.2,1),box-shadow .35s ease,opacity .5s ease;
}
body.theme-restaurant .sf-card:hover{
  transform:translateY(-4px);
  box-shadow:var(--sf-shadow-hover);
}
body.theme-restaurant .sf-card .sf-name{
  display:inline;
  background:linear-gradient(var(--sf-gold),var(--sf-gold)) no-repeat 0 100%/0 2px;
  transition:background-size .4s ease;
  padding-bottom:1px;
}
body.theme-restaurant .sf-card:hover .sf-name,
body.theme-restaurant .sf-card:focus-within .sf-name{
  background-size:100% 2px;
}
body.theme-restaurant .sf-card .sf-price b{
  display:inline-block;
  transition:transform .35s cubic-bezier(.2,.7,.2,1);
}
body.theme-restaurant .sf-card:hover .sf-price b{transform:scale(1.06);transform-origin:left center}

/* Reveal: only when JavaScript is running (html.js-reveal is added by the page). */
html.js-reveal body.theme-restaurant .sf-card:not(.is-revealed){
  opacity:0;
  transform:translateY(18px);
}
html.js-reveal body.theme-restaurant .sf-card.is-revealed{
  opacity:1;
  transform:none;
}

@media (prefers-reduced-motion:reduce){
  body.theme-restaurant .sf-card,
  body.theme-restaurant .sf-card .sf-name,
  body.theme-restaurant .sf-card .sf-price b{transition:none}
  body.theme-restaurant .sf-card:hover{transform:none}
  html.js-reveal body.theme-restaurant .sf-card:not(.is-revealed){opacity:1;transform:none}
}

/* ===== Dish icon placeholder (used when a dish has no photo) ===== */
body.theme-restaurant .sf-media-empty{
  background:radial-gradient(circle at 50% 42%,#fffdf8 0%,#fbf0e1 62%,#f3e2c8 100%);
  color:var(--sf-brand);
}
body.theme-restaurant .sf-media-empty .icon{
  width:64px;height:64px;padding:14px;border-radius:50%;
  background:#fff;box-shadow:0 0 0 1px rgba(201,162,74,.45),0 12px 24px -12px rgba(184,50,26,.35);
  stroke-width:1.6;
  transition:transform .4s cubic-bezier(.2,.7,.2,1);
}
body.theme-restaurant .sf-card:hover .sf-media-empty .icon{transform:translateY(-3px) rotate(-4deg)}
@media (prefers-reduced-motion:reduce){
  body.theme-restaurant .sf-media-empty .icon{transition:none}
  body.theme-restaurant .sf-card:hover .sf-media-empty .icon{transform:none}
}

/* ===== Reference style: fresh green + orange-red, light hero, rounded white cards, pill buttons ===== */
body.theme-restaurant{
  --sf-brand:#3f9a6e;        /* fresh green: primary buttons, prices */
  --sf-acc:#f5561c;          /* orange-red: highlights and badges */
  --sf-bg:#f7f8f5;
  --sf-ink:#16231d;
  --sf-line:#e6ece8;
  --sf-mut:#6b7a72;
  --sf-gold:#f5561c;
  background:#f7f8f5;
}

/* Hero: light, with an orange accent instead of the dark brown */
body.theme-restaurant .sf-hero{
  background:
    radial-gradient(circle at 92% 10%, rgba(245,86,28,.10), transparent 38%),
    linear-gradient(180deg,#ffffff 0%,#f7f8f5 100%);
  color:var(--sf-ink);
  border-bottom:1px solid var(--sf-line);
  box-shadow:none;
}
body.theme-restaurant .sf-hero h1{color:var(--sf-ink);text-shadow:none;font-family:Georgia,"Times New Roman",serif;font-weight:700}
body.theme-restaurant .sf-hero::after{background:#f5561c;width:56px;height:3px;margin:16px auto 0}
body.theme-restaurant .sf-about,
body.theme-restaurant .sf-slogan{color:var(--sf-mut)}
body.theme-restaurant .sf-slogan{color:#f5561c;font-weight:600}
body.theme-restaurant .sf-type{
  background:#eaf6ef;color:#2f7f58;border:0;
  font-size:11px;letter-spacing:.8px;text-transform:uppercase;font-weight:700;
}

/* Header buttons: green pill with a soft shadow */
body.theme-restaurant .sf-hbtn-solid,
body.theme-restaurant .sf-btn-primary{
  background:#3f9a6e;border-color:#3f9a6e;color:#fff;
  box-shadow:0 10px 22px -12px rgba(63,154,110,.7);
}
body.theme-restaurant .sf-hbtn-solid:hover,
body.theme-restaurant .sf-btn-primary:hover{background:#34855d;border-color:#34855d}
body.theme-restaurant .sf-hbtn-ghost,
body.theme-restaurant .sf-btn-ghost{
  background:#fff;color:#2f7f58;border:1px solid #d6e7dd;
}
body.theme-restaurant .sf-hbtn-ghost:hover,
body.theme-restaurant .sf-btn-ghost:hover{background:#f1f8f4}

/* Product cards: rounded white, soft shadow, green price, orange badge */
body.theme-restaurant .sf-card{
  border-radius:20px;border:1px solid #edf1ee;background:#fff;
  box-shadow:0 1px 2px rgba(22,35,29,.05),0 12px 28px -18px rgba(22,35,29,.25);
}
body.theme-restaurant .sf-card:hover{box-shadow:0 2px 4px rgba(22,35,29,.06),0 22px 40px -20px rgba(63,154,110,.45)}
body.theme-restaurant .sf-card .sf-badge{background:#f5561c;color:#fff;border-radius:999px;font-weight:700}
body.theme-restaurant .sf-card .sf-price b{color:#3f9a6e;font-size:17px}
body.theme-restaurant .sf-card .sf-name{font-family:Georgia,"Times New Roman",serif;color:var(--sf-ink)}
body.theme-restaurant .sf-card .sf-stock{color:#3f9a6e}
body.theme-restaurant .sf-card .sf-name{background-image:linear-gradient(#f5561c,#f5561c)}

/* Section headings: serif with a short orange rule, like the reference */
body.theme-restaurant .sf-group-head{border-bottom:1px solid #e6ece8}
body.theme-restaurant .sf-group-head h3,
body.theme-restaurant .sf-heading h2{color:var(--sf-ink)}

/* Search and tabs */
body.theme-restaurant .sf-search{border-radius:999px;border-color:#e0e9e3}
body.theme-restaurant .sf-search:focus-within{box-shadow:0 0 0 3px rgba(63,154,110,.18)}


/* Placeholder icons in green */
body.theme-restaurant .sf-media-empty{background:radial-gradient(circle at 50% 42%,#ffffff 0%,#eef7f2 70%,#e2f0e8 100%);color:#3f9a6e}
body.theme-restaurant .sf-media-empty .icon{box-shadow:0 0 0 1px rgba(63,154,110,.25),0 12px 24px -12px rgba(63,154,110,.4)}

/* Category entries list their dishes line by line in the description: keep the line breaks in the details view. */
body.theme-restaurant #modalProductDescription{white-space:pre-line;line-height:1.6}

/* ===== Product details: menu sections and dish price rows ===== */
body.theme-restaurant #modalProductDescription{white-space:normal}
body.theme-restaurant .fz-menu{display:grid;gap:4px;margin:6px 0 4px}
body.theme-restaurant .fz-sec{margin-top:10px}
body.theme-restaurant .fz-sec h4{display:flex;align-items:center;gap:8px;font-size:11px;font-weight:800;letter-spacing:1.4px;color:#2f7f58;text-transform:uppercase;padding-bottom:6px;border-bottom:1px solid #e6ece8;margin-bottom:4px}
body.theme-restaurant .fz-dot{width:9px;height:9px;border-radius:50%;display:inline-block}
body.theme-restaurant .fz-dot.veg{background:#3f9a6e}
body.theme-restaurant .fz-dot.egg{background:#f5b301}
body.theme-restaurant .fz-dot.non{background:#f5561c}
body.theme-restaurant .fz-row{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:8px 0;border-bottom:1px dashed #edf1ee}
body.theme-restaurant .fz-row:last-child{border-bottom:0}
body.theme-restaurant .fz-name{font-weight:600;font-size:15px;color:#16231d}
body.theme-restaurant .fz-prices{display:flex;gap:6px;flex:0 0 auto}
body.theme-restaurant .fz-p{display:inline-flex;flex-direction:column;align-items:center;min-width:58px;padding:4px 8px;border-radius:10px;background:#f1f8f4;border:1px solid #d6e7dd;font-weight:800;font-size:14px;color:#2f7f58;line-height:1.15}
body.theme-restaurant .fz-p small{font-size:9px;font-weight:700;letter-spacing:.6px;text-transform:uppercase;color:#6b7a72}
body.theme-restaurant .fz-p.one{background:#16231d;border-color:#16231d;color:#fff}
body.theme-restaurant .fz-p.one small{color:#cfe9db}
body.theme-restaurant .fz-note{margin-top:12px;padding:10px 12px;border-radius:12px;background:#fff7ed;color:#c23717;font-size:13px;font-weight:600}
@media (max-width:520px){ body.theme-restaurant .fz-row{flex-wrap:wrap} body.theme-restaurant .fz-prices{width:100%} }

/* ===== Welcome screen: shows for 5 seconds on page load, then fades out (CSS only) ===== */
body.theme-restaurant .fz-splash{
  position:fixed;inset:0;z-index:9999;display:flex;flex-direction:column;align-items:center;justify-content:center;
  gap:14px;padding:24px;text-align:center;color:#fff;
  background:radial-gradient(circle at 50% 35%,#2e1f18 0%,#1d1a17 70%);
  animation:fz-splash-out .6s ease 4.4s forwards;
}
body.theme-restaurant .fz-splash-logo{
  width:104px;height:104px;border-radius:50%;background:#fff;color:#3f9a6e;display:grid;place-items:center;
  font-family:Georgia,"Times New Roman",serif;font-size:46px;font-weight:900;
  box-shadow:0 0 0 7px rgba(245,181,1,.22),0 20px 40px -10px rgba(0,0,0,.5);
  animation:fz-splash-in .7s cubic-bezier(.34,1.56,.64,1) both;overflow:hidden;
}
body.theme-restaurant .fz-splash-logo img{width:72px;height:72px;object-fit:contain}
body.theme-restaurant .fz-splash h1{
  font-family:Georgia,"Times New Roman",serif;font-size:clamp(28px,6vw,44px);font-weight:800;letter-spacing:.3px;
  margin-top:6px;animation:fz-splash-up .7s ease .25s both;
}
body.theme-restaurant .fz-splash h1 span{color:#f5b301}
body.theme-restaurant .fz-splash .sub{color:#e9dccf;font-size:15px;animation:fz-splash-up .7s ease .45s both}
body.theme-restaurant .fz-splash .by{
  margin-top:24px;display:flex;align-items:center;gap:8px;font-size:12px;letter-spacing:1.4px;text-transform:uppercase;
  color:#cdbfb0;animation:fz-splash-up .7s ease .65s both;
}
body.theme-restaurant .fz-splash .by img{height:18px;width:auto;filter:brightness(0) invert(1)}
body.theme-restaurant .fz-splash .bar{width:170px;height:3px;border-radius:3px;background:rgba(255,255,255,.15);overflow:hidden;margin-top:8px}
body.theme-restaurant .fz-splash .bar::after{content:"";display:block;height:100%;background:#f5b301;animation:fz-bar 5s linear forwards}
@keyframes fz-bar{from{width:0}to{width:100%}}
@keyframes fz-splash-in{from{opacity:0;transform:scale(.6) rotate(-8deg)}to{opacity:1;transform:none}}
@keyframes fz-splash-up{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}
@keyframes fz-splash-out{to{opacity:0;visibility:hidden}}
@media (prefers-reduced-motion:reduce){
  body.theme-restaurant .fz-splash{animation:fz-splash-out .4s ease 4.6s forwards}
  body.theme-restaurant .fz-splash *{animation:none}
  body.theme-restaurant .fz-splash .bar::after{width:100%}
}

/* ===== Details view: icons and mobile-friendly layout ===== */
body.theme-restaurant .fz-ico{display:inline-grid;place-items:center;width:30px;height:30px;border-radius:50%;background:#f1f8f4;font-size:16px;flex:0 0 auto;margin-right:8px;line-height:1}
body.theme-restaurant .fz-ico-sec{background:#fff7ed;width:32px;height:32px;font-size:17px}
body.theme-restaurant .fz-sec h4{font-size:12px;gap:4px;padding-bottom:8px}
body.theme-restaurant .fz-row{padding:10px 0;align-items:center}
body.theme-restaurant .fz-name{display:flex;align-items:center;font-size:15.5px;line-height:1.3;min-width:0}
body.theme-restaurant .fz-p{min-width:64px;padding:6px 9px;border-radius:12px;font-size:15px}
body.theme-restaurant .fz-p small{font-size:9px}
@media (max-width:520px){
  body.theme-restaurant .fz-row{align-items:center;gap:10px}
  body.theme-restaurant .fz-name{font-size:15px}
  body.theme-restaurant .fz-ico{width:28px;height:28px;font-size:15px;margin-right:6px}
  body.theme-restaurant .fz-p{min-width:60px;padding:6px 8px}
  body.theme-restaurant .fz-note{font-size:12.5px}
}

/* ===== Mobile-first layout (phones default), with a centred wider layout for tablets and desktop / "Desktop site" mode ===== */
body.theme-restaurant{ -webkit-text-size-adjust:100%; text-size-adjust:100%; overflow-wrap:anywhere; }
body.theme-restaurant img,
body.theme-restaurant video{ max-width:100%; height:auto; }

/* Phone (default): one column of content, two product columns */
body.theme-restaurant .sf-wrap{ padding-inline:14px; }
body.theme-restaurant .sf-hero-in{ grid-template-columns:1fr; gap:16px; padding-block:18px 22px; }
body.theme-restaurant .sf-hero h1{ font-size:clamp(28px,8vw,40px); line-height:1.1; }
body.theme-restaurant .sf-grid{ grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
body.theme-restaurant .sf-ggrid{ grid-template-columns:1fr; gap:12px; }
body.theme-restaurant .sf-card .sf-name{ font-size:15px; line-height:1.3; }
body.theme-restaurant .sf-card .sf-desc{ font-size:12.5px; }
body.theme-restaurant .sf-card .sf-actions{ gap:6px; }
body.theme-restaurant .sf-btn,
body.theme-restaurant .sf-hbtn,
body.theme-restaurant .sf-share-fab{ min-height:44px; }
body.theme-restaurant .sf-hero-actions{ display:grid; grid-template-columns:1fr 1fr; gap:10px; }
body.theme-restaurant .sf-hero-actions .sf-hbtn{ justify-content:center; }
body.theme-restaurant .product-modal,
body.theme-restaurant .enquiry-modal,
body.theme-restaurant .owner-login-modal{ width:min(560px,94vw); max-height:90vh; max-height:90dvh; overflow-y:auto; }

/* Tablet */
@media (min-width:640px){
  body.theme-restaurant .sf-wrap{ padding-inline:22px; }
  body.theme-restaurant .sf-hero-in{ grid-template-columns:1fr auto; align-items:center; }
  body.theme-restaurant .sf-grid{ grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
  body.theme-restaurant .sf-ggrid{ grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
}

/* Desktop and Chrome "Desktop site": centred, wider, same content */
@media (min-width:1024px){
  body.theme-restaurant .sf-wrap{ max-width:1180px; padding-inline:28px; }
  body.theme-restaurant .sf-grid{ grid-template-columns:repeat(4,minmax(0,1fr)); gap:20px; }
  body.theme-restaurant .sf-ggrid{ grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; }
  body.theme-restaurant .sf-hero h1{ font-size:48px; }
  body.theme-restaurant .sf-card .sf-name{ font-size:17px; }
  body.theme-restaurant .sf-card .sf-desc{ font-size:13.5px; }
}
@media (min-width:1360px){
  body.theme-restaurant .sf-wrap{ max-width:1240px; }
}

/* Very small phones */
@media (max-width:359px){
  body.theme-restaurant .sf-grid{ grid-template-columns:1fr; }
  body.theme-restaurant .sf-hero-actions{ grid-template-columns:1fr; }
}

/* Food menu rows: soft image-like food panels; never use black price blocks. */
body.theme-restaurant .fz-menu{gap:7px;margin:8px 0 4px;}
body.theme-restaurant .fz-sec{margin-top:8px;}
body.theme-restaurant .fz-sec h4{font-size:12px;padding-bottom:8px;margin-bottom:7px;}
body.theme-restaurant .fz-row{
  position:relative;min-height:58px;padding:9px 10px 9px 66px;overflow:hidden;
  border:1px solid #e1eee4;border-radius:15px;border-bottom:1px solid #e1eee4;
  background:linear-gradient(105deg,#f2f9e9 0%,#fff 48%,#eef8f0 100%);
  box-shadow:0 2px 8px rgba(28,83,53,.045);
}
body.theme-restaurant .fz-row:before{
  content:"";position:absolute;left:0;top:0;bottom:0;width:58px;border-radius:14px 0 0 14px;
  background:radial-gradient(circle at 45% 40%,rgba(255,255,255,.95) 0 25%,transparent 27%),linear-gradient(145deg,#e4f4c5,#d5eddd);
}
body.theme-restaurant .fz-name{position:relative;z-index:1;display:flex;align-items:center;gap:8px;min-width:0;font-size:14px;color:#18352a;}
body.theme-restaurant .fz-name .fz-ico{position:absolute;left:-53px;top:50%;transform:translateY(-50%);width:42px;height:42px;display:grid;place-items:center;border-radius:50%;background:#fff;font-size:23px;box-shadow:0 2px 8px rgba(20,60,35,.1);}
body.theme-restaurant .fz-prices{position:relative;z-index:1;}
body.theme-restaurant .fz-p,
body.theme-restaurant .fz-p.one{min-width:62px;padding:7px 11px;border:1px solid #d3ebce;border-radius:999px;background:#e0f6d7;color:#075c43;font-size:15px;box-shadow:none;}
body.theme-restaurant .fz-p small,
body.theme-restaurant .fz-p.one small{color:#557a60;}
body.theme-restaurant .fz-note{margin-top:10px;border-radius:14px;padding:11px 13px;}
@media(max-width:520px){
 body.theme-restaurant .fz-row{flex-wrap:nowrap;gap:8px;padding:8px 8px 8px 60px;}
 body.theme-restaurant .fz-name{font-size:13.5px;}
 body.theme-restaurant .fz-name .fz-ico{left:-49px;width:38px;height:38px;font-size:21px;}
 body.theme-restaurant .fz-prices{width:auto;}
 body.theme-restaurant .fz-p,body.theme-restaurant .fz-p.one{min-width:54px;padding:6px 8px;font-size:13px;}
}

/* ===== Product details (menu format): section header, icon tiles, price pills, note banner ===== */
body.theme-restaurant .modal-gallery:not(:has(img:not([hidden]))):not(:has(video:not([hidden]))){display:none}
body.theme-restaurant .fz-menu{display:grid;gap:6px;margin:14px 0 6px}
body.theme-restaurant .fz-sec{margin-top:12px}
body.theme-restaurant .fz-sec-head{display:flex;align-items:center;gap:10px;margin-bottom:8px}
body.theme-restaurant .fz-sec-ico{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:#e9f6ee;font-size:17px;flex:0 0 auto}
body.theme-restaurant .fz-sec-title{font-size:12.5px;font-weight:800;letter-spacing:1.6px;color:#2f7f58;text-transform:uppercase}
body.theme-restaurant .fz-row{display:grid;grid-template-columns:48px minmax(0,1fr) auto;align-items:center;gap:12px;padding:10px 12px;margin-bottom:8px;border-radius:16px;border:1px solid #e3efe7;background:linear-gradient(90deg,#f5fbf7 0%,#ffffff 70%)}
body.theme-restaurant .fz-tile{width:48px;height:48px;border-radius:14px;display:grid;place-items:center;font-size:24px;background:#e6f5ec;box-shadow:inset 0 -2px 0 rgba(0,0,0,.04)}
body.theme-restaurant .fz-tile.egg{background:#fff4d1}
body.theme-restaurant .fz-tile.non{background:#ffe6dc}
body.theme-restaurant .fz-name{font-weight:700;font-size:15.5px;line-height:1.3;color:#16231d;min-width:0;overflow-wrap:anywhere}
body.theme-restaurant .fz-prices{display:flex;gap:6px;flex:0 0 auto}
body.theme-restaurant .fz-p{display:inline-flex;flex-direction:column;align-items:center;min-width:62px;padding:6px 10px;border-radius:12px;background:#d8f3e3;color:#136b3a;font-weight:800;font-size:15px;line-height:1.15}
body.theme-restaurant .fz-p small{font-size:9px;font-weight:800;letter-spacing:.6px;text-transform:uppercase;color:#3f7f5c}
body.theme-restaurant .fz-p.one{background:#cdeedb}
body.theme-restaurant .fz-note{display:flex;align-items:flex-start;gap:10px;margin-top:14px;padding:12px 14px;border-radius:14px;background:#fff1ea;color:#c23717;font-size:14px;font-weight:600;line-height:1.45}
body.theme-restaurant .fz-note-ico{width:24px;height:24px;border-radius:50%;border:2px solid #f5561c;display:grid;place-items:center;font-size:12px;flex:0 0 auto;margin-top:1px}
@media (max-width:520px){
  body.theme-restaurant .fz-row{grid-template-columns:44px minmax(0,1fr);gap:10px 12px;padding:10px}
  body.theme-restaurant .fz-tile{width:44px;height:44px;font-size:21px}
  body.theme-restaurant .fz-prices{grid-column:1 / -1;justify-content:flex-end}
  body.theme-restaurant .fz-p{min-width:58px;padding:5px 9px}
  body.theme-restaurant .fz-name{font-size:15px}
}

/* ===== FINAL visual fix: banner photo visible with readable text; product photos fill their frame ===== */
/* Banner header */
body.theme-restaurant .sf-hero{
  position:relative !important; overflow:hidden !important; isolation:isolate;
  min-height:300px; background:#1d1a17 !important; color:#ffffff !important; box-shadow:none;
}
body.theme-restaurant .sf-hero > .sf-cover{
  position:absolute !important; inset:0 !important; width:100% !important; height:100% !important;
  object-fit:cover !important; object-position:center 40%; z-index:0 !important; display:block !important; opacity:1 !important;
}
body.theme-restaurant .sf-hero::before{
  content:""; position:absolute; inset:0; z-index:1; pointer-events:none;
  background:linear-gradient(180deg,rgba(18,12,9,.25) 0%,rgba(18,12,9,.72) 65%,rgba(18,12,9,.88) 100%);
}
body.theme-restaurant .sf-hero-in{ position:relative !important; z-index:2 !important; }
body.theme-restaurant .sf-hero h1{ color:#ffffff !important; text-shadow:0 2px 14px rgba(0,0,0,.6); }
body.theme-restaurant .sf-hero .sf-about{ color:#f7efe6 !important; text-shadow:0 1px 8px rgba(0,0,0,.55); font-size:15px; }
body.theme-restaurant .sf-hero .sf-slogan{ color:#ffd66b !important; font-weight:700; text-shadow:0 1px 8px rgba(0,0,0,.55); }
body.theme-restaurant .sf-hero .sf-type{ background:#ffffff; color:#2f7f58; border:0; }
body.theme-restaurant .sf-hero .sf-meta{
  background:rgba(18,12,9,.70); border:1px solid rgba(255,255,255,.25); border-radius:18px;
  backdrop-filter:blur(6px); -webkit-backdrop-filter:blur(6px); padding:12px 14px; margin-top:14px;
}
body.theme-restaurant .sf-hero .sf-meta li,
body.theme-restaurant .sf-hero .sf-meta a{ color:#ffffff !important; font-weight:600; font-size:14.5px; }
body.theme-restaurant .sf-hero .sf-meta svg{ stroke:#ffd66b; }
body.theme-restaurant .sf-hero-actions .sf-hbtn-ghost{ background:rgba(255,255,255,.14); color:#ffffff; border-color:rgba(255,255,255,.5); }

/* Product photos: fill the whole frame, no half-cropped image */
body.theme-restaurant .sf-media{ position:relative; display:block; width:100%; height:auto; aspect-ratio:4/3; overflow:hidden; background:#efe9df; }
body.theme-restaurant .sf-media > img,
body.theme-restaurant .sf-media .sf-track{ position:absolute; inset:0; width:100%; height:100%; }
body.theme-restaurant .sf-media .sf-track{ display:block; }
body.theme-restaurant .sf-media img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; display:block; max-width:none; }
body.theme-restaurant .sf-media .sf-track img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
body.theme-restaurant .sf-media[data-count] .sf-track{ display:flex; }
body.theme-restaurant .sf-media[data-count] .sf-track img{ position:static; flex:0 0 100%; width:100%; height:100%; }
body.theme-restaurant .sf-badge{ z-index:3; }
@media (min-width:1024px){
  body.theme-restaurant .sf-hero{ min-height:340px; }
  body.theme-restaurant .sf-media{ aspect-ratio:5/4; }
}

/* ===== Mobile bug fixes (phones) ===== */
/* Emoji icons render the same on Android and iPhone */
body.theme-restaurant .fz-tile,
body.theme-restaurant .fz-sec-ico,
body.theme-restaurant .fz-note-ico{ font-family:"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif; }

/* Hide the floating chat button while a details window is open so it never covers the buttons */
body.modal-open .upliva-ai-widget{ display:none !important; }

@media (max-width:640px){
  /* Banner header: no stray orange line over the name, comfortable spacing, white readable text */
  body.theme-restaurant .sf-hero{ min-height:0; }
  body.theme-restaurant .sf-hero::after{ display:none; }
  body.theme-restaurant .sf-hero-in{ padding-top:24px; padding-bottom:22px; }
  body.theme-restaurant .sf-hero h1{ color:#ffffff !important; font-size:30px !important; text-shadow:0 2px 12px rgba(0,0,0,.7); }
  body.theme-restaurant .sf-hero .sf-slogan,
  body.theme-restaurant .sf-hero .sf-about{ color:#ffffff !important; font-size:14px; text-shadow:0 1px 8px rgba(0,0,0,.7); overflow-wrap:anywhere; }
  body.theme-restaurant .sf-hero .sf-meta{ padding:10px 12px; }
  body.theme-restaurant .sf-hero .sf-meta li,
  body.theme-restaurant .sf-hero .sf-meta a{ color:#ffffff !important; font-size:14px; overflow-wrap:anywhere; }

  /* Floating chat button: compact round button, so it does not cover products */
  body.theme-restaurant .upliva-ai-launcher{ width:56px; height:56px; padding:0; justify-content:center; border-radius:50%; }
  body.theme-restaurant .upliva-ai-launcher span:last-child{ display:none; }

  /* Details window: buttons stacked full width, never hidden behind other elements */
  body.theme-restaurant .product-modal .modal-actions{ display:grid; grid-template-columns:1fr; gap:10px; padding-bottom:calc(16px + env(safe-area-inset-bottom)); }
  body.theme-restaurant .product-modal .modal-actions > *{ width:100%; justify-content:center; white-space:normal; text-align:center; }
}

/* ===== Compact details list on phones: one tidy row per dish, no wasted space ===== */
@media (max-width:520px){
  body.theme-restaurant .fz-menu{ gap:4px; margin:10px 0 2px; }
  body.theme-restaurant .fz-sec{ margin-top:8px; }
  body.theme-restaurant .fz-sec-head{ margin-bottom:6px; }
  body.theme-restaurant .fz-row{
    grid-template-columns:36px minmax(0,1fr) auto;
    align-items:center; gap:10px;
    padding:8px 10px; margin-bottom:6px; min-height:0; align-content:center;
  }
  body.theme-restaurant .fz-tile{ width:36px; height:36px; font-size:18px; border-radius:12px; align-self:center; }
  body.theme-restaurant .fz-name{ font-size:14.5px; line-height:1.25; }
  body.theme-restaurant .fz-prices{ grid-column:auto; justify-content:flex-end; gap:5px; width:auto; }
  body.theme-restaurant .fz-p{ min-width:48px; padding:4px 7px; font-size:14px; border-radius:10px; }
  body.theme-restaurant .fz-p small{ font-size:8.5px; }
  body.theme-restaurant .fz-note{ margin-top:10px; padding:10px 12px; font-size:13px; }
}

/* ===== Product details window: polished card with clear hierarchy ===== */
body.theme-restaurant .product-modal{
  border-radius:24px; overflow:hidden; background:#ffffff;
  box-shadow:0 30px 60px -20px rgba(0,0,0,.45); border:0;
}
body.theme-restaurant .product-modal .modal-product-body{ padding:20px 22px 22px; }
body.theme-restaurant .modal-category{
  display:inline-block; background:#eaf6ef; color:#2f7f58; border-radius:999px;
  padding:5px 12px; font-size:12px; font-weight:800; letter-spacing:.6px; text-transform:uppercase;
}
body.theme-restaurant #modalProductName{
  font-family:Georgia,"Times New Roman",serif; font-size:28px; font-weight:800; line-height:1.15;
  color:#16231d; margin:10px 0 2px;
}
body.theme-restaurant .modal-price{ font-size:19px; font-weight:800; color:#2f7f58; }
body.theme-restaurant .modal-stock{
  display:inline-flex; align-items:center; gap:8px; margin-top:8px;
  font-size:13px; font-weight:700; color:#2f7f58;
}
body.theme-restaurant .modal-stock::before{
  content:""; width:9px; height:9px; border-radius:50%; background:#3f9a6e; box-shadow:0 0 0 4px #d8f3e3;
}
body.theme-restaurant .modal-actions{
  display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-top:16px;
  padding-top:16px; border-top:1px solid #edf1ee;
}
body.theme-restaurant .modal-actions .share-link,
body.theme-restaurant .modal-actions .modal-call-button{
  display:flex; align-items:center; justify-content:center; gap:8px; min-height:48px;
  border-radius:999px; font-weight:800; font-size:15px; text-decoration:none;
}
body.theme-restaurant .modal-actions .share-link{ background:#ffffff; color:#2f7f58; border:1.5px solid #bfe0cd; }
body.theme-restaurant .modal-actions .modal-call-button{ background:#3f9a6e; color:#ffffff; border:0; box-shadow:0 12px 24px -12px rgba(63,154,110,.8); }
body.theme-restaurant .modal-actions .modal-call-unavailable{ grid-column:1 / -1; color:#6b7a72; font-size:14px; }
body.theme-restaurant .product-modal .modal-close{ background:#ffffff; box-shadow:0 6px 16px -6px rgba(0,0,0,.35); }
@media (max-width:520px){
  body.theme-restaurant #modalProductName{ font-size:24px; }
  body.theme-restaurant .product-modal .modal-product-body{ padding:16px 16px 18px; }
  body.theme-restaurant .modal-actions{ grid-template-columns:1fr; }
}

/* WhatsApp button in the heading (shows only when a WhatsApp number is set) */
body.theme-restaurant .sf-hbtn-whatsapp{ background:#25d366; color:#052e16; border:0; font-weight:800; }
body.theme-restaurant .sf-hbtn-whatsapp:hover{ background:#3be07c; color:#052e16; }
body.theme-restaurant .sf-hbtn-whatsapp .icon{ stroke:#052e16; }

/* ===== Product photos: show the whole image (no cropping) ===== */
body.theme-restaurant .sf-media img,
body.theme-restaurant .sf-media .sf-track img,
body.theme-restaurant .sf-media[data-count] .sf-track img{ object-fit:contain; background:#1d1a17; }
body.theme-restaurant .sf-media{ background:#1d1a17; }
body.theme-restaurant .modal-gallery img,
body.theme-restaurant .modal-product-image{ object-fit:contain; background:#1d1a17; }

/* ===== Details window: fixed header/footer, the middle scrolls, nothing overlaps ===== */
body.theme-restaurant .product-modal{
  display:flex; flex-direction:column; width:min(560px,94vw);
  max-height:calc(100vh - 24px); max-height:calc(100dvh - 24px); overflow:hidden; position:relative;
}
body.theme-restaurant .product-modal .modal-gallery{ flex:0 0 auto; }
body.theme-restaurant .product-modal .modal-product-body{
  flex:1 1 auto; min-height:0; overflow-y:auto; -webkit-overflow-scrolling:touch; overscroll-behavior:contain;
  padding:18px 22px 6px;
}
body.theme-restaurant .product-modal .modal-actions{
  flex:0 0 auto; position:sticky; bottom:0; margin:0; background:#ffffff;
  padding:12px 22px calc(14px + env(safe-area-inset-bottom)); border-top:1px solid #edf1ee;
  grid-template-columns:1fr 1fr; gap:10px;
}
body.theme-restaurant .product-modal .modal-close{ position:absolute; top:12px; right:12px; z-index:3; }
body.theme-restaurant .fz-tile{ font-family:Georgia,"Times New Roman",serif; font-size:20px; font-weight:800; color:#2f7f58; }
body.theme-restaurant .fz-tile.egg{ color:#8a5a00; }
body.theme-restaurant .fz-tile.non{ color:#b3461b; }
@media (max-width:520px){
  body.theme-restaurant .product-modal{ width:94vw; max-height:calc(100dvh - 16px); border-radius:22px; }
  body.theme-restaurant .product-modal .modal-product-body{ padding:16px 16px 4px; }
  body.theme-restaurant .product-modal .modal-actions{ grid-template-columns:1fr; padding:10px 16px calc(12px + env(safe-area-inset-bottom)); }
  body.theme-restaurant .product-modal .modal-actions > *{ min-height:46px; }
}

/* ===== Top bar: phone number on its own line, WhatsApp and other icons below it ===== */
body.theme-restaurant .sf-socials{ flex-wrap:wrap; justify-content:flex-end; row-gap:8px; }
body.theme-restaurant .sf-strip-phone{ flex-basis:100%; justify-content:flex-end; margin-right:0; }

/* ===== Details photo: show the whole image on desktop and phone ===== */
body.theme-restaurant .modal-gallery .modal-product-image{
  width:100%; height:auto; aspect-ratio:auto; max-height:340px; object-fit:contain; background:#1d1a17;
}
@media (max-width:520px){
  body.theme-restaurant .modal-gallery .modal-product-image{ max-height:260px; }
}

/* ===== Details window: Share and Call sit beside the dish title and price ===== */
body.theme-restaurant .product-modal .modal-product-body{
  display:grid; grid-template-columns:minmax(0,1fr) auto; column-gap:16px; align-items:start;
}
body.theme-restaurant .product-modal .modal-category{ grid-column:1; grid-row:1; justify-self:start; }
body.theme-restaurant .product-modal #modalProductName{ grid-column:1; grid-row:2; }
body.theme-restaurant .product-modal #modalProductPrice{ grid-column:1; grid-row:3; }
body.theme-restaurant .product-modal #modalProductDescription{ grid-column:1 / -1; }
body.theme-restaurant .product-modal #modalProductStock{ grid-column:1 / -1; }
body.theme-restaurant .product-modal .modal-actions{
  position:static; grid-column:2; grid-row:1 / span 3; flex:none; margin:4px 0 0; padding:0; border:0; background:none;
  display:flex; flex-direction:column; gap:8px; min-width:170px;
}
body.theme-restaurant .product-modal .modal-actions > *{ width:100%; min-height:44px; }
@media (max-width:520px){
  body.theme-restaurant .product-modal .modal-product-body{ grid-template-columns:minmax(0,1fr); }
  body.theme-restaurant .product-modal .modal-category,
  body.theme-restaurant .product-modal #modalProductName,
  body.theme-restaurant .product-modal #modalProductPrice{ grid-column:1; }
  body.theme-restaurant .product-modal .modal-actions{
    grid-column:1; grid-row:4; flex-direction:row; gap:8px; min-width:0; margin:12px 0 4px; padding:0;
  }
  body.theme-restaurant .product-modal .modal-actions > *{ flex:1 1 0; min-width:0; font-size:14px; padding:0 10px; }
  body.theme-restaurant .product-modal #modalProductDescription{ grid-row:5; }
  body.theme-restaurant .product-modal #modalProductStock{ grid-row:6; }
}

/* ===== FINAL details window layout (overrides earlier rules) =====
   Order: photo -> category -> name -> price -> [Share | Call] -> dish list -> availability */
body.theme-restaurant .product-modal{
  display:flex !important; flex-direction:column !important;
  width:min(560px,94vw) !important; max-height:calc(100vh - 24px) !important; max-height:calc(100dvh - 24px) !important; /* dvh last: 100vh is taller than the visible screen on phones */
  overflow:hidden !important; border-radius:22px !important;
}
body.theme-restaurant .product-modal .modal-gallery{ flex:0 0 auto !important; }
body.theme-restaurant .product-modal .modal-gallery .modal-product-image{
  width:100% !important; height:auto !important; aspect-ratio:auto !important; max-height:230px !important;
  object-fit:contain !important; background:#1d1a17 !important; display:block !important;
}
body.theme-restaurant .product-modal .modal-product-body{
  display:flex !important; flex-direction:column !important; grid-template-columns:none !important;
  flex:1 1 auto !important; min-height:0 !important; overflow-y:auto !important; -webkit-overflow-scrolling:touch;
  overscroll-behavior:contain; padding:16px 20px 22px !important; gap:0 !important;
}
body.theme-restaurant .product-modal .modal-product-body > *{ grid-column:auto !important; grid-row:auto !important; }
body.theme-restaurant .product-modal .modal-category{ order:1; align-self:flex-start; }
body.theme-restaurant .product-modal #modalProductName{ order:2; }
body.theme-restaurant .product-modal #modalProductPrice{ order:3; }
body.theme-restaurant .product-modal .modal-actions{
  order:4; position:static !important; display:flex !important; flex-direction:row !important;
  gap:10px !important; width:100% !important; margin:14px 0 6px !important; padding:0 !important;
  border:0 !important; background:none !important; min-width:0 !important; flex:none !important;
}
body.theme-restaurant .product-modal .modal-actions > *{
  flex:1 1 0 !important; width:auto !important; min-width:0 !important; height:auto !important;
  min-height:46px !important; padding:10px 12px !important; border-radius:14px !important;
  font-size:14.5px !important; font-weight:800 !important; line-height:1.2 !important;
  display:flex !important; align-items:center !important; justify-content:center !important;
  text-align:center !important; white-space:normal !important; box-shadow:none !important; margin:0 !important;
}
body.theme-restaurant .product-modal .modal-actions .share-link{ background:#ffffff !important; color:#2f7f58 !important; border:1.5px solid #bfe0cd !important; }
body.theme-restaurant .product-modal .modal-actions .modal-call-button{ background:#3f9a6e !important; color:#ffffff !important; border:0 !important; }
body.theme-restaurant .product-modal .modal-actions .modal-call-unavailable{ flex:1 1 100% !important; }
body.theme-restaurant .product-modal #modalProductDescription{ order:5; }
body.theme-restaurant .product-modal #modalProductStock{ order:6; }
body.theme-restaurant .product-modal .modal-close{ position:absolute !important; top:12px !important; right:12px !important; z-index:3 !important; }
@media (max-width:520px){
  body.theme-restaurant .product-modal{ width:94vw !important; border-radius:20px !important; }
  body.theme-restaurant .product-modal .modal-gallery .modal-product-image{ max-height:180px !important; }
  body.theme-restaurant .product-modal .modal-product-body{ padding:14px 16px 18px !important; }
  body.theme-restaurant .product-modal .modal-actions > *{ font-size:14px !important; padding:10px 8px !important; }
}

/* ===== Top bar: phone on the first line, social icons on the line below, right-aligned (desktop and phone) ===== */
body.theme-restaurant .sf-strip-in{ align-items:flex-start; padding-block:8px; min-height:0; }
body.theme-restaurant .sf-socials{
  display:flex !important; flex-wrap:wrap !important; justify-content:flex-end !important; align-items:center !important;
  gap:8px !important; margin-left:auto !important; row-gap:8px !important; max-width:100%;
}
body.theme-restaurant .sf-strip-phone{
  display:flex !important; flex-basis:100% !important; width:100%; justify-content:flex-end !important;
  align-items:center !important; gap:8px !important; margin:0 !important; font-size:15px; font-weight:700; color:#16231d;
}
body.theme-restaurant .sf-strip-phone .icon{ width:18px; height:18px; stroke:currentColor; fill:none; stroke-width:2; }
body.theme-restaurant .sf-social{
  width:40px !important; height:40px !important; min-width:40px; border-radius:50% !important;
  display:inline-flex !important; align-items:center !important; justify-content:center !important;
  background:#eaf6ef !important; color:#2f7f58 !important; border:1px solid #d6e7dd;
}
body.theme-restaurant .sf-social .icon{ width:20px !important; height:20px !important; stroke:currentColor; fill:none; stroke-width:2; }
body.theme-restaurant .sf-social-whatsapp{ background:#25d366 !important; color:#ffffff !important; border-color:#25d366; }
body.theme-restaurant .sf-social-whatsapp .icon{ stroke:#ffffff; }
body.theme-restaurant .sf-social:hover{ filter:brightness(.97); }
@media (max-width:520px){
  body.theme-restaurant .sf-strip-phone{ font-size:14px; }
  body.theme-restaurant .sf-social{ width:38px !important; height:38px !important; min-width:38px; }
}

/* ===== Top bar hidden for now (phone, WhatsApp and social icons). Remove this rule to show it again. ===== */
body.theme-restaurant .sf-strip{ display:none !important; }

/* ===== Ask UplivaAI on phones: labelled launcher, full-width chat sheet that scrolls ===== */
@media (max-width:640px){
  body.theme-restaurant .upliva-ai-widget{
    right:max(12px, env(safe-area-inset-right)) !important; bottom:max(12px, env(safe-area-inset-bottom)) !important;
    left:auto !important; max-width:calc(100vw - 24px);
  }
  body.theme-restaurant .upliva-ai-launcher{
    width:auto !important; height:auto !important; min-height:50px !important; padding:0 18px 0 12px !important;
    border-radius:999px !important; justify-content:center !important; gap:8px !important;
    font-size:15px !important; font-weight:800 !important; box-shadow:0 14px 28px -10px rgba(6,59,47,.55) !important;
  }
  body.theme-restaurant .upliva-ai-launcher span:last-child{ display:inline !important; }
  body.theme-restaurant .upliva-ai-launcher-icon{ width:28px !important; height:28px !important; font-size:16px !important; }

  /* Open chat: a bottom sheet that fills the lower part of the screen */
  body.theme-restaurant .upliva-ai-widget.is-open{ left:0 !important; right:0 !important; bottom:0 !important; max-width:none !important; }
  body.theme-restaurant .upliva-ai-widget.is-open .upliva-ai-launcher{ display:none !important; }
  body.theme-restaurant .upliva-ai-panel{
    width:100% !important; max-width:none !important; height:min(80dvh,640px) !important; max-height:80dvh !important;
    margin:0 !important; border-radius:18px 18px 0 0 !important; border-width:1px 0 0 !important;
    padding-bottom:env(safe-area-inset-bottom,0px);
  }
  body.theme-restaurant .upliva-ai-messages{ flex:1 1 auto; min-height:0; overflow-y:auto; -webkit-overflow-scrolling:touch; overscroll-behavior:contain; }
  body.theme-restaurant .upliva-ai-form{ flex:0 0 auto; }
  body.theme-restaurant .upliva-ai-form input{ font-size:16px; min-width:0; }
  body.theme-restaurant .upliva-ai-heading #uplivaAiClose{ min-width:40px; min-height:40px; font-size:24px; }
}

/* ===== Details photo: show only the photo or video that the product actually has ===== */
body.theme-restaurant .product-modal #modalProductVideo[hidden],
body.theme-restaurant .product-modal #modalProductImage[hidden],
body.theme-restaurant .product-modal .modal-gallery [hidden]{ display:none !important; }
