/* ============================================================
   Public-site theme — light, colorful "Cravings" look:
   soft cream/lavender background, purple + coral accents,
   pastel category circles, floating cart button.

   Scoped entirely under body.public-theme so it can only affect
   the customer-facing pages. The admin panel and restaurant
   partner panel use their own header files and never get this
   class, so they keep their own dashboard look untouched.
   ============================================================ */

body.public-theme {
  --primary: #7c5cff;
  --primary-dark: #6142e0;
  --primary-light: #efe9ff;
  --secondary: #ff7a45;
  --secondary-dark: #e85f28;
  --secondary-light: #fff1e8;
  --dark: #241f36;
  --gray: #847f99;
  --gray-light: #aca7ba;
  --light-bg: #faf8ff;
  --border: #eee8fb;
  --green: #2ecc71;
  background: #fffdfb;
  color: #241f36;
}

body.public-theme a { color: inherit; }

/* ---------------- Header ---------------- */
body.public-theme .site-header {
  background: rgba(255,255,255,.88);
  border-bottom: 1px solid var(--border);
}

/* ---------------- Hero / search ---------------- */
body.public-theme .hero-search {
  background:
    radial-gradient(ellipse 55% 65% at 88% -5%, rgba(124,92,255,.16), transparent 60%),
    radial-gradient(ellipse 55% 70% at 4% 105%, rgba(255,122,69,.18), transparent 60%),
    linear-gradient(160deg, #fff9f3 0%, #f8f4ff 55%, #fef4ec 100%);
  color: var(--dark);
  position: relative;
  overflow: hidden;
}
body.public-theme .hero-search::before,
body.public-theme .hero-search::after {
  content:''; position:absolute; border-radius:50%; filter:blur(2px); opacity:.5; z-index:0;
}
body.public-theme .hero-search::before {
  width:180px; height:180px; background:rgba(124,92,255,.14); top:-60px; right:8%;
}
body.public-theme .hero-search::after {
  width:220px; height:220px; background:rgba(255,122,69,.14); bottom:-90px; left:-40px;
}
body.public-theme .hero-search .container { position:relative; z-index:1; }
body.public-theme .hero-badge {
  display:inline-flex; align-items:center; gap:6px;
  background:#fff; color:var(--primary); border:1px solid var(--primary-light);
  font-size:12.5px; font-weight:700; padding:6px 14px; border-radius:30px;
  margin-bottom:14px; box-shadow:0 4px 12px rgba(124,92,255,.12);
}
body.public-theme .hero-search h1 { color: var(--dark); }
body.public-theme .hero-search h1 span,
body.public-theme .hero-search h1 em { color: var(--primary); font-style: normal; }
body.public-theme .hero-search p { color: var(--gray); opacity:1; }
body.public-theme .hero-search form { background:#fff; box-shadow: 0 14px 34px rgba(124,92,255,.14); }
body.public-theme .hero-search input { color: var(--dark); }
body.public-theme .hero-search input::placeholder { color: var(--gray-light); }
body.public-theme .filter-chip { background:#fff; color:var(--dark); border:1px solid var(--border); }
body.public-theme .filter-chip:hover { background:var(--primary-light); border-color:var(--primary-light); }
body.public-theme .filter-chip.active { background:var(--primary); color:#fff; border-color:var(--primary); }

body.public-theme .info-strip { color: var(--dark); }
body.public-theme .info-strip span.note { color: var(--gray); }

/* ---------------- Section titles ---------------- */
body.public-theme .section-title { color: var(--dark); }

/* ---------------- Categories (compact rounded-square tiles) ---------------- */
body.public-theme .category-grid {
  grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
  gap: 10px 8px;
}
body.public-theme .category-card {
  background: transparent !important;
  border: none;
  padding: 0;
  text-align: center;
}
body.public-theme .category-card:hover { transform: translateY(-2px); box-shadow: none; }
body.public-theme .category-card-img {
  width: 100%; height: auto; aspect-ratio: 1 / 1;
  border-radius: 18px; margin: 0 0 6px;
  background: linear-gradient(150deg, #efe9ff, #f5f1ff);
  border: none;
  box-shadow: 0 4px 10px rgba(124,92,255,.08);
  overflow: hidden;
}
body.public-theme .category-card-img img,
body.public-theme .category-card-img video { width: 100%; height: 100%; object-fit: cover; border-radius: 18px; }
body.public-theme .category-card:nth-child(6n+1) .category-card-img { background: linear-gradient(150deg,#e9f3ff,#dcecff); }
body.public-theme .category-card:nth-child(6n+2) .category-card-img { background: linear-gradient(150deg,#fff1e0,#ffe4c2); }
body.public-theme .category-card:nth-child(6n+3) .category-card-img { background: linear-gradient(150deg,#eafbf3,#d5f5e5); }
body.public-theme .category-card:nth-child(6n+4) .category-card-img { background: linear-gradient(150deg,#f5edff,#e9dcff); }
body.public-theme .category-card:nth-child(6n+5) .category-card-img { background: linear-gradient(150deg,#ffeaf1,#ffd6e4); }
body.public-theme .category-card:nth-child(6n+6) .category-card-img { background: linear-gradient(150deg,#fff9db,#fef2ad); }
body.public-theme .category-card-all {
  display:flex; align-items:center; justify-content:center;
  background: linear-gradient(135deg, var(--primary), #9b7dff) !important;
  color:#fff; font-weight:800; font-size:12px; letter-spacing:.5px; border-radius:18px;
}
body.public-theme .category-card span {
  display:block; font-weight:700; font-size:11.5px; color:var(--dark);
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
body.public-theme .category-card.active .category-card-img {
  box-shadow: 0 0 0 2.5px var(--primary), 0 6px 14px rgba(124,92,255,.25);
}
body.public-theme .category-card.active span { color: var(--primary); }

@media (max-width:480px){
  body.public-theme .category-grid { grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 8px 6px; }
  body.public-theme .category-card-img { border-radius:16px; }
  body.public-theme .category-card span { font-size:10.5px; }
}

/* ---------------- Food cards ---------------- */
body.public-theme .food-price, body.public-theme .detail-price, body.public-theme .unit-price, body.public-theme .total { color: var(--secondary-dark); }

/* ---------------- Bottom app nav (mobile) ----------------
   Cart button now uses the exact same flat card design as
   Home / Orders / Account — no more floating raised circle. */
body.public-theme .bottom-nav { box-shadow: 0 -6px 20px rgba(124,92,255,.08); }
body.public-theme .bottom-nav a.bn-fab { position:relative; top:0; }

/* ---------------- Footer ---------------- */
body.public-theme .site-footer { background: var(--light-bg); color: var(--gray); border-top: 1px solid var(--border); }
body.public-theme .site-footer a:hover { color: var(--primary); }

/* ===================== Sliding Video Banner ===================== */
body.public-theme .vb-slider{
  position:relative; overflow:hidden; border-radius:18px;
  box-shadow:0 14px 34px rgba(0,0,0,.25);
}
body.public-theme .vb-track{
  display:flex; transition:transform .5s cubic-bezier(.4,0,.2,1);
}
body.public-theme .vb-slide{
  position:relative; flex:0 0 100%; min-height:400px;
  display:flex; align-items:center; justify-content:center;
  background:#1a1410;
}
body.public-theme .bp-bg-video{
  position:absolute; inset:0; z-index:0;
  width:100%; height:100%; object-fit:cover; object-position:center 30%;
}
body.public-theme .vb-slide::after{
  content:''; position:absolute; inset:0; z-index:1;
  background:linear-gradient(180deg, rgba(10,8,6,.35) 0%, rgba(10,8,6,.55) 45%, rgba(10,8,6,.82) 100%);
}
body.public-theme .vb-dots{
  position:absolute; left:0; right:0; bottom:14px; z-index:3;
  display:flex; align-items:center; justify-content:center; gap:6px;
}
body.public-theme .vb-dot{
  width:8px; height:8px; border-radius:50%; border:none; padding:0; cursor:pointer;
  background:rgba(255,255,255,.5); transition:all .25s ease;
}
body.public-theme .vb-dot.active{ width:22px; border-radius:5px; background:#fff; }

body.public-theme .burger-promo-inner{
  position:relative; z-index:2;
  max-width:440px; text-align:center;
  padding:36px 26px;
}
body.public-theme .bp-tag{
  display:inline-flex; align-items:center; gap:6px;
  background:#fff; color:var(--primary);
  border:1px solid var(--primary-light);
  font-size:11.5px; font-weight:700; letter-spacing:.4px;
  padding:5px 12px; border-radius:30px; margin-bottom:12px;
  animation:bpTagPulse 2.4s ease-in-out infinite;
}
body.public-theme .burger-promo-inner h2{
  font-size:30px; font-weight:800; line-height:1.14; letter-spacing:-.5px;
  color:#fff; margin-bottom:10px; text-shadow:0 2px 12px rgba(0,0,0,.35);
}
body.public-theme .burger-promo-inner h2 span{
  color:var(--secondary);
}
body.public-theme .burger-promo-inner p{
  color:rgba(255,255,255,.82); font-size:14px; line-height:1.55; margin-bottom:16px;
}
body.public-theme .bp-offer{ display:flex; align-items:baseline; justify-content:center; gap:8px; margin-bottom:20px; flex-wrap:wrap; }
body.public-theme .bp-offer strong{
  font-size:21px; font-weight:800; color:var(--secondary);
}
body.public-theme .bp-offer span{ color:rgba(255,255,255,.7); font-size:12.5px; }
body.public-theme .bp-cta{
  display:inline-flex; align-items:center; gap:8px;
  background:var(--primary); color:#fff !important; font-weight:700; font-size:14px;
  padding:12px 26px; border-radius:50px; border:none; cursor:pointer;
  box-shadow:0 10px 22px rgba(0,0,0,.35);
  transition:transform .2s ease, box-shadow .2s ease, background .2s ease;
}
body.public-theme .bp-cta:hover{ background:var(--primary-dark); transform:translateY(-3px); box-shadow:0 14px 26px rgba(0,0,0,.4); }
body.public-theme .bp-cta svg{ transition:transform .2s ease; }
body.public-theme .bp-cta:hover svg{ transform:translateX(4px); }

@keyframes bpTagPulse{ 0%,100%{ box-shadow:0 0 0 rgba(124,92,255,0);} 50%{ box-shadow:0 0 14px rgba(124,92,255,.35);} }

@media (max-width:820px){
  body.public-theme .vb-slide{ min-height:340px; }
  body.public-theme .burger-promo-inner{ padding:28px 20px; }
  body.public-theme .burger-promo-inner h2{ font-size:24px; }
}

@media (max-width:420px){
  body.public-theme .vb-slide{ min-height:300px; }
  body.public-theme .burger-promo-inner p{ font-size:13px; }
  body.public-theme .bp-offer strong{ font-size:18px; }
}
