/* ==========================================================================
   Wonder Muslim: the scarf counter.
   The visitor's chosen scarf ([data-scarf] on <html>) sets every colour.
   ========================================================================== */

:root {
    --font-display: "Bricolage Grotesque", "Readex Pro", system-ui, sans-serif;
    --font-body: "Readex Pro", system-ui, sans-serif;
    --font-ruqaa: "Aref Ruqaa", "Readex Pro", serif;

    --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
    --ease-io: cubic-bezier(0.77, 0, 0.175, 1);

    --gutter: clamp(16px, 4vw, 56px);
    --wrap: 1360px;
    --radius: 10px;
    --head-h: 72px;
    --wa: #17784a;

    --field: #1f7a60; --deep: #0c3a2e; --pale: #e5f2eb; --tint: #c9e5d7;
    --on: #ffffff; --on-soft: rgb(255 255 255 / 0.92);
}
:root[data-scarf="rose"]   { --field: #c3305f; --deep: #540d29; --pale: #fbe8ef; --tint: #f5cbd9; --on: #ffffff; --on-soft: rgb(255 255 255 / 0.92); }
:root[data-scarf="safran"] { --field: #efa012; --deep: #4a2d00; --pale: #fad98b; --tint: #f2bf54; --on: #2a1a00; --on-soft: rgb(42 26 0 / 0.86); }
:root[data-scarf="bleu"]   { --field: #3346c8; --deep: #10184d; --pale: #e8ebfb; --tint: #c8cff5; --on: #ffffff; --on-soft: rgb(255 255 255 / 0.92); }
:root[data-scarf="corail"] { --field: #ee6a4e; --deep: #5e1a0c; --pale: #fde8e1; --tint: #f8c6b8; --on: #2b0b04; --on-soft: rgb(43 11 4 / 0.88); }
:root[data-scarf="noir"]   { --field: #1d1b20; --deep: #0b0a0c; --pale: #efedf2; --tint: #d8d4dd; --on: #f6f2ec; --on-soft: rgb(246 242 236 / 0.88); }

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }
:where(html) { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + 16px); }
:where(body) {
    margin: 0;
    background: var(--pale);
    color: var(--deep);
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.6;
    font-weight: 350;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    transition: background-color 0.5s var(--ease-out), color 0.5s var(--ease-out);
}
:where(h1, h2, h3, h4, p, ul, ol, dl, dd, figure, fieldset, blockquote) { margin: 0; }
:where(fieldset) { padding: 0; border: 0; min-width: 0; }
:where(ul[class], ol[class]) { padding: 0; list-style: none; }
:where(img, svg, video) { display: block; max-width: 100%; height: auto; }
:where(a) { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
:where(button, input, select, textarea) { font: inherit; color: inherit; }
:where(button) { cursor: pointer; }
:where(h1, h2, h3) { font-family: var(--font-display); font-weight: 750; line-height: 1.05; letter-spacing: -0.02em; text-wrap: balance; }
:where(p) { text-wrap: pretty; }

::selection { background: var(--field); color: var(--on); }
:focus-visible { outline: 2.5px solid var(--field); outline-offset: 3px; border-radius: 4px; }
.hero :focus-visible, .head :focus-visible, .try :focus-visible, .foot :focus-visible, .manifesto :focus-visible { outline-color: currentColor; }
html { scrollbar-color: color-mix(in oklab, var(--deep) 45%, transparent) var(--pale); accent-color: var(--field); }

.sr, .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 8px; background: var(--deep); color: #fff; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.icon { width: 1.25em; height: 1.25em; flex: none; }
[dir="rtl"] .icon--flip, [dir="rtl"] .btn .icon:last-child:not(:first-child), [dir="rtl"] .link .icon { transform: scaleX(-1); }

/* Arabic reads better a touch larger and looser. */
html[lang^="ar"] body { font-size: 1.125rem; line-height: 1.75; }
:lang(ar) { letter-spacing: 0 !important; }
[lang="en"], [lang="fr"] { unicode-bidi: isolate; }

/* ---------- Buttons and links ---------- */

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
    min-height: 52px; padding: 0.8em 1.45em;
    border: 1.5px solid transparent; border-radius: var(--radius);
    font-family: var(--font-display); font-weight: 650; font-size: 1.02rem; letter-spacing: -0.005em; line-height: 1.1;
    text-decoration: none; white-space: nowrap;
    transition: transform 160ms var(--ease-out), background-color 200ms ease, color 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}
.btn:active { transform: scale(0.97); }
.btn[disabled] { opacity: 0.6; cursor: not-allowed; transform: none; }
.btn--solid { background: var(--field); color: var(--on); box-shadow: 0 10px 24px -14px color-mix(in oklab, var(--deep) 80%, transparent); }
.btn--line { border-color: currentColor; background: transparent; }
.btn--wa { background: var(--wa); color: #fff; }
.btn--big { min-height: 60px; font-size: 1.15rem; padding-inline: 1.8em; }
@media (hover: hover) and (pointer: fine) {
    .btn--solid:hover:not([disabled]) { background: var(--deep); color: #fff; }
    .btn--line:hover { background: color-mix(in oklab, currentColor 12%, transparent); }
    .btn--wa:hover { background: #0f5d38; }
}

.link {
    display: inline-flex; align-items: center; gap: 0.45em;
    font-family: var(--font-display); font-weight: 650; text-decoration: none;
    border-bottom: 1.5px solid currentColor; padding-bottom: 2px;
}
.link .icon { transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .link:hover .icon { transform: translateX(4px); } [dir="rtl"] .link:hover .icon { transform: scaleX(-1) translateX(4px); } }

.section-title { font-size: clamp(2rem, 4.2vw, 3.4rem); letter-spacing: -0.03em; font-variation-settings: "wdth" 88; }

/* ---------- Top band ---------- */

.band { background: var(--deep); color: #fff; font-size: 0.82rem; font-weight: 400; overflow: hidden; }
.band__track {
    display: flex; justify-content: center; gap: clamp(20px, 4vw, 56px);
    padding: 8px var(--gutter); white-space: nowrap;
}
.band__track span { display: inline-flex; align-items: center; gap: 8px; }
.band .icon { width: 1.1em; height: 1.1em; opacity: 0.85; }
@media (max-width: 760px) { .band__track { justify-content: flex-start; } .band__track span:not(:first-child) { display: none; } }

/* ---------- Header ---------- */

.head {
    position: sticky; top: 0; z-index: 40;
    display: flex; align-items: center; gap: 24px;
    height: var(--head-h); padding-inline: var(--gutter);
    background: var(--field); color: var(--on);
    transition: background-color 0.5s var(--ease-out), color 0.5s var(--ease-out), box-shadow 0.3s ease;
}
.head.is-scrolled { box-shadow: 0 10px 30px -18px rgb(0 0 0 / 0.55); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-inline-end: auto; }
/* The mark is a stencil: it takes the ink of whatever scarf the visitor chose. */
.brand__mark { display: block; width: 48px; aspect-ratio: 256 / 199; background: currentColor; -webkit-mask: url("../img/mark-mask.png") center / contain no-repeat; mask: url("../img/mark-mask.png") center / contain no-repeat; }
.brand__word { font-family: var(--font-display); font-weight: 800; font-size: 1.32rem; line-height: 0.88; letter-spacing: -0.04em; font-variation-settings: "wdth" 82; display: flex; flex-direction: column; }
.brand__word span { font-weight: 500; }

.nav__list { display: flex; gap: clamp(14px, 2.2vw, 32px); }
.nav__list a { font-family: var(--font-display); font-weight: 600; font-size: 1rem; text-decoration: none; padding: 6px 0; background: linear-gradient(currentColor, currentColor) no-repeat left bottom / 0 1.5px; transition: background-size 240ms var(--ease-out); }
[dir="rtl"] .nav__list a { background-position: right bottom; }
.nav__list a[aria-current], .nav__list a:hover { background-size: 100% 1.5px; }
.nav .scarves { display: none; }

.head__tools { display: flex; align-items: center; gap: 6px; }
.lang, .cartlink, .navtoggle {
    position: relative; display: grid; place-items: center; width: 44px; height: 44px;
    border-radius: 50%; border: 0; background: transparent; color: inherit; text-decoration: none;
    font-family: var(--font-display); font-weight: 700; font-size: 1.05rem;
    transition: background-color 160ms ease, transform 160ms var(--ease-out);
}
.lang:lang(ar) { font-family: var(--font-body); font-size: 1.25rem; }
.lang:active, .cartlink:active, .navtoggle:active { transform: scale(0.94); }
@media (hover: hover) { .lang:hover, .cartlink:hover, .navtoggle:hover { background: color-mix(in oklab, var(--on) 14%, transparent); } }
.cartlink__n {
    position: absolute; top: 3px; inset-inline-end: 1px; min-width: 19px; height: 19px; padding-inline: 5px;
    border-radius: 10px; background: var(--on); color: var(--field); font-size: 0.72rem; font-weight: 700; line-height: 19px; text-align: center;
}
.navtoggle { display: none; }
.navtoggle__close { display: none; }

@media (max-width: 900px) {
    :root { --head-h: 64px; }
    .navtoggle { display: grid; }
    .brand, .head__tools { position: relative; z-index: 41; }
    .nav {
        position: fixed; inset: 0; z-index: 39;
        display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
        padding: calc(var(--head-h) + 64px) var(--gutter) 40px; background: var(--field); color: var(--on);
        visibility: hidden; opacity: 0; transform: translateY(-8px);
        transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out), visibility 0s linear 220ms;
    }
    .nav-open .nav { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
    .nav-open { overflow: hidden; }
    .nav__list { flex-direction: column; gap: 4px; }
    .nav__list a { font-size: clamp(2rem, 9vw, 2.8rem); font-weight: 750; letter-spacing: -0.03em; font-variation-settings: "wdth" 85; }
    .nav .scarves { display: flex; }
    .nav-open .navtoggle__open { display: none; }
    .nav-open .navtoggle__close { display: block; }
}

/* ---------- Twill: the cloth texture on colour fields ---------- */

.hero, .shop-head, .manifesto, .head, .foot { background-image: url("../img/twill.png"); background-size: 96px; }

/* ---------- Scarves: folded cloth ---------- */

.scarves { display: flex; }
.scarf { --s: var(--field); --sd: var(--deep); position: relative; }
.scarf__cloth {
    display: block; width: 100%; height: 100%;
    border-radius: 9px 9px 6px 6px;
    background:
        url("../img/twill.png") 0 0 / 64px,
        linear-gradient(180deg,
            color-mix(in oklab, var(--s), #fff 22%) 0 30%,
            color-mix(in oklab, var(--s), #000 26%) 30% calc(30% + 2px),
            var(--s) calc(30% + 2px) 78%,
            color-mix(in oklab, var(--s), #000 14%) 78% 100%);
    box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.25), 0 1px 0 rgb(0 0 0 / 0.15);
}

/* Folded cloth: a painted fold-and-drape shading map (scarf-shade.png) over the scarf
   colour, cut to the folded silhouette (scarf-mask.png). */
.fold {
    position: relative; display: block;
    background: var(--s);
    -webkit-mask: url("../img/scarf-mask.png") center / 100% 100% no-repeat;
    mask: url("../img/scarf-mask.png") center / 100% 100% no-repeat;
}
.fold::after { content: ""; position: absolute; inset: 0; background: url("../img/scarf-shade.png") center / 100% 100% no-repeat; mix-blend-mode: hard-light; }

/* Picker: a stack of folded scarves on the counter. */
.scarves--picker { gap: 10px; align-items: flex-end; }
.scarves--picker .scarf {
    position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px;
    width: 80px; padding: 0; border: 0; background: none; color: inherit;
    font-size: 0.78rem; font-weight: 500;
}
.scarves--picker .scarf__lift { display: block; width: 100%; filter: drop-shadow(0 8px 8px rgb(0 0 0 / 0.32)); transition: transform 280ms var(--ease-out), filter 280ms var(--ease-out); }
.scarves--picker .scarf__cloth { aspect-ratio: 160 / 110; width: 100%; height: auto; border-radius: 0; box-shadow: none; }
.scarves--picker .scarf__name { opacity: 0.85; transition: opacity 200ms ease; white-space: nowrap; }
.scarves--picker .scarf::after { content: ""; position: absolute; left: 20%; right: 20%; bottom: 22px; height: 2px; border-radius: 2px; background: currentColor; opacity: 0; transform: scaleX(0.4); transition: opacity 200ms ease, transform 280ms var(--ease-out); }
.scarves--picker .scarf[aria-checked="true"]::after { opacity: 1; transform: none; }
.scarves--picker .scarf[aria-checked="true"] .scarf__lift { transform: translateY(-12px); filter: drop-shadow(0 18px 14px rgb(0 0 0 / 0.38)); }
.scarves--picker .scarf[aria-checked="true"] .scarf__name { opacity: 1; font-weight: 700; }
.scarves--picker .scarf:active .scarf__lift { transform: translateY(-6px) scale(0.97); }
@media (hover: hover) and (pointer: fine) {
    .scarves--picker .scarf:hover .scarf__lift { transform: translateY(-6px); }
    .scarves--picker .scarf[aria-checked="true"]:hover .scarf__lift { transform: translateY(-12px); }
}

/* Divider: scarves laid edge to edge, like a selvedge. */
.scarves--divider { width: 100%; height: 14px; }
.scarves--divider .scarf { flex: 1; }
.scarves--divider .scarf__cloth { border-radius: 0; }

/* ---------- Hero ---------- */

.hero { background-color: var(--field); color: var(--on); overflow: hidden; transition: background-color 0.5s var(--ease-out), color 0.5s var(--ease-out); }
.hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
    grid-template-areas: "copy art" "pick art";
    column-gap: clamp(24px, 5vw, 80px);
    min-height: min(calc(100svh - var(--head-h) - 36px), 860px);
    padding-block: clamp(32px, 6vh, 72px) clamp(24px, 4vh, 48px);
}
.hero__copy { grid-area: copy; align-self: center; }
.hero__title {
    font-size: clamp(3.2rem, 7.6vw, 6rem); font-weight: 800; line-height: 0.9; letter-spacing: -0.04em;
    font-variation-settings: "wdth" 78, "opsz" 96;
    direction: ltr; text-align: start;
}
[dir="rtl"] .hero__title { text-align: right; }
.hero__title span { display: block; }
.hero__title span + span { padding-inline-start: 0.55em; }
[dir="rtl"] .hero__title span + span { padding-inline: 0 0.55em; }
.hero__ar { margin-top: 0.3em; font-family: var(--font-ruqaa); font-weight: 700; font-size: clamp(2rem, 3.8vw, 3.1rem); line-height: 1.3; color: var(--on-soft); }
.hero__lede { margin-top: 22px; max-width: 36ch; font-size: clamp(1.02rem, 1.3vw, 1.18rem); color: var(--on-soft); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero .btn--solid { background: var(--on); color: var(--field); box-shadow: 0 14px 30px -16px rgb(0 0 0 / 0.6); }
@media (hover: hover) and (pointer: fine) { .hero .btn--solid:hover { background: var(--deep); color: #fff; } }

.hero__art { grid-area: art; align-self: center; justify-self: center; position: relative; width: 100%; max-width: 560px; }
.frame {
    position: relative; overflow: hidden;
    background: var(--deep);
    border: 10px solid color-mix(in oklab, var(--deep), #000 25%);
    box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.12), 0 2px 0 rgb(0 0 0 / 0.25), 0 40px 70px -30px rgb(0 0 0 / 0.65);
}
.hero__art .frame { aspect-ratio: 4 / 5; max-height: calc(100svh - var(--head-h) - 150px); margin-inline: auto; }
.hero__img {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
    opacity: 0; filter: blur(8px); transform: scale(1.04);
    transition: opacity 600ms var(--ease-out), filter 600ms var(--ease-out), transform 900ms var(--ease-out);
}
:root[data-scarf="vert"] .hero__img[data-for="vert"], :root[data-scarf="rose"] .hero__img[data-for="rose"],
:root[data-scarf="safran"] .hero__img[data-for="safran"], :root[data-scarf="bleu"] .hero__img[data-for="bleu"],
:root[data-scarf="corail"] .hero__img[data-for="corail"], :root[data-scarf="noir"] .hero__img[data-for="noir"] { opacity: 1; filter: none; transform: none; }

/* Woven label: the tag sewn into a scarf. */
.tag {
    position: relative; display: inline-block;
    background: var(--pale); color: var(--deep);
    padding: 10px 16px; border-radius: 3px;
    box-shadow: 0 10px 20px -12px rgb(0 0 0 / 0.5);
}
.tag::before { content: ""; position: absolute; inset: 4px; border: 1px dashed color-mix(in oklab, var(--deep) 45%, transparent); border-radius: 2px; pointer-events: none; }
.hero__tag { position: absolute; inset-inline-start: -18px; bottom: 28px; transform: rotate(-2.5deg); }
[dir="rtl"] .hero__tag { transform: rotate(2.5deg); }
.hero__tag a { display: none; text-decoration: none; }
.hero__tag strong { display: block; font-family: var(--font-display); font-size: 1.05rem; font-weight: 750; line-height: 1.2; }
.hero__tag span { font-size: 0.8rem; text-decoration: underline; text-underline-offset: 3px; }
:root[data-scarf="vert"] .hero__tag [data-for="vert"], :root[data-scarf="rose"] .hero__tag [data-for="rose"],
:root[data-scarf="safran"] .hero__tag [data-for="safran"], :root[data-scarf="bleu"] .hero__tag [data-for="bleu"],
:root[data-scarf="corail"] .hero__tag [data-for="corail"], :root[data-scarf="noir"] .hero__tag [data-for="noir"] { display: block; }

.hero__picker { grid-area: pick; align-self: end; padding-top: 32px; }
.hero__pick-label { font-family: var(--font-display); font-weight: 650; font-size: 0.95rem; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.hero__pick-label::after { content: ""; height: 1px; flex: 0 1 80px; background: currentColor; opacity: 0.5; }

/* One authored entrance: the title rises, the painting is unveiled like a cloth pulled away. */
@media (prefers-reduced-motion: no-preference) {
    .js .hero__title span { animation: rise 900ms var(--ease-out) both; }
    .js .hero__title span + span { animation-delay: 90ms; }
    .js .hero__ar { animation: rise 900ms 180ms var(--ease-out) both; }
    .js .hero__lede, .js .hero__actions { animation: fade 700ms 320ms var(--ease-out) both; }
    .js .hero__art .frame { animation: unveil 1100ms 120ms var(--ease-io) both; }
    .js .hero__tag { animation: fade 500ms 900ms var(--ease-out) both; }
    .js .hero .scarf { animation: rise 600ms var(--ease-out) both; }
    .js .hero .scarf:nth-child(2) { animation-delay: 420ms; } .js .hero .scarf:nth-child(1) { animation-delay: 380ms; }
    .js .hero .scarf:nth-child(3) { animation-delay: 460ms; } .js .hero .scarf:nth-child(4) { animation-delay: 500ms; }
    .js .hero .scarf:nth-child(5) { animation-delay: 540ms; } .js .hero .scarf:nth-child(6) { animation-delay: 580ms; }
}
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }
@keyframes fade { from { opacity: 0; } }
@keyframes unveil { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }

@media (max-width: 900px) {
    .hero__inner { grid-template-columns: minmax(0, 1fr); grid-template-areas: "copy" "art" "pick"; min-height: 0; row-gap: 32px; padding-block: 28px 28px; }
    .hero__art { max-width: 420px; }
    .hero__art .frame { max-height: 62svh; }
    .hero__tag { inset-inline-start: -8px; bottom: 16px; }
    .hero__picker { padding-top: 8px; margin-inline: calc(-1 * var(--gutter)); }
    .hero__pick-label { padding-inline: var(--gutter); }
    .scarves--picker { overflow-x: auto; padding: 14px var(--gutter) 6px; scrollbar-width: none; scroll-snap-type: x mandatory; }
    .scarves--picker::-webkit-scrollbar { display: none; }
    .scarves--picker .scarf { flex: none; width: 70px; scroll-snap-align: start; }
}

/* Dye spreading from the chosen scarf (View Transitions). */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
/* The snapshots must hold final colours, so local colour transitions pause during the dye. */
.vt-dye *, .vt-dye *::before, .vt-dye *::after { transition: none !important; }
.vt-dye::view-transition-new(root) { animation: dye 720ms var(--ease-io) both; }
@keyframes dye { from { clip-path: circle(0 at var(--vt-x, 50%) var(--vt-y, 50%)); } to { clip-path: circle(var(--vt-r, 150vmax) at var(--vt-x, 50%) var(--vt-y, 50%)); } }

/* ---------- Your colour rail ---------- */

.yours { padding-block: clamp(48px, 8vw, 96px) clamp(40px, 6vw, 72px); }
.yours__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 32px; margin-bottom: 28px; }
.yours__head h2 { font-size: clamp(1.8rem, 3.6vw, 2.9rem); letter-spacing: -0.03em; }
.yours__name { font-style: normal; color: var(--field); }
:root[data-scarf="safran"] .yours__name, :root[data-scarf="corail"] .yours__name { color: color-mix(in oklab, var(--field), var(--deep) 30%); }

.rail {
    display: flex; gap: clamp(14px, 2vw, 24px); overflow-x: auto; overscroll-behavior-x: contain;
    padding: 6px max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))) 24px;
    scroll-snap-type: x mandatory; scroll-padding-inline: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
    scrollbar-width: thin;
}
.rail__item { flex: none; scroll-snap-align: start; text-decoration: none; display: grid; gap: 4px; }
.rail__art { display: block; height: clamp(220px, 30vw, 340px); box-shadow: 0 1px 0 rgb(0 0 0 / 0.06), 0 18px 32px -22px color-mix(in oklab, var(--deep) 80%, transparent); transition: transform 240ms var(--ease-out); }
.rail__art img { height: 100%; width: auto; }
.rail__name { margin-top: 10px; font-family: var(--font-display); font-weight: 650; font-size: 1.02rem; line-height: 1.2; }
.rail__price { font-size: 0.86rem; opacity: 0.75; }
@media (hover: hover) and (pointer: fine) { .rail__item:hover .rail__art { transform: translateY(-4px); } }
.rail.is-swapping { opacity: 0; transform: translateY(8px); }
.rail { transition: opacity 260ms var(--ease-out), transform 260ms var(--ease-out); }

/* ---------- Families ---------- */

.families { padding-block: clamp(40px, 7vw, 96px); }
.families .section-title { max-width: 14ch; margin-bottom: clamp(24px, 4vw, 44px); }
.families__grid { display: grid; grid-template-columns: 1.25fr 1fr; grid-template-rows: 1fr 1fr; gap: clamp(24px, 3vw, 40px) clamp(16px, 2.4vw, 32px); }
.family { position: relative; display: flex; flex-direction: column; gap: 14px; text-decoration: none; }
.family--femmes { grid-row: span 2; }
.family__art { position: relative; display: block; flex: 1; overflow: hidden; border-radius: 4px; background: var(--tint); min-height: 260px; }
.family--femmes .family__art { min-height: 560px; }
.family__art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .family:hover .family__art img { transform: scale(1.035); } }
.family__label { position: absolute; top: 18px; inset-inline-start: 18px; display: flex; flex-direction: column; gap: 2px; padding: 12px 18px; background: var(--pale); color: var(--deep); border-radius: 3px; box-shadow: 0 10px 20px -12px rgb(0 0 0 / 0.5); }
.family__label::before { content: ""; position: absolute; inset: 4px; border: 1px dashed color-mix(in oklab, var(--deep) 45%, transparent); border-radius: 2px; }
.family__name { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.4rem, 2.6vw, 2.1rem); line-height: 1; letter-spacing: -0.03em; }
.family__count { font-size: 0.82rem; }
.family__text { max-width: 46ch; font-size: 0.98rem; }
@media (max-width: 800px) {
    .families__grid { grid-template-columns: 1fr; }
    .family--femmes { grid-row: auto; }
    .family--femmes .family__art { min-height: 440px; }
    .families__grid { grid-template-rows: none; }
}

/* ---------- Essayer chez moi ---------- */

.try { background: var(--deep); color: #fff; padding-block: clamp(56px, 9vw, 120px); transition: background-color 0.5s var(--ease-out); }
.try__inner { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.try__copy > p:not(.try__label) { margin-top: 18px; max-width: 40ch; color: rgb(255 255 255 / 0.8); }
.try__label { margin-top: 28px; margin-bottom: 10px; font-family: var(--font-display); font-size: 0.85rem; font-weight: 650; text-transform: uppercase; letter-spacing: 0.08em; opacity: 0.75; }
.try__arts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; max-width: 360px; }
.try__art { aspect-ratio: 1; padding: 0; border: 0; border-radius: 6px; overflow: hidden; background: rgb(255 255 255 / 0.08); outline: 2px solid transparent; outline-offset: 2px; transition: outline-color 200ms ease, transform 160ms var(--ease-out); }
.try__art img { width: 100%; height: 100%; object-fit: cover; }
.try__art[aria-pressed="true"] { outline-color: var(--field); }
:root[data-scarf="noir"] .try__art[aria-pressed="true"] { outline-color: #fff; }
.try__art:active { transform: scale(0.95); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
    display: inline-flex; align-items: center; min-height: 40px; padding: 0.45em 1em;
    border: 1.5px solid color-mix(in oklab, currentColor 35%, transparent); border-radius: 999px; background: transparent;
    font-size: 0.92rem; font-weight: 500; text-decoration: none; white-space: nowrap;
    transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 160ms var(--ease-out);
}
.chip:active { transform: scale(0.96); }
.chip[aria-pressed="true"], .chip[aria-current] { background: var(--deep); border-color: var(--deep); color: var(--pale); }
.try .chip[aria-pressed="true"] { background: #fff; border-color: #fff; color: var(--deep); }
@media (hover: hover) { .chip:hover { border-color: currentColor; } }

.room { position: relative; aspect-ratio: 1232 / 928; overflow: hidden; border-radius: 6px; background: #d9d0c4; box-shadow: 0 40px 80px -40px rgb(0 0 0 / 0.8); }
.room__scene { position: absolute; inset: 0; transition: opacity 240ms var(--ease-out), filter 240ms var(--ease-out); }
.room__scene.is-leaving { opacity: 0; filter: blur(4px); }
.room__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.room__art { position: absolute; overflow: hidden; background: #222; }
.room__art img { width: 100%; height: 100%; object-fit: cover; transition: opacity 320ms var(--ease-out), filter 320ms var(--ease-out); }
.room__art img.is-loading { opacity: 0; filter: blur(6px); }
/* The painting sits behind glass in the room's light. */
.room__art::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.35), inset 0 0 22px rgb(0 0 0 / 0.22); background: linear-gradient(115deg, rgb(255 255 255 / 0.1), transparent 40%, rgb(0 0 0 / 0.06)); pointer-events: none; }
.room .room__name { position: absolute; bottom: 12px; inset-inline-start: 12px; font-size: 0.78rem; padding: 4px 10px; border-radius: 999px; background: rgb(0 0 0 / 0.45); color: #fff; }
@media (max-width: 900px) {
    .try__inner { grid-template-columns: minmax(0, 1fr); }
    .room { order: -1; margin-inline: calc(-1 * var(--gutter)); border-radius: 0; }
    .try__arts { grid-template-columns: repeat(8, 64px); max-width: none; overflow-x: auto; padding-bottom: 6px; }
}

/* ---------- Manifesto ---------- */

.manifesto { background-color: var(--field); color: var(--on); padding-block: clamp(64px, 10vw, 140px); overflow: hidden; transition: background-color 0.5s var(--ease-out), color 0.5s var(--ease-out); }
.manifesto__inner { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(28px, 6vw, 96px); align-items: center; }
.manifesto__badge { width: clamp(150px, 22vw, 300px); color: var(--on); }
.manifesto h2 { font-size: clamp(2.3rem, 5.2vw, 4.6rem); line-height: 0.98; letter-spacing: -0.035em; max-width: 16ch; font-variation-settings: "wdth" 84; }
.manifesto p { margin-top: 22px; max-width: 60ch; color: var(--on-soft); font-size: 1.08rem; }
.manifesto .link { margin-top: 26px; }
@media (max-width: 760px) { .manifesto__inner { grid-template-columns: 1fr; } }

/* ---------- How ordering works ---------- */

.order { padding-block: clamp(56px, 9vw, 120px); }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); margin-top: clamp(28px, 4vw, 48px); counter-reset: step; }
.step { position: relative; padding-top: 28px; border-top: 2px dashed color-mix(in oklab, var(--deep) 35%, transparent); }
.step__n {
    position: absolute; top: -22px; inset-inline-start: 0;
    display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
    background: var(--field); color: var(--on); font-family: var(--font-display); font-weight: 800; font-size: 1.15rem;
    box-shadow: 0 0 0 6px var(--pale);
}
.step h3 { font-size: clamp(1.25rem, 1.9vw, 1.55rem); letter-spacing: -0.02em; margin-top: 10px; }
.step p { margin-top: 10px; max-width: 34ch; opacity: 0.85; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; gap: 44px; } }

/* ---------- Accessories ---------- */

.acc { background: var(--tint); padding-block: clamp(56px, 8vw, 104px); transition: background-color 0.5s var(--ease-out); }
.acc__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 12px 40px; margin-bottom: 32px; }
.acc__head p { max-width: 40ch; }
.acc__grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); }
.acc__grid .card__art { aspect-ratio: 1 !important; background: #fff; }
.acc__grid .card__art img { object-fit: cover; height: 100%; }
@media (max-width: 900px) { .acc__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Journal ---------- */

.journal { padding-block: clamp(56px, 9vw, 120px); }
.journal__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 32px; margin-bottom: 32px; }
.journal__list, .posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.post-line { display: grid; align-content: start; gap: 8px; text-decoration: none; }
.post-line__art { display: block; aspect-ratio: 3 / 2; overflow: hidden; border-radius: 4px; background: var(--tint); margin-bottom: 8px; }
.post-line__art img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease-out); }
.post-line__cloth { display: block; width: 100%; height: 100%; background: url("../img/twill.png") 0 0 / 96px, linear-gradient(160deg, var(--field), var(--deep)); }
.post-line__meta { font-size: 0.84rem; opacity: 0.72; }
.post-line__title { font-family: var(--font-display); font-weight: 700; font-size: 1.28rem; line-height: 1.15; letter-spacing: -0.02em; text-wrap: balance; }
.post-line__excerpt { max-width: 56ch; opacity: 0.85; }
@media (hover: hover) and (pointer: fine) { .post-line:hover .post-line__art img { transform: scale(1.04); } .post-line:hover .post-line__title { text-decoration: underline; text-decoration-thickness: 1.5px; } }
.posts { padding-block: clamp(32px, 5vw, 64px); }
.post-line--lead { grid-column: 1 / -1; grid-template-columns: 1.3fr 1fr; column-gap: clamp(20px, 4vw, 56px); align-items: center; }
.post-line--lead .post-line__art { grid-row: span 4; margin: 0; }
.post-line--lead .post-line__title { font-size: clamp(1.7rem, 3.2vw, 2.6rem); }
@media (max-width: 900px) { .journal__list, .posts { grid-template-columns: 1fr 1fr; } .post-line--lead { grid-template-columns: 1fr; } .post-line--lead .post-line__art { grid-row: auto; } }
@media (max-width: 560px) { .journal__list, .posts { grid-template-columns: 1fr; } }

/* ---------- Shop ---------- */

.shop-head { background-color: var(--field); color: var(--on); padding-block: clamp(32px, 5vw, 64px) clamp(32px, 5vw, 56px); transition: background-color 0.5s var(--ease-out), color 0.5s var(--ease-out); }
.shop-head__title { font-size: clamp(2.8rem, 8vw, 6rem); line-height: 0.9; letter-spacing: -0.045em; font-variation-settings: "wdth" 78; margin-top: 14px; }
.shop-head__lede { margin-top: 16px; max-width: 52ch; color: var(--on-soft); font-size: 1.08rem; }
.shop-head__count { margin-top: 10px; font-size: 0.86rem; color: var(--on-soft); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 0.86rem; opacity: 0.85; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

.filters { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding-block: 24px; }
.filters__cats { display: flex; flex-wrap: wrap; gap: 8px; }
.filters__colours { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.swatch { display: inline-flex; align-items: center; gap: 8px; padding: 6px 4px; text-decoration: none; font-size: 0.9rem; border-radius: 6px; transition: transform 160ms var(--ease-out); }
.swatch__cloth { width: 34px; height: 24px; filter: drop-shadow(0 2px 2px rgb(0 0 0 / 0.25)); transition: transform 220ms var(--ease-out); }
.swatch[aria-current] .swatch__cloth { transform: translateY(-3px); }
.swatch[aria-current] .swatch__name { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.swatch[aria-current] { font-weight: 650; }
.swatch:active { transform: scale(0.96); }
@media (hover: hover) { .swatch:hover .swatch__cloth { transform: translateY(-3px); } }
.swatch--sm .swatch__cloth { width: 26px; height: 18px; }

.wall { columns: 4 230px; column-gap: clamp(16px, 2.2vw, 30px); padding-bottom: clamp(32px, 5vw, 64px); }
.wall .card { break-inside: avoid; margin-bottom: clamp(24px, 3vw, 40px); }
.card__link { display: grid; gap: 4px; text-decoration: none; }
.card__art { display: block; overflow: hidden; background: var(--tint); box-shadow: 0 1px 0 rgb(0 0 0 / 0.06), 0 18px 32px -22px color-mix(in oklab, var(--deep) 80%, transparent); transition: transform 260ms var(--ease-out), box-shadow 260ms var(--ease-out); }
.card__art img { width: 100%; }
.card__meta { display: flex; flex-direction: column; margin-top: 12px; }
.card__name { font-family: var(--font-display); font-weight: 650; font-size: 1.06rem; line-height: 1.2; }
.card__price { font-size: 0.86rem; opacity: 0.75; }
.card__dots { display: flex; gap: 4px; margin-top: 4px; }
.card__dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.12); }
@media (hover: hover) and (pointer: fine) { .card__link:hover .card__art { transform: translateY(-4px); box-shadow: 0 1px 0 rgb(0 0 0 / 0.06), 0 26px 40px -24px color-mix(in oklab, var(--deep) 90%, transparent); } }
@media (max-width: 560px) { .wall { columns: 2; column-gap: 14px; } .card__name { font-size: 0.98rem; } }

.empty { padding-block: 64px; display: grid; justify-items: start; gap: 18px; }
.pager ul { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 0 64px; list-style: none; }
.pager a, .pager span { display: grid; place-items: center; min-width: 44px; height: 44px; padding-inline: 10px; border-radius: 8px; text-decoration: none; border: 1.5px solid color-mix(in oklab, var(--deep) 25%, transparent); }
.pager .current { background: var(--deep); color: var(--pale); border-color: var(--deep); }

/* Painting reveal: a cloth pulled down off each painting as it scrolls in. */
@media (prefers-reduced-motion: no-preference) {
    .js .reveal { clip-path: inset(0 0 100% 0); transition: clip-path 700ms var(--ease-out); }
    .js .reveal.is-in { clip-path: inset(0 0 0 0); }
}

/* ---------- Product page ---------- */

.pdp { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(28px, 5vw, 80px); padding-block: clamp(24px, 4vw, 56px) clamp(48px, 7vw, 96px); align-items: start; }
.pdp__media { position: sticky; top: calc(var(--head-h) + 20px); display: grid; gap: 16px; }
.seg { display: inline-flex; justify-self: start; padding: 4px; border-radius: 12px; background: var(--tint); gap: 4px; }
.seg button { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px; border: 0; border-radius: 9px; background: transparent; font-weight: 500; font-size: 0.95rem; transition: background-color 200ms ease, color 200ms ease, box-shadow 200ms ease; }
.seg button[aria-selected="true"] { background: var(--pale); box-shadow: 0 1px 2px rgb(0 0 0 / 0.12), 0 4px 10px -6px rgb(0 0 0 / 0.3); font-weight: 650; }
.frame--pdp { width: min(100%, calc(76svh * var(--rn, 1))); margin-inline: auto; border-width: 12px; }
.frame--pdp img { width: 100%; height: 100%; object-fit: cover; }
.pdp__gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.pdp__gallery img { aspect-ratio: 1; object-fit: cover; border-radius: 4px; }
.pdp__panel .chips { margin-top: 14px; color: var(--deep); }
.pdp__panel .room { box-shadow: 0 30px 60px -36px rgb(0 0 0 / 0.7); }

.pdp__info { display: grid; gap: 0; }
.pdp__title { margin-top: 14px; font-size: clamp(2.4rem, 5vw, 4.2rem); line-height: 0.95; letter-spacing: -0.04em; font-variation-settings: "wdth" 82; }
.pdp__alt { margin-top: 8px; font-size: 1.3rem; opacity: 0.8; }
.pdp__alt:lang(ar) { font-family: var(--font-ruqaa); font-size: 1.7rem; }
.pdp__price { margin-top: 18px; font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; font-variant-numeric: tabular-nums; }

.buy { margin-top: 26px; display: grid; gap: 14px; }
.formats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.formats legend { margin-bottom: 10px; font-family: var(--font-display); font-weight: 650; font-size: 0.95rem; }
/* Formats are woven labels: a stitched border inside a cloth tag. */
.format { position: relative; display: grid; gap: 2px; padding: 16px 14px 14px; border-radius: 3px; background: var(--tint); cursor: pointer; box-shadow: 0 8px 16px -12px rgb(0 0 0 / 0.45); transition: transform 160ms var(--ease-out), background-color 200ms ease, color 200ms ease; }
.format::before { content: ""; position: absolute; inset: 4px; border: 1px dashed color-mix(in oklab, var(--deep) 40%, transparent); border-radius: 2px; pointer-events: none; transition: border-color 200ms ease; }
.format input { position: absolute; opacity: 0; pointer-events: none; }
.format__size { font-family: var(--font-display); font-weight: 700; font-size: clamp(0.86rem, 3.4vw, 1.02rem); font-variant-numeric: tabular-nums; white-space: nowrap; }
.format__price { font-size: 0.82rem; opacity: 0.75; font-variant-numeric: tabular-nums; }
.format:has(input:checked) { background: var(--field); color: var(--on); box-shadow: none; }
.format:has(input:checked)::before { border-color: color-mix(in oklab, var(--on) 55%, transparent); }
.format:has(input:focus-visible) { outline: 2.5px solid var(--field); outline-offset: 3px; }
.format:active { transform: scale(0.98); }
.buy__row { display: flex; gap: 10px; }
.buy__add { flex: 1; }
.buy__wa { width: 100%; }
.qty { display: inline-flex; align-items: center; border-radius: var(--radius); background: #fff; box-shadow: inset 0 0 0 1.5px color-mix(in oklab, var(--deep) 18%, transparent); }
.qty input { width: 40px; border: 0; background: transparent; text-align: center; font-weight: 600; -moz-appearance: textfield; font-variant-numeric: tabular-nums; }
.qty input::-webkit-inner-spin-button, .qty input::-webkit-outer-spin-button { -webkit-appearance: none; }
.qty__btn { width: 40px; height: 52px; border: 0; background: transparent; font-size: 1.2rem; }

.assure { display: grid; gap: 10px; margin-top: 26px; padding: 18px 20px; border-radius: 8px; background: var(--tint); }
.assure li { display: flex; align-items: center; gap: 12px; font-size: 0.95rem; }
.pdp__colours { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 20px; }
.pdp__desc { margin-top: 24px; }

.related { padding-block: clamp(40px, 6vw, 80px); border-top: 1px solid color-mix(in oklab, var(--deep) 12%, transparent); }
.related .section-title { font-size: clamp(1.6rem, 3vw, 2.4rem); margin-bottom: 24px; }

@media (max-width: 900px) {
    .pdp { grid-template-columns: minmax(0, 1fr); }
    .pdp__media { position: static; }
    .frame--pdp { width: min(100%, calc(64svh * var(--rn, 1))); }
}

/* ---------- Reading: articles and pages ---------- */

.article { padding-bottom: clamp(48px, 7vw, 96px); }
.article__head { padding-block: clamp(32px, 6vw, 72px) clamp(24px, 4vw, 40px); max-width: 980px; }
.article__title { margin-top: 14px; font-size: clamp(2.2rem, 5vw, 4rem); line-height: 1; letter-spacing: -0.035em; font-variation-settings: "wdth" 86; }
.article__meta { margin-top: 16px; font-size: 0.9rem; opacity: 0.75; }
.article__cover { max-width: 1100px; margin-bottom: clamp(32px, 5vw, 56px); }
.article__cover img { width: 100%; border-radius: 4px; aspect-ratio: 16 / 9; object-fit: cover; }
.prose { max-width: 70ch; margin-inline: auto; padding-inline: var(--gutter); box-sizing: content-box; font-size: 1.1rem; line-height: 1.75; }
.pdp .prose { padding-inline: 0; margin-inline: 0; font-size: 1rem; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 2.2em; font-size: clamp(1.6rem, 3vw, 2.1rem); line-height: 1.12; }
.prose h3 { margin-top: 1.8em; font-size: 1.35rem; line-height: 1.2; }
.prose h2 + *, .prose h3 + * { margin-top: 0.6em; }
.prose ul, .prose ol { padding-inline-start: 1.3em; }
.prose li + li { margin-top: 0.4em; }
.prose a { color: inherit; text-decoration-color: var(--field); text-decoration-thickness: 2px; }
.prose img { border-radius: 4px; margin-inline: auto; }
.prose blockquote { padding-inline-start: 1.2em; border-inline-start: 1px solid var(--field); font-family: var(--font-display); font-size: 1.3rem; line-height: 1.35; }
.prose figure { margin-block: 2em; }
.prose figcaption { font-size: 0.86rem; opacity: 0.75; margin-top: 8px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.prose th, .prose td { padding: 10px 8px; border-bottom: 1px solid color-mix(in oklab, var(--deep) 15%, transparent); text-align: start; }
.prose strong { font-weight: 650; }

.lost { padding-block: clamp(64px, 12vw, 160px); display: grid; justify-items: start; gap: 22px; max-width: 760px; }
.lost .scarves { max-width: 320px; height: 22px; }
.lost__title { font-size: clamp(2.4rem, 6vw, 4.6rem); letter-spacing: -0.04em; line-height: 0.95; }

/* ---------- Cart and checkout (WooCommerce markup) ---------- */

.flow { padding-block: clamp(28px, 5vw, 64px) clamp(56px, 8vw, 104px); }
.flow__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 24px; margin-bottom: clamp(24px, 4vw, 40px); }
.flow__title { font-size: clamp(2.4rem, 6vw, 4.4rem); letter-spacing: -0.04em; line-height: 0.95; font-variation-settings: "wdth" 80; }
.flow__note { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 999px; background: var(--tint); font-weight: 500; }

.woocommerce-notices-wrapper:empty { display: none; }
.woocommerce-message, .woocommerce-info, .woocommerce-error, .woocommerce-notice {
    list-style: none; margin: 0 0 24px; padding: 14px 18px; border-radius: 8px; background: var(--tint); font-size: 0.98rem;
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px;
}
.woocommerce-error { background: #fbe1df; color: #7a1410; display: block; }
.woocommerce-error li + li { margin-top: 6px; }
.woocommerce-message .button, .woocommerce-info .button { order: 2; }

.woocommerce table.shop_table, table.shop_table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 1px 0 rgb(0 0 0 / 0.05), 0 20px 40px -32px color-mix(in oklab, var(--deep) 80%, transparent); }
.shop_table th, .shop_table td { padding: 16px; text-align: start; border-bottom: 1px solid color-mix(in oklab, var(--deep) 10%, transparent); vertical-align: middle; }
.shop_table thead th { font-family: var(--font-display); font-weight: 650; font-size: 0.9rem; background: color-mix(in oklab, var(--tint) 60%, #fff); }
.shop_table .product-thumbnail img { width: 72px; height: 72px; object-fit: cover; border-radius: 4px; }
.shop_table .product-name a { font-family: var(--font-display); font-weight: 650; text-decoration: none; }
.shop_table .variation { display: grid; grid-template-columns: auto 1fr; gap: 0 6px; margin-top: 4px; font-size: 0.86rem; opacity: 0.8; }
.shop_table .variation dd p { margin: 0; }
.shop_table .product-remove a { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; text-decoration: none; font-size: 1.3rem; background: var(--tint); }
.shop_table .quantity input { width: 64px; min-height: 44px; border-radius: 8px; border: 1.5px solid color-mix(in oklab, var(--deep) 20%, transparent); text-align: center; background: #fff; }
.shop_table td.actions { text-align: end; background: color-mix(in oklab, var(--tint) 40%, #fff); }
.shop_table .coupon { display: none; }
.woocommerce-cart-form { margin-bottom: 32px; }
.cart-collaterals { display: flex; justify-content: flex-end; }
.cart_totals { width: min(100%, 440px); }
.cart_totals h2 { font-size: 1.6rem; margin-bottom: 14px; }
.wc-proceed-to-checkout { margin-top: 18px; }
.wc-proceed-to-checkout .checkout-button { width: 100%; }
.cart-empty { font-size: 1.2rem; }
.return-to-shop { margin-top: 20px; }
@media (max-width: 760px) {
    .shop_table thead { display: none; }
    .shop_table tr.cart_item { display: grid; grid-template-columns: 72px 1fr auto; gap: 4px 14px; padding: 14px; border-bottom: 1px solid color-mix(in oklab, var(--deep) 10%, transparent); }
    .shop_table tr.cart_item td { padding: 0; border: 0; }
    .shop_table .product-thumbnail { grid-row: span 3; }
    .shop_table .product-remove { grid-column: 3; grid-row: 1; }
    .shop_table .product-price { display: none; }
    .shop_table td::before { display: none; }
    .shop_table td.actions { display: block; padding: 14px; }
}

.woocommerce .button, .woocommerce button.button, .woocommerce a.button, #place_order, .checkout-button {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
    min-height: 52px; padding: 0.8em 1.45em; border: 0; border-radius: var(--radius);
    background: var(--field); color: var(--on); font-family: var(--font-display); font-weight: 650; font-size: 1.02rem; text-decoration: none;
    transition: transform 160ms var(--ease-out), background-color 200ms ease;
}
.woocommerce .button:active, #place_order:active { transform: scale(0.97); }
.woocommerce button[name="update_cart"] { background: transparent; color: var(--deep); box-shadow: inset 0 0 0 1.5px currentColor; min-height: 44px; }
.woocommerce button[name="update_cart"]:disabled { opacity: 0.4; }
#place_order { width: 100%; min-height: 60px; font-size: 1.15rem; }
@media (hover: hover) and (pointer: fine) { .woocommerce .button:hover, #place_order:hover { background: var(--deep); color: #fff; } }

form.checkout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
form.checkout .col2-set { grid-column: 1; }
form.checkout #order_review_heading, form.checkout #order_review { grid-column: 2; }
form.checkout #order_review_heading { grid-row: 1; margin-bottom: -16px; font-size: 1.5rem; }
form.checkout #order_review { grid-row: 2; position: sticky; top: calc(var(--head-h) + 20px); }
form.checkout .col2-set { grid-row: 1 / span 2; }
.woocommerce-billing-fields h3, .woocommerce-additional-fields h3 { font-size: 1.4rem; margin-bottom: 18px; }
.woocommerce-additional-fields { margin-top: 24px; }
.col2-set .col-2 { margin-top: 8px; }
.woocommerce-shipping-fields:empty { display: none; }
.form-row { display: grid; gap: 6px; margin-bottom: 16px; }
.form-row label { font-weight: 500; font-size: 0.95rem; }
.form-row .required { color: var(--field); text-decoration: none; }
.form-row .optional { opacity: 0.6; font-size: 0.85em; }
.input-text, .form-row select, .form-row textarea {
    width: 100%; min-height: 52px; padding: 12px 14px; border-radius: 8px; background: #fff;
    border: 1.5px solid color-mix(in oklab, var(--deep) 20%, transparent); font-size: 1rem;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}
.form-row textarea { min-height: 96px; }
.input-text:focus, .form-row textarea:focus { outline: none; border-color: var(--field); box-shadow: 0 0 0 3px color-mix(in oklab, var(--field) 25%, transparent); }
.form-row.woocommerce-invalid .input-text { border-color: #c0352b; }
#billing_country_field, #billing_last_name_field, #billing_postcode_field, #billing_state_field, #billing_company_field, #billing_address_2_field { display: none !important; }
.woocommerce-checkout-review-order-table { margin-bottom: 18px; }
.woocommerce-checkout-review-order-table tfoot th, .woocommerce-checkout-review-order-table .order-total td { font-family: var(--font-display); }
.woocommerce-checkout-payment { background: #fff; border-radius: 10px; padding: 18px; box-shadow: 0 20px 40px -32px color-mix(in oklab, var(--deep) 80%, transparent); }
.wc_payment_methods { list-style: none; padding: 0; margin: 0 0 16px; }
.wc_payment_method label { font-weight: 650; font-family: var(--font-display); }
.wc_payment_method .payment_box { margin-top: 8px; padding: 12px 14px; border-radius: 8px; background: var(--tint); font-size: 0.95rem; }
.woocommerce-privacy-policy-text { font-size: 0.82rem; opacity: 0.75; margin-bottom: 14px; }
.woocommerce-form-coupon-toggle, .checkout_coupon { display: none; }
@media (max-width: 900px) {
    form.checkout { grid-template-columns: 1fr; }
    form.checkout .col2-set, form.checkout #order_review_heading, form.checkout #order_review { grid-column: 1; grid-row: auto; position: static; margin: 0; }
}

/* Order received */
.thanks { display: grid; justify-items: center; text-align: center; gap: 20px; max-width: 640px; margin-inline: auto; padding-block: 24px 40px; }
.thanks__badge { width: 140px; color: var(--field); }
@media (prefers-reduced-motion: no-preference) { .thanks__badge { animation: rise 700ms var(--ease-out) both; } }
.thanks__title { font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -0.035em; line-height: 1; }
.thanks__lede { max-width: 46ch; font-size: 1.1rem; }
.receipt { width: 100%; margin-top: 8px; padding: 20px 22px; border-radius: 6px; background: #fff; text-align: start; position: relative; }
.receipt::before { content: ""; position: absolute; inset: 5px; border: 1px dashed color-mix(in oklab, var(--deep) 30%, transparent); border-radius: 3px; pointer-events: none; }
.receipt div { display: flex; justify-content: space-between; gap: 16px; padding-block: 8px; border-bottom: 1px solid color-mix(in oklab, var(--deep) 8%, transparent); }
.receipt div:last-child { border: 0; }
.receipt dd { font-variant-numeric: tabular-nums; font-weight: 600; }
.receipt__total { font-family: var(--font-display); font-size: 1.15rem; }

/* ---------- Footer ---------- */

.foot { background-color: var(--deep); color: #fff; transition: background-color 0.5s var(--ease-out); }
.foot > .scarves { height: 16px; }
.foot__inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: clamp(28px, 4vw, 56px); padding-block: clamp(48px, 7vw, 88px) 40px; }
/* Roundels are drawn in vector so they stay sharp and take the ink of their section. */
.roundel { position: relative; display: block; aspect-ratio: 1; color: inherit; }
.roundel svg { width: 100%; height: 100%; overflow: visible; }
.roundel text { fill: currentColor; font-family: var(--font-display); font-weight: 700; font-size: 17px; letter-spacing: 0.04em; font-variation-settings: "wdth" 85; }
.roundel__mark { position: absolute; inset: 0; margin: auto; width: 46%; aspect-ratio: 256 / 199; background: currentColor; -webkit-mask: url("../img/mark-mask.png") center / contain no-repeat; mask: url("../img/mark-mask.png") center / contain no-repeat; }
.foot__roundel { width: 140px; color: #fff; }
.foot__brand p { margin-top: 16px; max-width: 34ch; color: rgb(255 255 255 / 0.78); font-size: 0.95rem; }
.foot__slogan { font-family: var(--font-ruqaa); font-size: 1.6rem !important; color: #fff !important; }
.foot__col h2 { font-size: 1rem; font-weight: 700; margin-bottom: 14px; letter-spacing: 0; }
.foot__col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.foot__col a { text-decoration: none; color: rgb(255 255 255 / 0.82); font-size: 0.95rem; }
.foot__col a:hover { color: #fff; text-decoration: underline; }
.foot__col .btn { color: #fff; margin-bottom: 14px; text-decoration: none; }
.foot__base { padding-block: 22px 32px; border-top: 1px solid rgb(255 255 255 / 0.14); font-size: 0.85rem; color: rgb(255 255 255 / 0.65); }
@media (max-width: 900px) { .foot__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot__brand, .foot__col:last-child { grid-column: 1 / -1; } .foot__col a { overflow-wrap: anywhere; } }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
