:root {
  --primary: #00843d;
  --primary-dark: #00682f;
  --secondary: #d71920;
  --surface: #f7faf8;
  --paper: #ffffff;
  --paper-soft: #f1f4f2;
  --line: #bdcabb;
  --line-soft: rgba(110, 122, 110, 0.22);
  --text: #181c1c;
  --muted: #3e4a3e;
  --muted-2: #6e7a6e;
  --charcoal: #111827;
  --shadow: 0 12px 34px rgba(24, 28, 28, 0.08);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: var(--surface);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

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

.material-symbols-outlined {
  font-variation-settings: "FILL" 0, "wght" 500, "GRAD" 0, "opsz" 24;
  line-height: 1;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 0 clamp(16px, 4vw, 48px);
  background: rgba(247, 250, 248, 0.94);
  border-bottom: 1px solid var(--line-soft);
  backdrop-filter: blur(18px);
}

.brand,
.desktop-nav a {
  color: inherit;
  text-decoration: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--primary-dark);
  font-size: 20px;
  font-weight: 800;
}

.brand-mark {
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  flex: 0 0 auto;
  color: #fff;
  background: var(--primary);
  border-radius: var(--radius);
  font-variation-settings: "FILL" 1, "wght" 600, "GRAD" 0, "opsz" 24;
}

.desktop-nav {
  display: flex;
  gap: 28px;
  align-items: center;
}

.desktop-nav a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.desktop-nav a:hover {
  color: var(--primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-button {
  position: relative;
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 50%;
}

.icon-button:hover {
  background: var(--paper-soft);
  color: var(--primary);
}

.cart-count {
  position: absolute;
  top: 3px;
  right: 1px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  color: #fff;
  background: var(--secondary);
  border: 2px solid var(--surface);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  line-height: 14px;
}

#app {
  min-height: calc(100vh - 76px);
}

.page {
  width: min(1280px, 100%);
  margin: 0 auto;
  padding: clamp(24px, 5vw, 56px) clamp(16px, 4vw, 48px) 96px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
  padding-top: clamp(12px, 3vw, 40px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.view-title {
  margin: 0;
  color: var(--charcoal);
  letter-spacing: 0;
}

.hero h1 {
  max-width: 760px;
  margin-top: 14px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.02;
}

.hero-copy {
  max-width: 650px;
  margin: 20px 0 30px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.search-panel {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 720px;
  padding: 8px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.search-panel .material-symbols-outlined {
  margin-left: 10px;
  color: var(--muted-2);
}

.search-panel input {
  min-width: 0;
  flex: 1;
  height: 48px;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
  font-size: 16px;
}

.search-panel:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 132, 61, 0.14), var(--shadow);
}

.primary-button,
.secondary-button,
.ghost-button,
.danger-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: var(--radius);
  font-weight: 800;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.primary-button {
  color: #fff;
  background: var(--primary);
  border: 1px solid var(--primary);
}

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

.secondary-button {
  color: var(--primary-dark);
  background: var(--paper);
  border: 1px solid var(--primary);
}

.ghost-button {
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line-soft);
}

.danger-button {
  color: #fff;
  background: var(--secondary);
  border: 1px solid var(--secondary);
}

.primary-button:active,
.secondary-button:active,
.ghost-button:active {
  transform: scale(0.98);
}

.hero-card {
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-image {
  min-height: 320px;
  background:
    linear-gradient(145deg, rgba(0, 104, 47, 0.06), rgba(215, 25, 32, 0.03)),
    url("https://images.unsplash.com/photo-1587854692152-cbe660dbde88?auto=format&fit=crop&w=1200&q=80") center/cover;
}

.hero-card-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-soft);
}

.metric {
  min-width: 0;
  padding: 18px;
  background: var(--paper);
}

.metric strong {
  display: block;
  color: var(--primary-dark);
  font-size: 22px;
}

.metric span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.trust-row,
.category-grid,
.product-grid,
.detail-grid,
.checkout-grid,
.cart-grid {
  display: grid;
  gap: 24px;
}

.trust-row {
  grid-template-columns: repeat(4, 1fr);
  margin-top: 48px;
}

.trust-item,
.category-card,
.product-card,
.panel,
.summary-card,
.support-card {
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
}

.trust-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 18px;
}

.trust-item .material-symbols-outlined {
  color: var(--primary);
  font-variation-settings: "FILL" 1, "wght" 600, "GRAD" 0, "opsz" 24;
}

.trust-item strong,
.category-card strong {
  display: block;
  color: var(--text);
}

.trust-item span,
.category-card span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.section {
  margin-top: clamp(42px, 7vw, 86px);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.section-heading h2,
.view-title {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.12;
}

.section-heading p,
.view-subtitle {
  max-width: 720px;
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.category-grid {
  grid-template-columns: repeat(4, 1fr);
}

.category-card {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 118px;
  padding: 20px;
  text-align: left;
}

.category-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
}

.category-icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  flex: 0 0 auto;
  color: var(--primary);
  background: rgba(0, 132, 61, 0.08);
  border-radius: var(--radius);
}

.product-grid {
  grid-template-columns: repeat(4, 1fr);
}

.product-card {
  position: relative;
  display: flex;
  min-width: 0;
  overflow: hidden;
  flex-direction: column;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.product-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 132, 61, 0.35);
  box-shadow: var(--shadow);
}

.product-image {
  display: grid;
  min-height: 190px;
  place-items: center;
  padding: 22px;
  background: var(--paper-soft);
}

.product-image img {
  width: 100%;
  height: 150px;
  object-fit: contain;
}

.product-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px;
}

.product-meta {
  color: var(--muted-2);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.product-title {
  margin: 8px 0 2px;
  color: var(--text);
  font-size: 18px;
  font-weight: 800;
}

.generic {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 14px;
  font-style: italic;
  line-height: 1.45;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
}

.price {
  color: var(--primary-dark);
  font-size: 18px;
  font-weight: 900;
}

.status,
.rx-badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
}

.status {
  position: absolute;
  top: 12px;
  right: 12px;
  color: var(--primary-dark);
  background: rgba(0, 132, 61, 0.1);
}

.status.out {
  color: var(--secondary);
  background: rgba(215, 25, 32, 0.1);
}

.rx-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  color: var(--secondary);
  background: rgba(215, 25, 32, 0.1);
}

.catalog-layout {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 30px;
  align-items: start;
}

.filters {
  position: sticky;
  top: 98px;
  padding: 20px;
}

.filter-title {
  margin: 0 0 18px;
  color: var(--charcoal);
  font-size: 18px;
}

.filter-group {
  padding: 18px 0;
  border-top: 1px solid var(--line-soft);
}

.filter-group label {
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: 34px;
  color: var(--muted);
  font-weight: 600;
}

.filter-group input {
  accent-color: var(--primary);
}

.catalog-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.select,
.field,
.textarea {
  width: 100%;
  min-height: 46px;
  padding: 0 13px;
  color: var(--text);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  outline: 0;
}

.textarea {
  min-height: 96px;
  padding-top: 12px;
  resize: vertical;
}

.select:focus,
.field:focus,
.textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 132, 61, 0.13);
}

.detail-grid {
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.9fr);
  align-items: start;
}

.detail-media,
.detail-panel {
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
}

.detail-media {
  display: grid;
  min-height: 440px;
  place-items: center;
  padding: clamp(24px, 5vw, 54px);
  background: var(--paper-soft);
}

.detail-media img {
  width: min(460px, 100%);
  max-height: 370px;
  object-fit: contain;
}

.detail-panel {
  padding: clamp(22px, 4vw, 34px);
}

.detail-panel h1 {
  margin: 12px 0 4px;
  color: var(--charcoal);
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.05;
}

.detail-price-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 22px 0;
  padding: 18px 0;
  border-block: 1px solid var(--line-soft);
}

.detail-price-row .price {
  font-size: 30px;
}

.alert {
  display: flex;
  gap: 12px;
  padding: 14px;
  color: #8b1015;
  background: rgba(215, 25, 32, 0.06);
  border: 1px solid rgba(215, 25, 32, 0.2);
  border-radius: var(--radius);
}

.stock-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 18px 0;
  padding: 14px;
  background: var(--paper-soft);
  border-radius: var(--radius);
}

.qty-row {
  display: flex;
  gap: 12px;
  margin-top: 22px;
}

.qty-control {
  display: flex;
  min-width: 132px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.qty-control button {
  width: 42px;
  color: var(--muted);
  background: transparent;
  border: 0;
}

.qty-control input {
  width: 48px;
  text-align: center;
  border: 0;
  outline: 0;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 24px;
}

.info-card {
  padding: 20px;
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
}

.info-card h3 {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 0 0 10px;
}

.info-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.cart-grid,
.checkout-grid {
  grid-template-columns: minmax(0, 1fr) 380px;
  align-items: start;
}

.panel {
  padding: clamp(18px, 4vw, 28px);
}

.cart-item {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 18px 0;
  border-top: 1px solid var(--line-soft);
}

.cart-item:first-child {
  border-top: 0;
  padding-top: 0;
}

.cart-thumb {
  display: grid;
  width: 84px;
  height: 84px;
  place-items: center;
  padding: 10px;
  background: var(--paper-soft);
  border-radius: var(--radius);
}

.cart-thumb img {
  max-height: 70px;
  object-fit: contain;
}

.cart-item h3 {
  margin: 0;
  font-size: 17px;
}

.cart-item p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.summary-card {
  position: sticky;
  top: 98px;
  padding: 24px;
}

.summary-line,
.summary-total {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.summary-line {
  margin-top: 12px;
  color: var(--muted);
}

.summary-total {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
  color: var(--charcoal);
  font-size: 22px;
  font-weight: 900;
}

.checkout-stepper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 26px 0;
}

.step {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-weight: 700;
}

.step-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--muted);
  background: var(--paper-soft);
  border-radius: 50%;
}

.step.done .step-icon,
.step.active .step-icon {
  color: #fff;
  background: var(--primary);
}

.step.active {
  color: var(--primary-dark);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.form-field {
  display: grid;
  gap: 7px;
}

.form-field.full {
  grid-column: 1 / -1;
}

.form-field label,
.upload-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.upload-box {
  display: grid;
  place-items: center;
  min-height: 160px;
  padding: 24px;
  text-align: center;
  background: rgba(0, 132, 61, 0.04);
  border: 2px dashed var(--line);
  border-radius: var(--radius);
}

.upload-box strong {
  display: block;
  margin-top: 10px;
}

.upload-box span {
  color: var(--primary);
}

.payment-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 14px;
  padding: 16px;
  background: rgba(0, 132, 61, 0.05);
  border: 2px solid var(--primary);
  border-radius: var(--radius);
}

.payment-option strong {
  display: block;
}

.payment-option span {
  color: var(--muted);
  font-size: 13px;
}

.flutterwave {
  color: #f5a623;
  font-weight: 900;
}

.success-card {
  max-width: 720px;
  margin: 36px auto;
  padding: clamp(28px, 6vw, 54px);
  text-align: center;
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.success-card .material-symbols-outlined {
  display: inline-grid;
  width: 72px;
  height: 72px;
  place-items: center;
  color: #fff;
  background: var(--primary);
  border-radius: 50%;
  font-size: 42px;
  font-variation-settings: "FILL" 1, "wght" 700, "GRAD" 0, "opsz" 48;
}

.support-card {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 30px;
  align-items: center;
  padding: clamp(24px, 5vw, 48px);
}

.map-card {
  min-height: 250px;
  overflow: hidden;
  background:
    linear-gradient(rgba(0, 132, 61, 0.1), rgba(0, 132, 61, 0.06)),
    url("https://images.unsplash.com/photo-1524661135-423995f22d0b?auto=format&fit=crop&w=900&q=80") center/cover;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
}

.empty-state {
  padding: 48px 24px;
  text-align: center;
}

.empty-state .material-symbols-outlined {
  color: var(--muted-2);
  font-size: 52px;
}

.mobile-nav {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 60;
  display: none;
  grid-template-columns: repeat(4, 1fr);
  height: 68px;
  background: var(--paper);
  border-top: 1px solid var(--line-soft);
}

.mobile-nav-item {
  display: grid;
  gap: 2px;
  place-items: center;
  color: var(--muted);
  background: transparent;
  border: 0;
  font-size: 10px;
  font-weight: 800;
}

.mobile-nav-item.is-active {
  color: var(--primary);
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 22px;
  z-index: 80;
  max-width: min(360px, calc(100vw - 36px));
  padding: 14px 16px;
  color: #fff;
  background: var(--charcoal);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1040px) {
  .hero,
  .detail-grid,
  .cart-grid,
  .checkout-grid,
  .support-card {
    grid-template-columns: 1fr;
  }

  .catalog-layout {
    grid-template-columns: 1fr;
  }

  .filters,
  .summary-card {
    position: static;
  }

  .trust-row,
  .category-grid,
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .desktop-nav {
    display: none;
  }

  .site-header {
    min-height: 66px;
  }

  .brand {
    font-size: 17px;
  }

  .brand-mark {
    width: 32px;
    height: 32px;
  }

  .header-actions .icon-button:last-child {
    display: none;
  }

  .page {
    padding-bottom: 92px;
  }

  .hero h1 {
    font-size: 40px;
  }

  .hero-copy {
    font-size: 16px;
  }

  .search-panel {
    align-items: stretch;
    flex-wrap: wrap;
  }

  .search-panel input {
    flex-basis: calc(100% - 50px);
  }

  .search-panel .primary-button {
    width: 100%;
  }

  .hero-card-content,
  .trust-row,
  .category-grid,
  .product-grid,
  .info-grid,
  .form-grid,
  .checkout-stepper {
    grid-template-columns: 1fr;
  }

  .product-grid.mobile-two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .product-grid.mobile-two .product-image {
    min-height: 142px;
    padding: 14px;
  }

  .product-grid.mobile-two .product-image img {
    height: 112px;
  }

  .product-grid.mobile-two .product-body {
    padding: 13px;
  }

  .product-grid.mobile-two .product-title {
    font-size: 15px;
  }

  .product-grid.mobile-two .generic {
    font-size: 12px;
  }

  .card-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .card-footer .primary-button,
  .card-footer .secondary-button,
  .card-footer .ghost-button {
    width: 100%;
  }

  .catalog-toolbar,
  .section-heading,
  .stock-strip,
  .payment-option {
    align-items: stretch;
    flex-direction: column;
  }

  .cart-item {
    grid-template-columns: 68px minmax(0, 1fr);
  }

  .cart-item > .price {
    grid-column: 2;
  }

  .cart-thumb {
    width: 68px;
    height: 68px;
  }

  .qty-row {
    flex-direction: column;
  }

  .mobile-nav {
    display: grid;
  }

  .toast {
    bottom: 84px;
  }
}
