/* ============================================================
   GARBAGE BAGS KENYA — Design System
   Mobile-first | Green accent | Premium simple
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700&family=Inter:wght@400;500&display=swap');

/* ── Tokens ─────────────────────────────────────────────── */
:root {
  --bg:            #f8f6f1;
  --surface:       #ffffff;
  --border:        #e8e4dc;
  --border-strong: #d4cfc6;

  --text-primary:   #1a1a1a;
  --text-secondary: #6b6b6b;
  --text-muted:     #9a9a9a;

  --green:        #2d6a4f;
  --green-dark:   #1e4d38;
  --green-light:  #e8f5e9;
  --green-mid:    #d4ede1;

  --danger:       #c0392b;
  --warning-bg:   #fef9ec;

  --font-display: 'Outfit', sans-serif;
  --font-body:    'Inter', sans-serif;

  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;

  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   12px;
  --radius-xl:   16px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 28px rgba(0,0,0,0.10);

  --ease: 0.2s ease;

  --container-max: 1200px;
  --gutter: 1rem;
}

/* ── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-primary);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

img { max-width: 100%; height: auto; display: block; }
a   { color: inherit; text-decoration: none; }
button { font-family: var(--font-body); cursor: pointer; border: none; background: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

/* ── Layout ─────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ── Navigation ─────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--green);
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.nav__logo-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}

/* logo image swap — drop in logo.png and it just works */
.nav__logo img {
  height: 32px;
  width: auto;
}

.nav__links {
  display: none;
  list-style: none;
  align-items: center;
  gap: var(--space-8);
}

.nav__links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--ease);
  padding: var(--space-1) 0;
  border-bottom: 1.5px solid transparent;
}

.nav__links a:hover,
.nav__links a.active {
  color: var(--green);
  border-bottom-color: var(--green);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.nav__cart {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  color: var(--text-primary);
  transition: background var(--ease), color var(--ease);
}

.nav__cart:hover { background: var(--green-light); color: var(--green); }

.nav__cart svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

.nav__cart-count {
  position: absolute;
  top: 5px;
  right: 5px;
  min-width: 18px;
  height: 18px;
  background: var(--green);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.nav__cart-count.visible { display: flex; }

.nav__hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  transition: background var(--ease);
}

.nav__hamburger:hover { background: var(--green-light); }

.nav__hamburger span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--ease);
}

.nav__mobile {
  display: none;
  flex-direction: column;
  border-top: 1px solid var(--border);
  padding: var(--space-2) var(--gutter);
}

.nav__mobile.open { display: flex; }

.nav__mobile a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--border);
  transition: color var(--ease);
}

.nav__mobile a:last-child { border-bottom: none; }
.nav__mobile a:hover { color: var(--green); }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 var(--space-5);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: var(--radius-md);
  transition: all var(--ease);
  cursor: pointer;
  border: none;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.btn:active { transform: scale(0.97); }
.btn-full   { width: 100%; }

.btn-lg {
  min-height: 52px;
  padding: 0 var(--space-8);
  font-size: 1rem;
  border-radius: var(--radius-lg);
}

.btn-sm {
  min-height: 36px;
  padding: 0 var(--space-4);
  font-size: 0.875rem;
}

.btn-primary {
  background: var(--green);
  color: #fff;
}

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

.btn-outline {
  background: transparent;
  color: var(--green);
  border: 1.5px solid var(--green);
}

.btn-outline:hover { background: var(--green-light); }

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}

.btn-ghost:hover { background: var(--green-light); color: var(--green); }

/* Hero-variant outline (on dark background) */
.btn-white-outline {
  background: transparent;
  color: rgba(255,255,255,0.85);
  border: 1.5px solid rgba(255,255,255,0.28);
}

.btn-white-outline:hover { background: rgba(255,255,255,0.1); color: #fff; }

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  position: relative;
  background-color: #1a2e22;
  background-image: radial-gradient(circle, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 22px 22px;
  color: #fff;
  padding: var(--space-16) 0 var(--space-12);
  overflow: hidden;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  background: rgba(45,106,79,0.35);
  border: 1px solid rgba(45,106,79,0.5);
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 500;
  color: #a8d5b8;
  margin-bottom: var(--space-5);
  letter-spacing: 0.01em;
}

.hero__badge-dot {
  width: 6px;
  height: 6px;
  background: #4caf76;
  border-radius: 50%;
  flex-shrink: 0;
  animation: pulse-dot 2.4s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.6; transform: scale(0.85); }
}

.hero__headline {
  font-family: var(--font-display);
  font-size: clamp(2.125rem, 6vw, 3.75rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: var(--space-5);
}

.hero__sub {
  font-size: clamp(1rem, 2.2vw, 1.125rem);
  color: rgba(255,255,255,0.65);
  max-width: 500px;
  margin-bottom: var(--space-8);
  line-height: 1.75;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-12);
}

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-8);
  padding-top: var(--space-8);
  border-top: 1px solid rgba(255,255,255,0.1);
}

.hero__stat-value {
  font-family: var(--font-display);
  font-size: 1.875rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}

.hero__stat-label {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.45);
  margin-top: 4px;
}

/* ── Sections ────────────────────────────────────────────── */
.section      { padding: var(--space-12) 0; }
.section-lg   { padding: var(--space-16) 0; }
.section-alt  { background: var(--surface); }

.section__header { margin-bottom: var(--space-8); }

.section__eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: var(--space-2);
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 600;
}

.section__sub {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-top: var(--space-3);
  max-width: 520px;
  line-height: 1.7;
}

/* ── Feature cards ───────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
}

.feature-card__icon {
  width: 44px;
  height: 44px;
  background: var(--green-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
  flex-shrink: 0;
}

.feature-card__icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--green);
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-card__title {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.feature-card__text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ── Product grid ────────────────────────────────────────── */
.products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}

.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: box-shadow var(--ease), transform var(--ease), border-color var(--ease);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--green-mid);
}

.product-card__img {
  width: 100%;
  display: block;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: opacity 0.3s ease, transform 0.35s ease;
}

.product-card__placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--green-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card__placeholder svg {
  width: 40px;
  height: 40px;
  stroke: var(--green);
  opacity: 0.4;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.product-card__body {
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-card__size {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: var(--space-2);
}

.product-card__name {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: var(--space-2);
  line-height: 1.3;
}

.product-card__desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-4);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.product-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-top: auto;
}

.product-card__price {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
}

.product-card__price small {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-muted);
  font-family: var(--font-body);
}

.product-card__stock {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.product-card__stock.low   { color: #e67e22; }
.product-card__stock.empty { color: var(--danger); }

/* ── Filter bar ──────────────────────────────────────────── */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-8);
}

.filter-btn {
  min-height: 36px;
  padding: 0 var(--space-4);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--ease);
}

.filter-btn:hover { border-color: var(--green-mid); color: var(--green); }

.filter-btn.active {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}

.products-meta {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: var(--space-6);
}

/* ── Trust band ──────────────────────────────────────────── */
.trust-band {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: var(--space-8) 0;
}

.trust-items {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.trust-item__icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  background: var(--green-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.trust-item__icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--green);
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.trust-item__title {
  font-weight: 600;
  font-size: 0.9375rem;
}

.trust-item__text {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin-top: 1px;
}

/* ── Page header ─────────────────────────────────────────── */
.page-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: var(--space-10) 0;
}

.page-header__title {
  font-family: var(--font-display);
  font-size: clamp(1.625rem, 4vw, 2.25rem);
  font-weight: 700;
}

.page-header__sub {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin-top: var(--space-2);
}

/* ── Footer ──────────────────────────────────────────────── */
.footer {
  background: #1a2e22;
  color: rgba(255,255,255,0.65);
  padding: var(--space-12) 0 var(--space-8);
}

.footer__logo {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: var(--space-3);
}

.footer__tagline {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.45);
  margin-bottom: var(--space-6);
  line-height: 1.6;
  max-width: 280px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  padding-bottom: var(--space-8);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: var(--space-6);
}

.footer__heading {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: var(--space-4);
}

.footer__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer__links a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  transition: color var(--ease);
}

.footer__links a:hover { color: #fff; }

.footer__bottom {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.3);
}

/* ── Skeleton loader ─────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, #ede9e3 25%, #f4f1ec 50%, #ede9e3 75%);
  background-size: 300% 100%;
  animation: shimmer 1.6s infinite;
  border-radius: var(--radius-xl);
}

@keyframes shimmer {
  0%   { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

/* ── Empty state ─────────────────────────────────────────── */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: var(--space-16) var(--space-4);
  color: var(--text-secondary);
}

.empty-state__icon {
  width: 48px;
  height: 48px;
  stroke: var(--text-muted);
  fill: none;
  margin: 0 auto var(--space-4);
  display: block;
}

.empty-state h3 {
  font-size: 1.125rem;
  margin-bottom: var(--space-2);
  color: var(--text-primary);
}

.empty-state p {
  font-size: 0.9rem;
  max-width: 320px;
  margin: 0 auto;
}

/* ── Toast ───────────────────────────────────────────────── */
.toast-container {
  position: fixed;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  left: 16px;
  right: 16px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  pointer-events: none;
}

.toast {
  background: #1a1a1a;
  color: #fff;
  padding: 12px 16px;
  border-radius: var(--radius-lg);
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  animation: toast-slide 0.28s ease;
  display: flex;
  align-items: center;
  gap: 10px;
}

.toast::before {
  content: '';
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4caf76;
  flex-shrink: 0;
}

.toast.error::before { background: #e74c3c; }

@keyframes toast-slide {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Badge ───────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-green { background: var(--green-light); color: var(--green); }

/* ── Divider ─────────────────────────────────────────────── */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: var(--space-8) 0;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (min-width: 480px) {
  :root { --gutter: 1.25rem; }

  .toast-container {
    left: auto;
    right: 20px;
    max-width: 320px;
  }
}

@media (min-width: 640px) {
  :root { --gutter: 1.5rem; }

  .products-grid    { grid-template-columns: repeat(2, 1fr); }
  .features-grid    { grid-template-columns: repeat(2, 1fr); }

  .trust-items {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .trust-item { flex: 1; min-width: 180px; }
}

@media (min-width: 768px) {
  :root { --gutter: 2rem; }

  .nav__links    { display: flex; }
  .nav__hamburger { display: none; }

  .footer__grid  { grid-template-columns: 2fr 1fr 1fr; }

  .features-grid { grid-template-columns: repeat(3, 1fr); }

  .trust-items   { flex-wrap: nowrap; gap: var(--space-10); }
}

@media (min-width: 1024px) {
  .products-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1280px) {
  .products-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ── Reduced motion ──────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================================
   FORMS
   ============================================================ */

.form-group { margin-bottom: var(--space-5); }

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.form-label .required { color: var(--danger); margin-left: 2px; }

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  min-height: 48px;
  padding: 0 var(--space-4);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-primary);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  outline: none;
  transition: border-color var(--ease), box-shadow var(--ease);
  appearance: none;
  -webkit-appearance: none;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(45,106,79,0.1);
}

.form-input::placeholder,
.form-textarea::placeholder { color: var(--text-muted); }

.form-textarea {
  padding: var(--space-3) var(--space-4);
  min-height: 100px;
  resize: vertical;
  line-height: 1.6;
}

.form-hint  { font-size: 0.8125rem; color: var(--text-muted); margin-top: var(--space-1); line-height: 1.5; }

.form-error {
  font-size: 0.8125rem;
  color: var(--danger);
  margin-top: var(--space-1);
  display: none;
}

.form-error.visible { display: block; }
.form-input.invalid { border-color: var(--danger); }

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

/* ============================================================
   CART
   ============================================================ */

.cart-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  align-items: start;
}

.cart-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  grid-template-rows: auto auto;
  grid-template-areas:
    "img info"
    "img controls";
  column-gap: var(--space-4);
  row-gap: var(--space-3);
  padding: var(--space-5) 0;
  border-bottom: 1px solid var(--border);
}

.cart-items > .cart-item:first-child { border-top: 1px solid var(--border); }

.cart-item__img-wrap { grid-area: img; }

.cart-item__img,
.cart-item__img-ph {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-md);
  object-fit: cover;
  flex-shrink: 0;
}

.cart-item__img-ph {
  background: var(--green-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-item__img-ph svg {
  width: 28px;
  height: 28px;
  stroke: var(--green);
  fill: none;
  opacity: 0.5;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cart-item__info  { grid-area: info; min-width: 0; }

.cart-item__name {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item__size {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-top: 3px;
}

.cart-item__unit-price {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

.cart-item__controls {
  grid-area: controls;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.cart-item__line-total {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  margin-left: auto;
}

.btn-remove {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8125rem;
  color: var(--text-muted);
  transition: color var(--ease);
  padding: 4px 0;
  min-height: 32px;
}

.btn-remove:hover { color: var(--danger); }

.btn-remove svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Qty stepper */
.qty-stepper {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  flex-shrink: 0;
}

.qty-btn {
  width: 40px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  line-height: 1;
  color: var(--text-secondary);
  transition: background var(--ease), color var(--ease);
  flex-shrink: 0;
}

.qty-btn:hover { background: var(--green-light); color: var(--green); }
.qty-btn:disabled { opacity: 0.35; cursor: not-allowed; }

.qty-input {
  width: 44px;
  height: 44px;
  text-align: center;
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
  background: var(--surface);
  border: none;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  outline: none;
  -moz-appearance: textfield;
}

.qty-input::-webkit-inner-spin-button,
.qty-input::-webkit-outer-spin-button { -webkit-appearance: none; }

/* Order summary box */
.order-summary {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
}

.order-summary__title {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--border);
}

.summary-items { margin-bottom: var(--space-4); }

.summary-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-3);
  font-size: 0.9rem;
  padding: var(--space-2) 0;
}

.summary-item__name {
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.summary-item__qty {
  font-size: 0.8rem;
  color: var(--text-muted);
  flex-shrink: 0;
}

.summary-item__price { font-weight: 500; flex-shrink: 0; }

.summary-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: var(--space-4) 0;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9375rem;
  padding: var(--space-2) 0;
}

.summary-row.total {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  padding-top: var(--space-4);
  border-top: 2px solid var(--border);
  margin-top: var(--space-2);
}

.delivery-note {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  background: var(--bg);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  margin: var(--space-4) 0;
  line-height: 1.55;
  border-left: 3px solid var(--green-mid);
}

/* Checkout layout */
.checkout-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  align-items: start;
}

/* Confirmation page */
.confirmation-wrap {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  padding: var(--space-12) var(--space-4);
}

.confirmation-icon {
  width: 72px;
  height: 72px;
  background: var(--green-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-6);
}

.confirmation-icon svg {
  width: 36px;
  height: 36px;
  stroke: var(--green);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.confirmation-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  margin-bottom: var(--space-3);
}

.confirmation-sub {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-8);
  line-height: 1.7;
}

.steps-list {
  list-style: none;
  text-align: left;
  margin-bottom: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.step-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-5);
}

.step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--green-light);
  color: var(--green);
  font-size: 0.8125rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.step-text { font-size: 0.9375rem; line-height: 1.5; }
.step-text strong { display: block; font-weight: 600; margin-bottom: 2px; }
.step-text span { color: var(--text-secondary); font-size: 0.875rem; }

.order-details-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-5) var(--space-6);
  text-align: left;
  margin-bottom: var(--space-8);
}

.order-details-box h3 {
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-4);
}

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-2) 0;
  font-size: 0.9375rem;
  border-bottom: 1px solid var(--border);
}

.detail-row:last-child { border-bottom: none; }
.detail-row span:first-child { color: var(--text-secondary); }
.detail-row span:last-child  { font-weight: 500; }

.confirmation-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: center;
}

/* ============================================================
   RESPONSIVE — cart & checkout additions
   ============================================================ */

@media (min-width: 640px) {
  .form-row { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 768px) {
  .cart-layout      { grid-template-columns: 1fr 360px; }
  .checkout-layout  { grid-template-columns: 1fr 380px; }

  .order-summary { position: sticky; top: 80px; }
}

/* ============================================================
   ADMIN CONSOLE
   ============================================================ */

.admin-nav {
  background: #1a2e22;
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 200;
}

.admin-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  gap: var(--space-4);
}

.admin-nav__logo {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
}

.admin-badge {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  background: rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.8);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

/* Tab bar */
.tab-bar {
  display: flex;
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--space-6);
  gap: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.tab-btn {
  min-height: 44px;
  padding: 0 var(--space-5);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-bottom: 2px solid transparent;
  transition: color var(--ease), border-color var(--ease);
  white-space: nowrap;
  flex-shrink: 0;
}

.tab-btn:hover  { color: var(--green); }
.tab-btn.active { color: var(--green); border-bottom-color: var(--green); }

/* Stats row */
.stats-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-5);
}

.stat-card__value {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 4px;
}

.stat-card__label {
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

/* Admin product form */
.admin-form-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  margin-bottom: var(--space-6);
  display: none;
}

.admin-form-box.visible { display: block; }

.admin-form-box h3 {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: var(--space-5);
}

/* Admin product table */
.admin-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  min-width: 600px;
}

.admin-table th {
  padding: var(--space-3) var(--space-4);
  text-align: left;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--text-muted);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.admin-table td {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: var(--bg); }

.admin-table__img {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  object-fit: cover;
  background: var(--green-light);
  flex-shrink: 0;
}

.admin-table__img-ph {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--green-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Status badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: capitalize;
  letter-spacing: .03em;
}

.status-pending   { background: #fef9ec; color: #854F0B; }
.status-paid      { background: var(--green-light); color: var(--green-dark); }
.status-fulfilled { background: #e6f1fb; color: #185FA5; }
.status-cancelled { background: #fcebeb; color: #A32D2D; }
.status-inactive  { background: var(--bg); color: var(--text-muted); }

/* Status select in orders table */
.status-select {
  min-height: 36px;
  padding: 0 var(--space-3);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  outline: none;
  cursor: pointer;
  transition: border-color var(--ease);
}

.status-select:focus { border-color: var(--green); }

/* Action buttons in table */
.btn-table-action {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8125rem;
  font-weight: 500;
  min-height: 32px;
  padding: 0 var(--space-3);
  border-radius: var(--radius-md);
  transition: all var(--ease);
}

.btn-edit   { color: var(--green); background: var(--green-light); }
.btn-edit:hover { background: var(--green-mid); }

.btn-delete { color: #A32D2D; background: #fcebeb; }
.btn-delete:hover { background: #f7c1c1; }

/* Empty state for admin tables */
.admin-empty {
  text-align: center;
  padding: var(--space-12) var(--space-4);
  color: var(--text-secondary);
}

/* Order detail row in table */
.order-items-list {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ── Responsive admin ── */
@media (min-width: 640px) {
  .stats-row { grid-template-columns: repeat(4, 1fr); }
}

/* ── Phone in nav ──────────────────────────────────────────── */
.nav__phone {
  display: none;
  align-items: center;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--green);
  padding: 4px 8px;
  border-radius: var(--radius-md);
  transition: background var(--ease);
  white-space: nowrap;
}

.nav__phone:hover { background: var(--green-light); }

@media (min-width: 480px) { .nav__phone { display: flex; } }

/* ── Breadcrumb ────────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: var(--space-6);
  flex-wrap: wrap;
}

.breadcrumb a { color: var(--text-secondary); transition: color var(--ease); }
.breadcrumb a:hover { color: var(--green); }
.breadcrumb__sep { color: var(--border-strong); }
.breadcrumb__current { color: var(--text-primary); font-weight: 500; }

/* ── Product detail ────────────────────────────────────────── */
.product-detail {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  align-items: start;
}

.product-detail__image-wrap {
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--green-light);
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-detail__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-detail__image-ph svg {
  width: 64px;
  height: 64px;
  stroke: var(--green);
  fill: none;
  opacity: 0.35;
  stroke-width: 1.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.product-detail__size {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: var(--space-3);
}

.product-detail__name {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-4);
  line-height: 1.15;
}

.product-detail__price {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: var(--space-2);
}

.product-detail__price small {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-muted);
  font-family: var(--font-body);
}

.product-detail__desc {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--border);
}

.product-detail__actions {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-bottom: var(--space-5);
}

.product-detail__note {
  font-size: 0.8125rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* LPO section in checkout */
.lpo-box {
  background: var(--warning-bg);
  border: 1px solid #FAC775;
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  margin-top: var(--space-4);
  display: none;
}

.lpo-box.visible { display: block; }

.lpo-box h4 {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: var(--space-4);
}

@media (min-width: 768px) {
  .product-detail { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   UI/UX IMPROVEMENTS — v2
   ============================================================ */

/* ── Checkout steps ─────────────────────────────────────────── */
.checkout-steps {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.8125rem;
  margin-bottom: var(--space-5);
  flex-wrap: wrap;
}

.checkout-steps__step {
  color: var(--text-muted);
  font-weight: 400;
}

.checkout-steps__step.active {
  color: var(--text-primary);
  font-weight: 600;
}

.checkout-steps__step.done {
  color: var(--green);
  font-weight: 500;
}

.checkout-steps__sep {
  color: var(--border-strong);
  font-size: 0.75rem;
}

/* ── FAQ accordion ──────────────────────────────────────────── */
details summary { list-style: none; }
details summary::-webkit-details-marker { display: none; }

.faq-icon {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--green-light);
  color: var(--green);
  font-size: 1.125rem;
  font-weight: 400;
  flex-shrink: 0;
  transition: transform var(--ease), background var(--ease);
  line-height: 1;
}

details[open] .faq-icon {
  transform: rotate(45deg);
  background: var(--green);
  color: #fff;
}

details > summary { cursor: pointer; }
details > summary:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: var(--radius-md); }

/* ── Focus rings (keyboard nav) ─────────────────────────────── */
.btn:focus-visible,
.nav__cart:focus-visible,
.nav__hamburger:focus-visible,
.filter-btn:focus-visible,
.qty-btn:focus-visible,
.tab-btn:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

a:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ── Filter bar mobile scroll ────────────────────────────────── */
.filter-bar {
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 4px;
}

.filter-bar::-webkit-scrollbar { display: none; }

/* ── Admin image upload ──────────────────────────────────────── */
.img-upload-row {
  display: flex;
  gap: var(--space-2);
  align-items: stretch;
  margin-bottom: var(--space-3);
}

.img-upload-row .form-input { flex: 1; min-width: 0; }

.img-upload-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 48px;
  padding: 0 var(--space-4);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--green);
  background: var(--surface);
  border: 1.5px solid var(--green);
  border-radius: var(--radius-md);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all var(--ease);
}

.img-upload-btn:hover { background: var(--green-light); }
.img-upload-btn.uploading { opacity: 0.6; pointer-events: none; }

.img-upload-btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.img-preview-wrap {
  display: none;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-3);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.img-preview-wrap.visible { display: flex; }

.img-preview-thumb {
  width: 88px;
  height: 66px;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  flex-shrink: 0;
  background: var(--green-light);
}

/* ── Admin orders mobile ─────────────────────────────────────── */
.order-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  margin-bottom: var(--space-3);
}

.order-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-3);
}

.order-card__id { font-weight: 700; color: var(--text-secondary); font-size: 0.875rem; }
.order-card__date { font-size: 0.75rem; color: var(--text-muted); }
.order-card__name { font-weight: 600; margin-bottom: 2px; }
.order-card__phone { font-size: 0.875rem; color: var(--text-secondary); margin-bottom: var(--space-3); }
.order-card__items { font-size: 0.8125rem; color: var(--text-secondary); margin-bottom: var(--space-3); line-height: 1.6; }

.order-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid var(--border);
}

.order-card__total { font-weight: 700; }

/* Hide table on mobile, show cards */
@media (max-width: 767px) {
  .orders-table-wrap .admin-table { display: none; }
  .orders-cards { display: block; }
}

@media (min-width: 768px) {
  .orders-cards { display: none; }
}

/* ── Smooth page transitions ─────────────────────────────────── */
.products-grid { transition: opacity 0.15s ease; }
.products-grid.loading { opacity: 0.4; pointer-events: none; }

/* ── Product card — image aspect ratio fix ───────────────────── */

/* ── Toast on desktop ────────────────────────────────────────── */
@media (min-width: 480px) {
  .toast-container { left: auto; right: 20px; max-width: 320px; }
}

/* ============================================================
   MOBILE-FIRST OPTIMISATIONS — Kenya market
   ============================================================ */

/* ── Trust band: horizontal scroll on mobile ────────────── */
@media (max-width: 767px) {
  .trust-band { padding: var(--space-5) 0; }

  .trust-items {
    flex-direction: row;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: var(--space-5);
    padding-bottom: 4px;
  }

  .trust-items::-webkit-scrollbar { display: none; }

  .trust-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 110px;
    flex-shrink: 0;
  }

  .trust-item__text { font-size: 0.75rem; }
}

/* ── Footer: strip to essentials on mobile ──────────────── */
.footer__mobile-bar {
  display: none;
}

@media (max-width: 767px) {
  .footer {
    padding: var(--space-5) 0 var(--space-4);
  }

  .footer__grid {
    display: none;
  }

  .footer__mobile-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-3);
    padding-bottom: var(--space-3);
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }

  .footer__bottom {
    text-align: center;
    font-size: 0.75rem;
  }
}

/* ── Sticky WhatsApp button — mobile only ───────────────── */
.whatsapp-sticky {
  display: none !important;
}

@media (max-width: 767px) {
  .whatsapp-sticky {
    display: flex;
    align-items: center;
    gap: 8px;
    position: fixed;
    bottom: 24px;
    right: 16px;
    z-index: 998;
    background: #25D366;
    color: #fff;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 13px 20px;
    border-radius: 999px;
    box-shadow: 0 4px 18px rgba(37,211,102,0.4);
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    -webkit-tap-highlight-color: transparent;
  }

  .whatsapp-sticky:active {
    transform: scale(0.96);
  }

  .whatsapp-sticky svg {
    width: 20px;
    height: 20px;
    fill: #fff;
    flex-shrink: 0;
  }

  /* Space so sticky button doesn't cover page content */
  main { padding-bottom: 80px; }
}

/* ── Product cards: better mobile touch targets ─────────── */
@media (max-width: 480px) {
  .product-card__footer {
    flex-direction: column;
    gap: var(--space-3);
    align-items: stretch;
  }

  .product-card__footer .btn {
    width: 100%;
    justify-content: center;
    min-height: 48px;
  }

  .product-card__price {
    font-size: 1.25rem;
  }
}

/* ── Section padding reduced on mobile ──────────────────── */
@media (max-width: 767px) {
  .section { padding: var(--space-8) 0; }
  .section-lg { padding: var(--space-10) 0; }
}

/* ============================================================
   UI/UX HIERARCHY + AFFORDANCE IMPROVEMENTS
   ============================================================ */

/* ── Product card: full card as clickable affordance ────── */
.product-card {
  transition: box-shadow var(--ease), transform var(--ease);
  cursor: pointer;
}

.product-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.10);
  transform: translateY(-2px);
}

.product-card:active {
  transform: translateY(0);
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}

/* ── Size badge: more prominent ──────────────────────────── */
.product-card__size {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: var(--space-1);
}

/* ── Product name: slightly lighter than price ───────────── */
.product-card__name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-3);
  line-height: 1.3;
}

/* ── Price: dominant — the decision element ─────────────── */
.product-card__price {
  font-family: var(--font-display);
  color: var(--text-primary);
  line-height: 1;
}

/* ── Stock label: smaller, secondary ────────────────────── */
.product-card__stock {
  font-size: 0.75rem;
  margin-top: var(--space-1);
}

/* ── Card body: tighter on mobile ───────────────────────── */
@media (max-width: 480px) {
  .product-card__body {
    padding: var(--space-3) var(--space-4) var(--space-4);
  }
}

/* ============================================================
   ANIMATIONS + SMOOTHNESS — GoCart-level polish
   ============================================================ */

/* ── Smooth scroll ──────────────────────────────────────── */
html { scroll-behavior: smooth; }

/* ── Nav: shadow when scrolled ──────────────────────────── */
.nav { transition: box-shadow 0.2s ease; }
.nav--scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.08); }

/* ── Scroll fade-in ─────────────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Button press feel ──────────────────────────────────── */
.btn {
  transition: background var(--ease), color var(--ease),
              border-color var(--ease), box-shadow var(--ease),
              transform 0.1s ease;
}

.btn:active { transform: scale(0.97); }

/* ── Product card — smoother lift ───────────────────────── */
.product-card {
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

/* ── Filter button — snap feel ──────────────────────────── */
.filter-btn {
  transition: background 0.15s ease, color 0.15s ease, 
              border-color 0.15s ease;
}

/* ── Nav links ───────────────────────────────────────────── */
.nav__link {
  transition: color 0.15s ease;
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--green);
  transition: width 0.2s ease;
}

.nav__link:hover::after,
.nav__link[aria-current="page"]::after { width: 100%; }

/* ── Image load fade ─────────────────────────────────────── */

/* ── Staggered card animation ───────────────────────────── */
.products-grid .product-card:nth-child(2).fade-in { transition-delay: 0.05s; }
.products-grid .product-card:nth-child(3).fade-in { transition-delay: 0.10s; }
.products-grid .product-card:nth-child(4).fade-in { transition-delay: 0.15s; }
.products-grid .product-card:nth-child(5).fade-in { transition-delay: 0.20s; }

/* ============================================================
   GOCART-INSPIRED DESIGN ELEMENTS
   ============================================================ */

/* ── Gradient hero headline ──────────────────────────────── */

/* ── Marquee strip ───────────────────────────────────────── */
@keyframes marqueeScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.size-marquee {
  overflow: hidden;
  position: relative;
  padding: var(--space-5) 0;
  background: var(--bg);
}

.size-marquee__track {
  display: flex;
  min-width: 200%;
  gap: var(--space-3);
  animation: marqueeScroll 28s linear infinite;
}

.size-marquee:hover .size-marquee__track {
  animation-play-state: paused;
}

.size-marquee__fade {
  position: absolute;
  top: 0;
  height: 100%;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}

.size-marquee__fade--left {
  left: 0;
  background: linear-gradient(to right, var(--bg) 30%, transparent);
}

.size-marquee__fade--right {
  right: 0;
  background: linear-gradient(to left, var(--bg) 30%, transparent);
}

.size-pill {
  flex-shrink: 0;
  padding: 8px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
  cursor: default;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  font-family: var(--font-body);
}

.size-pill:hover {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}

/* ── Product card image zoom on hover ───────────────────── */
.product-card__img-wrap {
  overflow: hidden;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.product-card:hover .product-card__img {
  transform: scale(1.07);
}

/* ── Trust items: floating icon (GoCart OurSpec style) ───── */
.trust-item {
  position: relative;
}

.trust-item__icon {
  transition: transform 0.2s ease;
}

.trust-item:hover .trust-item__icon {
  transform: scale(1.12) translateY(-2px);
}

/* ── Hero badge animation ───────────────────────────────── */
@keyframes slideIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero__badge {
  animation: slideIn 0.5s ease forwards;
}

.hero__headline {
  animation: slideIn 0.6s ease 0.1s both;
}

.hero__sub {
  animation: slideIn 0.6s ease 0.2s both;
}

.hero__actions {
  animation: slideIn 0.6s ease 0.3s both;
}

/* ── Spec cards: icon floats above card ─────────────────── */
.spec-card {
  position: relative;
  padding-top: calc(var(--space-10) + 10px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-8) var(--space-6) var(--space-6);
  text-align: center;
  margin-top: 24px;
  transition: box-shadow 0.2s ease;
}

.spec-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,0.08); }

.spec-card__icon {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 44px;
  height: 44px;
  background: var(--green);
  color: #fff;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.spec-card:hover .spec-card__icon { transform: translateX(-50%) scale(1.1); }

/* ============================================================
   HERO ANIMATION + FULL MOBILE AUDIT FIXES
   ============================================================ */

/* ── Shimmer on "quality bags." ─────────────────────────── */
@keyframes textShimmer {
  0%   { background-position: -200% center; }
  100% { background-position:  200% center; }
}

/* Override previous em rule */
.hero__headline em {
  font-style: normal;
  background: linear-gradient(
    90deg,
    #4caf76 0%,
    #a8ff78 30%,
    #e8ffe8 50%,
    #a8ff78 70%,
    #4caf76 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: textShimmer 4s linear infinite;
}

/* ── Hero background depth ──────────────────────────────── */
.hero {
  background:
    radial-gradient(ellipse at 80% 50%, rgba(76,175,118,0.15) 0%, transparent 55%),
    radial-gradient(ellipse at 20% 80%, rgba(45,106,79,0.2) 0%, transparent 50%),
    var(--hero-bg, #1a2e22);
}

/* ── Mobile hero — tighter on small screens ─────────────── */
@media (max-width: 480px) {
  .hero__headline {
    font-size: clamp(1.875rem, 9vw, 2.5rem);
  }
  .hero__sub {
    font-size: 0.9375rem;
    margin-bottom: var(--space-6);
  }
  .hero__actions .btn {
    flex: 1;
    min-width: 0;
    text-align: center;
    justify-content: center;
  }
}

/* ── Marquee pills — smaller on mobile ──────────────────── */
@media (max-width: 480px) {
  .size-pill {
    padding: 6px 14px;
    font-size: 0.75rem;
  }
  .size-marquee__track { gap: var(--space-2); }
}

/* ── Product card — mobile card tighter ─────────────────── */
@media (max-width: 480px) {
  .products-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3);
  }
  .product-card__body { padding: var(--space-3); }
  .product-card__name { font-size: 0.875rem; }
  .product-card__price { font-size: 1.125rem !important; }
  .product-card__size  { font-size: 0.6875rem; }
}

/* ── Checkout form — full width inputs on mobile ─────────── */
@media (max-width: 640px) {
  .checkout-grid {
    grid-template-columns: 1fr !important;
  }
  .form-input, .form-select {
    font-size: 16px; /* prevents iOS auto-zoom on focus */
  }
}

/* ── Cart page mobile ────────────────────────────────────── */
@media (max-width: 640px) {
  .cart-item {
    gap: var(--space-3);
  }
  .cart-item__img {
    width: 64px;
    height: 64px;
  }
}

/* ── FAQ accordion mobile ────────────────────────────────── */
@media (max-width: 480px) {
  details summary {
    font-size: 0.9375rem;
  }
  details p {
    font-size: 0.875rem;
  }
}

/* ── Nav mobile — ensure all links present ──────────────── */
.nav__mobile {
  width: 100%;
}

/* ── Focus visible on mobile tap ────────────────────────── */
@media (hover: none) {
  .btn:focus { outline: none; }
  .btn:active { transform: scale(0.97); }
}

/* ============================================================
   MOBILE UX — TOPNOTCH EXPERIENCE
   ============================================================ */

/* ── Sticky Add to Cart bar — product page, mobile only ─── */
.sticky-atc {
  display: none;
}

@media (max-width: 767px) {
  .sticky-atc {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    padding: var(--space-3) var(--space-4);
    padding-bottom: calc(var(--space-3) + env(safe-area-inset-bottom));
    border-top: 1px solid var(--border);
    box-shadow: 0 -4px 24px rgba(0,0,0,0.10);
    z-index: 490;
    transform: translateY(100%);
    transition: transform 0.22s ease;
  }

  .sticky-atc.visible {
    transform: translateY(0);
  }

  .sticky-atc__info {
    flex: 1;
    min-width: 0;
  }

  .sticky-atc__name {
    font-size: 0.8125rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-secondary);
    margin-bottom: 2px;
  }

  .sticky-atc__price {
    font-family: var(--font-display);
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--text-primary);
  }

  /* Shift WhatsApp button up when sticky ATC is visible */
  .sticky-atc.visible ~ * .whatsapp-sticky,
  body.sticky-atc-open .whatsapp-sticky {
    bottom: 90px;
  }
}

/* ── Sticky Checkout bar — cart page, mobile only ──────── */
.sticky-checkout {
  display: none;
}

@media (max-width: 767px) {
  .sticky-checkout {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    padding: var(--space-3) var(--space-4);
    padding-bottom: calc(var(--space-3) + env(safe-area-inset-bottom));
    border-top: 1px solid var(--border);
    box-shadow: 0 -4px 24px rgba(0,0,0,0.10);
    z-index: 490;
  }

  .sticky-checkout__total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: var(--space-2);
    font-size: 0.875rem;
  }

  .sticky-checkout__total strong {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 700;
  }

  /* Add bottom padding so cart content clears sticky bar */
  .cart-page-content { padding-bottom: 140px; }
}

/* ── Qty stepper — minimum 44px tap targets ─────────────── */
.qty-btn {
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: background 0.15s, border-color 0.15s;
  -webkit-tap-highlight-color: transparent;
}

.qty-btn:active { background: var(--green-light); border-color: var(--green); }

.qty-input {
  width: 52px;
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-2);
}

/* ── Form inputs — mobile keyboard optimisation ─────────── */
@media (max-width: 767px) {
  input[type="text"],
  input[type="tel"],
  input[type="email"],
  input[type="number"],
  textarea,
  select {
    font-size: 16px; /* prevents iOS auto-zoom */
  }

  /* Larger tap area on form labels */
  .form-label {
    display: block;
    padding-bottom: var(--space-1);
  }

  /* Submit button — full width and tall on mobile */
  .checkout-submit-btn {
    width: 100%;
    min-height: 52px;
    font-size: 1.0625rem;
  }
}

/* ── Product card — entire card tappable on mobile ──────── */
@media (max-width: 767px) {
  .product-card {
    -webkit-tap-highlight-color: transparent;
  }

  .product-card:active {
    transform: scale(0.98);
    transition: transform 0.1s;
  }
}

/* ── Improved loading skeleton ───────────────────────────── */
@keyframes skeleton-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

.skeleton {
  background: var(--border);
  border-radius: var(--radius-md);
  animation: skeleton-pulse 1.4s ease-in-out infinite;
}

/* ── Toast — bottom on mobile, right on desktop ──────────── */
@media (max-width: 767px) {
  .toast-container {
    bottom: 80px;
    left: var(--space-4);
    right: var(--space-4);
    top: auto;
  }

  .toast {
    width: 100%;
    text-align: center;
  }
}

/* ── Breadcrumb — hide on very small screens ─────────────── */
@media (max-width: 380px) {
  .breadcrumb { display: none; }
}

/* ── Product detail — image full-width on mobile ─────────── */
@media (max-width: 767px) {
  .product-detail {
    display: flex;
    flex-direction: column;
  }

  .product-detail__image-wrap {
    margin: 0 calc(-1 * var(--gutter));
    border-radius: 0;
  }
}

/* ── Safe area for iPhone notch/home bar ─────────────────── */
@media (max-width: 767px) {
  .nav { padding-top: env(safe-area-inset-top); }
}
