:root {
  --green: #16A34A;
  --green-2: #22C55E;
  --green-dark: #15803D;
  --dark: #111827;
  --muted: #6B7280;
  --bg: #F8FAFC;
  --white: #FFFFFF;
  --border: #E5E7EB;
  --soft: #ECFDF3;
  --sale: #DC2626;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(17, 24, 39, 0.05);
  --shadow-md: 0 10px 30px rgba(17, 24, 39, 0.08);
  --focus: 0 0 0 3px rgba(22, 163, 74, 0.22);
  --header: 0.82rem;
}

html { font-size: 16px; overflow-x: clip; scroll-behavior: smooth; }
body {
  font-family: Inter, system-ui, sans-serif;
  color: var(--dark);
  background: var(--white);
  line-height: 1.5;
  overflow-x: clip;
}
body.has-mobile-nav { padding-bottom: 0; }
img, video, canvas { max-width: 100%; height: auto; }
svg { max-width: 100%; }
.container {
  padding-left: max(1rem, env(safe-area-inset-left, 0px));
  padding-right: max(1rem, env(safe-area-inset-right, 0px));
}
@media (min-width: 1200px) { .container { max-width: 1200px; } }

h1, h2, h3, h4, h5, h6 {
  font-family: "Plus Jakarta Sans", Inter, sans-serif;
  font-weight: 700;
  color: var(--dark);
  letter-spacing: -0.03em;
  line-height: 1.2;
}
h1 { font-size: clamp(1.85rem, 3.4vw, 3rem); }
h2 { font-size: clamp(1.35rem, 2.2vw, 1.85rem); }
h3 { font-size: 1.05rem; }
a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-dark); }
:focus-visible { outline: none; box-shadow: var(--focus); }

.eyebrow, .section-kicker {
  color: var(--green);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.65rem;
}

.btn-brand, .btn-primary {
  background: var(--green);
  border: 1px solid var(--green);
  color: #fff;
  font-weight: 600;
  border-radius: var(--radius-sm);
  padding: 0.7rem 1.2rem;
}
.btn-brand:hover, .btn-primary:hover { background: var(--green-dark); border-color: var(--green-dark); color: #fff; }
.btn-outline-brand {
  background: #fff;
  border: 1px solid var(--border);
  color: var(--dark);
  font-weight: 600;
  border-radius: var(--radius-sm);
  padding: 0.7rem 1.2rem;
}
.btn-outline-brand:hover { border-color: var(--green); color: var(--green); background: var(--soft); }
.btn-lg { padding: 0.85rem 1.4rem; }
.btn:disabled { opacity: 0.55; }
.btn-danger-link { color: #b91c1c; }

.form-control, .form-select {
  border-radius: var(--radius-sm);
  border-color: var(--border);
  padding: 0.7rem 0.85rem;
}
.form-control:focus, .form-select:focus {
  border-color: var(--green);
  box-shadow: var(--focus);
}
.form-label { font-weight: 600; font-size: 0.88rem; }

.promo-bar {
  background: var(--dark);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-align: center;
  padding: 0.45rem 0;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.header-main { padding: 0.7rem 0; }
.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.75rem 1rem;
  align-items: center;
}
.navbar-brand { padding: 0; margin: 0; display: flex; }
.brand-logo { height: 40px; width: auto; max-width: 180px; display: block; }
.brand-logo-text { fill: #111827; }
.brand-logo--on-dark .brand-logo-text { fill: #fff; }

.search-form {
  position: relative;
  min-width: 0;
}
.search-form .form-control {
  height: 48px;
  padding-left: 2.5rem;
  padding-right: 6.2rem;
  border-radius: 999px;
  border: 1px solid #D1D5DB;
  background: var(--bg);
  font-size: 0.95rem;
}
.search-form .form-control:focus { background: #fff; }
.search-icon {
  position: absolute;
  left: 0.95rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}
.search-go {
  position: absolute;
  right: 4px;
  top: 4px;
  bottom: 4px;
  background: var(--green);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 0 1.15rem;
  font-weight: 600;
  font-size: 0.88rem;
}
.search-suggest {
  position: absolute;
  left: 0; right: 0; top: calc(100% + 8px);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 0.75rem;
  z-index: 40;
  max-height: min(70vh, 480px);
  overflow: auto;
}
.suggest-group { margin-bottom: 0.85rem; }
.suggest-group:last-child { margin-bottom: 0; }
.suggest-group h4 {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 0.4rem;
}
.suggest-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.45rem 0.35rem;
  border-radius: 8px;
  color: var(--dark);
}
.suggest-item:hover { background: var(--bg); color: var(--dark); }
.suggest-item strong { display: block; font-size: 0.9rem; }
.suggest-item span { font-size: 0.75rem; color: var(--muted); }
.suggest-thumb {
  width: 44px; height: 44px; border-radius: 8px; background: var(--bg);
  display: grid; place-items: center; overflow: hidden; flex-shrink: 0;
}
.suggest-thumb img { width: 100%; height: 100%; object-fit: contain; }

.header-actions { display: flex; align-items: center; gap: 0.15rem; }
.header-link, .cart-link {
  color: var(--dark);
  font-weight: 500;
  font-size: 0.78rem;
  padding: 0.35rem 0.65rem;
  text-align: center;
  line-height: 1.1;
  background: none;
  border: 0;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
}
.header-link i, .cart-link i { font-size: 1.25rem; margin-bottom: 0.1rem; }
.header-link:hover, .cart-link:hover { color: var(--green); }
.cart-link { position: relative; }
.cart-badge {
  position: absolute;
  top: 0; right: 6px;
  background: var(--green);
  color: #fff;
  font-size: 0.65rem;
  min-width: 16px; height: 16px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.25rem;
}

.icon-btn {
  width: 40px; height: 40px;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: var(--radius-sm);
  display: inline-grid;
  place-items: center;
}
.icon-btn:hover { border-color: var(--green); color: var(--green); }

.main-nav { border-top: 1px solid var(--border); }
.nav-row {
  list-style: none;
  display: flex;
  align-items: stretch;
  gap: 0.15rem;
  margin: 0;
  padding: 0;
}
.nav-row > li { position: relative; }
.nav-row > li > a {
  display: flex;
  align-items: center;
  color: var(--dark);
  font-weight: 600;
  font-size: 0.86rem;
  padding: 0.85rem 0.8rem;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.nav-row > li > a:hover,
.nav-row > li > a.active,
.nav-row > li:hover > a { color: var(--green); border-bottom-color: var(--green); }
.nav-deals { color: var(--sale) !important; }
.nav-row > li > a.nav-deals:hover { border-bottom-color: var(--sale); }

.mega {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  min-width: 640px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow-md);
  padding: 1.25rem 1.35rem 1rem;
  z-index: 50;
}
.has-mega:hover .mega, .has-mega:focus-within .mega { display: block; }
.mega-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.mega-grid-brands { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.mega-col h3 {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  margin-bottom: 0.55rem;
}
.mega-col ul { list-style: none; padding: 0; margin: 0; }
.mega-col a, .mega-grid-brands a {
  display: block;
  color: var(--dark);
  padding: 0.28rem 0;
  font-size: 0.9rem;
}
.mega-col a:hover, .mega-grid-brands a:hover { color: var(--green); }
.mega-all {
  display: inline-block;
  margin-top: 0.9rem;
  font-weight: 700;
  font-size: 0.86rem;
}

.nav-drawer[hidden], .cart-drawer[hidden], .search-suggest[hidden] { display: none !important; }
.nav-drawer, .cart-drawer, .filter-sidebar.is-sheet {
  position: fixed;
  inset: 0;
  z-index: 1080;
  background: rgba(17, 24, 39, 0.4);
}
.nav-drawer-panel, .cart-drawer-panel {
  background: #fff;
  height: 100%;
  width: min(380px, 92vw);
  padding: 1rem 1.1rem 1.5rem;
  overflow: auto;
}
.nav-drawer-panel { display: flex; flex-direction: column; gap: 0.15rem; }
.nav-drawer-head, .cart-drawer-head, .filter-sheet-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}
.nav-drawer-panel a {
  color: var(--dark);
  font-weight: 600;
  padding: 0.7rem 0.2rem;
  border-bottom: 1px solid var(--border);
}
.cart-drawer { display: flex; justify-content: flex-end; }
.cart-drawer-panel { display: flex; flex-direction: column; }
.cart-drawer-body { flex: 1; overflow: auto; }
.cart-drawer-foot { border-top: 1px solid var(--border); padding-top: 1rem; }
.drawer-line {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 0.7rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
  align-items: center;
}
.drawer-line strong { display: block; font-size: 0.88rem; }
.drawer-remove { border: 0; background: none; color: #b91c1c; font-size: 0.8rem; padding: 0; }

.section { padding: 3.25rem 0; }
.section-alt { background: var(--bg); }
.section-soft { background: var(--soft); }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.section-sub { color: var(--muted); margin: 0.3rem 0 0; }
.section-link { font-weight: 700; white-space: nowrap; }

.hero {
  position: relative;
  min-height: min(78vh, 620px);
  padding: 0;
  overflow: hidden;
  background: #0b1220;
  color: #fff;
}
.hero-slides,
.hero-slide {
  position: absolute;
  inset: 0;
}
.hero-slide {
  opacity: 0;
  transition: opacity 1.05s ease;
  pointer-events: none;
}
.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  animation: hero-pan 16s ease-in-out infinite alternate;
}
.hero-veil {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(90deg, rgba(8, 16, 28, 0.82) 0%, rgba(8, 16, 28, 0.55) 48%, rgba(8, 16, 28, 0.28) 100%),
    linear-gradient(180deg, rgba(8, 16, 28, 0.35) 0%, rgba(8, 16, 28, 0.55) 100%);
}
.hero-content {
  position: relative;
  z-index: 3;
  min-height: inherit;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3.5rem 0 4rem;
}
.hero-copy {
  display: none;
  max-width: 38rem;
  animation: hero-copy-in 0.65s ease both;
}
.hero-copy.is-active { display: block; }
.hero-copy .eyebrow {
  color: #bbf7d0;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.hero-copy h1 {
  color: #fff;
  margin-bottom: 0.85rem;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.25);
}
.hero-copy .lead {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.08rem;
  max-width: 34rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin: 1.35rem 0 1rem; }
.hero-trust {
  font-size: 0.85rem;
  font-weight: 600;
  color: #bbf7d0;
  margin: 0;
}
.hero-dots {
  display: flex;
  gap: 0.45rem;
  margin-top: 1.75rem;
}
.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 0;
  padding: 0;
  background: rgba(255, 255, 255, 0.35);
  transition: width 0.25s ease, background 0.25s ease;
}
.hero-dot.is-active {
  width: 28px;
  background: #fff;
}
.btn-outline-light {
  border: 1.5px solid rgba(255, 255, 255, 0.75);
  color: #fff;
  background: transparent;
}
.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: #fff;
}
@keyframes hero-pan {
  from { transform: scale(1.06) translate3d(0, 0, 0); }
  to { transform: scale(1.14) translate3d(-2%, -1.5%, 0); }
}
@keyframes hero-copy-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.goal-grid, .brand-grid, .local-grid, .promo-grid, .category-grid, .guide-grid, .info-grid {
  display: grid;
  gap: 0.9rem;
}
.goal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.goal-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1rem;
  color: var(--dark);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-height: 132px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.goal-card:hover { color: var(--dark); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.goal-icon {
  width: 40px; height: 40px; border-radius: 10px;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--tone, var(--green)) 14%, white);
  color: var(--tone, var(--green));
  font-size: 1.15rem;
}
.goal-cta { color: var(--green); font-weight: 700; font-size: 0.82rem; margin-top: auto; }

.promo-grid { grid-template-columns: 1fr; }
.promo-card {
  border-radius: var(--radius);
  padding: 1.4rem 1.3rem;
  min-height: 170px;
  display: flex;
  flex-direction: column;
  color: #fff;
}
.promo-card:hover { color: #fff; filter: brightness(1.04); }
.promo-card h3 { color: inherit; margin: 0.2rem 0 0.4rem; }
.promo-card p { opacity: 0.9; margin-bottom: auto; }
.promo-kicker { font-weight: 800; letter-spacing: 0.04em; font-size: 0.82rem; }
.promo-cta { font-weight: 700; margin-top: 0.9rem; }
.theme-green { background: #15803D; }
.theme-dark { background: #111827; }
.theme-soft { background: #166534; }

.category-grid { grid-template-columns: 1fr; }
.category-tile {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 0.9rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  color: var(--dark);
  min-height: 120px;
}
.category-tile:hover { color: var(--dark); box-shadow: var(--shadow-md); }
.category-tile img { width: 100%; height: 100%; object-fit: cover; min-height: 120px; }
.category-tile h3 { margin: 0.85rem 0.2rem 0.25rem; }
.category-tile p { color: var(--muted); font-size: 0.85rem; margin: 0 0.2rem 0.4rem; }
.category-tile span { color: var(--green); font-weight: 700; font-size: 0.82rem; margin: 0 0.2rem 0.9rem; display: inline-block; }

.brand-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.brand-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 0.8rem;
  text-align: center;
  color: var(--dark);
  filter: grayscale(1);
  opacity: 0.78;
  transition: filter 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
}
.brand-card:hover { filter: none; opacity: 1; color: var(--dark); box-shadow: var(--shadow); }
.brand-mark {
  display: block;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 800;
  letter-spacing: 0.08em;
  font-size: 1.05rem;
  margin-bottom: 0.2rem;
}
.brand-card strong { font-size: 0.78rem; font-weight: 600; color: var(--muted); }

.guide-grid { grid-template-columns: 1fr; }
.guide-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  color: var(--dark);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.guide-card:hover { color: var(--dark); box-shadow: var(--shadow-md); }
.guide-card img { width: 100%; height: 160px; object-fit: cover; }
.guide-card > div { padding: 1rem 1.05rem 1.15rem; display: flex; flex-direction: column; flex: 1; }
.guide-cat {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green);
}
.guide-card p { color: var(--muted); font-size: 0.9rem; }
.guide-cta { font-weight: 700; color: var(--green); margin-top: auto; }
.guide-hero { width: 100%; border-radius: var(--radius); max-height: 340px; object-fit: cover; margin-bottom: 1.25rem; }
.guide-body p { color: var(--muted); font-size: 1.02rem; }

.trust-row { border-block: 1px solid var(--border); padding: 1.1rem 0; background: #fff; }
.trust-row ul {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem 1rem;
  margin: 0;
  padding: 0;
  font-weight: 600;
  font-size: 0.9rem;
}
.trust-row i { color: var(--green); margin-right: 0.35rem; }

.local-grid { grid-template-columns: 1fr 1fr; }
.local-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.local-card i { color: var(--green); font-size: 1.25rem; }
.local-card span { color: var(--muted); font-size: 0.85rem; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}
.product-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  min-width: 0;
  transition: box-shadow 0.2s ease;
}
.product-card:hover { box-shadow: var(--shadow-md); }
.product-card-media { position: relative; }
.product-card-photo { display: block; }
.product-card-badges {
  position: absolute;
  top: 10px; left: 10px;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  z-index: 2;
}
.product-card-body {
  padding: 0.75rem 0.8rem 0.9rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.28rem;
}
.product-card-title {
  font-size: 0.92rem;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.4em;
}
.product-card-title a { color: var(--dark); }
.product-card-title a:hover { color: var(--green); }
.product-card-price { display: flex; align-items: baseline; gap: 0.4rem; margin: 0.15rem 0 0.45rem; }
.brand-label { font-size: 0.7rem; color: var(--muted); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.price { font-weight: 800; color: var(--dark); font-size: 1.05rem; font-family: "Plus Jakarta Sans", Inter, sans-serif; }
.price-was { color: var(--muted); font-size: 0.82rem; }
.btn-add-cart { width: 100%; padding: 0.55rem 0.7rem; font-size: 0.85rem; margin-top: auto; }

.badge-sale, .badge-new, .badge-auth, .badge-stock, .badge-low, .badge-out {
  display: inline-flex;
  align-items: center;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.68rem;
  padding: 0.18rem 0.45rem;
  letter-spacing: 0.02em;
}
.badge-sale { background: var(--sale); color: #fff; }
.badge-new { background: var(--dark); color: #fff; }
.badge-auth, .badge-stock { background: var(--soft); color: var(--green-dark); }
.badge-low { background: #fff7ed; color: #c2410c; }
.badge-out { background: #f1f5f9; color: var(--muted); }

.wish-btn {
  position: absolute;
  top: 10px; right: 10px;
  width: 34px; height: 34px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--dark);
  z-index: 2;
  display: grid;
  place-items: center;
}
.wish-btn.lg { position: static; width: 44px; height: 44px; flex-shrink: 0; }
.wish-btn.is-on { color: var(--sale); border-color: #fecaca; }
.wish-btn:hover { color: var(--sale); }

.product-visual {
  height: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: #fff;
}
.product-visual.large {
  height: min(68vw, 420px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
}
.product-visual img {
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 1.1rem 0.9rem 1.3rem;
  transition: transform 0.35s ease;
}
.product-card:hover .product-visual img { transform: scale(1.04); }
.product-visual.large img { padding: 2.2rem; }
.product-placeholder {
  width: 64px; height: 64px; border-radius: 16px;
  display: grid; place-items: center;
  color: color-mix(in srgb, var(--tone, var(--green)) 80%, #14532d);
  background: color-mix(in srgb, var(--tone, var(--green)) 14%, #fff);
  font-size: 1.7rem;
}
.product-visual.large .product-placeholder { width: 96px; height: 96px; font-size: 2.4rem; }
.product-visual-thumb {
  width: 76px; height: 92px; flex-shrink: 0;
  border: 1px solid var(--border); border-radius: 10px; background: #fff;
}
.product-visual-thumb img { padding: 0.4rem; }
.product-visual-glow { display: none; }

.rating { display: flex; align-items: center; gap: 0.35rem; font-size: 0.8rem; }
.rating-stars { color: #F59E0B; letter-spacing: -0.05em; }
.rating-count { color: var(--muted); }
.rating strong { font-size: 0.8rem; }
.rating-empty { opacity: 0.85; }

.product-rate { margin: 0.65rem 0 1rem; }
.product-rate .rating { margin-bottom: 0.55rem; }
.rate-box {
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: color-mix(in srgb, var(--green) 4%, #fff);
  max-width: 22rem;
}
.rate-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--dark);
}
.rate-stars { display: flex; gap: 0.15rem; }
.rate-star {
  border: 0;
  background: none;
  padding: 0.15rem;
  color: #cbd5e1;
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.15s ease, transform 0.12s ease;
}
.rate-star:hover,
.rate-star.is-hover,
.rate-star.is-on { color: #F59E0B; }
.rate-star:hover,
.rate-star:focus-visible { transform: scale(1.08); }
.rate-star:focus-visible { outline: 2px solid color-mix(in srgb, #F59E0B 50%, white); outline-offset: 2px; border-radius: 0.25rem; }
.rate-hint { font-size: 0.78rem; color: var(--green-dark, #15803d); margin-top: 0.35rem; }
.rate-hint.is-error { color: #b91c1c; }

.carousel { position: relative; }
.carousel-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc(50% - 0.45rem);
  gap: 0.85rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 0.25rem 0 0.5rem;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-item-card { scroll-snap-align: start; min-width: 0; }
.carousel-nav {
  display: none;
  position: absolute;
  top: 38%;
  width: 40px; height: 40px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: var(--shadow);
  z-index: 2;
}
.carousel-nav.prev { left: -12px; }
.carousel-nav.next { right: -12px; }

.page-head { padding: 2rem 0 1rem; }
.page-intro { color: var(--muted); max-width: 40rem; margin-bottom: 0; }
.breadcrumb-nav { font-size: 0.82rem; color: var(--muted); margin-bottom: 0.75rem; }
.breadcrumb-nav a { color: var(--muted); }
.breadcrumb-nav a:hover { color: var(--green); }

.shop-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1.15rem;
}
.product-count { margin: 0; color: var(--muted); }
.sort-select { width: auto; min-width: 180px; }
.shop-layout { display: grid; gap: 1.5rem; }
.filter-card h2 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin: 1rem 0 0.45rem; }
.filter-card h2:first-child { margin-top: 0; }
.filter-link, .filter-check {
  display: block;
  padding: 0.28rem 0;
  color: var(--dark);
  font-size: 0.9rem;
}
.filter-link.active, .filter-link:hover { color: var(--green); font-weight: 600; }
.filter-check { display: flex; gap: 0.45rem; align-items: center; }
.price-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.45rem; }
.pagination-nav { display: flex; gap: 0.35rem; justify-content: center; margin-top: 1.75rem; }
.pagination-nav a {
  min-width: 38px; height: 38px;
  display: grid; place-items: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--dark);
  font-weight: 600;
}
.pagination-nav a.active, .pagination-nav a:hover { background: var(--green); color: #fff; border-color: var(--green); }

.pdp { display: grid; gap: 1.75rem; }
.pdp-buy h1 { font-size: clamp(1.5rem, 2.4vw, 2.1rem); margin: 0.25rem 0 0.5rem; }
.pdp-price { display: flex; align-items: center; gap: 0.55rem; margin: 0.85rem 0; }
.pdp-price .price { font-size: 1.6rem; }
.pdp-short { color: var(--muted); }
.pdp-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; margin: 1rem 0; }
.pdp-thumbs { display: none; }
.pdp-tab-panel[hidden] { display: none !important; }
.pdp-tabs { margin-top: 2.5rem; }
.pdp-tab-list { display: flex; gap: 0.4rem; overflow-x: auto; border-bottom: 1px solid var(--border); }
.pdp-tab-list button {
  border: 0; background: none;
  padding: 0.7rem 0.8rem;
  font-weight: 600;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.pdp-tab-list button.is-active { color: var(--dark); border-bottom-color: var(--green); }
.pdp-tab-panel { padding: 1.1rem 0 0; color: var(--muted); }
.benefit-list { padding-left: 1.1rem; }
.review-list { display: grid; gap: 0.85rem; margin-top: 1rem; }
.review-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
}
.review-card span { color: var(--muted); font-size: 0.8rem; }

.qty-step { display: inline-flex; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.qty-step button, .qty-step input {
  border: 0; background: #fff; width: 38px; height: 42px; text-align: center;
}
.qty-step input { width: 48px; }

.summary-card, .pay-option, .info-card, .order-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.pay-grid { display: grid; gap: 0.7rem; }
.pay-option { cursor: pointer; display: block; }
.pay-option strong { display: block; }
.pay-option span, .pay-option .small { color: var(--muted); font-size: 0.82rem; }
.pay-option:has(input:checked) { border-color: var(--green); box-shadow: inset 0 0 0 1px var(--green); }
.pay-option input { position: absolute; opacity: 0; }
.checkout-form h2 { font-size: 1.1rem; margin-bottom: 0.9rem; }
.info-grid { grid-template-columns: 1fr; }
.prose-block { max-width: 720px; margin-top: 1.5rem; }
.prose-block h2 { font-size: 1.2rem; margin-top: 1.4rem; }
.prose-block p, .prose-block li { color: var(--muted); }

.waiting-panel {
  max-width: 460px;
  margin: 2.5rem auto;
  text-align: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.4rem 1.6rem;
  box-shadow: var(--shadow);
}
.pulse-ring {
  width: 84px; height: 84px; margin: 0 auto 1rem;
  border-radius: 50%;
  border: 3px solid #bbf7d0;
  color: var(--green);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(22,163,74,0.25); }
  50% { box-shadow: 0 0 0 12px rgba(22,163,74,0); }
}

.site-footer {
  background: #111827;
  color: #9CA3AF;
  padding: 3.2rem 0 1.4rem;
  margin-top: 1.5rem;
}
.site-footer h6 { color: #fff; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 0.9rem; }
.site-footer a { color: #D1D5DB; }
.site-footer a:hover { color: #fff; }
.site-footer hr { border-color: #1F2937; }
.site-footer p { max-width: 28rem; }
.footer-top {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.footer-news-row { display: flex; gap: 0.5rem; }
.footer-grid li { margin-bottom: 0.45rem; }
.footer-copy { word-break: break-word; }

.empty-state { text-align: center; padding: 3rem 1rem; }
.sticky-cta {
  position: sticky;
  bottom: 0;
  background: #fff;
  border-top: 1px solid var(--border);
  padding: 0.75rem 0 calc(0.75rem + env(safe-area-inset-bottom, 0px));
  z-index: 20;
}
.sim-note { font-size: 0.8rem; color: var(--muted); }
.cart-line {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem 0.85rem;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}
.cart-line-info strong { display: block; }
.whatsapp-float {
  position: fixed;
  right: max(12px, env(safe-area-inset-right, 0px));
  bottom: max(16px, env(safe-area-inset-bottom, 0px));
  z-index: 1040;
  background: #16a34a;
  color: #fff;
  border-radius: 999px;
  padding: 0.65rem 0.95rem;
  font-weight: 600;
  box-shadow: var(--shadow-md);
}
.whatsapp-float:hover { color: #fff; background: var(--green-dark); }

.mobile-tabbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 1045;
  background: #fff;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 0.35rem 0 calc(0.35rem + env(safe-area-inset-bottom, 0px));
}
.mobile-tabbar a, .mobile-tabbar button {
  background: none; border: 0;
  display: flex; flex-direction: column; align-items: center; gap: 0.1rem;
  color: var(--muted); font-size: 0.68rem; font-weight: 600;
}
.mobile-tabbar i { font-size: 1.2rem; }
.mobile-tabbar .active, .mobile-tabbar a:hover, .mobile-tabbar button:hover { color: var(--green); }

.toast-wrap { position: fixed; left: 50%; bottom: 5.5rem; transform: translateX(-50%); z-index: 1100; }
.app-toast {
  background: var(--dark);
  color: #fff;
  border-radius: 999px;
  padding: 0.7rem 1.1rem;
  font-weight: 600;
  font-size: 0.88rem;
  box-shadow: var(--shadow-md);
}

.status-pill {
  display: inline-flex; align-items: center; border-radius: 999px;
  padding: 0.2rem 0.65rem; font-size: 0.75rem; font-weight: 700;
}
.status-pill.ok { background: #ecfdf3; color: #15803d; }
.status-pill.warn { background: #fff7ed; color: #c2410c; }
.status-pill.bad { background: #fef2f2; color: #b91c1c; }
.status-pill.info { background: #eff6ff; color: #1d4ed8; }

.order-steps {
  list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0; padding: 1.1rem 0 0.25rem; margin: 0;
}
.order-step { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 0.4rem; }
.order-step:not(:last-child)::after {
  content: ""; position: absolute; top: 17px; left: calc(50% + 20px); right: calc(-50% + 20px);
  height: 2px; background: var(--border);
}
.order-step.is-done:not(:last-child)::after { background: var(--green); }
.order-step-dot {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: #f1f5f9; color: var(--muted); border: 2px solid var(--border); z-index: 1; margin-bottom: 0.45rem;
}
.order-step.is-done .order-step-dot { background: var(--green); border-color: var(--green); color: #fff; }
.order-step.is-current .order-step-dot { background: #fff; border-color: var(--green); color: var(--green); box-shadow: 0 0 0 4px rgba(22,163,74,0.18); }
.order-step.is-skipped .order-step-dot { background: #fef2f2; border-color: #fecaca; color: #b91c1c; }
.order-step strong { font-size: 0.82rem; }
.order-step small { display: block; font-size: 0.72rem; color: var(--muted); margin-top: 0.15rem; }
.order-step.is-upcoming { opacity: 0.55; }
.order-timeline { list-style: none; padding: 0 0 0 0.35rem; margin: 0; }
.order-timeline li { position: relative; padding: 0 0 1rem 1.25rem; border-left: 2px solid var(--border); }
.order-timeline li:last-child { border-left-color: transparent; padding-bottom: 0; }
.order-timeline-dot {
  position: absolute; left: -6px; top: 4px; width: 10px; height: 10px; border-radius: 50%;
  background: var(--green); border: 2px solid #fff; box-shadow: 0 0 0 1px var(--green);
}
.order-timeline-title { font-size: 0.82rem; font-weight: 700; margin: 1.25rem 0 0.7rem; }
.order-tracker-head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.65rem 1rem; margin-bottom: 0.35rem; }
.order-tracker-summary { color: var(--muted); font-size: 0.92rem; }

@media (max-width: 991.98px) {
  .header-inner { grid-template-columns: auto 1fr auto; }
  .search-form { display: none; grid-column: 1 / -1; }
  .search-form.is-open { display: block; }
  .header-inner.is-searching { grid-template-columns: 1fr; }
  .header-inner.is-searching .navbar-brand,
  .header-inner.is-searching .icon-btn,
  .header-inner.is-searching .header-actions { display: none; }
  body.has-mobile-nav { padding-bottom: 72px; }
  body.has-mobile-nav .whatsapp-float { bottom: 84px; }
  body.has-mobile-nav .sticky-cta { bottom: 64px; }
  .filter-sidebar {
    position: fixed; inset: 0; z-index: 1080; background: rgba(17,24,39,.4);
    display: none; align-items: flex-end;
  }
  .filter-sidebar.is-open { display: flex; }
  .filter-sidebar .filter-card {
    background: #fff;
    width: 100%;
    max-height: 86vh;
    overflow: auto;
    border-radius: 16px 16px 0 0;
    padding: 1rem 1rem 1.4rem;
  }
  .nav-row { display: none; }
}

@media (min-width: 768px) {
  .hero { min-height: min(72vh, 560px); }
  .hero-content { padding: 4rem 0 4.5rem; }
  .goal-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .promo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .category-grid { grid-template-columns: 1fr 1fr; }
  .brand-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .guide-grid { grid-template-columns: 1fr 1fr; }
  .local-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .trust-row ul { grid-template-columns: repeat(4, 1fr); }
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .info-grid { grid-template-columns: 1fr 1fr; }
  .carousel-track { grid-auto-columns: calc(33.333% - 0.6rem); }
  .pay-grid { grid-template-columns: 1fr 1fr 1fr; }
  .cart-line { grid-template-columns: auto 1fr auto auto auto; }
  .footer-top { grid-template-columns: 1.2fr 0.8fr; align-items: end; }
}

@media (min-width: 992px) {
  .brand-logo { height: 46px; max-width: 210px; }
  .header-inner { grid-template-columns: auto minmax(420px, 1fr) auto; }
  .search-form { max-width: 720px; margin: 0 auto; width: 100%; }
  .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .shop-layout { grid-template-columns: 240px 1fr; align-items: start; }
  .pdp { grid-template-columns: 0.95fr 1.05fr; gap: 3rem; }
  .carousel-nav { display: grid; place-items: center; }
  .carousel-track { grid-auto-columns: calc(25% - 0.7rem); }
  .guide-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .section { padding: 4rem 0; }
  .hero { min-height: min(68vh, 520px); }
  .hero-content { padding: 3rem 0 3.5rem; }
}

@media (min-width: 1200px) {
  .hero { min-height: 520px; }
  .product-visual { height: 190px; }
  .product-visual.large { height: 480px; }
}

@media (pointer: coarse) {
  .header-link, .cart-link, .wish-btn, .icon-btn { min-height: 44px; }
}

/* ── Lab test icon placeholder (mirrors product-card-photo) ─────────────── */
.lab-test-icon-bg {
  background: color-mix(in srgb, var(--brand) 8%, var(--surface));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
  font-size: 2.5rem;
}

/* ── Lab category filter tabs (mirrors pipeline-tabs) ───────────────────── */
.lab-cat-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: .375rem;
}
.lab-cat-tab {
  padding: .35rem .9rem;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  font-size: .85rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--text);
  transition: border-color .12s, background .12s, color .12s;
}
.lab-cat-tab:hover, .lab-cat-tab.on {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}

/* ── Lab request bar ────────────────────────────────────────────────────── */
.lab-request-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: color-mix(in srgb, var(--brand) 8%, var(--surface));
  border: 1.5px solid var(--brand);
  border-radius: var(--radius);
  padding: .7rem 1rem;
}
