/* WordPress-only additions to the prototype's styles.css (which stays an unchanged copy). */

/* The prototype's two fonts, self-hosted (variable latin subsets) instead of Google Fonts. */
@font-face { font-display: swap; font-family: "Cormorant Garamond"; font-style: normal; font-weight: 300 500; src: url("../fonts/cormorant-garamond-latin-var.woff2") format("woff2"); }
@font-face { font-display: swap; font-family: "Jost"; font-style: normal; font-weight: 400 500; src: url("../fonts/jost-latin-var.woff2") format("woff2"); }

/* Skip link: hidden until it gets keyboard focus. */
.skip-link:focus { z-index: 100; top: 8px; left: 8px; width: auto; height: auto; padding: 12px 18px; overflow: visible; clip-path: none; background: #fff; color: var(--ink); outline: 2px solid var(--magenta); }

/* Logged-in editors: keep the sticky header below the WordPress toolbar. */
.admin-bar .site-header--page, .admin-bar .filter { top: var(--wp-admin--admin-bar--height, 32px); }
.admin-bar.page-shop .filter, .admin-bar.page-cart .cart-summary { top: calc(var(--header-h) + var(--wp-admin--admin-bar--height, 32px)); }

/* Buttons waiting for the server. */
[aria-busy="true"] { cursor: progress; opacity: 0.7; }
button.slide-cta:disabled { cursor: default; opacity: 0.5; }
.product-card__cta:disabled::before { content: none; }

/* A form-wide message from the server (e.g. "Khalti can't take payments yet"). */
.form-error { margin: 0 0 14px; color: var(--magenta); font-size: 13px; line-height: 1.5; }

/* Text pages: help, legal, about, order confirmation and account (templates/page.twig). */
.text-page__body { max-width: 760px; margin: 0 auto; color: var(--ink-soft); font-size: clamp(14px, 1.02vw, 16px); line-height: 1.72; }
.text-page__body :is(h2, h3) { margin: 1.6em 0 0.5em; color: var(--ink); font-family: var(--serif); font-weight: 300; line-height: 1.1; }
.text-page__body h2 { font-size: clamp(28px, 2.4vw, 38px); }
.text-page__body h3 { font-size: clamp(22px, 1.8vw, 28px); }
.text-page__body a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--magenta); text-underline-offset: 3px; }
.text-page__body a:hover { color: var(--magenta); }
.text-page__body > :first-child, .text-page__block > :first-child { margin-top: 0; }

/* Policy pages (Privacy, Terms, Returns): lead paragraph, contents box, numbered sections. FAQs reuse the product accordion. */
.legal-lead p { margin: 0 0 1em; color: var(--ink); font-family: var(--serif); font-size: clamp(20px, 1.6vw, 25px); line-height: 1.35; text-wrap: pretty; }
.legal-lead strong { font-weight: 500; }
.legal-toc { margin: clamp(28px, 3vw, 44px) 0 clamp(36px, 4vw, 60px); padding: clamp(22px, 2.2vw, 32px) clamp(22px, 2.6vw, 36px); background: #f5eeee; }
.legal-toc__title { margin: 0 0 14px; color: var(--magenta); font-size: 11px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; }
.legal-toc ol { margin: 0; padding-left: 1.6em; columns: 2 220px; column-gap: 36px; font-size: 14px; line-height: 1.5; }
.legal-toc li { margin-bottom: 7px; padding-left: 4px; break-inside: avoid; }
.legal-toc li::marker { color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.text-page__body .legal-toc a { color: var(--ink); text-decoration: none; transition: color 200ms ease; }
.text-page__body .legal-toc a:hover { color: var(--magenta); }
.legal-body h2 { margin-top: clamp(40px, 4vw, 60px); padding-top: clamp(28px, 2.6vw, 40px); border-top: 1px solid rgba(26, 26, 26, 0.14); scroll-margin-top: calc(var(--header-h, 80px) + 24px); }
.legal-body > h2:first-child { margin-top: 0; }
.legal-body strong { color: var(--ink); font-weight: 500; }
.legal-body :is(ul, ol) { margin: 0 0 1.2em; padding-left: 1.4em; }
.legal-body li { margin-bottom: 6px; padding-left: 6px; }
.legal-body ul li::marker { color: var(--magenta); content: "–  "; }
.legal-body ol li::marker { color: var(--magenta); font-weight: 500; }
.legal-note { margin: clamp(40px, 4vw, 60px) 0 0; padding: clamp(22px, 2.2vw, 30px) clamp(22px, 2.6vw, 34px); border-left: 2px solid var(--magenta); background: #f5eeee; }
.text-page__body .legal-note h3 { margin: 0 0 8px; font-size: clamp(22px, 1.8vw, 26px); }
.legal-note p { margin: 0; }
.legal-faq.pdp-details { margin-top: 0; }
.legal-faq summary { gap: 24px; padding: clamp(20px, 1.8vw, 26px) 0; color: var(--ink); font-size: clamp(16px, 1.3vw, 19px); }
.legal-faq details p { margin: 0 0 1em; }
.legal-faq details > :last-child { margin-bottom: clamp(20px, 1.8vw, 26px); }

/* Contact page: solid brand logos (Facebook, TikTok) next to the prototype's outline icons. */
.contact__social svg.is-brand { width: 19px; height: 19px; fill: currentColor; stroke: none; }

/* Search results (templates/search.twig). */
.search-form { display: flex; max-width: 560px; margin: 0 auto clamp(28px, 3vw, 44px); border-bottom: 1px solid var(--ink); }
.search-form input { flex: 1; min-width: 0; padding: 14px 0; border: 0; background: transparent; color: var(--ink); font: inherit; font-size: 16px; }
.search-form input:focus-visible { outline: none; }
.search-form button { padding: 0 0 0 20px; border: 0; background: transparent; color: var(--ink); font: inherit; font-size: 12px; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase; cursor: pointer; }
.search-form button:hover { color: var(--magenta); }
.search-list { max-width: 760px; margin: clamp(40px, 4vw, 64px) auto 0; padding: 0; border-top: 1px solid rgba(26, 26, 26, 0.14); list-style: none; }
.search-list li { border-bottom: 1px solid rgba(26, 26, 26, 0.14); }
.search-list a { display: block; padding: 20px 0; font-size: 17px; transition: color 200ms ease; }
.search-list a:hover { color: var(--magenta); }
.archive .bag-empty--page { display: grid; justify-items: center; gap: 18px; text-align: center; }
.archive .bag-empty--page p:not(.bag-empty__title) { margin: 0; color: var(--ink-soft); }

/* FluentCart's order receipt and account pages, inside the text page. */
.text-page__body .fluent-cart-receipt-page, .text-page__body .fct-customer-dashboard { color: var(--ink); font-family: var(--sans); }

/* About page hero (Components/AboutHero): headline over a full-width product photo. */
.page-about { background: #f5eeee; }
.about-intro { --ease: cubic-bezier(0.22, 1, 0.36, 1); position: relative; display: flex; align-items: center; min-height: clamp(620px, calc(100svh - clamp(70px, 5.8vw, 92px)), 1040px); padding: clamp(48px, 5vw, 88px) var(--gutter); overflow: hidden; background: #f5eeee; }
.about-intro__bg { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: 70% center; }
.about-intro__copy { position: relative; width: min(46%, 640px); animation: about-intro-rise 900ms var(--ease) both; }
.about-intro__eyebrow { display: flex; align-items: center; gap: 14px; margin: 0 0 clamp(18px, 1.8vw, 28px); color: var(--magenta); font-size: clamp(10px, 0.72vw, 12px); font-weight: 500; letter-spacing: 0.2em; line-height: 1.3; text-transform: uppercase; }
.about-intro__eyebrow::before { flex: none; width: 34px; height: 1px; background: currentColor; content: ""; }
.about-intro h1 { margin: 0 0 clamp(18px, 2vw, 30px); font-family: var(--serif); font-size: clamp(52px, 6.4vw, 112px); font-weight: 300; letter-spacing: -0.02em; line-height: 0.92; text-wrap: balance; }
.about-intro__lede { max-width: 30ch; margin: 0; font-family: var(--serif); font-size: clamp(20px, 1.7vw, 28px); line-height: 1.22; text-wrap: pretty; }
.about-intro__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 30px; margin-top: clamp(26px, 2.6vw, 40px); }
.about-intro__link { padding: 6px 0; border-bottom: 1px solid var(--magenta); font-size: clamp(11px, 0.8vw, 13px); font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase; transition: color 200ms ease; }
.about-intro__link:hover { color: var(--magenta); }
.about-intro__link:focus-visible { outline: 1px solid var(--magenta); outline-offset: 4px; }

@keyframes about-intro-rise { from { opacity: 0; transform: translateY(18px); } }

@media (prefers-reduced-motion: reduce) {
  .about-intro__copy { animation: none; }
}

@media (max-width: 880px) {
  .about-intro { display: block; min-height: 0; padding: 0; }
  .about-intro__bg { position: relative; height: 60svh; min-height: 340px; object-position: 76% center; }
  .about-intro__copy { width: auto; padding: clamp(40px, 8vw, 64px) var(--gutter) clamp(48px, 9vw, 72px); }
  .about-intro h1 { font-size: clamp(46px, 11vw, 76px); }
}

/* Opening scene shared by the Workshops page (Components/WorkshopPage). */
.about-page { padding: 0; }
.about-hero { position: relative; min-height: clamp(560px, calc(100svh - clamp(70px, 5.8vw, 92px)), 1000px); overflow: hidden; background: #f5eeee; }
.about-hero__media { position: absolute; inset: 0; }
.about-hero__media::after { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(245, 238, 238, 0.08) 0%, rgba(245, 238, 238, 0.02) 58%, rgba(245, 238, 238, 0) 100%); content: ""; pointer-events: none; }
.about-hero__media img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.about-hero__copy { position: absolute; bottom: 0; left: 0; width: min(42%, 620px); padding: clamp(30px, 3.4vw, 52px) var(--gutter) clamp(30px, 3.4vw, 48px); background: linear-gradient(90deg, rgba(245, 238, 238, 0.98) 0%, rgba(245, 238, 238, 0.95) 72%, rgba(245, 238, 238, 0) 100%); }
.about-hero__eyebrow { margin: 0 0 clamp(14px, 1.4vw, 22px); color: var(--magenta); font-size: clamp(10px, 0.72vw, 12px); font-weight: 500; letter-spacing: 0.2em; line-height: 1.3; text-transform: uppercase; }
.about-hero h1 { max-width: 480px; margin: 0 0 clamp(16px, 1.8vw, 26px); font-family: var(--serif); font-size: clamp(44px, 4.6vw, 76px); font-weight: 300; letter-spacing: -0.015em; line-height: 0.94; text-wrap: balance; }
.about-hero__lede { max-width: 34ch; margin: 0; color: var(--ink); font-family: var(--serif); font-size: clamp(18px, 1.45vw, 22px); line-height: 1.25; }
.about-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px 34px; margin-top: clamp(22px, 2.4vw, 34px); }

@media (max-width: 880px) {
  .about-hero { min-height: auto; }
  .about-hero__media { position: relative; height: 68svh; min-height: 430px; }
  .about-hero__media::after { background: linear-gradient(180deg, rgba(245, 238, 238, 0) 58%, rgba(245, 238, 238, 0.28) 100%); }
  .about-hero__copy { position: relative; width: 100%; min-height: 0; padding: clamp(42px, 8vw, 70px) var(--gutter) clamp(48px, 9vw, 80px); background: #f5eeee; }
  .about-hero h1 { max-width: 14ch; font-size: clamp(40px, 8vw, 60px); }
  .about-hero__lede { max-width: 34ch; }
}

@media (max-width: 620px) {
  .about-hero__media { height: 58svh; min-height: 360px; }
  .about-hero__media img { object-position: 62% center; }
  .about-hero__actions { align-items: flex-start; flex-direction: column; gap: 18px; }
}

/* FluentCart prints its modal checkout on every page from an anonymous hook; this site never opens it. */
.fct-checkout-modal-container { display: none !important; }

/* About page: "Our story" text section under the hero (Components/AboutStory). */
.about-story { padding: var(--section-space) var(--gutter); background: #fff; color: var(--ink-soft); font-size: clamp(15px, 1.1vw, 17px); line-height: 1.75; text-align: center; }
.about-story h2 { max-width: 32ch; margin: 0 auto clamp(22px, 2.4vw, 34px); color: var(--ink); font-family: var(--serif); font-size: clamp(26px, 3.4vw, 54px); font-weight: 300; letter-spacing: -0.01em; line-height: 1.1; text-wrap: balance; }
.about-story p { margin: 0 auto; max-width: 62ch; }

/* About page: award recognition, SVG seal beside the text (Components/AboutAward). */
.about-award { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); align-items: center; gap: clamp(40px, 6vw, 110px); padding: var(--section-space) max(var(--gutter), calc((100% - 1180px) / 2)); background: #f5eeee; }
.about-award__badge { justify-self: center; width: min(100%, 340px); height: auto; color: var(--magenta); }
.about-award__ring { fill: var(--ink); font-family: var(--sans); font-size: 12.5px; font-weight: 500; letter-spacing: 0.32em; text-transform: uppercase; }
.about-award__word { fill: var(--ink); font-family: var(--serif); font-size: 34px; font-weight: 300; }
.about-award__year { fill: var(--ink-soft); font-family: var(--sans); font-size: 11px; font-weight: 500; letter-spacing: 0.24em; }
.about-award__copy { color: var(--ink-soft); font-size: clamp(15px, 1.1vw, 17px); line-height: 1.75; }
.about-award__copy p { margin: 0; }
.about-award__copy p + p { margin-top: 1em; }
.about-award .about-award__eyebrow { margin-bottom: clamp(16px, 1.6vw, 24px); color: var(--magenta); font-size: clamp(10px, 0.8vw, 13px); font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; }
.about-award h2 { margin: 0 0 clamp(18px, 2vw, 28px); color: var(--ink); font-family: var(--serif); font-size: clamp(34px, 4vw, 62px); font-weight: 300; letter-spacing: -0.01em; line-height: 1.02; text-wrap: balance; }
.about-award .about-award__lede { color: var(--ink); font-family: var(--serif); font-size: clamp(20px, 1.6vw, 25px); line-height: 1.3; }
.about-award .about-award__detail { margin-top: 1.4em; padding-block: 14px; border-block: 1px solid rgba(26, 26, 26, 0.14); color: var(--ink); font-size: 12px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; }

@media (max-width: 880px) {
  .about-award { grid-template-columns: 1fr; text-align: center; }
  .about-award__badge { width: min(64vw, 260px); }
}

.product-card__media > a { display: block; }

/* "15 years of experience" pull-tab docked to the right edge (templates/_document.twig).
   Shows the full text on arrival and folds to "15" once the visitor scrolls; hover or focus opens it again. */
.exp-badge { position: fixed; z-index: 6; top: 34%; right: 0; display: flex; align-items: center; gap: 12px; padding: 14px 20px 14px 18px; border-radius: 999px 0 0 999px; background: var(--ink); box-shadow: 0 12px 30px rgba(26, 26, 26, 0.22); color: #fff; animation: exp-badge-in 700ms 400ms cubic-bezier(0.22, 1, 0.36, 1) both; }
.exp-badge__number { color: #ff4f93; font-family: var(--serif); font-size: 38px; font-weight: 500; line-height: 1; }
.exp-badge__text { display: grid; max-width: 8.5em; font-size: 12px; font-weight: 500; letter-spacing: 0.16em; line-height: 1.3; text-transform: uppercase; transition: max-width 450ms cubic-bezier(0.22, 1, 0.36, 1), opacity 300ms ease; }
.exp-badge.is-folded:not(:hover, :focus-visible) { gap: 0; }
.exp-badge.is-folded:not(:hover, :focus-visible) .exp-badge__text { max-width: 0; overflow: hidden; opacity: 0; }
@keyframes exp-badge-in { from { transform: translateX(100%); } }

@media (max-width: 880px) {
  .exp-badge { padding: 10px 14px; }
  .exp-badge__number { font-size: 30px; }
  .exp-badge__text { font-size: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .exp-badge, .exp-badge__text { animation: none; transition: none; }
}

/* Legal documents page (Components/LegalDocs): scanned certificates as paper cards, opened in a dark viewer. */
.legal-docs { --legal-mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='360' height='220'%3E%3Ctext x='180' y='118' text-anchor='middle' transform='rotate(-28 180 110)' font-family='Arial' font-size='15' font-weight='700' letter-spacing='3' fill='rgba(229,0,90,0.13)'%3ESILKHAIR %C2%B7 VERIFICATION ONLY%3C/text%3E%3C/svg%3E"); padding: clamp(18px, 2vw, 28px) var(--gutter) var(--section-space); background: #fff; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.legal-docs__head { max-width: 780px; margin: 0 auto clamp(36px, 4vw, 60px); text-align: center; }
.legal-docs__head .breadcrumb ol { justify-content: center; margin-bottom: clamp(14px, 1.6vw, 22px); }
.legal-docs h1 { margin: 0; font-family: var(--serif); font-size: clamp(40px, 4.4vw, 68px); font-weight: 300; letter-spacing: -0.01em; line-height: 1; }

.legal-docs__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(40px, 4.4vw, 68px) clamp(24px, 3vw, 48px); max-width: 1120px; margin: 0 auto; padding: 0; list-style: none; }
.legal-doc { display: grid; width: 100%; padding: 0; border: 0; background: none; color: var(--ink); text-align: left; cursor: zoom-in; }
.legal-doc__paper { position: relative; display: block; aspect-ratio: 1 / 1.414; margin-bottom: 18px; padding: clamp(14px, 1.4vw, 22px); overflow: hidden; background: #f5eeee; transition: background-color 300ms ease; }
.legal-doc__scan { position: relative; display: block; width: 100%; height: 100%; background: #fff center / contain no-repeat; box-shadow: 0 10px 28px rgba(26, 26, 26, 0.12); transition: transform 450ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 450ms ease; }
.legal-doc__scan::after, .legal-viewer__scan::after { position: absolute; inset: 0; background: var(--legal-mark); content: ""; pointer-events: none; }
.legal-doc__view { position: absolute; bottom: 14px; left: 50%; padding: 9px 16px; background: var(--ink); color: #fff; font-size: 11px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; white-space: nowrap; opacity: 0; transform: translate(-50%, 8px); transition: opacity 300ms ease, transform 300ms ease; }
.legal-doc:hover .legal-doc__paper, .legal-doc:focus-visible .legal-doc__paper { background: #efe3ea; }
.legal-doc:hover .legal-doc__scan, .legal-doc:focus-visible .legal-doc__scan { box-shadow: 0 20px 40px rgba(26, 26, 26, 0.18); transform: translateY(-6px); }
.legal-doc:hover .legal-doc__view, .legal-doc:focus-visible .legal-doc__view { opacity: 1; transform: translate(-50%, 0); }
.legal-doc__title { font-size: 16px; font-weight: 500; line-height: 1.3; text-align: center; transition: color 200ms ease; }
.legal-doc:hover .legal-doc__title, .legal-doc:focus-visible .legal-doc__title { color: var(--magenta); }
.legal-docs__note { max-width: 60ch; margin: clamp(48px, 5vw, 80px) auto 0; color: var(--ink-soft); font-size: 13px; text-align: center; }

html:has(.legal-viewer[open]) { overflow: hidden; }
.legal-viewer { width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(20, 18, 22, 0.94); color: #fff; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.legal-viewer[open] { display: grid; grid-template-rows: auto minmax(0, 1fr); animation: lightbox-in 450ms cubic-bezier(0.22, 1, 0.36, 1); }
.legal-viewer::backdrop { background: transparent; }
.legal-viewer:focus { outline: none; }
.legal-viewer__bar { display: flex; align-items: center; gap: 12px; padding: 14px clamp(16px, 3vw, 32px); border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.legal-viewer__caption { flex: 1; min-width: 0; margin: 0; font-size: 13px; line-height: 1.4; }
.legal-viewer__count { margin-right: 10px; color: #ff4f93; font-weight: 500; font-variant-numeric: tabular-nums; letter-spacing: 0.14em; }
.legal-viewer__caption strong { font-family: var(--serif); font-size: 20px; font-weight: 400; }
.legal-viewer__btn { height: 40px; padding: 0 16px; border: 1px solid rgba(255, 255, 255, 0.3); background: none; color: #fff; font-size: 12px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; cursor: pointer; transition: background-color 200ms ease, border-color 200ms ease; }
.legal-viewer__btn:hover, .legal-viewer__btn[aria-pressed="true"] { border-color: #fff; background: rgba(255, 255, 255, 0.12); }
.legal-viewer__close { width: 40px; padding: 0; font-size: 16px; }
.legal-viewer__stage { display: grid; place-items: center; padding: clamp(16px, 2.4vw, 32px) clamp(16px, 7vw, 110px); overflow: auto; overscroll-behavior: contain; }
.legal-viewer__scan { position: relative; height: 100%; max-width: 100%; background: #fff center / contain no-repeat; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45); cursor: zoom-in; }
.legal-viewer.is-zoomed .legal-viewer__stage { place-items: start center; }
.legal-viewer.is-zoomed .legal-viewer__scan { width: min(1600px, 100%); height: auto; max-width: none; cursor: zoom-out; }
.legal-viewer__arrow { position: absolute; top: 50%; width: 48px; height: 48px; border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 50%; background: rgba(20, 18, 22, 0.6); color: #fff; font-size: 18px; cursor: pointer; transform: translateY(-50%); transition: background-color 200ms ease, border-color 200ms ease; }
.legal-viewer__arrow:hover { border-color: #fff; background: rgba(255, 255, 255, 0.15); }
.legal-viewer__arrow--prev { left: clamp(10px, 2vw, 32px); }
.legal-viewer__arrow--next { right: clamp(10px, 2vw, 32px); }

@media (max-width: 880px) {
  .legal-docs__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 16px; }
  .legal-doc__paper { padding: 10px; margin-bottom: 12px; }
  .legal-doc__view { display: none; }
  .legal-doc__title { font-size: 14px; }
  .legal-viewer__stage { padding: 12px 12px 80px; }
  .legal-viewer__scan { width: 100%; height: auto; }
  .legal-viewer__arrow { top: auto; bottom: 16px; transform: none; }
}

@media print {
  .legal-docs__grid, .legal-viewer { display: none !important; }
}
