/* =============================================================
   AsliDawa — Main stylesheet
   Mobile-first. Self-contained. Works without mobile.css.
   ============================================================= */

/* ---------- Design tokens ---------- */
:root {
  --teal: #0E7C7B;
  --teal-dark: #075957;
  --teal-soft: #E0F2F1;
  --saffron: #F77F00;
  --saffron-dark: #D96B00;
  --saffron-soft: #FFF1E0;
  --cream: #FFFBF5;
  --ink: #0F1F2E;
  --line: #EEF0F2;
  --line-dark: #E5E7EB;
  --muted: #6B7280;
  --green: #16A34A;
  --green-soft: #D1FAE5;
  --red: #DC2626;
  --red-soft: #FEE2E2;
  --shadow-sm: 0 1px 2px rgba(15,31,46,0.06);
  --shadow-md: 0 4px 12px -2px rgba(15,31,46,0.10);
  --shadow-lg: 0 10px 30px -8px rgba(15,31,46,0.15);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body {
  overflow-x: hidden;    /* prevent any horizontal scrollbar / cropping */
  max-width: 100%;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0; padding: 0 0 70px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  font-size: 15px; line-height: 1.5;
  color: var(--ink);
  background: var(--cream);
  width: 100%;
}
img { max-width: 100%; height: auto; }
img, svg { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; }
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4, h5 {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 12px;
  line-height: 1.2;
}
h1 { font-size: 26px; letter-spacing: -0.4px; }
h2 { font-size: 22px; }
h3 { font-size: 18px; }
h4 { font-size: 16px; }
p { margin: 0 0 12px; color: #374151; }
.lead { font-size: 14px; color: var(--muted); }

input, textarea, select {
  font-size: 16px;
  padding: 11px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff; color: var(--ink);
  outline: none;
  width: 100%;
  transition: border-color 0.15s, box-shadow 0.15s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(14,124,123,0.15);
}
textarea { resize: vertical; min-height: 80px; }
label { display: block; font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }

/* ---------- Layout ---------- */
.wrap {
  max-width: 1200px; margin: 0 auto;
  padding: 0 14px;
}

/* =============================================================
   MOBILE-FIRST DISPLAY DEFAULTS
   These elements visible by default on mobile; hidden on desktop
   below in the media query.
   ============================================================= */

.topbar { display: none; }          /* topbar hidden on mobile */
header .head-actions { display: none; }   /* desktop nav buttons hidden on mobile */
header .search { display: none; }   /* desktop search hidden (mobile uses .m-search-bar) */

/* =============================================================
   HEADER
   ============================================================= */
header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
  box-shadow: 0 1px 0 rgba(15,31,46,0.06);
}
header .wrap.head, header .head {
  display: flex; align-items: center;
  gap: 6px;
  padding: 10px 14px;
  max-width: 1200px; margin: 0 auto;
  box-sizing: border-box;
}
header .logo {
  display: flex; align-items: center; gap: 8px;
  text-decoration: none; flex-shrink: 0;
  margin-right: auto;
}
header .logo:hover { text-decoration: none; }
header .logo .mark {
  width: 34px; height: 34px;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
}
header .logo .mark svg { width: 18px; height: 18px; }
header .logo .name {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 19px; font-weight: 900;
  color: var(--ink); letter-spacing: -0.4px; line-height: 1;
}
header .logo .name span { color: var(--teal); }

/* =============================================================
   MOBILE ACTION ICONS (📞 🛒 ☰)
   Visible by default on mobile; hidden on desktop.
   ============================================================= */
.m-actions {
  display: flex; align-items: center; gap: 2px;
  flex-shrink: 0;
}
.m-iconbtn {
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: 0; padding: 0;
  border-radius: 10px;
  color: var(--ink);
  font-size: 19px; line-height: 1;
  text-decoration: none;
  position: relative;
  cursor: pointer;
}
.m-iconbtn:hover { background: var(--cream); text-decoration: none; }
.m-iconbtn:active { background: var(--line); }
.m-iconbtn .lbl {
  position: absolute; bottom: 2px; left: 50%;
  transform: translateX(-50%);
  font-size: 9px; color: var(--muted); font-weight: 600;
  letter-spacing: 0.2px;
}
.m-iconbtn { padding-bottom: 12px; }
.m-actions .cart-pill,
.m-actions .cart-badge {
  position: absolute; top: 2px; right: 4px;
  background: var(--saffron); color: #fff;
  font-size: 10px; font-weight: 800;
  min-width: 16px; height: 16px;
  border-radius: 8px; padding: 0 4px;
  display: inline-flex; align-items: center; justify-content: center;
  line-height: 1;
  margin-left: 0;
}

/* =============================================================
   MOBILE STICKY SEARCH BAR (below header)
   ============================================================= */
.m-search-bar {
  display: flex;
  position: sticky; top: 58px; z-index: 49;
  background: #fff;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
  gap: 8px;
}
.m-search-bar form {
  flex: 1; display: flex; align-items: center;
  background: var(--cream);
  border-radius: 22px;
  padding: 0 8px 0 14px;
  border: 1.5px solid transparent;
  transition: border-color 0.15s, background 0.15s;
}
.m-search-bar form:focus-within {
  background: #fff;
  border-color: var(--teal);
}
.m-search-bar form::before {
  content: "🔍"; font-size: 14px; margin-right: 6px; opacity: 0.6;
}
.m-search-bar input {
  flex: 1; border: 0; background: transparent;
  padding: 11px 0;
  font-size: 15px; min-width: 0;
}
.m-search-bar input:focus { box-shadow: none; }
.m-search-bar button {
  background: transparent; border: 0; cursor: pointer;
  padding: 6px 10px;
  font-size: 13px; color: var(--teal); font-weight: 700;
}

/* =============================================================
   MOBILE DRAWER MENU (slide out from left)
   ============================================================= */
.m-drawer-backdrop {
  position: fixed; inset: 0;
  background: rgba(15,31,46,0.5);
  opacity: 0; visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
  z-index: 9000;
}
.m-drawer-backdrop.open { opacity: 1; visibility: visible; }
.m-drawer {
  position: fixed;
  top: 0; left: -100%;
  width: 84%; max-width: 320px;
  height: 100vh;
  background: var(--cream);
  z-index: 9001;
  overflow-y: auto;
  overflow-x: hidden;
  transition: left 0.28s cubic-bezier(.18,.89,.32,1.05);
  box-shadow: 4px 0 24px -8px rgba(0,0,0,0.2);
  display: flex; flex-direction: column;
}
.m-drawer.open { left: 0; }
.m-drawer-header {
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  color: #fff;
  padding: 22px 20px 18px;
  position: relative;
}
.m-drawer-header .closebtn {
  position: absolute; top: 12px; right: 12px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  color: #fff;
  border: 0; font-size: 22px;
  display: inline-flex; align-items: center; justify-content: center;
  line-height: 1; cursor: pointer;
}
.m-drawer-header .avatar {
  width: 50px; height: 50px; border-radius: 50%;
  background: #FCBF49; color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 20px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  margin-bottom: 10px;
}
.m-drawer-header .uname {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800; font-size: 17px; line-height: 1.2;
}
.m-drawer-header .uextra {
  font-size: 12px; opacity: 0.85;
  margin-top: 3px; word-break: break-all;
}
.m-drawer-header .login-cta {
  display: inline-block; margin-top: 10px;
  background: #FCBF49; color: var(--ink);
  padding: 10px 18px; border-radius: 22px;
  font-weight: 800; font-size: 14px;
  text-decoration: none;
}
.m-drawer-section {
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.m-drawer-section:last-child { border-bottom: 0; }
.m-drawer-section .h {
  padding: 12px 20px 6px;
  font-size: 11px; letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #9CA3AF; font-weight: 700;
}
.m-drawer-section a {
  display: flex; align-items: center; gap: 14px;
  padding: 13px 20px;
  color: var(--ink); text-decoration: none;
  font-size: 15px; font-weight: 500;
  border: 0; background: transparent;
  width: 100%; text-align: left;
  font-family: inherit;
}
.m-drawer-section a:active { background: rgba(14,124,123,0.06); }
.m-drawer-section a .ico {
  width: 26px; font-size: 19px; text-align: center;
}
.m-drawer-section a .badge {
  margin-left: auto;
  background: var(--saffron); color: #fff;
  font-size: 11px; font-weight: 700;
  padding: 2px 9px; border-radius: 11px;
}

/* =============================================================
   CATEGORY STRIP (horizontal scroll on mobile)
   ============================================================= */
.cat-strip {
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}
.cat-strip-wrap {
  max-width: 1200px; margin: 0 auto;
  display: flex; gap: 6px;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  padding: 8px 14px;
  scrollbar-width: thin;
}
.cat-strip-wrap::-webkit-scrollbar { height: 4px; }
.cat-strip-wrap::-webkit-scrollbar-thumb { background: var(--line-dark); border-radius: 2px; }
.cat-strip-wrap a {
  flex-shrink: 0;
  background: #fff;
  border: 1.5px solid var(--line);
  padding: 7px 13px;
  border-radius: 22px;
  font-size: 13px; font-weight: 600;
  color: #374151; white-space: nowrap;
  text-decoration: none;
  transition: all 0.15s;
}
.cat-strip-wrap a:hover { border-color: var(--teal); color: var(--teal); text-decoration: none; }
.cat-strip-wrap a.active { background: var(--teal); border-color: var(--teal); color: #fff; }

/* =============================================================
   FLASH MESSAGES
   ============================================================= */
.flash {
  padding: 12px 16px; border-radius: 11px;
  font-size: 14px; font-weight: 500;
  margin: 14px 0;
  border-left: 4px solid;
}
.flash.success { background: var(--green-soft); border-color: var(--green); color: #065F46; }
.flash.error   { background: var(--red-soft);   border-color: var(--red);   color: #991B1B; }
.flash.info    { background: var(--saffron-soft); border-color: var(--saffron); color: #92400E; }

/* =============================================================
   BUTTONS
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 12px 22px;
  background: var(--teal); color: #fff;
  border: 0; border-radius: 11px;
  font-family: inherit; font-weight: 700; font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s;
  min-height: 44px;
  text-align: center;
}
.btn:hover { background: var(--teal-dark); color: #fff; text-decoration: none; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover { background: var(--teal-dark); color: #fff; }
.btn-saffron { background: var(--saffron); color: #fff; }
.btn-saffron:hover { background: var(--saffron-dark); color: #fff; }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #1a2c40; color: #fff; }
.btn-outline {
  background: #fff; color: var(--ink); border: 1.5px solid var(--line);
}
.btn-outline:hover { border-color: var(--teal); color: var(--teal); background: #fff; }
.btn-sm { padding: 8px 14px; font-size: 12px; min-height: 36px; border-radius: 9px; }

/* Ghost button (header desktop) */
.ghost-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 14px;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 11px;
  font-weight: 600; font-size: 13px;
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s;
}
.ghost-btn:hover { border-color: var(--teal); color: var(--teal); text-decoration: none; }
.call-btn { color: var(--teal); border-color: var(--teal); }
.cart-link { position: relative; }
.cart-pill {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--saffron); color: #fff;
  font-size: 11px; font-weight: 800;
  min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px; margin-left: 4px;
}
.upload-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 18px;
  background: var(--saffron); color: #fff;
  border-radius: 11px;
  font-weight: 700; font-size: 13px;
  text-decoration: none;
}
.upload-btn:hover { background: var(--saffron-dark); color: #fff; text-decoration: none; }

/* =============================================================
   FORMS
   ============================================================= */
.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
  max-width: 460px; margin: 22px auto;
  box-shadow: var(--shadow-md);
}
.form-card h1 { font-size: 22px; margin-bottom: 6px; }
.form-card .lead { margin-bottom: 18px; }
.field { margin-bottom: 14px; }
.alt { text-align: center; margin-top: 16px; font-size: 13px; color: var(--muted); }
.alt a { font-weight: 700; }

/* Quantity stepper */
.qty {
  display: inline-flex; align-items: center;
  border: 1.5px solid var(--line); border-radius: 11px;
  background: #fff;
}
.qty button {
  width: 38px; height: 42px;
  background: transparent; border: 0;
  font-size: 18px; font-weight: 700; color: var(--ink);
}
.qty button:hover { background: var(--cream); }
.qty input {
  width: 48px; text-align: center;
  border: 0; border-left: 1px solid var(--line); border-right: 1px solid var(--line);
  border-radius: 0; padding: 11px 0;
  font-weight: 700;
}
.qty input:focus { box-shadow: none; }
.qty-row {
  display: flex; align-items: center; gap: 10px;
  margin-top: 18px; flex-wrap: wrap;
}

/* Pincode checker */
.pincode-box {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 14px;
  margin-top: 18px;
}
.pincode-box label { margin-bottom: 8px; font-size: 13px; }
.pincode-input-row { display: flex; gap: 8px; }
.pincode-input-row input { flex: 1; }
.pincode-result {
  margin-top: 8px; padding: 8px 12px;
  border-radius: 9px; font-size: 13px; font-weight: 500;
}
.pincode-result.ok  { background: var(--green-soft); color: #065F46; }
.pincode-result.bad { background: var(--red-soft);   color: #991B1B; }

/* =============================================================
   HERO
   ============================================================= */
.hero {
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  color: #fff;
  padding: 32px 0 40px;
  position: relative; overflow: hidden;
}
.hero::before, .hero::after {
  content: ''; position: absolute;
  width: 300px; height: 300px; border-radius: 50%;
  background: rgba(255,255,255,0.06);
}
.hero::before { top: -120px; right: -80px; }
.hero::after { bottom: -150px; left: -100px; }
.hero .wrap.hero-grid,
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px; align-items: center;
  position: relative; z-index: 2;
}
.hero-grid > a { text-decoration: none; }
.hero-grid > a:hover { text-decoration: none; }
.hero h1 {
  font-size: 28px; color: #fff;
  letter-spacing: -0.8px; line-height: 1.15;
  margin-bottom: 10px;
}
.hero h1 .teal { color: #4FD1C5; }
.hero h1 .saffron { color: #FCBF49; }
.hero .sub {
  font-size: 14px; line-height: 1.55;
  color: rgba(255,255,255,0.95);
  margin-bottom: 16px;
}
.hero-search {
  display: flex; gap: 8px;
}
.hero-search input {
  flex: 1; padding: 13px 14px;
  border: 0; border-radius: 11px;
  font-size: 15px; background: #fff;
}
.hero-search button {
  background: var(--saffron); color: #fff;
  border: 0; padding: 13px 18px;
  border-radius: 11px;
  font-weight: 800; font-size: 14px;
  white-space: nowrap;
}
.hero-search button:hover { background: var(--saffron-dark); }
.hero-trust {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  margin-top: 14px;
}
.hero-trust > div {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 500;
  color: rgba(255,255,255,0.95);
  background: rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 8px 10px;
}
.hero-trust > div::before { content: '✓'; color: #4FD1C5; font-weight: 800; }
.hero-card {
  background: #fff;
  border-radius: 18px;
  padding: 20px;
  color: var(--ink);
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.3);
  display: none; /* hidden on mobile, shown on desktop */
}
.hero-card-inner { position: relative; }
.hero-carousel { overflow: hidden; position: relative; }
.hero-slides {
  display: flex;
  transition: transform 0.5s cubic-bezier(.18,.89,.32,1.05);
}
.hero-slide { flex: 0 0 100%; }
.hero-dots {
  position: absolute; bottom: 14px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 6px;
}
.hero-dots div {
  width: 8px; height: 8px;
  background: rgba(255,255,255,0.4);
  border-radius: 50%; cursor: pointer;
}
.hero-dots div.active { background: #fff; width: 20px; border-radius: 4px; }

/* =============================================================
   SECTIONS
   ============================================================= */
.section { padding: 28px 0; }
.section.white { background: #fff; }
.section h2 { font-size: 22px; }

.toolbar {
  display: flex; flex-direction: column;
  gap: 12px;
  padding: 14px 0;
}
.toolbar h1 { font-size: 22px; margin: 0; }
.toolbar .count { color: var(--muted); font-size: 13px; margin-top: 4px; }
.toolbar form {
  display: flex; gap: 8px;
}
.toolbar input { flex: 1; }
.toolbar select {
  padding: 10px 14px; border-radius: 10px; font-size: 14px;
  background: #fff;
}

/* =============================================================
   PRODUCT GRID — 2 columns on mobile, more on desktop
   ============================================================= */
.products {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 14px 0 24px;
}
.product {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform 0.15s, box-shadow 0.15s;
}
.product:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.product .image {
  position: relative;
  aspect-ratio: 1;
  background: #F0FDFA;     /* single soft teal — branded but subtle */
  display: flex; align-items: center; justify-content: center;
  font-size: 42px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.product .image-link {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none;
  color: inherit;
  font-size: inherit;
}
.product .image-link:hover { text-decoration: none; }
.product .name-link {
  text-decoration: none; color: inherit; display: block;
}
.product .name-link:hover { text-decoration: none; }
.product .name-link:hover .name { color: var(--teal); }
.product .image img.product-img {
  width: 100%; height: 100%; object-fit: contain;
}
.product .save-tag {
  position: absolute; top: 8px; left: 8px;
  background: var(--green); color: #fff;
  padding: 3px 7px; font-size: 10px; font-weight: 800;
  border-radius: 12px; letter-spacing: 0.2px;
}
.product .rx-tag {
  position: absolute; top: 8px; right: 38px;
  background: var(--saffron-soft); color: var(--saffron-dark);
  padding: 2px 6px; font-size: 10px; font-weight: 800;
  border-radius: 5px;
}
.product .wishlist-btn {
  position: absolute; top: 6px; right: 6px;
  width: 28px; height: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 14px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted);
}
.product .wishlist-btn:hover, .product .wishlist-btn.active {
  color: var(--red); border-color: var(--red);
}
.product .body { padding: 10px; flex: 1; display: flex; flex-direction: column; }
.product .name {
  font-weight: 700; font-size: 14px; color: var(--ink);
  line-height: 1.3;
}
.product .generic {
  font-size: 11px; color: var(--muted);
  margin-top: 2px; line-height: 1.3;
}
.product .brand-info {
  font-size: 11px; color: var(--muted);
  margin-top: 3px; font-style: italic;
}
.product .rating-row { margin-top: 6px; font-size: 11px; color: #F59E0B; }
.product .prices {
  margin-top: 6px;
  display: flex; align-items: baseline; gap: 5px;
}
.product .prices .price {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800; font-size: 16px; color: var(--teal);
}
.product .prices .branded {
  font-size: 11px; text-decoration: line-through; color: var(--muted);
}
.product .low-stock {
  font-size: 11px; color: var(--red); font-weight: 700; margin-top: 4px;
}
.product .actions {
  margin-top: auto; padding-top: 8px;
  display: flex; gap: 6px;
}
.product .actions .add {
  flex: 1; padding: 9px 0;
  background: var(--teal); color: #fff;
  border: 0; border-radius: 8px;
  font-weight: 700; font-size: 13px;
}
.product .actions .add:hover { background: var(--teal-dark); }
.product .actions .view {
  width: 38px; padding: 9px 0;
  background: #fff; color: var(--teal);
  border: 1.5px solid var(--teal); border-radius: 8px;
  font-size: 13px; font-weight: 700;
  text-decoration: none; text-align: center;
}

/* =============================================================
   PRODUCT DETAIL PAGE
   ============================================================= */
.detail-meta {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 12px; margin-top: 16px;
  padding: 14px; background: var(--cream);
  border-radius: 11px; font-size: 13px;
}
.detail-meta b {
  display: block; color: var(--muted); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.4px;
  margin-bottom: 2px; font-weight: 600;
}
.thumbs { display: flex; gap: 8px; margin-top: 10px; }
.thumb {
  width: 62px; height: 62px;
  background: #F0FDFA;
  border: 2px solid var(--line);
  border-radius: 9px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.thumb img { width: 100%; height: 100%; object-fit: contain; }
.thumb.active { border-color: var(--teal); }

.sticky-cta {
  position: fixed; bottom: 64px; left: 0; right: 0;
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 10px 14px;
  display: flex;
  align-items: center; justify-content: space-between; gap: 12px;
  z-index: 40;
  box-shadow: 0 -2px 14px -4px rgba(15,31,46,0.1);
}

/* =============================================================
   CART + CHECKOUT
   ============================================================= */
.cart-grid {
  display: grid; grid-template-columns: 1fr;
  gap: 18px;
  padding: 16px 0;
}
.cart-summary {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px;
}
.cart-summary h3 { font-size: 16px; margin-bottom: 12px; }
.summary-row {
  display: flex; justify-content: space-between;
  padding: 7px 0; font-size: 14px; color: #374151;
}
.summary-row.save { color: var(--green); font-weight: 700; }
.summary-row.total {
  border-top: 2px solid var(--ink);
  margin-top: 10px; padding-top: 12px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800; font-size: 17px; color: var(--ink);
}

/* =============================================================
   ACCOUNT PAGE
   ============================================================= */
.acct-shell {
  display: grid; grid-template-columns: 1fr;
  gap: 14px;
  padding: 18px 0 30px;
}
.acct-side {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 8px;
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}
.acct-side > div:first-child { grid-column: 1 / -1; }
.acct-side a {
  display: block;
  padding: 10px 12px;
  border-radius: 9px;
  font-size: 13px; font-weight: 500;
  color: var(--ink); text-decoration: none;
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
}
.acct-side a:hover { background: var(--cream); }
.acct-side a.active { background: var(--teal); color: #fff; border-color: var(--teal); }

.kpi-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px; margin-bottom: 16px;
}
.kpi {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 12px 14px;
}
.kpi .lbl {
  font-size: 11px; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.5px;
  font-weight: 600; margin-bottom: 4px;
}
.kpi .num {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800; font-size: 22px;
  color: var(--ink); line-height: 1;
}

.tbl { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tbl table {
  width: 100%; border-collapse: collapse;
  font-size: 13px;
}
.tbl th {
  text-align: left; padding: 10px 8px;
  background: var(--cream);
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.3px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.tbl td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.tbl tr:hover { background: var(--cream); }

.status-chip {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 14px;
  font-size: 11px; font-weight: 700;
  color: #fff; letter-spacing: 0.3px;
  text-transform: uppercase;
}

/* =============================================================
   ADMIN PANEL
   ============================================================= */
body.admin { padding-bottom: 0; }
.sidebar {
  position: fixed; top: 0; left: -100%;
  width: 240px; height: 100vh;
  background: #0F1F2E;
  color: #94A3B8;
  display: flex; flex-direction: column;
  padding: 16px 0; z-index: 40;
  overflow-y: auto;
  transition: left 0.25s;
}
.sidebar.open { left: 0; }
.sidebar .logo {
  display: flex; align-items: center; gap: 10px;
  padding: 0 18px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 14px;
  text-decoration: none;
}
.sidebar .logo .mark {
  width: 32px; height: 32px;
  background: var(--teal); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
}
.sidebar .logo .mark svg { width: 18px; height: 18px; }
.sidebar .logo .name {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800; font-size: 17px; color: #fff;
  letter-spacing: -0.3px;
}
.sidebar .logo .name span { color: var(--teal); }
.sidebar .kicker {
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.2px;
  padding: 12px 18px 6px;
  color: #475569;
}
.sidebar nav { display: flex; flex-direction: column; }
.sidebar nav a {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 18px;
  font-size: 13px; font-weight: 500;
  color: #CBD5E1; text-decoration: none;
}
.sidebar nav a:hover {
  background: rgba(255,255,255,0.05);
  color: #fff; text-decoration: none;
}
.sidebar nav a.active {
  background: rgba(14,124,123,0.2);
  color: #fff;
  border-left: 3px solid var(--teal);
  padding-left: 15px;
}
.sidebar .admin-user {
  display: block; padding: 10px 18px;
  color: #94A3B8; font-size: 12px;
  text-decoration: none;
}
.sidebar .admin-user:hover { color: #fff; text-decoration: none; }

.admin-toggle {
  display: flex; align-items: center; justify-content: center;
  position: fixed; top: 12px; left: 12px;
  z-index: 50;
  width: 40px; height: 40px;
  background: var(--ink); color: #fff;
  border: 0; border-radius: 9px;
  font-size: 20px;
}
.sidebar-backdrop {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.4); z-index: 39;
}
.sidebar.open ~ .sidebar-backdrop,
.sidebar-backdrop.open { display: block; }

.admin-main {
  margin-left: 0;
  padding: 60px 14px 20px;
  min-height: 100vh;
}
.admin-main h1 { font-size: 22px; margin-bottom: 4px; }
.admin-main .lead { margin-bottom: 16px; }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px;
  margin-bottom: 14px;
}
.card h3 { font-size: 16px; margin-bottom: 12px; }
.admin-grid-2 { display: grid; grid-template-columns: 1fr; gap: 14px; }

/* =============================================================
   FOOTER
   ============================================================= */
footer {
  background: var(--ink);
  color: #94A3B8;
  padding: 36px 0 24px;
  margin-top: 40px;
}
.foot-grid {
  display: grid; grid-template-columns: 1fr;
  gap: 24px;
}
.foot-brand {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 900; font-size: 22px;
  color: #fff; letter-spacing: -0.4px;
  margin-bottom: 6px;
}
.foot-brand span { color: var(--teal); }
.foot-tag {
  font-size: 11px; font-weight: 700;
  color: var(--saffron); letter-spacing: 3px;
  margin-bottom: 12px;
}
footer p { font-size: 13px; color: #94A3B8; line-height: 1.6; margin-bottom: 12px; }
.foot-contact { font-size: 13px; color: #CBD5E1; line-height: 1.8; }
.foot-contact a { color: #fff; }
footer h4 { color: #fff; font-size: 14px; margin-bottom: 10px; font-weight: 700; }
footer a {
  display: block; color: #94A3B8;
  text-decoration: none; font-size: 13px;
  padding: 4px 0;
}
footer a:hover { color: #fff; text-decoration: none; }
.legal {
  margin-top: 24px; padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 11px; color: #64748B; line-height: 1.7;
}
.newsletter-block {
  background: linear-gradient(135deg, var(--saffron), var(--saffron-dark));
  border-radius: var(--radius-lg);
  padding: 22px;
  text-align: center;
  color: #fff;
  margin-bottom: 22px;
}
.newsletter-block h3 { color: #fff; font-size: 18px; margin-bottom: 6px; }
.newsletter-block form {
  display: flex; flex-direction: column; gap: 8px;
  max-width: 380px; margin: 12px auto 0;
}
.newsletter-block input {
  flex: 1; padding: 11px 14px;
  border: 0; border-radius: 10px;
  font-size: 14px;
}
.newsletter-block button {
  background: var(--ink); color: #fff;
  border: 0; padding: 12px 22px;
  border-radius: 10px;
  font-weight: 700;
}

/* =============================================================
   BOTTOM NAV (mobile)
   ============================================================= */
.bottom-nav {
  display: flex;
  position: fixed; bottom: 0; left: 0; right: 0;
  background: #fff;
  border-top: 1px solid var(--line);
  z-index: 30;
  padding: 6px 0 calc(6px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -2px 14px -4px rgba(15,31,46,0.08);
}
.bottom-nav a {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 6px 4px;
  font-size: 10px; font-weight: 600;
  color: var(--muted); text-decoration: none;
  position: relative;
  min-height: 50px;
}
.bottom-nav a.active { color: var(--teal); }
.bn-ico { font-size: 22px; }
.bn-badge {
  position: absolute; top: 4px; right: calc(50% - 22px);
  background: var(--saffron); color: #fff;
  font-size: 9px; font-weight: 800;
  min-width: 16px; height: 16px;
  border-radius: 8px; padding: 0 4px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 2px #fff;
}

/* =============================================================
   FLOATING BUTTONS
   ============================================================= */
.wa-float {
  position: fixed;
  bottom: calc(80px + env(safe-area-inset-bottom, 0px));
  right: 14px;
  background: #25D366; color: #fff;
  padding: 11px 16px;
  border-radius: 26px;
  font-weight: 700; font-size: 13px;
  text-decoration: none;
  box-shadow: 0 8px 24px -6px rgba(37,211,102,0.5);
  z-index: 35;
  display: flex; align-items: center; gap: 6px;
}
.wa-float:hover { color: #fff; text-decoration: none; }

.back-to-top {
  position: fixed;
  bottom: calc(140px + env(safe-area-inset-bottom, 0px));
  right: 14px;
  width: 42px; height: 42px;
  background: var(--ink); color: #fff;
  border: 0; border-radius: 50%;
  font-size: 18px;
  box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden;
  transition: opacity 0.15s, visibility 0.15s;
  z-index: 34;
}
.back-to-top.show { opacity: 1; visibility: visible; }

/* =============================================================
   TOAST + PWA install banner
   ============================================================= */
.toast {
  position: fixed; bottom: 100px; left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: #fff;
  padding: 12px 20px; border-radius: 11px;
  font-size: 14px; font-weight: 500;
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden;
  transition: all 0.25s;
  z-index: 60;
  max-width: 90vw;
}
.toast.show { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.toast.error { background: var(--red); }

.pwa-install {
  position: fixed; bottom: -200px; left: 14px; right: 14px;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 14px;
  display: flex; align-items: center; gap: 12px;
  max-width: 380px; margin: 0 auto;
  transition: bottom 0.3s;
  z-index: 55;
}
.pwa-install.show { bottom: calc(90px + env(safe-area-inset-bottom, 0px)); }
.pwa-install .ico { font-size: 28px; flex-shrink: 0; }
.pwa-install b { display: block; font-weight: 800; font-size: 14px; color: var(--ink); }
.pwa-install span { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.pwa-install button {
  background: var(--teal); color: #fff;
  border: 0; padding: 8px 14px;
  border-radius: 9px;
  font-weight: 700; font-size: 13px;
}
.pwa-install .close {
  background: transparent;
  border: 0; color: var(--muted);
  font-size: 22px;
  padding: 0 6px;
}

/* =============================================================
   SEARCH RESULTS DROPDOWN (header search)
   ============================================================= */
.search-results {
  position: absolute; top: 100%; left: 0; right: 0; margin-top: 4px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  max-height: 460px; overflow-y: auto;
  z-index: 100;
  display: none;
}
.search-results.show { display: block; }
.sr-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; border-bottom: 1px solid var(--line);
  text-decoration: none; color: var(--ink);
}
.sr-item:last-of-type { border-bottom: 0; }
.sr-item:hover, .sr-item.active { background: var(--cream); text-decoration: none; }
.sr-ico {
  width: 40px; height: 40px;
  background: #F0FDFA; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0; overflow: hidden;
}
.sr-ico img { width: 100%; height: 100%; object-fit: cover; }
.sr-body { flex: 1; min-width: 0; }
.sr-name { font-weight: 700; font-size: 14px; }
.sr-meta { font-size: 12px; color: var(--muted); margin-top: 1px; }
.sr-price {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800; color: var(--teal); font-size: 15px;
  text-align: right; white-space: nowrap;
}
.sr-price small { display: block; font-size: 11px; color: var(--muted); text-decoration: line-through; font-weight: 500; }
.sr-save { display: block; font-size: 10px; color: var(--green); font-weight: 700; margin-top: 1px; }
.sr-loading, .sr-empty { padding: 16px; text-align: center; color: var(--muted); font-size: 13px; }
.sr-footer {
  display: block; padding: 12px 14px; text-align: center;
  background: var(--cream); font-weight: 700; font-size: 13px;
  border-top: 1px solid var(--line);
}

/* =============================================================
   ====   DESKTOP OVERRIDES (≥ 768px)   ====
   This is where mobile-first turns into desktop styles.
   ============================================================= */
@media (min-width: 768px) {

  body { padding-bottom: 0; }

  h1 { font-size: 36px; letter-spacing: -0.5px; }
  h2 { font-size: 28px; letter-spacing: -0.3px; }
  h3 { font-size: 20px; }

  .wrap { padding: 0 24px; }

  /* === Show desktop elements === */
  .topbar { display: block; }
  header .head-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
  header .search { display: flex; }

  /* === Hide mobile-only elements === */
  .m-actions { display: none; }
  .m-search-bar { display: none; }
  .m-drawer { display: none; }
  .m-drawer-backdrop { display: none; }
  .bottom-nav { display: none; }
  .sticky-cta { display: none; }
  .admin-toggle { display: none; }

  /* === Topbar === */
  .topbar {
    background: var(--ink); color: #fff;
    font-size: 12.5px; padding: 8px 0;
  }
  .topbar .wrap {
    display: flex; justify-content: space-between; align-items: center;
    gap: 14px; flex-wrap: wrap;
  }
  .topbar a { color: #fff; }

  /* === Header desktop === */
  header .wrap.head, header .head {
    padding: 14px 24px;
    gap: 22px;
  }
  header .logo .mark { width: 40px; height: 40px; }
  header .logo .mark svg { width: 22px; height: 22px; }
  header .logo .name { font-size: 22px; }

  /* Desktop search inside header */
  header .search {
    flex: 1; max-width: 540px;
    position: relative;
    align-items: stretch;
    background: var(--cream);
    border: 1.5px solid var(--line);
    border-radius: 12px;
  }
  header .search:focus-within { border-color: var(--teal); background: #fff; }
  header .search input {
    flex: 1; border: 0; background: transparent;
    padding: 12px 16px;
  }
  header .search input:focus { box-shadow: none; }
  header .search button {
    background: var(--teal); color: #fff; border: 0;
    padding: 0 22px;
    font-weight: 700;
    border-top-right-radius: 11px;
    border-bottom-right-radius: 11px;
  }
  header .search button:hover { background: var(--teal-dark); }

  /* === Hero desktop === */
  .hero { padding: 56px 0 64px; }
  .hero .wrap.hero-grid,
  .hero-grid { grid-template-columns: 1.2fr 1fr; gap: 40px; }
  .hero h1 { font-size: 48px; letter-spacing: -1.2px; }
  .hero .sub { font-size: 16px; margin-bottom: 22px; }
  .hero-search { max-width: 520px; }
  .hero-search input { padding: 16px 18px; font-size: 15px; }
  .hero-search button { padding: 0 24px; }
  .hero-trust { display: flex; gap: 18px; margin-top: 22px; flex-wrap: wrap; }
  .hero-trust > div { background: transparent; padding: 0; font-size: 13px; }
  .hero-card { display: block; }

  /* === Sections === */
  .section { padding: 50px 0; }
  .section h2 { font-size: 30px; }

  /* === Toolbar === */
  .toolbar { flex-direction: row; justify-content: space-between; align-items: end; padding: 18px 0; }
  .toolbar h1 { font-size: 30px; }
  .toolbar form { width: auto; gap: 10px; }

  /* === Products grid === */
  .products {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 18px;
    padding: 18px 0 32px;
  }
  .product { border-radius: 18px; }
  .product .image { font-size: 56px; }
  .product .save-tag { padding: 4px 9px; font-size: 11px; }
  .product .rx-tag { padding: 3px 8px; }
  .product .wishlist-btn { width: 32px; height: 32px; font-size: 16px; }
  .product .body { padding: 14px; }
  .product .name { min-height: 36px; }
  .product .prices .price { font-size: 18px; }
  .product .actions .add { padding: 10px; font-size: 13px; }
  .product .actions .view { width: auto; padding: 10px 14px; }

  /* === Cart === */
  .cart-grid { grid-template-columns: 1.6fr 1fr; gap: 30px; padding: 24px 0; }
  .cart-summary { padding: 22px; position: sticky; top: 90px; }
  .cart-summary h3 { font-size: 17px; }

  /* === Account === */
  .acct-shell { grid-template-columns: 240px 1fr; gap: 24px; padding: 24px 0 40px; }
  .acct-side {
    display: block;
    height: fit-content;
    position: sticky; top: 90px;
  }
  .acct-side > div:first-child {
    padding: 10px 14px 14px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 8px;
  }
  .acct-side a {
    text-align: left;
    padding: 11px 14px;
    background: transparent;
    border: 0;
    border-radius: 9px;
  }

  .kpi-row { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 14px; }
  .kpi .num { font-size: 26px; }

  /* === Form card === */
  .form-card { padding: 30px; margin: 30px auto; }
  .form-card h1 { font-size: 26px; }

  /* === Admin === */
  .sidebar { left: 0; }
  .admin-main { margin-left: 240px; padding: 24px 30px; }
  .admin-main h1 { font-size: 26px; }
  .admin-grid-2 { grid-template-columns: 1fr 1fr; gap: 18px; }
  .card { padding: 22px; margin-bottom: 18px; }

  /* === Footer === */
  footer { padding: 50px 0 30px; margin-top: 60px; }
  .foot-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
  .newsletter-block { padding: 30px; margin-bottom: 0; }
  .newsletter-block h3 { font-size: 22px; }
  .newsletter-block form { flex-direction: row; max-width: 480px; }

  /* === Floating buttons === */
  .wa-float { bottom: 24px; right: 24px; padding: 12px 18px; font-size: 14px; }
  .back-to-top { bottom: 90px; right: 24px; }

  /* === Toast === */
  .toast { bottom: 30px; }

  /* === PWA install banner === */
  .pwa-install { left: auto; right: 24px; max-width: 380px; }
  .pwa-install.show { bottom: 24px; }

  /* === Product detail === */
  .sticky-cta { display: none; }    /* not needed on desktop */
}

/* =============================================================
   ====   LARGE DESKTOP (≥ 1024px) — minor enhancements   ====
   ============================================================= */
@media (min-width: 1024px) {
  h1 { font-size: 40px; }
  .hero h1 { font-size: 52px; }
  .hero-grid { gap: 50px; }
  .section { padding: 60px 0; }
}

/* =============================================================
   ====   PRINT (invoice / order receipt)   ====
   ============================================================= */
@media print {
  header, footer, .bottom-nav, .wa-float, .back-to-top,
  .toast, .pwa-install, .sticky-cta, .sidebar, .admin-toggle,
  .m-actions, .m-search-bar, .m-drawer, .topbar, .cat-strip {
    display: none !important;
  }
  body { background: #fff; padding: 0; }
  .admin-main { margin-left: 0; padding: 0; }
}

/* =============================================================
   MISSING COMPONENT STYLES (called from PHP templates)
   ============================================================= */

/* ----- Hero "eyebrow" tag above H1 ----- */
.eyebrow {
  display: inline-block;
  background: rgba(255,255,255,0.18);
  color: #fff;
  padding: 6px 14px;
  border-radius: 22px;
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.3px;
  margin-bottom: 14px;
}

/* ----- Hero card "Today's Asli Swap" preview ----- */
.hero-card .save-badge {
  display: inline-block;
  background: linear-gradient(135deg, #F77F00, #FCBF49);
  color: #fff;
  padding: 6px 12px; border-radius: 8px;
  font-size: 11px; font-weight: 800; letter-spacing: 1px;
  margin-bottom: 14px;
}
.compare-row {
  display: flex; align-items: center; gap: 10px;
  margin: 14px 0;
}
.pill-card {
  flex: 1; padding: 14px;
  border-radius: 14px;
  border: 1.5px solid var(--line);
  background: #fff;
  text-align: center;
}
.pill-card.branded { background: #F8FAFC; }
.pill-card.asli {
  background: var(--teal-soft); border-color: var(--teal);
}
.pill-card .label {
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
  color: var(--muted); margin-bottom: 4px;
}
.pill-card.asli .label { color: var(--teal); }
.pill-card .name {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700; font-size: 13px; line-height: 1.3;
  color: var(--ink); margin-bottom: 6px; min-height: 32px;
}
.pill-card .price {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800; font-size: 18px;
}
.pill-card.branded .price { color: #94A3B8; text-decoration: line-through; }
.pill-card.asli .price { color: var(--teal); }
.compare-row .arrow {
  color: var(--saffron); font-size: 20px; font-weight: 800;
  flex-shrink: 0;
}
.savings-row {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--teal); color: #fff;
  padding: 12px 16px; border-radius: 12px;
  font-weight: 700; font-size: 14px;
  margin-top: 6px;
}
.savings-row .big {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 18px; font-weight: 800;
}

/* ----- Section header (kicker + h2) ----- */
.section-head {
  text-align: center;
  margin-bottom: 26px;
}
.section-head .kicker {
  display: inline-block;
  font-size: 11px; font-weight: 800;
  color: var(--teal); letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.section-head h2 {
  font-size: 22px; line-height: 1.2;
}

/* ----- Category grid (homepage "Shop by Category") ----- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
}
.cat-tile {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 8px;
  padding: 18px 10px;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 16px;
  text-decoration: none;
  color: var(--ink);
  transition: all 0.15s;
  text-align: center;
}
.cat-tile:hover {
  border-color: var(--teal);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}
.cat-tile .ico {
  font-size: 32px; line-height: 1;
}
.cat-tile .nm {
  font-size: 13px; font-weight: 700;
  color: var(--ink);
}

/* Hide extra categories on mobile when collapsed (>9th tile) */
@media (max-width: 767px) {
  .cat-grid.cat-collapsed .cat-extra { display: none; }
}
/* On desktop, always show all categories — hide the toggle button */
@media (min-width: 768px) {
  .cat-viewall { display: none; }
  .cat-grid .cat-extra { display: flex; }
}

/* ----- Asli Promise grid ----- */
.promise-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.promise-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
  text-align: center;
}
.promise-card .icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  color: #fff;
  border-radius: 50%;
  font-size: 26px; font-weight: 800;
  margin-bottom: 14px;
  box-shadow: 0 8px 20px -4px rgba(14,124,123,0.4);
}
.promise-card h3 {
  font-size: 17px; margin-bottom: 8px;
}
.promise-card p {
  font-size: 14px; color: var(--muted); line-height: 1.6; margin: 0;
}

/* ----- Product detail page ----- */
.product-detail {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  padding: 20px 0;
}
.image-big {
  position: relative;
  background: #F0FDFA;     /* same single soft teal as listing thumbnails */
  border: 1.5px solid var(--line);
  border-radius: 20px;
  aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.image-big img { max-width: 80%; max-height: 80%; object-fit: contain; }
.image-big .emoji-fallback { font-size: 100px; }
.image-big .sku {
  position: absolute; bottom: 14px; left: 14px;
  background: rgba(255,255,255,0.9);
  padding: 4px 10px; border-radius: 6px;
  font-size: 11px; font-weight: 700; color: var(--muted);
  font-family: 'Menlo', 'Consolas', monospace;
}
.image-big .wishlist-btn.lg {
  position: absolute; top: 14px; right: 14px;
  width: 44px; height: 44px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 20px;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted);
}
.image-big .wishlist-btn.lg.active { color: var(--red); }
.pname {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 24px; font-weight: 800;
  line-height: 1.2; letter-spacing: -0.4px;
  margin-top: 14px; margin-bottom: 6px;
}
.detail-prices {
  display: flex; align-items: baseline;
  gap: 12px; flex-wrap: wrap;
  padding: 14px 0;
}
.detail-prices .big {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 32px; font-weight: 800; color: var(--teal);
}
.detail-prices .strike {
  font-size: 18px; color: var(--muted);
  text-decoration: line-through;
}
.detail-prices .save {
  display: inline-block;
  background: var(--green-soft); color: #065F46;
  padding: 4px 10px;
  border-radius: 16px;
  font-size: 12px; font-weight: 800;
}

/* ----- Trust stack (under product image on detail page) ----- */
.trust-stack {
  display: flex; flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}
.trust-item {
  display: flex; align-items: center; gap: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  transition: border-color 0.15s, transform 0.15s;
}
.trust-item:hover {
  border-color: var(--teal);
  transform: translateY(-1px);
}
.trust-item .ti-ico {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 20px; font-weight: 800;
  flex-shrink: 0;
  box-shadow: 0 4px 12px -3px rgba(0,0,0,0.15);
}
.trust-item .ti-body { min-width: 0; }
.trust-item .ti-body b {
  display: block;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px; font-weight: 800;
  color: var(--ink);
  margin-bottom: 2px;
  line-height: 1.3;
}
.trust-item .ti-body small {
  display: block;
  font-size: 12px; color: var(--muted);
  line-height: 1.4;
}
.trust-item .ti-body small a { color: var(--teal); font-weight: 700; }

/* Hide the entire trust-stack on mobile.
   It exists to fill the empty space next to the product image on desktop;
   on phones it just adds vertical scroll noise above the price/CTA, so we
   drop it entirely. The same trust badges live in the footer + Asli Promise
   page so the message is still communicated elsewhere. */
@media (max-width: 768px) {
  .trust-stack { display: none !important; }
}

.live-viewers .live-dot {
  display: inline-block;
  width: 8px; height: 8px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(22,163,74,0.6);
  animation: livePulse 1.4s infinite;
}
@keyframes livePulse {
  0%   { box-shadow: 0 0 0 0 rgba(22,163,74,0.6); }
  70%  { box-shadow: 0 0 0 10px rgba(22,163,74,0); }
  100% { box-shadow: 0 0 0 0 rgba(22,163,74,0); }
}

/* ----- OTP input boxes (login, signup, 2FA verify) ----- */
.otp-input {
  display: flex; gap: 8px;
  justify-content: center;
  margin: 12px 0 18px;
}
.otp-input input[type="tel"],
.otp-input input[type="text"],
.otp-input input {
  width: 44px !important;
  height: 54px !important;
  text-align: center !important;
  font-size: 22px !important;
  font-weight: 800;
  padding: 0;
  border: 1.5px solid var(--line);
  border-radius: 11px;
  background: #fff;
  flex: 0 0 auto;
}
.otp-input input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(14,124,123,0.15);
}

/* ----- Newsletter footer block (cleaner) ----- */
.newsletter-block button { white-space: nowrap; }

/* =============================================================
   DESKTOP OVERRIDES for newly added components
   ============================================================= */
@media (min-width: 768px) {
  .section-head h2 { font-size: 30px; }
  .cat-grid { grid-template-columns: repeat(5, 1fr); gap: 14px; }
  .cat-tile { padding: 22px 12px; }
  .cat-tile .ico { font-size: 40px; }
  .cat-tile .nm { font-size: 14px; }
  .promise-grid { grid-template-columns: repeat(3, 1fr); gap: 22px; }
  .promise-card { padding: 28px; }
  .promise-card h3 { font-size: 19px; }
  .product-detail { grid-template-columns: 1fr 1fr; gap: 40px; padding: 30px 0; }
  .pname { font-size: 32px; margin-top: 0; }
  .detail-prices .big { font-size: 38px; }
  .hero-card .compare-row { gap: 14px; }
  .pill-card .name { font-size: 14px; }
  .pill-card .price { font-size: 20px; }
}

@media (min-width: 1024px) {
  .cat-grid { grid-template-columns: repeat(10, 1fr); }
  .cat-tile { padding: 18px 8px; }
  .cat-tile .ico { font-size: 32px; }
  .cat-tile .nm { font-size: 12px; }
}

/* =============================================================
   MOBILE — address form + cards (and other admin grid fallbacks)
   ============================================================= */

/* Stack the 2-column address fields on small screens */
@media (max-width: 600px) {
  .acct-main .card form > div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }
  /* Make action buttons wrap nicely */
  .acct-main .card .btn-sm {
    flex: 1 1 auto;
    min-width: 100px;
  }
  /* Form-card on tiny screens */
  .form-card { padding: 18px; margin: 14px auto; }
}

/* Checkbox alignment fix */
input[type="checkbox"] { width: auto !important; }
input[type="radio"]    { width: auto !important; }

/* =============================================================
   SHARE BUTTON + FALLBACK SHARE SHEET
   Native nav.share() on mobile; otherwise opens a bottom-sheet
   modal with WhatsApp / Telegram / FB / Twitter / Email / SMS /
   Copy-link actions.
   ============================================================= */
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--cream);
  color: var(--teal);
  border: 1.5px solid var(--line);
  font-weight: 700;
  font-size: 13px;
  padding: 7px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.share-btn:hover {
  border-color: var(--teal);
  background: var(--teal-soft);
  transform: translateY(-1px);
}
.share-btn .share-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.share-sheet {
  position: fixed;
  inset: 0;
  background: rgba(15, 31, 46, 0.55);
  display: none;
  align-items: flex-end;
  justify-content: center;
  z-index: 9999;
  backdrop-filter: blur(2px);
}
.share-sheet.open { display: flex; }
@media (min-width: 640px) { .share-sheet { align-items: center; } }
.share-sheet-card {
  width: 100%;
  max-width: 480px;
  background: #fff;
  border-radius: 22px 22px 0 0;
  padding: 22px 22px 28px;
  box-shadow: 0 -8px 40px rgba(0,0,0,.22);
  animation: shareSlideUp 0.22s ease-out;
}
@media (min-width: 640px) {
  .share-sheet-card { border-radius: 22px; margin: 16px; }
}
@keyframes shareSlideUp {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
.share-sheet-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}
.share-sheet-head h3 {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 18px;
  font-weight: 800;
  margin: 0;
  color: var(--ink);
}
.share-sheet-close {
  background: var(--cream);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  color: var(--muted);
}
.share-sheet-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}
.share-opt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  padding: 12px 6px;
  border-radius: 14px;
  transition: background 0.15s ease;
}
.share-opt:hover { background: var(--cream); }
.share-opt span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: #fff;
  font-weight: 900;
  font-size: 22px;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
}
.share-sheet-copy {
  display: flex;
  gap: 8px;
  padding: 12px;
  background: var(--cream);
  border-radius: 12px;
}
.share-sheet-copy input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-size: 13px;
  color: var(--ink);
  font-family: monospace;
  min-width: 0;
}

/* =============================================================
   STAR RATING INPUT (product review form)
   The HTML emits 5 radio inputs in REVERSE order (5,4,3,2,1) each
   followed by a <label>★</label>. We use flex-direction:row-reverse
   so they visually appear 1→5 left-to-right, and the sibling
   selector (~) can highlight every star to the left of the hovered
   or :checked one.
   ============================================================= */
.rating-input {
  display: inline-flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 4px;
  margin-top: 6px;
}
.rating-input input[type="radio"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.rating-input label {
  font-size: 34px;
  line-height: 1;
  color: #E2E8F0;        /* unselected star */
  cursor: pointer;
  transition: color 0.15s ease, transform 0.15s ease;
  user-select: none;
  padding: 0 2px;
}
.rating-input label:hover,
.rating-input label:hover ~ label,
.rating-input input[type="radio"]:checked ~ label {
  color: #F77F00;         /* saffron — selected */
}
.rating-input label:hover {
  transform: scale(1.15);
}
.rating-input input[type="radio"]:focus-visible + label {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
  border-radius: 4px;
}

/* =============================================================
   UTILITIES
   ============================================================= */
.hidden { display: none !important; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--muted); }
.text-teal { color: var(--teal); }
.text-saffron { color: var(--saffron); }
.text-green { color: var(--green); }
.text-red { color: var(--red); }
.font-mono { font-family: 'Menlo', 'Consolas', monospace; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.fw-bold { font-weight: 700; }
.fw-800 { font-weight: 800; }
.small { font-size: 12px; }
