/* ============================================================
   CoreHarvests - Storefront styles
   Mobile-first, responsive, no framework dependency (spec 75, 76)
   ============================================================ */

:root {
  --turmeric: #d98a1f;
  --turmeric-dark: #b06f14;
  --turmeric-light: #f7e6c9;
  --chilli: #b23a2e;
  --leaf: #3d6b47;
  --leaf-light: #e8f0e9;
  --ink: #24201b;
  --ink-soft: #5b5349;
  --muted: #8a8177;
  --line: #e6e0d6;
  --paper: #fdfbf7;
  --card: #ffffff;
  --success: #2f7d4f;
  --warning: #b8860b;
  --danger: #b23a2e;
  --info: #2c6e91;

  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(36, 32, 27, .06);
  --shadow: 0 4px 14px rgba(36, 32, 27, .08);
  --shadow-lg: 0 12px 32px rgba(36, 32, 27, .12);

  --font-body: "Segoe UI", Roboto, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-head: Georgia, "Times New Roman", serif;

  --wrap: 1200px;
}

* { 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(--ink);
  background: var(--paper);
}

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

a { color: var(--turmeric-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.25; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.section { padding: 40px 0; }
.section--tight { padding: 24px 0; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.tiny { font-size: .78rem; }
.strong { font-weight: 600; }
.hide { display: none !important; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff;
  padding: 10px 16px; z-index: 999;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ---------------- Header ---------------- */

.topbar {
  background: var(--leaf); color: #fff; font-size: .82rem; text-align: center; padding: 7px 16px;
}
.topbar a { color: #fff; text-decoration: underline; }

.header {
  background: var(--card); border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.header__inner {
  display: flex; align-items: center; gap: 16px;
  padding: 12px 16px; max-width: var(--wrap); margin: 0 auto;
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.logo:hover { text-decoration: none; }
.logo__mark {
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, var(--turmeric), var(--chilli));
  display: grid; place-items: center; color: #fff; font-weight: 700; font-family: var(--font-head);
}
.logo__text { font-family: var(--font-head); font-size: 1.3rem; font-weight: 700; color: var(--ink); line-height: 1; }
.logo__tag { display: block; font-family: var(--font-body); font-size: .62rem; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }

.search { flex: 1; position: relative; max-width: 460px; }
.search input {
  width: 100%; padding: 10px 14px; border: 1px solid var(--line);
  border-radius: 999px; font-size: .92rem; background: var(--paper);
}
.search input:focus { outline: 2px solid var(--turmeric); border-color: var(--turmeric); }
.search__results {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  overflow: hidden; z-index: 60; max-height: 380px; overflow-y: auto;
}
.search__item { display: flex; gap: 10px; padding: 10px 12px; align-items: center; border-bottom: 1px solid var(--line); }
.search__item:last-child { border-bottom: 0; }
.search__item:hover { background: var(--turmeric-light); text-decoration: none; }
.search__item img { width: 40px; height: 40px; object-fit: cover; border-radius: 6px; }

.header__actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.icon-btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px;
  border-radius: var(--radius); color: var(--ink); font-size: .88rem; position: relative;
  background: none; border: 0; cursor: pointer; font-family: inherit;
}
.icon-btn:hover { background: var(--turmeric-light); text-decoration: none; }
.badge-count {
  position: absolute; top: 2px; right: 4px; background: var(--chilli); color: #fff;
  border-radius: 999px; min-width: 18px; height: 18px; font-size: .68rem;
  display: grid; place-items: center; padding: 0 5px; font-weight: 600;
}

.nav { border-top: 1px solid var(--line); background: var(--card); }
.nav__inner {
  display: flex; gap: 4px; max-width: var(--wrap); margin: 0 auto; padding: 0 16px;
  overflow-x: auto; scrollbar-width: none;
}
.nav__inner::-webkit-scrollbar { display: none; }
.nav a {
  padding: 11px 12px; color: var(--ink-soft); font-size: .9rem; white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.nav a:hover, .nav a.is-active { color: var(--turmeric-dark); border-bottom-color: var(--turmeric); text-decoration: none; }

.menu-toggle { display: none; }

/* ---------------- Buttons ---------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: var(--radius); border: 1px solid transparent;
  font-size: .93rem; font-weight: 600; font-family: inherit; cursor: pointer;
  transition: background .15s, box-shadow .15s, transform .05s; text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--turmeric); color: #fff; }
.btn--primary:hover { background: var(--turmeric-dark); color: #fff; }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #3a342c; color: #fff; }
.btn--outline { background: transparent; border-color: var(--line); color: var(--ink); }
.btn--outline:hover { border-color: var(--turmeric); background: var(--turmeric-light); }
.btn--danger { background: var(--danger); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink-soft); padding: 6px 10px; }
.btn--block { width: 100%; }
.btn--sm { padding: 7px 12px; font-size: .82rem; }
.btn--lg { padding: 14px 28px; font-size: 1rem; }
.btn:disabled, .btn[disabled] { opacity: .55; cursor: not-allowed; }

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

.field { margin-bottom: 16px; }
.field label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 6px; color: var(--ink-soft); }
.field .req { color: var(--chilli); }
.input, input[type=text], input[type=email], input[type=password], input[type=tel],
input[type=number], input[type=search], input[type=date], input[type=datetime-local],
select, textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius);
  font-size: .93rem; font-family: inherit; background: #fff; color: var(--ink);
}
textarea { min-height: 110px; resize: vertical; }
.input:focus, input:focus, select:focus, textarea:focus {
  outline: 0; border-color: var(--turmeric); box-shadow: 0 0 0 3px rgba(217, 138, 31, .16);
}
.field--error .input, .field--error input, .field--error textarea, .field--error select { border-color: var(--danger); }
.field__error { color: var(--danger); font-size: .8rem; margin-top: 4px; }
.field__hint { color: var(--muted); font-size: .78rem; margin-top: 4px; }
.checkbox { display: flex; align-items: flex-start; gap: 9px; font-size: .88rem; cursor: pointer; }
.checkbox input { width: auto; margin-top: 3px; flex-shrink: 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 16px; }

/* ---------------- Alerts ---------------- */

.alert {
  padding: 12px 16px; border-radius: var(--radius); margin-bottom: 16px;
  border-left: 4px solid; font-size: .9rem;
}
.alert--success { background: #eaf5ee; border-color: var(--success); color: #1f5c39; }
.alert--error   { background: #fbeceb; border-color: var(--danger);  color: #8c2c22; }
.alert--info    { background: #e9f2f7; border-color: var(--info);    color: #22536c; }
.alert--warning { background: #fdf3e0; border-color: var(--warning); color: #7d5c08; }

/* ---------------- Badges ---------------- */

.badge {
  display: inline-block; padding: 3px 9px; border-radius: 999px;
  font-size: .72rem; font-weight: 600; letter-spacing: .02em;
}
.badge--success { background: #e4f2e9; color: var(--success); }
.badge--danger  { background: #fbeaea; color: var(--danger); }
.badge--warning { background: #fdf1dc; color: var(--warning); }
.badge--info    { background: #e6f0f6; color: var(--info); }
.badge--muted   { background: #efece7; color: var(--muted); }
.badge--sale    { background: var(--chilli); color: #fff; }
.badge--new     { background: var(--leaf); color: #fff; }

/* ---------------- Breadcrumbs ---------------- */

.breadcrumbs { font-size: .82rem; color: var(--muted); padding: 14px 0; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.breadcrumbs li::after { content: "›"; margin-left: 6px; color: var(--line); }
.breadcrumbs li:last-child::after { content: ""; }
.breadcrumbs a { color: var(--muted); }

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

.hero {
  background: linear-gradient(120deg, #fff6e6 0%, var(--turmeric-light) 55%, #f4e3cb 100%);
  border-bottom: 1px solid var(--line);
}
.hero__inner {
  max-width: var(--wrap); margin: 0 auto; padding: 56px 16px;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center;
}
.hero__eyebrow {
  display: inline-block; background: rgba(255,255,255,.75); color: var(--leaf);
  padding: 5px 14px; border-radius: 999px; font-size: .76rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px;
}
.hero h1 { font-size: 2.6rem; margin-bottom: 14px; }
.hero p { font-size: 1.05rem; color: var(--ink-soft); max-width: 46ch; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.hero__points { display: flex; gap: 22px; margin-top: 28px; flex-wrap: wrap; font-size: .84rem; color: var(--ink-soft); }
.hero__art {
  aspect-ratio: 4/3; border-radius: var(--radius-lg); overflow: hidden;
  background: #fff; box-shadow: var(--shadow-lg);
  display: grid; place-items: center;
}
.hero__art img { width: 100%; height: 100%; object-fit: cover; }

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

.trust { background: var(--card); border-bottom: 1px solid var(--line); }
.trust__inner {
  max-width: var(--wrap); margin: 0 auto; padding: 18px 16px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; text-align: center;
}
.trust__item strong { display: block; font-size: .9rem; }
.trust__item span { font-size: .78rem; color: var(--muted); }

/* ---------------- Section headings ---------------- */

.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 16px; margin-bottom: 22px; flex-wrap: wrap;
}
.section-head h2 { margin: 0; }
.section-head p { margin: 4px 0 0; color: var(--muted); font-size: .9rem; }

/* ---------------- Category tiles ---------------- */

.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cat-tile {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; text-align: center; transition: box-shadow .15s, transform .15s;
}
.cat-tile:hover { box-shadow: var(--shadow); transform: translateY(-2px); text-decoration: none; }
.cat-tile__img { aspect-ratio: 4/3; background: var(--turmeric-light); overflow: hidden; }
.cat-tile__img img { width: 100%; height: 100%; object-fit: cover; }
.cat-tile__body { padding: 12px; }
.cat-tile__body strong { display: block; font-size: .95rem; color: var(--ink); }
.cat-tile__body span { font-size: .78rem; color: var(--muted); }

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

.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.product-grid--3 { grid-template-columns: repeat(3, 1fr); }

.product-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; display: flex; flex-direction: column;
  transition: box-shadow .15s, transform .15s; position: relative;
}
.product-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.product-card__media { position: relative; aspect-ratio: 1; background: var(--turmeric-light); overflow: hidden; }
.product-card__media img { width: 100%; height: 100%; object-fit: cover; }
.product-card__flags { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; gap: 5px; }
.product-card__wish {
  position: absolute; top: 10px; right: 10px; background: rgba(255,255,255,.92);
  border: 0; border-radius: 50%; width: 32px; height: 32px; cursor: pointer;
  display: grid; place-items: center; font-size: .95rem;
}
.product-card__body { padding: 13px; display: flex; flex-direction: column; flex: 1; gap: 6px; }
.product-card__cat { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.product-card__title { font-family: var(--font-body); font-size: .95rem; font-weight: 600; margin: 0; line-height: 1.35; }
.product-card__title a { color: var(--ink); }
.product-card__rating { font-size: .8rem; color: var(--turmeric-dark); }
.product-card__price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.price-now { font-size: 1.1rem; font-weight: 700; color: var(--ink); }
.price-was { font-size: .85rem; color: var(--muted); text-decoration: line-through; }
.price-off { font-size: .75rem; font-weight: 700; color: var(--chilli); }
.product-card__foot { padding: 0 13px 13px; }
.stock-out { font-size: .8rem; color: var(--danger); font-weight: 600; }
.stock-low { font-size: .78rem; color: var(--warning); }

/* Horizontal scroll rail on small screens */
.rail { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

/* ---------------- Listing layout ---------------- */

.listing { display: grid; grid-template-columns: 260px 1fr; gap: 28px; align-items: start; }
.filters {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 18px; position: sticky; top: 130px;
}
.filters h3 { font-size: 1rem; margin-bottom: 14px; }
.filter-group { border-top: 1px solid var(--line); padding: 14px 0; }
.filter-group:first-of-type { border-top: 0; padding-top: 0; }
.filter-group h4 { font-family: var(--font-body); font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 9px; }
.filter-group ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.filter-group label { font-size: .88rem; }
.price-inputs { display: flex; gap: 8px; align-items: center; }
.price-inputs input { padding: 8px 10px; }

.listing__toolbar {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  flex-wrap: wrap; margin-bottom: 18px;
}
.listing__toolbar select { width: auto; min-width: 190px; }

.filters-toggle { display: none; }

/* ---------------- Product detail ---------------- */

.pdp { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.gallery__main {
  aspect-ratio: 1; background: var(--turmeric-light); border-radius: var(--radius-lg);
  overflow: hidden; border: 1px solid var(--line);
}
.gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.gallery__thumb {
  width: 68px; height: 68px; border-radius: 8px; overflow: hidden;
  border: 2px solid var(--line); cursor: pointer; padding: 0; background: none;
}
.gallery__thumb.is-active { border-color: var(--turmeric); }
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }

.pdp__price { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 16px 0; }
.pdp__price .price-now { font-size: 1.9rem; }
.pdp__save { font-size: .85rem; color: var(--success); font-weight: 600; }
.pdp__offer-note { font-size: .8rem; color: var(--muted); }

.variants { display: flex; gap: 10px; flex-wrap: wrap; margin: 8px 0 20px; }
.variant {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 9px 14px;
  cursor: pointer; background: #fff; text-align: center; font-size: .88rem; min-width: 86px;
}
.variant.is-active { border-color: var(--turmeric); background: var(--turmeric-light); }
.variant.is-out { opacity: .45; cursor: not-allowed; text-decoration: line-through; }
.variant strong { display: block; font-size: .92rem; }
.variant span { font-size: .78rem; color: var(--muted); }

.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.qty button { width: 38px; height: 42px; border: 0; background: #fff; font-size: 1.1rem; cursor: pointer; color: var(--ink); }
.qty button:hover { background: var(--turmeric-light); }
.qty input { width: 52px; height: 42px; border: 0; border-left: 1px solid var(--line); border-right: 1px solid var(--line); text-align: center; padding: 0; }

.pdp__actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 18px 0; }
.pdp__meta { border-top: 1px solid var(--line); padding-top: 16px; margin-top: 20px; font-size: .87rem; color: var(--ink-soft); }
.pdp__meta dl { display: grid; grid-template-columns: 130px 1fr; gap: 8px 12px; margin: 0; }
.pdp__meta dt { color: var(--muted); }
.pdp__meta dd { margin: 0; }

.tabs { border-bottom: 1px solid var(--line); display: flex; gap: 4px; margin-bottom: 20px; overflow-x: auto; }
.tab {
  padding: 11px 16px; border: 0; background: none; cursor: pointer; font-family: inherit;
  font-size: .92rem; color: var(--ink-soft); border-bottom: 2px solid transparent; white-space: nowrap;
}
.tab.is-active { color: var(--turmeric-dark); border-bottom-color: var(--turmeric); font-weight: 600; }
.tab-panel { display: none; }
.tab-panel.is-active { display: block; }
.prose { max-width: 72ch; }
.prose h3 { margin-top: 1.4em; }
.prose ul { padding-left: 20px; }

/* ---------------- Reviews ---------------- */

.review { border-bottom: 1px solid var(--line); padding: 16px 0; }
.review:last-child { border-bottom: 0; }
.review__head { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 6px; }
.review__stars { color: var(--turmeric); }
.rating-summary { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; margin-bottom: 18px; }
.rating-summary__score { font-size: 2.4rem; font-weight: 700; font-family: var(--font-head); }

/* ---------------- Cart & checkout ---------------- */

.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 28px; align-items: start; }
.cart-item {
  display: grid; grid-template-columns: 92px 1fr auto; gap: 14px;
  padding: 16px 0; border-bottom: 1px solid var(--line); align-items: start;
}
.cart-item__img { width: 92px; height: 92px; border-radius: var(--radius); overflow: hidden; background: var(--turmeric-light); }
.cart-item__img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item__actions { display: flex; gap: 10px; align-items: center; margin-top: 10px; flex-wrap: wrap; }

.panel {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px;
}
.panel--sticky { position: sticky; top: 130px; }
.panel h3 { font-size: 1.05rem; margin-bottom: 14px; }

.totals { font-size: .92rem; }
.totals__row { display: flex; justify-content: space-between; padding: 7px 0; }
.totals__row--discount { color: var(--success); }
.totals__row--total {
  border-top: 1px solid var(--line); margin-top: 8px; padding-top: 12px;
  font-size: 1.15rem; font-weight: 700;
}
.coupon-form { display: flex; gap: 8px; margin: 14px 0; }
.coupon-form input { flex: 1; text-transform: uppercase; }
.coupon-applied {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--leaf-light); border-radius: var(--radius); padding: 9px 12px;
  font-size: .86rem; margin: 12px 0;
}
.ship-progress { background: var(--turmeric-light); border-radius: var(--radius); padding: 10px 12px; font-size: .83rem; margin-bottom: 14px; }
.ship-progress__bar { height: 5px; background: #fff; border-radius: 99px; margin-top: 7px; overflow: hidden; }
.ship-progress__fill { height: 100%; background: var(--turmeric); }

.pay-methods { display: flex; flex-direction: column; gap: 10px; }
.pay-method {
  display: flex; gap: 11px; align-items: flex-start; padding: 14px;
  border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer;
}
.pay-method.is-active { border-color: var(--turmeric); background: var(--turmeric-light); }
.pay-method input { width: auto; margin-top: 3px; }

.address-card {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 14px;
  font-size: .88rem; position: relative;
}
.address-card.is-default { border-color: var(--turmeric); }
.address-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }

/* ---------------- Order timeline ---------------- */

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: flex; gap: 14px; padding-bottom: 20px; position: relative; }
.timeline li::before {
  content: ""; position: absolute; left: 11px; top: 26px; bottom: 0;
  width: 2px; background: var(--line);
}
.timeline li:last-child::before { display: none; }
.timeline__dot {
  width: 24px; height: 24px; border-radius: 50%; background: #fff;
  border: 2px solid var(--line); flex-shrink: 0; display: grid; place-items: center;
  font-size: .7rem; color: transparent; z-index: 1;
}
.timeline li.is-done .timeline__dot { background: var(--success); border-color: var(--success); color: #fff; }
.timeline li.is-negative .timeline__dot { background: var(--danger); border-color: var(--danger); color: #fff; }
.timeline__label { font-weight: 600; font-size: .92rem; }
.timeline__time { font-size: .8rem; color: var(--muted); }

.tracking-list { list-style: none; margin: 0; padding: 0; font-size: .87rem; }
.tracking-list li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.tracking-list li:last-child { border-bottom: 0; }

/* ---------------- Tables ---------------- */

.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: .9rem; background: var(--card); }
table.data th, table.data td { padding: 11px 12px; text-align: left; border-bottom: 1px solid var(--line); }
table.data th { background: var(--paper); font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 700; }
table.data tbody tr:hover { background: #fffdf8; }

/* ---------------- Pagination ---------------- */

.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 32px; flex-wrap: wrap; }
.pagination a, .pagination span {
  padding: 8px 13px; border: 1px solid var(--line); border-radius: var(--radius);
  font-size: .88rem; color: var(--ink-soft); background: #fff;
}
.pagination .is-current { background: var(--turmeric); border-color: var(--turmeric); color: #fff; font-weight: 600; }
.pagination .is-gap { border: 0; background: none; }

/* ---------------- Empty state ---------------- */

.empty { text-align: center; padding: 56px 20px; }
.empty__icon { font-size: 2.6rem; margin-bottom: 10px; }

/* ---------------- Newsletter ---------------- */

.newsletter { background: var(--leaf); color: #fff; }
.newsletter__inner {
  max-width: 720px; margin: 0 auto; padding: 44px 16px; text-align: center;
}
.newsletter h2 { color: #fff; }
.newsletter p { color: rgba(255,255,255,.85); }
.newsletter form { display: flex; gap: 10px; max-width: 440px; margin: 18px auto 0; }
.newsletter input { flex: 1; border: 0; }

/* ---------------- Blog ---------------- */

.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.post-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column;
}
.post-card__img { aspect-ratio: 16/9; background: var(--turmeric-light); overflow: hidden; }
.post-card__img img { width: 100%; height: 100%; object-fit: cover; }
.post-card__body { padding: 15px; flex: 1; display: flex; flex-direction: column; gap: 7px; }
.post-card h3 { font-size: 1.05rem; margin: 0; }
.article { max-width: 760px; margin: 0 auto; }
.article__meta { color: var(--muted); font-size: .85rem; margin-bottom: 18px; }
.article__hero { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 26px; }
.article__body { font-size: 1.03rem; line-height: 1.75; }
.article__body h2, .article__body h3 { margin-top: 1.6em; }

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

.footer { background: var(--ink); color: rgba(255,255,255,.72); margin-top: 56px; }
.footer__inner {
  max-width: var(--wrap); margin: 0 auto; padding: 44px 16px 24px;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px;
}
.footer h4 { color: #fff; font-family: var(--font-body); font-size: .82rem; text-transform: uppercase; letter-spacing: .07em; margin-bottom: 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.footer a { color: rgba(255,255,255,.72); font-size: .88rem; }
.footer a:hover { color: #fff; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.12); padding: 16px;
  text-align: center; font-size: .82rem;
}
.footer__brand p { font-size: .88rem; max-width: 34ch; }

/* ---------------- Responsive (spec 75) ---------------- */

@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; gap: 28px; }
  .hero h1 { font-size: 2.1rem; }
  .product-grid, .cat-grid, .rail { grid-template-columns: repeat(3, 1fr); }
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .listing { grid-template-columns: 1fr; }
  .filters { position: static; display: none; }
  .filters.is-open { display: block; }
  .filters-toggle { display: inline-flex; }
  .pdp { grid-template-columns: 1fr; gap: 26px; }
  .cart-layout { grid-template-columns: 1fr; }
  .panel--sticky { position: static; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  h1 { font-size: 1.65rem; }
  .hero__inner { padding: 36px 16px; }
  .hero h1 { font-size: 1.8rem; }
  .header__inner { flex-wrap: wrap; gap: 10px; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .trust__inner { grid-template-columns: 1fr 1fr; }
  .product-grid, .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .rail {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
    gap: 14px; padding-bottom: 8px; margin: 0 -16px; padding-left: 16px; padding-right: 16px;
  }
  .rail > * { flex: 0 0 62%; scroll-snap-align: start; }
  .post-grid { grid-template-columns: 1fr; }
  .grid-2, .grid-3, .address-grid { grid-template-columns: 1fr; }
  .cart-item { grid-template-columns: 72px 1fr; }
  .cart-item__img { width: 72px; height: 72px; }
  .cart-item > :last-child { grid-column: 1 / -1; }
  .footer__inner { grid-template-columns: 1fr; gap: 24px; }
  .newsletter form { flex-direction: column; }
  .icon-btn span.label { display: none; }
}

@media (max-width: 420px) {
  .product-grid { grid-template-columns: 1fr; }
  .pdp__actions { flex-direction: column; align-items: stretch; }
}

/* ---------------- Print (invoices) ---------------- */

@media print {
  .header, .footer, .nav, .topbar, .no-print { display: none !important; }
  body { background: #fff; }
}
