:root {
  --ink: #152420;
  --muted: #65726e;
  --forest: #0b5d47;
  --forest-dark: #073f34;
  --mint: #dcefe7;
  --paper: #f7f8f4;
  --white: #ffffff;
  --coral: #e8664a;
  --amber: #f5bd53;
  --line: #dfe6e1;
}

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Sora', sans-serif;
}

body::before {
  background-image: linear-gradient(rgba(11, 93, 71, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 93, 71, 0.035) 1px, transparent 1px);
  background-size: 32px 32px;
  content: '';
  inset: 0;
  pointer-events: none;
  position: fixed;
  z-index: -1;
}

.store-topbar { background: var(--forest-dark); }

.store-header {
  background: rgba(255, 255, 255, 0.94);
  border-color: var(--line);
  box-shadow: 0 8px 30px rgba(21, 36, 32, 0.06);
}

.brand-mark {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(21, 36, 32, 0.08);
  padding: 3px;
}

.store-nav-link { color: #53635e; position: relative; }
.store-nav-link:hover,
.store-nav-link.is-active { color: var(--forest); }
.store-nav-link.is-active::after {
  background: var(--coral);
  bottom: -9px;
  content: '';
  height: 2px;
  left: 0;
  position: absolute;
  right: 0;
}

.store-primary-button {
  background: var(--forest);
  border-radius: 7px;
  box-shadow: 0 8px 18px rgba(11, 93, 71, 0.2);
}
.store-primary-button:hover { background: var(--forest-dark); transform: translateY(-1px); }

.home-hero {
  background: var(--forest-dark);
  min-height: min(680px, calc(100vh - 92px));
}

.home-hero::before {
  background: linear-gradient(90deg, rgba(4, 43, 35, 0.98) 0%, rgba(4, 43, 35, 0.9) 52%, rgba(4, 43, 35, 0.5) 100%);
  content: '';
  inset: 0;
  position: absolute;
  z-index: 1;
}

.hero-visual {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(150px, 240px));
  opacity: 0.38;
  position: absolute;
  right: max(4vw, calc((100vw - 1280px) / 2));
  top: 50%;
  transform: translateY(-50%) rotate(-3deg);
}

.hero-visual img {
  background: #f8fbf8;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  height: 210px;
  object-fit: contain;
  padding: 34px;
  width: 100%;
}

.hero-visual img:nth-child(2), .hero-visual img:nth-child(4) { transform: translateY(24px); }

.hero-eyebrow { color: #91ddc1; letter-spacing: 0; }
.hero-title { font-size: clamp(2.35rem, 5vw, 4.8rem); letter-spacing: 0; max-width: 790px; }
.hero-copy { color: #c7ddd4; max-width: 650px; }

.prescription-action {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.19);
  border-radius: 8px;
}
.prescription-action:hover { background: rgba(255, 255, 255, 0.14); border-color: rgba(255, 255, 255, 0.32); }

.search-shell {
  border: 2px solid transparent;
  border-radius: 8px;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.22);
}
.search-shell:focus-within { border-color: var(--amber); }

.trust-strip { background: var(--white); border-bottom: 1px solid var(--line); }
.trust-icon { background: var(--mint); border-radius: 7px; color: var(--forest); }

.section-kicker { color: var(--coral); letter-spacing: 0.08em; }
.section-heading { color: var(--ink); }

.category-tile {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(21, 36, 32, 0.05);
  overflow: hidden;
  position: relative;
}
.category-tile::after {
  background: var(--coral);
  bottom: 0;
  content: '';
  height: 3px;
  left: 0;
  position: absolute;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
  width: 100%;
}
.category-tile:hover { border-color: #b8cec4; box-shadow: 0 16px 34px rgba(21, 36, 32, 0.1); transform: translateY(-3px); }
.category-tile:hover::after { transform: scaleX(1); }
.category-art { background: #edf5f0; }

.catalog-hero {
  background-color: var(--forest-dark);
  background-image: linear-gradient(135deg, rgba(255,255,255,.04) 25%, transparent 25%, transparent 50%, rgba(255,255,255,.04) 50%, rgba(255,255,255,.04) 75%, transparent 75%);
  background-size: 28px 28px;
}

.filter-panel,
.prescription-panel,
.product-card,
.modal-panel {
  border-radius: 8px;
}

.filter-panel { border: 1px solid var(--line); box-shadow: 0 10px 28px rgba(21, 36, 32, 0.05); }
.category-filter { border-radius: 6px; }
.category-filter.is-active { background: var(--forest); color: var(--white); }

.prescription-panel {
  background: var(--forest-dark);
  box-shadow: 0 14px 30px rgba(7, 63, 52, 0.18);
  overflow: hidden;
  position: relative;
}
.prescription-panel::after {
  border: 22px solid rgba(255,255,255,.06);
  border-radius: 50%;
  content: '';
  height: 120px;
  position: absolute;
  right: -35px;
  top: -35px;
  width: 120px;
}

.product-card {
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(21, 36, 32, 0.045);
  overflow: hidden;
}
.product-card:hover { border-color: #b5cbbf; box-shadow: 0 16px 34px rgba(21, 36, 32, 0.1); transform: translateY(-3px); }
.product-image { background: #edf5f0; }
.product-category { background: var(--mint); border-radius: 4px; color: var(--forest); }
.product-price { color: var(--forest); }
.product-add { background: var(--forest); border-radius: 6px; }
.product-add:hover { background: var(--forest-dark); }

.store-footer { background: #10211d; }
.footer-main {
  align-items: start;
  display: grid !important;
  gap: 32px;
  grid-template-columns: minmax(0, 1.7fr) repeat(3, minmax(0, 1fr));
  width: 100%;
}
.footer-main > div { min-width: 0; }
.footer-links { display: grid; gap: 10px; }
.footer-title { color: var(--white); font-size: .875rem; font-weight: 800; margin-bottom: 14px; }
.footer-copy { color: #8fd1ba; font-size: .875rem; line-height: 1.65; }
.footer-contact { text-align: right; }
@media (max-width: 767px) {
  .footer-main { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-contact { text-align: left; }
}
@media (max-width: 480px) { .footer-main { grid-template-columns: 1fr; } }

.whatsapp-float {
  align-items: center;
  background: #1f9d55;
  border-radius: 50%;
  bottom: 18px !important;
  box-shadow: 0 10px 24px rgba(8, 75, 39, 0.3);
  color: var(--white);
  display: flex !important;
  height: 54px;
  justify-content: center;
  padding: 0;
  position: fixed !important;
  right: 18px !important;
  width: 54px;
  z-index: 1000 !important;
}
.whatsapp-float:hover { background: #147a40; transform: translateY(-2px); }
.whatsapp-float svg { height: 26px; width: 26px; }
.whatsapp-float span { display: none; }

button, a, .category-tile, .product-card { transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, color 180ms ease, transform 180ms ease; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgba(245, 189, 83, 0.7); outline-offset: 2px; }

@media (max-width: 767px) {
  .home-hero { min-height: auto; }
  .hero-visual { opacity: 0.17; right: -110px; transform: translateY(-50%) rotate(-3deg); }
  .hero-visual img { height: 150px; padding: 24px; }
  .hero-title { font-size: 2.4rem; }
  .search-shell button { padding-left: 14px; padding-right: 14px; }
  .whatsapp-float { bottom: 14px !important; height: 50px; right: 14px !important; width: 50px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}