/* De Oliveira Hair Care Systems — clinical-heritage apothecary
   This is Fable's actual first design: deep heritage green + ivory + gold,
   Fraunces (display) / Inter (body), soft rounded forms, no product-photo hero wall. */
:root {
  --bg: #f6f2e8;          /* ivory background */
  --surface: #fffdf8;     /* cream card/panel surface */
  --ink: #232620;         /* near-black ink for body text */
  --muted: #6a7066;       /* muted sage-grey secondary text */
  --accent: #a8873d;      /* gold — buttons, CTA fills */
  --accent-deep: #8f7234; /* darker gold — links, labels, hover */
  --accent-light: #c9a85c;/* soft gold — accents on dark green panels */
  --accent-tint: #e6ece4; /* pale sage tint — selected states */
  --panel-dark: #1d3a2d;  /* deep heritage green — header / footer / hero */
  --panel-dark-2: #13281e;/* deeper green — hovers, gradients */
  --line: #dde3d6;        /* soft sage hairline / border */
  --sale: #8c3a2a;        /* rust — strike-through / error */
  --field-1: #dce6d4;     /* soft sage — catalogue field tones */
  --field-2: #f1ede0;
  --field-3: #9fae92;
  --field-4: #e3d9b8;
  --radius: 14px;
  --radius-pill: 999px;
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); line-height: 1.1; letter-spacing: -0.01em; font-weight: 600; color: var(--panel-dark); }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }
.mono, .mono-sm { font-family: var(--body); font-weight: 600; font-variant-numeric: tabular-nums; }
.mono-sm { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.mono-sm a { color: var(--accent-deep); }
.eyebrow { color: var(--accent-deep); margin-bottom: 14px; text-transform: uppercase; letter-spacing: .14em; font-size: 12px; }
.lede { font-size: 1.1rem; color: var(--muted); max-width: 620px; }

/* ---------- chrome ---------- */
.topbar { background: var(--panel-dark-2); color: var(--bg); font-family: var(--body); font-weight: 600; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; display: flex; justify-content: center; gap: 10px; padding: 7px 12px; flex-wrap: wrap; }
.topbar-sep { opacity: .4; }
.site-head { background: var(--panel-dark); color: var(--bg); border-bottom: 1px solid rgba(201,168,92,.3); position: sticky; top: 0; z-index: 50; }
.head-row { display: flex; align-items: center; gap: 28px; padding: 14px 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { font-family: var(--body); font-weight: 700; background: var(--accent); color: var(--panel-dark); padding: 7px 9px; font-size: 14px; letter-spacing: .05em; border-radius: 8px; }
.brand-text { font-family: var(--display); font-weight: 800; font-size: 17px; letter-spacing: .01em; line-height: 1.1; color: var(--bg); }
.brand-text em { display: block; font-style: normal; font-family: var(--body); font-weight: 600; font-size: 9.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--accent-light); }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { text-decoration: none; font-size: 14px; font-weight: 500; padding: 7px 13px; border-radius: var(--radius-pill); color: rgba(246,242,232,.82); }
.nav a:hover, .nav a.on { background: rgba(201,168,92,.16); color: var(--bg); }
.cart-link { text-decoration: none; font-family: var(--body); font-weight: 600; font-size: 13px; border: 1px solid var(--accent-light); border-radius: var(--radius-pill); padding: 8px 16px; background: transparent; color: var(--bg); display: flex; gap: 8px; align-items: center; }
.cart-link:hover { background: var(--accent); color: var(--panel-dark); border-color: var(--accent); }
.cart-count { background: var(--accent); color: var(--panel-dark); min-width: 20px; text-align: center; padding: 0 5px; border-radius: 10px; font-size: 11px; line-height: 20px; }

/* ---------- buttons ---------- */
.btn { display: inline-block; font-family: var(--body); font-weight: 600; font-size: 15px; text-decoration: none; padding: 13px 26px; border: 1.5px solid var(--panel-dark); border-radius: var(--radius-pill); background: var(--surface); color: var(--panel-dark); cursor: pointer; transition: all .15s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(29,58,45,.18); }
.btn-primary { background: var(--accent); border-color: var(--accent-deep); color: var(--panel-dark-2); }
.btn-primary:hover { box-shadow: 0 8px 20px rgba(143,114,52,.35); }
.btn-ghost { background: transparent; }
.hero .btn-ghost { border-color: rgba(246,242,232,.6); color: var(--bg); }
.hero .btn-ghost:hover { background: rgba(246,242,232,.12); box-shadow: none; }
.btn-wide { width: 100%; text-align: center; }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }
.link-btn { background: none; border: none; font-family: var(--body); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); cursor: pointer; text-decoration: underline; }
.link-btn:hover { color: var(--sale); }
.center { text-align: center; display: block; }

/* ---------- hero (text-only, no product-photo wall) ---------- */
.hero { position: relative; background: linear-gradient(160deg, var(--panel-dark) 0%, var(--panel-dark-2) 100%); color: var(--bg); padding: 88px 0 100px; overflow: hidden; }
.hero::after { content: ''; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%; border: 1px solid rgba(201,168,92,.35); }
.hero::before { content: ''; position: absolute; right: -60px; top: -60px; width: 420px; height: 420px; border-radius: 50%; border: 1px solid rgba(201,168,92,.22); }
.hero-inner { position: relative; max-width: 720px; }
.hero .eyebrow { color: var(--accent-light); }
.hero h1 { color: var(--bg); font-size: clamp(2.1rem, 4.6vw, 3.4rem); margin: 0 0 20px; }
.hero .lede { color: rgba(246,242,232,.82); }
.hero-badge { position: absolute; right: 6vw; bottom: 40px; display: flex; align-items: center; gap: 10px; color: var(--accent-light); border: 1px solid rgba(201,168,92,.5); border-radius: var(--radius); padding: 12px 20px; font-size: .78rem; line-height: 1.25; letter-spacing: .06em; text-transform: uppercase; }
.hero-badge .num { font-family: var(--display); font-weight: 700; font-size: 2.2rem; color: var(--bg); }

/* ---------- award strip ---------- */
.award-strip { background: var(--panel-dark); color: var(--bg); }
.award-row { display: grid; grid-template-columns: repeat(4, 1fr); }
.award { padding: 22px 18px; border-left: 1px solid rgba(201,168,92,.22); display: flex; flex-direction: column; gap: 3px; }
.award:first-child { border-left: none; }
.award-year { font-family: var(--body); font-weight: 700; color: var(--accent-light); font-size: 13px; }
.award-name { font-family: var(--display); font-weight: 600; font-size: 14.5px; line-height: 1.25; }
.award .mono-sm { color: rgba(236,221,192,.6); }

/* ---------- sections ---------- */
.sec, .system, .cats, .visit, .shop-grid-sec, .related { padding: 64px 0; }
.sec-head { margin-bottom: 36px; max-width: 640px; }
.sec-head h2 { font-size: clamp(26px, 3.4vw, 38px); margin: 6px 0 8px; }
.sec-head p { color: var(--muted); }
.sec-num { color: var(--accent-deep); }

/* system steps */
.system { border-bottom: 1px solid var(--line); }
.steps-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; text-decoration: none; display: flex; flex-direction: column; gap: 8px; position: relative; transition: all .15s; }
.step:hover { background: var(--accent-tint); transform: translateY(-3px); box-shadow: 0 10px 22px rgba(29,58,45,.12); }
.step-num { font-family: var(--body); font-weight: 700; font-size: 26px; color: var(--accent-deep); }
.step-img img { aspect-ratio: 1; object-fit: contain; mix-blend-mode: multiply; }
.step h3 { font-size: 14.5px; font-weight: 500; line-height: 1.3; }
.sys-note { margin-top: 22px; color: var(--muted); }
.sys-note a { color: var(--accent-deep); }

/* category tiles */
.cats { border-bottom: 1px solid var(--line); }
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cat-tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; text-decoration: none; display: flex; flex-direction: column; gap: 10px; transition: all .15s; }
.cat-tile:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(29,58,45,.14); border-color: var(--accent-deep); }
.cat-tile h3 { font-size: 24px; }
.cat-tile p { color: var(--muted); font-size: 14.5px; flex: 1; }
.tile-go { font-family: var(--body); font-weight: 700; font-size: 12px; color: var(--accent-deep); }

/* quote band */
.quote-band { background: var(--panel-dark); color: var(--bg); padding: 70px 0; }
.quote-band { text-align: center; }
.quote-band blockquote { font-family: var(--display); font-size: clamp(22px, 3vw, 32px); font-weight: 500; line-height: 1.3; max-width: 36ch; margin: 0 auto 20px; }
.quote-band .mono-sm { color: rgba(236,221,192,.75); }
.quote-band a { color: var(--accent-light); }

/* visit */
.visit-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 28px; }
.visit-grid h2 { font-size: 30px; margin: 6px 0; }
.visit-grid h4 { font-family: var(--body); font-weight: 700; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-deep); margin-bottom: 8px; }
.visit-grid p { font-size: 15px; color: var(--muted); }

/* ---------- page head ---------- */
.page-head { border-bottom: 1px solid var(--line); padding: 52px 0 34px; background:
  linear-gradient(var(--bg) 0 0) padding-box,
  repeating-linear-gradient(90deg, transparent 0 119px, var(--line) 119px 120px); }
.page-head h1 { font-size: clamp(32px, 4.4vw, 50px); }
.filter-tabs { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.filter-tabs a { font-family: var(--body); font-weight: 600; font-size: 12.5px; text-transform: uppercase; letter-spacing: .05em; text-decoration: none; border: 1px solid var(--line); border-radius: var(--radius-pill); background: var(--surface); padding: 7px 14px; }
.filter-tabs a.on, .filter-tabs a:hover { background: var(--panel-dark); color: var(--bg); border-color: var(--panel-dark); }

/* ---------- small product grid (system/related) ---------- */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; display: flex; flex-direction: column; transition: all .15s; }
.card:hover { border-color: var(--accent-deep); transform: translateY(-3px); box-shadow: 0 10px 24px rgba(29,58,45,.12); }
.card-img { position: relative; padding: 18px; border-bottom: 1px solid var(--line); }
.card-img img { aspect-ratio: 1; object-fit: contain; mix-blend-mode: multiply; }
.tag { position: absolute; top: 10px; left: 10px; font-family: var(--body); font-weight: 700; font-size: 10px; letter-spacing: .08em; background: var(--panel-dark); color: var(--bg); padding: 3px 8px; border-radius: 6px; }
.tag-kit { background: var(--accent-deep); }
.pd-info .tag { position: static; display: inline-block; margin: 0 6px 12px 0; }
.card-meta { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card-meta h3 { font-size: 15.5px; font-weight: 500; line-height: 1.3; flex: 1; }
.card-price { font-family: var(--body); font-weight: 600; font-size: 14.5px; }
.card-price .from { color: var(--muted); font-size: 12px; }
.card-price s { color: var(--sale); font-size: 12px; margin-left: 6px; }

/* ---------- product page ---------- */
.pd { padding: 56px 0; }
.pd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.pd-media { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; position: sticky; top: 90px; }
.pd-media > img { aspect-ratio: 1; object-fit: contain; mix-blend-mode: multiply; }
.pd-thumbs { display: flex; gap: 10px; margin-top: 16px; border-top: 1px solid var(--line); padding-top: 16px; }
.pd-thumbs img { width: 64px; height: 64px; object-fit: contain; border: 1px solid var(--line); cursor: pointer; padding: 6px; background: var(--surface); }
.pd-thumbs img:hover { border-color: var(--accent-deep); }
.crumbs { margin-bottom: 16px; }
.crumbs a { text-decoration: none; color: var(--muted); }
.crumbs a:hover { color: var(--accent-deep); }
.pd-info h1 { font-size: clamp(28px, 3.6vw, 42px); margin: 6px 0 14px; }
.pd-priceline { display: flex; align-items: baseline; gap: 12px; }
.pd-price { font-family: var(--body); font-weight: 700; font-size: 28px; }
.pd-priceline s { color: var(--sale); font-family: var(--body); font-weight: 600; }
.pd-form { margin: 24px 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 20px; }
.opt-set { border: none; margin-bottom: 18px; display: flex; gap: 8px; flex-wrap: wrap; }
.opt-set legend { margin-bottom: 10px; }
.opt-pill input { position: absolute; opacity: 0; }
.opt-pill span { display: inline-block; border: 1px solid var(--line); padding: 9px 16px; font-size: 14px; cursor: pointer; background: var(--bg); }
.opt-pill input:checked + span { border-color: var(--accent-deep); background: var(--accent-tint); color: var(--panel-dark); font-weight: 600; }
.qty-row { display: flex; gap: 12px; }
.qty { display: flex; border: 1px solid var(--line); border-radius: var(--radius-pill); overflow: hidden; background: var(--bg); }
.qty button { width: 40px; border: none; background: none; font-size: 18px; cursor: pointer; font-family: var(--body); }
.qty button:hover { background: var(--panel-dark); color: var(--bg); }
.qty input { width: 46px; border: none; background: none; text-align: center; font-family: var(--body); font-weight: 600; font-size: 15px; }
.pd-desc { color: var(--muted); margin: 20px 0; max-width: 56ch; }
.pd-notes { border-top: 1px solid var(--line); padding-top: 14px; display: flex; flex-direction: column; gap: 4px; }

/* ---------- cart ---------- */
.cart-grid, .co-grid { display: grid; grid-template-columns: 7fr 4fr; gap: 40px; align-items: start; }
.cart-lines { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.line { display: grid; grid-template-columns: 86px 1fr auto; gap: 18px; padding: 18px; border-bottom: 1px solid var(--line); align-items: center; }
.line:last-child { border-bottom: none; }
.line img { width: 86px; height: 86px; object-fit: contain; background: var(--bg); border: 1px solid var(--line); padding: 6px; mix-blend-mode: multiply; }
.line-info h3 { font-size: 16px; font-weight: 500; }
.line-actions { display: flex; gap: 16px; align-items: center; margin-top: 10px; }
.line-price { font-size: 16px; }
.summary { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 22px; display: flex; flex-direction: column; gap: 12px; position: sticky; top: 90px; }
.sum-row { display: flex; justify-content: space-between; gap: 14px; font-size: 14.5px; border-bottom: 1px dotted var(--line); padding-bottom: 8px; }
.sum-row.total { font-weight: 600; font-size: 17px; border-bottom: 2px solid var(--panel-dark); }
.empty { text-align: center; padding: 60px 0; display: flex; flex-direction: column; gap: 18px; align-items: center; }

/* ---------- checkout ---------- */
.co-form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.co-form h3 { font-size: 19px; margin-top: 14px; display: flex; align-items: center; gap: 10px; }
.co-form h3:first-of-type { margin-top: 0; }
.fnum { background: var(--panel-dark); color: var(--bg); width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; font-size: 11px; font-weight: 700; }
.co-form label { display: flex; flex-direction: column; gap: 5px; font-size: 13px; font-weight: 500; flex: 1; }
.co-form input, .co-form select { border: 1px solid var(--line); border-radius: 8px; background: var(--bg); padding: 11px 12px; font-size: 15px; font-family: var(--body); }
.co-form input:focus, .co-form select:focus { outline: 2px solid var(--accent-deep); border-color: var(--accent-deep); }
.frow { display: flex; gap: 14px; }
.ship-opts { display: flex; flex-direction: column; gap: 10px; }
.ship-opt { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; cursor: pointer; background: var(--bg); }
.ship-opt:has(input:checked) { border-color: var(--accent-deep); background: var(--accent-tint); }
.ship-name { flex: 1; font-weight: 600; font-size: 14.5px; }
.ship-name em { display: block; font-style: normal; font-weight: 400; font-size: 13px; color: var(--muted); }
.pay-note { border: 1px dashed var(--accent-deep); background: var(--accent-tint); padding: 14px 16px; font-size: 14px; }
.notice.err { background: #f3e0d8; border: 1px solid var(--sale); color: var(--sale); padding: 12px 14px; font-size: 14px; }

/* ---------- receipt ---------- */
.receipt { max-width: 640px; display: flex; flex-direction: column; gap: 22px; }
.receipt-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.receipt-card hr { border: none; border-top: 1px dashed var(--line); margin: 10px 0; }
.receipt-card ol { padding-left: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 14.5px; color: var(--muted); }
.receipt-card h3 { font-size: 18px; }

/* ---------- about / prose ---------- */
.prose p { margin-bottom: 16px; color: var(--ink); }
.prose a { color: var(--accent-deep); }
.prose h2 { font-size: 24px; margin: 26px 0 10px; }
.prose-note { margin-top: 22px; color: var(--muted); font-size: 14.5px; max-width: 70ch; }
.award-list { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.award-card { display: flex; gap: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.award-card .award-year { color: var(--accent-deep); font-size: 20px; }
.award-card h3 { font-size: 17px; }
.award-card p { font-size: 13.5px; color: var(--muted); }
.letters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.letter { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; font-size: 14px; color: var(--ink); display: flex; flex-direction: column; gap: 10px; }
.letter-sig { font-family: var(--display); font-weight: 700; }

/* ---------- footer ---------- */
.site-foot { background: var(--panel-dark); color: #cdd8c6; margin-top: 40px; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 28px; padding: 48px 24px 36px; }
.foot-brand { font-family: var(--display); font-weight: 800; color: var(--bg); font-size: 18px; line-height: 1.25; margin-bottom: 10px; }
.site-foot h4 { font-family: var(--body); font-weight: 700; font-size: 11px; letter-spacing: .1em; color: var(--accent-light); margin-bottom: 10px; }
.site-foot p { font-size: 14px; }
.site-foot a { color: #e4e9dd; }
.foot-base { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid rgba(236,221,192,.15); padding-top: 18px; padding-bottom: 22px; }
.foot-base .mono-sm { color: rgba(236,221,192,.45); }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .pd-grid, .cart-grid, .co-grid { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .steps-row { grid-template-columns: repeat(2, 1fr); }
  .cat-grid, .letters, .award-list { grid-template-columns: 1fr; }
  .award-row { grid-template-columns: repeat(2, 1fr); }
  .award { border-top: 1px solid rgba(236,221,192,.18); }
  .visit-grid, .foot-grid { grid-template-columns: 1fr 1fr; }
  .nav { display: none; }
  .pd-media, .summary { position: static; }
}
@media (min-width: 768px) {
  .cat-head-row { flex-direction: row; justify-content: space-between; align-items: flex-end; }
  }
@media (max-width: 639px) {
  .hero { padding: 64px 0 56px; }
  .hero-badge { position: static; margin: 30px 24px 0; display: inline-flex; }
}
@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; }
  .steps-row { grid-template-columns: 1fr; }
  .frow { flex-direction: column; }
  .visit-grid, .foot-grid { grid-template-columns: 1fr; }
  .head-row { flex-wrap: wrap; gap: 12px; }
}
