@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700;800&family=DM+Sans:wght@400;500;600&display=swap');

:root {
  --green: #1A7F4B;
  --green-light: #E8F5EE;
  --green-dark: #145F38;
  --orange: #F5820D;
  --orange-light: #FEF3E7;
  --red: #E53935;
  --text: #1A1A2E;
  --text-muted: #6B7280;
  --border: #E5E7EB;
  --bg: #F8FAF9;
  --white: #FFFFFF;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

/* ─── HEADER ─── */
.header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: 20px;
  color: var(--green);
  flex-shrink: 0;
}

.logo span { color: var(--orange); }

.search-bar {
  flex: 1;
  display: flex;
  align-items: center;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 100px;
  padding: 8px 16px;
  gap: 8px;
  transition: border-color 0.2s;
}

.search-bar:focus-within { border-color: var(--green); }

.search-bar input {
  border: none;
  background: none;
  outline: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  flex: 1;
  color: var(--text);
}

.search-bar svg { color: var(--text-muted); flex-shrink: 0; }

.cart-btn {
  position: relative;
  background: var(--green);
  color: white;
  border: none;
  border-radius: 100px;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: background 0.2s;
}

.cart-btn:hover { background: var(--green-dark); }

.cart-badge {
  background: var(--orange);
  color: white;
  font-size: 11px;
  font-weight: 700;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: -6px;
  right: -6px;
}

/* ─── DELIVERY STRIP ─── */
.delivery-strip {
  background: var(--green);
  color: white;
  text-align: center;
  font-size: 13px;
  padding: 8px 16px;
  font-weight: 500;
}

.delivery-strip strong { font-weight: 700; }

/* ─── MAIN CONTAINER ─── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ─── HERO ─── */
.hero {
  background: linear-gradient(135deg, #1A7F4B 0%, #145F38 60%, #0D4226 100%);
  color: white;
  padding: 40px 16px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 200px;
  height: 200px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: -30px;
  width: 250px;
  height: 250px;
  background: rgba(255,255,255,0.04);
  border-radius: 50%;
}

.hero h1 {
  font-family: 'Sora', sans-serif;
  font-size: 26px;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}

.hero p {
  font-size: 15px;
  opacity: 0.88;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

.hero-search {
  display: flex;
  align-items: center;
  background: white;
  border-radius: 100px;
  padding: 6px 6px 6px 20px;
  gap: 8px;
  max-width: 500px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.hero-search input {
  flex: 1;
  border: none;
  outline: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  color: var(--text);
  background: none;
}

.hero-search button {
  background: var(--green);
  color: white;
  border: none;
  border-radius: 100px;
  padding: 10px 22px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}

.hero-search button:hover { background: var(--green-dark); }

/* ─── SECTION ─── */
.section { padding: 28px 0; }

.section-title {
  font-family: 'Sora', sans-serif;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-title a {
  margin-left: auto;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--green);
}

/* ─── CATEGORY CHIPS ─── */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

@media (min-width: 480px) { .cat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 768px) { .cat-grid { grid-template-columns: repeat(5, 1fr); } }

.cat-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 12px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  display: block;
}

.cat-card:hover {
  border-color: var(--green);
  background: var(--green-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.cat-card .icon { font-size: 28px; margin-bottom: 8px; }
.cat-card .name { font-size: 13px; font-weight: 600; color: var(--text); line-height: 1.3; }
.cat-card .count { font-size: 11px; color: var(--text-muted); margin-top: 3px; }

/* ─── MEDICINE CARD ─── */
.med-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (min-width: 600px) { .med-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .med-grid { grid-template-columns: repeat(4, 1fr); } }

.med-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
}

.med-card:hover {
  border-color: var(--green);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.med-img {
  background: var(--green-light);
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  position: relative;
}

.med-discount {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--orange);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 100px;
}

.med-body { padding: 12px; flex: 1; display: flex; flex-direction: column; }

.med-category {
  font-size: 11px;
  font-weight: 600;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.med-name {
  font-family: 'Sora', sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 6px;
  color: var(--text);
  flex: 1;
}

.med-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.med-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 10px;
}

.price-sale {
  font-family: 'Sora', sans-serif;
  font-size: 17px;
  font-weight: 800;
  color: var(--text);
}

.price-mrp {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: line-through;
}

.btn-add {
  width: 100%;
  background: var(--green);
  color: white;
  border: none;
  border-radius: 100px;
  padding: 9px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-add:hover { background: var(--green-dark); }

.btn-add.in-cart {
  background: var(--green-light);
  color: var(--green);
}

/* ─── TRUST BAR ─── */
.trust-bar {
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.trust-items {
  display: flex;
  overflow-x: auto;
  gap: 0;
  scrollbar-width: none;
}

.trust-items::-webkit-scrollbar { display: none; }

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  white-space: nowrap;
  border-right: 1px solid var(--border);
  font-size: 13px;
  font-weight: 500;
  flex-shrink: 0;
}

.trust-item .t-icon { font-size: 20px; }

/* ─── PLP FILTERS ─── */
.plp-header {
  padding: 20px 0 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.plp-search {
  display: flex;
  align-items: center;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 100px;
  padding: 10px 16px;
  gap: 8px;
}

.plp-search input {
  border: none;
  outline: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  flex: 1;
  background: none;
}

.filter-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}

.filter-row::-webkit-scrollbar { display: none; }

.filter-chip {
  border: 1.5px solid var(--border);
  background: var(--white);
  border-radius: 100px;
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
  flex-shrink: 0;
  font-family: 'DM Sans', sans-serif;
}

.filter-chip.active {
  background: var(--green);
  color: white;
  border-color: var(--green);
}

.plp-meta {
  font-size: 14px;
  color: var(--text-muted);
  padding: 0 0 8px;
}

/* ─── PDP ─── */
.pdp {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px 16px 60px;
}

.breadcrumb {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.breadcrumb a { color: var(--green); }
.breadcrumb span { color: var(--text-muted); }

.pdp-grid {
  display: grid;
  gap: 24px;
}

@media (min-width: 680px) {
  .pdp-grid { grid-template-columns: 300px 1fr; }
}

.pdp-img-box {
  background: var(--green-light);
  border-radius: var(--radius-lg);
  height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 80px;
  position: relative;
}

.pdp-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--orange);
  color: white;
  font-size: 14px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 100px;
}

.pdp-info {}

.pdp-cat {
  font-size: 12px;
  font-weight: 700;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.pdp-name {
  font-family: 'Sora', sans-serif;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 12px;
}

.pdp-price-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 8px;
}

.pdp-sale {
  font-family: 'Sora', sans-serif;
  font-size: 32px;
  font-weight: 800;
  color: var(--text);
}

.pdp-mrp {
  font-size: 18px;
  color: var(--text-muted);
  text-decoration: line-through;
}

.pdp-saving {
  font-size: 13px;
  font-weight: 600;
  color: var(--green);
  background: var(--green-light);
  padding: 3px 10px;
  border-radius: 100px;
}

.pdp-short-desc {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
  padding: 14px;
  background: var(--bg);
  border-radius: var(--radius);
  border-left: 3px solid var(--green);
}

.qty-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.qty-label { font-size: 14px; font-weight: 500; }

.qty-ctrl {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--border);
  border-radius: 100px;
  overflow: hidden;
}

.qty-ctrl button {
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 18px;
  font-weight: 600;
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.qty-ctrl button:hover { background: var(--green-light); }

.qty-ctrl span {
  min-width: 40px;
  text-align: center;
  font-family: 'Sora', sans-serif;
  font-size: 16px;
  font-weight: 700;
}

.pdp-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-primary {
  background: var(--green);
  color: white;
  border: none;
  border-radius: 100px;
  padding: 15px 24px;
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  text-align: center;
}

.btn-primary:hover { background: var(--green-dark); }

.btn-whatsapp {
  background: #25D366;
  color: white;
  border: none;
  border-radius: 100px;
  padding: 14px 24px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}

.btn-whatsapp:hover { background: #1DA851; }

.btn-outline {
  background: none;
  color: var(--green);
  border: 1.5px solid var(--green);
  border-radius: 100px;
  padding: 13px 24px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}

.btn-outline:hover { background: var(--green-light); }

.pdp-details {
  margin-top: 32px;
  border-top: 1px solid var(--border);
  padding-top: 24px;
}

.detail-table { width: 100%; border-collapse: collapse; }

.detail-table tr:not(:last-child) td { border-bottom: 1px solid var(--border); }

.detail-table td {
  padding: 12px 0;
  font-size: 14px;
  vertical-align: top;
}

.detail-table td:first-child {
  font-weight: 600;
  color: var(--text-muted);
  width: 160px;
  padding-right: 16px;
}

/* ─── CART ─── */
.cart-wrap { max-width: 800px; margin: 0 auto; padding: 20px 16px 80px; }

.cart-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}

.cart-item-img {
  width: 64px;
  height: 64px;
  background: var(--green-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  flex-shrink: 0;
}

.cart-item-info { flex: 1; }
.cart-item-name { font-weight: 700; font-size: 15px; margin-bottom: 3px; }
.cart-item-cat { font-size: 12px; color: var(--text-muted); margin-bottom: 6px; }

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

.qty-sm { border: 1px solid var(--border); border-radius: 100px; display: flex; overflow: hidden; }
.qty-sm button { width: 28px; height: 28px; border: none; background: none; cursor: pointer; font-size: 14px; font-weight: 600; color: var(--green); }
.qty-sm span { min-width: 32px; text-align: center; font-weight: 700; font-size: 14px; line-height: 28px; }

.cart-item-price {
  text-align: right;
  flex-shrink: 0;
}

.cart-item-total { font-family: 'Sora', sans-serif; font-weight: 800; font-size: 17px; }
.cart-remove { font-size: 12px; color: var(--red); cursor: pointer; margin-top: 4px; }

.cart-summary {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-top: 16px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  padding: 6px 0;
}

.summary-row.total {
  border-top: 2px solid var(--border);
  margin-top: 8px;
  padding-top: 12px;
  font-family: 'Sora', sans-serif;
  font-size: 18px;
  font-weight: 800;
}

.cart-empty {
  text-align: center;
  padding: 60px 20px;
}

.cart-empty .empty-icon { font-size: 64px; margin-bottom: 16px; }
.cart-empty h3 { font-family: 'Sora', sans-serif; font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.cart-empty p { color: var(--text-muted); margin-bottom: 24px; }

/* ─── CHECKOUT ─── */
.checkout-wrap { max-width: 800px; margin: 0 auto; padding: 20px 16px 80px; }

.checkout-grid {
  display: grid;
  gap: 20px;
}

@media (min-width: 680px) {
  .checkout-grid { grid-template-columns: 1fr 340px; }
}

.form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
}

.form-card h3 {
  font-family: 'Sora', sans-serif;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.form-group { margin-bottom: 14px; }

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 11px 14px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
  background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus { border-color: var(--green); }

.form-group textarea { resize: vertical; min-height: 80px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.payment-options { display: flex; flex-direction: column; gap: 10px; }

.payment-option {
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  cursor: pointer;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  gap: 12px;
}

.payment-option:hover { border-color: var(--green); background: var(--green-light); }
.payment-option.selected { border-color: var(--green); background: var(--green-light); }

.payment-option input[type="radio"] { accent-color: var(--green); width: 18px; height: 18px; }

.payment-option-icon { font-size: 24px; }

.payment-option-info .name { font-weight: 600; font-size: 15px; }
.payment-option-info .desc { font-size: 12px; color: var(--text-muted); }

.order-summary-sticky { position: sticky; top: 80px; }

/* ─── SUCCESS ─── */
.success-wrap { max-width: 500px; margin: 60px auto; padding: 20px; text-align: center; }
.success-icon { font-size: 72px; margin-bottom: 16px; }
.success-wrap h2 { font-family: 'Sora', sans-serif; font-size: 26px; font-weight: 800; margin-bottom: 10px; }
.success-wrap p { color: var(--text-muted); margin-bottom: 24px; font-size: 15px; }

/* ─── FOOTER ─── */
.footer {
  background: var(--text);
  color: rgba(255,255,255,0.7);
  text-align: center;
  padding: 28px 16px;
  font-size: 13px;
  margin-top: 40px;
}

.footer a { color: var(--green); }

/* ─── TOAST ─── */
.toast-container {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  background: var(--text);
  color: white;
  border-radius: 100px;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: var(--shadow-lg);
  animation: slideUp 0.3s ease;
  pointer-events: auto;
}

.toast.success { background: var(--green); }
.toast.error { background: var(--red); }

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ─── UTILITIES ─── */
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }

.no-results {
  text-align: center;
  padding: 48px 20px;
  color: var(--text-muted);
}

.no-results .nr-icon { font-size: 48px; margin-bottom: 12px; }
.no-results p { font-size: 15px; }

.page-title {
  font-family: 'Sora', sans-serif;
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 4px;
}

.page-sub {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 0;
}

.badge-instock {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #E8F5EE;
  color: var(--green);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 100px;
}

.badge-outofstock {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #FEE;
  color: var(--red);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 100px;
}

@media (max-width: 480px) {
  .hero h1 { font-size: 21px; }
  .pdp-name { font-size: 20px; }
  .pdp-sale { font-size: 26px; }
  .form-row { grid-template-columns: 1fr; }
}

.btn-primary.in-cart {
  background: var(--green-light);
  color: var(--green);
  border: 2px solid var(--green);
}

.btn-primary.in-cart:hover {
  background: var(--green-light);
}

/* ═══════════════════════════════════════════════════════
   BOOKMYMEDS — PREMIUM MOBILE UI
   Written by: fixing 3 bugs from v1
   Rule: @keyframes MUST be at top level, never inside @media
   Desktop styles: completely untouched
   ═══════════════════════════════════════════════════════ */

/* ── ALL KEYFRAMES AT TOP LEVEL (fixes Android/WebView parse bug) ── */

@keyframes bmm-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@keyframes bmm-slidein {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── DESKTOP: hide mobile-only HTML elements ── */
@media (min-width: 768px) {
  .mobile-bottom-nav  { display: none !important; }
  .pdp-mobile-cta     { display: none !important; }
  .cart-sticky-bar    { display: none !important; }
  .checkout-sticky-bar{ display: none !important; }
  /* Delivery strip inner: desktop shows just one copy, centred */
  .delivery-strip-inner {
    display: inline;
    animation: none;
    white-space: normal;
  }
  /* Suppress duplicate copy on desktop */
  .delivery-strip-inner .dup { display: none; }
}

/* ── MOBILE: everything below only activates ≤ 767px ── */
@media (max-width: 767px) {

  /* Body: make room for fixed bottom nav */
  body { padding-bottom: 68px; }

  /* ── HEADER: 2-row layout ── */
  .header-inner {
    flex-wrap: wrap;
    padding: 10px 12px 8px;
    gap: 8px;
  }
  .logo { font-size: 17px; flex: 1; }
  .cart-btn {
    padding: 9px 14px;
    font-size: 13px;
    border-radius: 12px;
  }
  /* Search bar drops to full-width second row */
  .search-bar {
    order: 3;
    flex-basis: 100%;
    padding: 9px 14px;
  }

  /* ── DELIVERY STRIP: marquee ── */
  .delivery-strip {
    overflow: hidden;
    padding: 7px 0;
    font-size: 12.5px;
    white-space: nowrap;
  }
  .delivery-strip-inner {
    display: inline-block;
    white-space: nowrap;
    /* translateX(-50%) because content is exactly doubled in HTML */
    animation: bmm-marquee 22s linear infinite;
  }

  /* ── HERO ── */
  .hero { padding: 26px 16px 30px; }
  .hero h1 { font-size: 21px; line-height: 1.35; }
  .hero p  { font-size: 13.5px; margin-bottom: 18px; }
  .hero-search { padding: 5px 5px 5px 16px; }
  .hero-search input  { font-size: 14px; }
  .hero-search button { padding: 10px 18px; font-size: 13px; }

  /* ── SECTION ── */
  .section { padding: 20px 0; }
  .section-title { font-size: 17px; }

  /* ── CATEGORY CARDS ── */
  .cat-card { padding: 14px 10px; }
  .cat-card .icon { font-size: 26px; margin-bottom: 6px; }
  .cat-card .name { font-size: 12px; }
  .cat-card:active { transform: scale(0.95); background: var(--green-light); border-color: var(--green); }

  /* ── MEDICINE GRID & CARDS ── */
  .med-grid { gap: 10px; }
  .med-card { border-radius: 14px; }
  .med-card:active { transform: scale(0.97); box-shadow: none !important; }
  .med-img   { height: 108px; font-size: 42px; }
  .med-body  { padding: 10px; }
  .med-name  { font-size: 13px; line-height: 1.3; }
  .med-desc  { font-size: 11px; margin-bottom: 8px; }
  .price-sale { font-size: 16px; }
  .price-mrp  { font-size: 12px; }
  .med-discount { font-size: 10px; padding: 3px 6px; }
  .btn-add {
    padding: 10px 8px;
    font-size: 12.5px;
    min-height: 40px;
    border-radius: 10px;
    font-weight: 700;
  }

  /* ── FILTER CHIPS: fade edges to signal horizontal scroll ── */
  .filter-row {
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 6%, black 92%, transparent 100%);
    mask-image:         linear-gradient(to right, transparent 0%, black 6%, black 92%, transparent 100%);
  }
  .filter-chip { padding: 7px 14px; font-size: 12.5px; }

  /* ── PDP ── */
  .pdp { padding: 14px 12px 140px; }
  .pdp-img-box  { height: 200px; font-size: 64px; border-radius: 16px; }
  .breadcrumb   { font-size: 12px; margin-bottom: 14px; }
  .pdp-name  { font-size: 20px; }
  .pdp-sale  { font-size: 28px; }
  .pdp-mrp   { font-size: 16px; }
  .pdp-saving { font-size: 12px; }
  .pdp-short-desc { font-size: 14px; padding: 12px; }
  .qty-ctrl button { width: 40px; height: 40px; font-size: 20px; }
  .qty-ctrl span   { min-width: 44px; font-size: 17px; }
  /* Desktop action buttons hidden on mobile — sticky CTA handles them */
  .pdp-actions { display: none; }

  /* ── STICKY PDP CTA (mobile only) ── */
  .pdp-mobile-cta {
    position: fixed;
    bottom: 60px;
    left: 0; right: 0;
    background: white;
    border-top: 1.5px solid var(--border);
    padding: 10px 14px;
    display: flex;
    gap: 10px;
    z-index: 90;
    box-shadow: 0 -6px 24px rgba(0,0,0,0.10);
  }
  .pdp-mobile-cta .btn-primary,
  .pdp-mobile-cta .btn-whatsapp {
    flex: 1;
    padding: 13px 10px;
    font-size: 14px;
    border-radius: 12px;
    font-weight: 700;
    min-height: 48px;
  }

  /* ── CART ── */
  .cart-wrap { padding: 14px 12px 160px; }
  .cart-item { padding: 12px; gap: 10px; border-radius: 14px; }
  .cart-item-img   { width: 56px; height: 56px; font-size: 24px; }
  .cart-item-name  { font-size: 14px; }
  .cart-item-total { font-size: 16px; }
  .qty-sm button { width: 32px; height: 32px; font-size: 16px; }
  .qty-sm span   { min-width: 36px; font-size: 14px; line-height: 32px; }

  /* ── STICKY CART BAR ── */
  .cart-sticky-bar {
    position: fixed;
    bottom: 60px;
    left: 0; right: 0;
    background: white;
    border-top: 1.5px solid var(--border);
    padding: 10px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 90;
    box-shadow: 0 -6px 24px rgba(0,0,0,0.10);
  }
  .cart-sticky-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .cart-sticky-label  { font-size: 13px; color: var(--text-muted); font-weight: 500; }
  .cart-sticky-amount { font-family: 'Sora', sans-serif; font-size: 20px; font-weight: 800; }
  .cart-sticky-bar .btn-primary {
    padding: 13px; font-size: 15px; font-weight: 700;
    border-radius: 12px; min-height: 48px; border: none;
  }

  /* ── CHECKOUT ── */
  .checkout-wrap  { padding: 14px 12px 150px; }
  .checkout-grid  { gap: 14px; }
  .order-summary-sticky { position: static !important; top: auto !important; }
  .form-card { padding: 16px; border-radius: 14px; }
  .form-card h3 { font-size: 15px; margin-bottom: 14px; padding-bottom: 10px; }
  /* 16px prevents iOS auto-zoom on input focus */
  .form-group input,
  .form-group textarea,
  .form-group select { font-size: 16px; padding: 13px 14px; border-radius: 10px; }
  .form-group label  { font-size: 13px; margin-bottom: 5px; }
  .payment-option    { padding: 12px; border-radius: 12px; }
  .payment-option-icon { font-size: 22px; }

  /* ── STICKY CHECKOUT BAR ── */
  .checkout-sticky-bar {
    position: fixed;
    bottom: 60px;
    left: 0; right: 0;
    background: white;
    border-top: 1.5px solid var(--border);
    padding: 10px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 90;
    box-shadow: 0 -6px 24px rgba(0,0,0,0.10);
  }
  .checkout-sticky-bar .btn-primary {
    padding: 14px; font-size: 15px; font-weight: 700;
    border-radius: 12px; min-height: 50px; border: none; width: 100%;
  }
  .checkout-total-row {
    display: flex; justify-content: space-between; align-items: center;
    font-size: 13px; color: var(--text-muted);
  }
  .checkout-total-amount {
    font-family: 'Sora', sans-serif; font-size: 20px; font-weight: 800; color: var(--text);
  }

  /* ── TOAST: above bottom nav ── */
  .toast-container { bottom: 76px; }

  /* ── PAGE TITLES ── */
  .page-title { font-size: 19px; }

  /* ── BOTTOM NAVIGATION BAR ── */
  .mobile-bottom-nav {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    height: 60px;
    background: white;
    border-top: 1px solid var(--border);
    display: flex;
    z-index: 1000;
    box-shadow: 0 -3px 20px rgba(0,0,0,0.09);
  }
  .mob-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 9.5px;
    font-weight: 600;
    font-family: 'DM Sans', sans-serif;
    transition: color 0.15s;
    position: relative;
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
  }
  .mob-nav-item:active { opacity: 0.7; }
  .mob-nav-item.active { color: var(--green); }
  .mob-nav-icon { font-size: 22px; line-height: 1; display: block; }
  .mob-nav-badge {
    position: absolute;
    top: 5px;
    right: calc(50% - 20px);
    background: var(--orange);
    color: white;
    font-size: 9px;
    font-weight: 800;
    border-radius: 50%;
    width: 16px; height: 16px;
    display: none;
    align-items: center;
    justify-content: center;
    font-family: 'Sora', sans-serif;
  }
  .mob-nav-item.wa-item { color: #25D366; }
  .mob-nav-item.active::after {
    content: '';
    position: absolute;
    bottom: 4px;
    width: 4px; height: 4px;
    background: var(--green);
    border-radius: 50%;
  }
  .mob-nav-item.wa-item.active::after { background: #25D366; }

  /* ── MISC ── */
  .pdp-details { margin-top: 24px; }
  .detail-table td { font-size: 13px; padding: 10px 0; }
  .detail-table td:first-child { width: 120px; font-size: 12.5px; }
  .cart-summary { border-radius: 14px; }
  .no-results   { padding: 36px 16px; }
  .cart-empty   { padding: 40px 16px; }
  .success-wrap { padding: 16px; margin-top: 30px; }
  .success-icon { font-size: 60px; }

} /* end @media (max-width: 767px) */
