/* FARIO fixes.css — loaded after styles.css, brand.css and pages.css.
   Fixes: light-theme header contrast, icon buttons, mobile layout, checkout, forms, legal pages. */

:root {
  --hdr-h: 72px;
  --hdr-bg: rgba(20, 21, 22, .96);
  --hdr-fg: #e9e6df;
  --hdr-muted: #a9a8a1;
  --hdr-line: rgba(238, 236, 230, .16);
  --hdr-btn: rgba(238, 236, 230, .06);
  --hdr-btn-hover: rgba(201, 149, 96, .16);
  --hdr-accent: #d4a574;
  --hdr-badge-bg: #c99560;
  --hdr-badge-fg: #141516;
  --hdr-panel: #171918;
  --ok: #4f9d73;
  --err: #d46a5f;
}
html:not([data-theme="dark"]) {
  --hdr-bg: rgba(250, 249, 246, .95);
  --hdr-fg: #252a30;
  --hdr-muted: #56606a;
  --hdr-line: rgba(40, 48, 57, .2);
  --hdr-btn: rgba(255, 255, 255, .75);
  --hdr-btn-hover: rgba(129, 91, 49, .12);
  --hdr-accent: #815b31;
  --hdr-badge-bg: #815b31;
  --hdr-badge-fg: #fff;
  --hdr-panel: #faf9f6;
  --ok: #2f7a53;
  --err: #b3392f;
}

:focus-visible { outline: 2px solid var(--hdr-accent); outline-offset: 3px; border-radius: 6px; }

/* ---------- Header ---------- */
html body .site-header {
  height: var(--hdr-h);
  padding-inline: max(20px, calc((100vw - 1440px) / 2 + 30px));
  gap: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--hdr-bg) !important;
  border-bottom: 1px solid var(--hdr-line);
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
}
html:not([data-theme="dark"]) body .site-header { box-shadow: 0 8px 24px rgba(40, 48, 57, .07); }
html body .site-header .wordmark { order: 1; flex: none; color: var(--hdr-fg); }
html body .site-header .wordmark-copy strong { color: var(--hdr-fg) !important; -webkit-text-fill-color: currentColor; }
html body .site-header .wordmark-copy small { color: var(--hdr-muted); font-size: 6.5px; }
html body .site-header .main-nav { order: 2; margin-inline: auto; gap: clamp(14px, 1.9vw, 30px); }
html body .site-header .main-nav a { color: var(--hdr-fg); font-size: 12.5px; font-weight: 600; letter-spacing: .01em; padding: 6px 0; opacity: .86; }
html body .site-header .main-nav a:hover { color: var(--hdr-accent); opacity: 1; transform: none; }
html body .site-header .main-nav a.is-active { color: var(--hdr-accent); opacity: 1; }
html body .site-header .main-nav a::after { background: var(--hdr-accent); bottom: -2px; }
html body .site-header .header-actions { order: 3; display: flex; align-items: center; gap: 8px; flex: none; }

html body .site-header .header-actions > * {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 42px;
  height: 42px;
  padding: 0 11px;
  border: 1px solid var(--hdr-line);
  border-radius: 999px;
  background: var(--hdr-btn);
  color: var(--hdr-fg);
  font: 700 12px/1 var(--sans);
  letter-spacing: .05em;
  cursor: pointer;
  text-decoration: none;
  transition: background-color .2s, border-color .2s, color .2s;
}
html body .site-header .header-actions > *:hover { background: var(--hdr-btn-hover); border-color: var(--hdr-accent); color: var(--hdr-accent); transform: none; }
html body .site-header .header-actions .ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
html body .site-header .header-actions .theme-toggle > span,
html body .site-header .header-actions .theme-toggle small { display: none; }
html body .site-header .header-actions .cart-link b {
  position: absolute; top: -5px; right: -5px; transform: none;
  min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px;
  background: var(--hdr-badge-bg); color: var(--hdr-badge-fg);
  font: 700 10.5px/19px var(--sans); text-align: center; display: block;
}
html body .site-header .header-actions .cart-link b[hidden] { display: none; }
html body .site-header .header-actions .language-toggle span { transform: none; }

/* Hamburger */
html body .site-header .menu-toggle {
  display: none; order: 4; flex: none; margin: 0;
  width: 42px; height: 42px; padding: 0;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  border: 1px solid var(--hdr-line); border-radius: 999px; background: var(--hdr-btn); color: var(--hdr-fg); cursor: pointer;
}
html body .site-header .menu-toggle span { display: block; width: 18px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .22s, opacity .18s; }
html body .site-header .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(7px) rotate(45deg); }
html body .site-header .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
html body .site-header .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1020px) {
  html body .site-header { gap: 10px; }
  html body .site-header .header-actions { margin-left: auto; }
  html body .site-header .menu-toggle { display: flex; }
  html body .site-header .main-nav {
    display: none; order: 5; margin: 0;
    position: fixed; top: var(--hdr-h); left: 0; right: 0;
    max-height: calc(100vh - var(--hdr-h)); max-height: calc(100dvh - var(--hdr-h)); overflow-y: auto;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 20px 28px;
    background: var(--hdr-panel); border-bottom: 1px solid var(--hdr-line);
    box-shadow: 0 24px 40px rgba(0, 0, 0, .22);
  }
  html body .site-header .main-nav.open { display: flex; }
  html body .site-header .main-nav a { font-size: 17px; font-weight: 600; padding: 15px 4px; border-bottom: 1px solid var(--hdr-line); opacity: 1; }
  html body .site-header .main-nav a:last-child { border-bottom: 0; }
  html body .site-header .main-nav a::after { display: none; }
  html body .site-header .main-nav a.is-active { color: var(--hdr-accent); }
}
@media (max-width: 640px) {
  :root { --hdr-h: 66px; }
  html body .site-header { padding-inline: 14px; gap: 8px; }
  html body .site-header .wordmark { gap: 8px; }
  html body .site-header .wordmark-copy small { display: none; }
  html body .site-header .header-actions { gap: 6px; }
  html body .site-header .header-actions > * { min-width: 40px; height: 40px; padding: 0 9px; }
  html body .site-header .header-actions .language-toggle .ico { display: none; }
  html body .site-header .menu-toggle { width: 40px; height: 40px; }
}
@media (max-width: 360px) {
  html body .site-header .wordmark-copy strong { font-size: 13px; letter-spacing: .2em; }
  html body .site-header .header-actions > * { min-width: 36px; padding: 0 7px; }
  html body .site-header .menu-toggle { width: 36px; }
}

/* ---------- Mobile layout ---------- */
@media (max-width: 760px) {
  .page-shell { width: calc(100% - 40px); }
  .home-hero { grid-template-columns: 1fr !important; min-height: 0 !important; gap: 8px !important; padding-top: 34px !important; padding-bottom: 60px !important; }
  .home-brand-scene { min-height: 0 !important; padding: 8px 0 0; }
  .home-brand-scene .scene-tag, .home-brand-scene .scene-coordinate { display: none; }
  .newsletter-callout { width: 100% !important; }
  .home-copy h1 { font-size: clamp(54px, 15vw, 78px) !important; }
  .hero-scroll { display: none; }
  .category-cards { grid-template-columns: 1fr !important; gap: 16px !important; }
  .category-art { height: 200px !important; }
  .page-section-heading { flex-wrap: wrap; gap: 8px; }
  .home-categories { padding: 56px 0 70px; }
}
@media (max-width: 420px) {
  .home-actions { gap: 16px 20px; }
  .button { max-width: 100%; }
}
html, body { overflow-x: clip; }
img { max-width: 100%; }

/* ---------- Forms ---------- */
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.turnstile-holder { margin: 4px 0 12px; min-height: 65px; }
.form-feedback, .newsletter-feedback { line-height: 1.55; }
.form-feedback.is-success, .newsletter-feedback.is-success { color: var(--ok); font-weight: 600; }
.form-feedback.is-error, .newsletter-feedback.is-error { color: var(--err); font-weight: 600; }
.file-note {
  display: grid; gap: 6px; padding: 16px 18px; border: 1px dashed var(--hdr-line); border-radius: 16px;
  color: var(--muted); font-size: 13px; line-height: 1.65;
}
.file-note strong { color: var(--paper); font-size: 13px; }
.file-note a { color: var(--hdr-accent); text-decoration: underline; text-underline-offset: 3px; }
.reply-time { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; font: 600 12px var(--sans); color: var(--hdr-accent); }
.reply-time::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }

/* ---------- Cart and checkout ---------- */
.cart-checkout { display: grid; gap: 22px; margin-top: 30px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); align-items: start; }
.checkout-card {
  display: grid; gap: 14px; padding: 26px; border: 1px solid var(--hdr-line); border-radius: 26px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02));
}
html:not([data-theme="dark"]) .checkout-card { background: rgba(255, 255, 255, .78); box-shadow: 0 14px 34px rgba(40, 48, 57, .07); }
.checkout-card h2 { margin: 0; font-size: 22px; letter-spacing: -.02em; }
.checkout-card p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.7; }
.checkout-row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--hdr-line); font-size: 14px; }
.checkout-row strong { font-size: 20px; }
.checkout-consent { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; line-height: 1.6; color: var(--muted); }
.checkout-consent input { margin-top: 4px; flex: none; width: 17px; height: 17px; accent-color: var(--hdr-accent); }
.checkout-consent a { color: var(--hdr-accent); text-decoration: underline; text-underline-offset: 3px; }
.checkout-card form { display: grid; gap: 12px; }
.checkout-card label.field { display: grid; gap: 6px; font-size: 12px; font-weight: 600; letter-spacing: .02em; }
.checkout-card input:not([type="checkbox"]), .checkout-card textarea {
  width: 100%; padding: 13px 14px; border: 1px solid var(--hdr-line); border-radius: 14px;
  background: rgba(255, 255, 255, .05); color: inherit; font: 14px var(--sans);
}
html:not([data-theme="dark"]) .checkout-card input:not([type="checkbox"]), html:not([data-theme="dark"]) .checkout-card textarea { background: #fff; }
.checkout-card button[disabled] { opacity: .55; cursor: wait; }
.secure-note { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.secure-note svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; flex: none; }
.cart-line-badge { display: inline-block; margin-top: 6px; padding: 3px 9px; border-radius: 99px; font: 700 10px var(--sans); letter-spacing: .06em; background: rgba(201, 149, 96, .16); color: var(--hdr-accent); }

/* ---------- Legal / prose pages ---------- */
.prose { max-width: 820px; margin: 0 auto; padding-bottom: 80px; }
.prose h2 { font-size: clamp(22px, 3vw, 30px); letter-spacing: -.025em; margin: 42px 0 12px; }
.prose p, .prose li { color: var(--muted); font-size: 15px; line-height: 1.85; }
.prose ul { padding-left: 1.2em; display: grid; gap: 6px; }
.prose a { color: var(--hdr-accent); text-decoration: underline; text-underline-offset: 3px; }
.prose .updated { font: 11px var(--mono); letter-spacing: .1em; color: var(--muted); }
.success-panel { max-width: 720px; margin: 0 auto 90px; padding: 34px; border: 1px solid var(--hdr-line); border-radius: 28px; display: grid; gap: 14px; }
.legal-note a { color: var(--hdr-accent); text-decoration: underline; text-underline-offset: 3px; }
.legal-note { line-height: 1.8; }

/* ---------- Light-theme readability for small labels ---------- */
html:not([data-theme="dark"]) .eyebrow, html:not([data-theme="dark"]) .store-count { color: #56606a; }
html:not([data-theme="dark"]) .legal-note, html:not([data-theme="dark"]) .footer-meta { color: #56606a; }

/* ---------- Product page ---------- */
.variant-field select, .qty-field input { background: rgba(255, 255, 255, .06); font-size: 14px; min-height: 46px; }
html:not([data-theme="dark"]) .variant-field select, html:not([data-theme="dark"]) .qty-field input,
html:not([data-theme="dark"]) .variant-field textarea { background: #fff; color: #252a30; border-color: rgba(40, 48, 57, .22); }
.variant-field textarea { font-size: 14px; }
.product-detail-copy > p:not(.eyebrow):not(.product-demo-badge):not(.product-note):not(.form-feedback) { font-size: 14px; }
html:not([data-theme="dark"]) .product-detail-copy > p:not(.eyebrow):not(.product-demo-badge):not(.product-note):not(.form-feedback) { color: #56606a; }
.product-note { font-size: 13px; line-height: 1.7; }
@media (max-width: 860px) {
  .product-detail { grid-template-columns: 1fr !important; gap: 28px !important; align-items: start; }
  .product-detail-visual { height: auto !important; aspect-ratio: 1 / 1; max-height: 520px; }
  .product-detail-copy h1 { font-size: clamp(38px, 11vw, 54px); }
  .product-buy-row { flex-wrap: wrap; gap: 14px; }
  .breadcrumb { margin-top: 8px; }
}
.reveal-on-scroll { will-change: auto; }

.ship-select{display:flex;flex-direction:column;gap:6px;margin:12px 0;font-size:.9rem}
.ship-select select{padding:12px 14px;border-radius:12px;border:1px solid var(--line,#bbb);background:var(--surface,#fff);color:inherit;font:inherit}
