/* Foodimy store landing — extracted for cacheable first paint */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

::selection { background: var(--primary); color: #fff; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 10px; }

/* ============================================================
   LOADER — food plate
   ============================================================ */
#loader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
#loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
#loader.hidden .loader-plate,
#loader.hidden .loader-bar span { animation-play-state: paused; }

.loader-plate {
  position: relative;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 3px dashed var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: loaderSpin 5s linear infinite;
}
.loader-plate::after {
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 2px solid var(--cyan);
  opacity: 0.35;
}
.loader-plate i {
  font-size: 2rem;
  color: var(--primary);
  animation: loaderSpin 5s linear infinite reverse;
}
.loader-brand {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--text);
}
.loader-brand span { color: var(--primary); }
.loader-bar {
  width: 180px;
  height: 4px;
  border-radius: 999px;
  background: var(--border);
  overflow: hidden;
}
.loader-bar span {
  display: block;
  height: 100%;
  width: 45%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--cyan), var(--amber));
  animation: loaderBar 1.1s ease-in-out infinite;
}
@keyframes loaderSpin { to { transform: rotate(360deg); } }
@keyframes loaderBar {
  0% { transform: translateX(-130%); }
  100% { transform: translateX(360%); }
}

/* ============================================================
   NAVBAR — brutalist minimal
   ============================================================ */
.navbar {
  position: fixed;
  top: 16px;
  left: 20px;
  right: 20px;
  z-index: 10000;
  padding: 12px 28px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.navbar.scrolled {
  border-color: rgba(124,58,237,0.25);
  box-shadow: 0 10px 34px rgba(15, 23, 42, 0.12);
}

.navbar .brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}
.navbar .brand img { height: 38px; width: auto; border-radius: 6px; }
.navbar .brand .name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--text);
}
.navbar .brand .name span { color: var(--primary); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-right: auto;
}
.nav-links a {
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-3);
  padding: 6px 16px;
  border-radius: 4px;
  transition: var(--transition);
  letter-spacing: 0.02em;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: rgba(124,58,237,0.1);
}
.nav-links a.active { color: var(--primary); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.nav-actions .icon-btn {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 4px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-3);
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav-actions .icon-btn:hover {
  border-color: var(--primary);
  color: var(--text);
  background: rgba(124,58,237,0.05);
}
.nav-actions .icon-btn .badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 4px;
  background: var(--primary);
  color: #fff;
  font-size: 0.55rem;
  font-weight: 700;
  display: none;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--bg);
}
.nav-actions .icon-btn .badge.show { display: flex; }

.nav-actions .branch-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px 5px 10px;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: transparent;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-3);
  cursor: pointer;
  transition: var(--transition);
}
.nav-actions .branch-pill:hover {
  border-color: var(--primary);
  color: var(--text);
}
.nav-actions .branch-pill i { color: var(--primary); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

@media (max-width: 820px) {
  .navbar { padding: 10px 16px; }
  .nav-links,
  .hamburger,
  #cartBtnNav,
  #myOrdersBtn {
    display: none !important;
  }
}

/* ============================================================
   MOBILE DOCK — frosted pill + raised cart
   ============================================================ */
.mobile-dock {
  display: none;
}
.fk-toast {
  position: fixed;
  right: 18px;
  bottom: 92px;
  left: auto;
  transform: translateX(16px);
  opacity: 0;
  pointer-events: none;
  z-index: 40000;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: min(360px, calc(100% - 32px));
  padding: 14px 16px;
  border-radius: 16px;
  background: #111827;
  color: #fff;
  font-size: 0.84rem;
  font-weight: 700;
  box-shadow: 0 16px 40px rgba(15,23,42,.28);
  border: 1px solid rgba(255,255,255,.08);
  transition: opacity 0.28s ease, transform 0.28s ease;
}
.fk-toast.show {
  opacity: 1;
  transform: translateX(0);
}
.fk-toast i {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--primary);
  color: #fff;
  flex: 0 0 auto;
}

@media (max-width: 820px) {
  body { padding-bottom: 96px; }
  .fk-toast { right: 14px; bottom: 168px; }
  .mobile-dock {
    display: flex;
    position: fixed;
    left: 50%;
    bottom: max(16px, env(safe-area-inset-bottom));
    transform: translateX(-50%);
    z-index: 9990;
    width: min(430px, calc(100% - 20px));
    height: 64px;
    padding: 6px 8px;
    align-items: center;
    justify-content: space-between;
    border-radius: 999px;
    background: rgba(255,255,255,0.58);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(255,255,255,0.45);
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.16);
  }
  .mbb-item {
    flex: 1;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: #475569;
    text-decoration: none;
    cursor: pointer;
    font-family: inherit;
    padding: 0;
  }
  .mbb-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 1rem;
    transition: background 0.25s ease, color 0.25s ease, padding 0.25s ease, transform 0.2s ease;
  }
  .mbb-text {
    display: none;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.01em;
  }
  .mbb-item.is-active .mbb-pill {
    background: #111827;
    color: #fff;
    padding: 0 14px;
  }
  .mbb-item.is-active .mbb-text { display: inline; }
  .mbb-cart {
    position: relative;
    width: 56px;
    height: 56px;
    margin: -18px 4px 0;
    flex-shrink: 0;
    border: 4px solid rgba(255,255,255,0.75);
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-size: 1.15rem;
    cursor: pointer;
    box-shadow: 0 10px 24px color-mix(in srgb, var(--primary) 45%, transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
  }
  .mbb-cart:active { transform: scale(0.94); }
  .mbb-cart.bump { animation: mbbCartBump 0.42s ease; }
  @keyframes mbbCartBump {
    0% { transform: scale(1); }
    35% { transform: scale(1.12); }
    100% { transform: scale(1); }
  }
  .mbb-cart-count {
    position: absolute;
    top: -3px;
    right: -3px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #111827;
    color: #fff;
    font-size: 0.58rem;
    font-weight: 800;
    display: none;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
  }
  .mbb-cart-count.show { display: flex; }
}

/* ============================================================
   BUTTONS — brutalist
   ============================================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 34px;
  border: 2px solid var(--primary);
  border-radius: 4px;
  background: var(--primary);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.btn-primary:hover {
  background: transparent;
  color: var(--primary);
  box-shadow: 0 0 30px rgba(124,58,237,0.15);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 34px;
  border: 2px solid var(--border);
  border-radius: 4px;
  background: transparent;
  color: var(--text-2);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.btn-secondary:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: 0 0 30px rgba(6,182,212,0.08);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border: 2px solid rgba(255,255,255,0.08);
  border-radius: 4px;
  background: rgba(255,255,255,0.03);
  color: var(--text-2);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.btn-ghost:hover {
  border-color: var(--amber);
  color: var(--amber);
}

/* ============================================================
   HERO — asymmetric brutalist
   ============================================================ */
.hero {
  min-height: 100vh;
  padding: 100px 40px 60px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: var(--bg);
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(124,58,237,0.06), transparent 70%);
  pointer-events: none;
}
.hero::before {
  content: '';
  position: absolute;
  top: -30%;
  left: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(6,182,212,0.04), transparent 70%);
  pointer-events: none;
}

.hero-grid {
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-content .hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(124,58,237,0.2);
  padding: 4px 16px 4px 12px;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin-bottom: 24px;
}
.hero-content .hero-tag .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  animation: dotBlink 1.2s ease-in-out infinite;
}
@keyframes dotBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.2; }
}

.hero-content h1 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5.5vw, 4.8rem);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.04em;
  color: var(--text);
}
.hero-content h1 .gradient {
  background: linear-gradient(135deg, var(--primary), var(--cyan), var(--amber));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-content .sub {
  font-size: 1.05rem;
  color: var(--text-3);
  max-width: 440px;
  margin-top: 20px;
  line-height: 1.8;
}
.hero-content .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.hero-content .stats {
  display: flex;
  gap: 40px;
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}
.hero-content .stats .stat .num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--text);
}
.hero-content .stats .stat .label {
  font-size: 0.75rem;
  color: var(--text-4);
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-visual .cube {
  width: 380px;
  height: 380px;
  position: relative;
  background: linear-gradient(135deg, rgba(124,58,237,0.08), rgba(6,182,212,0.05));
  border: 1px solid rgba(124,58,237,0.15);
  transform: rotate(8deg);
  animation: cubeFloat 6s ease-in-out infinite;
}
.hero-visual .cube::after {
  content: '';
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(6,182,212,0.1);
}
@keyframes cubeFloat {
  0%, 100% { transform: rotate(8deg) translateY(0); }
  50% { transform: rotate(10deg) translateY(-12px); }
}
.hero-visual .cube img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  padding: 8px;
}

.hero-visual .float-badge {
  position: absolute;
  background: var(--bg-2);
  border: 1px solid var(--border);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 4px;
  box-shadow: var(--shadow);
}
.hero-visual .float-badge .icon {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}
.hero-visual .float-badge .icon.purple { background: rgba(124,58,237,0.15); color: var(--primary); }
.hero-visual .float-badge .icon.cyan { background: rgba(6,182,212,0.15); color: var(--cyan); }
.hero-visual .float-badge .text strong { display: block; font-size: 0.75rem; font-weight: 700; color: var(--text); }
.hero-visual .float-badge .text small { font-size: 0.6rem; color: var(--text-4); }

.float-badge.fb1 { top: 5%; left: -40px; animation: floatBadge 4s 0.2s ease-in-out infinite; }
.float-badge.fb2 { bottom: 10%; right: -40px; animation: floatBadge 4s 0.8s ease-in-out infinite; }
.float-badge.fb3 { top: 45%; left: -60px; animation: floatBadge 4s 1.4s ease-in-out infinite; }
@keyframes floatBadge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; gap: 40px; }
  .hero-content .sub { margin: 20px auto 0; }
  .hero-content .actions { justify-content: center; }
  .hero-content .stats { justify-content: center; }
  .hero-visual .cube { width: 280px; height: 280px; }
  .float-badge.fb1, .float-badge.fb2, .float-badge.fb3 { display: none; }
}
@media (max-width: 640px) {
  .hero { padding: 80px 16px 40px; }
  .hero-visual .cube { width: 220px; height: 220px; }
}

/* ============================================================
   TICKER
   ============================================================ */
.ticker {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.ticker-track {
  display: flex;
  align-items: center;
  gap: 0;
  animation: tickerScroll 30s linear infinite;
  white-space: nowrap;
}
@keyframes tickerScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 32px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-3);
  border-right: 1px solid var(--border);
}
.ticker-item i { color: var(--primary); }

/* ============================================================
   SECTIONS
   ============================================================ */
.section {
  padding: 80px 40px;
}
.section-inner { max-width: 1400px; margin: 0 auto; }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary);
  border: 1px solid rgba(124,58,237,0.15);
  padding: 3px 14px 3px 10px;
  border-radius: 4px;
  margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1.1;
}
.section-title .gradient {
  background: linear-gradient(135deg, var(--primary), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-sub {
  font-size: 0.95rem;
  color: var(--text-3);
  margin-top: 10px;
  max-width: 480px;
}
.section-header { margin-bottom: 48px; }
.section-header.center { text-align: center; }
.section-header.center .section-sub { margin: 10px auto 0; }

@media (max-width: 640px) {
  .section { padding: 56px 16px; }
  .section-header { margin-bottom: 32px; }
}

/* ============================================================
   CATEGORIES
   ============================================================ */
.cats-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0 20px;
  margin-bottom: 32px;
  scrollbar-width: none;
}
.cats-scroll::-webkit-scrollbar { display: none; }

.cat-chip {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 28px;
  border: 2px solid var(--border);
  background: var(--bg-2);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-2);
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  white-space: nowrap;
}

.cat-chip img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
}

.cat-chip i {
  font-size: 1rem;
  color: var(--text-4);
  transition: var(--transition);
}

.cat-chip:hover {
  border-color: var(--primary);
  color: var(--text);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(124, 58, 237, 0.12);
}

.cat-chip:hover i {
  color: var(--primary);
}

.cat-chip.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

.cat-chip.active i {
  color: #fff;
}

.cat-chip .count {
  font-size: 0.55rem;
  font-weight: 700;
  background: rgba(124, 58, 237, 0.1);
  padding: 2px 10px;
  border-radius: 50px;
  color: var(--primary);
  margin-left: 4px;
}

.cat-chip.active .count {
  background: rgba(255,255,255,0.2);
  color: #fff;
}

/* Responsive */
@media (max-width: 640px) {
  .cat-chip {
    padding: 8px 16px;
    font-size: 0.78rem;
    gap: 6px;
  }
  .cat-chip img {
    width: 22px;
    height: 22px;
  }
}

@media (max-width: 420px) {
  .cat-chip {
    padding: 6px 12px;
    font-size: 0.7rem;
    gap: 4px;
  }
  .cat-chip img {
    width: 18px;
    height: 18px;
  }
}

/* ============================================================
   PRODUCT GRID — brutalist cards
   ============================================================ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

.product-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
}
.product-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}
.product-card.hidden { display: none; }

.p-img {
  position: relative;
  height: 180px;
  overflow: hidden;
  background: var(--bg-3);
}
.closed-mark {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: grid;
  place-items: center;
  pointer-events: none;
  background: rgba(15, 23, 42, 0.28);
}
.closed-mark span {
  transform: rotate(-16deg);
  padding: 7px 14px;
  border: 2px solid rgba(255,255,255,.95);
  border-radius: 8px;
  background: rgba(185, 28, 28, .78);
  color: #fff;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
  box-shadow: 0 10px 24px rgba(0,0,0,.2);
}
.p-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.product-card:hover .p-img img { transform: scale(1.04); }

.p-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 2px 12px;
  border-radius: 4px;
  font-size: 0.55rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.p-badge.hot { background: var(--primary); color: #fff; }
.p-badge.sold { background: var(--text-4); color: #fff; }

.p-fav {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  border-radius: 4px;
  background: rgba(255,255,255,0.92);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-2);
  font-size: 0.7rem;
  cursor: pointer;
  transition: var(--transition);
  z-index: 7;
  padding: 0;
}
.p-fav:hover,
.p-fav.liked { color: var(--primary); }
.deal-card { position: relative; }

.p-body { padding: 16px 18px 18px; }
.p-body .p-cat {
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary);
}
.p-body .p-name {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin: 2px 0 4px;
}
.p-body .p-desc {
  font-size: 0.72rem;
  color: var(--text-3);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 12px;
  line-height: 1.5;
}
.p-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.p-price {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text);
}
.p-price small { font-size: 0.6rem; font-weight: 500; color: var(--text-4); }
.p-price .sep { color: var(--text-4); margin: 0 2px; }

.p-add {
  padding: 6px 16px;
  border-radius: 4px;
  border: 1px solid var(--primary);
  background: transparent;
  color: var(--primary);
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.p-add:hover { background: var(--primary); color: #fff; }
.p-add:disabled { border-color: var(--border); color: var(--text-4); cursor: not-allowed; }

/* ============================================================
   DEALS — brutalist
   ============================================================ */
.deals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.deal-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
}
a.deal-img, a.deal-title { display: block; color: inherit; text-decoration: none; }
.deal-card:hover {
  border-color: var(--cyan);
  transform: translateY(-4px);
  box-shadow: 0 0 30px rgba(6,182,212,0.06);
}

.deal-card .deal-img {
  position: relative;
  height: 150px;
  background: var(--bg-3);
  overflow: hidden;
}
.deal-card .deal-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.deal-card .deal-img .deal-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--primary);
  color: #fff;
  padding: 2px 12px;
  border-radius: 4px;
  font-size: 0.55rem;
  font-weight: 700;
  text-transform: uppercase;
}
.deal-card .deal-img .deal-discount {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--amber);
  color: #000;
  padding: 2px 12px;
  border-radius: 4px;
  font-size: 0.6rem;
  font-weight: 800;
}
.deal-card .deal-img .deal-price-float {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0,0,0,0.7);
  padding: 4px 14px;
  border-radius: 4px;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--text);
  border: 1px solid var(--border);
}
.deal-card .deal-img .deal-price-float span { font-size: 0.55rem; font-weight: 500; color: var(--text-4); }

.deal-body { padding: 16px 18px 18px; }
.deal-body .deal-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}
.deal-body .deal-items {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 8px 0 12px;
}
.deal-body .deal-items .item-tag {
  background: var(--bg-3);
  padding: 2px 10px;
  border-radius: 4px;
  font-size: 0.6rem;
  color: var(--text-3);
  border: 1px solid var(--border);
}
.deal-body .deal-items .item-tag .qty { color: var(--primary); font-weight: 600; }

.deal-body .deal-pricing {
  background: var(--bg-3);
  border-radius: 4px;
  padding: 10px 12px;
  margin: 10px 0 14px;
}
.deal-body .deal-pricing .row {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: var(--text-3);
  padding: 2px 0;
}
.deal-body .deal-pricing .row.grand {
  font-weight: 800;
  color: var(--text);
  border-top: 1px solid var(--border);
  padding-top: 6px;
  margin-top: 2px;
}
.deal-body .deal-pricing .row .save { color: var(--amber); }

.deal-body .deal-footer .deal-add {
  padding: 6px 20px;
  border-radius: 4px;
  border: 1px solid var(--primary);
  background: transparent;
  color: var(--primary);
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.deal-body .deal-footer .deal-add:hover { background: var(--primary); color: #fff; }
.deal-body .deal-footer .deal-add:disabled { border-color: var(--border); color: var(--text-4); cursor: not-allowed; }

@media (max-width: 640px) {
  .deals-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   PROMO BANNER — brutalist
   ============================================================ */
.promo-banner {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 44px 48px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
  position: relative;
  overflow: hidden;
  margin: 0 40px 80px;
}
.promo-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(124,58,237,0.04), rgba(6,182,212,0.02));
  pointer-events: none;
}
.promo-banner .promo-content { position: relative; z-index: 2; }
.promo-banner .promo-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(245,158,11,0.2);
  color: var(--amber);
  padding: 2px 14px;
  border-radius: 4px;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}
.promo-banner .promo-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.6vw, 2.4rem);
  font-weight: 900;
  color: var(--text);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.promo-banner .promo-title .gradient {
  background: linear-gradient(135deg, var(--primary), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.promo-banner .promo-sub {
  color: var(--text-3);
  font-size: 0.9rem;
  margin-top: 8px;
  max-width: 400px;
}
.promo-banner .promo-img {
  width: 200px;
  height: 160px;
  border-radius: 4px;
  object-fit: cover;
  border: 1px solid var(--border);
  transform: rotate(-2deg);
  transition: var(--transition);
}
.promo-banner .promo-img:hover { transform: rotate(0deg) scale(1.02); }

@media (max-width: 820px) {
  .promo-banner { grid-template-columns: 1fr; padding: 32px 28px; margin: 0 16px 56px; }
  .promo-banner .promo-img { width: 100%; height: 180px; }
}
@media (max-width: 640px) {
  .promo-banner { padding: 24px 20px; margin: 0 8px 40px; border-radius: 4px; }
}

/* ============================================================
   FEATURES
   ============================================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feat-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 28px 24px;
  transition: var(--transition);
}
.feat-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
}
.feat-card .feat-icon {
  width: 44px;
  height: 44px;
  border-radius: 4px;
  border: 1px solid rgba(124,58,237,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--primary);
  margin-bottom: 14px;
}
.feat-card .feat-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}
.feat-card .feat-desc {
  font-size: 0.82rem;
  color: var(--text-3);
  line-height: 1.6;
  margin-top: 4px;
}

@media (max-width: 900px) {
  .features-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .features-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.testimonial-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 24px 24px 20px;
}
.testimonial-card .stars { color: var(--amber); font-size: 0.8rem; letter-spacing: 2px; margin-bottom: 10px; }
.testimonial-card blockquote {
  font-size: 0.85rem;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 14px;
  font-style: italic;
}
.testimonial-card .author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testimonial-card .author .avatar {
  width: 36px;
  height: 36px;
  border-radius: 4px;
  background: rgba(124,58,237,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--primary);
  font-size: 0.8rem;
}
.testimonial-card .author .name { font-weight: 600; color: var(--text); font-size: 0.8rem; }
.testimonial-card .author .role { font-size: 0.65rem; color: var(--text-4); }

@media (max-width: 900px) {
  .testimonials-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .testimonials-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   FOOTER — brutalist
   ============================================================ */
.footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 56px 40px 32px;
}
.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer .brand .logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.footer .brand .logo img { height: 34px; border-radius: 4px; }
.footer .brand .logo span {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1rem;
  color: var(--text);
}
.footer .brand .logo span .accent { color: var(--primary); }
.footer .brand p {
  font-size: 0.82rem;
  color: var(--text-3);
  max-width: 320px;
  line-height: 1.7;
}
.footer .brand .social {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}
.footer .brand .social a {
  width: 34px;
  height: 34px;
  border-radius: 4px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-3);
  transition: var(--transition);
  text-decoration: none;
}
.footer .brand .social a:hover { border-color: var(--primary); color: var(--primary); }

.footer .col h4 {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-4);
  margin-bottom: 14px;
}
.footer .col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.footer .col ul a {
  text-decoration: none;
  font-size: 0.82rem;
  color: var(--text-3);
  transition: var(--transition);
}
.footer .col ul a:hover { color: var(--primary); }
.footer .col .contact-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--text-3);
  margin-bottom: 6px;
}
.footer .col .contact-item i { color: var(--primary); margin-top: 2px; width: 16px; }

.footer-bottom {
  max-width: 1400px;
  margin: 0 auto;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.7rem;
  color: var(--text-4);
}

@media (max-width: 1024px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 640px) {
  .footer { padding: 40px 16px 24px; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 6px; text-align: center; }
}

/* ============================================================
   CART DRAWER — brutalist
   ============================================================ */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 19998;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}
.overlay.open { opacity: 1; visibility: visible; }

.cart-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 380px;
  max-width: 100%;
  height: 100vh;
  background: var(--bg-2);
  z-index: 19999;
  display: flex;
  flex-direction: column;
  transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  border-left: 1px solid var(--border);
}
.cart-drawer.open { right: 0; }

.drawer-head {
  padding: 18px 24px 14px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.drawer-head h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 900;
  color: var(--text);
}
.drawer-head .close {
  width: 34px;
  height: 34px;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-3);
  cursor: pointer;
  transition: var(--transition);
}
.drawer-head .close:hover { border-color: var(--primary); color: var(--primary); }

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
}
.drawer-body .empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-4);
}
.drawer-body .empty i { font-size: 2.4rem; display: block; margin-bottom: 14px; opacity: 0.3; }

.cart-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  align-items: center;
}
.cart-item .ci-img {
  width: 48px;
  height: 48px;
  border-radius: 4px;
  object-fit: cover;
  background: var(--bg-3);
  flex-shrink: 0;
}
.cart-item .ci-info { flex: 1; min-width: 0; }
.cart-item .ci-info .ci-name { font-weight: 600; font-size: 0.8rem; color: var(--text); }
.cart-item .ci-info .ci-meta { font-size: 0.6rem; color: var(--text-4); margin-top: 2px; }
.cart-item .ci-info .ci-price { font-size: 0.75rem; font-weight: 700; color: var(--primary); margin-top: 2px; }
.cart-item .ci-qty {
  display: flex;
  align-items: center;
  gap: 8px;
}
.cart-item .ci-qty button {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-3);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
}
.cart-item .ci-qty button:hover { border-color: var(--primary); color: var(--primary); }
.cart-item .ci-qty .num { font-weight: 600; min-width: 20px; text-align: center; font-size: 0.8rem; }
.cart-item .ci-remove {
  background: none;
  border: none;
  color: var(--text-4);
  cursor: pointer;
  padding: 4px;
  transition: var(--transition);
}
.cart-item .ci-remove:hover { color: var(--primary); }

.drawer-foot {
  padding: 14px 20px 20px;
  border-top: 1px solid var(--border);
  display: none;
}
.drawer-foot.visible { display: block; }
.drawer-foot .total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.drawer-foot .total-row .total-amt {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--text);
}
.drawer-foot .checkout-btn {
  width: 100%;
  padding: 12px;
  border: 2px solid var(--primary);
  border-radius: 4px;
  background: var(--primary);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.drawer-foot .checkout-btn:hover { background: transparent; color: var(--primary); }

/* ============================================================
   QUICK ADD MODAL
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,.55);
  backdrop-filter: blur(10px);
  z-index: 30000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.open { display: flex; }

.modal-box {
  position: relative;
  background: #fff;
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 28px;
  max-width: 440px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  padding: 18px 18px 16px;
  box-shadow: 0 30px 80px rgba(15,23,42,.28);
  animation: modalPop 0.25s ease;
  overflow: hidden;
}
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 12px;
  background: rgba(255,255,255,.92);
  color: #111827;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(15,23,42,.12);
}
@keyframes modalPop {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-scroll { overflow-x: hidden; overflow-y: auto; padding-right: 4px; }
.modal-scroll .modal-img {
  width: calc(100% + 36px);
  height: 210px;
  margin: -18px -18px 16px;
  border-radius: 0;
  object-fit: cover;
  display: block;
  background: #f4efe9;
}
.modal-scroll .modal-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  text-align: left;
  letter-spacing: -.03em;
  color: var(--text);
}
.modal-scroll .modal-price {
  text-align: left;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--primary);
  margin-bottom: 14px;
}
.modal-scroll .modal-qty-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 14px;
}
.modal-scroll .modal-qty-row button {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-scroll .modal-qty-row button:hover { border-color: var(--primary); color: var(--primary); }
.modal-scroll .modal-qty-row .num {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  min-width: 36px;
  text-align: center;
}
.modal-scroll .modal-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  margin-top: 10px;
  border-top: 1px solid var(--border);
  font-weight: 700;
}
.modal-scroll .modal-total-row #modalTotalPrice { color: var(--primary); font-size: 1rem; }

.modal-btns {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}
.modal-btns .cancel {
  flex: 0 0 auto;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-3);
  cursor: pointer;
  transition: var(--transition);
}
.modal-btns .cancel:hover { border-color: var(--text-4); }
.modal-btns .confirm {
  flex: 1;
  padding: 13px 16px;
  border: 0;
  border-radius: 14px;
  background: var(--primary);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.84rem;
  font-weight: 800;
  cursor: pointer;
  transition: var(--transition);
}
.modal-btns .confirm:hover { filter: brightness(1.05); }
.modal-btns .confirm:disabled { border-color: var(--border); background: var(--border); color: var(--text-4); cursor: not-allowed; }

.variant-group {
  margin-bottom: 10px;
  padding: 10px 12px;
  background: var(--bg-3);
  border-radius: 4px;
}
.variant-group .label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-3);
  margin-bottom: 4px;
}
.variant-group .label .req { color: var(--primary); }
.variant-group .opts {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.variant-group .opts .opt {
  padding: 4px 12px;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: transparent;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-3);
  cursor: pointer;
  transition: var(--transition);
}
.variant-group .opts .opt:hover { border-color: var(--primary); }
.variant-group .opts .opt.selected {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.variant-group .opts .opt.disabled { opacity: 0.3; cursor: not-allowed; pointer-events: none; }

.addon-group {
  margin-bottom: 10px;
  padding: 10px 12px;
  background: var(--bg-3);
  border-radius: 4px;
}
.addon-group .addon-opt {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 3px 0;
  cursor: pointer;
}
.addon-group .addon-opt .check {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.4rem;
  color: #fff;
  transition: var(--transition);
  flex-shrink: 0;
}
.addon-group .addon-opt.on .check { background: var(--primary); border-color: var(--primary); }
.addon-group .addon-opt .addon-price { margin-left: auto; color: var(--primary); font-weight: 700; font-size: 0.7rem; }
.combo-hint {
  display: none;
  margin-bottom: 10px;
  padding: 6px 10px;
  border-radius: 4px;
  background: rgba(245,158,11,0.08);
  border: 1px solid rgba(245,158,11,0.15);
  color: var(--amber);
  font-size: 0.65rem;
  font-weight: 600;
}

/* ============================================================
   CHECKOUT MODAL
   ============================================================ */
.checkout-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 40000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.checkout-modal.open { display: flex; }

.checkout-box {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 4px;
  max-width: 420px;
  width: 100%;
  padding: 28px;
  box-shadow: var(--shadow);
  animation: modalPop 0.25s ease;
}
.checkout-box h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--text);
  margin-bottom: 18px;
}
.checkout-box .field { margin-bottom: 12px; }
.checkout-box .field label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-3);
  margin-bottom: 3px;
}
.checkout-box .field input,
.checkout-box .field textarea {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--bg-3);
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--text);
  transition: var(--transition);
  outline: none;
}
.checkout-box .field input:focus,
.checkout-box .field textarea:focus { border-color: var(--primary); }
.checkout-box .field textarea { height: 64px; resize: vertical; }

.checkout-box .area-toggle {
  display: flex;
  gap: 6px;
}
.checkout-box .area-toggle button {
  flex: 1;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: transparent;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-3);
  cursor: pointer;
  transition: var(--transition);
}
.checkout-box .area-toggle button.active {
  border-color: var(--primary);
  color: var(--primary);
}
.checkout-box .ord-type-toggle {
  display: flex;
  gap: 6px;
}
.checkout-box .ord-type-toggle button {
  flex: 1;
  padding: 7px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: transparent;
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-3);
  cursor: pointer;
  transition: var(--transition);
}
.checkout-box .ord-type-toggle button.active {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}
.checkout-box .delivery-hint {
  font-size: 0.65rem;
  color: var(--text-4);
  margin-top: 3px;
}

.checkout-box .summary {
  background: var(--bg-3);
  border-radius: 4px;
  padding: 12px 14px;
  margin: 14px 0;
}
.checkout-box .summary .row {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-3);
  padding: 2px 0;
}
.checkout-box .summary .row.grand {
  font-weight: 800;
  color: var(--text);
  border-top: 1px solid var(--border);
  padding-top: 6px;
  margin-top: 2px;
}
.checkout-box .summary .row.grand span:last-child { color: var(--primary); }
.checkout-box .summary .checkout-items {
  max-height: 160px;
  overflow-y: auto;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.checkout-box .summary .chk-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  font-size: 0.75rem;
  padding: 3px 0;
  color: var(--text-2);
}
.checkout-box .summary .chk-name { flex: 1; min-width: 0; overflow-wrap: break-word; }
.checkout-box .summary .chk-qty { color: var(--text-4); font-weight: 600; }
.checkout-box .summary .chk-line { font-weight: 700; color: var(--text); white-space: nowrap; }

.checkout-box .btns {
  display: flex;
  gap: 10px;
}
.checkout-box .btns .cancel {
  flex: 1;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: transparent;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-3);
  cursor: pointer;
  transition: var(--transition);
}
.checkout-box .btns .cancel:hover { border-color: var(--text-4); }
.checkout-box .btns .confirm {
  flex: 2;
  padding: 10px;
  border: 2px solid var(--primary);
  border-radius: 4px;
  background: var(--primary);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}
.checkout-box .btns .confirm:hover { background: transparent; color: var(--primary); }

/* ============================================================
   NOTIFICATION PANEL
   ============================================================ */
.notif-panel {
  position: fixed;
  top: 72px;
  right: 16px;
  width: 300px;
  max-width: calc(100vw - 32px);
  max-height: 65vh;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 4px;
  box-shadow: var(--shadow);
  z-index: 8000;
  overflow: hidden;
  display: none;
  flex-direction: column;
}
.notif-panel.show { display: flex; }
.notif-panel .head {
  padding: 10px 14px;
  font-weight: 800;
  font-size: 0.8rem;
  color: #fff;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.notif-panel .head .clear {
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  font-size: 0.6rem;
  font-weight: 700;
  cursor: pointer;
}
.notif-panel .body { overflow-y: auto; padding: 6px; }
.notif-panel .body .empty {
  text-align: center;
  color: var(--text-4);
  padding: 24px 10px;
  font-size: 0.78rem;
}
.notif-panel .body .item {
  padding: 8px 10px;
  border-radius: 4px;
  margin-bottom: 4px;
  background: var(--bg-3);
  border: 1px solid var(--border);
}
.notif-panel .body .item .title { font-weight: 700; font-size: 0.78rem; color: var(--text); }
.notif-panel .body .item .sub { font-size: 0.68rem; color: var(--text-3); }
.notif-panel .body .item .branch { font-size: 0.65rem; color: var(--text-4); font-weight: 600; }
.notif-panel .body .item .amt { font-size: 0.78rem; font-weight: 800; color: var(--cyan); margin-top: 2px; }

.notif-toast {
  position: fixed;
  top: 72px;
  right: 16px;
  width: 280px;
  max-width: calc(100vw - 32px);
  background: var(--bg-2);
  border-left: 3px solid var(--cyan);
  border: 1px solid var(--border);
  border-left-width: 3px;
  border-radius: 4px;
  box-shadow: var(--shadow);
  padding: 10px 14px;
  z-index: 8500;
  transform: translateX(130%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.notif-toast.show { transform: translateX(0); }
.notif-toast .nt-title { font-weight: 800; font-size: 0.8rem; color: var(--text); }
.notif-toast .nt-sub { font-size: 0.7rem; color: var(--text-3); }
.notif-toast .nt-branch { font-size: 0.65rem; color: var(--text-4); font-weight: 600; }
.notif-toast .nt-amt { font-size: 0.85rem; font-weight: 800; color: var(--cyan); margin-top: 2px; }

/* ============================================================
   MY ORDERS
   ============================================================ */
.my-orders-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 9500;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.my-orders-modal.show { display: flex; }
.my-orders-box {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 4px;
  max-width: 500px;
  width: 100%;
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow);
  animation: modalPop 0.25s ease;
}
.my-orders-box .head {
  padding: 14px 18px;
  color: #fff;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.my-orders-box .head h3 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
}
.my-orders-box .head .close {
  background: rgba(255,255,255,0.1);
  border: none;
  color: #fff;
  width: 28px;
  height: 28px;
  border-radius: 4px;
  cursor: pointer;
}
.my-orders-box .body { overflow-y: auto; padding: 12px; flex: 1; }
.my-orders-box .body .empty {
  text-align: center;
  color: var(--text-4);
  padding: 36px 15px;
  font-size: 0.85rem;
}
.my-orders-box .body .myo-card {
  border: 1px solid var(--border);
  border-radius: 4px;
  margin-bottom: 8px;
  overflow: hidden;
}
.my-orders-box .body .myo-card.flash { animation: myoFlash 1.6s ease; }
@keyframes myoFlash {
  0%, 60% { background: rgba(124,58,237,0.05); border-color: var(--primary); }
  100% { background: transparent; }
}
.my-orders-box .body .myo-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  cursor: pointer;
  gap: 8px;
}
.my-orders-box .body .myo-head .code { font-weight: 700; font-size: 0.8rem; color: var(--text); }
.my-orders-box .body .myo-head .date { font-size: 0.6rem; color: var(--text-4); }
.my-orders-box .body .myo-head .status {
  font-size: 0.55rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 4px;
}
.my-orders-box .body .myo-head .status.pending { background: rgba(245,158,11,0.15); color: var(--amber); }
.my-orders-box .body .myo-head .status.processing { background: rgba(6,182,212,0.15); color: var(--cyan); }
.my-orders-box .body .myo-head .status.completed { background: rgba(124,58,237,0.15); color: var(--primary); }
.my-orders-box .body .myo-head .status.cancelled { background: rgba(239,68,68,0.15); color: #EF4444; }
.my-orders-box .body .myo-head .pay {
  font-size: 0.5rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
}
.my-orders-box .body .myo-head .pay.paid { background: rgba(124,58,237,0.15); color: var(--primary); }
.my-orders-box .body .myo-head .pay.unpaid { background: rgba(239,68,68,0.15); color: #EF4444; }
.my-orders-box .body .myo-head .total { font-weight: 800; font-size: 0.8rem; color: var(--text); }
.my-orders-box .body .myo-detail { padding: 0 12px 12px; border-top: 1px solid var(--border); }
.my-orders-box .body .myo-detail .inner { padding-top: 10px; }
.my-orders-box .body .myo-detail .item-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  padding: 2px 0;
  color: var(--text-3);
}
.my-orders-box .body .myo-detail .deal-tag { background: rgba(245,158,11,0.1); color: var(--amber); font-size: 0.5rem; font-weight: 700; padding: 1px 6px; border-radius: 4px; }
.my-orders-box .body .myo-detail .meta {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  font-size: 0.65rem;
  color: var(--text-4);
}
.my-orders-box .body .myo-detail .meta strong { font-weight: 700; color: var(--text-3); }
.my-orders-box .body .myo-tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding: 6px 0 10px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.my-orders-box .body .myo-tabs .tab {
  flex-shrink: 0;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-3);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-body);
}
.my-orders-box .body .myo-tabs .tab.active {
  border-color: var(--primary);
  color: var(--primary);
}
.my-orders-box .body .myo-branch-chip {
  display: inline-block;
  background: var(--bg-3);
  color: var(--text-4);
  font-size: 0.55rem;
  font-weight: 700;
  padding: 1px 8px;
  border-radius: 4px;
  margin-top: 2px;
}
.my-orders-box .body .myo-cust {
  background: var(--bg-3);
  border-radius: 4px;
  padding: 6px 10px;
  margin-bottom: 6px;
  font-size: 0.7rem;
  color: var(--text-3);
  line-height: 1.6;
}
.my-orders-box .body .myo-cust b { color: var(--text); }
.my-orders-box .refresh-note {
  font-size: 0.6rem;
  color: var(--text-4);
  text-align: center;
  padding: 6px 0 2px;
}

/* ============================================================
   ORDER SUCCESS
   ============================================================ */
.order-success-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.order-success-content {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 4px;
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  animation: modalPop 0.25s ease;
}
.order-success-content .success-header {
  text-align: center;
  padding: 28px 24px 20px;
  background: var(--primary);
  color: #fff;
}
.order-success-content .success-header .icon { font-size: 2.8rem; margin-bottom: 8px; }
.order-success-content .success-header .icon i { animation: bounce 0.5s ease-out; }
@keyframes bounce {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}
.order-success-content .success-header h2 { font-family: var(--font-display); font-size: 1.15rem; font-weight: 800; }
.order-success-content .success-header p { opacity: 0.8; font-size: 0.85rem; }
.order-success-content .order-info {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.order-success-content .order-info .row {
  display: flex;
  margin-bottom: 6px;
  font-size: 0.8rem;
}
.order-success-content .order-info .row .label { width: 90px; font-weight: 600; color: var(--text-4); }
.order-success-content .order-info .row .value { flex: 1; color: var(--text); }
.order-success-content .order-info .row .value.code { font-weight: 700; color: var(--primary); }
.order-success-content .invoice-items { padding: 16px 20px; }
.order-success-content .invoice-items h3 { font-family: var(--font-display); font-size: 0.85rem; font-weight: 700; margin-bottom: 10px; }
.order-success-content .invoice-items table { width: 100%; border-collapse: collapse; font-size: 0.72rem; }
.order-success-content .invoice-items table th,
.order-success-content .invoice-items table td { padding: 4px 6px; text-align: left; border-bottom: 1px solid var(--border); }
.order-success-content .invoice-items table th { font-weight: 600; color: var(--text-4); }
.order-success-content .invoice-items table .text-right { text-align: right; }
.order-success-content .invoice-items table tfoot td { border-bottom: none; padding-top: 4px; }
.order-success-content .invoice-items table tfoot .grand td { font-weight: 800; color: var(--text); border-top: 1px solid var(--border); padding-top: 6px; }
.order-success-content .action-buttons {
  display: flex;
  gap: 10px;
  padding: 14px 20px 20px;
  border-top: 1px solid var(--border);
}
.order-success-content .action-buttons .whatsapp {
  flex: 1;
  padding: 8px;
  border: none;
  border-radius: 4px;
  background: #25D366;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.order-success-content .action-buttons .whatsapp:hover { opacity: 0.85; }
.order-success-content .action-buttons .close {
  flex: 1;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: transparent;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-3);
  cursor: pointer;
  transition: var(--transition);
}
.order-success-content .action-buttons .close:hover { border-color: var(--text-4); }

@media (max-width: 640px) {
  .order-success-content .action-buttons { flex-direction: column; }
  .order-success-content .order-info .row { flex-direction: column; }
  .order-success-content .order-info .row .label { width: auto; margin-bottom: 2px; }
}

/* ============================================================
   BRANCH MODAL
   ============================================================ */
#branchModal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0,0,0,0.7);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
#branchModal.show { display: flex; }
#branchModal .branch-box {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 24px 24px 20px;
  max-width: 400px;
  width: 100%;
  box-shadow: var(--shadow);
  animation: modalPop 0.25s ease;
  text-align: center;
}
#branchModal .branch-box .icon { font-size: 2rem; margin-bottom: 4px; }
#branchModal .branch-box h2 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  color: var(--text);
}
#branchModal .branch-box p { font-size: 0.78rem; color: var(--text-4); margin-bottom: 14px; }
#branchModal .branch-box .list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
#branchModal .branch-box .list .opt {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
  transition: var(--transition);
  text-align: left;
  width: 100%;
  font-family: var(--font-body);
}
#branchModal .branch-box .list .opt:hover { border-color: var(--primary); }
#branchModal .branch-box .list .opt.current { border-color: var(--primary); background: rgba(124,58,237,0.03); }
#branchModal .branch-box .list .opt .o-icon {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  background: var(--bg-3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}
#branchModal .branch-box .list .opt .o-name { font-weight: 700; font-size: 0.8rem; color: var(--text); }
#branchModal .branch-box .list .opt .o-area { font-size: 0.65rem; color: var(--text-4); }
#branchModal .branch-box .list .opt .o-tag {
  margin-left: 4px;
  font-size: 0.5rem;
  font-weight: 700;
  padding: 1px 8px;
  border-radius: 4px;
  background: rgba(124,58,237,0.1);
  color: var(--primary);
}
#branchModal .branch-box .list .opt .o-tag.current-tag {
  background: var(--primary);
  color: #fff;
}
#branchModal .branch-box .list .opt .o-arrow { margin-left: auto; color: var(--text-4); }
#branchModal .branch-box .footer-note { font-size: 0.65rem; color: var(--text-4); margin-top: 12px; }

body.branch-pending > *:not(#branchModal):not(#pageSplash):not(#fkToast):not(.wa-float) { visibility: hidden; }

/* ============================================================
   REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.06s; }
.reveal-delay-2 { transition-delay: 0.12s; }
.reveal-delay-3 { transition-delay: 0.18s; }

/* ============================================================
   TOASTR
   ============================================================ */
#toast-container {
  z-index: 999999 !important;
  top: 20px !important;
  right: 20px !important;
}
.toast-success { background: #0A0A0A !important; border-left: 4px solid var(--primary) !important; color: #fff !important; }
.toast-error { background: #0A0A0A !important; border-left: 4px solid #EF4444 !important; color: #fff !important; }
.toast-warning { background: #0A0A0A !important; border-left: 4px solid var(--amber) !important; color: #fff !important; }
.toast-info { background: #0A0A0A !important; border-left: 4px solid var(--cyan) !important; color: #fff !important; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 640px) {
  .products-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .p-img { height: 140px; }
  .p-body { padding: 12px 14px 14px; }
  .p-body .p-name { font-size: 0.82rem; }
  .p-price { font-size: 0.9rem; }
  .p-add { padding: 4px 12px; font-size: 0.65rem; }
  .deal-card .deal-img { height: 120px; }
  .modal-box { padding: 18px 16px; }
  .checkout-box { padding: 20px 16px; }
  .hero-visual .cube { width: 180px; height: 180px; }
  .hero-content h1 { font-size: 2.2rem; }
}
@media (max-width: 420px) {
  .products-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .p-img { height: 120px; }
  .p-body { padding: 10px 12px 12px; }
  .p-body .p-name { font-size: 0.78rem; }
  .p-body .p-desc { font-size: 0.65rem; -webkit-line-clamp: 1; margin-bottom: 8px; }
  .p-price { font-size: 0.85rem; }
  .p-badge { top: 6px; left: 6px; padding: 1px 7px; font-size: 0.45rem; }
  .p-fav { top: 6px; right: 6px; width: 24px; height: 24px; font-size: 0.6rem; }
  .p-add { padding: 4px 9px; font-size: 0.6rem; }
}
/* ============================================================
   NAVBAR CATEGORIES DROPDOWN
   ============================================================ */
.nav-categories-dropdown {
    position: relative;
    display: inline-block;
}

.nav-categories-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border: 1px solid var(--border);
    border-radius: 50px;
    background: var(--bg-2);
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-2);
    cursor: pointer;
    transition: all 0.25s ease;
}

.nav-categories-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 4px 16px rgba(124, 58, 237, 0.08);
}

.nav-categories-btn i:first-child {
    color: var(--primary);
    font-size: 0.85rem;
}

.nav-categories-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 420px;
    max-width: 600px;
    background: var(--bg-2);
    border: 1px solid var(--border);
    box-shadow: 0 20px 60px rgba(0,0,0,0.12);
    padding: 16px 20px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.3s ease;
    z-index: 9999;
}

.nav-categories-menu.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.nav-category-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-2);
    transition: all 0.2s ease;
    cursor: pointer;
}

.nav-category-item:hover {
    background: rgba(124, 58, 237, 0.06);
    transform: translateX(4px);
}

.nav-category-item img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border);
    flex-shrink: 0;
}

.nav-category-item .nav-cat-name {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text);
}

.nav-category-item .nav-cat-count {
    font-size: 0.55rem;
    font-weight: 600;
    color: var(--text-4);
    margin-left: auto;
}

.nav-categories-menu .nav-cat-all {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 12px;
    padding: 8px;
    border-top: 1px solid var(--border);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

.nav-categories-menu .nav-cat-all:hover {
    gap: 12px;
}

/* Mobile responsive */
@media (max-width: 820px) {
    .nav-categories-btn span {
        display: none;
    }
    .nav-categories-btn {
        padding: 8px 12px;
    }
    .nav-categories-menu {
        position: fixed;
        top: 80px;
        left: 16px;
        right: 16px;
        min-width: unset;
        max-width: unset;
        width: auto;
    }
    .nav-categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .nav-categories-grid {
        grid-template-columns: 1fr;
    }
}
/* ============================================================
   NAVBAR CATEGORIES DROPDOWN
   ============================================================ */
.nav-categories-dropdown {
    position: relative;
    display: inline-block;
}

.nav-categories-link {
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-3);
    padding: 6px 16px;
    border-radius: 4px;
    transition: var(--transition);
    letter-spacing: 0.02em;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.nav-categories-link:hover {
    color: var(--text);
    background: rgba(124, 58, 237, 0.1);
}

.nav-categories-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 420px;
    max-width: 600px;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.12);
    padding: 16px 20px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.3s ease;
    z-index: 9999;
}

.nav-categories-menu.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.nav-category-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-2);
    transition: all 0.2s ease;
    cursor: pointer;
}

.nav-category-item:hover {
    background: rgba(124, 58, 237, 0.06);
    transform: translateX(4px);
}

.nav-category-item img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border);
    flex-shrink: 0;
}

.nav-category-item .nav-cat-name {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text);
}

.nav-categories-menu .nav-cat-all {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 12px;
    padding: 8px;
    border-top: 1px solid var(--border);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

.nav-categories-menu .nav-cat-all:hover {
    gap: 12px;
}

/* ============================================================
   MOBILE RESPONSIVE
   ============================================================ */
@media (max-width: 820px) {
    .navbar { padding: 10px 16px; }

    .nav-links,
    .hamburger,
    #cartBtnNav,
    #myOrdersBtn {
        display: none !important;
    }

    .nav-categories-dropdown {
        width: 100%;
    }
    
    .nav-categories-menu {
        position: static;
        min-width: unset;
        max-width: unset;
        box-shadow: none;
        border: 1px solid var(--border);
        margin-top: 4px;
        padding: 12px;
        left: 0;
        right: auto;
        transform: none;
        opacity: 1;
        visibility: visible;
        display: none;
    }
    
    .nav-categories-menu.open {
        display: block;
        transform: none;
    }
    
    .nav-categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .nav-categories-btn span {
        display: none;
    }
    .nav-categories-btn {
        padding: 8px 12px;
    }
}

@media (max-width: 480px) {
    .nav-categories-grid {
        grid-template-columns: 1fr;
    }
}


.navbar .brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.navbar .brand .brand-name {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
}

/* ============================================================
   LOADER — Dots
   ============================================================ */
#loader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
#loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-logo-wrap {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--border);
  padding: 4px;
}
.loader-logo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
}
.loader-logo-wrap .fallback {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--primary);
}

.loader-name-dots {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}

.loader-dots-group {
  display: flex;
  gap: 6px;
}
.loader-dots-group span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  animation: dotBounce 1.2s ease-in-out infinite;
}
.loader-dots-group span:nth-child(2) { animation-delay: 0.2s; }
.loader-dots-group span:nth-child(3) { animation-delay: 0.4s; }

@keyframes dotBounce {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.3; }
  40% { transform: scale(1); opacity: 1; }
}

/* ============================================================
   2026 RESTAURANT STOREFRONT
   ============================================================ */
body {
  background: #fffaf5;
  padding: 0 !important;
}
@media (max-width: 820px) {
  body { padding-bottom: 96px !important; }
}
.navbar.restaurant-header {
  top: 0;
  left: 0;
  right: 0;
  height: 76px;
  padding: 0 clamp(18px, 4vw, 64px);
  border: 0;
  border-radius: 0;
  color: #fff;
  background: color-mix(in srgb, var(--primary) 92%, #ff6b00);
  box-shadow: none;
  backdrop-filter: none;
}
.restaurant-header.scrolled {
  background: color-mix(in srgb, var(--primary) 88%, #ff6500);
  box-shadow: 0 12px 30px rgba(68, 30, 0, .14);
}
.header-left,
.header-right {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
}
.header-right { justify-content: flex-end; }
.header-menu-btn,
.header-action {
  border: 1px solid rgba(255,255,255,.38);
  background: rgba(255,255,255,.1);
  color: #fff;
  height: 42px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease;
}
.header-menu-btn { width: 42px; }
.header-action { padding: 0 16px; font: 700 .72rem var(--font-body); }
.header-menu-btn:hover,
.header-action:hover { background: rgba(255,255,255,.2); transform: translateY(-2px); }
.header-hotline {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #fff;
  line-height: 1.05;
}
.header-hotline i { font-size: .9rem; }
.header-hotline small { display: block; font-size: .55rem; opacity: .72; font-weight: 600; }
.header-hotline strong { display: block; font-size: .72rem; margin-top: 3px; }
.restaurant-header .brand {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  max-width: 64px;
  color: #fff;
}
.restaurant-header .brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 50%;
  padding: 3px;
  background: #fff;
}
.restaurant-header .brand .brand-name {
  color: #fff;
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: -.03em;
}
.header-cart { position: relative; width: 42px; padding: 0; }
.header-cart .badge {
  top: -5px;
  right: -4px;
  background: #111827;
  border-color: #fff;
  border-radius: 999px;
}

.hero.restaurant-hero {
  min-height: 650px;
  padding: 130px 24px 66px;
  overflow: hidden;
  display: block;
  position: relative;
  background-color: var(--primary);
  background-image: url('assets/hero-banner.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.restaurant-hero::after { display: none; }
.restaurant-hero.has-banner .hero-food-art { display: none; }
.restaurant-hero.has-banner .hero-float {
  color: rgba(255,255,255,.28);
}
.hero-float-layer {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}
.hero-float {
  position: absolute;
  color: rgba(255,255,255,.48);
  opacity: 1;
  will-change: transform;
}
.hero-float svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.hero-float.is-soft { color: rgba(255,255,255,.36); }
.hero-float.is-tiny { color: rgba(255,255,255,.32); }
.hero-float.f1 { width: 56px; top: 12%; left: 6%; animation: heroFloatA 9s ease-in-out infinite; }
.hero-float.f2 { width: 48px; top: 20%; right: 9%; animation: heroFloatB 11s ease-in-out infinite; }
.hero-float.f3 { width: 40px; top: 46%; left: 3%; animation: heroFloatC 10s ease-in-out infinite; }
.hero-float.f4 { width: 44px; top: 56%; right: 4%; animation: heroFloatA 12s ease-in-out infinite reverse; }
.hero-float.f5 { width: 36px; top: 32%; left: 14%; animation: heroFloatB 13s ease-in-out infinite; }
.hero-float.f6 { width: 38px; top: 36%; right: 15%; animation: heroFloatC 8.5s ease-in-out infinite; }
.hero-float.f7 { width: 30px; bottom: 16%; left: 16%; animation: heroFloatA 14s ease-in-out infinite; }
.hero-float.f8 { width: 32px; bottom: 20%; right: 18%; animation: heroFloatB 10.5s ease-in-out infinite; }
.hero-float.f9 { width: 26px; top: 17%; left: 24%; animation: heroFloatC 12.5s ease-in-out infinite; }
.hero-float.f10 { width: 28px; top: 15%; right: 24%; animation: heroFloatA 11.5s ease-in-out infinite reverse; }
.hero-float.f11 { width: 34px; top: 62%; left: 10%; animation: heroFloatB 9.5s ease-in-out infinite; }
.hero-float.f12 { width: 30px; top: 64%; right: 12%; animation: heroFloatC 13.5s ease-in-out infinite reverse; }
.hero-float.f13 { width: 42px; top: 28%; left: 8%; animation: heroFloatA 10.8s ease-in-out infinite; }
.hero-float.f14 { width: 40px; top: 30%; right: 7%; animation: heroFloatB 12.2s ease-in-out infinite; }
.hero-float.f15 { width: 24px; bottom: 28%; left: 26%; animation: heroFloatC 11.2s ease-in-out infinite; }
.hero-float.f16 { width: 24px; bottom: 30%; right: 28%; animation: heroFloatA 9.8s ease-in-out infinite reverse; }
.hero-float.f17 { width: 22px; top: 42%; left: 22%; animation: heroFloatB 14.5s ease-in-out infinite; }
.hero-float.f18 { width: 22px; top: 44%; right: 22%; animation: heroFloatC 10.2s ease-in-out infinite; }
.hero-float.f19 { width: 20px; top: 8%; left: 36%; animation: heroFloatA 13s ease-in-out infinite; }
.hero-float.f20 { width: 20px; top: 9%; right: 34%; animation: heroFloatB 12.8s ease-in-out infinite reverse; }
@keyframes heroFloatA {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50% { transform: translateY(-14px) rotate(5deg); }
}
@keyframes heroFloatB {
  0%, 100% { transform: translateY(0) rotate(3deg); }
  50% { transform: translateY(-10px) rotate(-6deg); }
}
@keyframes heroFloatC {
  0%, 100% { transform: translate3d(0,0,0) rotate(0deg); }
  50% { transform: translate3d(8px,-12px,0) rotate(8deg); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-float,
  .hero-food-art::before { animation: none !important; }
}
.restaurant-hero-inner {
  position: relative;
  z-index: 2;
  width: min(920px, 100%);
  margin: 0 auto;
  text-align: center;
  color: #fff;
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px;
  background: rgba(255,255,255,.1);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .04em;
  backdrop-filter: blur(10px);
}
.hero-kicker .live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #a7f3d0;
  box-shadow: 0 0 0 5px rgba(167,243,208,.15);
}
.restaurant-hero h1 {
  margin: 18px auto 10px;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(2.7rem, 6vw, 5rem);
  line-height: .98;
  letter-spacing: -.06em;
  font-weight: 900;
  max-width: 900px;
}
.restaurant-hero .hero-subtitle {
  max-width: 580px;
  margin: 0 auto;
  font-size: .95rem;
  color: rgba(255,255,255,.8);
}
.hero-location-search {
  position: relative;
  width: min(680px, 100%);
  min-height: 60px;
  margin: 28px auto 30px;
  padding: 7px 7px 7px 19px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(92,35,0,.2);
  display: flex;
  align-items: center;
  gap: 12px;
  color: #334155;
}
.hero-location-search > i { color: var(--primary); }
.hero-location-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  font: 600 .78rem var(--font-body);
  color: #334155;
  background: transparent;
  cursor: text;
}
.hero-location-search .locate-btn {
  border: 0;
  background: transparent;
  color: #475569;
  font: 700 .67rem var(--font-body);
  white-space: nowrap;
  cursor: pointer;
}
.hero-location-search .search-btn {
  min-height: 46px;
  border: 0;
  border-radius: 999px;
  padding: 0 22px;
  background: var(--primary);
  color: #fff;
  font: 800 .72rem var(--font-body);
  cursor: pointer;
}
.hero-categories {
  display: flex;
  justify-content: center;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 2px 6px 10px;
}
.hero-categories::-webkit-scrollbar { display: none; }
.hero-category {
  flex: 0 0 auto;
  min-width: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font-family: var(--font-body);
  text-decoration: none;
}
.hero-category .image {
  display: block;
  width: 66px;
  height: 66px;
  margin: 0 auto 8px;
  padding: 3px;
  border-radius: 50%;
  background: rgba(255,255,255,.95);
  box-shadow: none;
  transition: transform .25s ease;
}
.hero-category:hover .image { transform: translateY(-5px) rotate(3deg); }
.hero-category img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.hero-category .fallback {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--primary-light);
  color: var(--primary);
}
.hero-category span { font-size: .68rem; font-weight: 800; }
.hero-search-results {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 10px);
  z-index: 50;
  display: none;
  max-height: 310px;
  overflow-y: auto;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(15,23,42,.16);
  text-align: left;
}
.hero-search-results.show { display: block; }
.hero-search-result {
  width: 100%;
  padding: 9px;
  border: 0;
  border-radius: 13px;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 11px;
  cursor: pointer;
  color: var(--text);
  text-decoration: none;
}
.hero-search-result:hover { background: #fff7ed; }
.hero-search-result img {
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  object-fit: cover;
  border-radius: 12px;
  background: var(--bg-3);
}
.hero-search-result strong { display: block; font-size: .76rem; line-height: 1.2; }
.hero-search-result small { display: block; margin-top: 4px; color: var(--text-4); font-size: .65rem; }
.hero-search-empty { padding: 22px; text-align: center; color: var(--text-4); font-size: .74rem; }
.hero-food-art {
  position: absolute;
  z-index: 1;
  width: clamp(210px, 25vw, 380px);
  aspect-ratio: 1;
  border-radius: 50%;
  padding: 13px;
  background: rgba(255,255,255,.17);
  border: 1px solid rgba(255,255,255,.22);
  box-shadow: 0 30px 60px rgba(84,31,0,.22);
}
.hero-food-art::before {
  content: '';
  position: absolute;
  inset: 8% -8% -12% 4%;
  z-index: -1;
  border-radius: 48% 52% 46% 54% / 42% 48% 52% 58%;
  background: radial-gradient(circle at 40% 40%, rgba(255,214,90,.55), rgba(255,176,32,.18) 58%, transparent 72%);
  filter: blur(2px);
  animation: heroSplash 8s ease-in-out infinite;
}
.hero-food-art.right::before {
  inset: 4% 2% -14% -10%;
  background: radial-gradient(circle at 55% 45%, rgba(255,214,90,.5), rgba(255,176,32,.16) 58%, transparent 72%);
  animation-delay: -3s;
}
@keyframes heroSplash {
  0%, 100% { transform: scale(1) rotate(0deg); opacity: .9; }
  50% { transform: scale(1.05) rotate(4deg); opacity: 1; }
}
.hero-food-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.hero-food-art.left { left: clamp(-190px, -10vw, -80px); bottom: -80px; transform: rotate(12deg); }
.hero-food-art.right { right: clamp(-190px, -10vw, -80px); bottom: -90px; transform: rotate(-10deg); }

.ticker { border: 0; background: #111827; color: #fff; }
.ticker-item { color: rgba(255,255,255,.78); }
.section { background: #fffaf5; }
.section-header { max-width: 1180px; }
.section-title { letter-spacing: -.045em; }
.gradient {
  color: inherit !important;
  background: none !important;
  -webkit-text-fill-color: currentColor !important;
}
.cats-scroll {
  position: sticky;
  top: 82px;
  z-index: 100;
  padding: 10px;
  border: 1px solid rgba(15,23,42,.06);
  border-radius: 18px;
  background: rgba(255,255,255,.78);
  backdrop-filter: blur(5px);
  box-shadow: 0 14px 40px rgba(15,23,42,.07);
}
.cat-chip {
  min-height: 34px;
  padding: 5px 11px;
  gap: 6px;
  border-radius: 999px;
  font-size: .68rem;
  box-shadow: none;
}
.cat-chip img { width: 21px; height: 21px; }
.cat-chip.active {
  background: #111827;
  border-color: #111827;
  color: #fff;
  box-shadow: none;
}
.product-card,
.deal-card,
.feat-card,
.testimonial-card {
  border-radius: 20px;
  border-color: rgba(15,23,42,.07);
  box-shadow: 0 12px 35px rgba(15,23,42,.06);
  overflow: hidden;
}
.product-card { cursor: pointer; }
.p-img { border-radius: 0; }
.product-detail-link { position: absolute; inset: 0; display: block; }
.product-name-link { display: block; color: inherit; text-decoration: none; }
.quick-view-btn {
  position: absolute;
  left: 50%;
  bottom: 10px;
  z-index: 4;
  transform: translate(-50%, 8px);
  opacity: 0;
  white-space: nowrap;
  border: 0;
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(17,24,39,.9);
  backdrop-filter: blur(10px);
  color: #fff;
  font: 700 .62rem var(--font-body);
  cursor: pointer;
  transition: opacity .2s ease, transform .2s ease;
}
.product-card:hover .quick-view-btn { opacity: 1; transform: translate(-50%, 0); }
.modal-description {
  margin: 0 0 12px;
  text-align: left;
  color: var(--text-4);
  font-size: .7rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.p-img,
.deal-img {
  background: linear-gradient(100deg, #eee8e1 25%, #fffaf5 42%, #eee8e1 60%);
  background-size: 220% 100%;
  animation: foodCardShimmer 1.35s linear infinite;
}
.p-img img,
.deal-img img {
  opacity: 0;
  transition: opacity .45s ease, transform .45s ease;
}
.p-img img.loaded,
.deal-img img.loaded { opacity: 1; }
@keyframes foodCardShimmer { to { background-position-x: -220%; } }
.p-add,
.deal-add { border-radius: 999px; }

.page-splash {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #fffaf5;
  gap: 16px;
  transition: opacity .35s ease, visibility .35s ease;
}
.page-splash.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-logo-wrap {
  width: 88px;
  height: 88px;
  border: 0;
  padding: 8px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(15,23,42,.12);
  animation: loaderFloat 1.8s ease-in-out infinite;
}
.loader-name-dots { font-size: 1.3rem; font-weight: 900; letter-spacing: -.04em; }
.loader-message { color: var(--text-4); font-size: .72rem; font-weight: 600; }
.loader-shimmer {
  width: min(260px, 68vw);
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #ebe7e2;
}
.loader-shimmer::after {
  content: '';
  display: block;
  width: 45%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  animation: loaderShimmer 1.15s ease-in-out infinite;
}
@keyframes loaderFloat { 50% { transform: translateY(-8px) rotate(2deg); } }
@keyframes loaderShimmer { from { transform: translateX(-120%); } to { transform: translateX(250%); } }

#branchModal {
  background: rgba(15,23,42,.64);
  backdrop-filter: blur(18px);
}
#branchModal .branch-box {
  max-width: 520px;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 28px;
  padding: 0;
  overflow: hidden;
  background: rgba(255,255,255,.96);
  box-shadow: 0 30px 90px rgba(15,23,42,.28);
  text-align: left;
}
.location-modal-head {
  position: relative;
  padding: 30px 30px 24px;
  overflow: hidden;
  color: #fff;
  background: var(--primary);
}
.location-modal-head::after {
  content: '';
  position: absolute;
  width: 170px;
  height: 170px;
  right: -55px;
  top: -70px;
  border: 28px solid rgba(255,255,255,.1);
  border-radius: 50%;
}
.location-modal-head .pin {
  width: 48px;
  height: 48px;
  margin-bottom: 15px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: rgba(255,255,255,.17);
  font-size: 1.2rem;
}
#branchModal .branch-box .location-modal-head h2 {
  color: #fff;
  font-size: 1.45rem;
  letter-spacing: -.04em;
}
#branchModal .branch-box .location-modal-head p {
  color: rgba(255,255,255,.78);
  margin: 5px 0 0;
}
.location-modal-body { padding: 24px 30px 28px; }
.fulfillment-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-bottom: 20px;
  padding: 5px;
  border-radius: 17px;
  background: #f1f5f9;
}
.fulfillment-tabs button {
  min-width: 0;
  padding: 11px 12px;
  border: 0;
  border-radius: 13px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: #64748b;
  cursor: pointer;
  font-family: var(--font-body);
}
.fulfillment-tabs button.active {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 5px 16px rgba(15,23,42,.08);
}
.fulfillment-tabs button > i { font-size: .9rem; }
.fulfillment-tabs button span { text-align: left; line-height: 1.05; }
.fulfillment-tabs button strong { display: block; font-size: .72rem; }
.fulfillment-tabs button small { display: block; margin-top: 4px; font-size: .55rem; color: #94a3b8; }
.fulfillment-panel { display: none; }
.fulfillment-panel.active { display: block; animation: fulfillmentIn .2s ease; }
@keyframes fulfillmentIn { from { opacity: 0; transform: translateY(5px); } }
.location-step-label {
  display: block;
  margin: 12px 0 7px;
  color: #475569;
  font-size: .65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.location-choice-list {
  display: grid;
  gap: 8px;
  max-height: 180px;
  overflow-y: auto;
}
.location-choice {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  font-family: var(--font-body);
  transition: border-color .2s ease, background .2s ease;
}
.location-choice:hover { border-color: color-mix(in srgb, var(--primary) 45%, #ddd); }
.location-choice.selected { border-color: var(--primary); background: var(--primary-light); }
.location-choice .choice-icon {
  width: 35px;
  height: 35px;
  flex: 0 0 auto;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: #f8fafc;
  color: var(--primary);
}
.location-choice strong { display: block; font-size: .73rem; }
.location-choice small { display: block; margin-top: 3px; color: #94a3b8; font-size: .59rem; }
.location-choice .check { margin-left: auto; color: var(--primary); opacity: 0; }
.location-choice.selected .check { opacity: 1; }
.location-input-wrap {
  height: 52px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
}
.location-input-wrap:focus-within { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-glow); }
.location-input-wrap i { color: var(--primary); }
.location-input-wrap input {
  width: 100%;
  border: 0;
  outline: 0;
  font: 600 .8rem var(--font-body);
}
.location-detect-status {
  margin: 8px 2px 0;
  color: #64748b;
  font-size: .68rem;
  font-weight: 700;
  line-height: 1.4;
}
.location-detect-status.ok { color: #059669; }
.location-detect-status.err { color: #b45309; }
.location-choice.is-nearest small::after {
  content: ' · Nearest';
  color: var(--primary);
  font-weight: 800;
}
.detect-location {
  width: 100%;
  margin-top: 10px;
  padding: 12px;
  border: 1px dashed color-mix(in srgb, var(--primary) 40%, #ddd);
  border-radius: 13px;
  background: var(--primary-light);
  color: var(--primary);
  font: 800 .72rem var(--font-body);
  cursor: pointer;
}
#branchModal .branch-box .list { margin-top: 14px; gap: 9px; }
#branchModal .branch-box .list .opt {
  padding: 12px 14px;
  border-radius: 14px;
  background: #fff;
}
#branchModal .branch-box .list .opt .o-icon { border-radius: 11px; }
.location-continue {
  width: 100%;
  height: 50px;
  margin-top: 14px;
  border: 0;
  border-radius: 14px;
  background: var(--primary);
  color: #fff;
  font: 800 .78rem var(--font-body);
  cursor: pointer;
  box-shadow: 0 12px 28px var(--primary-glow);
}
.checkout-location-card {
  min-height: 48px;
  padding: 9px 11px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.checkout-location-card span { display: flex; align-items: center; gap: 8px; min-width: 0; }
.checkout-location-card i { color: var(--primary); }
.checkout-location-card strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .73rem; }
.checkout-location-card button {
  border: 0;
  background: transparent;
  color: var(--primary);
  font: 800 .65rem var(--font-body);
  cursor: pointer;
}
.craving-section { padding-top: 28px; }
.craving-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.craving-card {
  min-height: 220px;
  padding: 24px;
  border: 1px solid rgba(15,23,42,.08);
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: flex-end;
  color: var(--text);
  text-decoration: none;
  background: #fff;
  box-shadow: 0 10px 30px rgba(15,23,42,.05);
}
.craving-card > div { position: relative; z-index: 2; max-width: 62%; }
.craving-number { color: var(--primary); font-size: .65rem; font-weight: 900; }
.craving-card h3 { margin-top: 8px; font: 800 1.25rem/1 var(--font-display); letter-spacing: -.04em; }
.craving-card p { margin-top: 8px; color: var(--text-4); font-size: .68rem; }
.craving-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 22px; color: var(--primary); font-size: .68rem; font-weight: 800; }
.craving-card img,
.craving-fallback {
  position: absolute;
  width: 145px;
  height: 145px;
  right: -25px;
  bottom: -18px;
  border-radius: 50%;
  object-fit: cover;
  transition: transform .3s ease;
}
.craving-fallback { display: grid; place-items: center; background: var(--primary-light); color: var(--primary); font-size: 2rem; }
.craving-card:hover img { transform: scale(1.06) rotate(-3deg); }
.favorites-section { padding-top: 18px; }
.favorites-rail {
  display: grid;
  grid-template-columns: repeat(5, minmax(190px, 1fr));
  gap: 13px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: none;
}
.favorites-rail::-webkit-scrollbar { display: none; }
.favorite-card {
  min-width: 190px;
  padding: 10px;
  border: 1px solid rgba(15,23,42,.08);
  border-radius: 18px;
  background: #fff;
  color: var(--text);
  text-decoration: none;
  position: relative;
}
.favorite-card img { width: 100%; height: 125px; object-fit: cover; border-radius: 13px; background: var(--bg-3); }
.favorite-card > div { padding: 10px 5px 4px; }
.favorite-card h3 { font-size: .78rem; line-height: 1.15; }
.favorite-card p { margin: 4px 0 8px; color: var(--text-4); font-size: .6rem; }
.favorite-card strong { color: var(--primary); font-size: .74rem; }
.saved-rows { padding-top: 8px; }
.saved-rows .section-header { margin-bottom: 16px; }
.saved-rows .favorite-card > a { display: block; color: inherit; text-decoration: none; }
.saved-photo { position: relative; display: block; min-height: 125px; border-radius: 13px; overflow: hidden; background: var(--bg-3); }
.saved-photo img { width: 100%; height: 125px; object-fit: cover; display: block; border-radius: 0; }
.saved-fallback { height: 125px; display: grid; place-items: center; color: var(--text-4); font-size: 1.6rem; }
.saved-rows .p-fav { top: 18px; right: 18px; }
.saved-empty { margin: 4px 0 0; color: var(--text-3); font-size: 0.88rem; }
.deal-body .deal-footer { display: flex; align-items: center; gap: 8px; }
.deal-body .deal-footer .deal-wish { position: static; width: 34px; height: 34px; flex: 0 0 34px; }
.deal-body .deal-footer .deal-add { margin-left: auto; }
.favorite-rank {
  position: absolute;
  z-index: 2;
  top: 17px;
  left: 17px;
  padding: 4px 7px;
  border-radius: 8px;
  background: #111827;
  color: #fff;
  font-size: .58rem;
  font-weight: 900;
}
.sf-svg { width: 18px; height: 18px; display: block; fill: none; }
.navbar.restaurant-header {
  height: 74px;
  padding: 0 max(22px, calc((100vw - 1180px) / 2));
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  color: #fff;
  background: transparent;
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px);
  box-shadow: none;
}
.navbar.restaurant-header.scrolled { background: rgba(255,253,249,.96); box-shadow: 0 10px 34px rgba(15,23,42,.08); }
.header-left { display: none; }
.restaurant-header .brand {
  position: static;
  transform: none;
  width: 48px;
  max-width: 48px;
}
.restaurant-header .brand img { width: 46px; height: 46px; padding: 2px; border: 1px solid var(--border); }
.home-desktop-nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
}
.home-desktop-nav a {
  padding: 9px 15px;
  border-radius: 999px;
  color: var(--text-3);
  text-decoration: none;
  font: 800 .68rem var(--font-body);
}
.home-desktop-nav a:hover, .home-desktop-nav a.active { background: #111827; color: #fff; }
.header-right { flex: none; }
.header-menu-btn, .header-action {
  height: 42px;
  border-color: var(--border);
  background: #fff;
  color: var(--text);
}
.header-menu-btn:hover, .header-action:hover { background: var(--primary-light); color: var(--primary); }
.header-action.location-action i { color: var(--primary); }
.header-cart .badge { background: var(--primary); }
#branchModal .branch-box { max-width: 32%; }
.hero-category .image { width: 76px; height: 76px; }
.hero-category .fallback .sf-svg { width: 25px; height: 25px; }

@media (max-width: 820px) {
  .navbar.restaurant-header {
    height: 68px;
    padding: 0 14px;
  }
  .restaurant-header .brand {
    position: static;
    transform: none;
    margin-right: auto;
  }
  .home-desktop-nav { display: none; }
  .restaurant-header .brand img { width: 38px; height: 38px; }
  .restaurant-header .brand .brand-name { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .header-left { display: none; }
  .header-right { flex: 0 0 auto; }
  .header-action.orders-action { display: none; }
  #cartBtnNav { display: inline-flex !important; }
  .header-action.location-action { width: 42px; padding: 0; }
  .header-action.location-action span { display: none; }
  .hero.restaurant-hero {
    min-height: auto;
    padding: 108px 14px 42px;
    background-position: center top;
  }
  .restaurant-hero h1 { font-size: clamp(2.35rem, 12vw, 3.8rem); }
  .restaurant-hero .hero-subtitle { font-size: .8rem; }
  .hero-location-search { margin: 22px auto 24px; padding-left: 15px; }
  .hero-location-search .locate-btn { display: none; }
  .hero-location-search .search-btn { padding: 0 17px; }
  .hero-categories { justify-content: flex-start; margin: 0 -14px; padding: 2px 18px 12px; }
  .hero-category { min-width: 76px; padding: 0; border-radius: 0; }
  .hero-category .image { width: 66px; height: 66px; }
  .hero-food-art { display: none; }
  .hero-float.f3,
  .hero-float.f4,
  .hero-float.f11,
  .hero-float.f12,
  .hero-float.f17,
  .hero-float.f18,
  .hero-float.f19,
  .hero-float.f20 { display: none; }
  .hero-float { color: rgba(255,255,255,.42); }
  .mobile-dock {
    width: min(370px, calc(100% - 26px));
    height: 60px;
    padding: 7px;
    display: flex;
    gap: 4px;
    border-radius: 20px;
    background: rgba(15,15,17,.94);
    border-color: rgba(255,255,255,.12);
    box-shadow: 0 18px 45px rgba(15,23,42,.28);
  }
  .mbb-item { flex: 1; color: #a9adb5; min-width: 42px; }
  .mbb-item.is-active { flex: 1.6; }
  .mbb-pill { width: 100%; height: 46px; min-width: 0; padding: 0; gap: 7px; flex-direction: row; border-radius: 15px; }
  .mbb-pill .sf-svg { width: 19px; height: 19px; }
  .mbb-text { display: none; font-size: .62rem; line-height: 1; }
  .mbb-item.is-active .mbb-pill { width: 100%; background: #2a2a2d; color: #fff; padding: 0 11px; }
  .mbb-item.is-active .mbb-text { display: block; font-size: .62rem; }
  .mbb-cart-item {
    flex: 1;
    height: 46px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #a9adb5;
    text-decoration: none;
  }
  .mbb-cart {
    width: 46px;
    height: 46px;
    margin: 0;
    border: 0;
    border-radius: 15px;
    background: transparent;
    color: inherit;
    font-size: 1rem;
    box-shadow: none;
  }
  .mbb-cart .sf-svg { width: 19px; height: 19px; }
  .mbb-cart-item > .mbb-text { display: none; }
  .cats-scroll { top: 74px; }
  .quick-view-btn { opacity: 1; transform: translate(-50%, 0); padding: 6px 10px; }
  .craving-grid { grid-template-columns: 1fr; }
  .craving-card { min-height: 175px; }
  .favorites-rail { grid-template-columns: repeat(5, 190px); margin-right: -16px; }
}
@media (max-width: 520px) {
  .location-modal-body { padding: 18px 16px max(20px, env(safe-area-inset-bottom)); overflow-y: auto; }
  .location-modal-head { padding: 22px 18px 18px; }
  .location-modal-head .pin { width: 40px; height: 40px; margin-bottom: 10px; }
  #branchModal { padding: 0; align-items: flex-end; }
  #branchModal .branch-box { width: 100%; max-width: none; max-height: 94dvh; border-radius: 26px 26px 0 0; overflow-y: auto; }
  .location-choice-list { max-height: 150px; }
  .fulfillment-tabs { position: sticky; top: 0; z-index: 3; }
  .modal-overlay { align-items: flex-end; padding: 0; }
  .modal-box {
    width: 100%;
    max-width: none;
    max-height: 92vh;
    border-radius: 24px 24px 0 0;
    padding: 10px 16px max(18px, env(safe-area-inset-bottom));
  }
  .modal-scroll .modal-img {
    width: calc(100% + 32px);
    height: 180px;
    margin: 4px -16px 14px;
    border-radius: 16px;
  }
  .modal-box::before {
    content: '';
    display: block;
    width: 42px;
    height: 4px;
    margin: 0 auto 8px;
    border-radius: 999px;
    background: #d7dce3;
  }
}
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1100;
  height: 36px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 8px;
  background: var(--primary);
  color: #fff;
}
.topbar-arrow {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.16);
  color: #fff;
  cursor: pointer;
}
.topbar-arrow:hover { background: rgba(255,255,255,.28); }
.topbar-viewport { flex: 1; min-width: 0; overflow: hidden; height: 100%; }
.topbar-track { display: flex; width: 100%; height: 100%; transition: transform .45s ease; }
.topbar-slide {
  flex: 0 0 100%;
  width: 100%;
  min-width: 0;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
body.has-topbar .sf-header { top: 36px; }
body.has-topbar .hero.restaurant-hero { padding-top: 166px; }
body.has-topbar .cats-scroll { top: 118px; }
.wa-float {
  position: fixed;
  right: 18px;
  bottom: 22px;
  z-index: 1200;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #25d366;
  color: #fff;
  font-size: 1.7rem;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(37,211,102,.38);
}
.wa-float:hover { transform: translateY(-2px); color: #fff; }
@media (max-width: 820px) {
  body.has-topbar .hero.restaurant-hero { padding-top: 144px; }
  body.has-topbar .cats-scroll { top: 110px; }
  .wa-float { right: 14px; bottom: 96px; }
}
.fk-chunk-loader {
  grid-column: 1 / -1;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 8px;
  color: #8a7464;
  font-size: 0.8rem;
  font-weight: 600;
}
.fk-chunk-loader.is-on { display: flex; }
.fk-chunk-loader .fk-spin {
  width: 18px; height: 18px;
  border: 2px solid #e5d5c8;
  border-top-color: var(--primary, #fd7211);
  border-radius: 50%;
  animation: fkSpin 0.7s linear infinite;
}
@keyframes fkSpin { to { transform: rotate(360deg); } }
.fk-load-more-btn {
  grid-column: 1 / -1;
  display: none;
  margin: 4px auto 12px;
  padding: 10px 22px;
  border: 1.5px solid #e5d5c8;
  background: #fff;
  color: #5c4a3d;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}
.fk-load-more-btn.is-on { display: inline-flex; align-items: center; gap: 8px; }
.fk-load-more-btn:hover { border-color: var(--primary, #fd7211); color: var(--primary, #fd7211); }
.fk-load-more-btn:disabled { opacity: 0.55; cursor: wait; }
