/* ŽITIE — design system. Luxury monogram: black/ivory + coral/peach/deep-teal. */

:root {
  --ink: #1b2422;
  --teal: #16403f;
  --teal-deep: #0e2b2a;
  --ivory: #f7f1e6;
  --ivory-2: #efe6d6;
  --coral: #e8714f;
  --coral-dark: #c85a3b;
  --peach: #f3b893;
  --line: rgba(27, 36, 34, 0.14);
  --font-display: "Iowan Old Style", "Palatino Linotype", Georgia, "Times New Roman", serif;
  --font-body: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  --radius: 14px;
  --shadow-1: 0 1px 2px rgba(27,36,34,.08), 0 8px 24px -8px rgba(27,36,34,.18);
  --container: 1200px;
}

* { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.1; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--coral); color: #fff; padding: .6em 1em; z-index: 200; }
.skip-link:focus { left: 0; }
:focus-visible { outline: 2.5px solid var(--coral); outline-offset: 3px; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 1.5rem; }
@media (max-width: 640px) { .container { padding: 0 1.1rem; } }

/* ---------- Grain / texture overlay ---------- */
.grain-overlay { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; opacity: .05; z-index: 999; mix-blend-mode: multiply; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(247,241,230,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header__inner { max-width: var(--container); margin: 0 auto; padding: .9rem 1.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: flex; align-items: center; gap: .6rem; flex-shrink: 0; }
.brand__mark { width: 34px; height: 34px; color: var(--teal); flex-shrink: 0; }
.brand__word { font-family: var(--font-display); font-size: 1.3rem; letter-spacing: .06em; display: flex; flex-direction: column; line-height: 1.15; }
.brand__sub { font-family: var(--font-body); font-size: .56rem; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); font-weight: 600; }
.nav-toggle { display: none; background: none; border: none; width: 44px; height: 44px; align-items: center; justify-content: center; cursor: pointer; color: var(--ink); }
.icon { width: 22px; height: 22px; }
.icon--sm { width: 16px; height: 16px; }
.site-nav { display: flex; align-items: center; gap: 1.6rem; flex-wrap: wrap; }
.site-nav a { font-size: .92rem; font-weight: 600; letter-spacing: .01em; padding: .3em 0; position: relative; }
.site-nav a:not(.nav-cart)::after { content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0; background: var(--coral); transition: width .25s ease; }
.site-nav a:not(.nav-cart):hover::after, .site-nav a.is-active::after { width: 100%; }
.nav-cart { display: flex; align-items: center; gap: .4em; background: var(--teal); color: var(--ivory); padding: .5em .9em; border-radius: 999px; }
.cart-count { background: var(--coral); color: #fff; border-radius: 999px; min-width: 1.4em; padding: .05em .4em; font-size: .78em; text-align: center; }
.cart-count.bump { animation: bump .4s ease; }
@keyframes bump { 0%{transform:scale(1)} 40%{transform:scale(1.4)} 100%{transform:scale(1)} }
.nav-close { display: none; }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-overlay { position: fixed; inset: 0; background: rgba(14,43,42,.5); z-index: 150; }
  .site-nav {
    position: fixed; top: 0; right: 0; height: 100vh; width: min(320px, 86vw);
    background: var(--teal-deep); color: var(--ivory); flex-direction: column; align-items: flex-start;
    padding: 5rem 1.8rem 2rem; gap: 1.4rem; z-index: 160;
    transform: translateX(100%); visibility: hidden; transition: transform .35s ease;
  }
  .site-nav.is-open { transform: translateX(0); visibility: visible; }
  .site-nav a { color: var(--ivory); font-size: 1.05rem; }
  .nav-cart { background: var(--coral); }
  .nav-close { display: flex; position: absolute; top: 1.2rem; right: 1.2rem; background: none; border: none; color: var(--ivory); width: 44px; height: 44px; align-items: center; justify-content: center; cursor: pointer; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; font-weight: 700; font-size: .92rem; letter-spacing: .02em; padding: .8em 1.6em; border-radius: 999px; border: 1.5px solid transparent; cursor: pointer; min-height: 44px; transition: transform .2s ease, box-shadow .2s ease; position: relative; overflow: hidden; }
.btn--primary { background: var(--coral); color: #fff; }
.btn--primary:hover { box-shadow: var(--shadow-1); transform: translateY(-1px); }
.btn--dark { background: var(--teal); color: var(--ivory); }
.btn--light { background: var(--ivory); color: var(--teal-deep); }
.btn--outline { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn--ghost-dark { background: transparent; border-color: rgba(247,241,230,.6); color: var(--ivory); }
.btn--ghost-dark:hover { background: rgba(247,241,230,.12); }
.btn--sweep::before { content: ""; position: absolute; inset: 0; left: -100%; width: 100%; background: var(--coral-dark); z-index: 0; transition: left .3s ease; }
.btn--sweep:hover::before { left: 0; }
.btn--sweep span, .btn--sweep { z-index: 1; }
.btn--block { width: 100%; }
.btn--sm { padding: .5em 1.1em; font-size: .82rem; min-height: 38px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ---------- Home hero ---------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(160deg, var(--ivory) 0%, var(--ivory-2) 70%); padding: 6rem 0 5rem; }
.hero__pattern { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--teal); z-index: 0; }
.hero__shape { position: absolute; width: 180px; height: 180px; color: var(--coral); opacity: .35; z-index: 0; }
.hero__shape--1 { top: 8%; right: 8%; }
.hero__shape--2 { bottom: 6%; left: 4%; width: 140px; height: 140px; color: var(--teal); opacity: .3; }
.hero__inner { position: relative; z-index: 1; }
.hero__title { font-size: clamp(2.6rem, 8vw, 5.4rem); margin-bottom: .5em; }
.hero__title em { font-style: normal; color: var(--coral-dark); }
.hero__lead { max-width: 42ch; font-size: 1.1rem; }
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1rem; }

.index-nav { display: flex; gap: 2rem; flex-wrap: wrap; padding: 2rem 1.5rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.index-nav a { display: flex; align-items: center; gap: .6em; font-weight: 700; font-size: .95rem; }
.index-nav span { font-family: var(--font-mono); color: var(--coral-dark); font-size: .85rem; }

.scent-planner__box { background: rgba(247,241,230,.06); border: 1.5px solid rgba(247,241,230,.2); border-radius: var(--radius); padding: 1.8rem; }
.scent-planner__controls { display: flex; gap: 1.2rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.scent-planner__controls .field { min-width: 200px; }
.scent-planner__controls label { color: var(--ivory); }
.scent-planner__controls select { background: var(--ivory); color: var(--ink); }
.scent-planner__result { background: rgba(247,241,230,.08); border-radius: 10px; padding: 1.2rem 1.4rem; color: var(--ivory); }
.scent-planner__result p { color: var(--peach); }

.care-card { background: #fff; border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow-1); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: 4.5rem 0 3rem; background: var(--teal-deep); color: var(--ivory); position: relative; overflow: hidden; }
.page-hero__inner { max-width: var(--container); margin: 0 auto; padding: 0 1.5rem; position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(2.1rem, 5vw, 3.2rem); color: var(--ivory); }
.page-hero p { color: var(--peach); max-width: 46ch; font-size: 1.05rem; }
.page-hero__pattern { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .14; color: var(--peach); }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { display: flex; gap: .5em; font-size: .85rem; color: var(--peach); flex-wrap: wrap; margin-bottom: 1rem; }
.breadcrumbs a { text-decoration: underline; text-decoration-color: transparent; transition: text-decoration-color .2s; }
.breadcrumbs a:hover { text-decoration-color: currentColor; }

/* ---------- Prose (legal text) ---------- */
.prose { max-width: 68ch; margin: 0 auto; padding: 3rem 1.5rem 5rem; }
.prose h2 { font-size: 1.5rem; margin-top: 2em; }
.prose h3 { font-size: 1.15rem; margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .5em; }
.prose a { text-decoration: underline; color: var(--coral-dark); }

/* ---------- Legal TOC ---------- */
.legal-toc { background: var(--ivory-2); border-radius: var(--radius); padding: 1.3rem 1.6rem; margin: 2rem 0; }
.legal-toc h2 { font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; }
.legal-toc ol { margin: 0; padding-left: 1.2em; }
.legal-toc a { color: var(--teal); text-decoration: underline; }

/* ---------- Notice ---------- */
.notice { border-radius: var(--radius); padding: 1.1rem 1.4rem; border: 1.5px solid var(--line); background: #fff; margin: 1.5rem 0; }
.notice--info { border-color: var(--teal); background: rgba(22,64,63,.06); }
.notice--warn { border-color: var(--coral); background: rgba(232,113,79,.08); }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: .35em; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .85rem; font-weight: 700; }
.field input, .field select, .field textarea {
  font: inherit; padding: .75em .9em; border-radius: 10px; border: 1.5px solid var(--line);
  background: #fff; accent-color: var(--coral); min-height: 44px;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--coral); }
.field-error { color: var(--coral-dark); font-size: .8rem; min-height: 1.2em; }
.field-inline { display: flex; gap: .6rem; }
.field-inline input { flex: 1; min-width: 0; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-msg { min-height: 1.3em; font-size: .85rem; margin-top: .4em; }
.form-msg--ok { color: var(--teal); }
.form-msg--error { color: var(--coral-dark); }

/* ---------- FAQ ---------- */
.faq { max-width: 68ch; margin: 0 auto; padding: 1rem 1.5rem 5rem; display: flex; flex-direction: column; gap: .8rem; }
.faq-item { border: 1.5px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; }
.faq-item summary { padding: 1.1rem 1.4rem; font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1em; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.4rem; color: var(--coral); flex-shrink: 0; }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { padding: 0 1.4rem 1.2rem; color: #42504d; }

/* ---------- Product grid / cards ---------- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.6rem; }
.product-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-1); display: flex; flex-direction: column; }
.product-card__media { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.product-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.product-card:hover .product-card__media img { transform: scale(1.06); }
.product-card__tag { position: absolute; top: .7rem; left: .7rem; background: var(--coral); color: #fff; font-size: .72rem; font-weight: 700; padding: .25em .7em; border-radius: 999px; }
.product-card__body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.product-card__cat { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--teal); font-weight: 700; }
.product-card__name { font-size: 1.1rem; margin: 0; }
.product-card__price { font-weight: 800; color: var(--coral-dark); font-size: 1.05rem; margin-top: auto; }
.product-strip { display: flex; gap: 1.2rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .5rem; }
.product-strip .product-card { flex: 0 0 240px; scroll-snap-align: start; }
.filter-chips { display: flex; gap: .6rem; flex-wrap: wrap; margin-bottom: 1.6rem; }
.filter-chip { border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: .5em 1.1em; font-size: .85rem; font-weight: 600; cursor: pointer; min-height: 40px; }
.filter-chip.is-active { background: var(--teal); color: var(--ivory); border-color: var(--teal); }

/* ---------- Product detail ---------- */
.product-detail { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: start; padding: 3rem 1.5rem 5rem; max-width: var(--container); margin: 0 auto; }
@media (max-width: 800px) { .product-detail { grid-template-columns: 1fr; gap: 1.8rem; } }
.product-detail__media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; }
.product-detail__media img { width: 100%; height: 100%; object-fit: cover; }
.product-detail__price { font-size: 1.8rem; font-weight: 800; color: var(--coral-dark); }
.product-detail__qty { display: flex; align-items: center; gap: .7rem; margin: 1.2rem 0; }
.product-detail__qty button { width: 40px; height: 40px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font-size: 1.1rem; cursor: pointer; }
.product-detail__qty input { width: 3em; text-align: center; border: 1.5px solid var(--line); border-radius: 10px; padding: .5em; font: inherit; }

/* ---------- Cart / checkout ---------- */
.cart-table { width: 100%; border-collapse: collapse; margin-bottom: 2rem; }
.cart-table th, .cart-table td { text-align: left; padding: .9rem .6rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.cart-table img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; }
.cart-table__remove { background: none; border: none; color: var(--coral-dark); font-weight: 700; cursor: pointer; min-height: 44px; }
.cart-summary { background: var(--ivory-2); border-radius: var(--radius); padding: 1.6rem; max-width: 380px; margin-left: auto; }
.cart-summary__row { display: flex; justify-content: space-between; margin-bottom: .6rem; }
.cart-summary__total { font-weight: 800; font-size: 1.2rem; border-top: 1px solid var(--line); padding-top: .7rem; }
.cart-empty { text-align: center; padding: 4rem 1rem; }

/* ---------- Contact layout ---------- */
.contact-layout { display: grid; grid-template-columns: 1fr 1.1fr; gap: 3rem; max-width: var(--container); margin: 0 auto; padding: 3rem 1.5rem 5rem; }
@media (max-width: 800px) { .contact-layout { grid-template-columns: 1fr; } }
.contact-card { display: flex; gap: .9rem; align-items: flex-start; margin-bottom: 1.4rem; }
.contact-card svg { width: 26px; height: 26px; color: var(--coral); flex-shrink: 0; }

/* ---------- Utility ---------- */
.section { padding: 5rem 0; }
.section--tight { padding: 3rem 0; }
.section--dark { background: var(--teal-deep); color: var(--ivory); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
@media (max-width: 760px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mb-0 { margin-bottom: 0; }
.text-center { text-align: center; }
.eyebrow { font-size: .78rem; text-transform: uppercase; letter-spacing: .16em; font-weight: 700; color: var(--coral-dark); }

/* ---------- Reveal / motion ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in-view { opacity: 1; transform: none; }
.reveal--clip { clip-path: inset(0 0 100% 0); opacity: 1; transform: none; transition: clip-path .7s ease; }
.reveal--clip.in-view { clip-path: inset(0 0 0% 0); }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal--clip { opacity: 1 !important; transform: none !important; clip-path: none !important; transition: none !important; }
}
.stagger > * { transition-delay: calc(var(--i, 0) * 80ms); }

/* ---------- Toast ---------- */
.toast { position: fixed; bottom: 1.5rem; left: 50%; transform: translate(-50%, 20px); background: var(--teal-deep); color: var(--ivory); padding: .8em 1.4em; border-radius: 999px; opacity: 0; transition: opacity .3s ease, transform .3s ease; z-index: 500; font-weight: 600; font-size: .9rem; }
.toast--in { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Cookie banner ---------- */
.cookie-banner { position: fixed; left: 1rem; right: 1rem; bottom: 1rem; max-width: 560px; margin: 0 auto; background: var(--teal-deep); color: var(--ivory); border-radius: var(--radius); padding: 1.3rem 1.5rem; box-shadow: var(--shadow-1); z-index: 300; display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; }
.cookie-banner p { margin: 0; flex: 1 1 240px; font-size: .88rem; }
.cookie-banner a { text-decoration: underline; }
.cookie-banner__actions { display: flex; gap: .6rem; flex-shrink: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--teal-deep); color: var(--ivory); position: relative; padding-top: 1rem; }
.footer-divider { width: 100%; height: 40px; color: var(--peach); display: block; }
.site-footer__inner { max-width: var(--container); margin: 0 auto; padding: 1rem 1.5rem 2rem; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1.3fr; gap: 2rem; }
@media (max-width: 900px) { .site-footer__inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .site-footer__inner { grid-template-columns: 1fr; } }
.footer-col h3 { font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; color: var(--peach); margin-bottom: .8em; }
.footer-col { display: flex; flex-direction: column; gap: .55rem; }
.footer-col a { font-size: .92rem; opacity: .9; }
.footer-col a:hover { text-decoration: underline; }
.footer-tagline { font-size: .88rem; color: var(--peach); max-width: 28ch; }
.footer-email a { color: var(--ivory); text-decoration: underline; }
.newsletter-form .field-inline input { background: rgba(247,241,230,.1); border-color: rgba(247,241,230,.3); color: var(--ivory); }
.newsletter-form .field-inline input::placeholder { color: rgba(247,241,230,.6); }
.site-footer__bottom { text-align: center; padding: 1.2rem; border-top: 1px solid rgba(247,241,230,.15); font-size: .8rem; opacity: .8; }

/* COMPONENTS:
.container - centered max-width content wrapper
.site-header / .site-header__inner - sticky top nav bar
.brand / .brand__mark / .brand__word / .brand__sub - logo lockup
.nav-toggle / .nav-close / .site-nav / .nav-overlay - mobile off-canvas menu
.nav-cart / .cart-count - header cart link + animated badge
.btn / .btn--primary / .btn--dark / .btn--light / .btn--outline / .btn--ghost-dark / .btn--sweep / .btn--block / .btn--sm - button variants
.page-hero / .page-hero__inner / .page-hero__pattern - inner page hero banner
.breadcrumbs - small breadcrumb trail
.prose - long-form legal/readable text column
.legal-toc - table of contents box for legal pages
.notice / .notice--info / .notice--warn - callout boxes
.form-grid / .field / .field--full / .field-error / .field-inline / .hp-field / .form-msg - form layout and states
.faq / .faq-item - details/summary accordion
.product-grid / .product-card / .product-card__media / .product-card__tag / .product-card__body / .product-card__cat / .product-card__name / .product-card__price - catalog cards
.product-strip - horizontal scroll-snap product row (mobile)
.filter-chips / .filter-chip - catalog category filters
.product-detail / .product-detail__media / .product-detail__price / .product-detail__qty - single product page layout
.cart-table / .cart-summary / .cart-empty - cart and checkout layout
.contact-layout / .contact-card - contact page split layout
.section / .section--tight / .section--dark - vertical page section wrappers
.grid-2 / .grid-3 - simple responsive grids
.eyebrow - small uppercase label above headings
.reveal / .reveal--clip / .stagger / .in-view - scroll reveal animation hooks
.toast - transient confirmation message
.cookie-banner - consent banner fixed at bottom
.site-footer / .footer-col / .footer-divider - site footer layout
*/

/* ---------- Footer column variants ---------- */
.footer-col--brand { }
.footer-col--news { }

/* ---------- Scent planner section ---------- */
.scent-planner { }

/* ---------- Filter chip active state ---------- */
.filter-chip--active { background: var(--teal); color: var(--ivory); border-color: var(--teal); }

/* ---------- Cart table layout ---------- */
.cart-table__header { display: grid; grid-template-columns: 1fr 120px 120px 80px; gap: 1rem; padding: 0.9rem 0.6rem; border-bottom: 1.5px solid var(--line); font-weight: 700; background: var(--ivory-2); }
.cart-table__row { display: grid; grid-template-columns: 1fr 120px 120px 80px; gap: 1rem; padding: 0.9rem 0.6rem; border-bottom: 1px solid var(--line); align-items: center; }
@media (max-width: 640px) {
  .cart-table__header, .cart-table__row { grid-template-columns: 1fr 1fr; }
}

/* ---------- Product detail columns ---------- */
.product-detail__info { }

/* ---------- Product detail category ---------- */
.product-detail__cat { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--teal); font-weight: 700; }
