:root {
      --sidebar-w: 264px;
      --brand: #4f46e5;
      --brand-dark: #4338ca;
      --navy: #0f172a;
      --muted: #64748b;
      --border: #e5e7eb;
      --surface: #ffffff;
      --surface-soft: #f8fafc;
    }
    * { box-sizing: border-box; }
    html { scroll-behavior: smooth; }
    body {
      margin: 0; padding: 0; background: #f1f5f9;
      font-family: Inter, "Segoe UI", Roboto, -apple-system, BlinkMacSystemFont, sans-serif;
      color: #0f172a; -webkit-font-smoothing: antialiased;
      overflow-x: hidden;
      transition: padding-left .28s cubic-bezier(.4,0,.2,1);
    }
    body.sidebar-open { overflow: hidden; }

    @keyframes blink { 0%,49%{opacity:1;} 50%,99%{opacity:0;} 100%{opacity:1;} }
    .animate-blink { animation: blink 1.2s infinite; display: inline-block; }
    .animate-blink:hover { animation: none; opacity: 1; }

    /* Sidebar */
    #sidebar {
      position: fixed; top: 0; left: 0; z-index: 70;
      width: var(--sidebar-w); height: 100vh;
      display: flex; flex-direction: column;
      background: #ffffff;
      border-right: 1px solid rgba(226,232,240,.9);
      box-shadow: 8px 0 30px rgba(15,23,42,.06);
      transform: translateX(-100%);
      transition: transform .28s cubic-bezier(.4,0,.2,1);
      overflow: hidden;
    }
    #sidebar.open { transform: translateX(0); }
    .sidebar-scroll { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding-bottom: 8px; }
    .sidebar-scroll::-webkit-scrollbar { width: 5px; }
    .sidebar-scroll::-webkit-scrollbar-thumb { background: rgba(100,116,139,.22); border-radius: 999px; }

    .sidebar-brand {
      position: relative; display: flex; align-items: center; gap: 11px;
      padding: 15px 14px 14px; color: #fff; overflow: hidden; flex-shrink: 0;
      background: linear-gradient(135deg, #312e81 0%, #4338ca 55%, #4f46e5 140%);
    }
    .sidebar-brand::after {
      content: ""; position: absolute; left:0; right:0; bottom:0; height:3px;
      background: linear-gradient(90deg,#818cf8,#a78bfa,#818cf8);
    }
    .sidebar-brand .brand-mark {
      width:36px; height:36px; display:flex; align-items:center; justify-content:center;
      border-radius:10px; background: linear-gradient(135deg,#818cf8,#4f46e5);
      box-shadow: 0 6px 16px rgba(129,140,248,.35); flex-shrink:0; font-size:15px;
    }
    .sidebar-brand .brand-title { font-size:13.5px; font-weight:900; line-height:1.15; letter-spacing:-.2px; }
    .sidebar-brand .brand-sub { margin-top:2px; font-size:10px; color:rgba(255,255,255,.72); font-weight:600; }
    .sidebar-close-mobile {
      position:absolute; top:12px; right:12px; width:28px; height:28px;
      display:flex; align-items:center; justify-content:center;
      background:rgba(255,255,255,.15); border:1px solid rgba(255,255,255,.22);
      border-radius:7px; color:#fff; cursor:pointer; transition: background .15s ease;
    }
    .sidebar-close-mobile:hover { background: rgba(255,255,255,.28); }
    @media (min-width: 1024px) { .sidebar-close-mobile { display: none; } }

    .sidebar-nav { padding: 12px 12px 6px; }
    .sidebar-section-label {
      padding:4px 10px; margin-bottom:6px; font-size:10px; font-weight:800;
      letter-spacing:.12em; text-transform:uppercase; color:#94a3b8;
    }
    .sidebar-divider { height:1px; margin:12px 4px; background: linear-gradient(90deg,transparent,#e5eaf0,transparent); }
    .sidebar-link {
      position:relative; display:flex; align-items:center; gap:11px;
      min-height:40px; padding:9px 12px; border-radius:10px;
      color:#1d1d1f; font-size:13px; font-weight:600; text-decoration:none;
      transition: background .18s ease, transform .18s ease, color .18s ease;
    }
    .sidebar-link:hover { background:#f1f5f9; transform:translateX(2px); }
    .sidebar-link:active { transform: scale(.98); }
    .sidebar-link i { width:18px; flex-shrink:0; text-align:center; color:#64748b; font-size:14px; }
    .sidebar-link .label { flex:1; min-width:0; }
    .sidebar-link .badge {
      flex-shrink:0; padding:2px 7px; border-radius:6px; font-size:9px; font-weight:800;
      background:#eff6ff; color:#1d4ed8;
    }
    .sidebar-link .badge.hot { background:#fff7ed; color:#c2410c; }
    .sidebar-link.active { background: linear-gradient(135deg,#eef2ff 0%,#f5f3ff 100%); color:#4338ca; font-weight:800; }
    .sidebar-link.active i { color:#4338ca; }
    .sidebar-link.active::before {
      content:""; position:absolute; left:-12px; top:8px; bottom:8px; width:4px;
      border-radius: 0 4px 4px 0; background: linear-gradient(180deg,#818cf8,#4f46e5);
    }
    .sidebar-footer {
      flex-shrink:0; padding:12px; border-top:1px solid #eef2f6;
      background: linear-gradient(180deg,#ffffff,#f8fafc);
    }
    .sidebar-help-card {
      display:block; padding:11px 12px; border-radius:10px;
      background: linear-gradient(135deg,#4f46e5,#312e81); color:#fff;
      text-decoration:none; transition: transform .18s ease, box-shadow .18s ease;
    }
    .sidebar-help-card:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(79,70,229,.28); }
    .sidebar-help-card .help-title { display:flex; align-items:center; gap:7px; font-size:12.5px; font-weight:900; }
    .sidebar-help-card .help-sub { margin-top:3px; font-size:10.5px; color:rgba(255,255,255,.78); line-height:1.4; }

    #sidebar-overlay {
      position: fixed; inset: 0; z-index: 65;
      background: rgba(15,23,42,.45);
      backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
      opacity: 0; pointer-events: none; transition: opacity .25s ease;
    }
    #sidebar-overlay.active { opacity: 1; pointer-events: auto; }
    @media (min-width: 1024px) {
      body { padding-left: var(--sidebar-w); }
      #sidebar { transform: translateX(0); }
      #sidebar-overlay { display: none; }
    }

    .app-shell { max-width: 1280px; margin: 0 auto; padding: 0 16px 100px; }

    .site-header {
      position: sticky; top: 0; z-index: 50;
      display: flex; align-items: center; gap: 12px;
      padding: 10px 14px; margin: 0 -16px 14px;
      background: rgba(255,255,255,.92);
      backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
      border-bottom: 1px solid rgba(226,232,240,.9);
      box-shadow: 0 2px 12px rgba(15,23,42,.04);
    }
    .header-menu-btn {
      width:40px; height:40px; display:flex; align-items:center; justify-content:center;
      background: linear-gradient(135deg,#4f46e5,#312e81);
      border:none; border-radius:11px; color:#fff; cursor:pointer; flex-shrink:0;
      box-shadow: 0 6px 18px rgba(79,70,229,.25);
      transition: transform .18s ease, box-shadow .18s ease;
    }
    .header-menu-btn:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(79,70,229,.32); }
    .header-menu-btn:active { transform: scale(.96); }
    @media (min-width: 1024px) { .header-menu-btn { display: none; } }

    .header-brand { display:flex; align-items:center; gap:10px; min-width:0; flex:1; }
    .header-brand .mark {
      width:34px; height:34px; display:flex; align-items:center; justify-content:center;
      border-radius:10px; background: linear-gradient(135deg,#818cf8,#4f46e5);
      color:#fff; font-size:14px; flex-shrink:0; box-shadow: 0 4px 12px rgba(129,140,248,.30);
    }
    .header-brand .text { min-width: 0; }
    .header-brand .title {
      font-size:14px; font-weight:900;
      background: linear-gradient(90deg,#4f46e5,#7c3aed);
      -webkit-background-clip: text; background-clip: text; color: transparent;
      line-height: 1.15; letter-spacing: -.2px;
    }
    .header-brand .sub { font-size:10px; color: var(--muted); margin-top:1px; font-weight:600; }

    .header-actions { display:flex; gap:6px; flex-shrink:0; }
    .header-chip {
      display:inline-flex; align-items:center; gap:5px;
      padding:7px 10px; border-radius:999px; font-size:11px; font-weight:700;
      text-decoration:none; border:1px solid;
      transition: transform .18s ease, background .18s ease;
      white-space: nowrap;
    }
    .header-chip:hover { transform: translateY(-1px); }
    .chip-indigo  { color:#4338ca; background:#eef2ff; border-color:#c7d2fe; }
    .chip-indigo:hover  { background:#e0e7ff; }
    .chip-emerald { color:#047857; background:#ecfdf5; border-color:#a7f3d0; }
    .chip-emerald:hover { background:#d1fae5; }
    .chip-sky     { color:#0369a1; background:#f0f9ff; border-color:#bae6fd; }
    .chip-sky:hover     { background:#e0f2fe; }
    @media (max-width: 640px) {
      .header-chip .chip-text { display: none; }
      .header-chip { padding: 8px 10px; }
    }

    .subnav {
      background: linear-gradient(90deg, rgba(238,242,255,.9), rgba(245,243,255,.9));
      border: 1px solid #e0e7ff; border-radius: 14px; margin-bottom: 14px;
    }
    .subnav-inner {
      display:flex; justify-content:center; align-items:center;
      gap:20px; padding:10px 16px; flex-wrap:wrap;
    }
    .subnav a {
      display:inline-flex; align-items:center; gap:7px;
      font-size:13px; font-weight:600; color:#4338ca; text-decoration:none;
      transition: color .15s ease;
    }
    .subnav a:hover { color:#312e81; }
    .subnav a i { transition: transform .2s ease; }
    .subnav a:hover i { transform: scale(1.15); }

    .playstore-banner {
      background: linear-gradient(90deg, rgba(79,70,229,.08), rgba(124,58,237,.08), rgba(16,185,129,.08));
      border: 1px solid rgba(129,140,248,.25);
      border-radius: 14px; padding: 14px 16px; margin-bottom: 18px; text-align: center;
    }

    .tabs-grid {
      display:grid; grid-template-columns: repeat(3, minmax(0,1fr));
      gap:10px; padding-bottom:16px; margin-bottom:24px; border-bottom:1px solid var(--border);
    }
    @media (min-width: 768px) { .tabs-grid { grid-template-columns: repeat(6, minmax(0,1fr)); } }

    .pill {
      display:inline-flex; align-items:center; justify-content:center; gap:7px;
      padding:10px 12px; border-radius:999px; font-size:12px; font-weight:700;
      text-decoration:none; color:#fff;
      transition: transform .15s ease, box-shadow .15s ease;
      white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
      box-shadow: 0 4px 12px rgba(15,23,42,.08);
    }
    .pill:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(15,23,42,.14); }

    /* Validity chips */
    .validity-chip {
      transition: all 0.15s ease; cursor: pointer; user-select: none;
      border: 1px solid #e2e8f0; background: white; border-radius: 40px;
      padding: 0.4rem 0.9rem; font-size: 0.72rem; font-weight: 700; color: #334155;
      display: inline-flex; align-items: center; gap: 0.35rem;
      box-shadow: 0 1px 2px rgba(0,0,0,0.02); white-space: nowrap;
    }
    .validity-chip:hover { background: #f8fafc; border-color: #cbd5e1; transform: translateY(-1px); }
    .validity-chip.active {
      background: #4f46e5; border-color: #4f46e5; color: white;
      box-shadow: 0 4px 10px -2px rgba(79,70,229,0.3);
    }
    .validity-chip i { font-size: 0.65rem; color: #64748b; }
    .validity-chip.active i { color: white; }

    .validity-filter[data-accent="emerald"] .validity-chip.active { background:#059669; border-color:#059669; box-shadow:0 4px 10px -2px rgba(5,150,105,.35); }
    .validity-filter[data-accent="sky"]     .validity-chip.active { background:#0284c7; border-color:#0284c7; box-shadow:0 4px 10px -2px rgba(2,132,199,.35); }
    .validity-filter[data-accent="purple"]  .validity-chip.active { background:#7c3aed; border-color:#7c3aed; box-shadow:0 4px 10px -2px rgba(124,58,237,.35); }
    .validity-filter[data-accent="amber"]   .validity-chip.active { background:#d97706; border-color:#d97706; box-shadow:0 4px 10px -2px rgba(217,119,6,.35); }
    .validity-filter[data-accent="rose"]    .validity-chip.active { background:#e11d48; border-color:#e11d48; box-shadow:0 4px 10px -2px rgba(225,29,72,.35); }

    .bundle-grid-scroll { scroll-margin-top: 100px; }
    .product-card { transition: transform .22s ease, box-shadow .22s ease; }

    #checkoutModal { backdrop-filter: blur(4px); }

    .toast-notification { transition: opacity .25s ease, transform .25s ease; }
    .toast-notification.show { opacity: 1; pointer-events: auto; transform: translate(-50%, -6px); }

    .back-btn { animation: backPulse 1.6s infinite; }
    @keyframes backPulse {
      0%,100% { border-color:#c7d2fe; box-shadow: 0 0 0 rgba(99,102,241,0); }
      50%     { border-color:#4f46e5; box-shadow: 0 0 12px rgba(99,102,241,.45); }
    }
    .back-btn:hover { animation-play-state: paused; }

    .bottom-nav {
      position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
      background: rgba(255,255,255,.95);
      backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
      border-top: 1px solid var(--border);
      box-shadow: 0 -4px 16px rgba(15,23,42,.06);
    }
    @media (min-width: 1024px) {
      .bottom-nav { display: none; }
      .app-shell { padding-bottom: 40px; }
    }
    .bottom-item {
      flex:1; display:flex; flex-direction:column; align-items:center; gap:3px;
      padding:8px 4px; background:none; border:none;
      font-size:10px; font-weight:700; cursor:pointer;
      transition: transform .15s ease;
    }
    .bottom-item:active { transform: scale(.94); }
    .bottom-item i { font-size: 18px; }

    .scroll-top-btn {
      position: fixed; bottom: 84px; right: 16px; z-index: 55;
      width:44px; height:44px; display:flex; align-items:center; justify-content:center;
      border-radius:50%; background: linear-gradient(135deg,#4f46e5,#312e81);
      color:#fff; border:none;
      box-shadow: 0 8px 22px rgba(79,70,229,.30);
      cursor:pointer; transition: transform .18s ease, box-shadow .18s ease;
    }
    .scroll-top-btn:hover { transform: translateY(-2px) scale(1.04); box-shadow: 0 12px 28px rgba(79,70,229,.36); }
    @media (min-width: 1024px) { .scroll-top-btn { bottom: 24px; right: 24px; } }

    .tab-content { display: none; }
    .tab-content.active-tab-content { display: block; animation: fadeIn .3s ease; }
    @keyframes fadeIn { from { opacity:0; transform: translateY(6px); } to { opacity:1; transform: translateY(0); } }

.bingwa-whatsapp-float {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 99999;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    padding: 11px 16px;
    background: #128C4A;
    color: #ffffff;
    text-decoration: none;

    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;

    border-radius: 30px;
    border: 1px solid rgba(255,255,255,.25);
    box-shadow: 0 4px 14px rgba(0,0,0,.20);

    transition: background .2s ease, transform .2s ease;
}

.bingwa-whatsapp-float:hover {
    background: #075E36;
    color: #ffffff;
    transform: translateY(-2px);
}

.bingwa-whatsapp-float svg {
    flex-shrink: 0;
}

/* Compact layout on mobile phones */
@media (max-width: 480px) {
    .bingwa-whatsapp-float {
        top: 10px;
        right: 10px;
        padding: 9px 12px;
        gap: 6px;
        font-size: 11px;
    }

    .bingwa-whatsapp-float svg {
        width: 19px;
        height: 19px;
    }
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    .bingwa-whatsapp-float {
        transition: none;
    }
}

/* =========================================================
   BINGWA SOKONI — MODERN PRODUCT CATALOGUE POLISH
   ========================================================= */
:root {
  --catalog-ink: #172033;
  --catalog-muted: #64748b;
}
body { background: #f5f7fb; }
.app-shell { max-width: 1440px; }
.product-card {
  min-width: 0;
  background: #fff !important;
  border-width: 1px !important;
  border-color: #e7eaf2 !important;
  box-shadow: 0 3px 14px rgba(15,23,42,.045);
}
.product-card:hover {
  border-color: #c7d2fe !important;
  box-shadow: 0 14px 30px rgba(30,41,59,.10);
}
.product-card .text-gray-800 { color: var(--catalog-ink); }
.product-card .validity-label,
.product-card span[class*="rounded-full"] { letter-spacing: .01em; }
.product-card .mt-auto { width: 100%; }
.product-card button,
.product-card a { min-height: 39px; }
.special-product-card { border-color: #f4d7a2 !important; }
.bundle-grid-scroll { align-items: stretch; }
.tabs-grid {
  gap: 8px;
  padding: 12px;
  border: 1px solid #e7eaf2;
  border-radius: 18px;
  background: rgba(255,255,255,.88);
  box-shadow: 0 4px 16px rgba(15,23,42,.035);
}
.pill {
  min-height: 42px;
  padding: 9px 10px;
  font-size: 11px;
  box-shadow: none;
}
.pill:hover { box-shadow: 0 5px 12px rgba(15,23,42,.12); }
.validity-filter {
  max-width: 100%;
  padding: 3px 0;
}
.validity-chip {
  padding: 7px 11px;
  font-size: 11px;
  border-color: #e2e8f0;
}
.site-header { border-radius: 0 0 16px 16px; }
.subnav { box-shadow: 0 3px 12px rgba(15,23,42,.035); }
.tab-content > div:first-child h2 { letter-spacing: -.035em; }
@media (max-width: 639px) {
  .app-shell { padding-left: 10px; padding-right: 10px; }
  .site-header { margin-left: -10px; margin-right: -10px; padding: 9px 10px; }
  .product-card { border-radius: 15px; }
  .product-card > div { padding: 11px !important; }
  .product-card h3 { font-size: 12px !important; line-height: 1.35 !important; }
  .product-card .text-xl,
  .product-card .text-2xl { font-size: 18px !important; }
  .product-card .text-sm { font-size: 10px; }
  .product-card .text-xs { font-size: 9px; }
  .product-card button,
  .product-card a { min-height: 36px; padding: 8px 7px; }
  .product-card .mt-4 { margin-top: 11px; }
  .tabs-grid { padding: 8px; gap: 7px; }
  .pill { min-height: 39px; font-size: 10px; padding: 8px 5px; gap: 5px; }
  .validity-filter { overflow-x: auto; flex-wrap: nowrap !important; padding-bottom: 7px; }
  .validity-chip { flex: 0 0 auto; }
}
@media (min-width: 640px) {
  .product-card > div { min-height: 100%; }
}


/* Simple bundle selector: classic radio options, not promotional product cards. */
.bundle-option { min-height: 64px; }
.bundle-option:has(.bundle-radio:checked) {
  border-color: #6366f1;
  background: #eef2ff;
  box-shadow: 0 0 0 1px rgba(99,102,241,.12);
}
.bundle-radio { accent-color: #4f46e5; }
.bundle-radio:disabled { cursor: not-allowed; opacity: .45; }
@media (max-width: 480px) {
  .bundle-option { gap: 8px; min-height: 60px; padding: 9px; }
  .bundle-option > label { gap: 8px; }
  .bundle-option > label > span { min-width: 0; }
  .bundle-option button { padding: 7px 10px; }
}


/* Keep the labelled Share and Gift actions visible on phones. */
.bundle-extra-actions { flex-basis: 100%; }
.bundle-extra-actions > button,
.bundle-extra-actions > a { text-decoration: none; white-space: nowrap; }
@media (min-width: 640px) {
  .bundle-extra-actions { flex-basis: auto; }
}
@media (max-width: 480px) {
  .bundle-option { row-gap: 8px; }
  .bundle-extra-actions { margin-top: 2px; }
  .bundle-extra-actions > button,
  .bundle-extra-actions > a { min-width: 0; padding-left: 9px; padding-right: 9px; }
}


/* Modern checkout bottom sheet: retains hidden/flex classes used by home.js. */
.checkout-backdrop {
  padding: 12px 10px max(12px, env(safe-area-inset-bottom));
  transition: opacity .22s ease;
}
.checkout-backdrop:not(.hidden) { display: flex; }
.checkout-sheet {
  padding-bottom: 0;
  width: min(100%, 390px);
  max-height: 78dvh;
  border-radius: 22px;
  animation: checkoutSheetIn .28s cubic-bezier(.2,.8,.2,1) both;
}
@keyframes checkoutSheetIn {
  from { opacity: .65; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}
#checkoutForm input:not([type="hidden"]):not([readonly]),
#checkoutForm select,
#checkoutForm textarea {
  width: 100%;
  max-width: 100%;
  min-height: 39px;
  border: 1px solid #dbe2ee;
  border-radius: 9px;
  padding: 8px 10px;
  background: #fff;
  color: #172033;
  font-size: 14px;
}
#checkoutForm input:focus,
#checkoutForm select:focus,
#checkoutForm textarea:focus {
  outline: 2px solid rgba(99,102,241,.18);
  border-color: #818cf8;
}
@media (min-width: 640px) {
  .checkout-sheet { animation-name: checkoutDialogIn; }
  @keyframes checkoutDialogIn {
    from { opacity: 0; transform: translateY(12px) scale(.985); }
    to { opacity: 1; transform: translateY(0) scale(1); }
  }
}
@media (prefers-reduced-motion: reduce) {
  .checkout-sheet { animation: none; }
}

/* Final bundle-row emphasis overrides */
.bundle-option .bundle-name { font-weight: 900 !important; color: #0f172a; }
.bundle-option .bundle-details { font-weight: 800 !important; color: #334155; }
.bundle-option .bundle-price { font-weight: 900 !important; }
.bundle-option .bundle-details .line-through { font-weight: 600; }
