/* ==========================================================================
   Buyvora — Modern Agri-Premium design system
   Palette: #14361F forest · #F7F3EA cream · #C9A227 gold
   ========================================================================== */

:root {
  /* Brand */
  --forest-900: #0B1F12;
  --forest-800: #14361F;
  --forest-700: #1B4A2B;
  --forest-600: #256239;
  --forest-500: #2F7C48;
  --forest-300: #7FB392;
  --forest-100: #DCEBE1;
  --forest-50:  #F0F7F2;

  --gold-600: #A8871B;
  --gold-500: #C9A227;
  --gold-300: #E5CE7E;
  --gold-100: #F7EFD3;

  --cream:    #F7F3EA;
  --cream-2:  #FDFBF6;
  --sand:     #EDE5D6;

  --ink:      #17211A;
  --ink-2:    #3E4B42;
  --muted:    #6B7A70;
  --line:     #E2DED2;
  --line-2:   #EFEBE1;

  --white:    #FFFFFF;
  --danger:   #B3261E;
  --success:  #1B7A46;
  --warning:  #B26A00;

  /* Type */
  --font-display: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Space & shape */
  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 22px;
  --radius-xl: 30px;

  --shadow-xs: 0 1px 2px rgba(11, 31, 18, .06);
  --shadow-sm: 0 2px 8px rgba(11, 31, 18, .06);
  --shadow:    0 10px 30px rgba(11, 31, 18, .08);
  --shadow-lg: 0 24px 60px rgba(11, 31, 18, .12);

  --container: 1240px;
  --header-h: 76px;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Reset ---------- */
*, *::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(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.18; font-weight: 700; letter-spacing: -.02em; }
h1, h2 { font-family: var(--font-display); font-weight: 700; }
p { margin: 0 0 1em; }
hr { border: none; border-top: 1px solid var(--line); margin: 28px 0; }
table { border-collapse: collapse; width: 100%; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.site-shell { display: flex; flex-direction: column; min-height: 100vh; }
main { flex: 1; }
.section { padding: 72px 0; }
.section-sm { padding: 44px 0; }
.section-tint { background: var(--cream-2); }
.section-dark { background: var(--forest-800); color: var(--cream); }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark p { color: rgba(247,243,234,.78); }

.section-head { max-width: 720px; margin: 0 0 40px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.85rem, 3.4vw, 2.7rem); margin-bottom: .35em; }
.section-head p { color: var(--muted); font-size: 1.03rem; margin: 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold-600); margin-bottom: 14px;
}
.eyebrow::before { content: ''; width: 22px; height: 2px; background: var(--gold-500); border-radius: 2px; }
.section-dark .eyebrow { color: var(--gold-300); }
.section-dark .eyebrow::before { background: var(--gold-300); }
.section-head.center .eyebrow::before { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 26px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: .95rem; letter-spacing: .01em;
  cursor: pointer; transition: all .22s var(--ease); text-align: center;
  white-space: nowrap;
}
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--forest-800); color: var(--cream); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--forest-700); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-gold { background: var(--gold-500); color: var(--forest-900); box-shadow: var(--shadow-sm); }
.btn-gold:hover { background: var(--gold-300); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-soft { background: var(--white); color: var(--forest-800); border-color: var(--line); }
.btn-soft:hover { border-color: var(--forest-300); background: var(--forest-50); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--forest-800); border-color: rgba(20,54,31,.22); }
.btn-ghost:hover { background: rgba(20,54,31,.06); }
.btn-outline-light { background: transparent; color: var(--cream); border-color: rgba(247,243,234,.4); }
.btn-outline-light:hover { background: rgba(247,243,234,.12); }
.btn-sm { padding: 9px 18px; font-size: .86rem; }
.btn-block { width: 100%; }
.btn.added { background: var(--success) !important; color: #fff !important; }

.linkish { color: var(--forest-600); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.linkish:hover { color: var(--gold-600); }

/* ---------- Topbar / Header ---------- */
.announce {
  background: var(--forest-900); color: rgba(247,243,234,.9);
  font-size: .8rem; letter-spacing: .02em;
}
.announce .container {
  display: flex; align-items: center; justify-content: center; gap: 26px;
  min-height: 38px; flex-wrap: wrap; text-align: center;
}
.announce span { display: inline-flex; align-items: center; gap: 7px; }
.announce b { color: var(--gold-300); font-weight: 600; }

.topbar {
  position: sticky; top: 0; z-index: 60;
  background: rgba(253,251,246,.92); backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-wrap { display: flex; align-items: center; gap: 22px; min-height: var(--header-h); }

.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0;
  background: linear-gradient(140deg, var(--forest-700), var(--forest-500) 55%, var(--gold-500));
  display: grid; place-items: center; color: var(--cream);
  font-family: var(--font-display); font-weight: 700; font-size: 1.2rem;
  box-shadow: inset 0 -2px 6px rgba(0,0,0,.18);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: var(--font-display); font-size: 1.32rem; letter-spacing: -.03em; color: var(--forest-800); }
.brand-text small { font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 600; }

.searchbar { flex: 1; max-width: 460px; position: relative; }
.searchbar input {
  width: 100%; padding: 11px 44px 11px 42px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--white); font-size: .92rem;
  transition: border-color .2s, box-shadow .2s;
}
.searchbar input:focus { outline: none; border-color: var(--forest-300); box-shadow: 0 0 0 4px var(--forest-50); }
.searchbar .s-icon { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: .95rem; pointer-events: none; }
.searchbar button {
  position: absolute; right: 5px; top: 50%; transform: translateY(-50%);
  border: none; background: var(--forest-800); color: var(--cream);
  width: 32px; height: 32px; border-radius: 50%; cursor: pointer; font-size: .8rem;
  display: grid; place-items: center; transition: background .2s;
}
.searchbar button:hover { background: var(--gold-500); color: var(--forest-900); }

.nav { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.nav > a {
  padding: 9px 13px; border-radius: 999px; font-size: .92rem; font-weight: 500;
  color: var(--ink-2); transition: all .18s;
}
.nav > a:hover { background: var(--forest-50); color: var(--forest-800); }
.nav > a.is-active { color: var(--forest-800); font-weight: 600; }

.cart-pill {
  display: inline-flex !important; align-items: center; gap: 9px;
  background: var(--forest-800) !important; color: var(--cream) !important;
  padding: 10px 18px !important; border-radius: 999px; font-weight: 600 !important;
}
.cart-pill:hover { background: var(--forest-700) !important; }
.cart-pill span {
  background: var(--gold-500); color: var(--forest-900);
  min-width: 21px; height: 21px; border-radius: 999px;
  display: grid; place-items: center; font-size: .74rem; font-weight: 700; padding: 0 6px;
}

.nav-toggle {
  display: none; margin-left: auto; background: var(--white); border: 1px solid var(--line);
  width: 42px; height: 42px; border-radius: 12px; cursor: pointer; font-size: 1.1rem;
}

/* Category strip */
.catbar { background: var(--white); border-bottom: 1px solid var(--line); }
.catbar .container { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.catbar .container::-webkit-scrollbar { display: none; }
.catbar a {
  padding: 13px 16px; font-size: .88rem; font-weight: 500; color: var(--ink-2);
  white-space: nowrap; border-bottom: 2px solid transparent; transition: all .18s;
}
.catbar a:hover { color: var(--forest-700); border-bottom-color: var(--forest-300); }
.catbar a.is-active { color: var(--forest-800); font-weight: 600; border-bottom-color: var(--gold-500); }

/* ---------- Hero ---------- */
.hero { background: var(--cream); padding: 56px 0 8px; }
.hero-card {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 0;
  background: var(--forest-800); border-radius: var(--radius-xl); overflow: hidden;
  box-shadow: var(--shadow-lg); position: relative;
}
.hero-copy { padding: clamp(34px, 4.4vw, 62px); color: var(--cream); position: relative; z-index: 2; }
.hero-copy h1 {
  font-size: clamp(2.15rem, 4.6vw, 3.55rem); color: var(--white);
  margin-bottom: .38em; letter-spacing: -.035em;
}
.hero-copy h1 em { font-style: normal; color: var(--gold-300); }
.hero-copy > p { color: rgba(247,243,234,.8); font-size: 1.06rem; max-width: 50ch; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 38px; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.stat-card {
  background: rgba(247,243,234,.08); border: 1px solid rgba(247,243,234,.14);
  border-radius: var(--radius); padding: 16px 14px;
}
.stat-card strong {
  display: block; font-family: var(--font-display); font-size: 1.75rem;
  color: var(--gold-300); line-height: 1;
}
.stat-card span { font-size: .78rem; color: rgba(247,243,234,.7); line-height: 1.35; display: block; margin-top: 7px; }

.hero-visual {
  background: url('hero-bg.jpg') center/cover no-repeat, var(--forest-700);
  min-height: 440px; position: relative;
}
.hero-visual::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--forest-800) 0%, rgba(20,54,31,.35) 32%, rgba(20,54,31,.05) 100%);
}
.hero-badge {
  position: absolute; right: 26px; bottom: 26px; z-index: 3;
  background: rgba(253,251,246,.95); backdrop-filter: blur(8px);
  border-radius: var(--radius); padding: 14px 18px; box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 12px; max-width: 250px;
}
.hero-badge .hb-icon {
  width: 38px; height: 38px; border-radius: 11px; background: var(--gold-100);
  display: grid; place-items: center; font-size: 1.1rem; flex-shrink: 0;
}
.hero-badge strong { display: block; font-size: .88rem; color: var(--forest-800); }
.hero-badge span { font-size: .74rem; color: var(--muted); line-height: 1.3; }

/* ---------- Trust strip ---------- */
.trust-strip { background: var(--cream); padding: 34px 0 10px; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.trust-item {
  display: flex; align-items: center; gap: 13px; padding: 18px 20px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
}
.trust-item .ti-icon {
  width: 40px; height: 40px; border-radius: 11px; flex-shrink: 0;
  background: var(--forest-50); color: var(--forest-700);
  display: grid; place-items: center; font-size: 1.05rem;
}
.trust-item strong { display: block; font-size: .92rem; color: var(--ink); }
.trust-item span { font-size: .79rem; color: var(--muted); line-height: 1.35; }

/* ---------- Grids ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.dual { display: grid; grid-template-columns: 1.55fr .95fr; gap: 26px; align-items: start; }
.dual-even { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; align-items: start; }

/* ---------- Cards ---------- */
.panel {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-xs);
}
.panel-pad { padding: 28px; }

.benefit-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px 24px; transition: transform .26s var(--ease), box-shadow .26s var(--ease), border-color .26s;
}
.benefit-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--forest-300); }
.icon-badge {
  width: 48px; height: 48px; border-radius: 14px; margin-bottom: 18px;
  background: linear-gradient(140deg, var(--forest-50), var(--gold-100));
  color: var(--forest-700); display: grid; place-items: center; font-size: 1.25rem;
  border: 1px solid var(--line-2);
}
.benefit-card h3 { font-size: 1.06rem; margin-bottom: .5em; }
.benefit-card p { font-size: .89rem; color: var(--muted); margin: 0; }

.category-card {
  display: flex; flex-direction: column; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-xs);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.category-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--forest-300); }
.category-card .cc-media {
  position: relative; aspect-ratio: 16/10; overflow: hidden;
  background: linear-gradient(155deg, var(--cream) 0%, var(--forest-50) 100%);
}
.category-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.category-card:hover img { transform: scale(1.06); }
.category-card .cc-body {
  padding: 17px 20px; display: flex; align-items: center; justify-content: space-between;
  gap: 12px; border-top: 1px solid var(--line-2);
}
.category-card h3 { font-size: 1.04rem; margin: 0; color: var(--forest-800); font-family: var(--font-body); font-weight: 600; }
.category-card .cc-count { font-size: .82rem; color: var(--muted); font-weight: 500; white-space: nowrap; }
.category-card:hover .cc-count { color: var(--gold-600); }

/* ---------- Product cards ---------- */
.products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.product-card {
  display: flex; flex-direction: column; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  transition: transform .26s var(--ease), box-shadow .26s var(--ease), border-color .26s;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--forest-300); }
.product-media {
  position: relative; aspect-ratio: 3/4; overflow: hidden; background: var(--cream);
}
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s var(--ease); }
.product-card:hover .product-media img { transform: scale(1.06); }
.product-media .flag {
  /* bottom-right keeps clear of the packet's own top label and wordmark */
  position: absolute; right: 12px; bottom: 12px; z-index: 2;
  background: rgba(253,251,246,.95); color: var(--forest-800);
  font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 999px; box-shadow: var(--shadow-xs);
}
.product-body { padding: 18px; display: flex; flex-direction: column; flex: 1; }
.product-body .tag { margin-bottom: 9px; }
.product-body h3 { font-size: .97rem; font-family: var(--font-body); font-weight: 600; margin-bottom: .35em; line-height: 1.35; }
.product-body h3 a:hover { color: var(--forest-600); }
.product-body p {
  font-size: .82rem; color: var(--muted); margin: 0 0 16px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.price-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; }
.price-row strong { font-family: var(--font-display); font-size: 1.22rem; color: var(--forest-800); }
.price-note { font-size: .72rem; color: var(--muted); display: block; font-weight: 400; font-family: var(--font-body); }

.tag {
  display: inline-block; padding: 4px 11px; border-radius: 999px;
  background: var(--forest-50); color: var(--forest-700);
  font-size: .71rem; font-weight: 600; letter-spacing: .04em;
  border: 1px solid var(--line-2);
}
.tag-gold { background: var(--gold-100); color: var(--gold-600); border-color: #EFE3BE; }
.tag-success { background: #E4F3EA; color: var(--success); border-color: #CFE8DA; }
.badge-row { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Promo ---------- */
.promo-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 30px;
  background: linear-gradient(120deg, var(--forest-800), var(--forest-600) 70%, var(--forest-500));
  color: var(--cream); border-radius: var(--radius-xl); padding: clamp(28px, 4vw, 48px);
  flex-wrap: wrap; position: relative; overflow: hidden;
}
.promo-banner::before {
  content: ''; position: absolute; right: -60px; top: -60px; width: 280px; height: 280px;
  border-radius: 50%; background: rgba(201,162,39,.16);
}
.promo-banner > * { position: relative; z-index: 2; }
.promo-banner h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); color: var(--white); margin-bottom: .3em; }
.promo-banner p { color: rgba(247,243,234,.82); margin: 0; max-width: 62ch; }

/* ---------- Shop toolbar / filters ---------- */
.shop-layout { display: grid; grid-template-columns: 260px 1fr; gap: 30px; align-items: start; }
.filter-rail { position: sticky; top: calc(var(--header-h) + 16px); }
.filter-block { padding: 20px; border-bottom: 1px solid var(--line-2); }
.filter-block:last-child { border-bottom: none; }
.filter-block h4 { font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.filter-list { display: flex; flex-direction: column; gap: 2px; }
.filter-list a {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 8px 11px; border-radius: 9px; font-size: .88rem; color: var(--ink-2); transition: all .16s;
}
.filter-list a:hover { background: var(--forest-50); color: var(--forest-800); }
.filter-list a.is-active { background: var(--forest-800); color: var(--cream); font-weight: 600; }
.filter-list a small { font-size: .74rem; opacity: .7; }

.shop-toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  flex-wrap: wrap; margin-bottom: 22px;
}
.shop-toolbar .result-count { font-size: .9rem; color: var(--muted); }
.shop-toolbar .result-count b { color: var(--ink); font-weight: 600; }
.sort-select {
  padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--white); font-size: .88rem; cursor: pointer;
}
.sort-select:focus { outline: none; border-color: var(--forest-300); }

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 14px;
  border-radius: 999px; background: var(--white); border: 1px solid var(--line);
  font-size: .82rem; color: var(--ink-2);
}
.chip a { color: var(--muted); font-weight: 700; }
.chip a:hover { color: var(--danger); }

.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 44px; flex-wrap: wrap; }
.pagination a, .pagination span {
  min-width: 40px; height: 40px; padding: 0 12px; border-radius: 10px;
  display: grid; place-items: center; font-size: .88rem; font-weight: 500;
  border: 1px solid var(--line); background: var(--white); color: var(--ink-2); transition: all .18s;
}
.pagination a:hover { border-color: var(--forest-300); background: var(--forest-50); color: var(--forest-800); }
.pagination .is-active { background: var(--forest-800); color: var(--cream); border-color: var(--forest-800); font-weight: 600; }
.pagination .gap { border: none; background: transparent; }

/* ---------- Breadcrumbs ---------- */
.crumbs { display: flex; gap: 8px; align-items: center; font-size: .82rem; color: var(--muted); margin-bottom: 20px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--forest-700); }
.crumbs .sep { opacity: .5; }

/* ---------- Product detail ---------- */
.pd-gallery { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: var(--white); }
.pd-gallery img { width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.pd-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 12px; }
.pd-thumbs img { border-radius: 10px; border: 1px solid var(--line); aspect-ratio: 3/4; object-fit: cover; cursor: pointer; transition: border-color .2s; }
.pd-thumbs img:hover { border-color: var(--forest-500); }
.pd-price { font-family: var(--font-display); font-size: 2.3rem; color: var(--forest-800); line-height: 1; }
.spec-table td { padding: 11px 0; border-bottom: 1px solid var(--line-2); font-size: .89rem; vertical-align: top; }
.spec-table td:first-child { color: var(--muted); width: 42%; }
.spec-table td:last-child { font-weight: 500; }
.spec-table tr:last-child td { border-bottom: none; }

.qty-stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; background: var(--white); overflow: hidden; }
.qty-stepper button { width: 40px; height: 44px; border: none; background: transparent; cursor: pointer; font-size: 1.1rem; color: var(--forest-700); transition: background .16s; }
.qty-stepper button:hover { background: var(--forest-50); }
.qty-stepper input { width: 46px; height: 44px; border: none; text-align: center; font-weight: 600; background: transparent; -moz-appearance: textfield; }
.qty-stepper input::-webkit-outer-spin-button, .qty-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
label { display: block; font-size: .82rem; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
label .req { color: var(--danger); }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number],
input[type=search], input[type=file], select, textarea {
  width: 100%; padding: 12px 15px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--white); font-size: .93rem;
  transition: border-color .2s, box-shadow .2s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--forest-500); box-shadow: 0 0 0 4px var(--forest-50); }
textarea { min-height: 110px; resize: vertical; }
.field-hint { font-size: .76rem; color: var(--muted); margin-top: 5px; }
.check-row { display: flex; align-items: flex-start; gap: 10px; font-size: .86rem; color: var(--ink-2); }
.check-row input { width: auto; margin-top: 3px; flex-shrink: 0; }

.pay-options { display: grid; gap: 12px; }
.pay-option {
  display: flex; align-items: flex-start; gap: 13px; padding: 16px 18px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--white);
  cursor: pointer; transition: all .2s;
}
.pay-option:hover { border-color: var(--forest-300); }
.pay-option input { width: auto; margin-top: 4px; flex-shrink: 0; }
.pay-option.is-selected { border-color: var(--forest-600); background: var(--forest-50); box-shadow: 0 0 0 3px var(--forest-50); }
.pay-option strong { display: block; font-size: .93rem; }
.pay-option span { font-size: .8rem; color: var(--muted); }

/* ---------- Notices ---------- */
.notice {
  padding: 14px 18px; border-radius: var(--radius); font-size: .88rem;
  background: var(--forest-50); border: 1px solid var(--forest-100); color: var(--forest-700);
}
.notice-warn { background: #FDF6E7; border-color: #F0E0BC; color: var(--warning); }
.notice-error { background: #FCEBEA; border-color: #F3CFCC; color: var(--danger); }
.notice-success { background: #E4F3EA; border-color: #CFE8DA; color: var(--success); }
.notice a { text-decoration: underline; font-weight: 600; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.data-table { min-width: 560px; }
.data-table th {
  text-align: left; font-size: .74rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); padding: 0 14px 12px; font-weight: 700; border-bottom: 1px solid var(--line);
}
.data-table td { padding: 16px 14px; border-bottom: 1px solid var(--line-2); font-size: .9rem; vertical-align: middle; }
.data-table tr:last-child td { border-bottom: none; }
.data-table .num { text-align: right; }
.cell-media { display: flex; align-items: center; gap: 13px; }
.cell-media img { width: 54px; height: 72px; border-radius: 8px; object-fit: cover; object-position: center 30%; flex-shrink: 0; }

.summary-box { padding: 26px; position: sticky; top: calc(var(--header-h) + 16px); }
.summary-row { display: flex; justify-content: space-between; gap: 12px; font-size: .9rem; margin-bottom: 11px; color: var(--ink-2); }
.summary-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line); margin-top: 16px; }
.summary-total strong:last-child { font-family: var(--font-display); font-size: 1.5rem; color: var(--forest-800); }

/* ---------- Steps / timeline ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.step { position: relative; padding-top: 46px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 0; left: 0; width: 34px; height: 34px; border-radius: 50%;
  background: var(--forest-800); color: var(--gold-300); display: grid; place-items: center;
  font-weight: 700; font-size: .9rem;
}
.step h4 { font-size: .98rem; margin-bottom: .4em; }
.step p { font-size: .85rem; color: var(--muted); margin: 0; }

.timeline { display: flex; flex-direction: column; gap: 0; }
.timeline-item { position: relative; padding: 0 0 22px 30px; border-left: 2px solid var(--line); }
.timeline-item:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline-item::before {
  content: ''; position: absolute; left: -7px; top: 3px; width: 12px; height: 12px;
  border-radius: 50%; background: var(--white); border: 2px solid var(--forest-300);
}
.timeline-item.is-done::before { background: var(--forest-600); border-color: var(--forest-600); }
.timeline-item strong { font-size: .92rem; display: block; }
.timeline-item span { font-size: .8rem; color: var(--muted); }

/* ---------- Legal / long-form ---------- */
.legal-layout { display: grid; grid-template-columns: 260px 1fr; gap: 34px; align-items: start; }
.legal-nav { position: sticky; top: calc(var(--header-h) + 16px); padding: 18px; }
.legal-nav h4 { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; padding: 0 10px; }
.legal-nav a { display: block; padding: 9px 12px; border-radius: 9px; font-size: .87rem; color: var(--ink-2); transition: all .16s; }
.legal-nav a:hover { background: var(--forest-50); color: var(--forest-800); }
.legal-nav a.is-active { background: var(--forest-800); color: var(--cream); font-weight: 600; }

.legal-doc { padding: clamp(26px, 3.4vw, 46px); }
.legal-doc h1 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); margin-bottom: .3em; }
.legal-doc .doc-meta { font-size: .84rem; color: var(--muted); padding-bottom: 22px; margin-bottom: 30px; border-bottom: 1px solid var(--line); }
.legal-doc h2 { font-size: 1.24rem; font-family: var(--font-body); font-weight: 700; margin: 36px 0 .6em; color: var(--forest-800); }
.legal-doc h2:first-of-type { margin-top: 0; }
.legal-doc h3 { font-size: 1.02rem; margin: 24px 0 .5em; }
.legal-doc p, .legal-doc li { font-size: .94rem; color: var(--ink-2); line-height: 1.75; }
.legal-doc ul, .legal-doc ol { padding-left: 22px; margin: 0 0 1.1em; }
.legal-doc li { margin-bottom: .55em; }
.legal-doc strong { color: var(--ink); }
.legal-doc table { margin: 0 0 1.4em; font-size: .9rem; }
.legal-doc table th { background: var(--forest-50); text-align: left; padding: 12px 14px; font-size: .8rem; letter-spacing: .04em; text-transform: uppercase; color: var(--forest-700); border: 1px solid var(--line); }
.legal-doc table td { padding: 12px 14px; border: 1px solid var(--line); vertical-align: top; }
.legal-doc .callout {
  background: var(--forest-50); border-left: 3px solid var(--forest-500);
  padding: 16px 20px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: 0 0 1.4em;
}
.legal-doc .callout p:last-child { margin-bottom: 0; }

/* ---------- Contact ---------- */
.contact-card { display: flex; gap: 15px; padding: 22px; align-items: flex-start; }
.contact-card .cc-icon {
  width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
  background: var(--forest-50); color: var(--forest-700); display: grid; place-items: center; font-size: 1.1rem;
}
.contact-card h4 { font-size: .95rem; margin-bottom: .3em; }
.contact-card p { font-size: .87rem; color: var(--muted); margin: 0; line-height: 1.6; }
.contact-card a { color: var(--forest-700); font-weight: 500; }
.contact-card a:hover { color: var(--gold-600); }

/* ---------- Footer ---------- */
.site-footer { background: var(--forest-900); color: rgba(247,243,234,.72); margin-top: 40px; }
.footer-top { padding: 60px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand .brand-text strong { color: var(--cream); }
.footer-brand .brand-text small { color: rgba(247,243,234,.5); }
.footer-brand p { font-size: .88rem; margin: 18px 0; max-width: 42ch; line-height: 1.7; }
.footer-legal-meta { display: flex; flex-direction: column; gap: 5px; font-size: .78rem; color: rgba(247,243,234,.55); }
.footer-legal-meta b { color: rgba(247,243,234,.8); font-weight: 600; }
.site-footer h4 {
  color: var(--cream); font-size: .76rem; letter-spacing: .13em; text-transform: uppercase;
  margin-bottom: 18px; font-weight: 700;
}
.footer-links { display: flex; flex-direction: column; gap: 11px; }
.footer-links a { font-size: .88rem; color: rgba(247,243,234,.72); transition: color .18s; }
.footer-links a:hover { color: var(--gold-300); }
.footer-bar {
  border-top: 1px solid rgba(247,243,234,.12); padding: 22px 0;
  display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  font-size: .8rem; color: rgba(247,243,234,.55);
}
.pay-marks { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.pay-marks span {
  padding: 5px 11px; border-radius: 6px; background: rgba(247,243,234,.09);
  border: 1px solid rgba(247,243,234,.14); font-size: .72rem; letter-spacing: .04em;
  color: rgba(247,243,234,.8); font-weight: 500;
}

/* ---------- Page header ---------- */
.page-head { background: var(--forest-800); color: var(--cream); padding: 46px 0; }
.page-head h1 { color: var(--white); font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-bottom: .2em; }
.page-head p { color: rgba(247,243,234,.75); margin: 0; max-width: 68ch; }
.page-head .crumbs { color: rgba(247,243,234,.6); margin-bottom: 14px; }
.page-head .crumbs a:hover { color: var(--gold-300); }

/* ---------- Empty state ---------- */
.empty-state { text-align: center; padding: 64px 24px; }
.empty-state .es-icon { font-size: 2.6rem; margin-bottom: 14px; opacity: .5; }
.empty-state h3 { font-size: 1.2rem; margin-bottom: .4em; }
.empty-state p { color: var(--muted); margin-bottom: 22px; }

/* ---------- Utilities ---------- */
.mini-copy { font-size: .87rem; color: var(--muted); }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; }
.mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; }
.flex { display: flex; } .flex-wrap { flex-wrap: wrap; }
.gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; }
.items-center { align-items: center; } .justify-between { justify-content: space-between; }
.text-center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ---------- Scroll reveal ---------- */
[data-scroll] { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
[data-scroll].visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  [data-scroll] { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .products-grid, .grid-4, .trust-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .hero-card { grid-template-columns: 1fr; }
  .hero-visual { min-height: 260px; order: -1; }
  .hero-visual::after { background: linear-gradient(0deg, var(--forest-800) 0%, rgba(20,54,31,.2) 70%); }
  .hero-badge { display: none; }
  .dual, .dual-even, .shop-layout, .legal-layout { grid-template-columns: 1fr; }
  .summary-box, .filter-rail, .legal-nav { position: static; }
  .searchbar { order: 3; max-width: none; flex-basis: 100%; }
  .nav-wrap { flex-wrap: wrap; padding-bottom: 12px; }
  .nav {
    display: none; width: 100%; flex-direction: column; align-items: stretch;
    gap: 2px; padding-top: 10px; border-top: 1px solid var(--line); margin-left: 0;
  }
  .nav.is-open { display: flex; }
  .nav > a { padding: 12px 14px; border-radius: 10px; }
  .cart-pill { justify-content: space-between; }
  .nav-toggle { display: block; }
}
@media (max-width: 720px) {
  .section { padding: 52px 0; }
  .container { padding: 0 18px; }
  .products-grid, .grid-4, .grid-3, .grid-2, .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-stats { grid-template-columns: 1fr; }
  .stat-card { display: flex; align-items: baseline; gap: 10px; }
  .stat-card span { margin-top: 0; }
  .promo-banner { flex-direction: column; align-items: flex-start; }
  .announce .container { gap: 14px; font-size: .74rem; }
}
@media (max-width: 520px) {
  .products-grid, .grid-4, .grid-3, .grid-2, .trust-grid, .steps { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .legal-doc { padding: 22px; }
  .panel-pad { padding: 20px; }
}
