* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #f7f7f4;
  --surface: #ffffff;
  --text: #20231f;
  --muted: #6b7069;
  --border: #e5e7e1;
  --primary: #232a23;
  --soft: #f0f2ed;
  --shadow: 0 14px 40px rgba(25, 30, 25, 0.1);
  --radius: 20px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.container {
  width: min(1150px, calc(100% - 28px));
  margin: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(247, 247, 244, 0.95);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

.navbar {
  min-height: 68px;
  padding-top: 14px;
  padding-bottom: 14px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
}

.navbar-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Brand: logo + small "verified" badge, mirrors the reference header */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  min-width: 0;
}

.brand-name {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.brand-name b {
  color: #55a630;
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 999px;
  background: #fff6da;
  border: 1px solid #f0d98c;
  color: #8a6d1a;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.brand-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #55a630;
}

/* Center search bar */
.navbar-search {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
  max-width: 480px;
  margin: 0 auto;
  width: 100%;
}

.navbar-search-icon {
  position: absolute;
  left: 14px;
  font-size: 0.9rem;
  opacity: 0.55;
  pointer-events: none;
}

.navbar-search-input {
  width: 100%;
  padding: 11px 14px 11px 38px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  outline: none;
  font-size: 0.9rem;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.navbar-search-input:focus {
  border-color: #55a630;
  box-shadow: 0 0 0 3px rgba(85, 166, 48, 0.14);
}

/* Right-hand tools: nav links, language switch, theme toggle */
.navbar-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-self: end;
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: var(--soft);
  border: 1px solid var(--border);
}

.nav-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  text-decoration: none;
  color: var(--text);
  padding: 8px 13px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 700;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

.nav-pill:hover {
  background: var(--surface);
  box-shadow: 0 3px 10px rgba(20, 25, 20, 0.08);
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.navbar-actions .language-switcher {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: var(--soft);
  border: 1px solid var(--border);
  box-shadow: none;
}

.navbar-actions .lang-btn {
  border: 0;
  background: transparent;
  padding: 7px 11px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
  font-size: 0.78rem;
  color: var(--muted);
}

.navbar-actions .lang-btn.active {
  background: var(--primary);
  color: #fff;
}

.theme-toggle {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  font-size: 1rem;
}

.theme-toggle:hover {
  background: var(--soft);
}

/* Hamburger toggle for small screens */
.menu-toggle {
  display: none;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  margin-left: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-direction: column;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Floating cart button — bottom-left, always reachable on thumb */
.floating-cart-btn {
  position: fixed;
  left: max(18px, env(safe-area-inset-left));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 120;
  width: 58px;
  height: 58px;
  border: 0;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 30px rgba(20, 25, 20, 0.28);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.floating-cart-btn:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 16px 36px rgba(20, 25, 20, 0.32);
}

.floating-cart-btn:active {
  transform: scale(0.94);
}

.floating-cart-icon {
  font-size: 1.5rem;
  line-height: 1;
}

.cart-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  padding: 0 6px;
  border-radius: 999px;
  background: #e0483e;
  color: white;
  font-size: 0.72rem;
  font-weight: 800;
  border: 2px solid var(--bg);
}

.hero {
  padding: 70px 0 45px;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 8px;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.13em;
  font-weight: 800;
  color: var(--muted);
}

.hero h1 {
  font-size: clamp(2.5rem, 7vw, 5rem);
  letter-spacing: -0.055em;
}

.hero p {
  max-width: 620px;
  margin-top: 16px;
  color: var(--muted);
  line-height: 1.6;
}

.products-section {
  padding: 35px 0 80px;
}

.section-heading h2 {
  font-size: 2rem;
}

.filter-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 22px 0;
}

.filter-btn {
  border: 1px solid var(--border);
  background: white;
  padding: 10px 15px;
  border-radius: 999px;
  font-weight: 700;
}

.filter-btn.active {
  background: var(--primary);
  color: white;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.product-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: white;
  border: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(20, 25, 20, 0.05);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-image {
  height: 190px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-size: 4rem;
  background: var(--soft);
}

.product-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.product-title-row h3 {
  font-size: 1.05rem;
  min-width: 0;
  overflow-wrap: anywhere;
}

.product-price {
  font-weight: 800;
  white-space: nowrap;
  flex-shrink: 0;
}

.product-desc {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.product-rule {
  margin-top: 12px;
  background: var(--soft);
  padding: 9px 10px;
  border-radius: 10px;
  font-size: 0.78rem;
  font-weight: 700;
}

.quantity-row {
  display: flex;
  gap: 10px;
  margin-top: auto;
  padding-top: 15px;
}

.quantity-control {
  display: grid;
  grid-template-columns: 35px 50px 35px;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.quantity-control button {
  border: 0;
  background: var(--soft);
  font-weight: 800;
}

.quantity-control input {
  border: 0;
  outline: none;
  width: 100%;
  text-align: center;
  font-weight: 700;
}

.add-btn {
  width: 100%;
  min-height: 48px;
  padding: 10px 8px;
  border: 0;
  border-radius: 12px;
  background: var(--primary);
  color: white;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.25;
  white-space: normal;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 100;
  height: 100dvh;
  width: min(440px, 100%);
  display: flex;
  flex-direction: column;
  background: white;
  transform: translateX(100%);
  transition: 0.3s ease;
  box-shadow: -20px 0 50px rgba(20, 25, 20, 0.12);
}

.cart-drawer.open {
  transform: translateX(0);
}

.cart-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  padding: 20px;
  border-bottom: 1px solid var(--border);
}

.icon-btn {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: white;
  font-size: 1.5rem;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 18px;
  display: grid;
  align-content: start;
  gap: 12px;
}

.cart-item {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
}

.cart-item-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.cart-item small {
  color: var(--muted);
}

.cart-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
}

.cart-qty {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-qty button {
  width: 30px;
  height: 30px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--soft);
  font-weight: 800;
}

.remove-btn {
  border: 0;
  background: transparent;
  color: #b42318;
  font-weight: 700;
}

.cart-footer {
  padding: 18px;
  border-top: 1px solid var(--border);
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
  font-size: 1.05rem;
}

.name-field {
  display: grid;
  gap: 7px;
  margin-bottom: 12px;
}

.name-field label {
  font-size: 0.88rem;
  font-weight: 700;
}

.name-field input {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 13px;
  outline: none;
}

.whatsapp-btn {
  width: 100%;
  min-height: 50px;
  border: 0;
  border-radius: 12px;
  background: #25d366;
  color: #102b19;
  font-weight: 800;
}

.overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(10, 12, 10, 0.42);
  opacity: 0;
  visibility: hidden;
  transition: 0.2s ease;
}

.overlay.show {
  opacity: 1;
  visibility: visible;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 25px;
  z-index: 150;
  transform: translate(-50%, 15px);
  background: var(--primary);
  color: white;
  padding: 11px 16px;
  border-radius: 10px;
  opacity: 0;
  visibility: hidden;
  transition: 0.2s ease;
  font-size: 0.9rem;
}

.toast.show {
  transform: translate(-50%, 0);
  opacity: 1;
  visibility: visible;
}

.empty-state {
  padding: 20px;
  background: var(--soft);
  color: var(--muted);
  text-align: center;
  border-radius: 12px;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: white;
}

.footer-content {
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
}

.footer-content strong {
  color: var(--text);
}

@media (max-width: 800px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

  .hero {
    padding-top: 50px;
  }

  .quantity-row {
    flex-direction: column;
  }

  .quantity-control {
    grid-template-columns: 1fr 60px 1fr;
    min-height: 42px;
  }

  .add-btn {
    min-height: 42px;
  }

  .footer-content {
    flex-direction: column;
  }
}

.product-search-wrap {
  margin: 18px 0 4px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  max-width: 940px;
}
.product-search {
  width: 100%;
  flex: 1 1 300px;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  outline: none;
}
.level-filter {
  flex: 0 0 180px;
  padding: 12px 36px 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  outline: none;
  cursor: pointer;
}
.sort-filter {
  flex-basis: 210px;
}
.product-search:focus,
.level-filter:focus { border-color: #999f95; }
.empty-products {
  grid-column: 1 / -1;
  padding: 32px 16px;
  text-align: center;
  color: var(--muted);
}
@media (max-width: 700px) {
  .product-search-wrap {
    flex-direction: column;
    align-items: stretch;
  }
  .product-search,
  .level-filter,
  .sort-filter {
    width: 100%;
    flex: none;
  }
}

.product-image {
  position: relative;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 18px;
  background: #f5f7f2;
}

.product-image .image-fallback {
  width: 100%;
  height: 100%;
  place-items: center;
  font-size: 4rem;
}

/* Ukuran gambar katalog: ikon produk dibuat konsisten dan tidak memenuhi card */
.product-image {
  height: 135px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  background: #f5f7f2;
}

.product-image img {
  width: 92px;
  height: 92px;
  max-width: 72%;
  max-height: 72%;
  object-fit: contain;
  padding: 0;
  background: transparent;
}

.product-image .image-fallback {
  width: 92px;
  height: 92px;
  font-size: 3rem;
  align-items: center;
  justify-content: center;
}

@media (max-width: 600px) {
  .product-image {
    height: 125px;
  }

  .product-image img {
    width: 86px;
    height: 86px;
  }
}

.food-pricing-note {
  margin: 16px 0 4px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  font-size: .92rem;
  line-height: 1.5;
}


/* ARIANII HAYDAY responsive enhancements */
html { scroll-behavior: smooth; }
* { box-sizing: border-box; }
img { max-width: 100%; height: auto; }
.site-tools { max-width: 1200px; margin: 0 auto; padding: 10px 18px 0; display:flex; justify-content:flex-end; }
.language-switcher { display:inline-flex; gap:4px; padding:4px; border-radius:999px; background:#fff; box-shadow:0 4px 18px rgba(0,0,0,.08); }
.lang-btn { border:0; background:transparent; padding:8px 12px; border-radius:999px; cursor:pointer; font-weight:700; }
.lang-btn.active { background:#eef7df; }
.social-section { padding:36px 18px; margin-top:32px; background:rgba(255,255,255,.72); }
.social-inner { max-width:1200px; margin:auto; display:grid; grid-template-columns:minmax(220px,.8fr) 1.2fr; gap:28px; align-items:center; }
.social-kicker { font-weight:800; }
.social-inner h2 { margin:.3rem 0; }
.social-inner p { margin:0; opacity:.78; }
.social-links { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.social-links a { display:flex; align-items:center; gap:8px; min-height:48px; padding:12px 14px; background:#fff; border-radius:14px; text-decoration:none; color:inherit; box-shadow:0 4px 16px rgba(0,0,0,.07); transition:.18s ease; }
.social-links a:hover { transform:translateY(-2px); box-shadow:0 7px 22px rgba(0,0,0,.11); }

/* Prevent mobile overflow */
body { overflow-x:hidden; }
input, select, button { max-width:100%; }
.product-card { min-width:0; }
.product-image img { object-fit:contain; }

@media (max-width: 768px) {
  .site-tools { padding:8px 12px 0; justify-content:center; }
  .language-switcher { width:100%; max-width:260px; }
  .lang-btn { flex:1; min-height:42px; }
  .container, main, .main-content { width:100%; max-width:100%; padding-left:12px; padding-right:12px; }
  .product-grid { grid-template-columns:repeat(2,minmax(0,1fr)) !important; gap:10px !important; }
  .product-card { border-radius:14px; }
  .product-body { padding:10px !important; }
  .product-title-row { align-items:flex-start; gap:5px; }
  .product-title-row h3 { font-size:14px; line-height:1.25; overflow-wrap:anywhere; }
  .product-price, .product-desc, .product-rule { font-size:11px !important; line-height:1.35; }
  .quantity-row { gap:6px; flex-wrap:wrap; }
  .quantity-control { width:100%; display:grid; grid-template-columns:40px 1fr 40px; }
  .quantity-control button { min-height:40px; }
  .quantity-control input { width:100% !important; min-width:0; text-align:center; }
  .add-to-cart, .add-cart-btn, .product-card button[type="button"] { min-height:42px; }
  .add-btn { font-size:11.5px !important; padding:8px 4px !important; white-space:normal !important; line-height:1.25; }
  .search-filter, .filters, .toolbar { display:grid !important; grid-template-columns:1fr !important; gap:8px !important; }
  .cart-drawer { width:min(92vw,420px) !important; max-width:92vw !important; }
  .social-section { padding:28px 14px; }
  .social-inner { grid-template-columns:1fr; gap:18px; }
  .social-links { grid-template-columns:1fr; }
}

@media (max-width: 390px) {
  .product-grid { grid-template-columns:1fr !important; }
  .product-title-row h3 { font-size:15px; }
}


/* Premium top social navigation */
.top-social-bar {
  position: relative;
  z-index: 50;
  width: 100%;
  padding: 9px 16px;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(35,75,35,.10);
  box-shadow: 0 5px 22px rgba(35,75,35,.07);
}
.top-social-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.top-social-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .06em;
}
.online-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
  background: #55a630;
  box-shadow: 0 0 0 4px rgba(85,166,48,.13);
}
.top-social-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  min-width: 0;
}
.social-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  padding: 7px 11px;
  border-radius: 999px;
  color: #344536;
  background: #f6f9f2;
  border: 1px solid rgba(52,69,54,.08);
  text-decoration: none;
  font-size: 11px;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.social-pill span { font-size: 14px; line-height: 1; }
.social-pill:hover {
  transform: translateY(-2px);
  background: #fff;
  box-shadow: 0 7px 18px rgba(35,75,35,.12);
}
.social-pill.whatsapp {
  background: #edf8e9;
  border-color: rgba(85,166,48,.18);
}

@media (max-width: 768px) {
  .top-social-bar {
    padding: 8px 10px;
  }
  .top-social-inner {
    display: block;
  }
  .top-social-brand {
    justify-content: center;
    margin-bottom: 7px;
    font-size: 10px;
  }
  .top-social-links {
    justify-content: flex-start;
    overflow-x: auto;
    padding: 1px 1px 5px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .top-social-links::-webkit-scrollbar { display: none; }
  .social-pill {
    flex: 0 0 auto;
    min-height: 36px;
    padding: 8px 11px;
  }
}

@media (max-width: 430px) {
  .social-pill b { display: none; }
  .social-pill {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
  }
  .social-pill span { font-size: 17px; }
  .top-social-links {
    justify-content: center;
    overflow: visible;
    gap: 9px;
  }
}


/* Cart Food total fix */
.cart-total-box {
  margin: 12px 0 16px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #f7fbef;
  border: 1px solid rgba(85,166,48,.18);
}
.cart-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.cart-total-row span {
  font-weight: 800;
}
.cart-total-row strong {
  font-size: 20px;
  white-space: nowrap;
}
.cart-badas-box {
  background: #fffaf0;
  border-color: rgba(214, 160, 40, .35);
}
.cart-note {
  margin: 10px 0 0;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(240, 190, 60, .18);
  border: 1px dashed rgba(190, 140, 20, .5);
  color: #7a5a0a;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}
.cart-food-qty {
  margin-top: 5px;
  font-size: 12px;
  opacity: .72;
}
@media (max-width: 480px) {
  .cart-total-box {
    padding: 12px 14px;
  }
  .cart-total-row strong {
    font-size: 18px;
  }
}

/* ============================================================
   New header: responsive behaviour
   ============================================================ */

/* Tablet: keep everything on one row but tighten spacing */
@media (max-width: 1000px) {
  .navbar {
    grid-template-columns: auto 1fr auto;
    gap: 12px;
  }
  .navbar-search {
    max-width: none;
  }
  .nav-pill span:last-child {
    display: none;
  }
  .nav-pill {
    padding: 8px 10px;
  }
}

/* Mobile: stack into rows, search full width, tools collapse behind hamburger */
@media (max-width: 760px) {
  .navbar {
    grid-template-columns: 1fr;
    gap: 10px;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .navbar-row {
    justify-content: space-between;
  }

  .brand-name {
    font-size: 1.02rem;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .navbar-search {
    max-width: none;
    order: 3;
  }

  .navbar-search-input {
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .navbar-tools {
    order: 4;
    justify-self: stretch;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.22s ease, opacity 0.18s ease;
  }

  .navbar-tools.open {
    max-height: 220px;
    opacity: 1;
    margin-top: 2px;
  }

  .navbar-links {
    background: transparent;
    border: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    overflow: hidden;
  }

  .nav-pill {
    justify-content: center;
    background: var(--soft);
    border: 1px solid var(--border);
    padding: 10px;
  }

  .nav-pill span:last-child {
    display: inline;
  }

  .navbar-actions {
    overflow: hidden;
    justify-content: space-between;
  }

  .navbar-actions .language-switcher {
    flex: 1;
  }

  .navbar-actions .lang-btn {
    flex: 1;
    text-align: center;
  }
}

@media (max-width: 380px) {
  .brand-badge span:last-child {
    display: none;
  }
  .brand-badge {
    padding: 4px 7px;
  }
}

/* Floating cart button: shrink slightly on very small screens */
@media (max-width: 420px) {
  .floating-cart-btn {
    width: 52px;
    height: 52px;
  }
  .floating-cart-icon {
    font-size: 1.3rem;
  }
}

/* ============================================================
   Dark mode
   ============================================================ */
html[data-theme="dark"] {
  --bg: #14170f;
  --surface: #1d2117;
  --text: #eef1e8;
  --muted: #a1a894;
  --border: #2b3024;
  --primary: #55a630;
  --soft: #232a1c;
  --shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
}

html[data-theme="dark"] .site-header,
html[data-theme="dark"] .top-social-bar {
  background: rgba(20, 23, 15, 0.92);
}

html[data-theme="dark"] .social-pill,
html[data-theme="dark"] .top-social-bar {
  color: var(--text);
}

html[data-theme="dark"] .social-pill {
  background: var(--soft);
  border-color: var(--border);
  color: var(--text);
}

html[data-theme="dark"] .site-footer,
html[data-theme="dark"] .product-card,
html[data-theme="dark"] .product-search,
html[data-theme="dark"] .level-filter,
html[data-theme="dark"] .navbar-search-input,
html[data-theme="dark"] .food-pricing-note,
html[data-theme="dark"] .name-field input,
html[data-theme="dark"] .filter-btn,
html[data-theme="dark"] .icon-btn,
html[data-theme="dark"] .cart-drawer {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}

html[data-theme="dark"] .filter-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

html[data-theme="dark"] .product-image,
html[data-theme="dark"] .product-image img {
  background: #262c1e;
}

html[data-theme="dark"] .cart-total-box {
  background: #1c2717;
  border-color: rgba(85, 166, 48, 0.28);
}

html[data-theme="dark"] .theme-toggle,
html[data-theme="dark"] .menu-toggle {
  background: var(--soft);
  border-color: var(--border);
  color: var(--text);
}


/* === Quantity control + add-to-cart layout fix === */
.quantity-row {
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
  gap: 10px;
  width: 100%;
}

.quantity-control {
  display: grid;
  grid-template-columns: 44px minmax(48px, 1fr) 44px;
  align-items: stretch;
  overflow: hidden;
  min-height: 48px;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--soft);
}

.quantity-control button,
.quantity-control input {
  min-width: 0;
  height: 100%;
  margin: 0;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  appearance: none;
  -webkit-appearance: none;
}

.quantity-control button {
  display: grid;
  place-items: center;
  padding: 0;
  background: var(--soft);
  cursor: pointer;
  font-size: 20px;
  font-weight: 900;
}

.quantity-control input {
  width: 100%;
  padding: 0 4px;
  text-align: center;
  background: var(--soft);
  font-size: 18px;
  font-weight: 900;
  color: inherit;
  border-left: 1px solid var(--border) !important;
  border-right: 1px solid var(--border) !important;
  -moz-appearance: textfield;
}

.quantity-control input::-webkit-outer-spin-button,
.quantity-control input::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

@media (max-width: 768px) {
  .quantity-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .quantity-control {
    width: 100%;
    grid-template-columns: 52px minmax(0, 1fr) 52px;
    min-height: 50px;
  }

  .add-btn {
    width: 100%;
    min-height: 50px;
  }
}

@media (max-width: 430px) {
  .quantity-control {
    grid-template-columns: 48px minmax(0, 1fr) 48px;
  }

  .quantity-control button,
  .quantity-control input {
    min-height: 48px;
  }
}


/* Clear all cart */
.cart-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.clear-cart-btn {
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid rgba(190, 50, 50, .18);
  border-radius: 10px;
  background: rgba(190, 50, 50, .07);
  color: #a32f2f;
  font-weight: 800;
  cursor: pointer;
}
.clear-cart-btn:hover {
  background: rgba(190, 50, 50, .12);
}
@media (max-width: 430px) {
  .clear-cart-btn {
    min-height: 38px;
    padding: 0 10px;
    font-size: 12px;
  }
}

html[data-theme="dark"] .cart-badas-box {
  background: #2a2412;
  border-color: rgba(214, 160, 40, .35);
}
html[data-theme="dark"] .cart-note {
  background: rgba(240, 190, 60, .12);
  color: #f0cf7a;
}
