/* Sree Vaaraahi Farms website. Brand palette matches the app (src/constants/theme.ts). */

:root {
  --forest: #0e2f24;
  --green: #1b5e3f;
  --green-700: #154a31;
  --green-50: #e6f0ea;
  --gold: #f2d43a;
  --gold-700: #a8860b;
  --gold-50: #fff7d6;
  --cream: #f7f5ee;
  --surface: #ffffff;
  --border: #e5e1d4;
  --text: #1a1f1b;
  --muted: #5e685f;
  --faint: #8c948c;
  --danger: #b3261e;
  --danger-50: #fbebeb;

  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgb(14 47 36 / 0.06), 0 1px 3px rgb(14 47 36 / 0.08);
  --shadow: 0 6px 24px -8px rgb(14 47 36 / 0.18);
  --header-h: 64px;
  --gutter: 16px;
  --max: 1200px;
}

@media (min-width: 768px) {
  :root {
    --gutter: 24px;
    --header-h: 72px;
  }
}

/* ---------- Base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: var(--green);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--green-700);
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.5em;
  line-height: 1.15;
  color: var(--forest);
}

h1,
h2 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2rem, 6vw, 3.5rem);
}

h2 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
}

h3 {
  font-size: 1.15rem;
  font-weight: 700;
}

p {
  margin: 0 0 1em;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-radius: 4px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 8px;
  top: -48px;
  z-index: 100;
  padding: 8px 14px;
  background: var(--forest);
  color: #fff;
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  top: 8px;
}

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

.muted {
  color: var(--muted);
}

/* ---------- Buttons, chips, badges ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 20px;
  border: 2px solid transparent;
  border-radius: 999px;
  font: 700 0.95rem/1 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition:
    background 0.15s,
    color 0.15s,
    border-color 0.15s,
    transform 0.1s;
  white-space: nowrap;
}

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

.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
}

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

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

.btn-gold {
  background: var(--gold);
  color: var(--forest);
}

.btn-gold:hover {
  background: #e9c827;
  color: var(--forest);
}

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

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

.btn-light {
  border-color: rgb(255 255 255 / 0.5);
  color: #fff;
  background: transparent;
}

.btn-light:hover {
  background: rgb(255 255 255 / 0.1);
  color: #fff;
}

.btn-whatsapp {
  background: #1f8f4e;
  color: #fff;
}

.btn-whatsapp:hover {
  background: #187341;
  color: #fff;
}

.btn-lg {
  min-height: 52px;
  padding: 14px 28px;
  font-size: 1.02rem;
}

.btn-block {
  width: 100%;
}

.btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font: 600 0.9rem/1.2 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.chip:hover {
  border-color: var(--green);
  color: var(--green);
}

.chip[aria-pressed='true'],
.chip[aria-current='page'] {
  background: var(--forest);
  border-color: var(--forest);
  color: #fff;
}

.badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.4;
}

.badge-gold {
  background: var(--gold-50);
  color: var(--gold-700);
}

.badge-danger {
  background: var(--danger-50);
  color: var(--danger);
}

.eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-700);
}

/* ---------- Announcement bar & header ---------- */

.topbar {
  background: var(--forest);
  color: var(--gold-50);
  font-size: 0.82rem;
  font-weight: 600;
  text-align: center;
  padding: 7px var(--gutter);
}

.topbar strong {
  color: var(--gold);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(255 255 255 / 0.96);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--forest);
  margin-right: auto;
  min-width: 0;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  flex: none;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.12rem;
  line-height: 1.1;
  white-space: nowrap;
}

.brand-name small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.main-nav {
  display: none;
}

.main-nav a {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
}

.main-nav a:hover {
  background: var(--green-50);
  color: var(--green);
}

.main-nav a[aria-current='page'] {
  color: var(--green);
  background: var(--green-50);
}

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

.icon-btn {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--forest);
  cursor: pointer;
  text-decoration: none;
}

.icon-btn:hover {
  background: var(--green-50);
  color: var(--green);
}

.icon-btn svg {
  width: 24px;
  height: 24px;
}

.cart-count {
  position: absolute;
  top: 3px;
  right: 1px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--forest);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 20px;
  text-align: center;
}

.cart-count[hidden] {
  display: none;
}

@media (min-width: 960px) {
  .main-nav {
    display: flex;
    gap: 2px;
  }

  .menu-toggle {
    display: none;
  }
}

.topbar .long {
  display: none;
}

@media (min-width: 640px) {
  .topbar .long {
    display: inline;
  }

  .topbar .short {
    display: none;
  }
}

@media (max-width: 420px) {
  .header-search {
    display: none;
  }

  .brand-name {
    font-size: 1.02rem;
  }
}

@media (max-width: 360px) {
  .brand-name small {
    display: none;
  }
}

/* Mobile menu */

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
}

.mobile-nav.open {
  display: block;
}

.mobile-nav-backdrop {
  position: absolute;
  inset: 0;
  background: rgb(14 47 36 / 0.45);
}

.mobile-nav-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(86vw, 340px);
  padding: 16px;
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-nav-panel .icon-btn {
  align-self: flex-end;
}

.mobile-nav-panel a {
  padding: 14px 12px;
  border-radius: var(--radius-sm);
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid var(--border);
}

.mobile-nav-panel a[aria-current='page'] {
  color: var(--green);
}

.mobile-nav-panel .btn {
  margin-top: 16px;
  border-bottom: 0;
}

/* ---------- Sections ---------- */

.section {
  padding-block: 48px;
}

@media (min-width: 768px) {
  .section {
    padding-block: 72px;
  }
}

.section-white {
  background: var(--surface);
}

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

.section-head h2 {
  margin: 0;
}

.section-head p {
  margin: 6px 0 0;
  color: var(--muted);
  max-width: 60ch;
}

.section-head .link {
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 100% 0%, rgb(27 94 63 / 0.9) 0%, transparent 60%),
    var(--forest);
  color: var(--gold-50);
}

.hero-inner {
  display: grid;
  gap: 32px;
  padding-block: 40px 48px;
  align-items: center;
}

.hero h1 {
  color: #fff;
  margin-bottom: 16px;
}

.hero h1 em {
  font-style: normal;
  color: var(--gold);
}

.hero-lead {
  font-size: 1.08rem;
  max-width: 34rem;
  color: rgb(255 247 214 / 0.92);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0 28px;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  padding: 0;
  margin: 0;
  list-style: none;
  font-size: 0.92rem;
  font-weight: 600;
}

.hero-facts li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-facts svg {
  width: 20px;
  height: 20px;
  color: var(--gold);
  flex: none;
}

.hero-art {
  position: relative;
  width: min(100%, 460px);
  aspect-ratio: 1;
  margin: 0 auto;
}

.hero-art img {
  position: absolute;
  border-radius: 50%;
  box-shadow: 0 18px 40px -12px rgb(0 0 0 / 0.55);
  border: 4px solid rgb(242 212 58 / 0.85);
}

.hero-art .a1 {
  width: 54%;
  left: 23%;
  top: 22%;
  z-index: 3;
}

.hero-art .a2 {
  width: 34%;
  left: 0;
  top: 6%;
  z-index: 2;
}

.hero-art .a3 {
  width: 32%;
  right: 0;
  top: 0;
  z-index: 2;
}

.hero-art .a4 {
  width: 30%;
  left: 4%;
  bottom: 4%;
  z-index: 2;
}

.hero-art .a5 {
  width: 34%;
  right: 2%;
  bottom: 2%;
  z-index: 4;
}

@media (min-width: 900px) {
  .hero-inner {
    grid-template-columns: 1.1fr 0.9fr;
    padding-block: 72px 80px;
  }
}

/* ---------- Trust strip ---------- */

.trust {
  background: var(--gold-50);
  border-bottom: 1px solid #f1e6b8;
}

.trust ul {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 16px;
  margin: 0;
  padding-block: 18px;
  list-style: none;
}

.trust li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--forest);
  line-height: 1.3;
}

.trust li span {
  display: block;
  font-weight: 500;
  color: var(--muted);
}

.trust svg {
  width: 28px;
  height: 28px;
  flex: none;
  color: var(--green);
}

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

/* ---------- Categories ---------- */

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

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

@media (min-width: 1000px) {
  .cat-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

.cat-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--forest);
  transition:
    transform 0.15s,
    box-shadow 0.15s;
}

.cat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  color: var(--forest);
}

.cat-card .thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--green-50);
  display: grid;
  place-items: center;
  font-size: 3rem;
}

.cat-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cat-card strong {
  padding: 10px 12px 12px;
  font-size: 0.95rem;
  line-height: 1.25;
}

/* ---------- Product cards ---------- */

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

@media (min-width: 640px) {
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }
}

@media (min-width: 1000px) {
  .product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  .product-grid.wide {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(160px, 46%);
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
  scrollbar-width: thin;
}

.rail > * {
  scroll-snap-align: start;
}

@media (min-width: 640px) {
  .rail {
    grid-auto-columns: minmax(200px, 30%);
  }
}

@media (min-width: 1000px) {
  .rail {
    grid-auto-columns: minmax(210px, 23%);
  }
}

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.product-card .thumb {
  position: relative;
  display: block;
  aspect-ratio: 1;
  background: var(--green-50);
}

.product-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card .thumb .emoji {
  display: grid;
  place-items: center;
  height: 100%;
  font-size: 3.4rem;
}

.product-card .tag {
  position: absolute;
  left: 8px;
  top: 8px;
}

.product-card .body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 2px;
  padding: 10px 12px 12px;
}

.product-card .name {
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.3;
  color: var(--text);
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6em;
}

.product-card .name:hover {
  color: var(--green);
}

.product-card .pack {
  font-size: 0.82rem;
  color: var(--muted);
  min-height: 1.3em;
}

.product-card .buy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 8px;
}

.price {
  font-weight: 800;
  font-size: 1.02rem;
  color: var(--forest);
}

.price s {
  margin-left: 4px;
  font-weight: 500;
  font-size: 0.82rem;
  color: var(--faint);
}

.product-card.sold-out .thumb img,
.product-card.sold-out .thumb .emoji {
  filter: grayscale(1);
  opacity: 0.55;
}

.add-btn {
  min-width: 76px;
  height: 38px;
  padding: 0 14px;
  border: 1.5px solid var(--green);
  border-radius: 999px;
  background: var(--green-50);
  color: var(--green);
  font: 800 0.88rem/1 var(--font-body);
  cursor: pointer;
}

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

.add-btn[disabled] {
  border-color: var(--border);
  background: #f2f1ec;
  color: var(--faint);
  cursor: not-allowed;
}

.stepper {
  display: inline-flex;
  align-items: center;
  height: 38px;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  overflow: hidden;
}

.stepper button {
  width: 34px;
  height: 100%;
  border: 0;
  background: transparent;
  color: #fff;
  font: 800 1.15rem/1 var(--font-body);
  cursor: pointer;
}

.stepper button:hover {
  background: var(--green-700);
}

.stepper button[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
}

.stepper output {
  min-width: 22px;
  text-align: center;
  font-weight: 800;
  font-size: 0.95rem;
}

.stepper.lg {
  height: 48px;
}

.stepper.lg button {
  width: 46px;
}

/* Loading placeholders */

.skeleton {
  background: linear-gradient(90deg, #ece9df 25%, #f5f3ec 50%, #ece9df 75%);
  background-size: 200% 100%;
  animation: shimmer 1.2s infinite;
  border-radius: var(--radius);
}

.skeleton-card {
  aspect-ratio: 0.72;
}

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

@media (prefers-reduced-motion: reduce) {
  .skeleton {
    animation: none;
  }

  html {
    scroll-behavior: auto;
  }
}

/* ---------- Steps, features, mission ---------- */

.steps {
  display: grid;
  gap: 16px;
  counter-reset: step;
  padding: 0;
  margin: 0;
  list-style: none;
}

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

.step {
  position: relative;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
}

.step::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--forest);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
}

.step p {
  margin: 0;
  color: var(--muted);
}

.features {
  display: grid;
  gap: 16px;
}

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

.feature {
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--green-50);
}

.feature svg {
  width: 36px;
  height: 36px;
  color: var(--green);
  margin-bottom: 12px;
}

.feature p {
  margin: 0;
  color: var(--muted);
}

.mission {
  display: grid;
  gap: 28px;
  align-items: center;
  padding: 32px 24px;
  border-radius: var(--radius-lg);
  background: var(--forest);
  color: var(--gold-50);
}

.mission h2 {
  color: #fff;
}

.mission img {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: 4px solid var(--gold);
  margin: 0 auto;
}

.mission .btn {
  margin-top: 8px;
}

@media (min-width: 800px) {
  .mission {
    grid-template-columns: 220px 1fr;
    padding: 48px;
  }

  .mission img {
    width: 200px;
    height: 200px;
  }
}

/* ---------- FAQ ---------- */

.faq {
  max-width: 820px;
}

.faq details {
  border-bottom: 1px solid var(--border);
}

.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-block: 18px;
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--forest);
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '+';
  flex: none;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--green-50);
  color: var(--green);
  font-size: 1.3rem;
  font-weight: 600;
}

.faq details[open] summary::after {
  content: '–';
}

.faq details > div {
  padding-block: 0 18px;
  color: var(--muted);
}

.faq details > div p:last-child {
  margin-bottom: 0;
}

/* ---------- CTA band & app teaser ---------- */

.cta-band {
  display: grid;
  gap: 16px;
  align-items: center;
  padding: 28px 24px;
  border-radius: var(--radius-lg);
  background: var(--gold);
  color: var(--forest);
}

.cta-band h2 {
  margin: 0 0 6px;
}

.cta-band p {
  margin: 0;
}

.cta-band .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

@media (min-width: 800px) {
  .cta-band {
    grid-template-columns: 1fr auto;
    padding: 40px 48px;
  }
}

/* ---------- Page header (inner pages) ---------- */

.page-head {
  padding-block: 36px 28px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.page-head h1 {
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  margin-bottom: 8px;
}

.page-head p {
  margin: 0;
  color: var(--muted);
  max-width: 62ch;
}

.breadcrumbs {
  margin-bottom: 10px;
  font-size: 0.85rem;
  color: var(--muted);
}

.breadcrumbs a {
  color: var(--muted);
}

/* ---------- Shop ---------- */

.shop-tools {
  position: sticky;
  top: var(--header-h);
  z-index: 20;
  background: var(--cream);
  padding-block: 12px;
  border-bottom: 1px solid var(--border);
}

.search {
  position: relative;
}

.search svg {
  position: absolute;
  left: 14px;
  top: 50%;
  width: 20px;
  height: 20px;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}

.search input {
  width: 100%;
  height: 48px;
  padding: 0 16px 0 44px;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  font: 500 1rem var(--font-body);
  color: var(--text);
}

.search input:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px var(--green-50);
}

.chip-row {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}

.chip-row::-webkit-scrollbar {
  display: none;
}

.results-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 18px 0 14px;
  font-size: 0.9rem;
  color: var(--muted);
}

.toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
}

.toggle input {
  width: 18px;
  height: 18px;
  accent-color: var(--green);
}

.empty {
  padding: 48px 16px;
  text-align: center;
  color: var(--muted);
}

.empty .big {
  font-size: 2.6rem;
}

.empty h2,
.empty h3 {
  color: var(--forest);
}

/* ---------- Product page ---------- */

.pdp {
  display: grid;
  gap: 24px;
  padding-block: 24px 48px;
}

@media (min-width: 860px) {
  .pdp {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    padding-top: 36px;
  }
}

.pdp-media {
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--green-50);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  font-size: 6rem;
}

.pdp-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pdp-info h1 {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  margin-bottom: 4px;
}

.pdp-price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 12px 0 4px;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--forest);
}

.variant-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}

.pdp-buy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 20px 0 8px;
}

.info-list {
  display: grid;
  gap: 12px;
  margin: 24px 0;
  padding: 18px;
  list-style: none;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
}

.info-list li {
  display: flex;
  gap: 12px;
  font-size: 0.93rem;
}

.info-list svg {
  width: 22px;
  height: 22px;
  flex: none;
  color: var(--green);
}

/* ---------- Cart ---------- */

.cart-layout {
  display: grid;
  gap: 20px;
  padding-block: 24px 48px;
  align-items: start;
}

@media (min-width: 900px) {
  .cart-layout {
    grid-template-columns: 1fr 380px;
    gap: 32px;
  }
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
}

.cart-lines {
  display: grid;
  gap: 4px;
  padding: 8px 18px;
}

.cart-line {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 12px;
  align-items: center;
  padding-block: 12px;
  border-bottom: 1px solid var(--border);
}

.cart-line:last-child {
  border-bottom: 0;
}

.cart-line .thumb {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--green-50);
  display: grid;
  place-items: center;
  font-size: 1.8rem;
}

.cart-line .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-line .name {
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
  text-decoration: none;
}

.cart-line .meta {
  font-size: 0.85rem;
  color: var(--muted);
}

.cart-line .side {
  display: grid;
  justify-items: end;
  gap: 6px;
}

.cart-line .warn {
  color: var(--danger);
  font-size: 0.82rem;
  font-weight: 700;
}

.summary {
  position: sticky;
  top: calc(var(--header-h) + 16px);
}

.summary h2 {
  font-size: 1.3rem;
}

.bill {
  display: grid;
  gap: 10px;
  margin: 16px 0;
  font-size: 0.95rem;
}

.bill div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.bill .total {
  padding-top: 12px;
  border-top: 1px dashed var(--border);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--forest);
}

.free-delivery {
  padding: 14px;
  border-radius: var(--radius);
  background: var(--gold-50);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--forest);
}

.progress {
  height: 8px;
  margin-top: 10px;
  border-radius: 999px;
  background: #f1e6b8;
  overflow: hidden;
}

.progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--green);
  transition: width 0.3s;
}

.note {
  font-size: 0.84rem;
  color: var(--muted);
}

/* Floating cart bar (phones) */

.cart-bar {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius);
  background: var(--green);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 10px 30px -8px rgb(14 47 36 / 0.6);
  transform: translateY(140%);
  transition: transform 0.25s;
}

.cart-bar.show {
  transform: none;
}

.cart-bar:hover {
  color: #fff;
  background: var(--green-700);
}

.cart-bar small {
  display: block;
  font-size: 0.78rem;
  opacity: 0.85;
}

.cart-bar strong {
  font-size: 1rem;
}

.cart-bar .go {
  font-weight: 800;
}

body.has-cart-bar {
  padding-bottom: 84px;
}

@media (min-width: 960px) {
  .cart-bar {
    left: auto;
    right: 24px;
    bottom: 24px;
    width: 340px;
  }

  body.has-cart-bar {
    padding-bottom: 0;
  }
}

/* ---------- Prose (policies, articles) ---------- */

.prose {
  max-width: 74ch;
  padding-block: 32px 56px;
}

.prose h2 {
  font-size: 1.5rem;
  margin-top: 1.6em;
}

.prose h3 {
  margin-top: 1.6em;
  font-size: 1.2rem;
}

.prose ul,
.prose ol {
  padding-left: 1.3em;
}

.prose li {
  margin-bottom: 0.4em;
}

.prose table {
  width: 100%;
  margin: 1em 0 1.5em;
  border-collapse: collapse;
  font-size: 0.93rem;
  background: var(--surface);
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: block;
  overflow-x: auto;
}

.prose th,
.prose td {
  padding: 10px 12px;
  border: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.prose th {
  background: var(--green-50);
  color: var(--forest);
}

.prose .effective {
  color: var(--muted);
  font-style: italic;
}

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  gap: 16px;
  padding-block: 32px 56px;
}

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

.contact-card h2 {
  font-size: 1.2rem;
  font-family: var(--font-body);
}

.contact-card svg {
  width: 30px;
  height: 30px;
  color: var(--green);
  margin-bottom: 8px;
}

/* ---------- Team ---------- */

.team {
  display: grid;
  gap: 20px;
  padding-block: 32px 56px;
}

@media (min-width: 800px) {
  .team {
    grid-template-columns: repeat(2, 1fr);
  }
}

.member h2 {
  font-size: 1.4rem;
  margin-bottom: 2px;
}

.member .role {
  color: var(--gold-700);
  font-weight: 700;
  margin-bottom: 12px;
}

.member p {
  color: var(--muted);
}

/* ---------- Footer ---------- */

.site-footer {
  margin-top: 0;
  background: var(--forest);
  color: rgb(255 247 214 / 0.85);
  font-size: 0.93rem;
}

.footer-grid {
  display: grid;
  gap: 32px;
  padding-block: 48px 32px;
}

@media (min-width: 800px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  }
}

.site-footer h2 {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.site-footer a {
  color: rgb(255 247 214 / 0.85);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--gold);
  text-decoration: underline;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.footer-brand img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid var(--gold);
}

.footer-brand strong {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: #fff;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 18px 24px;
  border-top: 1px solid rgb(255 247 214 / 0.15);
  font-size: 0.82rem;
  color: rgb(255 247 214 / 0.65);
}

/* ---------- Toast ---------- */

.toast-region {
  position: fixed;
  left: 50%;
  bottom: 96px;
  z-index: 80;
  transform: translateX(-50%);
  display: grid;
  gap: 8px;
  width: min(92vw, 380px);
  pointer-events: none;
}

.toast {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: var(--forest);
  color: #fff;
  font-weight: 600;
  font-size: 0.92rem;
  box-shadow: var(--shadow);
  animation: toast-in 0.2s ease-out;
}

.toast.error {
  background: var(--danger);
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

/* ---------- Forms ---------- */

.field {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
}

.field label {
  font-weight: 700;
  font-size: 0.9rem;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font: 500 1rem var(--font-body);
  color: var(--text);
}

.field textarea {
  min-height: 90px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px var(--green-50);
}

.field .hint {
  font-size: 0.82rem;
  color: var(--muted);
}

.field .error {
  font-size: 0.82rem;
  color: var(--danger);
  font-weight: 600;
}

.day-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.day-option {
  position: relative;
}

.day-option input {
  position: absolute;
  opacity: 0;
}

.day-option span {
  display: block;
  padding: 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-weight: 700;
  text-align: center;
  cursor: pointer;
}

.day-option input:checked + span {
  border-color: var(--green);
  background: var(--green-50);
  color: var(--green);
}

.day-option input:focus-visible + span {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

/* ---------- Knowledge hub ---------- */

.article-grid {
  display: grid;
  gap: 16px;
  padding-block: 32px 56px;
}

@media (min-width: 700px) {
  .article-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.article-card .thumb {
  aspect-ratio: 16 / 10;
}

.article-card img {
  object-position: top;
}

.article-card .article-body {
  display: grid;
  gap: 6px;
  padding: 14px 16px 18px;
}

.article-card strong {
  padding: 0;
  font-size: 1.05rem;
}

.article-card .muted {
  font-size: 0.9rem;
  font-weight: 500;
}

/* ---------- Team cards ---------- */

.member {
  display: grid;
  gap: 16px;
  align-content: start;
}

.member img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--gold);
}

@media (min-width: 560px) {
  .member {
    grid-template-columns: 120px 1fr;
  }
}

/* ---------- Tables outside articles ---------- */

.simple-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 0.95rem;
}

.simple-table th,
.simple-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.simple-table th {
  background: var(--green-50);
  color: var(--forest);
}

/* ---------- Payment page (/pay/) ---------- */

.pay-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px var(--gutter);
}

.pay-card {
  width: min(100%, 420px);
  padding: 28px 24px;
  text-align: center;
}

.pay-card h1 {
  font-size: 1.5rem;
  margin: 0 0 8px;
}

.pay-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 22px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--forest);
}

.pay-brand img {
  border-radius: 50%;
  border: 2px solid var(--gold);
}

.pay-amount {
  font-size: 2rem;
  font-weight: 800;
  color: var(--forest);
  margin: 4px 0 20px;
}

.pay-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--gold-50);
  font-size: 1.8rem;
}

.pay-icon.ok {
  background: var(--green);
  color: #fff;
  font-weight: 800;
}

.pay-icon.bad {
  background: var(--danger-50);
  color: var(--danger);
  font-weight: 800;
}

.pay-secure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 20px 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.pay-secure svg {
  width: 16px;
  height: 16px;
}

/* ---------- Checkout form ---------- */

.form-grid {
  display: grid;
  gap: 0 14px;
}

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

.field input[readonly] {
  background: #f2f1ec;
  color: var(--muted);
}

.error-box {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--danger-50);
  color: var(--danger);
  font-weight: 600;
  font-size: 0.92rem;
}

.error-box a {
  color: var(--danger);
}
