/* ==========================================================================
   Valar — production theme styles
   Clean grotesque + mono "data" accent · warm paper · leaf-green primary
   Shared by the static preview and the WordPress theme.
   ========================================================================== */

:root {
  /* surfaces */
  --paper: #FBFAF7;
  --surface: #F4F2EB;
  --surface-2: #EFECE3;
  --card: #FFFFFF;

  /* ink */
  --ink: #211E18;
  --ink-2: #4A453C;
  --muted: #7C766A;
  --hairline: #E8E4DA;
  --line: #DBD6CA;

  /* brand */
  --green: #3F7D55;
  --green-700: #2E6341;
  --green-900: #1F4730;
  --green-100: #DCEADF;
  --green-50: #ECF3ED;
  --clay: #B26C3C;

  /* type */
  --font-sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "Space Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* radius */
  --r-xs: 6px;
  --r-sm: 9px;
  --r: 12px;
  --r-lg: 18px;
  --r-pill: 999px;

  /* shadow */
  --shadow-sm: 0 1px 2px rgba(33, 30, 24, .05);
  --shadow: 0 6px 24px rgba(33, 30, 24, .07);
  --shadow-lg: 0 22px 60px rgba(33, 30, 24, .12);

  /* layout */
  --container: 1240px;
  --gutter: clamp(18px, 4vw, 40px);
}

/* Old homepage Elementor/inline CSS can remain in wp_head after activation.
   Keep the packaged Valar chrome visible when this theme is active. */
html body.wp-theme-valar-theme .promobar,
html body.wp-theme-valar-theme .site-header {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  transform: none !important;
  height: auto !important;
  min-height: 0 !important;
}
html body.wp-theme-valar-theme .site-header .header-row,
html body.wp-theme-valar-theme .site-header .nav,
html body.wp-theme-valar-theme .site-header .header-actions,
html body.wp-theme-valar-theme .site-header .searchbox,
html body.wp-theme-valar-theme .site-header .icon-btn {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
}
html body.wp-theme-valar-theme .site-header .brand {
  display: inline-flex !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.08; letter-spacing: -0.02em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }

/* ---------- layout helpers ---------- */
.wrap { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(48px, 7vw, 92px); }
.section--tight { padding-block: clamp(32px, 5vw, 56px); }
.stack > * + * { margin-top: var(--s, 1rem); }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--green-700);
  font-weight: 700;
}
.muted { color: var(--muted); }
.lead { font-size: clamp(18px, 2.1vw, 21px); color: var(--ink-2); line-height: 1.5; }

.h-display { font-size: clamp(40px, 6.4vw, 76px); letter-spacing: -0.035em; line-height: 1.02; }
.h1 { font-size: clamp(32px, 4.4vw, 50px); }
.h2 { font-size: clamp(26px, 3.2vw, 38px); }
.h3 { font-size: clamp(20px, 2.2vw, 26px); }

.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(24px, 3vw, 40px); }
.section-head p { margin-top: 8px; }

/* ---------- buttons ---------- */
.btn {
  --bg: var(--ink); --fg: #fff; --bd: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-weight: 600; font-size: 15.5px; letter-spacing: -0.01em;
  padding: 13px 22px; border-radius: var(--r-pill);
  background: var(--bg); color: var(--fg); border: 1.5px solid var(--bd);
  transition: transform .12s ease, background .15s ease, color .15s, border-color .15s, box-shadow .15s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary { --bg: var(--green); --fg: #fff; --bd: var(--green); box-shadow: var(--shadow-sm); }
.btn--primary:hover { --bg: var(--green-700); --bd: var(--green-700); }
.btn--ghost { --bg: transparent; --fg: var(--ink); --bd: var(--line); }
.btn--ghost:hover { --bd: var(--ink); }
.btn--light { --bg: #fff; --fg: var(--ink); --bd: #fff; }
.btn--block { width: 100%; }
.btn--sm { padding: 9px 15px; font-size: 14px; }
.btn--lg { padding: 16px 28px; font-size: 17px; }

/* ---------- chips / tags / badges ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 14px; border-radius: var(--r-pill);
  border: 1.5px solid var(--line); background: var(--card);
  font-size: 14px; font-weight: 500; color: var(--ink-2);
  transition: border-color .15s, background .15s, color .15s;
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"], .chip.is-active { background: var(--green-50); border-color: var(--green); color: var(--green-700); }

.tag {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); font-weight: 400;
}
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .04em;
  padding: 4px 10px; border-radius: var(--r-pill);
  background: var(--green-50); color: var(--green-700); border: 1px solid var(--green-100);
}
.badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .04em; text-transform: uppercase;
  background: var(--ink); color: #fff; padding: 5px 10px; border-radius: var(--r-pill);
}
.badge--save { background: var(--green); }

/* ---------- stars ---------- */
.stars { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--ink-2); }
.stars__row { color: var(--green); letter-spacing: 1px; }
.stars__row .off { color: var(--line); }
.stars__count { color: var(--muted); font-size: 13px; }

/* ---------- mono spec line ---------- */
.spec-inline {
  font-family: var(--font-mono); font-size: 12px; color: var(--muted);
  display: flex; flex-wrap: wrap; gap: 6px 10px;
}
.spec-inline b { color: var(--ink-2); font-weight: 400; }

/* ==========================================================================
   PROMO + HEADER
   ========================================================================== */
.promobar {
  background: var(--green); color: #fff;
  font-size: 13.5px; font-weight: 500; letter-spacing: -0.005em;
  padding: 9px 16px;
}
.promobar__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 14px; }
.promobar b { font-weight: 700; }
.promobar .sep { opacity: .55; }
@media (max-width: 560px) { .promobar .sep { display: none; } }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(251,250,247,.86); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--hairline); }
.header-row { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand { font-size: 26px; font-weight: 800; letter-spacing: -0.04em; }
.brand .dot { color: var(--green); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { padding: 8px 13px; border-radius: var(--r-sm); font-weight: 500; font-size: 15.5px; color: var(--ink-2); transition: background .15s, color .15s; }
.nav a:hover { background: var(--surface); color: var(--ink); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.searchbox { display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid transparent; border-radius: var(--r-pill); padding: 9px 14px; width: 230px; color: var(--muted); font-size: 14px; transition: border-color .15s, background .15s; }
.searchbox:focus-within { background: #fff; border-color: var(--line); }
.searchbox input { border: 0; background: none; outline: none; font-family: inherit; font-size: 14px; width: 100%; color: var(--ink); }
.icon-btn { position: relative; width: 42px; height: 42px; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--card); display: flex; align-items: center; justify-content: center; color: var(--ink); transition: border-color .15s, background .15s; }
.icon-btn:hover { border-color: var(--ink); }
.icon-btn .count { position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: var(--r-pill); background: var(--green); color: #fff; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.burger { display: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--card); flex-direction: column; gap: 4px; align-items: center; justify-content: center; }
.burger span { width: 18px; height: 2px; background: var(--ink); border-radius: 2px; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer { background: var(--ink); color: #D9D4C8; padding-block: clamp(48px, 6vw, 72px) 28px; }
.site-footer a { color: #D9D4C8; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand .brand { color: #fff; font-size: 30px; }
.footer-col h4 { font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: #8E887A; margin-bottom: 16px; font-weight: 400; }
.footer-col li { margin-bottom: 10px; font-size: 15px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); font-size: 13.5px; color: #8E887A; }

/* ==========================================================================
   PLACEHOLDER MEDIA (preview only — WooCommerce supplies real images)
   ========================================================================== */
.ph {
  position: relative; background: var(--surface); border-radius: var(--r);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.ph::after { content: attr(data-label); font-family: var(--font-mono); font-size: 11px; color: var(--muted); letter-spacing: .04em; padding: 4px 8px; }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.media { background: #fff; }
.media:empty::after, .ph.media img + ::after { display: none; }

/* ==========================================================================
   WORDPRESS GLUE — logo, mobile drawer, story grid, sidebar links, search page
   ========================================================================== */
.brand img { height: 34px; width: auto; display: block; }
.custom-logo-link { display: inline-flex; }

.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px,4vw,64px); align-items: center; }

/* sidebar category links rendered as .check anchors */
a.check { text-decoration: none; }
a.check .boxlink { display: inline-flex; }
.valar-filter-toggle { display: none; margin-bottom: 14px; }

/* mobile nav drawer */
.mobile-drawer { display: none; border-top: 1px solid var(--hairline); background: var(--paper); }
.mobile-nav { padding: 8px var(--gutter) 16px; }
.mobile-nav li a { display: block; padding: 12px 4px; font-size: 17px; font-weight: 600; border-bottom: 1px solid var(--hairline); }
body.nav-open .mobile-drawer { display: block; }

/* WP pagination + comments basics */
.pagination .nav-links, .woocommerce-pagination ul { display: inline-flex; gap: 6px; list-style: none; padding: 0; }
.page-numbers { display: inline-flex; min-width: 40px; height: 40px; align-items: center; justify-content: center; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--r-pill); font-weight: 600; color: var(--ink-2); }
.page-numbers.current { background: var(--green); border-color: var(--green); color: #fff; }
.comment-list { list-style: none; padding: 0; }
.comment-list .comment-body { padding: 16px 0; border-bottom: 1px solid var(--hairline); }
.comment-respond input, .comment-respond textarea { width: 100%; border: 1.5px solid var(--line); border-radius: var(--r-sm); padding: 12px; font-family: inherit; }
.entry-content { font-size: 18px; line-height: 1.7; color: var(--ink-2); }
.entry-content > * + * { margin-top: 1.1em; }
.entry-content h2 { color: var(--ink); margin-top: 1.5em; }
.entry-content a { color: var(--green-700); text-decoration: underline; text-underline-offset: 3px; }
.entry-content img { border-radius: var(--r); }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 16px; z-index: 200; background: #fff; padding: 10px 16px; border-radius: var(--r-sm); }

@media (max-width: 900px) {
  .story-grid { grid-template-columns: 1fr; }
  .valar-filter-toggle { display: inline-flex; }
}

/* ==========================================================================
   HERO (Direction A — routine first)
   ========================================================================== */
.hero { padding-block: clamp(32px, 5vw, 64px) clamp(28px, 4vw, 48px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 4vw, 56px); align-items: center; }
.hero h1 { margin: 18px 0 18px; }
.hero .cta-row { display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.hero-media { aspect-ratio: 4 / 3.4; border-radius: var(--r-lg); }
.hero-aside { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin-top: 28px; }
.mini-card { display: flex; align-items: center; gap: 10px; padding: 10px; border: 1px solid var(--hairline); border-radius: var(--r); background: var(--card); }
.mini-card .ph { width: 46px; height: 46px; flex: 0 0 auto; border-radius: var(--r-sm); }
.mini-card .nm { font-size: 13.5px; font-weight: 600; line-height: 1.2; }
.mini-card .pr { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }

/* impact stat row */
.impact { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 3vw, 40px); }
.impact--bordered { border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); padding-block: 22px; }
.stat .n { font-size: clamp(30px, 4vw, 46px); font-weight: 800; letter-spacing: -0.03em; color: var(--green-700); line-height: 1; }
.stat .l { color: var(--muted); font-size: 14.5px; margin-top: 6px; line-height: 1.3; }
.band-dark .stat .n { color: #fff; }
.band-dark .stat .l { color: #B8B2A4; }

/* ==========================================================================
   ROUTINE GRID
   ========================================================================== */
.routine-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.routine-card { border: 1px solid var(--hairline); border-radius: var(--r-lg); background: var(--card); padding: 14px; transition: transform .15s, box-shadow .15s, border-color .15s; }
.routine-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line); }
.routine-card .ph { aspect-ratio: 4/3; margin-bottom: 14px; }
.routine-card h3 { font-size: 19px; }
.routine-card p { color: var(--muted); font-size: 14px; margin-top: 4px; }
.routine-card .arrow { margin-top: 12px; font-family: var(--font-mono); font-size: 13px; color: var(--green-700); }

/* ==========================================================================
   PRODUCT CARD + GRID
   ========================================================================== */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.product-grid--3 { grid-template-columns: repeat(3, 1fr); }
.pcard { position: relative; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--hairline); border-radius: var(--r-lg); overflow: hidden; transition: transform .15s, box-shadow .15s, border-color .15s; }
.pcard:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line); }
.pcard__media { position: relative; aspect-ratio: 1/1; background: var(--surface); }
.pcard__body { padding: 14px 15px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.pcard__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pcard__title { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
.pcard__desc { font-size: 14px; color: var(--muted); line-height: 1.45; }
.pcard__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 6px; }
.price { font-size: 19px; font-weight: 800; letter-spacing: -0.02em; display: inline-flex; align-items: baseline; gap: 8px; }
.price del { color: var(--muted); font-weight: 500; font-size: 14px; }
.price--lg { font-size: 30px; }
.add-btn { display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px; border-radius: var(--r-pill); background: var(--green); color: #fff; font-weight: 600; font-size: 14px; border: 1.5px solid var(--green); transition: background .15s, transform .12s; }
.add-btn:hover { background: var(--green-700); transform: translateY(-1px); }
.add-btn { white-space: nowrap; flex: 0 0 auto; }

/* ==========================================================================
   VALAR STANDARD band
   ========================================================================== */
.standard { background: var(--surface); border-block: 1px solid var(--hairline); }
.standard-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 3vw, 36px); }
.standard-item .ic { width: 44px; height: 44px; border-radius: var(--r); background: var(--green-50); border: 1px solid var(--green-100); display: flex; align-items: center; justify-content: center; color: var(--green-700); margin-bottom: 14px; }
.standard-item h3 { font-size: 19px; margin-bottom: 8px; }
.standard-item p { color: var(--ink-2); font-size: 15px; line-height: 1.5; }

/* ==========================================================================
   SHOP (Direction A — sidebar filter)
   ========================================================================== */
.shop-head { padding-block: 28px 8px; }
.breadcrumb { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .06em; color: var(--muted); text-transform: uppercase; }
.shop-toolbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-top: 10px; flex-wrap: wrap; }
.shop-layout { display: grid; grid-template-columns: 260px 1fr; gap: clamp(24px, 3vw, 44px); align-items: start; padding-bottom: clamp(48px, 6vw, 80px); }
.filters { position: sticky; top: 96px; }
.filter-group { padding-block: 18px; border-bottom: 1px solid var(--hairline); }
.filter-group:first-child { padding-top: 0; }
.filter-group h4 { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 400; margin-bottom: 12px; }
.check { display: flex; align-items: center; gap: 10px; padding: 5px 0; font-size: 15px; color: var(--ink-2); cursor: pointer; }
.check .box { width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid var(--line); flex: 0 0 auto; display: grid; place-items: center; transition: background .15s, border-color .15s; }
.check input { display: none; }
.check input:checked + .box { background: var(--green); border-color: var(--green); }
.check input:checked + .box::after { content: "✓"; color: #fff; font-size: 12px; }
.filter-note { background: var(--green-50); border: 1px solid var(--green-100); border-radius: var(--r); padding: 12px 14px; margin-top: 18px; }
.filter-note .t { font-weight: 700; font-size: 14px; }
.filter-note .d { font-size: 13px; color: var(--green-700); }
.sortbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.active-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.select { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: var(--r-pill); padding: 8px 14px; font-size: 14px; background: var(--card); color: var(--ink-2); }

/* ==========================================================================
   PRODUCT DETAIL (Direction A — spec forward)
   ========================================================================== */
.pdp { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: start; padding-block: 28px; }
.gallery { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 12px; }
.gallery__main { aspect-ratio: 1/1; border-radius: var(--r-lg); }
.gallery__thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.gallery__thumbs .ph { aspect-ratio: 1/1; border-radius: var(--r); border: 1px solid var(--hairline); cursor: pointer; }
.gallery__thumbs .ph.is-active { border-color: var(--green); box-shadow: 0 0 0 2px var(--green-100); }
.buybox h1 { margin: 12px 0 12px; }
.spec-table { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin: 22px 0; }
.spec-table .row { display: grid; grid-template-columns: 140px 1fr; }
.spec-table .row + .row { border-top: 1px solid var(--hairline); }
.spec-table .k { background: var(--surface); padding: 12px 14px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.spec-table .v { padding: 12px 14px; font-size: 15px; font-weight: 500; }
.price-row { display: flex; align-items: baseline; gap: 14px; margin-bottom: 18px; }
.price-row .tax { font-size: 13px; color: var(--muted); }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: var(--r-pill); overflow: hidden; }
.qty button { width: 42px; height: 46px; border: 0; background: var(--card); font-size: 18px; color: var(--ink); }
.qty button:hover { background: var(--surface); }
.qty span { min-width: 36px; text-align: center; font-weight: 700; }
.buy-actions { display: flex; gap: 12px; margin-bottom: 14px; }
.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 18px; }
.trust .t { border: 1px solid var(--hairline); border-radius: var(--r); padding: 12px; text-align: center; background: var(--card); }
.trust .t b { display: block; font-size: 14px; }
.trust .t span { font-size: 12.5px; color: var(--muted); }
.reviews-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.review { border: 1px solid var(--hairline); border-radius: var(--r); padding: 18px; background: var(--card); }
.review p { margin: 10px 0; font-size: 15.5px; }
.review .who { font-size: 13px; color: var(--muted); }

/* ==========================================================================
   CART / CHECKOUT (Direction B — one page)
   ========================================================================== */
.checkout { display: grid; grid-template-columns: 1.45fr .9fr; gap: clamp(28px, 4vw, 48px); align-items: start; padding-block: 12px clamp(48px, 6vw, 80px); }
.co-step { margin-bottom: 30px; }
.co-step h2 { font-size: 21px; display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.co-step .num { width: 28px; height: 28px; border-radius: var(--r-pill); background: var(--green); color: #fff; font-size: 14px; display: grid; place-items: center; font-weight: 700; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.field input, .field select { font-family: inherit; font-size: 15px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: var(--card); color: var(--ink); }
.field input:focus { outline: none; border-color: var(--green); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
.pay-option { display: flex; align-items: center; gap: 12px; border: 1.5px solid var(--line); border-radius: var(--r); padding: 14px 16px; cursor: pointer; }
.pay-option.is-active { border-color: var(--green); background: var(--green-50); }
.pay-option .radio { width: 18px; height: 18px; border-radius: var(--r-pill); border: 1.5px solid var(--line); flex: 0 0 auto; }
.pay-option.is-active .radio { border-color: var(--green); background: var(--green); box-shadow: inset 0 0 0 3px #fff; }
.checkout > .summary { border: 1px solid var(--hairline); border-radius: var(--r-lg); background: var(--card); padding: 20px; position: sticky; top: 96px; }
.line { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--hairline); }
.line .ph { width: 60px; height: 60px; flex: 0 0 auto; border-radius: var(--r-sm); }
.line .nm { font-size: 15px; font-weight: 600; }
.line .price { font-size: 15px; margin-left: auto; }
.sumrow { display: flex; justify-content: space-between; font-size: 15px; padding: 6px 0; color: var(--ink-2); }
.sumrow.discount { color: var(--green-700); font-weight: 600; }
.sumrow.total { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); border-top: 1px solid var(--hairline); margin-top: 8px; padding-top: 14px; }
.coupon { display: flex; gap: 8px; margin: 12px 0; }
.coupon input { flex: 1; padding: 11px 12px; border: 1.5px solid var(--line); border-radius: var(--r-sm); font-family: inherit; }

/* ==========================================================================
   ABOUT / WHY VALAR
   ========================================================================== */
.about-hero { text-align: center; padding-block: clamp(40px, 6vw, 80px) clamp(28px, 3vw, 40px); }
.about-hero h1 { max-width: 16ch; margin: 18px auto; }
.about-hero .lead { max-width: 54ch; margin-inline: auto; }
.about-media { aspect-ratio: 21/8; border-radius: 0; }
.principle { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: center; padding-block: clamp(28px, 4vw, 48px); }
.principle:not(:last-child) { border-bottom: 1px solid var(--hairline); }
.principle .ph { aspect-ratio: 4/3; border-radius: var(--r-lg); }
.principle .num { font-family: var(--font-mono); font-size: 13px; color: var(--green-700); }
.principle h2 { margin: 8px 0 12px; }
.principle.rev .txt { order: 2; }

/* ==========================================================================
   BLOG
   ========================================================================== */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-card { border: 1px solid var(--hairline); border-radius: var(--r-lg); overflow: hidden; background: var(--card); transition: transform .15s, box-shadow .15s; }
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.post-card .ph { aspect-ratio: 16/10; }
.post-card .body { padding: 18px; }
.post-card .meta { font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.post-card h3 { font-size: 20px; margin: 8px 0; }
.post-card p { color: var(--muted); font-size: 15px; }
.entry { max-width: 720px; margin-inline: auto; padding-block: clamp(32px, 5vw, 56px); }
.entry p { margin-bottom: 1.1em; font-size: 18px; line-height: 1.7; color: var(--ink-2); }
.entry h2 { margin: 1.4em 0 .5em; }

/* ==========================================================================
   CTA band
   ========================================================================== */
.cta-band { background: var(--green); color: #fff; text-align: center; border-radius: var(--r-lg); padding: clamp(36px, 5vw, 64px); }
.cta-band h2 { color: #fff; margin-bottom: 14px; }
.cta-band p { color: rgba(255,255,255,.85); max-width: 48ch; margin: 0 auto 24px; }

/* ==========================================================================
   MOBILE STICKY BUY BAR
   ========================================================================== */
.sticky-buy { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: rgba(251,250,247,.95); backdrop-filter: blur(8px); border-top: 1px solid var(--line); padding: 12px var(--gutter); align-items: center; gap: 14px; }
.sticky-buy .price { font-size: 20px; }
.sticky-buy .btn { flex: 1; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1080px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .routine-grid, .product-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .nav, .searchbox { display: none; }
  .burger { display: flex; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { aspect-ratio: 16/10; }
  .shop-layout { grid-template-columns: 1fr; }
  .filters { position: static; display: none; }
  .filters.is-open { display: block; }
  .pdp { grid-template-columns: 1fr; }
  .gallery { position: static; }
  .checkout { grid-template-columns: 1fr; }
  .summary { position: static; }
  .principle { grid-template-columns: 1fr; }
  .principle.rev .txt { order: 0; }
  .standard-grid { grid-template-columns: 1fr 1fr; }
  .post-grid { grid-template-columns: 1fr; }
  .sticky-buy { display: flex; }
  .product-grid--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .routine-grid, .product-grid, .product-grid--3, .standard-grid, .impact, .trust, .reviews-grid, .grid-2, .grid-3 { grid-template-columns: 1fr 1fr; }
  .reviews-grid, .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .hero-aside { grid-template-columns: 1fr; }
  .gallery__thumbs { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
}
