:root {
  --green: #1f8f18;
  --green-dark: #146b10;
  --lime: #7bcf28;
  --yellow: #ffd83d;
  --orange: #ff8a1f;
  --blue: #1d6eea;
  --ink: #0f172a;
  --text: #1f2937;
  --muted: #687386;
  --soft: #f5f7fb;
  --line: #e6e9ef;
  --card: #ffffff;
  --danger: #e54848;
  --shadow: 0 14px 38px rgba(17, 24, 39, .12);
  --max: 1480px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: #fff;
  overflow-x: hidden;
}
button, input, select { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid rgba(31, 143, 24, .28);
  outline-offset: 2px;
}
button:disabled {
  cursor: not-allowed;
}
a { color: inherit; text-decoration: none; }
.app { min-height: 100vh; }
.container { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }

.header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.header-inner {
  height: 86px;
  display: grid;
  grid-template-columns: 180px 280px minmax(260px, 1fr) auto auto;
  align-items: center;
  gap: 18px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
  border: 0;
  background: transparent;
  padding: 0;
  font-size: 2.3rem;
  line-height: 1;
  font-weight: 950;
  letter-spacing: 0;
  color: var(--green);
}
.brand span:first-child { color: var(--yellow); }
.location-button {
  border: 0;
  background: transparent;
  text-align: left;
  padding: 8px 10px;
  border-radius: 12px;
}
.location-button:hover { background: var(--soft); }
.location-title {
  display: block;
  color: #05060a;
  font-size: 1.12rem;
  font-weight: 950;
  margin-bottom: 2px;
}
.location-sub {
  display: block;
  color: #0f172a;
  font-size: .9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.search-shell {
  position: relative;
  min-width: 0;
  margin: 0;
}
.search-shell svg {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: #0f172a;
  z-index: 2;
}
.search-input {
  width: 100%;
  height: 54px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fafafa;
  padding: 0 18px 0 52px;
  outline: none;
  font-size: 1rem;
}
.search-input:focus {
  border-color: #b8dcb4;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(31, 143, 24, .08);
}
.search-suggestions {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  z-index: 40;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  display: none;
  overflow: hidden;
}
.search-suggestions.open { display: block; }
.suggestion-button {
  width: 100%;
  border: 0;
  background: #fff;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
}
.suggestion-button:hover { background: var(--soft); }
.login-button {
  border: 0;
  background: transparent;
  color: #0f172a;
  font-size: 1.05rem;
  padding: 12px 16px;
  border-radius: 12px;
}
.login-button:hover { background: var(--soft); }
.cart-button {
  min-width: 128px;
  height: 58px;
  border: 0;
  border-radius: 12px;
  background: #e5e7eb;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 900;
  padding: 0 16px;
}
.cart-button.has-items { background: var(--green); }
.cart-button small { display: block; font-size: .78rem; font-weight: 800; line-height: 1; }
.cart-button strong { display: block; font-size: .95rem; line-height: 1.1; }
.mobile-search { display: none; padding: 0 0 12px; }

.page { display: none; }
.page.active { display: block; animation: pageIn .22s ease both; }
@keyframes pageIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.home-main { padding: 28px 0 72px; }
.hero-banner {
  width: 100%;
  min-height: 230px;
  border: 0;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  display: grid;
  grid-template-columns: 1fr 460px;
  align-items: center;
  padding: 34px 42px;
  color: white;
  text-align: left;
}
.hero-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 74% 45%, rgba(255,255,255,.74), transparent 17rem);
  pointer-events: none;
}
.hero-banner.has-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--banner-image);
  background-size: cover;
  background-position: center;
  opacity: .04;
}
.banner-copy, .banner-art, .banner-visual { position: relative; z-index: 1; }
.banner-copy h1 {
  margin: 0 0 10px;
  font-size: clamp(2.25rem, 5vw, 4.2rem);
  line-height: 1;
  letter-spacing: 0;
}
.banner-copy p {
  margin: 0 0 22px;
  font-size: clamp(1.1rem, 2.5vw, 1.75rem);
  max-width: 720px;
  color: rgba(255,255,255,.92);
  font-weight: 650;
}
.btn {
  border: 0;
  border-radius: 10px;
  min-height: 44px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 900;
  background: #fff;
  color: #1f2937;
  box-shadow: 0 10px 26px rgba(17, 24, 39, .13);
}
.btn.green { background: var(--green); color: #fff; }
.btn.outline { background: #fff; color: var(--green); border: 1px solid var(--green); box-shadow: none; }
.btn:disabled {
  background: #e5e7eb;
  color: #64748b;
  box-shadow: none;
}
.banner-art {
  min-height: 190px;
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 8px;
  font-size: clamp(3rem, 6vw, 5.8rem);
  filter: drop-shadow(0 20px 22px rgba(0,0,0,.22));
}
.banner-visual {
  justify-self: end;
  width: min(520px, 100%);
  height: 218px;
  border-radius: 0 14px 14px 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 22%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 22%, #000 100%);
}
.banner-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(40,111,45,.18), transparent 36%);
  pointer-events: none;
}
.banner-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.banner-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}
.banner-dot {
  width: 28px;
  height: 6px;
  border: 0;
  border-radius: 999px;
  background: #d6dbe4;
}
.banner-dot.active { background: var(--green); }
.promo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 28px 0 30px;
}
.promo-card {
  min-height: 178px;
  border: 0;
  border-radius: 14px;
  overflow: hidden;
  text-align: left;
  position: relative;
  padding: 24px;
  color: #1f2937;
  display: grid;
  align-content: start;
  box-shadow: 0 8px 20px rgba(17, 24, 39, .08);
}
.promo-copy {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: start;
  max-width: 57%;
}
.promo-card h3 {
  margin: 0 0 8px;
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  line-height: 1.08;
  max-width: 260px;
}
.promo-card p {
  margin: 0 0 18px;
  font-weight: 650;
  color: rgba(31, 41, 55, .78);
  max-width: 250px;
}
.promo-card .btn {
  justify-self: start;
  min-width: 140px;
}
.promo-card .promo-art {
  position: absolute;
  right: 16px;
  bottom: 10px;
  font-size: 4.5rem;
  filter: drop-shadow(0 12px 12px rgba(0,0,0,.12));
}
.promo-visual {
  position: absolute;
  inset: 0 0 0 42%;
  z-index: 1;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 20%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 20%, #000 100%);
}
.promo-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(255,255,255,.65), rgba(255,255,255,.12) 38%, transparent);
  pointer-events: none;
}
.promo-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin: 28px 0 14px;
}
.section-head h2 {
  margin: 0;
  font-size: 1.5rem;
  line-height: 1.1;
}
.section-head button {
  border: 0;
  background: transparent;
  color: var(--green);
  font-weight: 800;
}
.category-grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 20px 18px;
}
.category-tile {
  border: 0;
  background: transparent;
  display: grid;
  justify-items: center;
  gap: 10px;
  color: #343b47;
  font-weight: 750;
  line-height: 1.14;
  min-width: 0;
}
.category-art {
  width: 100%;
  aspect-ratio: 1 / .88;
  border-radius: 11px;
  background: #f0f6ff;
  display: grid;
  place-items: center;
  font-size: 3rem;
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease;
}
.category-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.category-tile:hover .category-art {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(17, 24, 39, .1);
}
.bundle-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.featured-deals-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.featured-deal-card {
  min-height: 178px;
  border: 1px solid rgba(29, 110, 234, .18);
  border-radius: 14px;
  background: linear-gradient(135deg, #f7fbff, #ffffff);
  padding: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42%;
  gap: 12px;
  align-items: center;
  overflow: hidden;
}
.featured-deal-copy {
  min-width: 0;
  display: grid;
  gap: 8px;
  justify-items: start;
}
.deal-tag {
  color: var(--blue);
  font-size: .78rem;
  font-weight: 950;
}
.featured-deal-card h3 {
  margin: 0;
  color: #111827;
  line-height: 1.08;
  font-size: 1.06rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.featured-deal-card p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}
.featured-deal-media {
  width: 100%;
  aspect-ratio: 1 / 1;
  border: 0;
  border-radius: 14px;
  background: #f5f7fb;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(17, 24, 39, .1);
}
.featured-deal-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.bundle-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(135deg, #ffffff, #f8fbff);
  padding: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42%;
  gap: 12px;
  align-items: center;
  overflow: hidden;
  min-height: 178px;
}
.bundle-icons { font-size: 2.4rem; white-space: nowrap; }
.bundle-copy {
  min-width: 0;
  display: grid;
  gap: 8px;
  justify-items: start;
}
.bundle-copy strong {
  color: #111827;
  font-size: 1.08rem;
  line-height: 1.08;
}
.bundle-copy p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}
.bundle-media {
  width: 100%;
  aspect-ratio: 1 / 1;
  border: 0;
  border-radius: 14px;
  background: #f5f7fb;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(17, 24, 39, .1);
}
.bundle-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.content-page { padding: 0 0 64px; }
.category-layout {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 98px minmax(0, 1fr);
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  background: #fff;
  min-height: calc(100vh - 86px);
}
.category-title-bar {
  grid-column: 1 / -1;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 18px;
  border-bottom: 1px solid var(--line);
  font-weight: 950;
  font-size: 1.1rem;
}
.sort-filter { display: flex; gap: 8px; }
.sort-filter select {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  height: 36px;
  padding: 0 10px;
  font-weight: 700;
  color: #4b5563;
}
.subcat-rail {
  max-height: calc(100vh - 138px);
  overflow: auto;
  border-right: 1px solid var(--line);
  background: #fff;
  scrollbar-width: thin;
  position: sticky;
  top: 138px;
  align-self: start;
}
.subcat-button {
  width: 100%;
  border: 0;
  background: #fff;
  padding: 10px 8px;
  display: grid;
  justify-items: center;
  gap: 6px;
  min-height: 96px;
  color: #4b5563;
  border-left: 4px solid transparent;
  font-size: .78rem;
  line-height: 1.1;
}
.subcat-button.active {
  color: #111827;
  font-weight: 900;
  border-left-color: var(--green);
  background: #fbfef8;
}
.subcat-art {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  background: #f2f6fb;
  display: grid;
  place-items: center;
  font-size: 1.75rem;
}
.product-area {
  background: #f7f8fa;
  min-width: 0;
}
.product-toolbar {
  display: none;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 12px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  scrollbar-width: none;
}
.product-toolbar button {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  padding: 8px 12px;
  font-weight: 850;
  color: #4b5563;
}
.product-toolbar button.active { background: var(--green); color: #fff; border-color: var(--green); }
.category-banner {
  display: none;
  margin: 10px;
  border-radius: 12px;
  padding: 16px;
  color: #fff;
  min-height: 90px;
}
.category-banner.show {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  padding: 10px;
}
.compact-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); padding: 0; }
.product-card {
  min-width: 0;
  min-height: 306px;
  border: 1px solid #e1e5eb;
  border-radius: 9px;
  background: #fff;
  padding: 12px;
  position: relative;
  display: grid;
  grid-template-rows: 146px auto auto 1fr auto;
  gap: 6px;
}
.product-card.sponsored { box-shadow: inset 0 0 0 2px rgba(29, 110, 234, .08); }
.product-card.out-stock {
  opacity: .72;
}
.ad-label {
  position: absolute;
  right: 12px;
  top: 9px;
  color: #a6adb8;
  font-size: .7rem;
  font-weight: 800;
}
.discount-ribbon {
  position: absolute;
  left: 12px;
  top: 0;
  width: 34px;
  min-height: 38px;
  background: #2f65ea;
  color: #fff;
  display: grid;
  place-items: center;
  text-align: center;
  font-size: .72rem;
  font-weight: 950;
  line-height: .95;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 82%, 0 100%);
  z-index: 2;
}
.product-image {
  border: 0;
  background: #fff;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 5rem;
  min-width: 0;
}
.eta {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 999px;
  background: #f4f6f8;
  color: #05060a;
  font-size: .7rem;
  font-weight: 950;
  padding: 2px 6px;
}
.product-name {
  border: 0;
  background: transparent;
  padding: 0;
  text-align: left;
  color: #0f172a;
  font-weight: 850;
  line-height: 1.14;
  font-size: .96rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pack { color: #566173; font-size: .92rem; }
.price-line {
  display: flex;
  align-items: end;
  gap: 6px;
  font-weight: 900;
  color: #05060a;
}
.mrp { color: #8b94a3; text-decoration: line-through; font-weight: 600; }
.add-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.add-button, .qty-stepper {
  min-width: 76px;
  height: 38px;
  border: 1px solid var(--green);
  border-radius: 8px;
  background: #fafff7;
  color: var(--green);
  font-weight: 950;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.add-button:disabled {
  border-color: #cbd5e1;
  background: #f1f5f9;
  color: #64748b;
  cursor: not-allowed;
}
.stock-note {
  color: #64748b;
  font-size: .76rem;
  font-weight: 800;
}
.stock-note.low { color: #c45a00; }
.stock-note.out { color: var(--danger); }
.qty-stepper {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}
.qty-stepper button {
  border: 0;
  background: transparent;
  color: inherit;
  font-weight: 950;
  font-size: 1rem;
  width: 22px;
}
.info-copy {
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 20px 38px 42px;
  color: #687386;
  line-height: 1.5;
}
.info-copy h2 {
  color: #05060a;
  margin: 0 0 12px;
  font-size: 1.45rem;
}

.detail-wrap {
  width: min(1120px, calc(100% - 32px));
  margin: 26px auto 72px;
  display: grid;
  grid-template-columns: minmax(280px, .9fr) minmax(0, 1fr);
  gap: 26px;
}
.detail-image {
  min-height: 470px;
  border: 1px solid var(--line);
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 10rem;
  background: linear-gradient(180deg, #fff, #f7fbff);
}
.detail-image img {
  width: min(78%, 360px);
  height: auto;
  display: block;
}
.detail-panel, .panel {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
  background: #fff;
}
.detail-panel h1 {
  margin: 10px 0 8px;
  color: #05060a;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
}
.detail-muted { color: var(--muted); margin: 0 0 18px; }
.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 18px 0;
}
.mini-stat {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  background: #fbfcfe;
  font-weight: 850;
}
.mini-stat small { display: block; color: var(--muted); font-weight: 700; }
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 18px;
}

.checkout-wrap, .tracking-wrap, .account-grid, .support-grid {
  width: min(1120px, calc(100% - 32px));
  margin: 26px auto 72px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 22px;
}
.account-grid, .support-grid { grid-template-columns: repeat(3, 1fr); }
.page-title {
  width: min(1120px, calc(100% - 32px));
  margin: 26px auto 0;
}
.page-title h1 {
  margin: 0 0 6px;
  color: #05060a;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1;
}
.page-title p { margin: 0; color: var(--muted); }
.form-grid { display: grid; gap: 14px; }
.field label {
  display: block;
  color: #111827;
  font-weight: 850;
  margin-bottom: 6px;
}
.field input, .field select {
  width: 100%;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 14px;
  outline: none;
  background: #fbfcfe;
}
.coupon-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.order-summary-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 10px 0;
  color: #4b5563;
}
.order-summary-line.total {
  color: #05060a;
  font-size: 1.15rem;
  font-weight: 950;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.tracking-map {
  min-height: 420px;
  border-radius: 18px;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255,255,255,.6) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(rgba(255,255,255,.6) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(135deg, #dbf3ff, #fff3c6);
}
.route-line {
  position: absolute;
  inset: 70px 60px;
  border: 7px dashed rgba(31, 143, 24, .55);
  border-left-color: transparent;
  border-radius: 50%;
  transform: rotate(-12deg);
}
.pin {
  position: absolute;
  min-width: 58px;
  height: 58px;
  border-radius: 18px;
  background: #fff;
  display: grid;
  place-items: center;
  padding: 0 10px;
  font-size: .85rem;
  font-weight: 950;
  box-shadow: var(--shadow);
}
.pin.store { left: 46px; bottom: 64px; }
.pin.home { right: 64px; top: 64px; }
.pin.rider { left: 47%; top: 45%; background: var(--green); color: #fff; }
.timeline { display: grid; gap: 12px; }
.timeline-step {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 12px;
  background: #f8fafc;
}
.timeline-step.done .dot, .timeline-step.live .dot { background: var(--green); color: #fff; }
.dot {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: #fff;
  font-weight: 950;
}
.badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 999px;
  padding: 0 9px;
  background: #eef8ec;
  color: var(--green);
  font-size: .75rem;
  font-weight: 950;
  white-space: nowrap;
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .66);
  z-index: 45;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}
.drawer-backdrop.open { opacity: 1; pointer-events: auto; }
.cart-drawer, .quick-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 50;
  width: min(520px, 100%);
  height: 100vh;
  background: #f3f6fc;
  transform: translateX(105%);
  transition: transform .24s ease;
  display: grid;
  grid-template-rows: 82px 1fr auto;
  box-shadow: -22px 0 45px rgba(0, 0, 0, .18);
}
.quick-drawer { z-index: 52; }
.cart-drawer.open, .quick-drawer.open { transform: translateX(0); }
.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 18px;
  background: #fff;
}
.drawer-head button, .share-button {
  border: 0;
  background: transparent;
  color: #111827;
  font-weight: 950;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1.05rem;
}
.share-button { color: var(--green); }
.drawer-body {
  overflow: auto;
  padding: 16px;
}
.cart-card {
  background: #fff;
  border-radius: 18px;
  padding: 16px;
  margin-bottom: 14px;
}
.cart-line {
  display: grid;
  grid-template-columns: 78px 1fr auto;
  gap: 12px;
  align-items: center;
  padding-top: 14px;
  margin-top: 14px;
  border-top: 1px solid var(--line);
}
.cart-thumb {
  width: 78px;
  height: 78px;
  border: 1px solid var(--line);
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-size: 2.7rem;
  background: #fff;
}
.cart-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.drawer-foot {
  padding: 14px;
  background: #fff;
  box-shadow: 0 -10px 26px rgba(17, 24, 39, .08);
}
.checkout-cta {
  width: 100%;
  min-height: 72px;
  border: 0;
  border-radius: 10px;
  background: var(--green);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 16px;
  font-size: 1.12rem;
  font-weight: 950;
}
.checkout-cta small { display: block; font-size: .78rem; font-weight: 800; color: rgba(255,255,255,.8); text-align: left; }

.quick-hero {
  display: grid;
  gap: 14px;
}
.quick-image {
  min-height: 210px;
  border-radius: 18px;
  background: #fff;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
}
.quick-image img {
  width: min(68%, 270px);
  height: auto;
  display: block;
}
.variant-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.variant-button {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 12px;
  text-align: left;
}
.variant-button.active {
  border-color: var(--green);
  box-shadow: inset 0 0 0 2px rgba(31, 143, 24, .14);
}
.variant-button strong { display: block; }
.variant-button span { color: var(--muted); font-size: .9rem; }
.ad-preview-card {
  border: 1px solid rgba(29, 110, 234, .2);
  border-radius: 14px;
  background: linear-gradient(135deg, #eff6ff, #fff);
  padding: 16px;
  display: grid;
  gap: 8px;
}
.ad-preview-card small {
  color: var(--blue);
  font-weight: 950;
}
.toast-stack {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 80;
  display: grid;
  gap: 10px;
  pointer-events: none;
}
.toast {
  min-width: min(340px, calc(100vw - 32px));
  border-radius: 14px;
  background: #111827;
  color: #fff;
  padding: 13px 15px;
  box-shadow: var(--shadow);
  animation: toastIn .18s ease both;
}
@keyframes toastIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.loading-layer {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: none;
  place-items: center;
  background: rgba(255,255,255,.55);
  backdrop-filter: blur(2px);
}
.loading-layer.show { display: grid; }
.loading-card {
  width: min(360px, calc(100vw - 32px));
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow);
  padding: 18px;
  display: grid;
  gap: 12px;
}
.loading-card span {
  height: 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, #eef2f7, #f8fafc, #eef2f7);
  background-size: 200% 100%;
  animation: shimmer 1.1s linear infinite;
}
.loading-card span:nth-child(2) { width: 78%; }
.loading-card span:nth-child(3) { width: 56%; }
@keyframes shimmer {
  to { background-position: -200% 0; }
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  place-items: center;
  background: rgba(17, 24, 39, .62);
  padding: 16px;
}
.modal.open { display: grid; }
.modal-card {
  width: min(460px, 100%);
  border-radius: 18px;
  background: #fff;
  padding: 22px;
  box-shadow: var(--shadow);
}
.modal-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}
.modal-head h2 { margin: 0 0 6px; color: #05060a; }
.modal-head p { margin: 0; color: var(--muted); }
.modal-head button {
  border: 0;
  background: #f3f4f6;
  border-radius: 10px;
  width: 38px;
  height: 38px;
  font-weight: 950;
}
.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 18px 0;
}
.auth-tabs button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font-weight: 900;
}
.auth-tabs button.active { background: #111827; color: #fff; border-color: #111827; }
.address-list { display: grid; gap: 8px; }
.address-option {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 12px;
  text-align: left;
}
.address-option strong { display: block; }
.address-option span { color: var(--muted); }

.sticky-mobile-cart {
  display: none;
  position: fixed;
  left: 10px;
  right: 10px;
  bottom: 10px;
  z-index: 35;
  border: 0;
  min-height: 56px;
  border-radius: 12px;
  background: var(--green);
  color: #fff;
  padding: 0 14px;
  align-items: center;
  justify-content: space-between;
  font-weight: 950;
  box-shadow: var(--shadow);
}

footer {
  border-top: 1px solid var(--line);
  padding: 44px 0;
  color: #6b7280;
  background: #fff;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 34px;
  align-items: start;
}
.footer-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.footer-links h3 {
  color: #111827;
  margin: 0 0 10px;
  font-size: 1rem;
}
.footer-links a {
  display: block;
  margin: 8px 0;
  color: #6b7280;
}

.merch-section { margin-top: 28px; }
.merch-section .section-head p {
  margin: 6px 0 0;
  color: var(--muted);
  font-weight: 650;
}
.merch-grid { background: #fff; }
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.trust-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(135deg, #ffffff, #f7fbf4);
  padding: 18px;
}
.trust-card strong { display: block; color: #111827; margin-bottom: 6px; }
.trust-card p { margin: 0; color: var(--muted); line-height: 1.35; }
.favorite-button {
  position: absolute;
  right: 10px;
  top: 30px;
  z-index: 3;
  border: 1px solid var(--line);
  border-radius: 999px;
  min-height: 24px;
  padding: 0 8px;
  background: rgba(255,255,255,.9);
  color: #4b5563;
  font-size: .68rem;
  font-weight: 900;
}
.favorite-button.saved { border-color: var(--green); color: var(--green); }
.freshness-note {
  color: #2d7b25;
  font-size: .72rem;
  font-weight: 800;
}
.subcat-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;
}
.discovery-filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 10px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.filter-group {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.filter-group span {
  width: 100%;
  color: #111827;
  font-size: .75rem;
  font-weight: 950;
}
.filter-group button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #4b5563;
  min-height: 30px;
  padding: 0 10px;
  font-size: .78rem;
  font-weight: 850;
}
.filter-group button.active {
  border-color: var(--green);
  background: #eef8ec;
  color: var(--green);
}
.suggestion-group {
  border-bottom: 1px solid var(--line);
  padding: 8px 0;
}
.suggestion-group:last-child { border-bottom: 0; }
.suggestion-group small {
  display: block;
  color: var(--muted);
  font-weight: 950;
  padding: 0 16px 4px;
}
.detail-media-panel {
  display: grid;
  gap: 12px;
  align-self: start;
}
.gallery-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.gallery-row button {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 6px;
  aspect-ratio: 1;
}
.gallery-row button.active {
  border-color: var(--green);
  box-shadow: inset 0 0 0 2px rgba(31,143,24,.12);
}
.gallery-row img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}
.trust-strip {
  display: grid;
  gap: 8px;
}
.trust-strip span, .supplier-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfcfe;
  padding: 12px;
  color: #4b5563;
  font-weight: 800;
}
.supplier-card {
  display: grid;
  gap: 4px;
  margin: 16px 0;
}
.supplier-card strong { color: #111827; }
.supplier-card span { color: var(--muted); font-weight: 700; }
.detail-spec-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 18px 0;
}
.detail-spec-grid div {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfcfe;
  padding: 14px;
}
.detail-spec-grid h2 { margin: 0 0 6px; font-size: 1rem; }
.detail-spec-grid p { margin: 0; color: var(--muted); line-height: 1.4; }
.tip-options {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.tip-options button {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  min-height: 42px;
  font-weight: 900;
  color: #4b5563;
}
.tip-options button.active {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}
.account-card {
  display: grid;
  gap: 10px;
  align-content: start;
}
.receipt-lines {
  display: grid;
  gap: 4px;
  color: #4b5563;
  font-size: .9rem;
}
.mini-product-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.mini-product-row img {
  width: 56px;
  height: 56px;
  border: 1px solid var(--line);
  border-radius: 12px;
  object-fit: cover;
  background: #fff;
}
.mini-product-row button {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 8px;
  width: 118px;
  display: grid;
  gap: 6px;
  justify-items: start;
  text-align: left;
  color: #111827;
  font-size: .78rem;
  font-weight: 800;
}
.mini-product-row button img {
  width: 100%;
  height: 72px;
}
.mobile-bottom-nav {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 34;
  min-height: 62px;
  background: rgba(255,255,255,.97);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(12px);
  grid-template-columns: repeat(5, 1fr);
}
.mobile-bottom-nav button {
  border: 0;
  background: transparent;
  color: #687386;
  font-size: .72rem;
  font-weight: 900;
  display: grid;
  place-items: center;
}
.mobile-bottom-nav button.active { color: var(--green); }

body.admin-mode .header,
body.admin-mode footer,
body.admin-mode .mobile-bottom-nav,
body.admin-mode .sticky-mobile-cart {
  display: none;
}

.admin-page {
  min-height: 100vh;
  background: #f3f6fb;
}

.admin-login-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 20% 15%, rgba(255, 216, 61, .28), transparent 26rem),
    radial-gradient(circle at 82% 10%, rgba(29, 110, 234, .16), transparent 24rem),
    #f7fafc;
}

.admin-login-card {
  width: min(460px, 100%);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow);
  padding: 28px;
  display: grid;
  gap: 18px;
}

.admin-login-card h1 {
  margin: 0 0 6px;
  color: #0f172a;
  font-size: clamp(2rem, 6vw, 3rem);
  line-height: 1;
}

.admin-login-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.admin-link-button {
  border: 0;
  background: transparent;
  color: var(--green);
  font-weight: 900;
  justify-self: center;
}

.admin-login-hint {
  border-radius: 12px;
  background: #f8fafc;
  padding: 12px;
  font-size: .9rem;
}

.admin-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
}

.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  border-right: 1px solid var(--line);
  background: #0f172a;
  color: #fff;
  padding: 24px 18px;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 26px;
}

.admin-brand {
  color: var(--green);
  font-size: 2rem;
}

.admin-nav {
  display: grid;
  align-content: start;
  gap: 8px;
}

.admin-nav button {
  width: 100%;
  min-height: 42px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #cbd5e1;
  text-align: left;
  padding: 0 12px;
  font-weight: 850;
}

.admin-nav button:hover,
.admin-nav button.active {
  background: rgba(255, 255, 255, .1);
  color: #fff;
}

#adminLogout {
  margin-top: 16px;
  color: #fecaca;
}

.admin-workspace {
  min-width: 0;
  padding: 28px;
}

.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.admin-kicker {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  border-radius: 999px;
  background: #eaf7e8;
  color: var(--green);
  padding: 0 10px;
  font-size: .78rem;
  font-weight: 950;
}

.admin-topbar h1 {
  margin: 8px 0 0;
  color: #0f172a;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1;
}

.admin-db-status {
  margin: 8px 0 0;
  color: var(--muted);
  font-weight: 800;
}

.admin-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.admin-stat,
.admin-panel,
.admin-table-wrap {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .06);
}

.admin-stat {
  padding: 18px;
  display: grid;
  gap: 6px;
}

.admin-stat span,
.admin-stat small {
  color: var(--muted);
  font-weight: 800;
}

.admin-stat strong {
  color: #0f172a;
  font-size: 2rem;
  line-height: 1;
}

.admin-grid {
  display: grid;
  gap: 18px;
}

.admin-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-panel {
  padding: 20px;
}

.admin-panel h2 {
  margin: 0 0 12px;
  color: #0f172a;
}

.admin-list {
  display: grid;
  gap: 8px;
}

.admin-list p {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fafc;
  padding: 12px;
  color: #475569;
  font-weight: 750;
}

.admin-action-list,
.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-actions {
  margin-bottom: 14px;
}

.admin-actions a.btn {
  text-decoration: none;
}

.admin-product-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(340px, .75fr);
  gap: 18px;
  margin-bottom: 18px;
  align-items: start;
}

.admin-product-form {
  display: grid;
  gap: 18px;
}

.admin-panel-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}

.admin-panel-head h2 {
  margin: 0 0 6px;
  color: #0f172a;
}

.admin-panel-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.4;
}

.admin-status-pill {
  flex: 0 0 auto;
  min-height: 28px;
  border-radius: 999px;
  background: #fff7db;
  color: #9a5a00;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  font-size: .76rem;
  font-weight: 950;
}

.admin-form-section {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.admin-form-section h3 {
  margin: 0 0 6px;
  color: #0f172a;
  font-size: 1rem;
}

.admin-form-section p {
  margin: 0;
  color: var(--muted);
  line-height: 1.35;
  font-size: .9rem;
}

.admin-form-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.admin-product-field {
  display: grid;
  gap: 6px;
}

.admin-product-field.wide {
  grid-column: 1 / -1;
}

.admin-product-field span {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: #0f172a;
  font-weight: 850;
}

.admin-product-field small {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 900;
}

.admin-product-field input {
  width: 100%;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfcfe;
  padding: 0 12px;
  color: #334155;
}

.admin-form-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.admin-import-panel {
  display: grid;
  gap: 16px;
}

.admin-upload-box {
  min-height: 172px;
  border: 1px dashed #9db4d3;
  border-radius: 16px;
  background: #f8fbff;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 20px;
  gap: 8px;
}

.admin-upload-box strong {
  color: #0f172a;
  font-size: 1.08rem;
}

.admin-upload-box span {
  color: var(--muted);
  line-height: 1.35;
  max-width: 320px;
}

.admin-step-list {
  display: grid;
  gap: 8px;
}

.admin-step-list div {
  display: grid;
  grid-template-columns: 30px 1fr;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 10px;
  color: #475569;
}

.admin-step-list span {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #e2e8f0;
  color: #334155;
  font-weight: 950;
}

.admin-step-list .done span {
  background: var(--green);
  color: #fff;
}

.admin-step-list .live {
  border-color: rgba(29, 110, 234, .32);
  background: #f6f9ff;
}

.admin-step-list .live span {
  background: var(--blue);
  color: #fff;
}

.admin-import-panel h3 {
  margin: 0;
  color: #0f172a;
}

.admin-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.admin-row-actions button {
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #334155;
  padding: 0 10px;
  font-size: .78rem;
  font-weight: 850;
}

.admin-table-wrap {
  overflow-x: auto;
  margin-bottom: 18px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

.admin-table th,
.admin-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  color: #0f172a;
  background: #f8fafc;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.admin-table td {
  color: #475569;
  font-weight: 700;
}

.admin-table tr:last-child td {
  border-bottom: 0;
}

@media (max-width: 1200px) {
  .header-inner { grid-template-columns: 150px 230px 1fr auto auto; }
  .category-grid { grid-template-columns: repeat(8, 1fr); }
  .product-grid, .compact-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .featured-deals-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-product-layout { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .container { width: min(100% - 20px, var(--max)); }
  .header-inner {
    height: 70px;
    grid-template-columns: 96px 1fr auto;
    gap: 10px;
  }
  .brand { font-size: 1.7rem; }
  .header-inner > .search-shell { display: none; }
  .mobile-search { display: block; }
  .login-button { display: none; }
  .location-title { font-size: .92rem; }
  .location-sub { font-size: .76rem; max-width: 148px; }
  .cart-button {
    min-width: 50px;
    width: 50px;
    height: 48px;
    padding: 0;
  }
  .cart-button .cart-label { display: none; }
  .home-main { padding: 14px 0 84px; }
  .hero-banner {
    grid-template-columns: 1fr;
    min-height: 210px;
    padding: 24px;
  }
  .banner-art {
    justify-content: end;
    min-height: 68px;
    font-size: 3.4rem;
  }
  .banner-visual {
    justify-self: end;
    width: min(210px, 68%);
    height: 112px;
    border-radius: 18px;
    margin-top: -8px;
  }
  .promo-grid {
    display: flex;
    overflow-x: auto;
    gap: 12px;
    margin: 18px 0 22px;
    padding-bottom: 4px;
    scrollbar-width: none;
  }
  .promo-card {
    flex: 0 0 82%;
    min-height: 154px;
  }
  .promo-copy { max-width: 62%; }
  .promo-card h3 { font-size: 1.22rem; }
  .promo-card p { font-size: .88rem; }
  .promo-card .btn { min-width: 118px; min-height: 38px; }
  .promo-visual { inset: 0 0 0 48%; }
  .category-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px 10px;
  }
  .category-art { font-size: 2.4rem; }
  .category-tile { font-size: .82rem; }
  .bundle-row, .featured-deals-grid { grid-template-columns: 1fr; }
  .bundle-card {
    min-height: 148px;
    grid-template-columns: minmax(0, 1fr) 118px;
    padding: 14px;
  }
  .bundle-copy strong { font-size: .98rem; }
  .bundle-copy p { font-size: .86rem; }
  .featured-deal-card {
    min-height: 148px;
    grid-template-columns: minmax(0, 1fr) 118px;
    padding: 14px;
  }
  .featured-deal-card h3 { font-size: .98rem; }
  .featured-deal-card p { font-size: .86rem; }
  .category-layout {
    width: 100%;
    grid-template-columns: 1fr;
    border-left: 0;
    border-right: 0;
    min-height: auto;
  }
  .category-title-bar {
    position: sticky;
    top: 128px;
    z-index: 12;
    background: #fff;
    align-items: start;
    flex-direction: column;
  }
  .sort-filter { width: 100%; }
  .sort-filter select { width: 100%; }
  .discovery-filters {
    grid-template-columns: 1fr;
    overflow-x: auto;
  }
  .filter-group {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
  }
  .filter-group span {
    width: auto;
    flex: 0 0 auto;
    align-self: center;
  }
  .subcat-rail { display: none; }
  .product-toolbar {
    display: flex;
    position: sticky;
    top: 217px;
    z-index: 12;
  }
  .product-grid, .compact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 8px;
  }
  .product-card {
    min-height: 266px;
    grid-template-rows: 108px auto auto 1fr auto;
    padding: 10px;
  }
  .product-image { font-size: 3.5rem; }
  .product-name { font-size: .86rem; }
  .pack { font-size: .82rem; }
  .add-button, .qty-stepper { min-width: 66px; height: 34px; }
  .info-copy { padding: 18px 16px 90px; }
  .detail-wrap, .checkout-wrap, .tracking-wrap, .account-grid, .support-grid {
    grid-template-columns: 1fr;
    width: min(100% - 20px, 1120px);
    margin-top: 16px;
  }
  .detail-image { min-height: 280px; font-size: 7rem; }
  .detail-grid, .related-grid, .detail-spec-grid, .trust-grid { grid-template-columns: 1fr; }
  .checkout-wrap, .tracking-wrap, .account-grid, .support-grid { padding-bottom: 78px; }
  .footer-grid, .footer-links { grid-template-columns: 1fr; }
  .mobile-bottom-nav { display: grid; }
  .sticky-mobile-cart.show { display: flex; }
  .sticky-mobile-cart { bottom: 72px; }
  .admin-shell {
    grid-template-columns: 1fr;
  }
  .admin-sidebar {
    position: static;
    height: auto;
    padding: 18px;
    gap: 14px;
  }
  .admin-nav {
    display: flex;
    overflow-x: auto;
    gap: 8px;
    padding-bottom: 4px;
  }
  .admin-nav button {
    flex: 0 0 auto;
    white-space: nowrap;
  }
  #adminLogout {
    margin-top: 0;
  }
  .admin-workspace {
    padding: 18px 10px 28px;
  }
  .admin-topbar {
    align-items: start;
    flex-direction: column;
  }
  .admin-stat-grid,
  .admin-grid.two {
    grid-template-columns: 1fr;
  }
  .admin-form-section {
    grid-template-columns: 1fr;
  }
  .admin-form-fields {
    grid-template-columns: 1fr;
  }
  .admin-panel-head {
    flex-direction: column;
  }
  .cart-drawer {
    top: 0;
    width: 100%;
  }
  .quick-drawer { width: 100%; }
  .toast-stack {
    left: 10px;
    right: 10px;
    bottom: 76px;
  }
}
