/* ZopCart premium UI upgrade: targeted overrides for the existing layout. */
:root {
  --primary: #0D1B3D;
  --secondary: #142856;
  --accent: #FF6B00;
  --accent-dark: #E65F00;
  --bg: #F8FAFC;
  --surface: #FFFFFF;
  --surface-soft: #F1F4FA;
  --text: #111827;
  --muted: #667085;
  --border: #D9E0EC;
  --danger: #E11D48;
  --warning: #F59E0B;
  --radius: 22px;
  --shadow-sm: 0 8px 22px rgba(3, 27, 22, 0.07);
  --shadow-md: 0 16px 42px rgba(3, 27, 22, 0.12);
  --shadow-lg: 0 24px 70px rgba(3, 27, 22, 0.16);
  --transition: 180ms ease;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
}

body.dark-mode {
  --bg: #071126;
  --surface: #0D1B3D;
  --surface-soft: #142856;
  --text: #F8FAFC;
  --muted: #B8C2D8;
  --border: #243965;
  color-scheme: dark;
}

body.dark-mode header {
  background: rgba(7, 17, 38, 0.78) !important;
  border-color: rgba(255, 255, 255, 0.08);
}

img {
  max-width: 100%;
}

button,
a {
  transition: color var(--transition), background-color var(--transition), border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

button:focus-visible,
input:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(255, 107, 0, 0.35);
  outline-offset: 3px;
}

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.78) !important;
  border-bottom: 1px solid rgba(221, 231, 226, 0.85);
  box-shadow: 0 14px 36px rgba(3, 27, 22, 0.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.site-header-bar {
  gap: 1rem;
}

.logo {
  color: var(--primary);
  font-size: 1.55rem;
  font-weight: 900;
  letter-spacing: 0;
  text-decoration: none;
}

.brand-logo-link {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.brand-logo-img {
  width: 156px;
  height: auto;
  display: block;
}

.brand-logo-copy {
  display: none;
}

.logo::after {
  content: "";
  display: block;
  width: 42px;
  height: 4px;
  margin-top: -2px;
  border-radius: 999px;
  background: var(--accent);
}

.location-chip {
  max-width: 300px;
  min-height: 46px;
  padding: 0.45rem 0.75rem;
  border: 1px solid rgba(3, 27, 22, 0.08);
  border-radius: 8px;
  background: rgba(241, 247, 244, 0.9);
  color: var(--secondary);
  font-size: 0.88rem;
}

#user-location {
  display: flex;
  max-width: 165px;
  min-width: 0;
  flex-direction: column;
  line-height: 1.15;
}

.location-primary,
.location-secondary {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.location-primary {
  font-weight: 800;
  color: var(--primary);
}

.location-secondary {
  margin-top: 0.12rem;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 600;
}

.location-pin {
  flex: 0 0 auto;
  line-height: 1;
}

.location-change {
  flex: 0 0 auto;
  font-weight: 700;
}

#search-input {
  flex: 1 1 auto;
  min-width: 0;
  height: 46px;
  border: 1px solid var(--border);
  border-right: 0;
  border-radius: 999px 0 0 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

#search-input:focus {
  border-color: rgba(34, 197, 94, 0.7);
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.14);
}

header button[onclick*="search"] {
  height: 46px;
  border-radius: 0 999px 999px 0;
  background: var(--primary) !important;
  color: #fff;
  font-weight: 700;
}

header button[onclick*="search"]:hover {
  background: var(--secondary) !important;
  box-shadow: 0 10px 24px rgba(3, 27, 22, 0.2);
}

.header-icon-btn,
.dark-mode-toggle {
  min-height: 40px;
  border-radius: 999px;
  color: var(--secondary);
  font-weight: 700;
}

.header-icon-btn:hover,
.dark-mode-toggle:hover {
  color: var(--accent-dark) !important;
  transform: translateY(-2px);
}

.nav-badge {
  min-width: 19px;
  height: 19px;
  padding: 0 0.35rem !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent) !important;
  color: var(--primary) !important;
  font-weight: 900;
  border: 2px solid #fff;
  animation: badgePulse 2.2s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

.category-strip {
  background: var(--primary) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.category-strip .flex {
  gap: 0.75rem;
  scrollbar-width: thin;
}

.category-strip a {
  min-width: 96px;
  padding: 0.65rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.9) !important;
}

.category-strip a:hover {
  transform: translateY(-3px);
  border-color: rgba(34, 197, 94, 0.54);
  background: rgba(34, 197, 94, 0.12);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.category-strip img {
  width: 56px !important;
  height: 38px !important;
  object-fit: contain;
}

/* Hero */
.hero-section {
  padding: 1.15rem clamp(0.75rem, 2vw, 1.5rem) 0;
}

.hero-section[data-aos] {
  opacity: 1 !important;
  transform: none !important;
}

.hero-swiper {
  width: min(1280px, 100%);
  height: clamp(450px, 45vw, 500px);
  margin: 0 auto;
  overflow: hidden;
  border-radius: 24px;
  background:
    radial-gradient(circle at 80% 15%, rgba(34, 197, 94, 0.32), transparent 30%),
    linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: var(--shadow-lg);
}

.swiper-wrapper,
.swiper-slide {
  height: 100%;
}

.swiper-slide {
  position: relative;
  overflow: hidden;
  background: var(--secondary);
}

.hero-image,
.swiper-slide img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transform: scale(1.02);
}

.swiper-slide-active .hero-image {
  animation: heroZoom 5s ease forwards;
}

@keyframes heroZoom {
  from { transform: scale(1.08); }
  to { transform: scale(1.01); }
}

.swiper-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(3, 27, 22, 0.78), rgba(3, 27, 22, 0.4) 46%, rgba(3, 27, 22, 0.08));
}

.hero-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  max-width: 720px;
  padding: clamp(2rem, 6vw, 4.5rem);
  color: #fff;
  text-align: left;
}

.hero-kicker {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 0.9rem;
  padding: 0.45rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #D9FFE7;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

.hero-content h1 {
  max-width: 13.5ch;
  font-size: clamp(2.35rem, 6vw, 4.8rem) !important;
  line-height: 0.96;
  font-weight: 900;
  letter-spacing: 0;
}

.hero-content p {
  max-width: 34rem;
  margin-top: 1rem;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1rem, 2vw, 1.25rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
  margin-top: 1.6rem;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem 1.25rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--primary);
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(34, 197, 94, 0.32);
}

.hero-cta:hover {
  transform: translateY(-2px);
  background: #4ADE80;
}

.hero-cta-secondary {
  border: 1px solid rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  box-shadow: none;
  backdrop-filter: blur(12px);
}

.hero-cta-secondary:hover {
  background: rgba(255, 255, 255, 0.22);
}

.hero-countdown {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.25rem;
}

.hero-countdown span {
  min-width: 70px;
  padding: 0.55rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.13);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.72rem;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
}

.hero-countdown strong {
  display: block;
  color: #fff;
  font-size: 1.15rem;
  line-height: 1.1;
}

.swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background: rgba(255, 255, 255, 0.72);
  opacity: 1;
}

.swiper-pagination-bullet-active {
  width: 32px;
  border-radius: 999px;
  background: var(--accent);
}

/* Sections and cards */
section {
  padding-top: clamp(3rem, 6vw, 4.5rem) !important;
  padding-bottom: clamp(3rem, 6vw, 4.5rem) !important;
}

section h2 {
  color: var(--primary);
  font-weight: 900;
  letter-spacing: 0;
}

section h2 + p {
  color: var(--muted);
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.35rem);
}

.category-card {
  border: 0;
  min-height: 245px;
  padding: 1.35rem;
  border: 1px solid rgba(221, 231, 226, 0.95);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 248, 247, 0.9));
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.category-card::before {
  content: "";
  position: absolute;
  inset: auto 18% -38% 18%;
  height: 90px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.2);
  filter: blur(28px);
  opacity: 0;
  transition: opacity var(--transition), transform var(--transition);
}

.category-card:hover {
  transform: translateY(-8px);
  border-color: rgba(34, 197, 94, 0.55);
  box-shadow: var(--shadow-md);
}

.category-card:hover::before {
  opacity: 1;
  transform: translateY(-8px);
}

.category-card img {
  width: 140px !important;
  height: 135px !important;
  object-fit: contain;
  margin-bottom: 1rem;
  filter: drop-shadow(0 12px 18px rgba(3, 27, 22, 0.1));
}

.category-card:hover img {
  transform: scale(1.08);
}

.category-name,
.category-card p {
  color: var(--primary);
  font-size: 1rem;
  font-weight: 850;
}

.category-count {
  margin-top: 0.22rem;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 750;
}

.category-skeleton {
  min-height: 245px;
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.62), transparent),
    linear-gradient(180deg, #EEF6F1, #FFFFFF);
  background-size: 220% 100%, 100% 100%;
  border: 1px solid rgba(221, 231, 226, 0.95);
  box-shadow: var(--shadow-sm);
  animation: skeletonShimmer 1.15s ease-in-out infinite;
}

@keyframes skeletonShimmer {
  from { background-position: 180% 0, 0 0; }
  to { background-position: -80% 0, 0 0; }
}

#popular-products .grid {
  align-items: stretch;
}

.home-market-section {
  padding-top: clamp(2.4rem, 5vw, 4rem) !important;
  padding-bottom: clamp(2.4rem, 5vw, 4rem) !important;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.35rem;
}

.section-heading h2 {
  margin: 0 0 0.2rem;
  color: var(--primary);
  font-size: clamp(1.55rem, 3vw, 2.25rem);
  font-weight: 900;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.section-link {
  flex: 0 0 auto;
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--secondary);
  font-size: 0.86rem;
  font-weight: 900;
}

.section-link:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
  transform: translateY(-2px);
}

.market-rail,
.store-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(245px, 1fr);
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  overflow-x: auto;
  padding: 0.25rem 0.15rem 0.7rem;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
}

.market-rail > *,
.store-rail > * {
  scroll-snap-align: start;
}

.product-card {
  min-height: 520px;
  height: 100%;
  border: 1px solid rgba(221, 231, 226, 0.95);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.product-card-compact {
  min-width: 245px;
  min-height: 500px;
}

.product-card:hover {
  transform: translateY(-8px);
  border-color: rgba(34, 197, 94, 0.52);
  box-shadow: var(--shadow-md);
}

.product-card:focus-visible {
  outline: 3px solid rgba(34, 197, 94, 0.5);
  outline-offset: 4px;
}

.product-image-container {
  width: 100%;
  height: 220px;
  padding: 1rem;
  background: linear-gradient(180deg, #F7FAF8, #EEF6F1);
  overflow: hidden;
  flex: 0 0 auto;
}

.product-image-container img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  mix-blend-mode: multiply;
}

.product-card:hover .product-image-container img {
  transform: scale(1.08);
}

.wishlist-btn {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(221, 231, 226, 0.9);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-sm);
}

.wishlist-btn:hover {
  transform: scale(1.08);
  background: #FFF1F2;
}

.wishlist-btn.active {
  animation: heartBeat 650ms ease;
}

@keyframes heartBeat {
  0%, 100% { transform: scale(1); }
  35% { transform: scale(1.22); }
  62% { transform: scale(0.96); }
}

.discount-badge,
.conversion-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(34, 197, 94, 0.24);
}

.badge-stack {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
}

.conversion-badge {
  position: static;
  display: inline-flex;
  width: fit-content;
}

.conversion-badge.deal {
  background: #DCFCE7;
  color: #14532D;
}

.conversion-badge.limited {
  background: #FEF3C7;
  color: #92400E;
}

.conversion-badge.seller {
  background: #FFE4E6;
  color: #9F1239;
}

.conversion-badge.new {
  background: #DBEAFE;
  color: #1E40AF;
}

.product-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.72rem;
  padding: 1rem;
}

.product-title {
  min-height: 2.9rem;
  color: var(--primary);
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.stock-pill {
  flex: 0 0 auto;
  padding: 0.24rem 0.52rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 900;
}

.stock-pill.in {
  background: #DCFCE7;
  color: #166534;
}

.stock-pill.low {
  background: #FEF3C7;
  color: #92400E;
}

.stock-pill.out {
  background: #FFE4E6;
  color: #9F1239;
}

.vendor-block {
  display: grid;
  gap: 0.18rem;
  padding: 0.72rem;
  border: 1px solid rgba(221, 231, 226, 0.9);
  border-radius: 16px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.3;
}

.vendor-block strong {
  color: var(--secondary);
  font-size: 0.88rem;
}

.product-price-section {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.product-price {
  color: var(--secondary);
  font-size: 1.28rem;
  font-weight: 900;
}

.product-original-price {
  color: var(--muted);
  font-size: 0.88rem;
  text-decoration: line-through;
}

.product-rating {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.5rem;
  border-radius: 999px;
  background: #FFFBEB;
  color: #92400E;
  font-size: 0.78rem;
  font-weight: 800;
}

.product-actions {
  display: flex;
  gap: 0.7rem;
  margin-top: auto;
}

.btn-action {
  min-height: 46px;
  flex: 1;
  border-radius: 15px;
  font-size: 0.83rem;
  font-weight: 900;
  text-align: center;
}

.btn-action:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none !important;
  box-shadow: none !important;
}

.btn-add-cart {
  border: 1px solid rgba(3, 27, 22, 0.18);
  background: #fff;
  color: var(--primary);
}

.btn-add-cart:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
  box-shadow: var(--shadow-sm);
}

.btn-buy-now {
  background: var(--primary);
  color: #fff;
}

.btn-buy-now:hover {
  transform: translateY(-2px);
  background: var(--secondary);
  box-shadow: 0 12px 26px rgba(3, 27, 22, 0.2);
}

.product-skeleton,
.store-skeleton {
  min-height: 500px;
  border: 1px solid rgba(221, 231, 226, 0.95);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.65), transparent),
    linear-gradient(180deg, #EEF6F1, #FFFFFF);
  background-size: 220% 100%, 100% 100%;
  box-shadow: var(--shadow-sm);
  animation: skeletonShimmer 1.15s ease-in-out infinite;
}

.store-skeleton {
  min-height: 320px;
}

.empty-state {
  display: flex;
  min-height: 190px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1.25rem;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  background: var(--surface-soft);
  color: var(--muted);
  text-align: center;
}

.empty-state strong {
  color: var(--primary);
}

.rail-empty {
  min-width: 245px;
  grid-column: 1 / -1;
}

.store-card {
  min-width: 260px;
  overflow: hidden;
  border: 1px solid rgba(221, 231, 226, 0.95);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.store-card:hover {
  transform: translateY(-6px);
  border-color: rgba(34, 197, 94, 0.52);
  box-shadow: var(--shadow-md);
}

.store-image-wrap {
  height: 150px;
  padding: 0.75rem;
  background: linear-gradient(180deg, #F7FAF8, #EEF6F1);
}

.store-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
}

.store-card-body {
  display: grid;
  gap: 0.45rem;
  padding: 1rem;
}

.store-card-body h3 {
  margin: 0;
  color: var(--primary);
  font-size: 1rem;
  font-weight: 900;
}

.store-card-body span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 750;
}

.store-view-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  margin-top: 0.35rem;
  border-radius: 14px;
  background: var(--primary);
  color: #fff;
  font-weight: 900;
}

.store-view-btn:hover {
  background: var(--secondary);
}

.location-chip {
  position: relative;
  width: min(100%, 310px);
  min-height: 64px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 18px;
  grid-template-rows: auto auto;
  column-gap: 0.7rem;
  align-items: center;
  padding: 0.72rem 0.9rem;
  border: 1px solid rgba(3, 27, 22, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 34px rgba(3, 27, 22, 0.1);
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.location-chip:hover {
  transform: translateY(-2px);
  border-color: rgba(22, 163, 74, 0.34);
  box-shadow: 0 20px 42px rgba(3, 27, 22, 0.14);
}

.location-pin {
  grid-row: 1 / 3;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #dcfce7;
  color: #16a34a;
  font-size: 1rem;
}

.location-kicker {
  color: #64746e;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0;
}

.location-change {
  grid-column: 3;
  grid-row: 1 / 3;
  color: #16a34a;
  font-size: 1rem;
}

#user-location {
  grid-column: 2;
  max-width: none;
}

.location-primary {
  color: #031b16;
  font-size: 1.02rem;
  font-weight: 900;
}

.location-secondary {
  color: #55645f;
  font-size: 0.78rem;
  font-weight: 700;
}

.location-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(3, 27, 22, 0.52);
  backdrop-filter: blur(8px);
  animation: locationModalFade 0.18s ease;
}

.location-modal.hidden {
  display: none;
}

.location-modal-panel {
  width: min(860px, 100%);
  max-height: min(78vh, 720px);
  overflow-y: auto;
  border: 1px solid rgba(225, 234, 230, 0.95);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 24px 70px rgba(3, 27, 22, 0.26);
  animation: locationPanelScale 0.2s ease;
}

.location-modal-header,
.location-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
}

.location-modal-header {
  border-bottom: 1px solid #e5eee9;
}

.location-modal-header h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: #031b16;
  font-size: 1.38rem;
  font-weight: 900;
  line-height: 1.18;
}

.location-modal-header p {
  margin: 4px 0 0;
  color: #61736c;
  font-size: 0.86rem;
  font-weight: 650;
}

.location-modal-close {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #f1f5f3;
  color: #20312b;
  font-size: 1.25rem;
  font-weight: 800;
  transition: background 0.18s ease, transform 0.18s ease;
}

.location-modal-close:hover {
  background: #e6eee9;
  transform: scale(1.04);
}

.location-status-card {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin: 12px 18px;
  padding: 8px 12px;
  border: 1px solid #dce9e2;
  border-radius: 14px;
  background: #f6fbf8;
}

.location-status-card.is-available {
  border-color: rgba(22, 163, 74, 0.24);
  background: #effcf4;
}

.location-status-card.is-blocked {
  border-color: rgba(220, 38, 38, 0.2);
  background: #fff5f5;
}

.location-status-card strong,
.location-action-card h3,
.location-search-heading h3,
.location-list-title h3 {
  margin: 0;
  color: #031b16;
  font-weight: 900;
  line-height: 1.2;
}

.location-status-card p,
.location-action-card p,
.location-search-heading span,
.location-list-title span {
  margin: 2px 0 0;
  color: #60736b;
  font-size: 0.8rem;
  font-weight: 650;
  line-height: 1.35;
}

.location-status-card strong {
  font-size: 0.9rem;
}

.location-status-card p {
  font-size: 0.78rem;
}

.location-confirm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.status-dot {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  margin-top: 0;
  border-radius: 999px;
  background: #94a3b8;
  box-shadow: 0 0 0 4px rgba(148, 163, 184, 0.12);
}

.status-dot-green { background: #16a34a; box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.14); }
.status-dot-red { background: #dc2626; box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.12); }

.location-modal-grid,
.location-lists {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 12px;
  padding: 0 18px 12px;
}

.location-action-card,
.location-search-card,
.location-lists section {
  border: 1px solid #e2ece6;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(3, 27, 22, 0.05);
}

.location-action-card {
  display: flex;
  min-height: 148px;
  flex-direction: column;
  justify-content: space-between;
  padding: 14px !important;
  padding-block: 14px !important;
}

.location-action-icon {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  border-radius: 10px;
  background: #dcfce7;
  color: #16a34a;
  font-size: 1rem;
}

.location-action-card button,
.location-primary-btn,
.location-search-box button {
  min-height: 40px;
  border-radius: 12px;
  background: #16a34a;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 900;
  box-shadow: 0 10px 18px rgba(22, 163, 74, 0.18);
  transition: background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.location-action-card button:hover,
.location-primary-btn:hover,
.location-search-box button:hover {
  background: #12883e;
  box-shadow: 0 12px 22px rgba(22, 163, 74, 0.22);
  transform: translateY(-1px);
}

.location-search-card {
  padding: 14px !important;
  padding-block: 14px !important;
}

.location-search-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 40px;
  gap: 8px;
  margin-top: 8px;
}

.location-search-box input {
  min-height: 40px;
  min-width: 0;
  border: 1px solid #d9e5df;
  border-radius: 12px;
  padding: 0 12px;
  color: #031b16;
  font-size: 0.92rem;
  font-weight: 700;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.location-search-box input:focus {
  border-color: rgba(22, 163, 74, 0.55);
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.12);
}

.location-search-box button {
  width: 40px;
  padding: 0;
  font-size: 1rem;
}

.location-suggestions,
.location-list-stack {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.location-suggestions:not(:empty),
.location-list-stack {
  max-height: 168px;
  overflow-y: auto;
  padding-right: 2px;
}

.location-suggestion,
.location-list-item {
  display: flex;
  width: 100%;
  gap: 8px;
  align-items: flex-start;
  padding: 9px 10px;
  border: 1px solid #edf3ef;
  border-radius: 12px;
  background: #fbfdfc;
  text-align: left;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.location-suggestion:hover,
.location-list-item:hover {
  transform: translateY(-1px);
  border-color: rgba(22, 163, 74, 0.32);
  background: #f2fbf6;
}

.location-suggestion strong,
.location-list-item strong {
  display: block;
  color: #031b16;
  font-size: 0.88rem;
  font-weight: 900;
  line-height: 1.2;
}

.location-suggestion small,
.location-list-item small,
.location-suggestion-muted,
.location-list-empty {
  display: block;
  color: #66776f;
  font-size: 0.78rem;
  font-weight: 650;
  line-height: 1.35;
}

.location-lists section {
  min-height: 104px;
  padding: 12px !important;
  padding-block: 12px !important;
}

body .location-modal .location-action-card,
body .location-modal .location-search-card {
  padding: 14px !important;
  padding-block: 14px !important;
}

body .location-modal .location-lists section {
  padding: 12px !important;
  padding-block: 12px !important;
}

.location-list-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.location-modal-footer {
  padding-top: 12px;
  border-top: 1px solid #e5eee9;
}

.location-modal-footer > div {
  display: flex;
  gap: 8px;
}

.delivery-availability,
.location-cancel-btn {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 12px;
  font-size: 0.84rem;
  font-weight: 900;
}

.delivery-availability {
  background: #f1f5f3;
  color: #40524b;
}

.delivery-availability.is-available {
  background: #dcfce7;
  color: #166534;
}

.delivery-availability.is-blocked {
  background: #fee2e2;
  color: #991b1b;
}

.location-cancel-btn {
  border: 1px solid #d9e5df;
  background: #fff;
  color: #304039;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.location-cancel-btn:hover {
  border-color: #bfd0c8;
  background: #f6faf8;
}

@keyframes locationModalFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes locationPanelScale {
  from { opacity: 0; transform: scale(0.985); }
  to { opacity: 1; transform: scale(1); }
}

.verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  width: max-content;
  border-radius: 999px;
  padding: 0.18rem 0.5rem;
  background: #dcfce7;
  color: #15803d;
  font-size: 0.72rem;
  font-weight: 900;
}

.store-open-status.is-open { color: #15803d; }
.store-open-status.is-closed { color: #b91c1c; }

@media (max-width: 760px) {
  .location-chip {
    width: 100%;
    min-height: 54px;
    grid-template-columns: 30px minmax(0, 1fr) 16px;
    padding: 0.6rem 0.72rem;
  }

  .location-pin {
    width: 30px;
    height: 30px;
  }

  .location-kicker {
    font-size: 0.66rem;
  }

  .location-primary {
    font-size: 0.94rem;
  }

  .location-secondary {
    font-size: 0.72rem;
  }

  .location-modal {
    align-items: flex-end;
    padding: 0;
  }

  .location-modal-panel {
    width: 100%;
    max-height: 86vh;
    border-radius: 20px 20px 0 0;
  }

  .location-modal-header,
  .location-modal-footer {
    padding: 12px 16px;
  }

  .location-modal-header h2 {
    font-size: 1.08rem;
  }

  .location-modal-header p {
    font-size: 0.78rem;
  }

  .location-modal-grid,
  .location-lists {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 0 16px 8px;
  }

  .location-status-card {
    margin: 12px 16px;
  }

  .location-action-card,
  .location-lists section {
    min-height: 0;
  }

  .location-search-box {
    grid-template-columns: minmax(0, 1fr) 40px;
  }

  .location-modal-footer {
    align-items: center;
    flex-direction: row;
  }

  .location-modal-footer > div {
    display: grid;
    grid-template-columns: 1fr;
  }
}

.search-shell {
  position: relative;
}

.search-suggestions-panel {
  position: absolute;
  top: calc(100% + 0.55rem);
  left: 0;
  right: 0;
  z-index: 80;
  max-height: min(440px, 72vh);
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-lg);
  padding: 0.85rem;
}

.search-suggestions-panel.hidden {
  display: none;
}

.suggestion-group {
  display: grid;
  gap: 0.35rem;
  padding: 0.4rem 0;
}

.suggestion-group + .suggestion-group {
  border-top: 1px solid var(--border);
}

.suggestion-group strong {
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.suggestion-group a,
.suggestion-group button {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.65rem 0.7rem;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--secondary);
  font-size: 0.92rem;
  font-weight: 800;
  text-align: left;
}

.suggestion-group a:hover,
.suggestion-group button:hover {
  background: var(--surface-soft);
}

.suggestion-group span,
.search-empty span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.search-empty {
  display: grid;
  gap: 0.2rem;
  padding: 1rem;
  color: var(--muted);
}

/* Toasts */
.toast-container {
  position: fixed;
  top: 104px;
  right: 18px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  width: min(380px, calc(100vw - 32px));
}

.toast {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.95rem 1rem;
  border: 1px solid var(--border);
  border-left: 5px solid var(--accent);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-md);
  animation: toastIn 260ms ease;
}

.toast.error { border-left-color: var(--danger); }
.toast.warning { border-left-color: var(--warning); }
.toast.info { border-left-color: var(--secondary); }

.toast-icon {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-soft);
  color: var(--primary);
  font-weight: 900;
  flex: 0 0 auto;
}

.toast-title {
  color: var(--primary);
  font-weight: 900;
}

.toast-message {
  color: var(--muted);
  font-size: 0.9rem;
}

.toast.removing {
  animation: toastOut 220ms ease forwards;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateX(28px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes toastOut {
  to { opacity: 0; transform: translateX(28px); }
}

/* Voice button added by assets/js/voice.js */
#voice-btn {
  width: 64px !important;
  height: 64px !important;
  right: 24px !important;
  bottom: 24px !important;
  padding: 0 !important;
  border-radius: 999px !important;
  background: var(--primary) !important;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.42), var(--shadow-lg) !important;
  color: #fff !important;
  justify-content: center !important;
  animation: voicePulse 2.2s infinite !important;
}

#voice-btn span {
  display: none;
}

#voice-btn:hover {
  transform: translateY(-4px) scale(1.04);
  background: var(--secondary) !important;
}

@keyframes voicePulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.42), var(--shadow-lg); }
  72% { box-shadow: 0 0 0 16px rgba(34, 197, 94, 0), var(--shadow-lg); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0), var(--shadow-lg); }
}

.floating-cart-btn {
  position: fixed;
  right: 24px;
  bottom: 104px;
  z-index: 9998;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 84px;
  height: 48px;
  padding: 0 16px;
  border-radius: 999px;
  background: #031b16;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 16px 34px rgba(3, 27, 22, 0.24);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px) scale(0.92);
  transition: opacity 180ms ease, transform 180ms ease, background 160ms ease, box-shadow 160ms ease;
}

.floating-cart-btn.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.floating-cart-btn:hover,
.floating-cart-btn:focus-visible {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 18px 38px rgba(3, 27, 22, 0.28);
  transform: translateY(-2px) scale(1.02);
}

.floating-cart-btn:focus-visible {
  outline: 3px solid rgba(45, 212, 191, 0.55);
  outline-offset: 3px;
}

.floating-cart-icon,
.floating-cart-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Footer */
footer {
  margin-top: 3rem;
  border-top: 1px solid var(--border);
  background: var(--primary);
  color: rgba(255, 255, 255, 0.84);
}

footer .max-w-7xl {
  padding-top: 3.5rem;
  padding-bottom: 2rem;
}

footer h3 {
  margin-bottom: 1rem;
  color: #fff;
  font-weight: 900;
}

footer p,
footer a,
footer .copyright {
  color: rgba(255, 255, 255, 0.68);
}

footer a:hover {
  color: var(--accent);
  transform: translateX(3px);
}

.footer-social {
  display: flex;
  gap: 0.8rem;
}

.footer-social a {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
}

.footer-social a:hover {
  transform: translateY(-3px);
  background: rgba(34, 197, 94, 0.14);
}

.payment-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.1rem;
}

.payment-icons span {
  padding: 0.42rem 0.62rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 900;
}

.newsletter-form {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 0.35rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
}

.newsletter-form input {
  min-width: 0;
  flex: 1;
  border: 0;
  background: transparent;
  color: #fff;
  padding: 0.65rem 0.8rem;
}

.newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.52);
}

.newsletter-form button {
  flex: 0 0 auto;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: var(--primary);
  padding: 0.65rem 0.9rem;
  font-weight: 900;
}

.newsletter-form button:hover {
  background: #4ADE80;
}

footer .divider {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

footer .copyright {
  padding: 0 1rem 1.5rem;
  text-align: center;
  font-size: 0.9rem;
}

.reveal,
.reveal-left,
.reveal-right {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.reveal.active,
.reveal-left.active,
.reveal-right.active {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1024px) {
  .categories-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .market-rail,
  .store-rail {
    grid-template-columns: none;
    grid-auto-columns: minmax(238px, 34vw);
  }

  .category-card {
    min-height: 220px;
  }

  .category-card img {
    width: 112px !important;
    height: 112px !important;
  }
}

@media (max-width: 1280px) {
  .header-icon-btn,
  .dark-mode-toggle,
  .wishlist-btn,
  .btn-action,
  .category-chip,
  .view-toggle button,
  .toolbar-icon-btn,
  .filter-trigger,
  .filter-title-row button,
  .filter-apply,
  .filter-reset,
  .pagination-row button,
  #review-form button,
  .product-purchase-panel button,
  .delivery-card button {
    min-height: 44px !important;
  }

  .header-icon-btn,
  .dark-mode-toggle,
  .wishlist-btn {
    min-width: 44px !important;
  }

  .home-page .site-header-bar {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .home-page .header-actions {
    grid-column: 2;
    grid-row: 1;
    justify-content: flex-end;
    overflow: visible;
    width: auto;
    min-width: 0;
    padding-bottom: 0;
  }

  .home-page #user-menu-btn {
    min-width: 76px !important;
    max-width: none;
    padding-inline: 0.65rem;
    gap: 0.32rem;
  }

  .home-page #user-link {
    position: static !important;
    width: auto !important;
    height: auto !important;
    overflow: visible !important;
    clip: auto !important;
    white-space: nowrap;
  }

  .home-page #dropdown-arrow {
    flex: 0 0 auto;
  }

  .header-cart-link {
    display: none !important;
  }

  .wishlist-btn {
    width: 44px !important;
    height: 44px !important;
  }
}

@media (min-width: 769px) {
  .site-header-bar > .desktop-search {
    display: flex !important;
  }

  .site-header-bar > .mobile-search {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .site-header-bar {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .site-header-bar > .desktop-search {
    display: none !important;
  }

  .site-header-bar > .mobile-search {
    display: flex !important;
    order: 3;
    flex: 0 0 100% !important;
    flex-basis: 100%;
    width: 100%;
    max-width: min(100%, 358px);
    min-width: 0;
    margin: 0.4rem 0 0;
  }

  .site-header-bar > .flex.items-center.gap-4 {
    gap: 0.45rem;
    margin-left: auto;
    min-width: 0;
  }

  .location-chip {
    max-width: 180px;
  }

  .hero-section {
    padding-inline: 0.75rem;
  }

  .hero-swiper {
    height: 430px;
    border-radius: 20px;
  }

  .swiper-slide::after {
    background: linear-gradient(180deg, rgba(3, 27, 22, 0.32), rgba(3, 27, 22, 0.82));
  }

  .hero-content {
    justify-content: flex-end;
    padding: 1.45rem;
  }

  .hero-content h1 {
    max-width: 11ch;
  }

  .section-heading {
    align-items: flex-start;
  }

  .market-rail,
  .store-rail {
    margin-inline: -0.75rem;
    padding-inline: 0.75rem;
    grid-auto-columns: minmax(232px, 42vw);
  }

  .categories-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-card {
    min-height: 500px;
  }
}

@media (max-width: 520px) {
  .logo {
    font-size: 1.25rem;
  }

  .location-chip {
    display: none !important;
  }

  .header-icon-btn {
    font-size: 0.86rem;
  }

  .wishlist-label {
    display: none;
  }

  #user-menu-btn {
    max-width: 74px;
  }

  #user-link {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .dark-mode-toggle {
    display: none;
  }

  .category-strip a {
    min-width: 82px;
    padding: 0.55rem;
  }

  .categories-grid {
    display: grid !important;
    width: min(100%, 358px);
    max-width: 358px;
    margin-left: auto;
    margin-right: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.875rem !important;
    overflow: hidden;
  }

  .categories-grid > .category-card {
    min-width: 0;
    width: 100%;
  }

  .search-input {
    width: 0 !important;
    max-width: 282px;
    flex: 1 1 0;
  }

  header button[onclick*="search"] {
    flex: 0 0 auto;
    width: 76px;
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
    font-size: 0.88rem;
  }

  .hero-swiper {
    width: min(calc(100vw - 24px), 366px);
    max-width: 366px;
    height: 390px;
    margin-left: 12px;
    margin-right: 12px;
  }

  .hero-content h1 {
    max-width: 12ch;
    font-size: 2.05rem !important;
    line-height: 1;
  }

  .hero-content p {
    font-size: 0.94rem;
  }

  .hero-countdown {
    gap: 0.45rem;
  }

  .hero-countdown span {
    min-width: 58px;
    padding: 0.45rem 0.5rem;
  }

  .hero-actions {
    width: 100%;
    gap: 0.55rem;
  }

  .hero-cta {
    flex: 1 1 130px;
    min-height: 44px;
    padding-inline: 0.75rem;
    font-size: 0.86rem;
  }

  .category-card {
    min-height: 185px;
    padding: 1rem;
    border-radius: 18px;
  }

  .category-card img {
    width: 92px !important;
    height: 92px !important;
  }

  #popular-products .grid {
    grid-template-columns: 1fr;
  }

  .section-heading {
    flex-direction: column;
    gap: 0.55rem;
  }

  .section-link {
    align-self: flex-start;
  }

  .market-rail,
  .store-rail {
    grid-auto-columns: minmax(236px, 82vw);
  }

  .product-card,
  .product-card-compact {
    min-height: 492px;
  }

  .product-image-container {
    height: 190px;
  }

  .vendor-block {
    font-size: 0.74rem;
  }

  .store-card {
    min-width: 236px;
  }

  .search-suggestions-panel {
    position: fixed;
    top: 128px;
    left: 12px;
    right: 12px;
    max-height: 58vh;
  }

  .product-actions {
    flex-direction: column;
  }

  #voice-btn {
    width: 58px !important;
    height: 58px !important;
    right: 16px !important;
    bottom: 16px !important;
  }

  .floating-cart-btn {
    right: 16px;
    bottom: 88px;
    min-width: 78px;
    height: 44px;
    padding: 0 14px;
    gap: 7px;
    font-size: 0.9rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* Final mobile cascade guard: this block must stay last. */
@media (max-width: 900px) {
  body {
    width: 100%;
    overflow-x: clip;
  }

  .offer-bar,
  .category-strip,
  footer {
    max-width: 100vw;
    overflow-x: clip;
  }

  .category-chip-bar,
  .trending-chip-bar {
    max-width: 100%;
    overflow-x: clip;
  }

  .category-chips,
  .category-strip-inner {
    max-width: 100%;
    overflow-x: auto;
  }

  .mobile-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 70;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.12rem;
    padding: 0.42rem max(0.45rem, env(safe-area-inset-left)) calc(0.42rem + env(safe-area-inset-bottom)) max(0.45rem, env(safe-area-inset-right));
    border-top: 1px solid rgba(3, 27, 22, 0.12);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 -12px 28px rgba(15, 23, 42, 0.12);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }

  .mobile-bottom-nav a,
  .header-icon-btn,
  .dark-mode-toggle,
  .wishlist-btn,
  .btn-action,
  .category-chip,
  .view-toggle button,
  .filter-trigger,
  .pagination-row button,
  .toolbar-icon-btn,
  #apply-price,
  #clear-filters,
  .product-purchase-panel button,
  #review-form button,
  .tab-button {
    min-height: 44px !important;
  }

  .header-icon-btn,
  .dark-mode-toggle,
  .wishlist-btn {
    min-width: 44px !important;
  }

  .wishlist-btn {
    width: 44px !important;
    height: 44px !important;
  }

  footer .max-w-7xl,
  .footer-grid,
  .footer-brand,
  .newsletter-form {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }
}

@media (max-width: 680px) {
  .footer-grid {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .newsletter-form {
    border-radius: 12px;
  }

  .newsletter-form input {
    font-size: 16px;
  }
}

/* ZopCart homepage mobile hero compacting guard. */
@media (max-width: 900px) {
  .home-page .hero-swiper,
  .home-page .hero-panel {
    height: 268px !important;
    min-height: 268px !important;
    max-height: 268px !important;
  }

  .home-page .hero-panel {
    grid-template-columns: minmax(0, 1fr) 104px !important;
    align-items: center !important;
    overflow: hidden !important;
  }

  .home-page .hero-copy {
    height: auto !important;
    max-height: 236px !important;
    align-self: center !important;
    overflow: hidden !important;
  }

  .home-page .hero-copy h1 {
    font-size: clamp(1.36rem, 7vw, 1.72rem) !important;
    line-height: 1.04 !important;
  }

  .home-page .hero-copy p {
    display: -webkit-box !important;
    max-width: 23ch !important;
    margin-top: 0.36rem !important;
    overflow: hidden !important;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-size: 0.72rem !important;
    line-height: 1.32 !important;
  }

  .home-page .hero-stats {
    display: flex !important;
    height: auto !important;
    margin-top: 0.46rem !important;
  }

  .home-page .hero-stats span:nth-child(n+2) {
    display: none !important;
  }

  .home-page .hero-actions {
    height: auto !important;
    margin-top: 0.48rem !important;
  }

  .home-page .hero-art {
    position: absolute !important;
    right: 0.55rem !important;
    bottom: 0.55rem !important;
    width: 104px !important;
    pointer-events: none !important;
  }

  .home-page .hero-art img {
    max-height: 92px !important;
  }
}

/* Homepage production mobile override. Keep this as the last homepage block. */
.home-page {
  --bottom-nav-height: 72px;
  --zopcart-voice-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
}

.home-page,
.home-page main,
.home-page .supermart-header,
.home-page footer {
  max-width: 100%;
  overflow-x: clip;
}

.home-page .market-rail,
.home-page .store-rail,
.home-page .promo-section {
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.home-page .market-rail::-webkit-scrollbar,
.home-page .store-rail::-webkit-scrollbar,
.home-page .promo-section::-webkit-scrollbar {
  display: none;
}

.home-page .product-card,
.home-page .store-card,
.home-page .promo-card,
.home-page .category-card {
  contain: layout paint;
}

.home-page .product-title,
.home-page .store-card-body h3 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.home-page .product-title,
.home-page .store-card-body h3 {
  -webkit-line-clamp: 2;
}

.home-page .product-meta-row > span:first-child,
.home-page .category-name,
.home-page .vendor-block strong {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-page .product-price {
  white-space: nowrap;
}

.home-page .product-image-container,
.home-page .store-image-wrap {
  height: auto;
  aspect-ratio: 4 / 3;
}

.home-page .mobile-bottom-nav a.active,
.home-page .mobile-bottom-nav a[aria-current="page"] {
  background: rgba(7, 140, 55, 0.1);
  color: #078c37;
  box-shadow: inset 0 0 0 1px rgba(7, 140, 55, 0.16);
}

@media (max-width: 900px) {
  .home-page {
    --zopcart-voice-bottom: calc(var(--bottom-nav-height) + 16px + env(safe-area-inset-bottom, 0px));
    padding-bottom: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom, 0px));
  }

  .home-page footer {
    margin-bottom: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom, 0px));
  }

  .home-page .site-header-bar {
    width: 100%;
    max-width: 100%;
    display: grid;
    grid-template-columns: minmax(104px, 1fr) auto;
    align-items: center;
    gap: 0.45rem 0.55rem;
    padding: 0.42rem 0.75rem 0.5rem;
  }

  .home-page .logo {
    min-width: 0;
  }

  .home-page .brand-logo-img {
    width: clamp(104px, 31vw, 126px) !important;
  }

  .home-page .logo::after,
  .home-page .brand-logo-copy {
    display: none;
  }

  .home-page .header-actions {
    max-width: min(190px, 48vw);
    display: flex;
    justify-content: flex-end;
    gap: 0.28rem;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .home-page .header-actions::-webkit-scrollbar {
    display: none;
  }

  .home-page .header-icon-btn,
  .home-page .dark-mode-toggle {
    width: 38px !important;
    min-width: 38px !important;
    min-height: 38px !important;
    padding: 0 !important;
    border-radius: 10px;
  }

  .home-page #user-menu-btn {
    width: auto !important;
    min-width: 62px !important;
    padding-inline: 0.42rem !important;
  }

  .home-page #user-link {
    position: static !important;
    width: auto !important;
    height: auto !important;
    clip: auto !important;
    overflow: visible !important;
    font-size: 0.78rem;
  }

  .home-page .location-chip {
    width: 100%;
    max-width: 100%;
    min-height: 40px !important;
    grid-column: 1 / -1;
    grid-template-columns: 28px minmax(0, 1fr) 16px;
    gap: 0.42rem;
    padding: 0.38rem 0.55rem !important;
    border-radius: 10px;
  }

  .home-page .location-pin {
    width: 28px;
    height: 28px;
  }

  .home-page .location-kicker {
    font-size: 0.62rem;
  }

  .home-page .location-primary {
    font-size: 0.86rem;
  }

  .home-page .location-secondary {
    font-size: 0.68rem;
  }

  .home-page .mobile-search {
    width: 100%;
    max-width: 100%;
    grid-column: 1 / -1;
    margin: 0;
  }

  .home-page .mobile-search .search-input {
    min-width: 0;
    height: 40px !important;
    font-size: 16px;
  }

  .home-page .mobile-search button,
  .home-page header button[onclick*="search"] {
    min-width: 48px;
    height: 40px !important;
    padding-inline: 0.7rem;
  }

  .home-page .category-strip-inner {
    padding: 0.28rem 0.75rem !important;
  }

  .home-page .hero-section {
    padding: 0.55rem 0.55rem 0 !important;
  }

  .home-page .hero-swiper,
  .home-page .hero-panel {
    min-height: 268px !important;
    height: auto !important;
    max-height: none !important;
  }

  .home-page .hero-panel {
    grid-template-columns: minmax(0, 1fr) minmax(92px, 34vw) !important;
    padding: 0.82rem !important;
    gap: 0.4rem;
  }

  .home-page .hero-copy h1 {
    max-width: 12ch;
    font-size: clamp(1.55rem, 8vw, 2rem) !important;
    line-height: 1.04;
  }

  .home-page .hero-copy p {
    max-width: 25ch;
    font-size: 0.8rem !important;
    line-height: 1.35;
  }

  .home-page .hero-kicker {
    margin-bottom: 0.36rem;
  }

  .home-page .hero-stats {
    grid-template-columns: 1fr;
    gap: 0.35rem;
    margin-top: 0.55rem;
  }

  .home-page .hero-stats span {
    min-height: 0;
    padding: 0.34rem 0.48rem;
    font-size: 0.64rem;
  }

  .home-page .hero-stats span:nth-child(n+3) {
    display: none;
  }

  .home-page .hero-actions {
    margin-top: 0.55rem;
  }

  .home-page .hero-cta {
    min-height: 34px !important;
    padding: 0.45rem 0.58rem !important;
    font-size: 0.72rem;
  }

  .home-page .hero-cta-secondary {
    display: none;
  }

  .home-page .hero-art {
    position: static !important;
    width: 100% !important;
    align-self: end;
  }

  .home-page .hero-art img {
    width: 100%;
    max-height: 132px !important;
    object-fit: contain;
  }

  .home-page .delivery-bubble {
    width: 54px;
    height: 54px;
  }

  .home-page .home-market-section {
    padding-top: 0.85rem !important;
    padding-bottom: 0.85rem !important;
  }

  .home-page .section-heading {
    gap: 0.5rem;
    margin-bottom: 0.55rem;
  }

  .home-page .section-heading h2 {
    font-size: 1.08rem;
  }

  .home-page .section-link {
    min-height: 34px;
    padding: 0.42rem 0.62rem;
    font-size: 0.74rem;
  }

  .home-page .market-rail,
  .home-page .store-rail,
  .home-page .promo-section {
    grid-template-columns: none;
    grid-auto-columns: clamp(158px, 44vw, 184px) !important;
    gap: 0.58rem;
    margin-inline: -0.1rem;
    padding: 0.1rem 0.55rem 0.45rem 0.1rem;
  }

  .home-page .product-card,
  .home-page .product-card-compact {
    min-width: 0 !important;
    min-height: 326px !important;
    border-radius: 14px;
  }

  .home-page .product-image-container {
    min-height: 0 !important;
    padding: 0.42rem !important;
  }

  .home-page .delivery-time-badge {
    right: 6px;
    bottom: 6px;
    max-width: calc(100% - 12px);
    min-height: 22px;
    padding: 0.24rem 0.38rem;
    font-size: 0.6rem;
  }

  .home-page .wishlist-btn {
    top: 7px;
    left: 7px;
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    min-height: 34px !important;
  }

  .home-page .badge-stack {
    top: 7px;
    right: 7px;
    max-width: 74px;
  }

  .home-page .conversion-badge {
    max-width: 74px;
    padding: 0.24rem 0.34rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.56rem;
  }

  .home-page .product-info {
    gap: 0.36rem;
    padding: 0.55rem;
  }

  .home-page .product-title {
    min-height: 2.18rem !important;
    font-size: 0.78rem !important;
    line-height: 1.38;
  }

  .home-page .product-meta-row {
    align-items: flex-start;
    gap: 0.35rem;
    font-size: 0.68rem;
  }

  .home-page .stock-pill {
    max-width: 70px;
    padding: 0.22rem 0.36rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.6rem;
  }

  .home-page .product-price-section {
    gap: 0.35rem;
  }

  .home-page .product-price {
    font-size: 1rem;
  }

  .home-page .product-original-price,
  .home-page .product-rating {
    font-size: 0.62rem;
  }

  .home-page .vendor-block {
    padding: 0;
    border: 0;
    background: transparent;
    font-size: 0.66rem;
  }

  .home-page .vendor-block span {
    display: none;
  }

  .home-page .vendor-block strong {
    font-size: 0.7rem;
  }

  .home-page .product-actions {
    gap: 0;
  }

  .home-page .btn-buy-now {
    display: none;
  }

  .home-page .btn-add-cart {
    min-height: 34px !important;
    border-radius: 10px;
    font-size: 0.74rem;
  }

  .home-page .compact-categories {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.6rem;
  }

  .home-page .compact-categories .category-card,
  .home-page .category-skeleton {
    min-height: 116px !important;
    padding: 0.55rem !important;
    border-radius: 14px;
  }

  .home-page .compact-categories .category-card img {
    width: 64px !important;
    height: 64px !important;
    margin-bottom: 0.35rem;
  }

  .home-page .category-name {
    font-size: 0.78rem;
  }

  .home-page .category-count {
    font-size: 0.66rem;
  }

  .home-page .store-card {
    min-width: 0 !important;
    border-radius: 14px;
  }

  .home-page .store-image-wrap {
    min-height: 112px;
    padding: 0.5rem;
  }

  .home-page .store-card-body {
    gap: 0.3rem;
    padding: 0.62rem;
  }

  .home-page .store-card-body h3 {
    min-height: 2.05rem;
    font-size: 0.82rem;
    line-height: 1.25;
  }

  .home-page .store-card-body span {
    font-size: 0.66rem;
  }

  .home-page .store-view-btn {
    min-height: 34px;
    border-radius: 10px;
    font-size: 0.72rem;
  }

  .home-page .promo-section {
    display: grid;
  }

  .home-page .promo-card {
    min-height: 128px !important;
    padding: 0.72rem !important;
    border-radius: 14px;
  }

  .home-page .promo-card strong {
    max-width: 7.5rem;
    font-size: 1rem;
  }

  .home-page .promo-card small {
    position: relative;
    z-index: 2;
    width: fit-content;
    min-height: 30px;
    padding: 0.35rem 0.52rem;
    font-size: 0.68rem;
  }

  .home-page .promo-card img {
    right: -0.25rem;
    bottom: -0.2rem;
    width: 54%;
    max-height: 88px;
    object-fit: contain;
  }

  .home-page footer .max-w-7xl {
    padding: 1.15rem 0.9rem 0.85rem;
  }

  .home-page .footer-grid {
    grid-template-columns: 1fr;
    gap: 0.8rem;
    padding-inline: 0;
  }

  .home-page .footer-brand p {
    font-size: 0.82rem;
    line-height: 1.42;
  }

  .home-page footer h3 {
    margin: 0.2rem 0 0.35rem;
    font-size: 0.9rem;
  }

  .home-page footer ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.25rem 0.7rem;
  }

  .home-page footer li,
  .home-page footer a {
    font-size: 0.78rem;
  }

  .home-page .newsletter-form {
    margin-top: 0.65rem;
    border-radius: 12px;
  }

  .home-page .newsletter-form input,
  .home-page .newsletter-form button {
    min-height: 38px;
  }

  .home-page .payment-icons {
    gap: 0.32rem;
    margin-top: 0.65rem;
  }

  .home-page .payment-icons span {
    padding: 0.3rem 0.44rem;
    font-size: 0.62rem;
  }

  .home-page .footer-social,
  .home-page .app-buttons {
    gap: 0.45rem;
  }

  .home-page .footer-social a {
    width: 36px;
    height: 36px;
  }

  .home-page .app-buttons a {
    min-height: 36px;
    padding: 0.42rem 0.56rem;
  }

  .home-page footer .copyright {
    padding-bottom: 0.85rem;
    font-size: 0.76rem;
  }
}

@media (max-width: 430px) {
  .home-page .site-header-bar {
    padding-inline: 0.62rem;
  }

  .home-page .header-actions {
    max-width: 172px;
  }

  .home-page .market-rail,
  .home-page .store-rail,
  .home-page .promo-section {
    grid-auto-columns: clamp(154px, 45vw, 176px) !important;
  }
}

@media (max-width: 375px) {
  .home-page .brand-logo-img {
    width: 104px !important;
  }

  .home-page .header-actions {
    max-width: 158px;
    gap: 0.2rem;
  }

  .home-page .header-icon-btn,
  .home-page .dark-mode-toggle {
    width: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
  }

  .home-page #user-menu-btn {
    min-width: 58px !important;
  }

  .home-page .hero-panel {
    grid-template-columns: minmax(0, 1fr) 100px !important;
  }

  .home-page .hero-copy h1 {
    font-size: 1.48rem !important;
  }

  .home-page .market-rail,
  .home-page .store-rail,
  .home-page .promo-section {
    grid-auto-columns: 154px !important;
  }
}

@media (max-width: 900px) {
  .home-page .hero-swiper,
  .home-page .hero-panel {
    height: 268px !important;
    min-height: 268px !important;
    max-height: 268px !important;
  }

  .home-page .hero-panel {
    grid-template-columns: minmax(0, 1fr) 108px !important;
    align-items: center;
  }

  .home-page .hero-copy {
    height: auto !important;
    align-self: center;
  }

  .home-page .hero-kicker {
    padding: 0.24rem 0.42rem;
    font-size: 0.58rem;
  }

  .home-page .hero-copy h1 {
    max-width: 11ch;
    font-size: clamp(1.38rem, 7vw, 1.72rem) !important;
  }

  .home-page .hero-copy p {
    max-width: 23ch;
    display: -webkit-box;
    margin-top: 0.38rem;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-size: 0.72rem !important;
  }

  .home-page .hero-stats {
    display: flex !important;
    height: auto !important;
    margin-top: 0.48rem;
  }

  .home-page .hero-stats span {
    width: fit-content;
    padding: 0.3rem 0.46rem;
  }

  .home-page .hero-stats span:nth-child(n+2) {
    display: none !important;
  }

  .home-page .hero-actions {
    height: auto !important;
    margin-top: 0.5rem;
  }

  .home-page .hero-art {
    position: absolute !important;
    right: 0.55rem;
    bottom: 0.55rem;
    width: 108px !important;
    pointer-events: none;
  }

  .home-page .hero-art img {
    max-height: 96px !important;
  }

  .home-page .delivery-bubble {
    right: 82px;
    left: auto;
    top: 0.6rem;
    width: 46px;
    height: 46px;
  }

  .home-page .delivery-bubble strong {
    font-size: 0.98rem;
  }

  .home-page .delivery-bubble span {
    max-width: 38px;
    font-size: 0.46rem;
  }
}

/* ZopCart homepage mobile polish and data-stability layout guard. */
.home-page {
  --bottom-nav-height: 72px;
  --zopcart-voice-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
}

.home-page main,
.home-page #footer {
  min-width: 0;
}

.home-page .market-rail,
.home-page .store-rail,
.home-page .promo-section {
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
}

.home-page .product-card,
.home-page .store-card,
.home-page .promo-card,
.home-page .category-card {
  contain: layout paint;
}

.home-page .product-meta-row > span:first-child,
.home-page .store-card-body h3,
.home-page .category-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-page .product-meta-row > span:first-child,
.home-page .category-name {
  white-space: nowrap;
}

.home-page .store-card-body h3 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.home-page .product-price {
  white-space: nowrap;
}

.home-page .product-image-container,
.home-page .store-image-wrap,
.home-page .promo-card picture,
.home-page .category-card {
  aspect-ratio: 4 / 3;
}

.home-page .product-image-container,
.home-page .store-image-wrap {
  height: auto;
}

.home-page .promo-card picture {
  display: block;
}

.home-page .mobile-bottom-nav a.active,
.home-page .mobile-bottom-nav a[aria-current="page"] {
  color: #078c37;
  background: rgba(7, 140, 55, 0.1);
  box-shadow: inset 0 0 0 1px rgba(7, 140, 55, 0.16);
}

@media (max-width: 900px) {
  html,
  body,
  .home-page {
    max-width: 100%;
    overflow-x: clip;
  }

  .home-page {
    --zopcart-voice-bottom: calc(var(--bottom-nav-height) + 16px + env(safe-area-inset-bottom, 0px));
    padding-bottom: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom, 0px));
  }

  .home-page footer {
    margin-bottom: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom, 0px));
  }

  .home-page .supermart-header {
    max-width: 100vw;
    overflow-x: clip;
  }

  .home-page .site-header-bar {
    width: 100%;
    max-width: 100%;
    display: grid;
    grid-template-columns: minmax(104px, 1fr) auto;
    align-items: center;
    gap: 0.45rem 0.55rem;
    padding: 0.42rem 0.75rem 0.5rem;
  }

  .home-page .logo {
    min-width: 0;
  }

  .home-page .brand-logo-img {
    width: clamp(104px, 31vw, 126px);
  }

  .home-page .logo::after,
  .home-page .brand-logo-copy {
    display: none;
  }

  .home-page .header-actions {
    max-width: min(190px, 48vw);
    display: flex;
    justify-content: flex-end;
    gap: 0.28rem;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
  }

  .home-page .header-icon-btn,
  .home-page .dark-mode-toggle {
    width: 38px !important;
    min-width: 38px !important;
    min-height: 38px !important;
    padding: 0 !important;
    border-radius: 10px;
  }

  .home-page #user-menu-btn {
    width: auto !important;
    min-width: 62px !important;
    padding-inline: 0.42rem !important;
  }

  .home-page #user-link {
    position: static !important;
    width: auto !important;
    height: auto !important;
    clip: auto !important;
    overflow: visible !important;
    font-size: 0.78rem;
  }

  .home-page .location-chip {
    width: 100%;
    max-width: 100%;
    min-height: 40px;
    grid-column: 1 / -1;
    grid-template-columns: 28px minmax(0, 1fr) 16px;
    gap: 0.42rem;
    padding: 0.38rem 0.55rem;
    border-radius: 10px;
  }

  .home-page .location-pin {
    width: 28px;
    height: 28px;
  }

  .home-page .location-kicker {
    font-size: 0.62rem;
  }

  .home-page .location-primary {
    font-size: 0.86rem;
  }

  .home-page .location-secondary {
    font-size: 0.68rem;
  }

  .home-page .mobile-search {
    width: 100%;
    max-width: 100%;
    grid-column: 1 / -1;
    margin: 0;
  }

  .home-page .mobile-search .search-input {
    min-width: 0;
    height: 40px;
    font-size: 16px;
  }

  .home-page .mobile-search button,
  .home-page header button[onclick*="search"] {
    width: auto;
    min-width: 48px;
    height: 40px;
    padding-inline: 0.7rem;
  }

  .home-page .category-strip-inner {
    padding: 0.28rem 0.75rem;
  }

  .home-page .hero-section {
    padding: 0.55rem 0.55rem 0 !important;
  }

  .home-page .hero-swiper,
  .home-page .hero-panel {
    min-height: 268px;
    height: auto;
    max-height: none;
  }

  .home-page .hero-panel {
    grid-template-columns: minmax(0, 1fr) minmax(92px, 34vw);
    padding: 0.82rem;
    gap: 0.4rem;
  }

  .home-page .hero-copy h1 {
    max-width: 12ch;
    font-size: clamp(1.55rem, 8vw, 2rem);
    line-height: 1.04;
  }

  .home-page .hero-copy p {
    max-width: 25ch;
    font-size: 0.8rem;
    line-height: 1.35;
  }

  .home-page .hero-kicker {
    margin-bottom: 0.36rem;
  }

  .home-page .hero-stats {
    grid-template-columns: 1fr;
    gap: 0.35rem;
    margin-top: 0.55rem;
  }

  .home-page .hero-stats span {
    min-height: 0;
    padding: 0.34rem 0.48rem;
    font-size: 0.64rem;
  }

  .home-page .hero-stats span:nth-child(n+3) {
    display: none;
  }

  .home-page .hero-actions {
    margin-top: 0.55rem;
  }

  .home-page .hero-cta {
    min-height: 34px;
    padding: 0.45rem 0.58rem;
    font-size: 0.72rem;
  }

  .home-page .hero-cta-secondary {
    display: none;
  }

  .home-page .hero-art {
    position: static;
    width: 100%;
    align-self: end;
  }

  .home-page .hero-art img {
    width: 100%;
    max-height: 132px;
    object-fit: contain;
  }

  .home-page .delivery-bubble {
    width: 54px;
    height: 54px;
  }

  .home-page .home-market-section {
    padding-top: 0.85rem !important;
    padding-bottom: 0.85rem !important;
  }

  .home-page .section-heading {
    gap: 0.5rem;
    margin-bottom: 0.55rem;
  }

  .home-page .section-heading h2 {
    font-size: 1.08rem;
  }

  .home-page .section-link {
    min-height: 34px;
    padding: 0.42rem 0.62rem;
    font-size: 0.74rem;
  }

  .home-page .market-rail,
  .home-page .store-rail,
  .home-page .promo-section {
    grid-template-columns: none;
    grid-auto-columns: clamp(158px, 44vw, 184px);
    gap: 0.58rem;
    margin-inline: -0.1rem;
    padding: 0.1rem 0.55rem 0.45rem 0.1rem;
    scrollbar-width: none;
  }

  .home-page .market-rail::-webkit-scrollbar,
  .home-page .store-rail::-webkit-scrollbar,
  .home-page .promo-section::-webkit-scrollbar {
    display: none;
  }

  .home-page .product-card,
  .home-page .product-card-compact {
    min-width: 0;
    min-height: 326px;
    border-radius: 14px;
  }

  .home-page .product-image-container {
    min-height: 0;
    padding: 0.42rem;
  }

  .home-page .delivery-time-badge {
    right: 6px;
    bottom: 6px;
    max-width: calc(100% - 12px);
    min-height: 22px;
    padding: 0.24rem 0.38rem;
    font-size: 0.6rem;
  }

  .home-page .wishlist-btn {
    top: 7px;
    left: 7px;
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    min-height: 34px !important;
  }

  .home-page .badge-stack {
    top: 7px;
    right: 7px;
    max-width: 74px;
  }

  .home-page .conversion-badge {
    max-width: 74px;
    padding: 0.24rem 0.34rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.56rem;
  }

  .home-page .product-info {
    gap: 0.36rem;
    padding: 0.55rem;
  }

  .home-page .product-title {
    min-height: 2.18rem;
    font-size: 0.78rem;
    line-height: 1.38;
  }

  .home-page .product-meta-row {
    align-items: flex-start;
    gap: 0.35rem;
    font-size: 0.68rem;
  }

  .home-page .stock-pill {
    max-width: 70px;
    padding: 0.22rem 0.36rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.6rem;
  }

  .home-page .product-price-section {
    gap: 0.35rem;
  }

  .home-page .product-price {
    font-size: 1rem;
  }

  .home-page .product-original-price,
  .home-page .product-rating {
    font-size: 0.62rem;
  }

  .home-page .vendor-block {
    padding: 0;
    border: 0;
    background: transparent;
    font-size: 0.66rem;
  }

  .home-page .vendor-block span {
    display: none;
  }

  .home-page .vendor-block strong {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.7rem;
  }

  .home-page .product-actions {
    gap: 0;
  }

  .home-page .btn-buy-now {
    display: none;
  }

  .home-page .btn-add-cart {
    min-height: 34px !important;
    border-radius: 10px;
    font-size: 0.74rem;
  }

  .home-page .compact-categories {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
  }

  .home-page .compact-categories .category-card,
  .home-page .category-skeleton {
    min-height: 116px;
    padding: 0.55rem;
    border-radius: 14px;
  }

  .home-page .compact-categories .category-card img {
    width: 64px !important;
    height: 64px !important;
    margin-bottom: 0.35rem;
  }

  .home-page .category-name {
    max-width: 100%;
    font-size: 0.78rem;
  }

  .home-page .category-count {
    font-size: 0.66rem;
  }

  .home-page .store-card {
    min-width: 0;
    border-radius: 14px;
  }

  .home-page .store-image-wrap {
    min-height: 112px;
    padding: 0.5rem;
  }

  .home-page .store-card-body {
    gap: 0.3rem;
    padding: 0.62rem;
  }

  .home-page .store-card-body h3 {
    min-height: 2.05rem;
    font-size: 0.82rem;
    line-height: 1.25;
  }

  .home-page .store-card-body span {
    font-size: 0.66rem;
  }

  .home-page .store-view-btn {
    min-height: 34px;
    border-radius: 10px;
    font-size: 0.72rem;
  }

  .home-page .promo-section {
    display: grid;
  }

  .home-page .promo-card {
    min-height: 128px;
    padding: 0.72rem;
    border-radius: 14px;
  }

  .home-page .promo-card strong {
    max-width: 7.5rem;
    font-size: 1rem;
  }

  .home-page .promo-card small {
    position: relative;
    z-index: 2;
    width: fit-content;
    min-height: 30px;
    padding: 0.35rem 0.52rem;
    font-size: 0.68rem;
  }

  .home-page .promo-card img {
    right: -0.25rem;
    bottom: -0.2rem;
    width: 54%;
    max-height: 88px;
    object-fit: contain;
  }

  .home-page footer .max-w-7xl {
    padding: 1.15rem 0.9rem 0.85rem;
  }

  .home-page .footer-grid {
    grid-template-columns: 1fr;
    gap: 0.8rem;
    padding-inline: 0;
  }

  .home-page .footer-brand p {
    font-size: 0.82rem;
    line-height: 1.42;
  }

  .home-page footer h3 {
    margin: 0.2rem 0 0.35rem;
    font-size: 0.9rem;
  }

  .home-page footer ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.25rem 0.7rem;
  }

  .home-page footer li,
  .home-page footer a {
    font-size: 0.78rem;
  }

  .home-page .newsletter-form {
    margin-top: 0.65rem;
    border-radius: 12px;
  }

  .home-page .newsletter-form input,
  .home-page .newsletter-form button {
    min-height: 38px;
  }

  .home-page .payment-icons {
    gap: 0.32rem;
    margin-top: 0.65rem;
  }

  .home-page .payment-icons span {
    padding: 0.3rem 0.44rem;
    font-size: 0.62rem;
  }

  .home-page .footer-social,
  .home-page .app-buttons {
    gap: 0.45rem;
  }

  .home-page .footer-social a {
    width: 36px;
    height: 36px;
  }

  .home-page .app-buttons a {
    min-height: 36px;
    padding: 0.42rem 0.56rem;
  }

  .home-page footer .copyright {
    padding-bottom: 0.85rem;
    font-size: 0.76rem;
  }
}

@media (max-width: 430px) {
  .home-page .site-header-bar {
    padding-inline: 0.62rem;
  }

  .home-page .header-actions {
    max-width: 172px;
  }

  .home-page .market-rail,
  .home-page .store-rail,
  .home-page .promo-section {
    grid-auto-columns: clamp(154px, 45vw, 176px);
  }
}

@media (max-width: 375px) {
  .home-page .brand-logo-img {
    width: 104px;
  }

  .home-page .header-actions {
    max-width: 158px;
    gap: 0.2rem;
  }

  .home-page .header-icon-btn,
  .home-page .dark-mode-toggle {
    width: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
  }

  .home-page #user-menu-btn {
    min-width: 58px !important;
  }

  .home-page .hero-panel {
    grid-template-columns: minmax(0, 1fr) 100px;
  }

  .home-page .hero-copy h1 {
    font-size: 1.48rem;
  }

  .home-page .market-rail,
  .home-page .store-rail,
  .home-page .promo-section {
    grid-auto-columns: 154px;
  }
}

@media (max-width: 1024px) {
  .header-icon-btn,
  .dark-mode-toggle,
  .wishlist-btn,
  .btn-action,
  .category-chip,
  .view-toggle button,
  .toolbar-icon-btn,
  .filter-trigger,
  .filter-title-row button,
  .filter-apply,
  .filter-reset,
  .pagination-row button,
  #review-form button,
  .product-purchase-panel button {
    min-height: 44px !important;
  }

  .header-icon-btn,
  .dark-mode-toggle,
  .wishlist-btn {
    min-width: 44px !important;
  }

  .wishlist-btn {
    width: 44px !important;
    height: 44px !important;
  }
}

/* Mobile-first production hardening: shared app surfaces, no desktop redesign. */
html,
body {
  max-width: 100%;
}

body {
  min-width: 0;
}

img {
  height: auto;
}

input,
select,
textarea,
button {
  max-width: 100%;
  font: inherit;
}

.mobile-bottom-nav {
  display: none;
}

@media (max-width: 900px) {
  body {
    padding-bottom: calc(72px + env(safe-area-inset-bottom));
  }

  main,
  section,
  .max-w-7xl,
  .max-w-6xl {
    min-width: 0;
  }

  .mobile-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 70;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.12rem;
    padding: 0.42rem max(0.45rem, env(safe-area-inset-left)) calc(0.42rem + env(safe-area-inset-bottom)) max(0.45rem, env(safe-area-inset-right));
    border-top: 1px solid rgba(3, 27, 22, 0.12);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 -12px 28px rgba(15, 23, 42, 0.12);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }

  .mobile-bottom-nav a {
    position: relative;
    min-width: 0;
    min-height: 48px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 0.12rem;
    border-radius: 12px;
    color: #52645d;
    font-size: 1rem;
    font-weight: 900;
    text-decoration: none;
  }

  .mobile-bottom-nav small {
    max-width: 100%;
    overflow: hidden;
    color: inherit;
    font-size: 0.66rem;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-bottom-nav a.active {
    background: #e8f8ef;
    color: #078c37;
  }

  .mobile-nav-badge {
    position: absolute;
    top: 4px;
    right: 16%;
    min-width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.3rem;
    border: 2px solid #fff;
    border-radius: 999px;
    background: #ff6b00;
    color: #fff;
    font-size: 0.62rem;
    line-height: 1;
  }

  .mobile-nav-badge.is-empty {
    display: none;
  }

  .site-header-bar {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.55rem;
    padding: 0.55rem 0.75rem 0.65rem;
  }

  .brand-logo-img {
    width: clamp(96px, 32vw, 132px);
    max-width: 100%;
  }

  .logo {
    min-width: 0;
  }

  .header-actions {
    max-width: 100%;
    overflow-x: auto;
    gap: 0.35rem;
    padding: 0.1rem 0;
    scrollbar-width: none;
  }

  .header-actions::-webkit-scrollbar,
  .category-strip-inner::-webkit-scrollbar,
  .market-rail::-webkit-scrollbar,
  .store-rail::-webkit-scrollbar,
  .category-chips::-webkit-scrollbar {
    display: none;
  }

  .header-icon-btn,
  .dark-mode-toggle,
  .mobile-search button,
  .desktop-search button,
  .toolbar-icon-btn,
  .filter-trigger,
  .filter-apply,
  .filter-reset,
  .checkout-btn,
  #place-order-btn,
  .product-purchase-panel button,
  .cart-qty-control button {
    min-height: 44px;
  }

  .header-icon-btn,
  .dark-mode-toggle {
    min-width: 44px;
    border-radius: 12px;
  }

  .desktop-search {
    display: none !important;
  }

  .mobile-search {
    grid-column: 1 / -1;
    display: flex !important;
    width: 100%;
    max-width: none;
    margin: 0;
  }

  .mobile-search .search-input,
  #search-input,
  header button[onclick*="search"] {
    height: 44px;
  }

  .location-chip {
    grid-column: 1 / -1;
    width: 100%;
    max-width: none;
    min-height: 46px;
    padding: 0.48rem 0.65rem;
  }

  #user-location {
    max-width: none;
  }

  .category-strip-inner,
  .category-chips,
  .market-rail,
  .store-rail {
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
  }

  .category-strip-inner {
    gap: 0.4rem;
    padding: 0.38rem 0.75rem;
  }

  .category-strip a,
  .category-chip {
    min-height: 44px;
    touch-action: manipulation;
  }

  .trending-chip-bar,
  .category-chip-bar {
    top: 0;
  }

  .filter-sheet-panel {
    padding-bottom: calc(1rem + env(safe-area-inset-bottom));
  }

  .product-card {
    min-height: 0;
    border-radius: 12px;
  }

  .product-card-compact {
    min-width: 0;
    min-height: 0;
  }

  .product-info {
    gap: 0.48rem;
    padding: 0.72rem;
  }

  .product-title {
    min-height: 2.55rem;
    font-size: 0.86rem;
    line-height: 1.32;
  }

  .vendor-block {
    display: none;
  }

  .product-meta-row {
    align-items: flex-start;
    gap: 0.4rem;
    font-size: 0.7rem;
  }

  .product-meta-row > span:first-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .product-price-section {
    gap: 0.36rem;
  }

  .product-price {
    font-size: 1rem;
  }

  .product-original-price,
  .product-rating {
    font-size: 0.7rem;
  }

  .product-actions {
    gap: 0.42rem;
  }

  .btn-action {
    min-height: 44px;
    padding: 0.35rem 0.45rem;
    border-radius: 10px;
    font-size: 0.72rem;
    line-height: 1.15;
  }

  .wishlist-btn {
    width: 38px;
    height: 38px;
    top: 8px;
    left: 8px;
  }

  .badge-stack {
    top: 8px;
    right: 8px;
  }

  .conversion-badge,
  .stock-pill {
    max-width: 108px;
    overflow: hidden;
    padding: 0.26rem 0.45rem;
    font-size: 0.64rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .product-results-grid,
  .product-results-grid.compact-view,
  .category-products-grid,
  .home-expanded-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.55rem !important;
  }

  .market-rail,
  .store-rail {
    grid-auto-columns: minmax(156px, 44vw);
    gap: 0.65rem;
    margin-inline: -0.75rem;
    padding-inline: 0.75rem;
  }

  .store-card {
    min-width: 0;
  }

  .store-image-wrap {
    height: 118px;
  }

  .section-heading {
    align-items: flex-start;
    margin-bottom: 0.75rem;
  }

  .section-heading h2 {
    font-size: 1.28rem;
    line-height: 1.15;
  }

  .section-heading p {
    font-size: 0.86rem;
  }

  .section-link {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
  }

  .promo-section,
  .categories-grid,
  .compact-categories {
    gap: 0.65rem !important;
  }

  .promo-card {
    min-height: 126px;
    padding: 0.8rem;
  }

  .promo-card img {
    max-width: 46%;
    object-fit: contain;
  }

  .cart-shell,
  .trending-page,
  .category-page,
  .product-detail-page {
    width: min(100% - 0.75rem, 760px);
    padding-inline: 0 !important;
  }

  .cart-summary-card {
    position: sticky;
    bottom: calc(64px + env(safe-area-inset-bottom));
    z-index: 40;
    border-radius: 14px 14px 0 0;
  }

  .checkout-shell {
    padding-top: 1rem !important;
    padding-bottom: calc(6rem + env(safe-area-inset-bottom)) !important;
  }

  .checkout-step,
  .checkout-panel {
    border-radius: 14px !important;
    padding: 1rem !important;
  }

  .checkout-input {
    min-height: 46px;
    font-size: 16px;
  }

  .payment-option,
  .address-card,
  .location-action {
    min-height: 64px;
  }

  .sticky-review {
    position: static !important;
  }

  #place-order-btn {
    position: fixed;
    left: 0.75rem;
    right: 0.75rem;
    bottom: calc(72px + env(safe-area-inset-bottom));
    z-index: 65;
    width: auto !important;
    box-shadow: 0 14px 30px rgba(7, 140, 55, 0.3);
  }

  .product-detail-page {
    padding-top: 0.75rem !important;
    padding-bottom: calc(6.5rem + env(safe-area-inset-bottom)) !important;
  }

  .product-detail-root {
    gap: 1rem !important;
    padding: 0.85rem !important;
    border-radius: 14px !important;
  }

  .product-detail-image {
    aspect-ratio: 1 / 1;
    height: auto !important;
    max-height: 430px;
    background: #f3f8f5;
    object-fit: contain !important;
  }

  .product-purchase-panel {
    position: static;
    bottom: auto;
    z-index: auto;
    transform: none;
    display: grid;
    gap: 0.55rem;
    border-radius: 14px !important;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 -10px 28px rgba(15, 23, 42, 0.12);
  }

  .product-purchase-panel input {
    min-height: 44px;
    font-size: 16px;
  }

  .product-purchase-panel button {
    margin-top: 0 !important;
    padding-block: 0.72rem !important;
    border-radius: 10px !important;
    font-weight: 900;
  }

  .profile-summary-card,
  #profile-info .flex,
  #wishlist-items .flex,
  #order-history .flex,
  #addresses-list .flex {
    min-width: 0;
  }
}

@media (max-width: 680px) {
  .offer-bar-inner {
    min-height: 26px;
    justify-content: flex-start;
    gap: 1rem;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
  }

  .offer-bar-inner::-webkit-scrollbar {
    display: none;
  }

  .header-icon-btn > span:not(.nav-badge):not(:first-child),
  #user-link,
  .wishlist-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }

  .dark-mode-toggle {
    display: inline-flex;
  }

  .hero-section {
    padding: 0.75rem 0.5rem 0 !important;
  }

  .hero-swiper,
  .hero-panel {
    min-height: 0;
  }

  .hero-panel {
    grid-template-columns: 1fr;
    gap: 0.65rem;
    padding: 0.95rem;
  }

  .hero-copy h1 {
    max-width: 16ch;
    font-size: 1.9rem;
    line-height: 1.05;
  }

  .hero-copy p {
    font-size: 0.92rem;
  }

  .hero-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.45rem;
    margin-top: 0.8rem;
  }

  .hero-stats span {
    min-width: 0;
    font-size: 0.64rem;
  }

  .hero-actions {
    gap: 0.5rem;
    margin-top: 0.85rem;
  }

  .hero-cta {
    min-height: 44px;
    flex: 1 1 130px;
    padding: 0.65rem 0.7rem;
    border-radius: 10px;
    font-size: 0.82rem;
  }

  .hero-art img {
    max-height: 190px;
  }

  .delivery-card {
    display: none;
  }

  .home-page section,
  .home-market-section {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
  }

  .category-card,
  .compact-categories .category-card {
    min-height: 128px !important;
    padding: 0.7rem !important;
    border-radius: 12px;
  }

  .category-card img,
  .compact-categories .category-card img {
    width: 72px !important;
    height: 72px !important;
    margin-bottom: 0.35rem !important;
  }

  .category-name,
  .category-card p {
    font-size: 0.78rem;
    line-height: 1.2;
  }

  .product-image-container {
    aspect-ratio: 1 / 1;
    min-height: 0;
    padding: 0.55rem;
  }

  .delivery-time-badge {
    display: none;
  }

  .cart-hero {
    padding: 1rem;
  }

  .cart-hero h1 {
    font-size: 1.65rem;
  }

  .cart-hero p {
    font-size: 0.9rem;
  }

  .cart-hero-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.45rem;
  }

  .cart-hero-metrics div {
    min-width: 0;
    padding: 0.6rem 0.45rem;
  }

  .cart-hero-metrics strong {
    font-size: 0.95rem;
  }

  .cart-hero-metrics small {
    font-size: 0.62rem;
  }

  .cart-items-panel,
  .cart-summary-card {
    padding: 0.75rem;
    border-radius: 14px;
  }

  .cart-item-card {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 0.7rem;
    padding: 0.7rem;
  }

  .cart-item-card img {
    width: 64px;
    height: 64px;
  }

  .cart-item-details h3 {
    display: -webkit-box;
    overflow: hidden;
    font-size: 0.9rem;
    line-height: 1.25;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .cart-item-details p {
    display: -webkit-box;
    overflow: hidden;
    font-size: 0.72rem;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
  }

  .cart-qty-control {
    width: max-content;
    grid-template-columns: 44px 52px 44px;
  }

  .cart-qty-control button,
  .cart-qty-control input {
    height: 44px;
  }

  .cart-item-price {
    gap: 0.5rem;
  }

  .cart-item-price button {
    min-height: 40px;
    padding-inline: 0.7rem;
  }

  .summary-trust {
    display: none;
  }

  .trending-toolbar,
  .category-market-toolbar {
    gap: 0.55rem;
    padding: 0.65rem;
  }

  .results-summary,
  .category-pagination,
  .pagination-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.55rem;
    font-size: 0.82rem;
  }

  .pagination-controls,
  .pagination-row {
    width: 100%;
  }

  .pagination-controls button,
  .pagination-row button {
    min-height: 44px;
    flex: 1 1 0;
  }

  .product-results-grid,
  .product-results-grid.compact-view,
  .category-products-grid,
  .home-expanded-grid {
    gap: 0.45rem !important;
  }

  .product-results-grid.compact-view .product-card {
    min-height: 0;
  }

  .category-products-grid.is-list .product-card {
    grid-template-columns: 1fr !important;
  }

  .category-products-grid.is-list .product-image-container {
    min-height: 0;
  }

  .filter-sheet-panel {
    max-height: 88vh;
  }

  .filter-panel,
  .category-filter-panel {
    gap: 0.65rem;
  }

  .filter-options label {
    min-height: 36px;
  }

  .product-detail-page h1 {
    font-size: 1.35rem !important;
    line-height: 1.2;
  }

  .product-detail-main p,
  .product-detail-main span {
    overflow-wrap: anywhere;
  }

  #image-modal .relative.max-w-5xl {
    width: 100%;
    padding: 0.75rem;
  }

  #thumbnail-container img {
    width: 56px !important;
    height: 56px !important;
    flex: 0 0 auto;
  }

  .tab-button {
    min-height: 44px;
    flex: 0 0 auto;
    white-space: nowrap;
  }

  nav[aria-label="Tabs"] {
    overflow-x: auto;
    padding-bottom: 0.35rem;
    scrollbar-width: none;
  }

  nav[aria-label="Tabs"]::-webkit-scrollbar {
    display: none;
  }

  #addressModal .max-w-md {
    max-height: 88vh;
    overflow-y: auto;
  }
}

@media (max-width: 430px) {
  .site-header-bar {
    padding-inline: 0.55rem;
  }

  .brand-logo-img {
    width: clamp(88px, 30vw, 112px);
  }

  .header-actions {
    max-width: 188px;
  }

  .header-icon-btn,
  .dark-mode-toggle {
    min-width: 40px;
    min-height: 40px;
    font-size: 0.76rem;
  }

  .mobile-search .search-input {
    min-width: 0;
    font-size: 16px;
  }

  header button[onclick*="search"] {
    min-width: 54px;
    padding-inline: 0.6rem;
  }

  .location-chip {
    grid-template-columns: 30px minmax(0, 1fr) 16px;
    gap: 0.45rem;
  }

  .location-kicker,
  .location-secondary {
    display: none;
  }

  .category-strip a {
    padding: 0.38rem 0.55rem;
    font-size: 0.72rem;
  }

  .market-rail,
  .store-rail {
    grid-auto-columns: minmax(150px, 46vw);
  }

  .product-info {
    padding: 0.6rem;
  }

  .product-title {
    min-height: 2.35rem;
    font-size: 0.8rem;
  }

  .product-price {
    font-size: 0.95rem;
  }

  .product-rating {
    padding: 0.22rem 0.38rem;
  }

  .btn-action {
    font-size: 0.68rem;
  }

  .product-actions {
    flex-direction: column;
  }

  .cart-panel-heading h2,
  .summary-card-header span {
    font-size: 1.05rem;
  }

  .checkout-step-number {
    width: 1.75rem;
    height: 1.75rem;
  }

  .mobile-bottom-nav small {
    font-size: 0.6rem;
  }
}

@media (max-width: 360px) {
  .header-actions {
    max-width: 164px;
  }

  .header-icon-btn,
  .dark-mode-toggle {
    min-width: 38px;
    min-height: 38px;
  }

  .product-results-grid,
  .product-results-grid.compact-view,
  .category-products-grid,
  .home-expanded-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .product-title {
    font-size: 0.76rem;
  }

  .product-price-section {
    align-items: flex-start;
    flex-direction: column;
  }

  .cart-hero-metrics {
    grid-template-columns: 1fr;
  }

  .cart-qty-control {
    grid-template-columns: 42px 48px 42px;
  }
}

@media (max-width: 900px) {
  body {
    width: 100%;
    overflow-x: clip;
  }

  .offer-bar,
  .category-strip,
  footer {
    max-width: 100vw;
    overflow-x: clip;
  }

  .category-chip-bar,
  .trending-chip-bar {
    max-width: 100%;
    overflow-x: clip;
  }

  .category-chips,
  .category-strip-inner {
    max-width: 100%;
    overflow-x: auto;
  }

  footer .max-w-7xl,
  .footer-grid,
  .footer-brand {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .newsletter-form {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 680px) {
  .wishlist-btn {
    width: 44px;
    height: 44px;
  }

  .btn-action {
    min-height: 44px !important;
  }

  .category-chip,
  .view-toggle button,
  .filter-trigger,
  .pagination-row button,
  .toolbar-icon-btn,
  #apply-price,
  #clear-filters,
  .product-purchase-panel button,
  #review-form button,
  .tab-button {
    min-height: 44px !important;
  }

  .footer-grid {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .newsletter-form {
    border-radius: 12px;
  }

  .newsletter-form input {
    font-size: 16px;
  }
}

/* Blinkit / Instamart inspired homepage refresh */
.home-page { background: #f7faf8; }

.supermart-header {
  background: rgba(255, 255, 255, 0.96) !important;
  border-bottom: 1px solid rgba(3, 27, 22, 0.08);
  box-shadow: 0 12px 34px rgba(3, 27, 22, 0.08);
}

.offer-bar {
  background: linear-gradient(90deg, #023d2e, #031b16);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 850;
}

.offer-bar-inner {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 5vw, 4rem);
  padding: 0 1rem;
}

.site-header-bar {
  display: grid;
  grid-template-columns: auto minmax(150px, 190px) minmax(280px, 1fr) auto;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-width: max-content;
}

.logo::after { display: none; }

.logo-mark {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #e8f8ef;
  color: #078c37;
  box-shadow: inset 0 0 0 1px rgba(7, 140, 55, 0.12);
}

.logo strong {
  display: block;
  color: #031b16;
  font-size: 1.55rem;
  line-height: 1;
}

.logo small {
  display: block;
  margin-top: 0.22rem;
  color: #5d6c67;
  font-size: 0.72rem;
  font-weight: 700;
}

.location-chip {
  width: 100%;
  max-width: none;
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-radius: 14px;
  background: #f6f7f6;
  text-align: left;
}

.location-pin {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #e4f7eb;
  color: #087b35;
  font-size: 1rem;
}

.desktop-search,
.mobile-search {
  display: flex;
  min-width: 0;
}

.mobile-search { display: none; }

#search-input,
.mobile-search .search-input {
  height: 58px;
  border-radius: 12px 0 0 12px;
  background: #fff;
  border-color: #dfe7e3;
  box-shadow: 0 8px 24px rgba(3, 27, 22, 0.04);
}

header button[onclick*="search"] {
  height: 58px;
  min-width: 92px;
  border-radius: 0 12px 12px 0;
  background: #078c37 !important;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
}

.header-icon-btn,
.dark-mode-toggle {
  position: relative;
  min-width: 48px;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border-radius: 12px;
  color: #031b16;
  font-size: 0.82rem;
  font-weight: 850;
}

.nav-badge {
  position: absolute;
  top: -4px;
  right: -5px;
}

.category-strip {
  background: #fff !important;
  border-top: 1px solid #eef2ef !important;
}

.category-strip-inner {
  display: flex;
  gap: 0.9rem;
  overflow-x: auto;
  padding: 0.72rem 1rem;
  scrollbar-width: thin;
}

.category-strip a {
  min-width: max-content;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.8rem;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #17221f !important;
  font-size: 0.84rem;
  font-weight: 850;
}

.category-strip a:hover,
.category-strip .all-categories-pill {
  background: #078c37;
  color: #fff !important;
  box-shadow: 0 10px 24px rgba(7, 140, 55, 0.18);
}

.category-strip img {
  width: 24px !important;
  height: 24px !important;
}

.home-page section {
  padding-top: 1.35rem !important;
  padding-bottom: 1.35rem !important;
}

.hero-section { padding: 1.5rem 1rem 0 !important; }

.hero-swiper {
  width: min(1240px, 100%);
  height: auto;
  min-height: 390px;
  border-radius: 18px;
  background: #eef8ef;
  box-shadow: none;
}

.home-page .swiper-slide { background: transparent; }
.home-page .swiper-slide::after { display: none; }

.hero-panel {
  min-height: 390px;
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(280px, 1.1fr) minmax(220px, 0.72fr);
  gap: 1rem;
  align-items: center;
  padding: clamp(1.35rem, 3vw, 2.5rem);
  background:
    radial-gradient(circle at 50% 14%, rgba(34, 197, 94, 0.16), transparent 22%),
    linear-gradient(135deg, #f0f9f1 0%, #ffffff 58%, #eaf7ee 100%);
}

.hero-panel-alt {
  background:
    radial-gradient(circle at 62% 22%, rgba(14, 165, 233, 0.14), transparent 26%),
    linear-gradient(135deg, #effaf4 0%, #ffffff 56%, #eff6ff 100%);
}

.hero-copy { color: #071d17; }

.hero-kicker {
  margin-bottom: 0.75rem;
  border: 0;
  background: #d7f6df;
  color: #087b35;
  letter-spacing: 0;
  text-transform: none;
}

.hero-copy h1 {
  max-width: 12ch;
  color: #08231b;
  font-size: clamp(2.25rem, 5vw, 4.1rem);
  line-height: 1.03;
  font-weight: 900;
}

.hero-copy p {
  max-width: 28rem;
  margin-top: 0.9rem;
  color: #41514c;
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  font-weight: 600;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.hero-stats span {
  display: grid;
  gap: 0.12rem;
  color: #5a6a64;
  font-size: 0.78rem;
  font-weight: 750;
}

.hero-stats strong {
  color: #0d3a2d;
  font-size: 0.9rem;
}

.hero-cta {
  min-height: 48px;
  border-radius: 8px;
  background: #078c37;
  color: #fff;
  box-shadow: 0 12px 26px rgba(7, 140, 55, 0.25);
}

.hero-cta-secondary {
  border: 1px solid #cbdad2;
  background: #fff;
  color: #08231b;
  box-shadow: none;
}

.hero-art {
  position: relative;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-art img {
  width: min(100%, 520px);
  max-height: 330px;
  object-fit: contain;
  border-radius: 18px;
  filter: drop-shadow(0 22px 32px rgba(3, 27, 22, 0.14));
}

.delivery-bubble {
  position: absolute;
  top: 13%;
  left: 4%;
  width: 104px;
  height: 104px;
  display: grid;
  place-items: center;
  align-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: #078c37;
  box-shadow: 0 16px 38px rgba(3, 27, 22, 0.13);
}

.delivery-bubble strong {
  display: block;
  font-size: 2.1rem;
  line-height: 1;
}

.delivery-bubble span {
  max-width: 72px;
  color: #0e5136;
  font-size: 0.72rem;
  font-weight: 900;
  text-align: center;
}

.delivery-card {
  display: grid;
  gap: 0.65rem;
  align-content: center;
  color: #0c241d;
}

.delivery-card span {
  color: #40504a;
  font-weight: 700;
}

.delivery-card strong {
  font-size: 1.45rem;
  line-height: 1.1;
}

.delivery-card small {
  color: #51635c;
  font-weight: 700;
}

.delivery-card button {
  width: fit-content;
  min-height: 38px;
  padding: 0 0.9rem;
  border: 1px solid #b9d7c4;
  border-radius: 8px;
  background: #fff;
  color: #076b2e;
  font-size: 0.78rem;
  font-weight: 900;
}

.delivery-card img {
  width: 100%;
  height: 130px;
  object-fit: contain;
}

.order-pill {
  padding: 0.7rem 0.8rem;
  border-radius: 12px;
  background: linear-gradient(90deg, #078c37, #02672d);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 900;
  text-align: center;
}

.features-strip,
.trust-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.75rem;
}

.feature-item,
.trust-strip > div {
  min-height: 88px;
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 0.75rem;
  align-content: center;
  padding: 1rem;
  border: 1px solid #e3ebe7;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(3, 27, 22, 0.06);
}

.feature-item span,
.trust-strip span {
  grid-row: span 2;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #e8f8ef;
  color: #078c37;
}

.feature-item strong,
.trust-strip strong {
  color: #0a221a;
  font-size: 0.92rem;
  font-weight: 900;
}

.feature-item small,
.trust-strip small {
  color: #53625d;
  font-size: 0.78rem;
  font-weight: 700;
}

.section-heading { margin-bottom: 1rem; }
.section-heading h2 { font-size: clamp(1.45rem, 2vw, 1.9rem); }

.section-link {
  border: 0;
  background: transparent;
  color: #078c37;
}

.store-rail {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-auto-columns: minmax(190px, 1fr);
}

.store-card {
  min-width: 0;
  border-radius: 10px;
}

.store-image-wrap {
  height: 88px;
  padding: 0.9rem 0.9rem 0;
  background: #fff;
}

.store-image-wrap img {
  width: 64px;
  height: 64px;
  border: 1px solid #edf2ef;
  border-radius: 999px;
  object-fit: cover;
}

.store-card-body {
  padding: 0.85rem;
  gap: 0.32rem;
}

.store-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}

.store-rating {
  color: #078c37 !important;
  font-size: 0.78rem !important;
  font-weight: 900 !important;
}

.store-view-btn {
  min-height: 38px;
  border: 1px solid #dce7e1;
  border-radius: 8px;
  background: #fff;
  color: #078c37;
}

.store-view-btn:hover {
  background: #078c37;
  color: #fff;
}

.promo-section {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.promo-card {
  position: relative;
  min-height: 142px;
  overflow: hidden;
  display: grid;
  align-content: center;
  gap: 0.25rem;
  padding: 1.2rem;
  border-radius: 10px;
  color: #173026;
}

.promo-card span {
  position: relative;
  z-index: 1;
  font-size: 1.15rem;
  font-weight: 900;
}

.promo-card strong,
.promo-card small {
  position: relative;
  z-index: 1;
  font-weight: 850;
}

.promo-card small {
  width: fit-content;
  margin-top: 0.7rem;
  padding: 0.42rem 0.68rem;
  border-radius: 8px;
  background: #fff;
  color: #078c37;
}

.delivery-card picture,
.promo-card picture {
  display: contents;
}

.promo-card img {
  position: absolute;
  right: -6px;
  bottom: -10px;
  width: 48%;
  max-height: 118px;
  object-fit: contain;
}

.promo-grocery { background: #e8f8df; }
.promo-electronics { background: #fff1d9; }
.promo-fashion { background: #ffe4e7; }
.promo-medicine { background: #e1f0ff; }

.market-rail {
  grid-template-columns: none;
  grid-auto-columns: minmax(245px, 1fr);
}

.product-card {
  min-width: 245px;
  min-height: 420px;
  border-radius: 10px;
}

.product-card-compact {
  min-width: 245px;
  min-height: 420px;
}

.product-image-container {
  height: 178px;
  padding: 0.85rem;
}

.wishlist-btn {
  width: 34px;
  height: 34px;
}

.conversion-badge {
  border-radius: 5px;
  font-size: 0.66rem;
}

.product-info {
  min-width: 0;
  gap: 0.52rem;
  padding: 0.85rem;
}

.product-title {
  min-height: 2.55rem;
  font-size: 0.88rem;
}

.vendor-block {
  padding: 0;
  border: 0;
  background: transparent;
}

.vendor-block span:last-child { display: none; }

.product-price {
  color: #078c37;
  font-size: 1.08rem;
}

.btn-action {
  min-height: 40px;
  border-radius: 8px;
  white-space: nowrap;
}

.btn-add-cart {
  border-color: #b8dac3;
  color: #078c37;
}

.compact-hidden { display: none; }

.compact-categories { grid-template-columns: repeat(8, minmax(0, 1fr)); }

.compact-categories .category-card {
  min-height: 118px;
  padding: 0.8rem;
  border-radius: 10px;
}

.compact-categories .category-card img {
  width: 62px !important;
  height: 58px !important;
  margin-bottom: 0.45rem;
}

.compact-categories .category-count { display: none; }

.trust-strip {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding-bottom: 0 !important;
}

.profile-summary-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid #dfe8e3;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(3, 27, 22, 0.06);
}

.profile-avatar {
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #078c37;
  color: #fff;
  font-weight: 900;
}

.profile-summary-card h2 {
  color: #08231b;
  font-weight: 900;
}

.profile-summary-card p {
  color: #596863;
  font-size: 0.9rem;
}

.profile-actions {
  margin-left: auto;
  display: flex;
  gap: 0.5rem;
}

.profile-actions a {
  padding: 0.55rem 0.85rem;
  border-radius: 8px;
  background: #078c37;
  color: #fff;
  font-weight: 850;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.4fr) repeat(3, minmax(160px, 1fr));
  gap: 2rem;
  padding: 2.5rem 1rem 1.6rem;
}

.footer-logo {
  display: inline-flex;
  margin-bottom: 0.9rem;
  color: #fff;
  font-size: 1.35rem;
  font-weight: 900;
}

footer ul {
  display: grid;
  gap: 0.55rem;
}

.footer-subhead { margin-top: 1.4rem; }

.app-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}

.app-buttons a {
  padding: 0.55rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: #050b09;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 850;
}

@media (max-width: 1100px) {
  .site-header-bar { grid-template-columns: auto minmax(145px, 180px) 1fr; }
  .header-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
  .hero-panel { grid-template-columns: minmax(280px, 1fr) minmax(260px, 1fr); }
  .delivery-card {
    grid-column: 1 / -1;
    grid-template-columns: 1fr auto;
    align-items: center;
  }
  .delivery-card img { display: none; }
  .features-strip,
  .store-rail,
  .market-rail,
  .promo-section {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(230px, 34vw);
    overflow-x: auto;
    padding-bottom: 0.7rem !important;
  }
  .compact-categories { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .offer-bar-inner {
    justify-content: flex-start;
    overflow-x: auto;
    white-space: nowrap;
  }
  .site-header-bar {
    grid-template-columns: 1fr auto;
    gap: 0.75rem;
  }
  .location-chip {
    grid-column: 1 / -1;
    display: flex !important;
  }
  .desktop-search { display: none !important; }
  .mobile-search {
    grid-column: 1 / -1;
    display: flex !important;
    width: 100%;
  }
  .header-actions {
    grid-column: auto;
    justify-content: flex-end;
  }
  .header-actions .dark-mode-toggle,
  .header-actions #mini-cart-toggle,
  .wishlist-label {
    display: none;
  }
  .hero-panel {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .hero-copy h1 {
    max-width: 11ch;
    font-size: 2.55rem;
  }
  .hero-stats { grid-template-columns: 1fr; }
  .delivery-bubble {
    width: 86px;
    height: 86px;
  }
  .delivery-card { grid-template-columns: 1fr; }
  .features-strip,
  .trust-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .store-rail,
  .market-rail,
  .promo-section {
    margin-inline: -1rem;
    padding-inline: 1rem;
    grid-auto-columns: minmax(224px, 78vw);
  }
  .compact-categories { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr; }
}

/* Login and cart page refresh */
.login-page,
.cart-page {
  background:
    radial-gradient(circle at 12% 12%, rgba(34, 197, 94, 0.12), transparent 28%),
    linear-gradient(180deg, #f7faf8 0%, #eef7f1 100%);
  min-height: 100vh;
}

.auth-shell {
  width: min(1180px, calc(100% - 2rem));
  margin: 2rem auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.82fr);
  gap: 1.25rem;
  align-items: stretch;
}

.auth-hero-panel,
.auth-card {
  border: 1px solid #dfe8e3;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 48px rgba(3, 27, 22, 0.1);
}

.auth-hero-panel {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  display: grid;
  align-content: space-between;
  gap: 1.5rem;
  padding: clamp(1.6rem, 4vw, 3rem);
  background:
    radial-gradient(circle at 82% 66%, rgba(34, 197, 94, 0.18), transparent 30%),
    linear-gradient(135deg, #eaf8ee 0%, #ffffff 58%, #dcf4e4 100%);
}

.auth-kicker {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 0.9rem;
  padding: 0.42rem 0.72rem;
  border-radius: 999px;
  background: #d7f6df;
  color: #087b35;
  font-size: 0.78rem;
  font-weight: 900;
}

.auth-hero-panel h1 {
  max-width: 11ch;
  color: #08231b;
  font-size: clamp(2.55rem, 6vw, 4.8rem);
  line-height: 0.98;
  font-weight: 900;
}

.auth-hero-panel p {
  max-width: 31rem;
  margin-top: 1rem;
  color: #51615b;
  font-size: 1.05rem;
  font-weight: 650;
}

.auth-benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  position: relative;
  z-index: 1;
}

.auth-benefits div {
  padding: 1rem;
  border: 1px solid rgba(7, 140, 55, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
}

.auth-benefits span {
  display: block;
  color: #078c37;
  font-size: 1.35rem;
  font-weight: 900;
}

.auth-benefits strong {
  display: block;
  color: #10241d;
  font-size: 0.92rem;
  font-weight: 900;
}

.auth-benefits small {
  color: #5b6a65;
  font-size: 0.76rem;
  font-weight: 700;
}

.auth-hero-panel img {
  position: absolute;
  right: -16px;
  bottom: 108px;
  width: min(42%, 320px);
  max-height: 240px;
  object-fit: contain;
  filter: drop-shadow(0 20px 28px rgba(3, 27, 22, 0.14));
}

.auth-card {
  padding: clamp(1.3rem, 3vw, 2rem);
  align-self: center;
}

.auth-card-heading {
  text-align: center;
  margin-bottom: 1.4rem;
}

.auth-logo {
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.8rem;
  border-radius: 14px;
  background: #e8f8ef;
}

.auth-card-heading h2 {
  color: #08231b;
  font-size: 1.8rem;
  font-weight: 900;
}

.auth-card-heading p {
  color: #65736e;
  font-weight: 650;
}

.auth-form {
  display: grid;
  gap: 1rem;
}

.auth-field {
  display: grid;
  gap: 0.45rem;
  color: #14251f;
  font-size: 0.88rem;
  font-weight: 900;
}

.auth-card .input-group {
  position: relative;
}

.auth-card .input-icon {
  left: 14px;
  color: #078c37;
}

.auth-card .input-field {
  width: 100%;
  min-height: 52px;
  padding: 0 1rem 0 2.8rem;
  border: 1px solid #d7e3dd;
  border-radius: 10px;
  background: #fff;
  color: #10201c;
  font-weight: 750;
}

.auth-card .input-field:focus {
  border-color: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.13);
  outline: 0;
}

.auth-status-row {
  min-height: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  color: #65736e;
  font-size: 0.82rem;
  font-weight: 750;
}

.auth-status-row button {
  color: #078c37;
  font-weight: 900;
}

.auth-submit {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #078c37;
  color: #fff;
  font-weight: 900;
  box-shadow: 0 12px 26px rgba(7, 140, 55, 0.24);
}

.auth-submit:hover {
  background: #026f2f;
  transform: translateY(-2px);
}

.auth-submit:disabled {
  cursor: wait;
  opacity: 0.7;
  transform: none;
}

.auth-error {
  min-height: 22px;
  margin-top: 0.8rem;
  color: #dc2626;
  text-align: center;
  font-size: 0.86rem;
  font-weight: 800;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.35rem 0;
  color: #6b7974;
  font-size: 0.82rem;
  font-weight: 800;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: #dfe8e3;
}

.google-signin-wrap {
  display: flex;
  justify-content: center;
}

.auth-switch {
  margin-top: 1.15rem;
  color: #65736e;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 750;
}

.auth-switch a {
  color: #078c37;
  font-weight: 900;
}

.cart-shell {
  width: min(1180px, calc(100% - 2rem));
  margin: 1.5rem auto 0;
}

.cart-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: clamp(1.2rem, 3vw, 1.8rem);
  border: 1px solid #dfe8e3;
  border-radius: 16px;
  background:
    radial-gradient(circle at 82% 20%, rgba(34, 197, 94, 0.16), transparent 24%),
    linear-gradient(135deg, #ffffff, #eaf8ee);
  box-shadow: 0 14px 38px rgba(3, 27, 22, 0.08);
}

.cart-hero span {
  color: #078c37;
  font-size: 0.78rem;
  font-weight: 900;
}

.cart-hero h1 {
  color: #08231b;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
}

.cart-hero p {
  max-width: 40rem;
  color: #5f6e69;
  font-weight: 650;
}

.cart-hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(90px, 1fr));
  gap: 0.65rem;
}

.cart-hero-metrics div {
  min-width: 112px;
  padding: 0.85rem;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(3, 27, 22, 0.06);
}

.cart-hero-metrics strong,
.cart-hero-metrics small {
  display: block;
}

.cart-hero-metrics strong {
  color: #078c37;
  font-size: 1.25rem;
  font-weight: 900;
}

.cart-hero-metrics small {
  color: #61706b;
  font-size: 0.76rem;
  font-weight: 750;
}

.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 380px);
  gap: 1rem;
  align-items: start;
}

.cart-items-panel,
.cart-summary-card {
  border: 1px solid #dfe8e3;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 38px rgba(3, 27, 22, 0.08);
}

.cart-items-panel {
  padding: 1rem;
}

.cart-panel-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.35rem 0.35rem 1rem;
}

.cart-panel-heading h2 {
  color: #08231b;
  font-size: 1.35rem;
  font-weight: 900;
}

.cart-panel-heading p {
  color: #65736e;
  font-size: 0.88rem;
  font-weight: 700;
}

.cart-panel-heading a {
  color: #078c37;
  font-size: 0.88rem;
  font-weight: 900;
}

.cart-items-list {
  display: grid;
  gap: 0.8rem;
}

.cart-item-card {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) auto auto;
  gap: 1rem;
  align-items: center;
  padding: 0.85rem;
  border: 1px solid #edf2ef;
  border-radius: 12px;
  background: #fff;
}

.cart-item-card img {
  width: 88px;
  height: 88px;
  border-radius: 12px;
  background: #f3f8f5;
  object-fit: contain;
}

.cart-item-details h3 {
  color: #10241d;
  font-size: 0.98rem;
  font-weight: 900;
}

.cart-item-details p {
  margin-top: 0.18rem;
  color: #61706b;
  font-size: 0.82rem;
  font-weight: 700;
}

.cart-item-details span {
  display: inline-flex;
  margin-top: 0.45rem;
  padding: 0.22rem 0.48rem;
  border-radius: 999px;
  background: #e8f8ef;
  color: #078c37;
  font-size: 0.72rem;
  font-weight: 900;
}

.cart-qty-control {
  display: inline-grid;
  grid-template-columns: 34px 46px 34px;
  overflow: hidden;
  border: 1px solid #b8dac3;
  border-radius: 10px;
  background: #fff;
}

.cart-qty-control button,
.cart-qty-control input {
  height: 36px;
  border: 0;
  text-align: center;
  color: #078c37;
  font-weight: 900;
}

.cart-qty-control input {
  width: 46px;
  color: #10241d;
}

.cart-item-price {
  display: grid;
  justify-items: end;
  gap: 0.35rem;
}

.cart-item-price strong {
  color: #08231b;
  font-size: 1rem;
  font-weight: 900;
}

.cart-item-price button {
  color: #dc2626;
  font-size: 0.78rem;
  font-weight: 900;
}

.cart-empty-state {
  display: grid;
  justify-items: center;
  gap: 0.45rem;
  padding: 3rem 1rem;
  text-align: center;
}

.cart-empty-state div {
  font-size: 3rem;
}

.cart-empty-state h3 {
  color: #08231b;
  font-size: 1.4rem;
  font-weight: 900;
}

.cart-empty-state p {
  max-width: 25rem;
  color: #65736e;
  font-weight: 650;
}

.cart-empty-state a {
  margin-top: 0.8rem;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  background: #078c37;
  color: #fff;
  font-weight: 900;
}

.cart-summary-card {
  position: sticky;
  top: 160px;
  display: grid;
  gap: 1rem;
  padding: 1rem;
}

.summary-card-header,
.summary-lines div,
.summary-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.summary-card-header span {
  color: #08231b;
  font-size: 1.25rem;
  font-weight: 900;
}

.summary-card-header strong {
  color: #078c37;
  font-size: 0.86rem;
  font-weight: 900;
}

.coupon-box {
  display: flex;
  gap: 0.75rem;
  padding: 0.85rem;
  border-radius: 12px;
  background: #effaf4;
}

.coupon-box > span {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #fff;
}

.coupon-box strong,
.coupon-box small {
  display: block;
}

.coupon-box strong {
  color: #0f2a21;
  font-size: 0.88rem;
  font-weight: 900;
}

.coupon-box small {
  color: #65736e;
  font-size: 0.76rem;
  font-weight: 700;
}

.summary-lines {
  display: grid;
  gap: 0.65rem;
  color: #61706b;
  font-weight: 750;
}

.summary-lines strong {
  color: #10241d;
  font-weight: 900;
}

.free-text {
  color: #078c37 !important;
}

.delivery-progress {
  padding: 0.75rem;
  border-radius: 10px;
  background: #fff7ed;
  color: #9a3412;
  font-size: 0.82rem;
  font-weight: 900;
}

.delivery-progress.complete {
  background: #e8f8ef;
  color: #078c37;
}

.summary-total {
  padding-top: 1rem;
  border-top: 1px solid #dfe8e3;
  color: #08231b;
  font-size: 1.15rem;
  font-weight: 900;
}

.checkout-btn {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #078c37;
  color: #fff;
  font-weight: 900;
  box-shadow: 0 12px 26px rgba(7, 140, 55, 0.24);
}

.checkout-btn.disabled {
  pointer-events: none;
  background: #aab7b1;
  box-shadow: none;
}

.summary-trust {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.38rem;
  color: #65736e;
  font-size: 0.78rem;
  font-weight: 750;
}

.summary-loading {
  color: #65736e;
  font-weight: 800;
}

@media (max-width: 980px) {
  .auth-shell,
  .cart-layout {
    grid-template-columns: 1fr;
  }

  .auth-hero-panel {
    min-height: 420px;
  }

  .cart-summary-card {
    position: static;
  }
}

@media (max-width: 680px) {
  .auth-shell,
  .cart-shell {
    width: min(100% - 1rem, 1180px);
    margin-top: 1rem;
  }

  .auth-benefits {
    grid-template-columns: 1fr;
  }

  .auth-hero-panel img {
    display: none;
  }

  .cart-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .cart-hero-metrics {
    width: 100%;
    grid-template-columns: 1fr;
  }

  .cart-item-card {
    grid-template-columns: 74px minmax(0, 1fr);
  }

  .cart-item-card img {
    width: 74px;
    height: 74px;
  }

  .cart-qty-control,
  .cart-item-price {
    grid-column: 1 / -1;
  }

  .cart-item-price {
    justify-items: stretch;
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .cart-panel-heading {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Premium location selector overrides kept at the end to win over older header rules. */
.location-chip {
  position: relative;
  width: min(100%, 310px);
  max-width: 310px;
  min-height: 64px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 18px;
  grid-template-rows: auto auto;
  column-gap: 0.7rem;
  align-items: center;
  padding: 0.72rem 0.9rem;
  border: 1px solid rgba(3, 27, 22, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 34px rgba(3, 27, 22, 0.1);
  cursor: pointer;
}

.location-pin {
  grid-row: 1 / 3;
}

.location-kicker {
  display: block;
  grid-column: 2;
  color: #64746e;
  font-size: 0.72rem;
  font-weight: 800;
}

#user-location {
  grid-column: 2;
  max-width: none;
}

.location-change {
  grid-column: 3;
  grid-row: 1 / 3;
  color: #16a34a;
}

@media (max-width: 760px) {
  html,
  body {
    max-width: 100%;
    overflow-x: clip;
  }

  .site-header-bar {
    width: min(100% - 1rem, 1180px);
    grid-template-columns: minmax(0, 1fr);
    gap: 0.7rem;
    padding: 0.85rem 0;
  }

  .site-header-bar > * {
    min-width: 0;
  }

  .logo,
  .location-chip,
  .desktop-search,
  .mobile-search,
  .header-actions {
    grid-column: 1 / -1;
  }

  .logo {
    max-width: 100%;
  }

  .location-chip {
    width: 100%;
    max-width: none;
    min-height: 54px;
    grid-template-columns: 30px minmax(0, 1fr) 16px;
    padding: 0.6rem 0.72rem;
  }

  .header-actions {
    width: 100%;
    justify-content: space-between;
    gap: 0.45rem;
    overflow: hidden;
  }

  .header-icon-btn,
  .dark-mode-toggle {
    min-width: 42px;
    min-height: 42px;
  }

  .mobile-search {
    width: 100%;
  }
}

/* Homepage marketplace density pass */
.home-page {
  background: #f7faf8;
}

.home-page .offer-bar-inner {
  min-height: 34px;
  font-size: 0.78rem;
}

.home-page .site-header-bar {
  padding-top: 0.72rem;
  padding-bottom: 0.72rem;
  gap: 0.75rem;
}

.home-page .brand-logo-img {
  width: 128px;
}

.home-page .location-chip {
  min-height: 46px;
  border-radius: 10px;
  box-shadow: none;
}

.home-page .location-pin {
  width: 28px;
  height: 28px;
}

.home-page #search-input,
.home-page .mobile-search .search-input,
.home-page header button[onclick*="search"] {
  height: 46px;
}

.home-page .header-icon-btn,
.home-page .dark-mode-toggle {
  min-width: 42px;
  min-height: 42px;
  border-radius: 10px;
}

.home-page .category-strip-inner {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.home-page .hero-section {
  padding-top: 0.75rem !important;
}

.home-page .hero-swiper,
.home-page .hero-panel {
  min-height: clamp(350px, 32vw, 420px);
}

.home-page .hero-swiper {
  border: 1px solid #e1ece5;
  border-radius: 14px;
}

.home-page .hero-panel {
  grid-template-columns: minmax(260px, 0.95fr) minmax(280px, 1fr) minmax(190px, 0.58fr);
  padding: clamp(1rem, 2vw, 1.6rem);
}

.home-page .hero-copy h1 {
  max-width: 13ch;
  font-size: clamp(2rem, 4.2vw, 3.25rem);
}

.home-page .hero-copy p {
  margin-top: 0.55rem;
  font-size: 0.98rem;
}

.home-page .hero-stats {
  margin-top: 0.9rem;
  gap: 0.55rem;
}

.home-page .hero-actions {
  margin-top: 1rem;
}

.home-page .hero-cta {
  min-height: 40px;
  padding: 0.62rem 0.9rem;
  font-size: 0.84rem;
}

.home-page .hero-art img {
  max-height: 285px;
}

.home-page .delivery-card {
  gap: 0.45rem;
}

.home-page .delivery-card strong {
  font-size: 1.12rem;
}

.home-page .delivery-card img {
  height: 96px;
}

.home-page .order-pill {
  padding: 0.52rem 0.6rem;
  font-size: 0.76rem;
}

.home-page section {
  padding-top: 0.85rem !important;
  padding-bottom: 0.85rem !important;
}

.home-page .section-heading {
  align-items: center;
  margin-bottom: 0.55rem;
}

.home-page .section-heading h2 {
  font-size: clamp(1.25rem, 2vw, 1.62rem);
}

.home-page .section-heading p {
  font-size: 0.86rem;
}

.home-page .section-link {
  padding: 0.35rem 0;
  font-size: 0.82rem;
}

.home-page .market-rail {
  grid-auto-columns: minmax(204px, 1fr);
  gap: 0.65rem;
  padding-bottom: 0.45rem;
}

.home-page .product-card,
.home-page .product-card-compact {
  min-width: 204px;
  min-height: 330px;
  border-radius: 14px;
}

.home-page .product-image-container {
  height: 164px;
  padding: 0.55rem;
}

.home-page .product-info {
  gap: 0.3rem;
  padding: 0.55rem 0.62rem 0.62rem;
}

.home-page .product-title {
  min-height: 2.1rem;
  font-size: 0.82rem;
  line-height: 1.28;
}

.home-page .product-meta-row,
.home-page .vendor-block,
.home-page .product-rating {
  font-size: 0.72rem;
}

.home-page .product-price {
  font-size: 1.04rem;
  line-height: 1.1;
}

.home-page .btn-action {
  min-height: 32px;
  flex: 0 0 auto;
  padding: 0.4rem 0.7rem;
  border-radius: 10px;
  font-size: 0.74rem;
}

.home-page .product-meta-row {
  gap: 0.35rem;
}

.home-page .vendor-block {
  gap: 0.1rem;
  padding: 0.42rem 0.5rem;
  border-radius: 10px;
  line-height: 1.2;
}

.home-page .product-price-section {
  gap: 0.38rem;
}

.home-page .product-actions {
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
}

.home-page .compact-categories {
  gap: 0.7rem;
}

.home-page .compact-categories .category-card {
  min-height: 176px;
  padding: 0.7rem;
  border-radius: 14px;
}

.home-page .compact-categories .category-card img {
  width: 118px !important;
  height: 112px !important;
  margin-bottom: 0.35rem;
}

.home-page .category-name {
  line-height: 1.2;
}

.home-page .category-skeleton {
  min-height: 176px;
  border-radius: 14px;
}

.home-page .store-rail {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-auto-columns: minmax(208px, 1fr);
  gap: 0.65rem;
  padding-bottom: 0.45rem;
}

.home-page .store-card {
  min-width: 208px;
  border-radius: 14px;
}

.home-page .store-image-wrap {
  height: 92px;
  padding: 0.5rem;
}

.home-page .store-image-wrap img {
  border-radius: 10px;
}

.home-page .store-card-body {
  gap: 0.25rem;
  padding: 0.58rem 0.65rem 0.65rem;
}

.home-page .store-card-body h3 {
  min-height: 2.25em;
  font-size: 0.86rem;
  line-height: 1.14;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.home-page .store-card-body span {
  font-size: 0.72rem;
  line-height: 1.2;
}

.home-page .store-title-row {
  gap: 0.35rem;
}

.home-page .store-view-btn {
  min-height: 32px;
  margin-top: 0.18rem;
  border-radius: 10px;
  font-size: 0.76rem;
}

.home-page .store-card-body span:nth-of-type(3),
.home-page .store-card-body span:nth-of-type(5) {
  display: none;
}

.home-page .home-expanded-results {
  padding-top: 0.9rem !important;
}

.home-page .home-expanded-close {
  cursor: pointer;
}

.home-page .home-expanded-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.home-page .home-expanded-grid .product-card {
  min-width: 0;
}

.home-page .home-expanded-grid .store-card {
  min-width: 0;
}

.download-app-section {
  padding-top: 1rem !important;
}

.download-app-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem;
  border: 1px solid #dfe8e3;
  border-radius: 12px;
  background: linear-gradient(135deg, #08231b, #0b7836);
  color: #fff;
}

.download-app-panel span {
  color: #a7f3c0;
  font-size: 0.78rem;
  font-weight: 900;
}

.download-app-panel h2 {
  color: #fff;
  font-size: clamp(1.35rem, 3vw, 2rem);
}

.download-app-panel p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
  font-weight: 650;
}

@media (max-width: 1100px) {
  .home-page .hero-panel {
    grid-template-columns: minmax(260px, 1fr) minmax(260px, 1fr);
  }

  .home-page .delivery-card {
    display: none;
  }
}

@media (max-width: 760px) {
  .home-page .offer-bar-inner {
    min-height: 28px;
    gap: 0.75rem;
    font-size: 0.7rem;
  }

  .home-page .brand-logo-img {
    width: 118px;
  }

  .home-page .site-header-bar {
    padding-top: 0.45rem;
    padding-bottom: 0.45rem;
  }

  .home-page .header-actions {
    order: 4;
  }

  .home-page .category-strip-inner {
    gap: 0.4rem;
    padding-top: 0.4rem;
    padding-bottom: 0.4rem;
  }

  .home-page .category-strip a {
    padding: 0.42rem 0.58rem;
    font-size: 0.78rem;
  }

  .home-page .hero-section {
    padding: 0.5rem 0.5rem 0 !important;
  }

  .home-page .hero-swiper,
  .home-page .hero-panel {
    height: 318px;
    min-height: 318px;
    max-height: 318px;
  }

  .home-page .hero-panel {
    position: relative;
    grid-template-columns: minmax(0, 1fr) 128px;
    gap: 0.45rem;
    padding: 0.75rem;
    overflow: hidden;
  }

  .home-page .hero-copy {
    position: relative;
    z-index: 1;
  }

  .home-page .hero-kicker {
    margin-bottom: 0.45rem;
    padding: 0.32rem 0.52rem;
    font-size: 0.68rem;
  }

  .home-page .hero-copy h1 {
    max-width: 11ch;
    font-size: 1.72rem;
    line-height: 1.02;
  }

  .home-page .hero-copy p {
    font-size: 0.78rem;
    line-height: 1.34;
  }

  .home-page .hero-stats {
    grid-template-columns: 1fr;
    margin-top: 0.65rem;
  }

  .home-page .hero-stats span:nth-child(n+3) {
    display: none;
  }

  .home-page .hero-actions {
    gap: 0.45rem;
    margin-top: 0.62rem;
  }

  .home-page .hero-cta {
    min-height: 36px;
    padding: 0.52rem 0.62rem;
    font-size: 0.74rem;
  }

  .home-page .hero-art {
    position: absolute;
    right: -8px;
    bottom: 6px;
    width: 136px;
    align-self: center;
    opacity: 0.96;
  }

  .home-page .hero-art img {
    max-height: 150px;
    border-radius: 10px;
  }

  .home-page .delivery-bubble {
    width: 58px;
    height: 58px;
    top: 0;
    left: -8px;
  }

  .home-page .delivery-bubble strong {
    font-size: 1.2rem;
  }

  .home-page .delivery-bubble span {
    max-width: 44px;
    font-size: 0.52rem;
  }

  .home-page section {
    padding-top: 0.65rem !important;
    padding-bottom: 0.65rem !important;
  }

  .home-page .section-heading {
    align-items: flex-start;
    gap: 0.4rem;
    margin-bottom: 0.45rem;
  }

  .home-page .section-heading p {
    display: none;
  }

  .home-page .market-rail,
  .home-page .store-rail,
  .home-page .promo-section {
    grid-auto-columns: minmax(152px, 48vw);
    gap: 0.5rem;
    padding-top: 0.1rem;
    padding-bottom: 0.35rem;
  }

  .home-page .product-card,
  .home-page .product-card-compact {
    min-width: 152px;
    min-height: 282px;
  }

  .home-page .product-image-container {
    height: 132px;
    padding: 0.42rem;
  }

  .home-page .wishlist-btn {
    top: 8px;
    left: 8px;
    width: 30px;
    height: 30px;
  }

  .home-page .badge-stack {
    top: 8px;
    right: 8px;
  }

  .home-page .conversion-badge {
    max-width: 76px;
    padding: 0.26rem 0.34rem;
    font-size: 0.56rem;
  }

  .home-page .product-title {
    min-height: 2rem;
    font-size: 0.76rem;
    line-height: 1.28;
  }

  .home-page .product-info {
    gap: 0.24rem;
    padding: 0.45rem 0.5rem 0.5rem;
  }

  .home-page .vendor-block span {
    display: none;
  }

  .home-page .product-actions {
    gap: 0;
    margin-top: 0.1rem;
  }

  .home-page .btn-buy-now {
    display: none;
  }

  .home-page .btn-add-cart {
    min-width: 68px;
    min-height: 30px;
    padding: 0.32rem 0.55rem;
  }

  .home-page .promo-card {
    min-height: 108px;
    padding: 0.75rem;
  }

  .home-page .promo-card span {
    font-size: 0.9rem;
  }

  .home-page .promo-card img {
    width: 50%;
    max-height: 92px;
  }

  .home-page .compact-categories {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.45rem;
  }

  .home-page .compact-categories .category-card {
    min-height: 104px;
    padding: 0.42rem 0.28rem;
    border-radius: 12px;
  }

  .home-page .compact-categories .category-card img {
    width: 64px !important;
    height: 62px !important;
    margin-bottom: 0.22rem;
  }

  .home-page .category-name {
    font-size: 0.68rem;
    line-height: 1.15;
  }

  .home-page .category-skeleton {
    min-height: 104px;
    border-radius: 12px;
  }

  .home-page .store-rail {
    grid-auto-columns: minmax(248px, 78vw);
  }

  .home-page .store-card {
    min-width: 248px;
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    align-items: stretch;
  }

  .home-page .store-image-wrap {
    height: auto;
    min-height: 116px;
    padding: 0.45rem;
  }

  .home-page .store-image-wrap img {
    border-radius: 10px;
  }

  .home-page .store-card-body {
    gap: 0.2rem;
    padding: 0.48rem 0.55rem 0.52rem;
  }

  .home-page .store-card-body h3 {
    min-height: 2.08em;
    font-size: 0.82rem;
  }

  .home-page .store-card-body span {
    font-size: 0.68rem;
  }

  .home-page .verified-badge {
    padding: 0.12rem 0.24rem;
    font-size: 0.56rem;
  }

  .home-page .store-view-btn {
    min-height: 30px;
    margin-top: 0.12rem;
  }

  .home-page .home-expanded-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
  }

  .home-page .home-expanded-grid.store-results-grid {
    grid-template-columns: 1fr;
  }

  .home-page .home-expanded-grid .store-card {
    width: 100%;
  }

  .download-app-panel {
    align-items: flex-start;
    flex-direction: column;
    padding: 1rem;
  }
}

/* Targeted UI/UX refinement pass */
:root {
  --radius: 14px;
  --shadow-sm: 0 8px 22px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 14px 34px rgba(15, 23, 42, 0.11);
  --shadow-lg: 0 20px 48px rgba(15, 23, 42, 0.14);
  --transition: 180ms cubic-bezier(.2, .8, .2, 1);
}

.supermart-header,
header {
  transition: box-shadow 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.supermart-header {
  box-shadow: 0 2px 14px rgba(3, 27, 22, 0.05);
}

.supermart-header.is-stuck {
  background: rgba(255, 255, 255, 0.98) !important;
  border-bottom-color: rgba(3, 27, 22, 0.12);
  box-shadow: 0 14px 34px rgba(3, 27, 22, 0.12);
}

.brand-logo-link {
  align-self: center;
  line-height: 1;
}

.brand-logo-img {
  width: clamp(118px, 11vw, 148px);
  aspect-ratio: 3.7 / 1;
  object-fit: contain;
}

.desktop-search,
.mobile-search {
  isolation: isolate;
  border-radius: 14px;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.desktop-search:focus-within,
.mobile-search:focus-within {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(7, 140, 55, 0.13);
}

#search-input,
.mobile-search .search-input {
  padding-inline: 1rem;
  transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

#search-input:focus,
.mobile-search .search-input:focus {
  border-color: #078c37;
  box-shadow: inset 0 0 0 1px rgba(7, 140, 55, 0.18);
}

.search-suggestions-panel {
  border-radius: 14px;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.14);
  animation: suggestionIn 180ms ease;
}

@keyframes suggestionIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.suggestion-group a,
.suggestion-group button {
  min-height: 40px;
}

.suggestion-group a:hover,
.suggestion-group button:hover,
.suggestion-group a:focus-visible,
.suggestion-group button:focus-visible {
  background: #f1f8f4;
  color: #076b2e;
  transform: translateX(2px);
}

.header-actions {
  gap: clamp(0.35rem, 1vw, 0.7rem);
}

.header-icon-btn,
.dark-mode-toggle {
  border: 1px solid transparent;
  white-space: nowrap;
}

.header-icon-btn:hover,
.header-icon-btn:focus-visible,
.dark-mode-toggle:hover,
.dark-mode-toggle:focus-visible {
  border-color: #dfe8e3;
  background: #f6fbf8;
  color: #078c37 !important;
  transform: translateY(-1px);
}

.nav-badge {
  min-width: 20px;
  height: 20px;
  padding: 0 0.34rem !important;
  border-radius: 999px !important;
  background: #ff6b00 !important;
  color: #fff !important;
  line-height: 1;
  box-shadow: 0 6px 14px rgba(255, 107, 0, 0.28);
  animation: none;
}

.category-strip-inner {
  scroll-snap-type: x proximity;
  scrollbar-color: #b7d9c4 transparent;
}

.category-strip a {
  scroll-snap-align: start;
  min-height: 40px;
}

.category-strip a.active,
.category-strip a[aria-current="page"] {
  background: #078c37;
  color: #fff !important;
  box-shadow: 0 10px 24px rgba(7, 140, 55, 0.18);
}

.category-strip a:hover {
  transform: translateY(-1px);
}

.category-strip a:focus-visible,
.category-card:focus-visible,
.store-card:focus-within,
.promo-card:focus-visible {
  outline: 3px solid rgba(7, 140, 55, 0.28);
  outline-offset: 3px;
}

.hero-panel {
  animation: heroPanelIn 220ms ease both;
}

@keyframes heroPanelIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-cta:hover,
.delivery-card button:hover,
.promo-card:hover small {
  transform: translateY(-1px);
}

.delivery-card {
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(3, 27, 22, 0.08);
}

.product-card,
.store-card,
.category-card,
.promo-card,
.cart-items-panel,
.cart-summary-card,
.profile-summary-card {
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.home-page .home-market-section {
  scroll-margin-top: 190px;
}

.product-card:hover,
.store-card:hover,
.category-card:hover,
.promo-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.product-image-container,
.category-card img,
.store-image-wrap,
.promo-card img {
  transition: transform 180ms ease, filter 180ms ease;
}

.product-image-container {
  aspect-ratio: 4 / 3;
  height: auto;
  min-height: 168px;
  position: relative;
}

.product-image-container img {
  transform-origin: center;
}

.product-card:hover .product-image-container img {
  transform: scale(1.045);
}

.delivery-time-badge {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  min-height: 26px;
  padding: 0.32rem 0.55rem;
  border: 1px solid rgba(7, 140, 55, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: #076b2e;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.1);
  backdrop-filter: blur(8px);
}

.product-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.wishlist-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #e11d48;
}

.wishlist-btn:hover,
.wishlist-btn:focus-visible {
  transform: scale(1.06);
  box-shadow: 0 10px 24px rgba(225, 29, 72, 0.15);
}

.conversion-badge,
.stock-pill,
.verified-badge,
.product-rating,
.store-open-status,
.store-rating {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 22px;
  border-radius: 999px;
  line-height: 1;
}

.product-rating.no-rating,
.store-rating.no-rating {
  background: #eef2f7;
  color: #526071 !important;
}

.product-rating {
  gap: 0.22rem;
  padding: 0.28rem 0.55rem;
  box-shadow: inset 0 0 0 1px rgba(146, 64, 14, 0.08);
}

.btn-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-add-cart:hover,
.btn-add-cart:focus-visible {
  background: #f1f8f4;
  transform: translateY(-1px);
}

.btn-buy-now:hover,
.btn-buy-now:focus-visible,
.hero-cta:hover,
.section-link:hover {
  transform: translateY(-1px);
}

.category-card img {
  aspect-ratio: 1 / 1;
  object-fit: contain;
}

.category-card:hover img {
  transform: scale(1.045);
}

.store-title-row h3 {
  min-width: 0;
}

.store-distance,
.store-eta,
.store-open-status {
  gap: 0.25rem;
}

.store-open-status {
  padding: 0.24rem 0.5rem;
  font-weight: 900 !important;
}

.store-open-status.is-open {
  background: #dcfce7;
  color: #166534 !important;
}

.store-open-status.is-closed {
  background: #fee2e2;
  color: #991b1b !important;
}

.product-skeleton,
.store-skeleton,
.category-skeleton {
  position: relative;
  overflow: hidden;
}

.product-skeleton::after,
.store-skeleton::after,
.category-skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.7), transparent);
  transform: translateX(-100%);
  animation: skeletonSweep 1.2s ease-in-out infinite;
}

@keyframes skeletonSweep {
  to { transform: translateX(100%); }
}

.empty-state {
  box-shadow: inset 0 0 0 1px rgba(7, 140, 55, 0.04);
}

.empty-state span {
  max-width: 28rem;
}

.trending-page {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.25rem 0 3rem;
}

.trending-breadcrumb {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin: 0 0 1rem;
  color: #61736c;
  font-size: 0.9rem;
}

.trending-breadcrumb a {
  color: #087c37;
  font-weight: 800;
}

.trending-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  gap: 1rem;
  align-items: stretch;
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid rgba(7, 140, 55, 0.13);
  border-radius: 18px;
  background: linear-gradient(135deg, #ffffff 0%, #effaf2 100%);
  box-shadow: var(--shadow-sm);
}

.trending-kicker {
  width: fit-content;
  margin-bottom: 0.75rem;
  padding: 0.42rem 0.72rem;
  border-radius: 999px;
  background: #dcfce7;
  color: #087c37;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.trending-hero h1 {
  margin: 0;
  color: var(--primary);
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1;
  letter-spacing: 0;
}

.trending-hero p {
  margin: 0.75rem 0 0;
  max-width: 42rem;
  color: #52645d;
  font-size: 1rem;
}

.trending-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin: 0;
}

.trending-stats div {
  min-height: 86px;
  padding: 0.85rem;
  border: 1px solid rgba(7, 140, 55, 0.11);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.82);
}

.trending-stats dt {
  margin-bottom: 0.35rem;
  color: #61736c;
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.trending-stats dd {
  margin: 0;
  color: #16382c;
  font-weight: 900;
}

.trending-chip-bar {
  position: sticky;
  top: 76px;
  z-index: 30;
  margin: 1rem 0;
  padding: 0.65rem 0;
  background: rgba(253, 250, 246, 0.94);
  backdrop-filter: blur(12px);
}

.category-chips {
  display: flex;
  gap: 0.55rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  scroll-behavior: smooth;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.category-chips::-webkit-scrollbar {
  display: none;
}

.category-chip,
.view-toggle button,
.filter-trigger,
.pagination-row button {
  min-height: 40px;
  border: 1px solid rgba(7, 140, 55, 0.16);
  border-radius: 999px;
  background: #fff;
  color: #16382c;
  font-weight: 900;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.category-chip {
  flex: 0 0 auto;
  padding: 0 0.9rem;
  white-space: nowrap;
}

.category-chip:hover,
.category-chip.active,
.view-toggle button[aria-pressed="true"] {
  border-color: rgba(7, 140, 55, 0.55);
  background: #087c37;
  color: #fff;
  box-shadow: 0 10px 24px rgba(7, 140, 55, 0.16);
}

.category-chip:focus-visible,
.view-toggle button:focus-visible,
.filter-trigger:focus-visible,
.pagination-row button:focus-visible,
.filter-title-row button:focus-visible,
.filter-apply:focus-visible,
.empty-state button:focus-visible {
  outline: 3px solid rgba(8, 124, 55, 0.28);
  outline-offset: 2px;
}

.trending-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: flex-end;
  margin-bottom: 1rem;
}

.toolbar-field {
  display: grid;
  gap: 0.25rem;
  color: #52645d;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.toolbar-field select,
.filter-panel input,
.filter-panel select {
  min-height: 42px;
  border: 1px solid rgba(7, 140, 55, 0.16);
  border-radius: 10px;
  background: #fff;
  color: #16382c;
}

.toolbar-field select {
  min-width: 170px;
  padding: 0 0.75rem;
}

.filter-trigger {
  display: none;
  padding: 0 1rem;
}

.view-toggle {
  display: inline-flex;
  gap: 0.35rem;
  padding: 0.25rem;
  border-radius: 999px;
  background: #e8f6ee;
}

.view-toggle button {
  padding: 0 0.85rem;
  border-color: transparent;
  background: transparent;
}

.trending-layout {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 1.2rem;
  align-items: start;
}

.filter-panel {
  position: sticky;
  top: 150px;
  display: grid;
  gap: 0.8rem;
  padding: 1rem;
  border: 1px solid rgba(7, 140, 55, 0.12);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.filter-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.filter-title-row h2 {
  margin: 0;
  color: var(--primary);
  font-size: 1.1rem;
}

.filter-title-row button {
  min-height: 34px;
  border: 0;
  border-radius: 999px;
  background: #e8f6ee;
  color: #087c37;
  font-weight: 900;
}

.filter-panel details {
  border-top: 1px solid #edf3ef;
  padding-top: 0.7rem;
}

.filter-panel summary {
  cursor: pointer;
  color: #16382c;
  font-weight: 900;
}

.filter-options {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.65rem;
  color: #52645d;
  font-size: 0.92rem;
}

.filter-options label {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  cursor: pointer;
}

.price-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  margin-top: 0.65rem;
}

.filter-panel input[type="number"],
.filter-panel input[type="search"] {
  width: 100%;
  padding: 0 0.7rem;
}

.filter-apply {
  min-height: 44px;
  border: 0;
  border-radius: 10px;
  background: #087c37;
  color: #fff;
  font-weight: 900;
}

.results-summary {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  color: #52645d;
  font-weight: 800;
}

.product-results-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
}

.product-results-grid.compact-view {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.product-results-grid.compact-view .product-card {
  min-height: 440px;
}

.product-results-grid .product-card {
  animation: productFadeIn 220ms ease both;
}

@keyframes productFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.conversion-badge.trending {
  background: #dcfce7;
  color: #087c37;
  border-color: rgba(7, 140, 55, 0.22);
}

.trending-reason {
  color: #087c37;
  font-weight: 900;
}

.pagination-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.pagination-row button {
  padding: 0 1rem;
}

.pagination-row button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.filter-sheet {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: flex-end;
  background: rgba(3, 27, 22, 0.48);
}

.filter-sheet.hidden {
  display: none;
}

.filter-sheet-panel {
  width: 100%;
  max-height: 86vh;
  overflow-y: auto;
  padding: 1rem;
  border-radius: 18px 18px 0 0;
  background: #fff;
}

.filter-sheet .filter-panel {
  position: static;
  padding: 0;
  border: 0;
  box-shadow: none;
}

.empty-state button {
  min-height: 38px;
  margin: 0.4rem;
  padding: 0 0.8rem;
  border: 1px solid rgba(7, 140, 55, 0.2);
  border-radius: 999px;
  background: #fff;
  color: #087c37;
  font-weight: 900;
}

@media (max-width: 1100px) {
  .product-results-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-results-grid.compact-view {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .trending-page {
    width: min(100% - 1rem, 760px);
  }

  .trending-hero {
    grid-template-columns: 1fr;
    border-radius: 14px;
  }

  .trending-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trending-chip-bar {
    top: 68px;
    margin-inline: -0.5rem;
    padding-inline: 0.5rem;
  }

  .trending-toolbar {
    justify-content: flex-start;
  }

  .trending-toolbar .view-toggle {
    order: 4;
  }

  .filter-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .trending-layout {
    grid-template-columns: 1fr;
  }

  .filter-sidebar {
    display: none;
  }

  .product-results-grid,
  .product-results-grid.compact-view {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
  }
}

@media (max-width: 560px) {
  .trending-page {
    width: min(100% - 0.75rem, 760px);
  }

  .trending-hero {
    padding: 1rem;
  }

  .trending-hero h1 {
    font-size: 2rem;
  }

  .trending-stats {
    grid-template-columns: 1fr;
  }

  .toolbar-field {
    width: 100%;
  }

  .toolbar-field select {
    width: 100%;
  }

  .view-toggle {
    width: 100%;
  }

  .view-toggle button {
    flex: 1 1 0;
  }
}

.store-view-btn {
  transition: transform 180ms ease, background-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.store-view-btn:hover,
.store-view-btn:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(7, 140, 55, 0.18);
}

.promo-card {
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.07);
}

.promo-card:hover img {
  transform: translateY(-2px) scale(1.035);
}

footer {
  border-top: 1px solid #e1e8e4;
}

.newsletter-form {
  align-items: stretch;
  gap: 0.5rem;
}

.newsletter-form input,
.newsletter-form button {
  min-height: 44px;
  border-radius: 10px;
}

.payment-icons,
.footer-social,
.app-buttons {
  align-items: center;
}

.payment-icons span,
.footer-social a,
.app-buttons a {
  transition: transform 180ms ease, background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.payment-icons span:hover,
.footer-social a:hover,
.app-buttons a:hover {
  transform: translateY(-1px);
}

#voice-btn {
  background: #078c37 !important;
  box-shadow: 0 16px 34px rgba(7, 140, 55, 0.28) !important;
  animation: none !important;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease !important;
}

#voice-btn:hover,
#voice-btn:focus-visible {
  background: #076b2e !important;
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 20px 42px rgba(7, 140, 55, 0.34) !important;
}

#voice-btn.pulse-animation {
  animation: voiceListening 220ms ease both !important;
}

@keyframes voiceListening {
  from { transform: scale(1); }
  to { transform: scale(1.06); }
}

#search-results > .flex,
#category-products > .flex {
  align-items: flex-start;
}

#search-results .sticky,
#category-products .sticky {
  top: 150px;
  border: 1px solid #dfe8e3;
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
}

#search-results select,
#search-results input,
#category-products select,
#category-products input {
  min-height: 40px;
  border-color: #dfe8e3;
  border-radius: 10px;
}

#apply-price,
#clear-filters {
  min-height: 40px;
  border-radius: 10px;
  font-weight: 850;
}

@media (max-width: 980px) {
  #search-results > .flex,
  #category-products > .flex {
    flex-direction: column;
  }

  #search-results .w-64,
  #category-products .w-64 {
    width: 100%;
  }

  #search-results .sticky,
  #category-products .sticky {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
  }

  #search-results .sticky h3,
  #category-products .sticky h3,
  #clear-filters {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .home-page .offer-bar-inner {
    min-height: 22px;
    padding-inline: 0.75rem;
    font-size: 0.66rem;
  }

  .home-page .site-header-bar {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.5rem;
    padding-top: 0.42rem;
    padding-bottom: 0.5rem;
  }

  .home-page .logo {
    grid-column: 1;
    grid-row: 1;
  }

  .brand-logo-img {
    width: 108px;
  }

  .home-page .header-actions {
    grid-column: 2;
    grid-row: 1;
    order: initial;
    overflow-x: auto;
    padding-bottom: 0.1rem;
    scrollbar-width: none;
  }

  .header-actions::-webkit-scrollbar {
    display: none;
  }

  .header-icon-btn,
  .dark-mode-toggle {
    min-width: 38px;
    min-height: 38px;
    font-size: 0.78rem;
  }

  .home-page .header-icon-btn > span:not(.nav-badge):not(:first-child),
  .home-page #user-link {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }

  .home-page .location-chip {
    grid-column: 1 / -1;
    grid-row: 2;
    min-height: 42px;
    padding: 0.48rem 0.65rem;
  }

  .home-page .mobile-search {
    grid-column: 1 / -1;
    grid-row: 3;
  }

  .home-page #search-input,
  .home-page .mobile-search .search-input,
  .home-page header button[onclick*="search"] {
    height: 40px;
  }

  .home-page .category-strip-inner {
    gap: 0.35rem;
    padding-top: 0.28rem;
    padding-bottom: 0.28rem;
  }

  .home-page .category-strip a {
    min-height: 34px;
    padding: 0.34rem 0.5rem;
    border-radius: 9px;
    font-size: 0.72rem;
  }

  .home-page .category-strip img {
    width: 20px !important;
    height: 20px !important;
  }

  .search-suggestions-panel {
    position: fixed;
    top: auto;
    left: 0.75rem;
    right: 0.75rem;
    max-height: 58vh;
  }

  .product-image-container {
    min-height: 128px;
  }

  .delivery-time-badge {
    right: 7px;
    bottom: 7px;
    min-height: 22px;
    padding: 0.24rem 0.42rem;
    font-size: 0.62rem;
  }

  .home-page .home-market-section {
    scroll-margin-top: 210px;
  }

  #search-results .sticky,
  #category-products .sticky {
    grid-template-columns: 1fr;
    padding: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }

  .product-card:hover,
  .store-card:hover,
  .category-card:hover,
  .promo-card:hover,
  .product-card:hover .product-image-container img,
  .category-card:hover img,
  .promo-card:hover img {
    transform: none;
  }
}

/* Final mobile cascade guard: this block must stay last. */
@media (max-width: 900px) {
  body {
    width: 100%;
    overflow-x: clip;
  }

  .offer-bar,
  .category-strip,
  footer {
    max-width: 100vw;
    overflow-x: clip;
  }

  .category-chip-bar,
  .trending-chip-bar {
    max-width: 100%;
    overflow-x: clip;
  }

  .category-chips,
  .category-strip-inner {
    max-width: 100%;
    overflow-x: auto;
  }

  .mobile-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 70;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.12rem;
    padding: 0.42rem max(0.45rem, env(safe-area-inset-left)) calc(0.42rem + env(safe-area-inset-bottom)) max(0.45rem, env(safe-area-inset-right));
    border-top: 1px solid rgba(3, 27, 22, 0.12);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 -12px 28px rgba(15, 23, 42, 0.12);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }

  .mobile-bottom-nav a,
  .header-icon-btn,
  .dark-mode-toggle,
  .wishlist-btn,
  .btn-action,
  .category-chip,
  .view-toggle button,
  .filter-trigger,
  .pagination-row button,
  .toolbar-icon-btn,
  #apply-price,
  #clear-filters,
  .product-purchase-panel button,
  #review-form button,
  .tab-button {
    min-height: 44px !important;
  }

  .header-icon-btn,
  .dark-mode-toggle,
  .wishlist-btn {
    min-width: 44px !important;
  }

  .wishlist-btn {
    width: 44px !important;
    height: 44px !important;
  }

  footer .max-w-7xl,
  .footer-grid,
  .footer-brand,
  .newsletter-form {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }
}

@media (max-width: 680px) {
  .footer-grid {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .newsletter-form {
    border-radius: 12px;
  }

  .newsletter-form input {
    font-size: 16px;
  }
}

/* Listing mobile cascade guard: keep category chips in document flow. */
@media (max-width: 900px) {
  .trending-page,
  .category-page {
    width: min(100% - 0.75rem, 760px);
    padding-top: 0.65rem;
    overflow: visible;
  }

  .trending-breadcrumb,
  .category-breadcrumb {
    margin-bottom: 0.55rem;
  }

  .trending-chip-bar,
  .category-chip-bar {
    position: static !important;
    top: auto !important;
    z-index: auto !important;
    margin: 0.45rem 0 0.65rem !important;
    padding: 0.45rem 0 !important;
    max-width: 100%;
    overflow-x: clip;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .category-chips {
    width: 100%;
    max-width: 100%;
    gap: 0.4rem;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0.05rem 0 0.25rem;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
  }

  .category-chip {
    min-height: 36px !important;
    padding: 0 0.72rem;
    font-size: 0.82rem;
  }

  .trending-toolbar,
  .category-market-toolbar {
    position: static;
    align-items: stretch;
    margin-bottom: 0.7rem;
    padding: 0.55rem;
  }

  .trending-layout,
  .category-market-layout {
    gap: 0.7rem;
  }

  .product-results-grid,
  .product-results-grid.compact-view,
  .category-products-grid {
    width: 100%;
    max-width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.5rem !important;
    overflow: visible;
  }

  .product-results-grid .product-card,
  .category-products-grid .product-card {
    width: 100%;
    min-width: 0;
  }

  .product-title {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .product-image-container {
    aspect-ratio: 1 / 1;
    height: auto;
  }

  .wishlist-btn,
  .delivery-time-badge,
  .product-card .badge {
    max-width: calc(100% - 0.75rem);
  }

  footer {
    margin-top: 1.4rem;
  }

  footer .max-w-7xl,
  .footer-grid {
    padding-top: 1.4rem;
    padding-bottom: 1rem;
  }

  .footer-grid {
    gap: 1rem;
  }

  footer h3 {
    margin-bottom: 0.55rem;
  }

  footer ul {
    gap: 0.36rem;
  }

  .footer-subhead {
    margin-top: 0.9rem;
  }

  .newsletter-form,
  .payment-icons,
  .app-buttons {
    margin-top: 0.7rem;
  }
}

@media (max-width: 560px) {
  .trending-page,
  .category-page {
    width: min(100% - 0.5rem, 760px);
  }

  .toolbar-left,
  .toolbar-actions {
    gap: 0.5rem;
  }

  .view-toggle button,
  .filter-trigger,
  .toolbar-icon-btn {
    min-height: 40px !important;
  }

  .newsletter-form {
    display: grid;
    gap: 0.45rem;
  }
}

/* ZopCart homepage mobile polish: scoped final overrides for card geometry and fixed actions. */
.home-page {
  padding-bottom: calc(1.5rem + env(safe-area-inset-bottom));
  overflow-x: clip;
}

.home-page .category-card img,
.home-page .store-image-wrap img,
.home-page .product-image-container img,
.home-page .promo-card img {
  display: block;
  max-width: 100%;
}

.home-page .compact-categories .category-card img {
  object-fit: contain;
}

.home-page .store-rail {
  grid-template-columns: none;
  grid-auto-flow: column;
  align-items: stretch;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x proximity;
}

.home-page .store-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  scroll-snap-align: start;
}

.home-page .store-image-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  min-height: 0;
  padding: 0.5rem;
  background: #f8fbf9;
}

.home-page .store-image-wrap img {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  object-fit: cover;
}

.home-page .store-card-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.home-page .store-title-row {
  min-width: 0;
}

.home-page .store-title-row h3,
.home-page .product-title {
  overflow-wrap: anywhere;
}

.home-page .store-card-body > span,
.home-page .store-card-body .store-view-btn {
  flex: 0 0 auto;
}

.home-page .store-view-btn {
  margin-top: auto;
}

.home-page .product-card,
.home-page .product-card-compact {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.home-page .product-image-container {
  aspect-ratio: 4 / 3;
  height: auto;
  min-height: 0;
}

.home-page .product-image-container img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.home-page .product-info {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.home-page .product-title {
  display: -webkit-box;
  min-height: 0;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.home-page .product-meta-row span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-page .stock-pill {
  flex: 0 0 auto;
}

.home-page .product-rating.no-rating {
  display: none;
}

.home-page .product-actions {
  margin-top: auto;
}

.home-page .promo-section {
  align-items: stretch;
}

.home-page .promo-card {
  isolation: isolate;
  min-width: 0;
}

.home-page .promo-card span,
.home-page .promo-card strong,
.home-page .promo-card small {
  max-width: 62%;
}

.home-page .promo-card strong {
  line-height: 1.1;
}

.home-page .promo-card small {
  white-space: nowrap;
}

.home-page .promo-card picture {
  pointer-events: none;
}

.home-page .promo-card img {
  z-index: 0;
}

.floating-cart-btn {
  right: max(1rem, env(safe-area-inset-right));
  bottom: calc(6.25rem + env(safe-area-inset-bottom));
}

@media (min-width: 901px) {
  .floating-cart-btn {
    bottom: calc(2rem + env(safe-area-inset-bottom));
  }
}

@media (max-width: 900px) {
  .home-page main {
    padding-bottom: calc(7.25rem + env(safe-area-inset-bottom));
  }

  .home-page .home-market-section {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
  }

  .home-page .market-rail,
  .home-page .store-rail {
    width: calc(100vw - 1.5rem);
    max-width: 100%;
  }

  .home-page .market-rail {
    grid-auto-columns: minmax(164px, 46vw);
  }

  .home-page .product-card,
  .home-page .product-card-compact {
    min-width: 164px;
    min-height: 318px;
  }

  .home-page .product-meta-row {
    align-items: flex-start;
  }

  .home-page .product-price-section {
    min-height: 1.5rem;
  }

  .home-page .store-rail {
    grid-auto-columns: minmax(156px, 44vw);
  }

  .home-page .store-card {
    min-width: 156px;
    min-height: 244px;
  }

  .home-page .store-card-body {
    padding: 0.55rem;
  }

  .home-page .store-card-body span:nth-of-type(3),
  .home-page .store-card-body span:nth-of-type(5) {
    display: none;
  }

  .home-page .store-card-body h3 {
    min-height: 0;
  }

  .home-page .promo-section {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
  }

  .home-page .promo-card {
    min-height: 126px;
    padding: 0.75rem;
  }

  .home-page .promo-card span {
    font-size: 0.76rem;
  }

  .home-page .promo-card strong {
    font-size: 1rem;
  }

  .home-page .promo-card small {
    margin-top: 0.35rem;
    padding: 0.35rem 0.5rem;
    font-size: 0.68rem;
  }

  .home-page .promo-card img {
    right: -0.55rem;
    bottom: -0.35rem;
    width: 54%;
    max-height: 84px;
  }
}

@media (max-width: 680px) {
  .home-page footer {
    margin-top: 1rem;
  }

  .home-page footer .max-w-7xl,
  .home-page .footer-grid {
    padding: 1rem 0.85rem 0.75rem;
  }

  .home-page .footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
  }

  .home-page .footer-brand {
    grid-column: 1 / -1;
  }

  .home-page .footer-brand p {
    margin-top: 0.45rem;
    font-size: 0.78rem;
    line-height: 1.45;
  }

  .home-page .newsletter-form {
    grid-template-columns: 1fr auto;
    margin-top: 0.6rem;
  }

  .home-page .newsletter-form input,
  .home-page .newsletter-form button {
    min-height: 38px;
  }

  .home-page .payment-icons,
  .home-page .app-buttons {
    gap: 0.35rem;
    margin-top: 0.55rem;
  }

  .home-page .payment-icons span,
  .home-page .app-buttons a {
    padding: 0.32rem 0.42rem;
    font-size: 0.66rem;
  }

  .home-page footer h3 {
    margin-bottom: 0.38rem;
    font-size: 0.82rem;
  }

  .home-page footer ul {
    gap: 0.22rem;
  }

  .home-page footer li,
  .home-page footer a {
    font-size: 0.72rem;
    line-height: 1.25;
  }

  .home-page .footer-subhead {
    margin-top: 0.55rem;
  }

  .home-page .footer-social {
    gap: 0.35rem;
  }

  .home-page .footer-social a {
    width: 30px;
    height: 30px;
    font-size: 0.72rem;
  }

  .home-page footer .divider {
    margin-top: 0.45rem;
  }

  .home-page footer .copyright {
    padding: 0.7rem 0.85rem calc(0.8rem + env(safe-area-inset-bottom));
    font-size: 0.68rem;
  }
}

@media (max-width: 430px) {
  .home-page .compact-categories {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.4rem;
  }

  .home-page .compact-categories .category-card {
    min-height: 98px;
  }

  .home-page .compact-categories .category-card img {
    width: 56px !important;
    height: 54px !important;
  }

  .home-page .market-rail {
    grid-auto-columns: minmax(154px, 45vw);
  }

  .home-page .product-card,
  .home-page .product-card-compact {
    min-width: 154px;
  }

  .home-page .store-rail {
    grid-auto-columns: minmax(148px, 43vw);
  }

  .home-page .store-card {
    min-width: 148px;
  }

  .home-page .promo-card {
    min-height: 120px;
    padding: 0.65rem;
  }

  .home-page .promo-card span,
  .home-page .promo-card strong,
  .home-page .promo-card small {
    max-width: 68%;
  }

  .floating-cart-btn {
    right: max(0.75rem, env(safe-area-inset-right));
    bottom: calc(5.8rem + env(safe-area-inset-bottom));
    min-width: 76px;
    height: 44px;
    padding: 0 0.75rem;
  }
}

@media (max-width: 360px) {
  .home-page .home-market-section {
    padding-left: 0.55rem !important;
    padding-right: 0.55rem !important;
  }

  .home-page .market-rail,
  .home-page .store-rail {
    width: calc(100vw - 1.1rem);
  }

  .home-page .compact-categories {
    gap: 0.32rem;
  }

  .home-page .category-name {
    font-size: 0.64rem;
  }

  .home-page .market-rail {
    grid-auto-columns: minmax(148px, 47vw);
  }

  .home-page .product-card,
  .home-page .product-card-compact {
    min-width: 148px;
    min-height: 312px;
  }

  .home-page .product-info {
    padding-inline: 0.45rem;
  }

  .home-page .store-rail {
    grid-auto-columns: minmax(144px, 46vw);
  }

  .home-page .store-card {
    min-width: 144px;
  }

  .home-page .promo-section {
    gap: 0.42rem;
  }

  .home-page .promo-card {
    min-height: 116px;
  }

  .home-page .promo-card small {
    padding-inline: 0.42rem;
  }

  .home-page .newsletter-form {
    grid-template-columns: 1fr;
  }
}

/* Homepage production finish: compact ecommerce rails without changing data or behavior. */
.home-page {
  --zopcart-voice-bottom: calc(88px + env(safe-area-inset-bottom, 0px));
}

.home-page .market-rail,
.home-page .store-rail {
  grid-template-columns: none;
  align-items: stretch;
  scrollbar-width: none;
}

.home-page .market-rail::-webkit-scrollbar,
.home-page .store-rail::-webkit-scrollbar {
  display: none;
}

.home-page .product-card,
.home-page .product-card-compact {
  height: 100%;
  min-height: 0;
}

.home-page .product-title {
  -webkit-line-clamp: 2;
}

.home-page .vendor-block {
  padding: 0.45rem 0.5rem;
  border-radius: 10px;
}

.home-page .vendor-block strong,
.home-page .vendor-block span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-page .btn-action {
  min-height: 44px;
}

.home-page .empty-state.rail-empty {
  min-width: min(100%, 320px);
  min-height: 118px;
}

.home-page .product-skeleton {
  min-height: 296px;
}

.home-page .store-skeleton {
  min-height: 168px;
}

.home-page .category-skeleton {
  min-height: 132px;
}

.home-page .promo-section {
  overflow-x: visible;
}

.home-page .promo-card {
  contain: none;
  width: 100%;
  min-width: 0;
}

@media (min-width: 901px) {
  .home-page {
    --zopcart-voice-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  }

  .home-page .market-rail {
    grid-auto-columns: minmax(210px, 236px);
  }

  .home-page .store-rail {
    grid-auto-columns: minmax(230px, 260px);
  }

  .home-page .product-card,
  .home-page .product-card-compact {
    min-width: 210px;
  }
}

@media (max-width: 900px) {
  .home-page {
    --zopcart-voice-bottom: calc(86px + env(safe-area-inset-bottom, 0px));
  }

  .home-page main {
    padding-bottom: calc(6.5rem + env(safe-area-inset-bottom));
  }

  .home-page .hero-section {
    padding-top: 0.45rem !important;
  }

  .home-page .hero-swiper,
  .home-page .hero-panel {
    height: auto !important;
    min-height: 244px !important;
    max-height: none !important;
  }

  .home-page .hero-panel {
    grid-template-columns: minmax(0, 1fr) 104px !important;
    padding: 0.78rem !important;
  }

  .home-page .hero-copy h1 {
    max-width: 12ch;
    font-size: clamp(1.46rem, 7.2vw, 1.82rem) !important;
  }

  .home-page .hero-copy p {
    max-width: 24ch !important;
  }

  .home-page .hero-cta {
    min-height: 44px;
  }

  .home-page .hero-art {
    right: 0.45rem !important;
    bottom: 0.45rem !important;
    width: 106px !important;
  }

  .home-page .hero-art img {
    max-height: 92px !important;
  }

  .home-page .market-rail {
    grid-auto-columns: minmax(156px, 46vw) !important;
    gap: 0.55rem;
  }

  .home-page .product-card,
  .home-page .product-card-compact {
    min-width: 156px;
  }

  .home-page .product-image-container {
    aspect-ratio: 1.08 / 1;
    padding: 0.42rem;
  }

  .home-page .product-info {
    gap: 0.3rem;
    padding: 0.5rem;
  }

  .home-page .product-title {
    font-size: 0.78rem;
    line-height: 1.25;
  }

  .home-page .product-price-section {
    gap: 0.28rem;
    min-height: 0;
  }

  .home-page .product-original-price,
  .home-page .product-meta-row,
  .home-page .vendor-block {
    font-size: 0.68rem;
  }

  .home-page .stock-pill {
    max-width: 76px;
    padding: 0.22rem 0.38rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .home-page .vendor-block span {
    display: block;
  }

  .home-page .btn-add-cart {
    width: 100%;
    min-width: 0;
  }

  .home-page .store-rail {
    grid-auto-columns: minmax(250px, 78vw) !important;
  }

  .home-page .store-card {
    min-width: 250px;
    min-height: 0;
  }

  .home-page .promo-card {
    width: 100%;
    overflow: hidden;
  }

  .home-page .product-skeleton {
    min-height: 300px;
  }

  .home-page .store-skeleton {
    min-height: 156px;
  }
}

@media (max-width: 430px) {
  .home-page .compact-categories {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
  }

  .home-page .compact-categories .category-card {
    min-height: 132px;
    padding: 0.58rem;
  }

  .home-page .compact-categories .category-card img {
    width: 78px !important;
    height: 74px !important;
  }

  .home-page .category-name {
    font-size: 0.78rem;
  }

  .home-page .category-count {
    font-size: 0.64rem;
  }

  .home-page .category-skeleton {
    min-height: 132px;
  }

  .home-page .market-rail {
    grid-auto-columns: minmax(154px, 47vw) !important;
  }

  .home-page .product-card,
  .home-page .product-card-compact {
    min-width: 154px;
  }

  .home-page .store-rail {
    grid-auto-columns: minmax(248px, 80vw) !important;
  }

  .home-page .promo-section {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-auto-columns: auto !important;
    gap: 0.55rem;
    overflow-x: visible;
  }

  .home-page .promo-card {
    width: 100%;
    min-width: 0;
    min-height: 122px;
  }

  #voice-btn {
    box-shadow: 0 10px 24px rgba(7, 140, 55, 0.24) !important;
  }
}

/* Product detail production layout: purchase content stays in flow; only primary actions stick on mobile. */
.product-detail-page {
  padding-bottom: 2rem;
}

.product-detail-root {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  align-items: start;
  gap: 1.25rem;
  border-radius: 16px !important;
}

.product-detail-media,
.product-purchase-panel,
.product-content-section {
  min-width: 0;
}

.product-detail-image {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto !important;
  max-height: min(72vh, 560px);
  object-fit: contain !important;
  background: #f4f8f5;
  border: 1px solid rgba(13, 27, 61, 0.08);
  border-radius: 14px;
}

.product-purchase-panel {
  position: sticky;
  top: 96px;
  z-index: 1;
  display: grid;
  gap: 0.85rem;
  padding: 1rem;
  border: 1px solid rgba(13, 27, 61, 0.1);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(13, 27, 61, 0.08);
}

.product-title-block h1 {
  margin: 0;
  color: #0d1b3d;
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  line-height: 1.18;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.product-rating-summary {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.45rem;
  color: #465466;
  font-size: 0.92rem;
  font-weight: 700;
}

.product-rating-summary.no-rating {
  color: #6b7280;
  font-weight: 600;
}

.product-price-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}

.product-selling-price {
  color: #078c37;
  font-size: 1.55rem;
  line-height: 1;
  font-weight: 950;
}

.product-mrp {
  color: #7b8794;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: line-through;
}

.product-discount {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  background: #e8f7ee;
  color: #067332;
  font-size: 0.74rem;
  font-weight: 900;
}

.product-availability,
.product-delivery {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.65rem;
  color: #465466;
  font-size: 0.92rem;
  font-weight: 650;
}

.product-availability .in-stock,
.product-delivery span {
  color: #078c37;
}

.product-availability .out-stock {
  color: #b91c1c;
}

.product-vendor-card {
  display: grid;
  gap: 0.1rem;
  padding: 0.75rem;
  border: 1px solid rgba(13, 27, 61, 0.08);
  border-radius: 10px;
  background: #f8faf9;
}

.product-vendor-card span {
  color: #667085;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.product-vendor-card strong {
  color: #0d1b3d;
  font-size: 1rem;
}

.product-vendor-card a {
  width: fit-content;
  color: #078c37;
  font-size: 0.9rem;
  font-weight: 850;
}

.product-quantity {
  display: grid;
  gap: 0.45rem;
}

.product-quantity label {
  color: #344054;
  font-size: 0.86rem;
  font-weight: 850;
}

.quantity-stepper {
  display: inline-grid;
  grid-template-columns: 44px minmax(48px, 64px) 44px;
  width: fit-content;
  overflow: hidden;
  border: 1px solid rgba(13, 27, 61, 0.16);
  border-radius: 10px;
  background: #fff;
}

.quantity-stepper button,
.quantity-stepper input {
  min-height: 44px;
  border: 0;
  text-align: center;
  font-weight: 900;
}

.quantity-stepper button {
  color: #0d1b3d;
  background: #f3f6f5;
}

.quantity-stepper input {
  width: 100%;
  color: #0d1b3d;
  font-size: 16px;
}

.product-wishlist-action,
.product-desktop-actions button,
.mobile-purchase-bar button {
  min-height: 44px;
  border-radius: 10px;
  font-weight: 900;
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

.product-wishlist-action {
  width: fit-content;
  padding: 0 0.8rem;
  border: 1px solid rgba(13, 27, 61, 0.14);
  color: #0d1b3d;
  background: #fff;
}

.product-desktop-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

.product-desktop-actions button:first-child,
.mobile-purchase-bar button:first-of-type {
  color: #fff;
  background: #0d1b3d;
}

.product-desktop-actions button:last-child,
.mobile-purchase-bar button:last-of-type {
  color: #fff;
  background: #078c37;
}

.product-desktop-actions button:disabled,
.mobile-purchase-bar button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.product-desktop-actions button.is-loading,
.mobile-purchase-bar button.is-loading {
  opacity: 0.75;
  pointer-events: none;
}

.product-content-section {
  grid-column: 1 / -1;
  padding: 1rem;
  border: 1px solid rgba(13, 27, 61, 0.08);
  border-radius: 12px;
  background: #fff;
}

.product-content-section h2 {
  margin: 0 0 0.75rem;
  color: #0d1b3d;
  font-size: 1.1rem;
  font-weight: 900;
}

.product-description-section p {
  margin: 0;
  color: #465466;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.product-spec-list {
  display: grid;
  border-top: 1px solid rgba(13, 27, 61, 0.08);
}

.product-spec-row {
  display: grid;
  grid-template-columns: minmax(110px, 0.38fr) minmax(0, 1fr);
  gap: 0.75rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(13, 27, 61, 0.08);
}

.product-spec-label {
  color: #667085;
  font-size: 0.86rem;
  font-weight: 800;
}

.product-spec-value {
  color: #1f2937;
  font-size: 0.9rem;
  font-weight: 750;
  overflow-wrap: anywhere;
}

.product-empty-note {
  margin: 0;
  color: #667085;
  font-size: 0.94rem;
}

.mobile-purchase-bar {
  display: none;
}

@media (max-width: 767px) {
  .product-detail-page {
    width: 100%;
    padding: 0.75rem 0.75rem calc(9rem + env(safe-area-inset-bottom)) !important;
  }

  .product-detail-root {
    grid-template-columns: 1fr;
    gap: 0.85rem !important;
    padding: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .product-detail-image {
    max-height: none;
    border-radius: 12px;
  }

  .product-purchase-panel {
    position: static !important;
    top: auto !important;
    z-index: auto !important;
    gap: 0.72rem;
    padding: 0.9rem;
    border-radius: 12px !important;
    box-shadow: 0 8px 22px rgba(13, 27, 61, 0.06) !important;
  }

  .product-title-block h1 {
    font-size: 1.28rem !important;
    line-height: 1.22;
  }

  .product-selling-price {
    font-size: 1.42rem;
  }

  .product-desktop-actions {
    display: none;
  }

  .product-content-section {
    padding: 0.9rem;
    border-radius: 12px;
  }

  .product-spec-row {
    grid-template-columns: minmax(92px, 0.42fr) minmax(0, 1fr);
    gap: 0.6rem;
  }

  .mobile-purchase-bar {
    position: fixed;
    left: max(0.65rem, env(safe-area-inset-left));
    right: max(0.65rem, env(safe-area-inset-right));
    bottom: calc(0.65rem + env(safe-area-inset-bottom));
    z-index: 70;
    display: grid;
    grid-template-columns: minmax(74px, 0.8fr) minmax(86px, 1fr) minmax(78px, 0.95fr);
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem;
    border: 1px solid rgba(13, 27, 61, 0.12);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 -12px 30px rgba(13, 27, 61, 0.18);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }

  .mobile-purchase-bar strong {
    color: #078c37;
    font-size: 1rem;
    font-weight: 950;
    white-space: nowrap;
  }

  .mobile-purchase-bar button {
    padding: 0 0.55rem;
    font-size: 0.82rem;
    white-space: nowrap;
  }
}

@media (max-width: 340px) {
  .mobile-purchase-bar {
    grid-template-columns: 1fr 1fr;
  }

  .mobile-purchase-bar strong {
    grid-column: 1 / -1;
  }
}

/* End-of-file homepage safeguards for cached/cascaded mobile ecommerce geometry. */
.home-page .product-skeleton {
  min-height: 296px !important;
}

.home-page .store-skeleton {
  min-height: 168px !important;
}

.home-page .category-skeleton {
  min-height: 132px !important;
}

.home-page .promo-card {
  contain: none !important;
  width: 100% !important;
  min-width: 0 !important;
}

@media (max-width: 900px) {
  .home-page .product-skeleton {
    min-height: 300px !important;
  }

  .home-page .store-skeleton {
    min-height: 156px !important;
  }

  .home-page .promo-section {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-auto-flow: row !important;
    grid-auto-columns: auto !important;
    gap: 0.55rem !important;
    overflow-x: visible !important;
  }
}

@media (max-width: 430px) {
  .home-page .promo-section {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-auto-flow: row !important;
    grid-auto-columns: auto !important;
    gap: 0.55rem !important;
  }

  .home-page .promo-card {
    min-height: 122px !important;
  }
}

/* Search/product mobile header: keep account and notifications in the logo row. */
@media (max-width: 760px) {
  .search-page .site-header-bar,
  .product-page .site-header-bar {
    display: grid;
    grid-template-columns: minmax(108px, max-content) auto minmax(0, 1fr) !important;
    align-items: center;
    column-gap: 0.5rem;
    row-gap: 0.58rem;
    width: min(100% - 1rem, 1180px);
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
  }

  .search-page .site-header-bar > *,
  .product-page .site-header-bar > * {
    min-width: 0;
  }

  .search-page .logo,
  .product-page .logo {
    grid-column: 1;
    grid-row: 1;
    max-width: 142px;
    min-width: 0;
    overflow: hidden;
  }

  .search-page .brand-logo-img,
  .product-page .brand-logo-img {
    width: clamp(104px, 32vw, 132px);
    max-width: 100%;
  }

  .search-page .brand-logo-copy,
  .product-page .brand-logo-copy,
  .search-page .logo::after,
  .product-page .logo::after {
    display: none !important;
  }

  .search-page .header-actions,
  .product-page .header-actions {
    grid-column: 2 / 4;
    grid-row: 1;
    width: auto !important;
    justify-self: start;
    justify-content: flex-start !important;
    gap: 0.42rem;
    overflow: visible !important;
  }

  .search-page .header-actions .dark-mode-toggle,
  .product-page .header-actions .dark-mode-toggle,
  .search-page .header-actions #mini-cart-toggle,
  .product-page .header-actions #mini-cart-toggle,
  .search-page .header-actions .header-cart-link,
  .product-page .header-actions .header-cart-link {
    display: none !important;
  }

  .search-page #user-menu-btn,
  .product-page #user-menu-btn,
  .search-page #notification-btn,
  .product-page #notification-btn {
    width: 42px;
    min-width: 42px;
    height: 42px;
    min-height: 42px;
    padding: 0;
    border-radius: 12px;
  }

  .search-page #user-link,
  .product-page #user-link,
  .search-page #dropdown-arrow,
  .product-page #dropdown-arrow {
    display: none !important;
  }

  .search-page #notification-panel,
  .product-page #notification-panel {
    right: 0;
    width: min(20rem, calc(100vw - 1rem));
  }

  .search-page .location-chip,
  .product-page .location-chip {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    margin: 0;
  }

  .search-page .desktop-search,
  .product-page .desktop-search {
    display: none !important;
  }

  .search-page .mobile-search,
  .product-page .mobile-search {
    grid-column: 1 / -1;
    grid-row: 3;
    display: flex !important;
    width: 100%;
    margin: 0;
  }
}

@media (max-width: 380px) {
  .search-page .site-header-bar,
  .product-page .site-header-bar {
    grid-template-columns: minmax(96px, max-content) auto minmax(0, 1fr) !important;
    column-gap: 0.38rem;
  }

  .search-page .logo,
  .product-page .logo {
    max-width: 122px;
  }

  .search-page #user-menu-btn,
  .product-page #user-menu-btn,
  .search-page #notification-btn,
  .product-page #notification-btn {
    width: 40px;
    min-width: 40px;
    height: 40px;
    min-height: 40px;
  }
}

.home-page .categories-grid.compact-categories {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.home-page .compact-categories .category-card {
  min-height: 210px;
}

.home-page .compact-categories .category-card img {
  width: min(160px, 78%) !important;
  height: 140px !important;
  object-fit: contain;
}

@media (max-width: 768px) {
  .home-page .categories-grid.compact-categories {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-page .compact-categories .category-card {
    min-height: 154px;
  }

  .home-page .compact-categories .category-card img {
    width: min(104px, 76%) !important;
    height: 92px !important;
  }
}

@media (max-width: 430px) {
  .home-page .compact-categories .category-card {
    min-height: 124px;
  }

  .home-page .compact-categories .category-card img {
    width: min(76px, 74%) !important;
    height: 66px !important;
  }
}
