/* Felivela design tokens and shared storefront shell. */
:root {
  --fv-ink: #29332c;
  --fv-ink-soft: #3f4d42;
  --fv-muted: #5f655c;
  --fv-paper: #fbf9f4;
  --fv-cream: #f5f2eb;
  --fv-sand: #d8d1c5;
  --fv-card: #e2ddd2;
  --fv-clay: #61554a;
  --fv-line: #d8d1c5;
  --fv-radius-pill: 999px;
  --fv-radius-card: 2px;
  --fv-shadow-float: 0 16px 44px rgba(28, 31, 26, .16);
  --fv-space-1: .5rem;
  --fv-space-2: .75rem;
  --fv-space-3: 1rem;
  --fv-space-4: 1.5rem;
  --fv-space-5: 2.25rem;
  --fv-space-6: 3rem;
  --fv-display: clamp(2.45rem, 4.4vw, 4.2rem);
  --fv-title: clamp(1.85rem, 2.6vw, 2.75rem);
  --fv-section: clamp(1.6rem, 2.15vw, 2.35rem);
  --fv-card-title: 1.12rem;
  --fv-lede: .94rem;
  --fv-meta: .78rem;
  --fv-eyebrow: .66rem;
  --ink: var(--fv-ink);
  --muted: var(--fv-muted);
  --paper: var(--fv-paper);
  --cream: var(--fv-cream);
  --sand: var(--fv-sand);
  --card: var(--fv-card);
  --clay: var(--fv-clay);
  --line: var(--fv-line);
  --olive: var(--fv-ink-soft);
  --plum: var(--fv-ink-soft);
}

/* Accessibility foundation: shared by every Felivela storefront view. */
:focus-visible {
  outline: 3px solid #9a613f;
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  left: 1rem;
  top: 1rem;
  transform: translateY(-180%);
  padding: .78rem 1rem;
  background: var(--fv-ink);
  color: #fff;
  box-shadow: var(--fv-shadow-float);
  font-size: .82rem;
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus-visible {
  transform: translateY(0);
  color: #fff;
}

.mobile-nav[aria-hidden="true"] {
  visibility: hidden;
  pointer-events: none;
}

.mobile-nav.open[aria-hidden="false"] {
  visibility: visible;
  pointer-events: auto;
}

.header-search,
.bag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

button,
input:not([type="checkbox"]):not([type="radio"]),
select,
textarea {
  min-height: 44px;
}

input[type="checkbox"],
input[type="radio"] {
  box-sizing: border-box;
  width: 1.1rem;
  height: 1.1rem;
  min-width: 1.1rem;
  min-height: 1.1rem;
  margin: .18rem 0 0;
  padding: 0;
  flex: none;
  accent-color: var(--fv-ink-soft);
  vertical-align: top;
}

.checkout-consent,
.consent,
.check,
.stock-filter,
.radio,
#cookiePreferences label {
  display: flex !important;
  align-items: flex-start;
  gap: .6rem;
}

.checkout-consent input,
.consent input,
.check input,
.stock-filter input,
.radio input,
#cookiePreferences input[type="checkbox"],
#cookiePreferences input[type="radio"] {
  width: 1.1rem !important;
  height: 1.1rem;
  min-width: 1.1rem;
  min-height: 1.1rem;
  margin: .18rem 0 0;
}

.checkout-consent span,
.consent span,
.radio span {
  min-width: 0;
  line-height: 1.5;
}

html.mobile-nav-open,
html.mobile-nav-open body {
  overflow: hidden;
}

button:disabled,
input:disabled,
select:disabled,
textarea:disabled {
  cursor: not-allowed;
}

[aria-invalid="true"] {
  border-color: #a12d28 !important;
  box-shadow: 0 0 0 1px #a12d28;
}

.form-accessibility-status {
  min-height: 1.2em;
  margin: .6rem 0 0;
  color: #8d241f;
  font-size: .78rem;
  line-height: 1.45;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

@media (max-width: 760px) {
  body[data-page] .store-header-actions .bag,
  body[data-page] .store-header-actions .bag-button,
  body[data-page] .store-header-actions .member-actions a {
    min-height: 44px !important;
  }

  .purchase-secondary-actions a,
  .custom-order-link,
  .whatsapp-product-link {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
}

/* WCAG AA: legacy page palettes use a few warm card backgrounds that need
   darker supporting text than the global muted token. */
.material > div:last-child .eyebrow,
.category-editorial .eyebrow,
.category-hero-copy .eyebrow {
  color: #29332c;
}

.material > div:last-child > p:not(.eyebrow) {
  color: #463d34;
}

.account-access-card .eyebrow,
.account-access-card > p:not(.eyebrow),
.account-access-card small {
  color: #4f4d47;
}

#auth[hidden],
#dashboard[hidden],
.account-access-card[hidden],
body.account-signed-in #auth,
body.account-signed-in .account-access-card {
  display: none !important;
}

.account-auth-gate > .auth-copy,
.account-auth-gate > .auth-card {
  display: none !important;
}

.announcement #freeShippingAnnouncement {
  color: var(--fv-paper);
  opacity: 1;
}

/* Product-card titles are real links. On touch screens their target must be
   large enough without changing the editorial visual rhythm. */
@media (max-width: 760px) {
  .card-meta h3 > a,
  .category-product-meta h3 > a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
}

body { background: var(--fv-cream); color: var(--fv-ink); }
.announcement { box-sizing: border-box; min-height: 32px; height: 32px; padding: 0 var(--fv-space-3); display: flex; align-items: center; justify-content: center; gap: .45rem; overflow: hidden; background: var(--fv-ink-soft); color: var(--fv-paper); font-size: .62rem; line-height: 1; letter-spacing: .11em; white-space: nowrap; text-transform: uppercase; }
.announcement > span { margin: 0; flex: 0 0 auto; }

.store-header { max-width: 1280px; height: 86px; margin: auto; padding: 0 2rem; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; border-bottom: 1px solid var(--fv-line); background: var(--fv-cream); }
.store-brand { display: inline-flex; align-items: center; justify-self: start; }
.store-brand img, .wordmark img, .logo img { display: block; width: 154px; height: auto; }
.primary-nav { display: flex; align-items: center; justify-content: center; gap: 1.25rem; font-size: .74rem; letter-spacing: .025em; }
.primary-nav > a { display: inline-flex; align-items: center; min-height: 32px; padding: .35rem 0; border-bottom: 1px solid transparent; color: var(--fv-ink); line-height: 1; text-decoration: none; transition: color .2s, border-color .2s; }
.primary-nav > a:hover { color: var(--fv-clay); }
.primary-nav > a.active { border-bottom-color: currentColor; font-weight: 500; }
.store-header-actions { display: flex; align-items: center; justify-self: end; gap: .45rem; height: 32px; white-space: nowrap; }
.store-header-actions .header-search { box-sizing: border-box; display: grid; width: 32px; min-width: 32px; height: 32px; min-height: 32px; place-items: center; padding: 0; border: 1px solid currentColor; border-radius: 50%; color: var(--fv-ink); font: 400 1.08rem/1 Georgia, serif; text-decoration: none; }
.store-header-actions .header-search:hover { background: var(--fv-ink); color: var(--fv-paper); }
.store-header-actions .member-actions { display: inline-flex; align-items: center; height: 32px; }
.member-actions { display: flex; align-items: center; }
.member-actions a { box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; height: 32px; min-height: 32px; padding: 0 .62rem; border: 1px solid var(--fv-ink); color: var(--fv-ink); font: 500 .69rem/1 Arial, Helvetica, sans-serif; text-decoration: none; }
.member-actions a:first-child { border-radius: var(--fv-radius-pill) 0 0 var(--fv-radius-pill); }
.member-actions a + a { margin-left: -1px; background: var(--fv-ink); color: var(--fv-paper); }
.member-actions a:last-child { border-radius: 0 var(--fv-radius-pill) var(--fv-radius-pill) 0; }
.member-actions.is-signed-in a { border-radius: var(--fv-radius-pill); background: transparent; color: var(--fv-ink); }
.store-header-actions .bag,
.store-header-actions .bag-button { box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; height: 32px; min-height: 32px; margin: 0; padding: 0 .7rem; border: 1px solid var(--fv-ink); border-radius: var(--fv-radius-pill); background: transparent; color: var(--fv-ink); font: 500 .72rem/1 Arial, Helvetica, sans-serif; text-decoration: none; }
.bag, .bag-button { border: 1px solid var(--fv-ink); border-radius: var(--fv-radius-pill); color: var(--fv-ink); font-size: .73rem; text-decoration: none; }
.bag { padding: .48rem .75rem; }
.bag-button { padding: .5rem .75rem; background: transparent; cursor: pointer; }
.store-header-actions .bag span,
.store-header-actions .bag-button span { display: inline-grid; min-width: 16px; height: 16px; min-height: 16px; place-items: center; margin-left: .28rem; padding: 0 .22rem; border-radius: 50%; background: var(--fv-ink); color: var(--fv-paper); font-size: .62rem; line-height: 1; }
.bag span, .bag-button span { display: inline-grid; min-width: 1.25rem; min-height: 1.25rem; place-items: center; margin-left: .2rem; border-radius: 50%; background: var(--fv-ink); color: var(--fv-paper); font-size: .64rem; }

.store-footer { max-width: 1280px; margin: 0 auto; padding: var(--fv-space-6) 2rem 2.2rem; display: grid; grid-template-columns: minmax(190px, .8fr) minmax(0, 1.2fr) auto; gap: 2.5rem; align-items: start; border-top: 1px solid var(--fv-line); color: var(--fv-muted); font-size: .75rem; }
.store-footer-brand { display: block; }
.store-footer .wordmark { display: inline-block; margin-bottom: .75rem; }
.store-footer p { max-width: 245px; margin: 0; color: var(--fv-muted); line-height: 1.65; }
.store-footer-nav { display: flex; flex-wrap: wrap; gap: .75rem 1.2rem; padding-top: .18rem; }
.store-footer a { color: inherit; font-size: .75rem; text-decoration: none; }
.store-footer a:hover { color: var(--fv-ink); }
.store-footer-meta { display: grid; justify-items: end; gap: .65rem; text-align: right; }
.store-footer-meta p { white-space: nowrap; }

.heart,
.favorite,
.category-favorite {
  box-sizing: border-box;
  flex: none;
  display: grid;
  place-items: center;
  width: 36px;
  min-width: 36px;
  height: 36px;
  min-height: 36px;
  padding: 0;
  overflow: hidden;
  line-height: 0;
  font-size: 0;
}
.heart svg,
.favorite svg,
.category-favorite svg,
.favorite-mark {
  display: block;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linejoin: round;
  overflow: visible;
  pointer-events: none;
}
.heart.active svg,
.favorite.active svg,
.category-favorite.active svg {
  fill: currentColor;
}
.favorite,
.category-favorite {
  position: absolute;
  z-index: 2;
  top: .8rem;
  right: .8rem;
  border: 0;
  border-radius: 50%;
  background: #fffdf8;
  color: var(--fv-ink, var(--ink));
  cursor: pointer;
}
.heart.active,
.favorite.active,
.category-favorite.active {
  color: #9a613f;
}

.whatsapp-support { position: fixed; right: 1.15rem; bottom: 1.15rem; z-index: 30; padding: .78rem 1rem; border-radius: var(--fv-radius-pill); background: var(--fv-ink-soft); box-shadow: 0 10px 26px rgba(0,0,0,.18); color: var(--fv-paper) !important; font: 600 .75rem Arial, sans-serif; text-decoration: none; }
.cookie-banner { position: fixed; z-index: 40; right: 1rem; bottom: 1rem; left: 1rem; max-width: 660px; margin: auto; padding: var(--fv-space-3); display: flex; align-items: end; gap: 1.2rem; border: 1px solid var(--fv-line); background: var(--fv-paper); box-shadow: var(--fv-shadow-float); }
.cookie-banner strong { font: 600 .86rem Arial, sans-serif; }
.cookie-banner p, .cookie-banner a { font: .72rem/1.5 Arial, sans-serif; }
.cookie-banner p { margin: .35rem 0; color: var(--fv-muted); }
.cookie-banner a, .cookie-banner button { border-color: var(--fv-ink); color: var(--fv-ink); }
.cookie-banner > div:last-child { display: flex; gap: .5rem; flex: none; }
.cookie-banner button { padding: .6rem .7rem; border: 1px solid var(--fv-ink); background: transparent; cursor: pointer; font: .7rem Arial, sans-serif; }
.cookie-banner button[data-cookie="all"] { background: var(--fv-ink); color: var(--fv-paper); }
.footer-preferences { border:0; border-bottom:1px solid currentColor; padding:0; background:transparent; color:inherit; font:inherit; cursor:pointer; }
#cookiePreferences { width:min(460px,calc(100% - 2rem)); border:1px solid var(--fv-line); background:var(--fv-paper); color:var(--fv-ink); box-shadow:var(--fv-shadow-float); }
#cookiePreferences::backdrop { background:rgba(24,31,27,.46); }
#cookiePreferences form { display:grid; gap:1rem; }
#cookiePreferences h2,#cookiePreferences p { margin:0; }
#cookiePreferences p { color:var(--fv-muted); font:400 .88rem/1.55 Arial,sans-serif; }
#cookiePreferences label { display:flex; gap:.6rem; align-items:flex-start; min-height:44px; font:600 .84rem Arial,sans-serif; }
#cookiePreferences form > div { display:flex; justify-content:flex-end; gap:.6rem; }
#cookiePreferences button { min-height:44px; border:1px solid var(--fv-ink); padding:.55rem .75rem; background:transparent; color:var(--fv-ink); cursor:pointer; }
#cookiePreferences #saveCookiePreferences { background:var(--fv-ink); color:var(--fv-paper); }

@media (max-width: 820px) {
  .store-header { height: 68px; padding: 0 1rem; grid-template-columns: auto 1fr auto; gap: .75rem; }
  .store-brand img, .wordmark img, .logo img { width: 122px; }
  .primary-nav, .store-header-actions .member-actions { display: none; }
  .store-footer { padding: 2.25rem 1rem 1.5rem; grid-template-columns: 1fr; gap: 1.45rem; }
  .store-footer-meta { justify-items: start; text-align: left; }
  .store-footer a { display: inline-flex; align-items: center; min-height: 44px; }
}
@media (max-width: 600px) {
  .announcement { padding-inline: .7rem; font-size: .56rem; letter-spacing: .08em; }
  .cookie-banner { display: grid; align-items: start; }
  .cookie-banner > div:last-child { justify-content: flex-start; }
}

/* Last in the cascade so legacy header controls cannot shrink mobile touch targets. */
@media (max-width: 760px) {
  body[data-page] .store-header-actions .bag,
  body[data-page] .store-header-actions .bag-button,
  body[data-page] .store-header-actions .member-actions a {
    min-height: 44px !important;
  }

  .purchase-secondary-actions a,
  .custom-order-link,
  .whatsapp-product-link {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
}

/* Shared type scale: page styles used oversized display type, especially on phones.
   This layer sits last so home, category, product, auth and info pages share one rhythm. */
body {
  font-size: .9375rem;
  line-height: 1.55;
}
.eyebrow {
  font-size: var(--fv-eyebrow);
  letter-spacing: .12em;
  line-height: 1.35;
}

.hero h1,
.category-hero-copy h1,
body[data-landing-slug] .category-hero-copy h1,
.intro h1,
.atelier-hero .hero-copy h1,
.auth-story h1,
.page-hero h1,
.search-hero h1 {
  font-size: var(--fv-display);
  line-height: 1.04;
  letter-spacing: -.045em;
  text-wrap: balance;
}

.headline h1,
#productTitle,
.section-title h1,
.auth-panel h2,
.service-hero h1,
.account-hero h1 {
  font-size: var(--fv-title);
  line-height: 1.08;
  letter-spacing: -.04em;
  text-wrap: balance;
}

.intro h2,
.section-heading h2,
.notes h2,
.note-copy h2,
.related .section-head h2,
.product-use h2,
.product-editorial h2,
.reviews-head h2,
.story h2,
.material h2,
.category-catalog-head h2,
.category-editorial h2,
.category-support h2,
.atelier-intro h2,
.section-lead h2,
.know-copy h2,
.atelier-links h2,
.checkout-step h2,
.confirmation h2,
.info-block h2,
.collection-guide h2,
.craft-dialog h2,
.search-dialog h2 {
  font-size: var(--fv-section);
  line-height: 1.12;
  letter-spacing: -.035em;
  text-wrap: balance;
}

.hero-copy > p:not(.eyebrow),
.hero-content > p:not(.eyebrow),
.category-hero-copy > p:not(.eyebrow),
.intro > p:not(.eyebrow),
.intro-content > p:not(.eyebrow),
.page-hero > p:not(.eyebrow),
.auth-story > p:not(.eyebrow),
.auth-panel > p:not(.eyebrow) {
  font-size: var(--fv-lede);
  line-height: 1.65;
}

.card-meta h3,
.category-product-meta h3,
.product-meta h3,
.result-meta h2,
.related-card h3 {
  font-size: var(--fv-card-title);
  line-height: 1.2;
}
.journal h3 {
  font-size: 1.28rem;
  line-height: 1.2;
}
.category-path-card h3 {
  font-size: clamp(1.15rem, 1.4vw, 1.45rem);
}

.mobile-nav nav {
  gap: .85rem;
  padding: 1.4rem 0;
}
.mobile-nav nav a,
.mobile-nav .member-actions a {
  font: 400 1.18rem/1.2 Georgia, serif;
}

@media (max-width: 820px) {
  :root {
    --fv-display: 2.12rem;
    --fv-title: 1.78rem;
    --fv-section: 1.5rem;
    --fv-card-title: 1.02rem;
    --fv-lede: .9rem;
  }

  body[data-page="home"] .hero-copy,
  body[data-page="home"] .hero-content {
    min-height: 0;
    padding-top: 3.1rem;
    padding-bottom: 2.4rem;
  }
  body[data-page="home"] .hero h1 {
    max-width: 16ch;
    margin-bottom: .85rem;
  }
  body[data-page="home"] .intro h2,
  body[data-page="home"] .section-heading h2,
  body[data-page="home"] .notes h2 {
    max-width: none;
  }
  body[data-page="home"] .shop-categories strong {
    font-size: 1.22rem;
  }

  .category-hero-copy,
  body[data-landing-slug] .category-hero-copy {
    min-height: 0;
    padding-top: 2.4rem;
    padding-bottom: 2rem;
  }
  .category-hero-copy h1,
  body[data-landing-slug] .category-hero-copy h1 {
    max-inline-size: none;
  }
  .category-editorial h2 {
    font-size: 1.5rem;
  }

  .intro h1,
  .material h2 {
    font-size: 1.7rem;
  }

  .auth-story {
    min-height: 280px;
    padding: 3rem 1.35rem 2.4rem;
  }
  .auth-panel {
    padding-top: 2.6rem;
  }
  .auth-panel h2 {
    font-size: 1.7rem;
  }

  .page-hero {
    padding-top: 3.1rem;
    padding-bottom: 1.8rem;
  }

  .related .section-head h2 {
    max-width: none;
  }

  .product-use h2,
  .product-editorial h2,
  .reviews-head h2 {
    font-size: 1.5rem;
  }

  .section-title h1 {
    font-size: 1.7rem;
  }

  .search-hero h1 {
    font-size: 2.05rem;
  }

  .service-hero h1 {
    font-size: 2rem;
  }
}

/* Boxes follow the tighter type: leftover min-heights and padding were sized for 50–90px titles. */
.hero,
.hero-art,
.atelier-hero,
.atelier-hero .hero-visual {
  min-height: 0;
}
@media (min-width: 821px) {
  body[data-page="home"] .hero,
  body[data-page="home"] .hero-art {
    min-height: 540px;
  }
  .atelier-hero,
  .atelier-hero .hero-visual {
    min-height: 520px;
  }
  .category-hero {
    height: 380px;
    min-height: 0;
  }
  body[data-page="home"] .shop-categories a {
    min-height: 148px;
    padding: 1rem 1.05rem;
  }
}

.hero-copy,
.hero-content {
  min-height: 0;
}
.purchase-confidence > div,
.decision-summary > div {
  min-height: 0;
  padding: .55rem .7rem;
}
.use-points article {
  min-height: 0;
  padding-top: .9rem;
}
.use-points h3 {
  margin-top: .9rem;
}
.product-facts > div {
  padding-top: .7rem;
  padding-bottom: .7rem;
}
.intro,
body[data-page="collection"] .intro {
  padding-top: 3.4rem;
  padding-bottom: 2.6rem;
}
.search-hero {
  padding-top: 3.4rem;
  padding-bottom: 1.8rem;
}
.page-hero {
  padding-top: 3.4rem;
  padding-bottom: 2rem;
}
.auth-story {
  min-height: 0;
}
.category-path-card {
  min-height: 300px;
}
.category-promises article {
  min-height: 0;
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
}
.radio {
  min-height: 0;
}

@media (max-width: 820px) {
  .card-meta h3 > a,
  .category-product-meta h3 > a {
    min-height: 0 !important;
    display: inline;
  }
  body[data-page="home"] .hero-copy,
  body[data-page="home"] .hero-content {
    min-height: 0 !important;
    padding: 2.35rem 1.2rem 1.7rem;
  }
  .category-hero,
  .category-hero-copy,
  .category-hero-media {
    height: auto;
    min-height: 0;
  }
  .category-hero-copy {
    padding: 2rem 1.15rem 1.5rem;
  }
  .category-hero-media {
    aspect-ratio: 4 / 3;
  }
  .auth-story {
    min-height: 0 !important;
    padding: 2.1rem 1.25rem 1.7rem;
  }
  .auth-panel {
    padding-top: 2rem;
    padding-bottom: 2.4rem;
  }
  .page-hero,
  .search-hero {
    padding: 2.3rem 1.15rem 1.35rem;
  }
  body[data-page="collection"] .intro,
  .intro {
    padding: 2.4rem 1rem 1.8rem;
  }
  .shop-categories a {
    min-height: 0 !important;
    padding: .85rem 1rem;
  }
  .category-path-card {
    min-height: 240px;
  }
  .radio {
    padding: .7rem .8rem;
  }
}
