    /* =====================================================
       TEMPLATE GUIDE
       1. Brand colours / fonts -> :root tokens
       2. Images                -> search "IMAGE:" and set
                                   style="--img:url('file.jpg')"
       3. Products              -> edit the PRODUCTS array in the JS
       4. Filters               -> ALL_SIZES / COLOURS / MATERIALS in the JS
       5. Bag logic             -> search "addToBag()"
       ===================================================== */

    /* ---------- 1. TOKENS ---------- */
    :root {
      --bg: #efece6;
      --bg-2: #e4e0d8;
      --ink: #14120f;
      --muted: #6e6a62;
      --line: rgba(20, 18, 15, .16);
      --rust: #b3441c;
      --serif: "Playfair Display", Georgia, serif;
      --sans: "DM Sans", "Segoe UI", sans-serif;
      --ease: cubic-bezier(.22, 1, .36, 1);
      --wrap: 1280px;
      --head-h: 108px;
    }

    /* ---------- 2. BASE ---------- */
    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    html { scroll-behavior: smooth; }
    html.lock { overflow: hidden; }
    body { font-family: var(--sans); background: var(--bg); color: var(--ink); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
    @supports (overflow: clip) { body { overflow-x: clip; } }
    a { color: inherit; text-decoration: none; }
    button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
    ul { list-style: none; }
    h1, h2, h3 { font-weight: 400; }
    h1, h2 { font-family: var(--serif); letter-spacing: -.01em; line-height: 1.1; }
    :focus-visible { outline: 2px solid var(--rust); outline-offset: 3px; }
    .wrap { width: min(var(--wrap), 100% - 56px); margin-inline: auto; }
    .i { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }
    .cap { font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 500; }
    section { padding: 56px 0; }
    [hidden] { display: none !important; }

    /* Image placeholder: IMAGE: set --img on any .ph */
    .ph { position: absolute; inset: 0; background: var(--img, none) center / cover no-repeat, linear-gradient(150deg, #cfc8bb, #a69d8e); transition: transform 1.2s var(--ease); }
    .ph::after { content: attr(data-label); position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 12px; font-size: .7rem; letter-spacing: .08em; color: rgba(20, 18, 15, .45); }
    .ph[style*="--img"]::after { display: none; }

    /* Text link with animated underline */
    .ulink { display: inline-flex; align-items: center; gap: 10px; position: relative; padding-bottom: 6px; }
    .ulink::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; background: var(--rust); transform-origin: left; transition: transform .5s var(--ease); }
    .ulink:hover::after { transform: scaleX(.35); }
    .ulink .i { transition: transform .4s var(--ease); } .ulink:hover .i { transform: translateX(5px); }

    /* Reveal on scroll */
    .reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
    .reveal.in { opacity: 1; transform: none; }

    /* Buttons */
    .btn-line { display: inline-flex; align-items: center; gap: 14px; padding: 13px 24px; border: 1px solid rgba(255, 255, 255, .75); position: relative; overflow: hidden; transition: color .5s var(--ease); z-index: 0; }
    .btn-line::before { content: ""; position: absolute; inset: 0; background: #fff; transform: translateY(101%); transition: transform .5s var(--ease); z-index: -1; }
    .btn-line:hover { color: var(--ink); } .btn-line:hover::before { transform: none; }
    .btn-outline { position: relative; overflow: hidden; border: 1px solid var(--ink); padding: 13px 24px; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; transition: color .5s var(--ease); z-index: 0; }
    .btn-outline::before { content: ""; position: absolute; inset: 0; background: var(--ink); transform: translateY(101%); transition: transform .5s var(--ease); z-index: -1; }
    .btn-outline:hover { color: #fff; } .btn-outline:hover::before { transform: none; }
    .btn-solid { background: var(--ink); color: #fff; padding: 13px 24px; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; transition: background .3s; }
    .btn-solid:hover { background: var(--rust); }

    /* ---------- 3. ANNOUNCEMENT + HEADER ---------- */
    .announce { background: var(--ink); color: #fff; padding: 9px 0; }
    .announce .wrap { display: flex; justify-content: space-between; align-items: center; }
    .announce p { flex: 1; text-align: center; transition: opacity .5s; padding-left: 90px; }
    .announce span { width: 90px; text-align: right; opacity: .8; }
    .header { position: sticky; top: 0; z-index: 100; background: rgba(239, 236, 230, .92); backdrop-filter: blur(14px); transition: box-shadow .4s, background .4s; }
    .header.scrolled { box-shadow: 0 1px 0 var(--line); }
    .head-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 18px 0 8px; transition: padding .4s; }
    .head-row > * { min-width: 0; }
    .header.scrolled .head-row { padding: 10px 0 4px; }
    .logo { font-family: var(--serif); font-size: 2rem; letter-spacing: .04em; text-align: center; }
    .tools { display: flex; justify-content: flex-end; gap: 6px; }
    .tool { width: 40px; height: 40px; display: grid; place-items: center; font-size: 1.15rem; position: relative; border-radius: 50%; transition: background .3s; }
    .tool:hover { background: rgba(20, 18, 15, .07); }
    .tool b { position: absolute; top: 4px; right: 3px; min-width: 15px; height: 15px; border-radius: 8px; background: var(--rust); color: #fff; font-size: .6rem; display: grid; place-items: center; transition: transform .3s var(--ease); }
    .tool b.pop { transform: scale(1.5); }
    .nav { display: flex; justify-content: center; gap: 38px; padding: 8px 0 16px; }
    .nav a { position: relative; padding: 4px 0; }
    .nav a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; background: currentColor; transform: scaleX(0); transition: transform .45s var(--ease); transform-origin: right; }
    .nav a:hover::after { transform: scaleX(1); transform-origin: left; }
    .nav a.current::after { transform: scaleX(1); transform-origin: left; }
    .nav .sale { color: var(--rust); }
    .burger { display: none; width: 40px; height: 40px; }
    .burger span { display: block; width: 20px; height: 1.5px; background: var(--ink); margin: 5px auto; transition: .35s var(--ease); }
    .burger.open span:first-child { transform: translateY(3.250px) rotate(45deg); } .burger.open span:last-child { transform: translateY(-3.250px) rotate(-45deg); }

    /* ---------- 4. COLLECTION HERO ---------- */
    .chero-sec { padding: 26px 0 0; }
    .chero { display: grid; grid-template-columns: 58% 42%; }
    .chero-copy { padding: 26px 56px 26px 0; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
    .chero-img { position: relative; overflow: hidden; min-height: 340px; }
    .chero-img .ph { transform: scale(1.06); }
    .chero-img:hover .ph { transform: scale(1.12); }
    .crumbs { display: flex; align-items: center; gap: 8px; color: var(--muted); margin-bottom: 26px; }
    .crumbs .cur { color: var(--ink); }
    .crumbs a { transition: color .3s; } .crumbs a:hover { color: var(--ink); }
    .chero h1 { font-size: clamp(2.4rem, 5vw, 4rem); text-transform: uppercase; margin: 12px 0 16px; }
    .chero-copy p { color: var(--muted); font-size: .92rem; line-height: 1.6; max-width: 440px; }
    .pieces { color: var(--muted); margin-top: 20px; }
    .chero-rule { width: 28px; border: 0; border-top: 1px solid var(--rust); margin-top: 16px; transition: width .6s var(--ease); }
    .chero.in .chero-rule { width: 64px; }
    .chero-in > * { opacity: 0; transform: translateY(24px); animation: rise 1.1s var(--ease) forwards; }
    .chero-in > :nth-child(1) { animation-delay: 0s; }
    .chero-in > :nth-child(2) { animation-delay: .15s; }
    .chero-in > :nth-child(3) { animation-delay: .30s; }
    .chero-in > :nth-child(4) { animation-delay: .45s; }
    .chero-in > :nth-child(5) { animation-delay: .60s; }
    .chero-in > :nth-child(6) { animation-delay: .75s; }
    @keyframes rise { to { opacity: 1; transform: none; } }

    /* ---------- 5. SUB-CATEGORY CHIPS ---------- */
    .chips { display: flex; gap: 30px; overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; padding: 26px 0 0; }
    .chips::-webkit-scrollbar { display: none; }
    .chip { position: relative; white-space: nowrap; padding: 0 0 8px; color: var(--muted); transition: color .3s var(--ease); }
    .chip::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
    .chip:hover { color: var(--ink); } .chip:hover::after { transform: scaleX(1); transform-origin: left; }
    .chip.on { color: var(--ink); } .chip.on::after { transform: scaleX(1); transform-origin: left; }

    /* ---------- 6. STICKY TOOLBAR ---------- */
    .shop { padding: 0 0 56px; }
    .shop-bar { position: sticky; top: var(--head-h); z-index: 60; background: var(--bg); display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid transparent; transition: border-color .4s var(--ease); }
    .shop-bar.stuck { border-bottom-color: var(--line); }
    .bar-l, .bar-r { display: flex; align-items: center; gap: 22px; }
    .fbtn { display: inline-flex; align-items: center; gap: 9px; position: relative; padding: 4px 0; color: var(--ink); }
    .fbtn .i { font-size: 1rem; }
    .fbtn b { min-width: 17px; height: 17px; border-radius: 50%; background: var(--rust); color: #fff; font-size: .58rem; display: grid; place-items: center; letter-spacing: 0; }
    .bar-count { color: var(--muted); }
    .views { display: flex; gap: 4px; }
    .vbtn { width: 32px; height: 32px; display: grid; place-items: center; color: var(--muted); font-size: 1rem; transition: color .3s var(--ease); }
    .vbtn:hover { color: var(--ink); }
    .vbtn.on { color: var(--ink); }

    /* ---------- 7. SORT DROPDOWN ---------- */
    .sort { position: relative; }
    .sort-btn { display: inline-flex; align-items: center; gap: 10px; padding: 6px 0; color: var(--ink); }
    .sort-btn .chev { font-size: .9rem; transition: transform .35s var(--ease); }
    .sort-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }
    .sort-panel { position: absolute; top: calc(100% + 10px); right: 0; min-width: 230px; background: var(--bg); border: 1px solid var(--line); z-index: 70; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .35s var(--ease), transform .35s var(--ease), visibility .35s; }
    .sort-panel.open { opacity: 1; visibility: visible; transform: none; }
    .sort-panel button { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 12px 16px; font-size: .76rem; transition: background .3s; }
    .sort-panel button:hover { background: rgba(20, 18, 15, .05); }
    .sort-panel .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--rust); opacity: 0; transition: opacity .3s; }
    .sort-panel button[aria-selected="true"] .dot { opacity: 1; }

    /* ---------- 8. SHOP BODY / SIDEBAR ---------- */
    .shop-body { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 40px; align-items: start; padding-top: 24px; }
    .shop-body.no-side { grid-template-columns: minmax(0, 1fr); }
    .shop-body.no-side .filters { display: none; }

    .filters { position: sticky; top: calc(var(--head-h) + 62px); max-height: calc(100vh - var(--head-h) - 86px); overflow-y: auto; scrollbar-width: thin; padding-right: 6px; }
    .fhead-bar { display: none; }
    .ffoot { display: none; }
    .fgroup { border-bottom: 1px solid var(--line); }
    .fgroup:first-child { border-top: 1px solid var(--line); }
    .fhead { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 15px 0; text-align: left; }
    .fhead .i { font-size: .95rem; }
    .fhead .vbar { transform-box: fill-box; transform-origin: center; transition: transform .45s var(--ease); }
    .fgroup.open .fhead .vbar { transform: scaleY(0); }
    .fpanel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
    .fpanel > div { overflow: hidden; }
    .fgroup.open .fpanel { grid-template-rows: 1fr; }
    .fpanel-in { padding-bottom: 18px; display: flex; flex-direction: column; gap: 11px; }

    /* checkboxes */
    .check { display: flex; align-items: center; gap: 11px; font-size: .8rem; color: var(--muted); cursor: pointer; transition: color .3s; }
    .check:hover { color: var(--ink); }
    .check input { position: absolute; opacity: 0; width: 0; height: 0; }
    .check .box { width: 16px; height: 16px; border: 1px solid var(--ink); display: grid; place-items: center; flex: none; transition: background .3s, border-color .3s; }
    .check .box .i { width: 11px; height: 11px; stroke: #fff; stroke-width: 2; stroke-dasharray: 26; stroke-dashoffset: 26; transition: stroke-dashoffset .3s var(--ease); }
    .check input:checked + .box { background: var(--ink); }
    .check input:checked + .box .i { stroke-dashoffset: 0; }
    .check input:focus-visible + .box { outline: 2px solid var(--rust); outline-offset: 3px; }
    .check em { font-style: normal; color: var(--muted); opacity: .75; font-size: .72rem; margin-left: auto; }

    /* sizes */
    .sizes { display: flex; flex-wrap: wrap; gap: 6px; }
    .size { width: 40px; height: 40px; border: 1px solid var(--line); font-size: .68rem; letter-spacing: .08em; display: grid; place-items: center; position: relative; transition: background .3s, color .3s, border-color .3s; }
    .size:hover:not(.off):not(:disabled) { border-color: var(--ink); }
    .size.on { background: var(--ink); color: #fff; border-color: var(--ink); }
    .size.off, .size:disabled { opacity: .38; cursor: not-allowed; }
    .size.off::after, .size:disabled::after { content: ""; position: absolute; left: 6px; right: 6px; top: 50%; height: 1px; background: currentColor; transform: rotate(-32deg); }

    /* colours */
    .cols { display: flex; flex-wrap: wrap; gap: 14px; }
    .col { width: 22px; height: 22px; border-radius: 50%; position: relative; background: var(--c); transition: transform .3s var(--ease), box-shadow .3s; padding: 0; border: 0; cursor: pointer; }
    .col:hover { transform: scale(1.3); }
    .col.on { box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px var(--ink); }
    .col .tip { position: absolute; bottom: calc(100% + 9px); left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; font-size: .6rem; letter-spacing: .1em; text-transform: uppercase; padding: 4px 8px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .3s var(--ease); }
    .col:hover .tip { opacity: 1; }

    /* price range */
    .range { position: relative; height: 34px; margin-top: 6px; }
    .rtrack { position: absolute; top: 16px; left: 0; right: 0; height: 1px; background: var(--ink); }
    .rfill { position: absolute; top: 16px; height: 1px; background: var(--rust); }
    .range input[type="range"] { position: absolute; top: 0; left: 0; width: 100%; height: 34px; margin: 0; background: none; -webkit-appearance: none; appearance: none; pointer-events: none; }
    .range input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 14px; height: 14px; border-radius: 50%; background: var(--ink); border: 0; cursor: pointer; pointer-events: auto; }
    .range input[type="range"]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--ink); border: 0; cursor: pointer; pointer-events: auto; }
    .range input[type="range"]::-moz-range-track { background: none; }
    .pinputs { display: flex; gap: 10px; margin-top: 10px; }
    .pinputs label { flex: 1; display: flex; align-items: center; gap: 6px; border: 1px solid var(--line); padding: 8px 10px; font-size: .72rem; color: var(--muted); }
    .pinputs input { width: 100%; border: 0; background: none; font: inherit; font-size: .72rem; color: var(--ink); outline: 0; -moz-appearance: textfield; }
    .pinputs input::-webkit-outer-spin-button, .pinputs input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

    /* toggle switch */
    .switch { display: flex; align-items: center; gap: 12px; font-size: .8rem; color: var(--muted); cursor: pointer; transition: color .3s; }
    .switch:hover { color: var(--ink); }
    .switch input { position: absolute; opacity: 0; width: 0; height: 0; }
    .tgl { width: 36px; height: 20px; border-radius: 10px; background: transparent; border: 1px solid var(--ink); position: relative; flex: none; transition: background .3s; }
    .tgl::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--ink); transition: transform .3s var(--ease), background .3s; }
    .switch input:checked + .tgl { background: var(--ink); }
    .switch input:checked + .tgl::after { transform: translateX(16px); background: var(--bg); }
    .switch input:focus-visible + .tgl { outline: 2px solid var(--rust); outline-offset: 3px; }

    .clearall { margin-top: 22px; color: var(--rust); }

    /* active filter pills */
    .pills { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 20px; }
    .pill { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--ink); padding: 7px 11px; font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; transition: opacity .25s var(--ease), transform .25s var(--ease), background .3s, color .3s; }
    .pill:hover { background: var(--ink); color: #fff; }
    .pill.out { opacity: 0; transform: scale(.9); }
    .pill .i { font-size: .7rem; }

    /* ---------- 9. PRODUCT GRID + CARD ---------- */
    .grid { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 22px; }
    .grid.fading .prod { opacity: 0; transform: translateY(10px); transition: opacity .15s var(--ease), transform .15s var(--ease); }

    .prod { position: relative; }
    .prod h3 { font-size: .76rem; margin-top: 12px; }
    .prod p { font-size: .76rem; color: var(--muted); }
    .prod p s { color: var(--muted); opacity: .8; margin-right: 6px; }
    .prod p .now { color: var(--rust); }
    .pimg { position: relative; aspect-ratio: 1 / 1.02; overflow: hidden; background: var(--bg-2); }
    .prod:hover .ph { transform: scale(1.07); }
    .ph-b { opacity: 0; transition: opacity .6s var(--ease), transform 1.2s var(--ease); }
    @media (hover: hover) { .prod:hover .ph-b { opacity: 1; } }
    .tint { position: absolute; inset: 0; z-index: 1; background: transparent; mix-blend-mode: multiply; opacity: .55; pointer-events: none; transition: background .4s var(--ease); }
    .pbadge { position: absolute; top: 0; left: 0; z-index: 3; background: var(--rust); color: #fff; font-size: .58rem; letter-spacing: .12em; font-weight: 700; padding: 4px 9px; text-transform: uppercase; }
    .heart { position: absolute; z-index: 3; top: 10px; right: 10px; font-size: 1rem; width: 30px; height: 30px; display: grid; place-items: center; transition: transform .35s var(--ease); }
    .heart:hover { transform: scale(1.2); } .heart.on .i { fill: var(--rust); stroke: var(--rust); }
    .qbar { position: absolute; z-index: 3; left: 10px; right: 10px; bottom: 10px; transform: translateY(130%); transition: transform .5s var(--ease); }
    .quick { width: 100%; padding: 11px; background: var(--ink); color: #fff; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; transition: background .3s; }
    .quick:hover { background: var(--rust); }
    .qsizes { display: none; gap: 4px; background: var(--ink); padding: 6px; }
    .prod.sizing .quick { display: none; }
    .prod.sizing .qsizes { display: flex; }
    .qsize { flex: 1; padding: 9px 0; color: #fff; font-size: .62rem; letter-spacing: .1em; border: 1px solid rgba(255, 255, 255, .28); transition: background .3s, border-color .3s, opacity .3s; }
    .qsize:hover:not(:disabled) { background: var(--rust); border-color: var(--rust); }
    .qsize:disabled { opacity: .28; cursor: not-allowed; text-decoration: line-through; }
    .qplus { display: none; position: absolute; z-index: 3; right: 10px; bottom: 10px; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: #fff; place-items: center; font-size: .9rem; transition: background .3s, transform .3s var(--ease); }
    .qplus:hover { background: var(--rust); transform: scale(1.08); }
    .sw { display: flex; gap: 6px; margin-top: 8px; }
    .sw-dot { width: 11px; height: 11px; border-radius: 50%; cursor: pointer; padding: 0; border: 0; transition: transform .3s var(--ease), box-shadow .3s; }
    .sw-dot:hover { transform: scale(1.3); }
    .sw-dot.on { box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px var(--ink); }

    @media (hover: hover) { .prod:hover .qbar { transform: none; } }
    .prod.sizing .qbar { transform: none; }

    /* ---------- 10. EDITORIAL BREAK ---------- */
    .break { grid-column: 1 / -1; position: relative; overflow: hidden; aspect-ratio: 3 / 1; margin: 12px 0; }
    .break .ph { inset: -10% 0; transition: none; }
    .break::before { content: ""; position: absolute; inset: 0; z-index: 2; background: linear-gradient(0deg, rgba(0, 0, 0, .55), transparent 55%); }
    .break-copy { position: absolute; z-index: 3; left: 40px; bottom: 34px; color: #fff; }
    .break-copy h3 { font-family: var(--serif); text-transform: uppercase; font-size: clamp(1.4rem, 2.6vw, 2.2rem); margin: 10px 0 20px; letter-spacing: -.01em; }

    /* ---------- 11. SKELETON ---------- */
    .sk { position: relative; }
    .sk .sk-img { aspect-ratio: 1 / 1.02; background: var(--bg-2); position: relative; overflow: hidden; }
    .sk .sk-line { height: 9px; background: var(--bg-2); margin-top: 12px; position: relative; overflow: hidden; }
    .sk .sk-line.short { width: 45%; }
    .sk .sk-img::after, .sk .sk-line::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55), transparent); transform: translateX(-100%); animation: shimmer 1.2s infinite; }
    @keyframes shimmer { to { transform: translateX(100%); } }

    /* ---------- 12. EMPTY STATE ---------- */
    .empty { text-align: center; padding: 80px 20px; }
    .empty .i { font-size: 2.2rem; color: var(--muted); }
    .empty h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); text-transform: uppercase; margin: 20px 0 10px; }
    .empty p { color: var(--muted); font-size: .88rem; margin-bottom: 26px; }

    /* ---------- 13. LOAD MORE ---------- */
    .more { text-align: center; padding-top: 46px; }
    .more .cap { color: var(--muted); display: block; }
    .bar { width: 160px; height: 1px; background: var(--line); margin: 14px auto 22px; }
    .bar i { display: block; height: 1px; background: var(--rust); width: 0; transition: width .6s var(--ease); }

    /* ---------- 14. RECENTLY VIEWED ---------- */
    .rec-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 22px; }
    .rec-head h2 { font-size: clamp(1.7rem, 2.6vw, 2.2rem); text-transform: uppercase; }
    .rec-wrap { position: relative; }
    .rec-track { display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -ms-overflow-style: none; }
    .rec-track::-webkit-scrollbar { display: none; }
    .rec-track .prod { flex: 0 0 calc((100% - 66px) / 4); scroll-snap-align: start; }
    .car-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; display: grid; place-items: center; font-size: 1.2rem; z-index: 4; transition: transform .3s var(--ease); }
    .car-btn:hover { transform: translateY(-50%) scale(1.25); }
    .car-btn.l { left: -14px; } .car-btn.l .i { transform: scaleX(-1); } .car-btn.r { right: -14px; }

    /* ---------- 15. TRUST STRIP ---------- */
    .trust { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); padding-bottom: 28px; }
    .trust div { display: flex; align-items: center; justify-content: center; gap: 18px; padding: 8px 14px; border-right: 1px solid var(--line); font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 500; transition: transform .4s var(--ease); }
    .trust div:last-child { border: 0; } .trust div:hover { transform: translateY(-3px); }
    .trust .i { font-size: 1.9rem; stroke-width: 1.1; }

    /* ---------- 16. FOOTER ---------- */
    .footer { background: var(--ink); color: rgba(255, 255, 255, .72); padding: 54px 0 24px; font-size: .78rem; }
    .foot-grid { display: grid; grid-template-columns: 1.3fr repeat(4, 1fr); gap: 32px; padding-bottom: 46px; }
    .footer .logo { text-align: left; color: #fff; font-size: 2rem; margin-bottom: 14px; display: block; }
    .footer h4 { color: #fff; font-size: .64rem; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 16px; font-weight: 500; }
    .footer li { margin-bottom: 9px; } .footer li a { transition: color .3s, padding .3s; } .footer li a:hover { color: #fff; padding-left: 6px; }
    .social { display: flex; gap: 14px; font-size: 1.05rem; } .social a { transition: color .3s, transform .4s var(--ease); } .social a:hover { color: #fff; transform: translateY(-3px); }
    .foot-bottom { border-top: 1px solid rgba(179, 68, 28, .7); padding-top: 22px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; font-size: .7rem; }
    .pay { display: flex; gap: 22px; font-weight: 700; font-style: italic; letter-spacing: .04em; opacity: .75; }

    /* ---------- 17. TOAST ---------- */
    #toast { position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 90px); background: var(--ink); color: #fff; padding: 13px 24px; font-size: .78rem; z-index: 300; transition: transform .6s var(--ease); }
    #toast.show { transform: translate(-50%, 0); }

    /* ---------- 18. DRAWERS + BOTTOM SHEET ---------- */
    .scrim { position: fixed; inset: 0; background: rgba(20, 18, 15, .45); opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility .4s; z-index: 190; }
    .scrim.on { opacity: 1; visibility: visible; }

    .sheet {
      position: fixed; left: 0; right: 0; bottom: 0; z-index: 210;
      background: var(--bg); border-top: 1px solid var(--line);
      padding: 22px 22px calc(22px + env(safe-area-inset-bottom, 0px));
      transform: translateY(101%); transition: transform .5s var(--ease);
      box-shadow: 0 -20px 50px rgba(0, 0, 0, .15);
      visibility: hidden;
    }
    .sheet.open { transform: none; visibility: visible; }
    .sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
    .sheet-head h3 { font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 500; }
    .sheet .size { width: 48px; height: 48px; font-size: .72rem; }

    /* ---------- 19. RESPONSIVE ---------- */
    @media (max-width: 1020px) {
      /* solid header on mobile so the fixed nav drawer is not clipped by backdrop-filter */
      .header { background: var(--bg); backdrop-filter: none; }
      .header.scrolled { box-shadow: 0 1px 0 var(--line); }

      .nav { position: fixed; inset: 0 0 0 auto; width: min(300px, 80vw); background: var(--bg); flex-direction: column; padding: 90px 32px; gap: 22px; transform: translateX(100%); transition: transform .5s var(--ease); box-shadow: -20px 0 50px rgba(0, 0, 0, .2); z-index: 200; }
      .nav.open { transform: none; }
      .burger { display: block; position: relative; z-index: 201; }
      .head-row { grid-template-columns: 1fr auto 1fr; } .logo { text-align: center; }

      .chero { grid-template-columns: 1fr; }
      .chero-copy { padding: 0 0 26px; }
      .chero-img { min-height: 260px; }

      .shop-body { grid-template-columns: minmax(0, 1fr); gap: 0; }
      .filters { position: fixed; top: 0; left: 0; bottom: 0; width: min(360px, 90vw); max-height: none; background: var(--bg); z-index: 200; transform: translateX(-100%); transition: transform .5s var(--ease); display: flex; flex-direction: column; padding: 0; overflow: hidden; box-shadow: 20px 0 50px rgba(0, 0, 0, .2); }
      .filters.open { transform: none; }
      .fhead-bar { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--line); }
      .fscroll { flex: 1; overflow-y: auto; padding: 0 22px 22px; }
      .ffoot { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 14px 22px; border-top: 1px solid var(--line); background: var(--bg); }
      .ffoot button { padding: 14px 10px; font-size: .62rem; }
      .clearall { display: none; }

      .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .shop-body.no-side .filters { display: flex; }
      .rec-track .prod { flex-basis: calc((100% - 22px) / 2); }
      .break { aspect-ratio: 2 / 1; }
      .trust { grid-template-columns: repeat(2, 1fr); row-gap: 18px; } .trust div:nth-child(2) { border: 0; }
      .foot-grid { grid-template-columns: repeat(2, 1fr); }
    }

    @media (max-width: 600px) {
      .wrap { width: calc(100% - 32px); } section { padding: 40px 0; }
      .announce span { display: none; } .announce p { padding: 0; }
      .shop-bar { flex-wrap: wrap; gap: 10px; }
      .bar-l { gap: 16px; }
      .bar-count { font-size: .6rem; }
      .grid { gap: 22px 12px; }
      .rec-track { gap: 12px; }
      .rec-track .prod { flex-basis: calc((100% - 12px) / 2); }
      .car-btn { display: none; }
      .break { aspect-ratio: 1 / .8; }
      .break-copy { left: 20px; right: 20px; bottom: 22px; }
      .foot-grid { grid-template-columns: 1fr; }
    }

    /* touch / no-hover devices */
    @media (hover: none), (max-width: 600px) {
      .qbar { display: none; }
      .qplus { display: grid; }
      .prod:hover .ph { transform: none; }
      .ph-b { display: none; }
    }

    @media (prefers-reduced-motion: reduce) {
      *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
      .reveal, .chero-in > * { opacity: 1; transform: none; }
      .sk .sk-img::after, .sk .sk-line::after { display: none; }
    }
/* Shared NOVA type scale. Matching roles use identical sizes on every template.
   Keep this block in sync across standalone pages. Sizes scale with viewport width. */
:root {
  --type-display: clamp(2.6rem, 6vw, 4.6rem);
  --type-page: clamp(1.9rem, 3.2vw, 2.8rem);
  --type-section: clamp(1.8rem, 3vw, 2.4rem);
  --type-statement: clamp(2rem, 5vw, 4rem);
  --type-subheading: 1.4rem;
  --type-body: .95rem;
  --type-input: .88rem;
  --type-support: .84rem;
  --type-meta: .78rem;
  --type-caption: .7rem;
  --type-control: .68rem;
  --type-label: .62rem;
  --type-logo: 2rem;
}
body { font-size: 1rem; }
.logo, .footer .logo { font-size: var(--type-logo); }
.cap, .nav, .crumbs, .btn-line, .btn-outline, .btn-solid, .btn-danger,
.filter, .text-link, .subnav a, .auth-tab {
  font-size: var(--type-control);
}
.hero h1, .chero h1, .page-title { font-size: var(--type-display); }
.title-row h1, .hero-title h1, .info h1, .confirm-wrap h1 {
  font-size: var(--type-page);
}
.sec-head h2, .rec-head h2, .hsec-head h2, .sect-head h2,
.arrivals h2, .fabric-copy h2, .story-left h2, .story-copy h2,
.sustain-head h2, .section-label h2, .policy h2, .tracking-card h2,
.empty-track h2, .panel-head h2, .auth-edit-copy h2,
.featured h2, .article-dialog h2 { font-size: var(--type-section); }
.closing h2, .dark-panel h2 { font-size: var(--type-statement); }
.note-card h3, .role h3, .story-card h3, .support-grid h3,
.policy h3, .article-dialog h3, .craft-step h3, .value h3,
.repair-strip h3, .visit-left h3, .contact-cta h3, .join h2,
.modal-head h3, dialog h2, .auth-panel h2, .bag-empty h3,
.empty h2, .empty h3, .empty-state h3, .result-inner h3 {
  font-size: var(--type-subheading);
}
.hero-body, .hero-sub, .intro, .body-copy, .chero-copy p,
.title-row .sub, .story-right p, .craft-step p, .sustain-head p,
.story-copy p, .fabric-copy p, .note-card p, .story-card p,
.support-grid p, .policy p, .policy li, .article-dialog p,
.role details p, .role details li, .dark-panel > p:not(.cap),
.hsec-head p, .confirm-wrap > p { font-size: var(--type-body); }
.page-form input, .page-form select, .page-form textarea,
.search-input, .field input, .field select, .field textarea,
.search-field input, .news input, .promo-form input {
  font-size: var(--type-input);
}
/* Labels outside fields match the already-floated labels in account/checkout. */
.page-form label:not(.check-line), .track-step, .tl-step .lbl { font-size: var(--type-label); }
.page-form .check-line { font-size: var(--type-support) !important; }
.role .role-meta, .feedback, .page-form .feedback,
.policy-banner, .order-item, .summary-line, .cookie-option,
.cookie-option small, .empty p, .empty-state p, .result-inner p {
  font-size: var(--type-support);
}
.story-card .cap { font-size: var(--type-control); }
.image-caption, .status-pill, .document-nav a, .dialog-close {
  font-size: var(--type-control);
}
.order-item small, .auth-panel .sub { font-size: var(--type-meta); }
.footer { font-size: var(--type-meta); }
.footer h4 { font-size: .64rem; }
.foot-bottom, .form-note, .field-note, .field .helper, .field .err-msg,
.drawer-foot .note, .drawer .bag-info p,
.drawer .bag-line .v { font-size: var(--type-caption); }
.drawer .bag-info > a, .drawer .bag-line h4 { font-size: .76rem; }
.drawer .bag-line .price { font-size: var(--type-meta); }
.summary-line.total { font-size: 1.1rem; }
@media (max-width: 600px) {
  :root { --type-page: 1.7rem; }
  .logo, .footer .logo { font-size: var(--type-logo); }
}
