/* =========================================================
   BAGS & BEYOND
   Main stylesheet — light-mode design system

   One palette, one type scale, one spacing scale, one button
   language, one form language. Every component below reads
   from the tokens in :root — change a token, change the site.

   Contents
   01  Tokens
   02  Reset / base / type helpers
   03  Buttons
   04  Form controls
   05  Header, search panel, drawer
   06  Shop page: heading, filters, product grid
   07  Product detail: gallery, details, accordions
   08  Cart
   09  Checkout, payment options
   10  Auth pages (login, register, password reset)
   11  Account, orders, order confirmation
   12  Site messages
   13  Footer
   14  Modals
   15  Error pages
   16  Accessibility, reduced motion
   ========================================================= */


/* =========================================================
   01  TOKENS
   ========================================================= */

:root {

    /* ---- Colour ---------------------------------------- */
    --bg:            #f2f1ed;   /* page background          */
    --surface:       #e9e7e1;   /* secondary surface        */
    --frame:         #f8f7f3;   /* product image tile       */
    --field:         #fbfaf7;   /* inputs, cards            */
    --white:         #ffffff;

    /* Aliases used by the login / register rules further down this file.
       They were referenced but never defined, which left the Login button's
       label the same colour as its background. */
    --paper:         var(--bg);
    --muted:         var(--ink-2);

    --ink:           #111111;   /* main text                */
    --ink-2:         #66645f;   /* secondary text           */
    --ink-body:      #3b3a37;   /* long-form body text      */
    --ink-3:         #88857f;   /* soft text (decorative)   */
    --placeholder:   #75726c;

    --line:          #d8d6d0;   /* default border / divider */
    --line-strong:   #bdbab3;   /* form controls, hover     */
    --line-on-surface: #cdcac3; /* dividers inside --surface */

    --pink:          #de0354;   /* brand accent — sparingly */

    --success:       #3f6f52;
    --success-bg:    #e3ebe4;
    --success-line:  #c9d8cc;
    --warning:       #85590f;
    --warning-bg:    #f1e8d3;
    --warning-line:  #e3d6b4;
    --danger:        #9c3f38;
    --danger-bg:     #f0deda;
    --danger-line:   #e4c9c4;

    --focus:         #3a3834;

    /* ---- Type ------------------------------------------ */
    --font: "Archivo", Arial, Helvetica, sans-serif;

    --fs-meta:   11px;   /* small uppercase metadata         */
    --fs-label:  12px;   /* labels, buttons                  */
    --fs-small:  13px;
    --fs-body:   15px;
    --fs-lead:   17px;
    --fs-h3:     20px;
    --fs-h2:     24px;
    --fs-title:  clamp(28px, 3.6vw, 42px);

    --lh-body:   1.65;
    --lh-tight:  1.15;

    --track-meta:  0.1em;
    --track-label: 0.08em;
    --track-btn:   0.14em;

    /* ---- Spacing --------------------------------------- */
    --s-1:  4px;
    --s-2:  8px;
    --s-3:  12px;    /* small gap   */
    --s-4:  16px;
    --s-5:  24px;    /* medium gap  */
    --s-6:  32px;
    --s-7:  48px;    /* large gap   */
    --s-8:  72px;
    --s-9:  112px;   /* section gap */

    /* ---- Layout ---------------------------------------- */
    --header-h:  114px;   /* 1.5 x the old 76px */
    --gutter:    16px;
    --page-gap:  40px;   /* every page starts this far under the header */
    --max:       1320px;
    --control-h: 48px;

    /* ---- Motion ---------------------------------------- */
    --ease:      cubic-bezier(0.22, 0.61, 0.36, 1);
}

@media (max-width: 374px) {
    :root { --gutter: 14px; }
}

@media (min-width: 600px) {
    :root { --gutter: 24px; }
}

@media (min-width: 900px) {
    :root {
        --header-h:  138px;   /* 1.5 x the old 92px */
        --gutter:    32px;
        --page-gap:  64px;
    }
}

@media (min-width: 1200px) {
    :root { --gutter: 40px; }
}


/* =========================================================
   02  RESET / BASE / TYPE HELPERS
   ========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

* {
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-h);
    -webkit-text-size-adjust: 100%;
}

body {
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font);
    font-size: var(--fs-body);
    line-height: var(--lh-body);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
    color: inherit;
}

ul {
    list-style: none;
}

::selection {
    background: var(--ink);
    color: var(--bg);
}

main {
    min-height: 80vh;
    padding-top: var(--header-h);
}

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

/* Small uppercase metadata */
.eyebrow {
    font-size: var(--fs-meta);
    font-weight: 700;
    letter-spacing: 0.14em;
    line-height: 1.2;
    text-transform: uppercase;
    color: var(--ink-2);
}

/* Text action — View order, Back, Continue shopping */
.text-link {
    display: inline-block;
    padding-bottom: 2px;
    border-bottom: 1px solid var(--line-strong);

    font-size: var(--fs-label);
    font-weight: 700;
    letter-spacing: var(--track-meta);
    text-transform: uppercase;
    color: var(--ink);

    transition: border-color 180ms ease, opacity 180ms ease;
}

.text-link:hover {
    border-bottom-color: var(--ink);
}

/* Page heading shared by cart-less pages (checkout, orders) */
.page-header {
    margin-bottom: var(--s-6);
}

.page-title {
    margin-top: var(--s-2);

    font-size: var(--fs-title);
    font-weight: 700;
    line-height: var(--lh-tight);
    letter-spacing: -0.03em;
}

/* Shared content wrapper for full-width pages */
.collection {
    width: min(var(--max), calc(100% - (var(--gutter) * 2)));
    margin: 0 auto;
    padding: var(--page-gap) 0 var(--s-9);
}

/* Breadcrumbs: Home / Gym Bags / Zara Tote */
.breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s-1) var(--s-2);
    margin: 0 0 var(--s-3);
    padding: 0;
    list-style: none;
    font-size: var(--fs-small);
    color: var(--ink-2);
}

.breadcrumbs li + li::before {
    content: "/";
    margin-right: var(--s-2);
    color: var(--line-strong);
}

.breadcrumbs a:hover {
    color: var(--ink);
    text-decoration: underline;
}

.shop-crumbs {
    width: min(var(--max), calc(100% - (var(--gutter) * 2)));
    margin: var(--s-4) auto 0;
}

.shop-crumbs .breadcrumbs ol {
    margin-bottom: 0;
}

.shop-intro {
    max-width: 62ch;
    margin-top: var(--s-2);
    font-size: var(--fs-small);
    line-height: var(--lh-body);
    color: var(--ink-2);
}

/* Reading-width pages (My orders) */
.collection.account-narrow {
    width: min(680px, calc(100% - (var(--gutter) * 2)));
}

/* Quiet trust links live in the footer, leaving more space for products. */
.trust-strip {
    border-top: 1px solid #34332f;
}

.trust-strip-inner {
    display: flex;
    justify-content: center;
    width: 100%;
    margin: 0 auto;
}

.trust-strip a {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 0;
    min-width: 0;
    max-width: 230px;
    min-height: 44px;
    padding: 7px 8px;
    font-size: clamp(10px, 1.1vw, 12px);
    line-height: 1.35;
    text-align: center;
    color: inherit;
}

.trust-strip a + a {
    border-left: 1px solid #34332f;
}

.trust-strip a:hover,
.trust-strip a:focus-visible {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Policy pages: plain text with section headings. */
.policy-updated {
    margin-top: var(--s-2);
    font-size: var(--fs-small);
    color: var(--ink-2);
}

.policy-page h2 {
    margin-top: var(--s-6);
    margin-bottom: var(--s-2);
    font-size: var(--fs-h3);
    font-weight: 700;
    line-height: var(--lh-tight);
    letter-spacing: -0.01em;
}

.policy-page p,
.policy-page li {
    font-size: var(--fs-body);
    line-height: var(--lh-body);
}

.policy-page p + p {
    margin-top: var(--s-3);
}

.policy-page ul {
    margin: var(--s-2) 0 var(--s-3);
    padding-left: var(--s-5);
    list-style: disc;
}

.policy-page li + li {
    margin-top: var(--s-2);
}

.policy-page p a:not(.text-link) {
    border-bottom: 1px solid var(--line-strong);
}

.policy-back {
    margin-top: var(--s-6);
}

.policy-page h2[id] {
    scroll-margin-top: calc(var(--header-h) + 16px);
}

.policy-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0 var(--s-5);
    margin-top: var(--s-6);
    padding-top: var(--s-3);
    border-top: 1px solid var(--line);
}

.policy-links a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-size: var(--fs-small);
    text-decoration: underline;
    text-underline-offset: 3px;
}


/* =========================================================
   03  BUTTONS

   Primary   — black, light text.      Add to cart, Checkout,
               Place order, Login, Create account, GO
   Secondary — outlined.               Continue shopping,
               My orders, Call direct
   Text      — .text-link (above)      View order, Remove, Back
   ========================================================= */

.button,
.pdp-add-to-cart,
.receipt-checkout,
.checkout-submit,
.auth-button,
.auth-card button[type="submit"],
.order-action-primary,
.account-action-primary,
.modal-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    min-height: 52px;
    padding: 0 var(--s-6);

    border: 1px solid var(--ink);
    border-radius: 0;
    background: var(--ink);
    color: var(--bg);

    font: inherit;
    font-size: var(--fs-label);
    font-weight: 700;
    letter-spacing: var(--track-btn);
    line-height: 1.2;
    text-align: center;
    text-transform: uppercase;

    cursor: pointer;

    transition:
        background-color 180ms ease,
        border-color 180ms ease,
        color 180ms ease;
}

.button:hover,
.pdp-add-to-cart:hover,
.receipt-checkout:hover,
.checkout-submit:hover,
.auth-button:hover,
.auth-card button[type="submit"]:hover,
.order-action-primary:hover,
.account-action-primary:hover,
.modal-action-btn:hover {
    background: #34322e;
    border-color: #34322e;
}

.button:active,
.pdp-add-to-cart:active,
.receipt-checkout:active,
.checkout-submit:active,
.auth-button:active,
.auth-card button[type="submit"]:active,
.order-action-primary:active,
.account-action-primary:active,
.modal-action-btn:active {
    background: #000000;
    border-color: #000000;
}

/* Full-width primary actions */
.pdp-add-to-cart,
.receipt-checkout,
.checkout-submit,
.auth-button,
.auth-card button[type="submit"],
.account-action-primary {
    display: flex;
    width: 100%;
}

.pdp-add-to-cart,
.checkout-submit {
    min-height: 56px;
}

/* Disabled / sold out */
.pdp-add-to-cart.disabled,
.pdp-add-to-cart:disabled {
    background: var(--surface);
    border-color: var(--line);
    color: var(--ink-3);
    cursor: not-allowed;
}

/* Secondary */
.button-secondary,
.order-action-secondary,
.account-action-secondary,
.modal-action-btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    min-height: 52px;
    padding: 0 var(--s-6);

    border: 1px solid var(--line-strong);
    border-radius: 0;
    background: transparent;
    color: var(--ink);

    font: inherit;
    font-size: var(--fs-label);
    font-weight: 700;
    letter-spacing: var(--track-btn);
    line-height: 1.2;
    text-align: center;
    text-transform: uppercase;

    cursor: pointer;

    transition:
        background-color 180ms ease,
        border-color 180ms ease,
        color 180ms ease;
}

.button-secondary:hover,
.order-action-secondary:hover,
.account-action-secondary:hover,
.modal-action-btn-outline:hover {
    background: var(--surface);
    border-color: var(--ink);
}

.account-action-secondary {
    display: flex;
    width: 100%;
}

/* =========================================================
   GOOGLE LOGIN
   ========================================================= */

.auth-divider {
    display: flex;
    align-items: center;
    gap: 14px;

    margin: 24px 0;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--line);
}

.auth-divider span {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: var(--ink-2);
}


/* Google button */

.google-login-button {
    width: 100%;
    min-height: 52px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 11px;

    box-sizing: border-box;

    border: 1px solid var(--line);
    background: transparent;
    color: var(--ink);

    text-decoration: none;

    font: inherit;
    font-size: 13px;
    font-weight: 600;

    transition:
        background-color 180ms ease,
        color 180ms ease,
        border-color 180ms ease;
}

.google-login-button:hover {
    background: var(--ink);
    color: var(--bg);
    border-color: var(--ink);
}

.google-icon {
    width: 18px;
    height: 18px;

    flex-shrink: 0;
}

/* Mobile */


@media (max-width: 599px) {

    .auth-divider {
        margin: 20px 0;
    }

    .google-login-button {
        min-height: 50px;
    }

}
/* =========================================================
   04  FORM CONTROLS

   One language for login, register, password pages, checkout,
   search and filters: same height, border, focus, type.
   ========================================================= */

.form-group,
.form-field,
.auth-card form p {
    display: flex;
    flex-direction: column;
    gap: var(--s-2);
}

.form-group label,
.form-field label,
.auth-card label {
    font-size: var(--fs-label);
    font-weight: 600;
    letter-spacing: var(--track-label);
    text-transform: uppercase;
    color: var(--ink-2);
}

.form-group input,
.form-group textarea,
.form-field input,
.auth-card input {
    width: 100%;
    min-height: var(--control-h);
    padding: 0 var(--s-4);

    border: 1px solid var(--line-strong);
    border-radius: 0;
    background-color: var(--field);
    color: var(--ink);

    font: inherit;
    font-size: 16px;        /* 16px stops iOS zooming on focus */
    line-height: 1.4;

    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.form-group textarea {
    display: block;
    min-height: 120px;
    padding: 14px var(--s-4);
    resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder,
.form-field input::placeholder,
.auth-card input::placeholder {
    color: var(--placeholder);
}

.form-group input:hover,
.form-group textarea:hover,
.form-field input:hover,
.auth-card input:hover {
    border-color: var(--ink-2);
}

/* Focus: darker border + a 1px ring. (Outline stays transparent so it
   still shows in forced-colours / high-contrast mode.) */
.form-group input:focus,
.form-group textarea:focus,
.form-field input:focus,
.auth-card input:focus {
    outline: 2px solid transparent;
    border-color: var(--ink);
    box-shadow: 0 0 0 1px var(--ink);
}

/* Browser autofill should not repaint our fields */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--ink);
    box-shadow: 0 0 0 1000px var(--field) inset;
    transition: background-color 9999s ease-in-out 0s;
}

/* Django form errors / help text */
.errorlist {
    display: flex;
    flex-direction: column;
    gap: var(--s-1);
    list-style: none;
    font-size: var(--fs-small);
    line-height: 1.5;
    color: var(--danger);
}

.form-error {
    font-size: var(--fs-small);
    color: var(--danger);
}

.auth-card .helptext {
    display: block;
    margin-top: var(--s-1);
    font-size: var(--fs-small);
    line-height: 1.5;
    color: var(--ink-2);
}

.auth-card .helptext ul {
    display: flex;
    flex-direction: column;
    gap: var(--s-1);
    list-style: none;
}

.auth-card .helptext li {
    position: relative;
    padding-left: var(--s-4);
}

.auth-card .helptext li::before {
    content: "–";
    position: absolute;
    left: 0;
    color: var(--ink-3);
}


/* =========================================================
   05  HEADER
   ========================================================= */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-h);
    z-index: 40;

    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    column-gap: var(--s-2);

    padding: 0 var(--gutter);

    background: var(--bg);
    border-bottom: 1px solid var(--line);
    color: var(--ink);
}

.icon-button {
    position: relative;

    width: 40px;
    height: 40px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0;
    border: none;
    background: none;

    color: var(--ink);
    cursor: pointer;

    transition: opacity 180ms ease;
}

.icon-button:hover {
    opacity: 0.55;
}

/* All header icons share one size and one stroke weight */
.icon-button svg {
    width: 22px;
    height: 22px;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
}

/* Pull the glyphs (not the 40px hit areas) to the gutter edge */
.menu-toggle {
    justify-self: start;
    margin-left: -9px;
}

.header-actions {
    justify-self: end;
    margin-right: -9px;

    display: flex;
    align-items: center;
    gap: var(--s-2);
}

.brand {
    justify-self: center;
    position: relative;
    z-index: 50;

    display: flex;
    align-items: center;

    color: var(--ink);
}

/* The complete brand artwork keeps its own proportions at every size.
   Mobile width is constrained by the existing menu/theme and search/cart areas. */
.brand img {
    display: block;
    width: 270px;
    max-width: 100%;
    height: auto;
    max-height: calc(var(--header-h) - 24px);
    object-fit: contain;
}

@media (min-width: 900px) {
    /* Desktop has the room: header icons grow a little with the taller header */
    .icon-button {
        width: 48px;
        height: 48px;
    }

    .icon-button svg {
        width: 28px;
        height: 28px;
    }

    .menu-toggle {
        margin-left: -10px;      /* keeps the glyph on the gutter edge: (48 - 28) / 2 */
    }
}

/* The cart icon is a supermarket trolley: a little wider than the other icons */
.icon-button .trolley-icon {
    width: 25px;
    height: 25px;
}

/* Cart badge — pink, small, ringed so it sits cleanly on the icon */
.cart-badge {
    position: absolute;
    top: 3px;
    right: 1px;

    min-width: 17px;
    height: 17px;
    padding: 0 3px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: var(--pink);
    color: #ffffff;
    border: 2px solid var(--bg);
    border-radius: 999px;

    font-size: 9px;
    font-weight: 700;
    line-height: 1;
}


/* =========================================================
   SEARCH PANEL — an extension of the header
   ========================================================= */

.search-panel {
    position: fixed;
    top: var(--header-h);
    left: 0;

    width: 100%;
    z-index: 39;

    background: var(--bg);
    border-bottom: 1px solid transparent;

    max-height: 0;
    overflow: hidden;
    visibility: hidden;

    transition:
        max-height 260ms var(--ease),
        border-color 260ms ease,
        visibility 0s linear 260ms;
}

.search-panel.is-open {
    max-height: 112px;
    visibility: visible;
    border-bottom-color: var(--line);

    transition-delay: 0s;
}

.search-panel-form {
    width: min(var(--max), 100%);
    margin: 0 auto;
    padding: var(--s-4) var(--gutter);

    display: flex;
    align-items: center;
    gap: var(--s-2);
}

.search-panel-form input {
    flex: 1;
    min-width: 0;
    height: var(--control-h);

    border: none;
    border-bottom: 1px solid var(--line-strong);
    border-radius: 0;
    background: transparent;
    color: var(--ink);

    padding: 0;

    font: inherit;
    font-size: 16px;
    letter-spacing: 0.02em;

    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.search-panel-form input::placeholder {
    font-size: 14px;
    letter-spacing: var(--track-label);
    color: var(--placeholder);
}

.search-panel-form input:focus {
    outline: 2px solid transparent;
    border-bottom-color: var(--ink);
    box-shadow: 0 1px 0 0 var(--ink);
}

.search-panel-form button {
    flex-shrink: 0;

    width: 44px;
    height: 44px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    margin-right: -10px;
    background: none;
    border: none;
    color: var(--ink);
    cursor: pointer;

    transition: opacity 180ms ease;
}

.search-panel-form button:hover {
    opacity: 0.55;
}

.search-panel-form button svg {
    width: 20px;
    height: 20px;
    stroke-width: 1.5;
    stroke-linecap: round;
}


/* =========================================================
   NAVIGATION DRAWER — shop on top, account below
   ========================================================= */

.drawer-overlay {
    position: fixed;
    inset: 0;
    z-index: 45;

    background: rgba(17, 17, 17, 0.38);

    opacity: 0;
    pointer-events: none;

    transition: opacity 240ms ease;
}

.drawer-overlay.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.nav-drawer {
    position: fixed;
    top: 0;
    left: 0;

    height: 100%;
    width: min(380px, 88vw);

    z-index: 46;

    background: var(--bg);
    border-right: 1px solid var(--line);
    color: var(--ink);

    display: flex;
    flex-direction: column;

    transform: translateX(-100%);
    visibility: hidden;

    transition:
        transform 280ms var(--ease),
        visibility 0s linear 280ms;
}

.nav-drawer.is-open {
    transform: translateX(0);
    visibility: visible;

    transition-delay: 0s;
}

.nav-drawer.is-dragging {
    transition: none;
}

.drawer-header {
    flex-shrink: 0;

    height: var(--header-h);
    padding: 0 var(--s-5);

    display: flex;
    align-items: center;
    justify-content: flex-end;

    border-bottom: 1px solid var(--line);
}

.drawer-close {
    min-height: 44px;
    margin-right: -8px;
    padding: 0 8px;

    background: none;
    border: none;
    cursor: pointer;

    font: inherit;
    font-size: var(--fs-meta);
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;

    color: var(--ink);

    transition: opacity 180ms ease;
}

.drawer-close:hover {
    opacity: 0.55;
}

.drawer-body {
    flex: 1;

    overflow-y: auto;
    overscroll-behavior: contain;

    padding: var(--s-6) var(--s-5);

    display: flex;
    flex-direction: column;
    gap: var(--s-7);
}

.drawer-group {
    display: flex;
    flex-direction: column;
}

.drawer-category {
    margin-bottom: var(--s-2);
    padding-bottom: var(--s-3);

    border-bottom: 1px solid var(--line);

    font-size: var(--fs-meta);
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ink-2);
}

.drawer-body a,
.drawer-link {
    display: flex;
    align-items: center;

    padding: 13px 0;

    font-size: var(--fs-h3);
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: var(--ink-2);

    transition: color 160ms ease, padding-left 220ms var(--ease);
}

.drawer-body a:hover {
    color: var(--ink);
    padding-left: 4px;
}

/* Active category — ink text and a small pink marker */
.drawer-body a.active {
    color: var(--ink);
    font-weight: 600;
}

.drawer-body a.active::after {
    content: "";
    flex-shrink: 0;
    width: 6px;
    height: 6px;
    margin-left: var(--s-3);
    border-radius: 50%;
    background: var(--pink);
}

.drawer-footer {
    flex-shrink: 0;

    padding: var(--s-4) var(--s-5);
    padding-bottom: calc(var(--s-4) + env(safe-area-inset-bottom, 0px));

    border-top: 1px solid var(--line);

    display: flex;
    flex-direction: column;
}

.drawer-footer a,
.drawer-footer button {
    display: flex;
    align-items: center;

    width: 100%;
    min-height: 48px;
    padding: 0;

    background: none;
    border: none;
    cursor: pointer;
    text-align: left;

    font: inherit;
    font-size: var(--fs-label);
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;

    color: var(--ink);

    transition: opacity 180ms ease;
}

.drawer-footer a:hover,
.drawer-footer button:hover {
    opacity: 0.55;
}

.drawer-footer form button {
    color: var(--ink-2);
}

/* =========================================================
   06  SHOP PAGE
   ========================================================= */


/* ---- Heading bar ------------------------------------- */

.shop-bar {
    width: min(var(--max), calc(100% - (var(--gutter) * 2)));
    margin: 0 auto;

    padding: 22px 0 18px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;
}

.shop-bar-text {
    min-width: 0;
}

.shop-kicker {
    margin-bottom: var(--s-2);
}

.shop-title {
    margin: 0;

    font-size: 24px;
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.025em;

    color: var(--ink);
}

.shop-meta {
    margin-top: var(--s-3);

    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--s-1) var(--s-4);

    font-size: var(--fs-small);
    color: var(--ink-2);
}

.shop-meta .text-link {
    color: var(--ink);
}


/* ---- Filter toggle ----------------------------------- */

.filter-toggle {
    flex-shrink: 0;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 7px;

    min-height: 32px;
    padding: 0;

    border: 0;
    border-radius: 0;

    background: transparent;
    color: var(--ink);

    font: inherit;
    font-size: 11px;
    font-weight: 600;

    letter-spacing: 0.12em;
    text-transform: uppercase;

    cursor: pointer;

    transition: opacity 180ms ease;
}

.filter-toggle:hover {
    opacity: 0.55;
}

.filter-toggle svg {
    width: 15px;
    height: 15px;

    stroke-width: 1.5;
    stroke-linecap: round;

    flex-shrink: 0;
}

.filter-toggle svg circle {
    fill: var(--bg);
}

/* ---- Filter panel ------------------------------------ */

.filter-panel {
    max-height: 0;
    overflow: hidden;
    visibility: hidden;

    border-top: 1px solid transparent;
    border-bottom: 1px solid transparent;

    transition:
        max-height 300ms var(--ease),
        border-color 300ms ease,
        visibility 0s linear 300ms;
}

.filter-panel.is-open {
    max-height: 90vh;
    overflow-y: auto;
    visibility: visible;
    -webkit-overflow-scrolling: touch;

    border-top-color: var(--line);
    border-bottom-color: var(--line);

    transition-delay: 0s;
}

.filter-panel-inner {
    width: min(var(--max), calc(100% - (var(--gutter) * 2)));
    margin: 0 auto;

    padding: var(--s-5) 0 var(--s-6);

    display: flex;
    flex-direction: column;
    gap: var(--s-5);
}


/* ---- Category filters ------------------------------- */

.category-filter {
    display: flex;
    flex-wrap: nowrap;
    gap: var(--s-2);

    overflow-x: auto;

    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;

    margin: 0 calc(var(--gutter) * -1);
    padding: 0 var(--gutter);
}

.category-filter::-webkit-scrollbar {
    display: none;
}

.category-filter-link {
    flex: 0 0 auto;

    display: inline-flex;
    align-items: center;

    min-height: 38px;
    padding: 0 var(--s-4);

    border: 1px solid var(--line);
    border-radius: 999px;

    background: transparent;
    color: var(--ink-2);

    font-size: var(--fs-meta);
    font-weight: 600;
    letter-spacing: var(--track-label);
    text-transform: uppercase;
    white-space: nowrap;

    transition:
        background-color 160ms ease,
        border-color 160ms ease,
        color 160ms ease;
}

.category-filter-link:hover {
    border-color: var(--ink);
    color: var(--ink);
}

.category-filter-link.active {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--bg);
}


/* ---- Sort + stock + price ---------------------------- */

.filter-secondary {
    display: flex;
    flex-direction: column;
    gap: var(--s-4);
}

.sort-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--s-3) var(--s-5);
}

.filter-secondary select,
.filter-secondary input[type="number"] {
    min-height: 44px;

    border: 1px solid var(--line-strong);
    border-radius: 0;

    background-color: var(--field);
    color: var(--ink);

    font: inherit;
    font-size: 16px;

    transition:
        border-color 160ms ease,
        box-shadow 160ms ease;
}

.filter-secondary select {
    appearance: none;
    -webkit-appearance: none;

    width: 100%;
    padding: 0 40px 0 var(--s-4);

    font-size: 13px;
    font-weight: 600;
    letter-spacing: var(--track-label);
    text-transform: uppercase;

    cursor: pointer;

    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111111' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");

    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px;
}

.filter-secondary input[type="number"] {
    width: 100%;
    padding: 0 var(--s-3);

    appearance: textfield;
    -moz-appearance: textfield;
}

.filter-secondary input[type="number"]::-webkit-outer-spin-button,
.filter-secondary input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.filter-secondary input[type="number"]::placeholder {
    font-size: 13px;
    letter-spacing: var(--track-label);
    color: var(--placeholder);
}

.filter-secondary select:hover,
.filter-secondary input[type="number"]:hover {
    border-color: var(--ink-2);
}

.filter-secondary select:focus,
.filter-secondary input[type="number"]:focus {
    outline: 2px solid transparent;

    border-color: var(--ink);

    box-shadow:
        0 0 0 1px var(--ink);
}

.sort-form select {
    flex: 1 1 220px;
}

.filter-checkbox {
    display: inline-flex;
    align-items: center;
    gap: var(--s-3);

    min-height: 44px;

    font-size: var(--fs-meta);
    font-weight: 600;
    letter-spacing: var(--track-label);
    text-transform: uppercase;

    color: var(--ink);

    cursor: pointer;
}

.filter-checkbox input {
    width: 18px;
    height: 18px;

    margin: 0;

    accent-color: var(--ink);

    cursor: pointer;
}

.price-filter-form {
    display: flex;
    align-items: stretch;
    gap: var(--s-2);
}

.price-filter-form input[type="number"] {
    flex: 1 1 0;
    min-width: 0;
}


/* ---- GO button --------------------------------------- */

.price-filter-form button {
    flex-shrink: 0;

    min-height: 44px;
    padding: 0 var(--s-5);

    border: 1px solid var(--ink);
    border-radius: 0;

    background: var(--ink);
    color: var(--bg);

    font: inherit;
    font-size: var(--fs-label);
    font-weight: 700;
    letter-spacing: var(--track-btn);
    text-transform: uppercase;

    cursor: pointer;

    transition:
        background-color 180ms ease,
        border-color 180ms ease;
}

.price-filter-form button:hover {
    background: #34322e;
    border-color: #34322e;
}


/* ---- Desktop filter layout --------------------------- */

@media (min-width: 700px) {

    .category-filter {
        flex-wrap: wrap;
        overflow-x: visible;

        margin: 0;
        padding: 0;
    }

    .filter-secondary {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;

        flex-wrap: wrap;

        gap: var(--s-4) var(--s-6);
    }

    .sort-form select {
        flex: 0 0 auto;
        width: 240px;
    }

    .price-filter-form input[type="number"] {
        flex: 0 0 112px;
    }
}


/* ---- Product grid ------------------------------------ */

.product-grid {
    width: min(var(--max), calc(100% - (var(--gutter) * 2)));
    margin: 0 auto;

    /*
     * Small top gap because the shop header is now shorter.
     */
    padding: var(--s-2) 0 var(--s-9);

    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: var(--s-6) var(--s-3);

    align-items: start;
}


/* ---- Product grid: tablet ---------------------------- */

@media (min-width: 600px) {

    .product-grid {
        gap: var(--s-7) var(--s-5);
    }

}


/* ---- Product grid: desktop --------------------------- */

@media (min-width: 900px) {

    .product-grid {
        grid-template-columns:
            repeat(4, minmax(0, 1fr));

        gap: var(--s-8) var(--s-6);
    }

}


/* ---- Product image frame ----------------------------- */

.product-image {
    position: relative;

    display: block;

    aspect-ratio: 4 / 5;

    overflow: hidden;

    background: var(--frame);
}

.product-image img {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    padding: 5%;

    object-fit: contain;

    /*
     * Product photos with white backgrounds blend naturally
     * into the neutral image frame.
     */
    mix-blend-mode: multiply;

    transition:
        transform 600ms var(--ease),
        opacity 240ms ease;
}

.product:hover .product-image img {
    transform: scale(1.025);
}


/* ---- Image placeholder ------------------------------- */

.image-placeholder {
    position: absolute;

    inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: var(--s-4);

    background: var(--surface);

    color: var(--ink-3);

    font-size: var(--fs-meta);
    font-weight: 600;
    letter-spacing: var(--track-meta);

    text-align: center;
    text-transform: uppercase;
}


/* ---- Sold-out badge ---------------------------------- */

.sold-out-badge {
    position: absolute;

    top: var(--s-3);
    left: var(--s-3);

    z-index: 2;

    display: inline-flex;
    align-items: center;

    min-height: 28px;
    padding: 0 var(--s-3);

    background: var(--ink);
    color: var(--bg);

    font-size: var(--fs-meta);
    font-weight: 700;
    letter-spacing: var(--track-meta);

    text-transform: uppercase;
}


/* ---- Product information ----------------------------- */

.product-meta {
    padding-top: var(--s-3);
}

.product-title {
    font-size: var(--fs-body);
    font-weight: 700;

    line-height: 1.3;

    letter-spacing: -0.01em;

    color: var(--ink);
}

.product-price {
    margin-top: var(--s-1);

    font-size: var(--fs-small);
    font-weight: 500;

    line-height: 1.4;

    color: var(--ink-2);
}


/* ---- Empty collection ------------------------------- */

.empty-collection {
    width: min(560px, calc(100% - (var(--gutter) * 2)));

    margin: 0 auto;

    padding: var(--s-9) 0;

    text-align: center;
}

.empty-collection h2 {
    font-size: clamp(28px, 5vw, 42px);

    font-weight: 700;

    line-height: 1;

    letter-spacing: -0.04em;
}

.empty-collection p {
    max-width: 42ch;

    margin: var(--s-4) auto 0;

    font-size: var(--fs-body);

    line-height: var(--lh-body);

    color: var(--ink-2);
}

.empty-collection .button-secondary {
    margin-top: var(--s-6);
}


/* ---- Shop page responsive refinement ---------------- */

@media (max-width: 599px) {

    .shop-bar {
        padding-top: 18px;
        padding-bottom: 16px;

        gap: 16px;
    }

    .shop-title {
        font-size: 21px;
    }

    .filter-toggle {
        min-height: 30px;

        font-size: 10px;
        letter-spacing: 0.1em;

        gap: 6px;
    }

    .filter-toggle svg {
        width: 14px;
        height: 14px;
    }

}


@media (max-width: 374px) {

    .shop-bar {
        gap: var(--s-3);
    }

    .filter-toggle {
        padding: 0 13px;
    }

    .filter-toggle svg {
        width: 15px;
        height: 15px;
    }

}



/* =========================================================
   07  PRODUCT DETAIL
   ========================================================= */

.pdp {
    width: 100%;
    margin: 0 auto;

    display: grid;
    grid-template-columns: minmax(0, 1fr);
}

.pdp-gallery,
.pdp-details {
    min-width: 0;
}

/* ---- Gallery ----------------------------------------- */

.gallery-viewport {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: var(--frame);
}

.gallery-track {
    display: flex;
    width: 100%;

    /*
     * Swiping is the browser's own sideways scrolling, snapping to one photo
     * at a time. (Moving the track with a script stopped answering to swipes
     * on iPhone after the first one.) The scroll bar is hidden.
     */
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.gallery-track::-webkit-scrollbar {
    display: none;
}

.gallery-slide {
    flex: 0 0 100%;
    width: 100%;
    aspect-ratio: 4 / 5;

    scroll-snap-align: start;
    scroll-snap-stop: always;      /* one photo per swipe, never skipping */

    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--frame);
}

.gallery-slide img {
    width: 100%;
    height: 100%;
    padding: 5%;
    object-fit: contain;
    mix-blend-mode: multiply;

    user-select: none;
    -webkit-user-drag: none;
}

.detail-image-empty {
    width: 100%;
    aspect-ratio: 4 / 5;

    display: flex;
    align-items: center;
    justify-content: center;

    background: var(--frame);
    color: var(--ink-2);

    font-size: var(--fs-meta);
    font-weight: 600;
    letter-spacing: var(--track-meta);
    text-transform: uppercase;
}

/* Subtle prev / next — only where there is a pointer to hover with */
.gallery-arrow {
    position: absolute;
    top: 50%;
    z-index: 2;

    display: none;
    align-items: center;
    justify-content: center;

    width: 44px;
    height: 44px;
    margin-top: -22px;
    padding: 0;

    border: 1px solid var(--line);
    background: rgba(242, 241, 237, 0.9);
    color: var(--ink);
    cursor: pointer;

    opacity: 0;
    transition: opacity 200ms ease, background-color 160ms ease;
}

.gallery-arrow svg {
    width: 18px;
    height: 18px;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.gallery-arrow-prev { left: var(--s-3); }
.gallery-arrow-next { right: var(--s-3); }

.gallery-arrow:hover {
    background: var(--bg);
    border-color: var(--line-strong);
}

@media (hover: hover) and (pointer: fine) {
    .gallery-arrow { display: inline-flex; }

    .gallery-viewport:hover .gallery-arrow,
    .gallery-viewport:focus-within .gallery-arrow {
        opacity: 1;
    }
}

/* Dots — small, with a generous touch target */
.gallery-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--s-3);

    padding: var(--s-5) 0 var(--s-2);
}

.gallery-dot {
    position: relative;

    width: 6px;
    height: 6px;
    padding: 0;

    border: none;
    border-radius: 999px;
    background: var(--line-strong);
    cursor: pointer;

    transition: width 240ms var(--ease), background-color 200ms ease;
}

.gallery-dot::before {
    content: "";
    position: absolute;
    inset: -14px -6px;
}

.gallery-dot.active {
    width: 20px;
    background: var(--ink);
}

/* ---- Details ----------------------------------------- */

.pdp-details {
    padding: var(--s-5) var(--gutter) 16px;
}

.pdp-title {
    font-size: clamp(26px, 3.2vw, 36px);
    font-weight: 700;
    line-height: var(--lh-tight);
    letter-spacing: -0.025em;
    text-transform: capitalize;
    overflow-wrap: anywhere;
}

.pdp-price {
    margin-top: var(--s-3);
    margin-bottom: var(--s-6);

    font-size: var(--fs-h3);
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.005em;
}

/* Service information — Delivery / Payment, easy to scan */
.service-info {
    margin-top: var(--s-5);
    border-top: 1px solid var(--line);
}

.service-info > div {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: var(--s-4);

    padding: var(--s-4) 0;
    border-bottom: 1px solid var(--line);
}

.service-info dt {
    padding-top: 2px;

    font-size: var(--fs-meta);
    font-weight: 700;
    letter-spacing: var(--track-meta);
    text-transform: uppercase;
    color: var(--ink-2);
}

.service-info dd {
    font-size: var(--fs-small);
    line-height: 1.55;
    color: var(--ink);
}

.service-info dd span {
    display: block;
    color: var(--ink-2);
}

/* Stock — quieter than the product, never louder */
.pdp-stock {
    margin-top: var(--s-4);

    display: flex;
    align-items: center;
    gap: var(--s-2);

    font-size: var(--fs-meta);
    font-weight: 600;
    letter-spacing: var(--track-meta);
    text-transform: uppercase;
    color: var(--ink-2);
}

.pdp-stock::before {
    content: "";
    flex-shrink: 0;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--success);
}

.pdp-stock-low { color: var(--warning); }
.pdp-stock-low::before { background: var(--warning); }

.pdp-stock-out { color: var(--danger); }
.pdp-stock-out::before { background: var(--danger); }

/* ---- Accordions -------------------------------------- */

.pdp-accordion {
    margin-top: var(--s-6);
    border-top: 1px solid var(--line);
}

.pdp-accordion + .pdp-accordion {
    margin-top: 0;
}

.pdp-accordion:last-of-type {
    border-bottom: 1px solid var(--line);
}

.pdp-accordion summary {
    position: relative;

    padding: var(--s-5) 40px var(--s-5) 0;
    cursor: pointer;
    list-style: none;

    font-size: var(--fs-label);
    font-weight: 700;
    letter-spacing: var(--track-btn);
    text-transform: uppercase;

    transition: opacity 180ms ease;
}

.pdp-accordion summary:hover {
    opacity: 0.65;
}

.pdp-accordion summary::-webkit-details-marker {
    display: none;
}

/* + / − drawn with two strokes, so the sign never shifts */
.pdp-accordion summary::before,
.pdp-accordion summary::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 4px;

    width: 12px;
    height: 1.5px;
    margin-top: -0.75px;
    background: var(--ink);

    transition: transform 240ms var(--ease);
}

.pdp-accordion summary::after {
    transform: rotate(90deg);
}

.pdp-accordion[open] summary::after {
    transform: rotate(0deg);
}

.pdp-accordion > p {
    padding: 0 0 var(--s-6);
    max-width: 62ch;

    font-size: var(--fs-body);
    line-height: 1.75;
    color: var(--ink-body);
    white-space: pre-line;
}

.pdp-specs {
    padding-bottom: var(--s-4);
}

.pdp-specs .spec {
    display: flex;
    justify-content: space-between;
    gap: var(--s-4);

    padding: var(--s-3) 0;
    border-top: 1px solid var(--line);

    font-size: var(--fs-small);
}

.pdp-specs .spec span:first-child {
    font-size: var(--fs-meta);
    font-weight: 700;
    letter-spacing: var(--track-meta);
    text-transform: uppercase;
    color: var(--ink-2);
}

.pdp-specs .spec span:last-child {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

/* ---- Desktop: the image is the hero ------------------- */

@media (min-width: 900px) {

    .pdp {
        width: min(var(--max), calc(100% - (var(--gutter) * 2)));
        padding-top: var(--page-gap);
        padding-bottom: var(--s-9);

        grid-template-columns: minmax(0, 1.3fr) minmax(340px, 1fr);
        column-gap: var(--s-8);
        align-items: start;
    }

    .pdp-details {
        padding: var(--s-2) 0 0;
    }
}


/* =========================================================
   08  CART — a fashion-store bag with receipt discipline
   ========================================================= */

.receipt-cart {
    width: min(680px, calc(100% - (var(--gutter) * 2)));
    margin: 0 auto;
    padding: var(--page-gap) 0 var(--s-9);
}

.receipt-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding-bottom: var(--s-4);
    border-bottom: 1px solid var(--ink);
}

.receipt-header h1 {
    font-size: var(--fs-h2);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: var(--lh-tight);
}

.receipt-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 44px;
    height: 44px;
    margin-right: -12px;

    font-size: 26px;
    font-weight: 300;
    line-height: 1;
    color: var(--ink-2);

    transition: color 160ms ease;
}

.receipt-close:hover {
    color: var(--ink);
}

.receipt-item {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    column-gap: var(--s-4);
    row-gap: var(--s-2);

    padding: var(--s-5) 0;
    border-bottom: 1px solid var(--line);
}

.receipt-thumb {
    display: block;
    position: relative;
    width: 72px;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: var(--frame);
}

.receipt-thumb img {
    width: 100%;
    height: 100%;
    padding: 6px;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.receipt-thumb .image-placeholder {
    font-size: 0;
}

.receipt-item-title {
    font-size: var(--fs-body);
    font-weight: 600;
    line-height: 1.3;
    text-transform: capitalize;
}

.receipt-item-variant {
    margin-top: 2px;

    font-size: var(--fs-meta);
    font-weight: 600;
    letter-spacing: var(--track-meta);
    text-transform: uppercase;
    color: var(--ink-2);
}

.receipt-item-unit-price {
    margin-top: var(--s-1);
    font-size: var(--fs-small);
    font-variant-numeric: tabular-nums;
    color: var(--ink-2);
}

.receipt-item-controls {
    margin-top: var(--s-4);

    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--s-3) var(--s-5);
}

/* Quantity — grey border, touch-sized, light */
.quantity-box {
    display: inline-flex;
    align-items: center;

    border: 1px solid var(--line-strong);
    background: var(--field);
}

.quantity-box form {
    display: contents;
}

.quantity-box button {
    width: 44px;
    height: 44px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    background: none;
    border: none;
    cursor: pointer;

    font-size: 18px;
    font-weight: 300;
    line-height: 1;
    color: var(--ink);

    transition: background-color 160ms ease;
}

.quantity-box button:hover {
    background: var(--surface);
}

.quantity-box span {
    min-width: 36px;
    text-align: center;
    font-size: var(--fs-body);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

/* Remove — subtle */
.receipt-remove {
    min-height: 44px;
    padding: 0;

    background: none;
    border: none;
    cursor: pointer;

    font-size: var(--fs-meta);
    font-weight: 600;
    letter-spacing: var(--track-meta);
    text-transform: uppercase;
    color: var(--ink-2);

    border-bottom: 1px solid transparent;
    transition: color 160ms ease;
}

.receipt-remove:hover {
    color: var(--ink);
}

.receipt-item-total {
    grid-column: 2;

    font-size: var(--fs-body);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

@media (min-width: 560px) {

    .receipt-item {
        grid-template-columns: 96px minmax(0, 1fr) auto;
        column-gap: var(--s-5);
    }

    .receipt-thumb {
        width: 96px;
    }

    .receipt-item-total {
        grid-column: 3;
        grid-row: 1;
        text-align: right;
    }
}

.receipt-footer {
    margin-top: var(--s-2);
}

/* Total — the visual anchor */
.receipt-total-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--s-4);

    padding: var(--s-6) 0;
}

.receipt-total-row span {
    font-size: var(--fs-meta);
    font-weight: 700;
    letter-spacing: var(--track-meta);
    text-transform: uppercase;
    color: var(--ink-2);
}

.receipt-total-row strong {
    font-size: clamp(26px, 5vw, 32px);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
    line-height: 1;
}

.receipt-continue {
    display: block;
    width: fit-content;
    margin: var(--s-6) auto 0;
}


/* =========================================================
   09  CHECKOUT
   ========================================================= */

.checkout-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--s-8);
    align-items: start;
}

@media (min-width: 900px) {
    .checkout-content {
        grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.8fr);
        column-gap: var(--s-9);
    }
}

.checkout-form form {
    display: flex;
    flex-direction: column;
    gap: var(--s-5);
}

/* Section markers: Customer details / Delivery details / Payment */
.checkout-section-title {
    margin-top: var(--s-5);
    padding-top: var(--s-6);

    border-top: 1px solid var(--line);

    font-size: var(--fs-h3);
    font-weight: 700;
    line-height: var(--lh-tight);
    letter-spacing: -0.015em;
}

.checkout-section-title:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.checkout-submit {
    margin-top: var(--s-2);
}

.checkout-form .service-info {
    margin-top: 0;
}

/* ---- Order summary — the checkout's receipt ----------- */

.checkout-summary {
    align-self: start;
    padding: var(--s-6) var(--s-5);
    background: var(--surface);
}

@media (min-width: 900px) {
    .checkout-summary {
        position: sticky;
        top: calc(var(--header-h) + var(--s-5));
        padding: var(--s-6);
    }
}

.checkout-summary-header {
    padding-bottom: var(--s-4);
    border-bottom: 1px solid var(--ink);
}

.checkout-summary-header h2 {
    font-size: var(--fs-h3);
    font-weight: 700;
    letter-spacing: -0.015em;
    line-height: var(--lh-tight);
}

.checkout-summary-items {
    display: flex;
    flex-direction: column;
}

.checkout-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--s-5);

    padding: var(--s-4) 0;
    border-bottom: 1px solid var(--line-on-surface);
}

.checkout-item-details {
    min-width: 0;
}

.checkout-item-details strong {
    font-size: var(--fs-body);
    font-weight: 600;
    line-height: 1.3;
    text-transform: capitalize;
}

.checkout-item-details p {
    margin-top: var(--s-1);
    font-size: var(--fs-small);
    font-variant-numeric: tabular-nums;
    color: var(--ink-2);
}

.checkout-item > strong {
    flex-shrink: 0;
    font-size: var(--fs-body);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

/* Total — shared by the summary */
.cart-total {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--s-4);

    padding-top: var(--s-5);
}

.cart-total span {
    font-size: var(--fs-meta);
    font-weight: 700;
    letter-spacing: var(--track-meta);
    text-transform: uppercase;
    color: var(--ink-2);
}

.cart-total strong {
    font-size: 28px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
    line-height: 1;
}

.checkout-note {
    margin-top: var(--s-5);
    padding-top: var(--s-4);
    border-top: 1px solid var(--line-on-surface);

    font-size: var(--fs-small);
    line-height: 1.55;
    color: var(--ink-2);
}

/* ---- Payment options ---------------------------------- */

.payment-options {
    display: flex;
    flex-direction: column;
    gap: var(--s-3);
}

.payment-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--s-4);

    padding: var(--s-4);

    border: 1px solid var(--line);
    background: transparent;
}

.payment-option-main {
    display: flex;
    align-items: center;
    gap: var(--s-4);
    min-width: 0;
}

.payment-option strong {
    display: block;
    font-size: var(--fs-label);
    font-weight: 700;
    letter-spacing: var(--track-label);
    text-transform: uppercase;
}

.payment-option p {
    margin-top: 2px;
    font-size: var(--fs-small);
    line-height: 1.5;
    color: var(--ink-2);
}

.payment-radio {
    position: relative;
    flex-shrink: 0;

    width: 18px;
    height: 18px;

    border: 1px solid var(--line-strong);
    border-radius: 50%;
    background: var(--field);
}

/* Selected */
.payment-option-active {
    border-color: var(--ink);
    background: var(--field);
}

.payment-option-active .payment-radio {
    border-color: var(--ink);
}

.payment-option-active .payment-radio::after {
    content: "";
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: var(--ink);
}

.payment-available,
.payment-coming-soon {
    flex-shrink: 0;

    font-size: 10px;
    font-weight: 700;
    letter-spacing: var(--track-meta);
    text-transform: uppercase;
}

.payment-available {
    color: var(--success);
}

.payment-coming-soon {
    color: var(--ink-2);
}

/* Not available yet — clearly intentional, not broken */
.payment-option-disabled {
    border-style: dashed;
    border-color: var(--line);
    background: transparent;
    cursor: not-allowed;
}

.payment-option-disabled strong,
.payment-option-disabled p {
    color: var(--ink-2);
}

.payment-option-disabled .payment-option-main {
    opacity: 0.7;
}


/* =========================================================
   10  AUTH PAGES — login, register, password reset

   One composition: brand label, title, short intro, form,
   one strong button, one quiet row of links.
   ========================================================= */

.auth-page {
    width: min(440px, calc(100% - (var(--gutter) * 2)));
    margin: 0 auto;
    padding: calc(var(--page-gap) + var(--s-4)) 0 var(--s-9);
}

.auth-container,
.auth-card {
    width: 100%;
}

.auth-page h1 {
    margin-top: var(--s-3);

    font-size: clamp(30px, 6vw, 38px);
    font-weight: 700;
    line-height: var(--lh-tight);
    letter-spacing: -0.03em;
}

.auth-intro {
    margin-top: var(--s-4);

    font-size: var(--fs-body);
    line-height: var(--lh-body);
    color: var(--ink-2);
}

.auth-error,
.form-messages {
    margin-top: var(--s-5);
    padding: var(--s-3) var(--s-4);

    border: 1px solid var(--danger-line);
    background: var(--danger-bg);
    color: var(--danger);

    font-size: var(--fs-small);
    line-height: 1.5;
}

.form-messages p + p {
    margin-top: var(--s-1);
}

.form-error {
    margin-top: calc(var(--s-1) * -1);
}

.auth-form,
.auth-card form {
    margin-top: var(--s-7);

    display: flex;
    flex-direction: column;
    gap: var(--s-5);
}

.auth-intro + .auth-form,
.auth-intro + form {
    margin-top: var(--s-6);
}

.auth-button,
.auth-card button[type="submit"] {
    margin-top: var(--s-2);
}

.auth-links {
    margin-top: var(--s-7);
    padding-top: var(--s-5);

    border-top: 1px solid var(--line);

    display: flex;
    flex-direction: column;
    gap: var(--s-3);
}

.auth-links p {
    font-size: var(--fs-small);
    color: var(--ink-2);
}

.auth-links a {
    display: inline-block;
    padding-bottom: 1px;

    border-bottom: 1px solid var(--line-strong);

    font-weight: 600;
    color: var(--ink);

    transition: border-color 160ms ease;
}

.auth-links a:hover {
    border-bottom-color: var(--ink);
}


/* =========================================================
   11  ACCOUNT, ORDERS, ORDER CONFIRMATION
   ========================================================= */

/* ---- Account ------------------------------------------ */

.account-page {
    width: min(680px, calc(100% - (var(--gutter) * 2)));
    margin: 0 auto;
    padding: var(--page-gap) 0 var(--s-9);
}

.account-header {
    margin-bottom: var(--s-6);
}

.account-header h1 {
    margin-top: var(--s-2);

    font-size: var(--fs-title);
    font-weight: 700;
    line-height: var(--lh-tight);
    letter-spacing: -0.03em;
}

.account-card {
    border: 1px solid var(--line);
    background: var(--field);
}

.account-card-heading {
    padding: var(--s-4) var(--s-5);
    border-bottom: 1px solid var(--line);

    font-size: var(--fs-meta);
    font-weight: 700;
    letter-spacing: var(--track-meta);
    text-transform: uppercase;
    color: var(--ink-2);
}

.account-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--s-6);

    padding: var(--s-4) var(--s-5);
    border-bottom: 1px solid var(--line);
}

.account-row:last-child {
    border-bottom: none;
}

.account-row span {
    flex-shrink: 0;

    font-size: var(--fs-meta);
    font-weight: 700;
    letter-spacing: var(--track-meta);
    text-transform: uppercase;
    color: var(--ink-2);
}

.account-row strong {
    min-width: 0;

    font-size: var(--fs-body);
    font-weight: 500;
    text-align: right;
    overflow-wrap: anywhere;
}

/* Actions: one primary, one secondary, one quiet text action */
.account-actions {
    margin-top: var(--s-7);

    display: flex;
    flex-direction: column;
    gap: var(--s-3);
}

.account-actions form {
    display: flex;
    justify-content: center;
    margin-top: var(--s-3);
}

.account-action-text {
    min-height: 44px;
    padding: 0;

    background: none;
    border: none;
    border-bottom: 1px solid var(--line-strong);
    cursor: pointer;

    font: inherit;
    font-size: var(--fs-label);
    font-weight: 700;
    letter-spacing: var(--track-meta);
    text-transform: uppercase;
    color: var(--ink-2);

    transition: color 160ms ease, border-color 160ms ease;
}

.account-action-text:hover {
    color: var(--ink);
    border-bottom-color: var(--ink);
}

/* ---- My orders ---------------------------------------- */

.order-list {
    display: flex;
    flex-direction: column;
    gap: var(--s-4);
}

.order-card {
    position: relative;

    padding: var(--s-5);
    border: 1px solid var(--line);
    background: var(--field);

    transition: border-color 180ms ease;
}

.order-card:hover {
    border-color: var(--line-strong);
}

.order-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--s-4);

    padding-bottom: var(--s-4);
    border-bottom: 1px solid var(--line);
}

.order-label {
    margin-bottom: 2px;

    font-size: var(--fs-meta);
    font-weight: 700;
    letter-spacing: var(--track-meta);
    text-transform: uppercase;
    color: var(--ink-2);
}

.order-card-header h2 {
    font-size: var(--fs-lead);
    font-weight: 700;
    letter-spacing: 0.02em;
    overflow-wrap: anywhere;
}

/* Status pills — muted, never neon */
.order-status {
    flex-shrink: 0;

    display: inline-flex;
    align-items: center;

    padding: 4px 12px;

    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    color: var(--ink);

    font-size: 10px;
    font-weight: 700;
    letter-spacing: var(--track-meta);
    line-height: 1.4;
    text-transform: uppercase;
    white-space: nowrap;
}

.order-status-pending {
    background: var(--warning-bg);
    border-color: var(--warning-line);
    color: var(--warning);
}

.order-status-delivered {
    background: var(--success-bg);
    border-color: var(--success-line);
    color: var(--success);
}

.order-status-cancelled {
    background: var(--danger-bg);
    border-color: var(--danger-line);
    color: var(--danger);
}

.order-card-details {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s-3) var(--s-6);

    padding: var(--s-4) 0;
}

.order-card-details > div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.order-card-details > div > span:first-child {
    font-size: var(--fs-meta);
    font-weight: 700;
    letter-spacing: var(--track-meta);
    text-transform: uppercase;
    color: var(--ink-2);
}

.order-card-details strong {
    font-size: var(--fs-small);
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    color: var(--ink-body);
}

/* The total is the strong figure */
.order-card-details > div:nth-child(2) strong {
    font-size: var(--fs-lead);
    font-weight: 700;
    color: var(--ink);
}

.order-card-actions {
    padding-top: var(--s-4);
    border-top: 1px solid var(--line);
}

/* Whole card is the click target: the link stays unpositioned so its
   overlay anchors to .order-card */
.order-card-actions .text-link {
    position: static;
}

.order-card-actions .text-link::after {
    content: "";
    position: absolute;
    inset: 0;
}

/* Keep cancelled purchases accessible without presenting them as active. */
.cancelled-orders-archive {
    margin-top: var(--s-7);
    padding-top: var(--s-5);
    border-top: 1px solid var(--line);
}

.cancelled-orders-archive > summary {
    cursor: pointer;
    padding: var(--s-3) 0;
    color: var(--ink);
    font-weight: 700;
    letter-spacing: 0.02em;
}

.cancelled-orders-archive > summary:focus-visible {
    outline: 2px solid var(--ink);
    outline-offset: 4px;
}

.cancelled-orders-archive > summary span,
.cancelled-orders-note {
    color: var(--ink-2);
    font-weight: 400;
}

.cancelled-orders-note {
    margin: 0 0 var(--s-4);
    font-size: var(--fs-small);
}

.order-card-archived {
    border-color: var(--line);
    opacity: 0.83;
}

/* ---- Order detail / confirmation ---------------------- */

.order-detail-page {
    width: min(680px, calc(100% - (var(--gutter) * 2)));
    margin: 0 auto;
    padding: var(--page-gap) 0 var(--s-9);
}

.order-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;

    padding: var(--s-5) 0 var(--s-7);
}

.order-hero-mark {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 56px;
    height: 56px;
    margin-bottom: var(--s-5);

    border: 1px solid var(--success-line);
    border-radius: 50%;
    background: var(--success-bg);
    color: var(--success);
}

.order-hero-mark svg {
    width: 24px;
    height: 24px;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.order-hero-mark-cancelled {
    border-color: var(--danger-line);
    background: var(--danger-bg);
    color: var(--danger);
}

.order-hero-mark-waiting {
    border-color: var(--warning-line);
    background: var(--warning-bg);
    color: var(--warning);
}

.order-hero h1 {
    margin-top: var(--s-2);

    font-size: var(--fs-title);
    font-weight: 700;
    line-height: var(--lh-tight);
    letter-spacing: -0.03em;
}

.order-hero-text {
    margin-top: var(--s-3);
    max-width: 44ch;

    font-size: var(--fs-body);
    line-height: var(--lh-body);
    color: var(--ink-2);
}

.order-detail-number {
    margin-top: var(--s-5);

    font-size: var(--fs-label);
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--ink);
}

.order-detail-number span {
    margin-right: var(--s-2);
    font-weight: 600;
    letter-spacing: var(--track-meta);
    text-transform: uppercase;
    color: var(--ink-2);
}

.order-detail-card {
    margin-bottom: var(--s-6);
    border: 1px solid var(--line);
    background: var(--field);
}

/* metadata block: status, date, payment — clearly apart from the items */
.order-detail-card .order-card-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--s-5) var(--s-5);

    margin: 0;
    padding: var(--s-5);

    border-bottom: 1px solid var(--line);
    background: var(--bg);
}

.order-detail-card .order-card-details > div {
    align-items: flex-start;
    gap: var(--s-1);
}

.order-detail-card .order-card-details > div:nth-child(2) strong {
    font-size: var(--fs-small);
    font-weight: 500;
    color: var(--ink-body);
}

.order-detail-items {
    padding: var(--s-5) var(--s-5) var(--s-3);
}

.order-detail-items h2 {
    margin-bottom: var(--s-2);

    font-size: var(--fs-meta);
    font-weight: 700;
    letter-spacing: var(--track-meta);
    text-transform: uppercase;
    color: var(--ink-2);
}

.order-detail-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--s-5);

    padding: var(--s-4) 0;
    border-top: 1px solid var(--line);
}

.order-detail-item:first-of-type {
    border-top: none;
}

.order-detail-item-info strong {
    font-size: var(--fs-body);
    font-weight: 600;
    line-height: 1.3;
    text-transform: capitalize;
}

.order-detail-item-info p {
    margin-top: var(--s-1);
    font-size: var(--fs-small);
    font-variant-numeric: tabular-nums;
    color: var(--ink-2);
}

.order-detail-item-total {
    flex-shrink: 0;
    font-size: var(--fs-body);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.order-detail-total {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--s-4);

    padding: var(--s-5);
    border-top: 1px solid var(--ink);
}

.order-detail-total span {
    font-size: var(--fs-meta);
    font-weight: 700;
    letter-spacing: var(--track-meta);
    text-transform: uppercase;
    color: var(--ink-2);
}

.order-detail-total strong {
    font-size: 28px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
    line-height: 1;
}

.payment-status-badge {
    display: inline-flex;
    align-items: center;

    padding: 3px 10px;

    border: 1px solid var(--line-strong);
    border-radius: 999px;

    font-size: 10px;
    font-weight: 700;
    letter-spacing: var(--track-meta);
    line-height: 1.4;
    text-transform: uppercase;
    color: var(--ink-2);
}

.payment-status-paid {
    border-color: var(--success-line);
    background: var(--success-bg);
    color: var(--success);
}

.order-detail-actions {
    display: flex;
    flex-direction: column;
    gap: var(--s-3);
}

.order-action-primary,
.order-action-secondary {
    width: 100%;
}

@media (min-width: 560px) {
    .order-detail-actions {
        flex-direction: row;
    }

    .order-action-primary,
    .order-action-secondary {
        flex: 1 1 0;
    }

    .order-detail-card .order-card-details {
        grid-template-columns: repeat(4, minmax(0, auto));
        justify-content: space-between;
    }
}


/* =========================================================
   12  SITE MESSAGES — minimal, three tones
   ========================================================= */

.site-messages {
    position: fixed;
    top: var(--header-h);
    left: 0;
    width: 100%;
    z-index: 38;
}

.site-message {
    padding: var(--s-3) var(--gutter);

    border-bottom: 1px solid var(--line);
    background: var(--surface);
    color: var(--ink);

    text-align: center;
    font-size: var(--fs-meta);
    font-weight: 700;
    letter-spacing: var(--track-label);
    line-height: 1.5;
    text-transform: uppercase;
}

.site-message-success {
    background: var(--success-bg);
    border-bottom-color: var(--success-line);
    color: var(--success);
}

.site-message-error {
    background: var(--danger-bg);
    border-bottom-color: var(--danger-line);
    color: var(--danger);
}

.site-message-warning {
    background: var(--warning-bg);
    border-bottom-color: var(--warning-line);
    color: var(--warning);
}


/* =========================================================
   13  FOOTER — the closing brand statement
   ========================================================= */

.site-footer {
    background: var(--ink);
    color: var(--bg);
    padding: var(--s-6) var(--gutter) 20px;
}

.footer-inner {
    width: min(var(--max), 100%);
    margin: 0 auto;
}

.footer-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;

    padding-bottom: var(--s-4);
}

.footer-brand {
    font-size: clamp(36px, 11vw, 76px);
    font-weight: 800;
    line-height: 0.98;
    letter-spacing: -0.05em;
    text-transform: uppercase;
    white-space: nowrap;
}

.footer-service {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--s-3) var(--s-5);
}

.footer-service div {
    min-width: 0;
}

.footer-service > div:first-child {
    grid-column: 1 / -1;
}

.footer-service dt {
    margin-bottom: var(--s-1);

    font-size: var(--fs-meta);
    font-weight: 700;
    letter-spacing: var(--track-meta);
    text-transform: uppercase;
    color: var(--bg);
}

.footer-service dd {
    font-size: var(--fs-small);
    line-height: 1.5;
    color: #bdbab3;
}

.footer-service dd > span {
    display: block;
}

.footer-main {
    display: flex;
    flex-direction: column;
    gap: var(--s-2);

    padding: var(--s-2) 0;
    border-top: 1px solid #34332f;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: var(--s-3);
}

.footer-links a,
.footer-links button {
    min-height: 44px;
    min-width: 0;
    padding: var(--s-1) 0;

    display: inline-flex;
    align-items: center;

    background: none;
    border: none;
    cursor: pointer;

    font: inherit;
    font-size: var(--fs-meta);
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: 0.08em;
    text-align: left;
    text-transform: uppercase;
    color: var(--bg);

    transition: opacity 180ms ease;
}

.footer-links a:hover,
.footer-links button:hover {
    opacity: 0.6;
}

.footer-social {
    display: flex;
    align-items: center;
    gap: var(--s-2);
    margin-left: -8px;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 44px;
    height: 44px;
    flex-shrink: 0;

    color: var(--bg);
    opacity: 1;

    transition: transform 200ms var(--ease);
}

.social-icon svg {
    display: block;
    width: 26px;
    height: 26px;
}

/* The TikTok artwork occupies less of its original viewBox. */
.social-icon--tiktok svg {
    width: 32px;
    height: 32px;
}

.social-icon:hover,
.social-icon:focus-visible {
    opacity: 1;
    transform: translateY(-2px);
}

.footer-copy {
    padding-top: var(--s-3);
    border-top: 1px solid #34332f;

    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;

    font-size: 11px;
    line-height: 1.5;
    letter-spacing: 0.04em;
    color: #9a978f;
}

.footer-copy .footer-credit,
.footer-copy .footer-preferences {
    display: inline;
}

.footer-copy a,
.footer-copy .footer-preferences button {
    color: inherit;
    font: inherit;
    letter-spacing: inherit;
    text-decoration: underline;
    text-decoration-color: currentColor;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.footer-copy .footer-preferences button {
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
}

.footer-copy a:hover,
.footer-copy .footer-preferences button:hover {
    opacity: .72;
}

.footer-credit strong {
    color: #f2f1ed;
    font-weight: 700;
    letter-spacing: 0.09em;
}
}

@media (min-width: 600px) {

    .footer-service {
        grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr));
    }

    .footer-service > div:first-child {
        grid-column: auto;
    }

    .footer-main {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: var(--s-5);
    }

    .footer-links {
        flex: 1;
    }

    .footer-social {
        flex-shrink: 0;
        margin-left: 0;
    }
}

@media (min-width: 1200px) {
    .footer-links {
        display: flex;
        flex-wrap: wrap;
        gap: 0 var(--s-5);
    }
}


/* =========================================================
   14  MODALS — Shipping & returns, Terms, Contact
   One component, three uses.
   ========================================================= */

/* The "Added to cart" popup uses the same component */
.added-item {
    display: flex;
    align-items: center;
    gap: var(--s-4);
    margin-bottom: var(--s-5);
}

.added-image {
    flex-shrink: 0;
    width: 64px;
    height: 80px;
    object-fit: cover;
    background: var(--surface, #f8f7f3);
}

.added-name {
    font-size: var(--fs-lead);
    font-weight: 700;
    line-height: var(--lh-tight);
}

.added-meta {
    margin-top: var(--s-1);
    font-size: var(--fs-small);
    color: var(--ink-2);
}

.added-actions {
    display: grid;
    gap: var(--s-3);
}

@media (min-width: 520px) {
    .added-actions {
        grid-template-columns: 1fr 1fr;
    }
}

.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 55;

    background: rgba(17, 17, 17, 0.45);

    opacity: 0;
    pointer-events: none;

    transition: opacity 240ms ease;
}

.modal-overlay.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 56;

    width: min(520px, calc(100vw - 24px));
    max-height: calc(100dvh - 48px);

    display: flex;
    flex-direction: column;

    background: var(--bg);
    border: 1px solid var(--line);
    color: var(--ink);

    transform: translate(-50%, -48%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition:
        opacity 220ms ease,
        transform 260ms var(--ease),
        visibility 0s linear 260ms;
}

.modal.is-open {
    transform: translate(-50%, -50%);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;

    transition-delay: 0s;
}

.modal-header {
    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--s-4);

    padding: var(--s-5) var(--s-5) var(--s-4);
    border-bottom: 1px solid var(--line);
}

.modal-header h2 {
    font-size: var(--fs-h3);
    font-weight: 700;
    line-height: var(--lh-tight);
    letter-spacing: -0.015em;
}

.modal-close {
    flex-shrink: 0;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 44px;
    height: 44px;
    margin-right: -12px;

    background: none;
    border: none;
    color: var(--ink);
    cursor: pointer;

    transition: opacity 180ms ease, transform 220ms var(--ease);
}

.modal-close:hover {
    opacity: 0.55;
}

.modal-close svg {
    width: 20px;
    height: 20px;
    stroke-width: 1.5;
    stroke-linecap: round;
}

.modal-body {
    padding: var(--s-5);
    overflow-y: auto;
    overscroll-behavior: contain;
}

.modal-section + .modal-section {
    margin-top: var(--s-6);
    padding-top: var(--s-6);
    border-top: 1px solid var(--line);
}

.modal-section h3 {
    margin-bottom: var(--s-3);

    font-size: var(--fs-meta);
    font-weight: 700;
    letter-spacing: var(--track-meta);
    text-transform: uppercase;
    color: var(--ink-2);
}

.modal-section p,
.modal-section li {
    font-size: var(--fs-body);
    line-height: 1.7;
    color: var(--ink-body);
}

.modal-section ul {
    display: flex;
    flex-direction: column;
    gap: var(--s-3);
}

.modal-section li {
    position: relative;
    padding-left: var(--s-5);
}

.modal-section li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.85em;
    width: 10px;
    height: 1px;
    background: var(--ink-3);
}

.modal-section strong {
    font-weight: 600;
    color: var(--ink);
}

/* Contact: one strong action, one secondary */
.modal-intro {
    margin-bottom: var(--s-5);
    font-size: var(--fs-body);
    line-height: 1.65;
    color: var(--ink-2);
}

.modal-quick-actions {
    display: flex;
    flex-direction: column;
    gap: var(--s-3);
}

.modal-action-btn {
    width: 100%;
    min-height: 68px;
    padding: 0 var(--s-5);

    justify-content: flex-start;
    gap: var(--s-4);
    text-align: left;
}

.modal-action-btn svg {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
}

.modal-action-btn .modal-action-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.modal-action-btn small {
    font-size: var(--fs-small);
    font-weight: 400;
    letter-spacing: 0.01em;
    text-transform: none;
    color: #c8c5bd;
}

.modal-action-btn-outline {
    width: 100%;
    min-height: 68px;
    padding: 0 var(--s-5);

    justify-content: flex-start;
    gap: var(--s-4);
    text-align: left;
}

.modal-action-btn-outline svg {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
}

.modal-action-btn-outline small {
    font-size: var(--fs-small);
    font-weight: 400;
    letter-spacing: 0.01em;
    text-transform: none;
    color: var(--ink-2);
}

@media (max-width: 480px) {
    .modal-header { padding: var(--s-4) var(--s-4) var(--s-3); }
    .modal-body   { padding: var(--s-4); }
}


/* =========================================================
   15  ERROR PAGES — 403, 404, 500
   ========================================================= */

.error-page {
    width: min(560px, calc(100% - (var(--gutter) * 2)));
    margin: 0 auto;
    padding: var(--s-9) 0;

    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.error-page .error-code {
    margin-top: 0;
    max-width: none;
    font-size: clamp(88px, 22vw, 160px);
    font-weight: 700;
    line-height: 0.9;
    letter-spacing: -0.05em;
    font-variant-numeric: tabular-nums;
    color: var(--ink);
}

.error-page h1 {
    margin-top: var(--s-5);

    font-size: clamp(24px, 4vw, 30px);
    font-weight: 700;
    line-height: var(--lh-tight);
    letter-spacing: -0.02em;
}

.error-page p {
    margin-top: var(--s-3);
    max-width: 40ch;

    font-size: var(--fs-body);
    line-height: var(--lh-body);
    color: var(--ink-2);
}

.error-page .button {
    margin-top: var(--s-7);
}


/* =========================================================
   16  ACCESSIBILITY / REDUCED MOTION
   ========================================================= */

/* A strong, visible focus ring that belongs to the palette. */
a:focus-visible,
button:focus-visible,
summary:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
    outline: 2px solid var(--focus);
    outline-offset: 3px;
}

/* Inputs show focus with border + ring (see form controls). */
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid transparent;
}

.pdp-add-to-cart:focus-visible,
.receipt-checkout:focus-visible,
.checkout-submit:focus-visible,
.auth-button:focus-visible,
.button:focus-visible {
    outline-offset: 4px;
}

.site-footer a:focus-visible,
.site-footer button:focus-visible {
    outline-color: var(--bg);
}

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        transition-delay: 0s !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* =========================================================
   AUTH — LOGIN PAGE
   ========================================================= */

.auth-page {
    min-height: calc(100vh - 80px);

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 120px 24px 100px;

    background: var(--paper);
}


.auth-container {
    width: min(100%, 440px);

    margin: 0 auto;
}


/* -----------------------------------------
   INTRO
   ----------------------------------------- */

.auth-eyebrow {
    margin: 0 0 26px;

    font-size: 10px;
    font-weight: 700;

    letter-spacing: 0.16em;
    line-height: 1.2;

    text-transform: uppercase;

    color: var(--muted);
}


.auth-title {
    margin: 0;

    font-size: clamp(52px, 7vw, 82px);
    font-weight: 500;

    letter-spacing: -0.055em;
    line-height: 0.9;

    color: var(--ink);
}


.auth-intro {
    margin: 28px 0 48px;

    max-width: 330px;

    font-size: 14px;
    line-height: 1.6;

    color: var(--muted);
}


/* -----------------------------------------
   ERROR
   ----------------------------------------- */

.auth-error {
    margin: 0 0 24px;
    padding: 14px 16px;

    border: 1px solid rgba(0, 0, 0, 0.16);

    font-size: 12px;
    line-height: 1.5;

    color: #111;
    background: rgba(0, 0, 0, 0.025);
}


/* -----------------------------------------
   FORM
   ----------------------------------------- */

.auth-form {
    display: flex;
    flex-direction: column;

    gap: 26px;
}


.form-field {
    display: flex;
    flex-direction: column;

    gap: 9px;
}


.form-field label {
    font-size: 10px;
    font-weight: 700;

    letter-spacing: 0.13em;
    text-transform: uppercase;

    color: var(--ink);
}


.form-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 16px;
}


.form-label-row label {
    margin: 0;
}


.forgot-password {
    font-size: 10px;
    font-weight: 600;

    letter-spacing: 0.06em;

    color: var(--muted);

    text-decoration: none;

    transition: color 180ms ease;
}


.forgot-password:hover {
    color: var(--ink);
}


.form-field input {
    width: 100%;

    min-height: 52px;

    padding: 0 15px;

    border: 1px solid rgba(0, 0, 0, 0.22);
    border-radius: 0;

    outline: none;

    background: transparent;

    color: var(--ink);

    font-family: inherit;
    font-size: 14px;

    transition:
        border-color 180ms ease,
        background 180ms ease;
}


.form-field input::placeholder {
    color: var(--muted);
    opacity: 0.65;
}


.form-field input:hover {
    border-color: rgba(0, 0, 0, 0.4);
}


.form-field input:focus {
    border-color: var(--ink);

    background: rgba(0, 0, 0, 0.015);
}


/* -----------------------------------------
   LOGIN BUTTON
   ----------------------------------------- */

.auth-button {
    width: 100%;

    min-height: 54px;

    margin-top: 4px;

    border: 1px solid var(--ink);
    border-radius: 0;

    background: var(--ink);
    color: var(--paper);

    font-family: inherit;

    font-size: 11px;
    font-weight: 700;

    letter-spacing: 0.14em;
    text-transform: uppercase;

    cursor: pointer;

    transition:
        background 180ms ease,
        color 180ms ease;
}


.auth-button:hover {
    background: transparent;
    color: var(--ink);
}


/* -----------------------------------------
   DIVIDER
   ----------------------------------------- */

.auth-divider {
    display: flex;
    align-items: center;

    gap: 14px;

    margin: 34px 0 24px;
}


.auth-divider span {
    flex: 1;

    height: 1px;

    background: rgba(0, 0, 0, 0.12);
}


.auth-divider p {
    margin: 0;

    font-size: 9px;
    font-weight: 700;

    letter-spacing: 0.14em;

    color: var(--muted);
}


/* -----------------------------------------
   GOOGLE
   ----------------------------------------- */

.google-login-button {
    width: 100%;

    min-height: 54px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 12px;

    border: 1px solid rgba(0, 0, 0, 0.22);

    background: transparent;
    color: var(--ink);

    font-size: 11px;
    font-weight: 600;

    letter-spacing: 0.05em;

    text-decoration: none;

    transition:
        background 180ms ease,
        border-color 180ms ease;
}


.google-login-button:hover {
    border-color: var(--ink);

    background: rgba(0, 0, 0, 0.035);
}


.google-icon {
    width: 18px;
    height: 18px;

    flex: 0 0 18px;
}


/* -----------------------------------------
   CREATE ACCOUNT
   ----------------------------------------- */

.auth-register {
    margin-top: 46px;

    padding-top: 26px;

    border-top: 1px solid rgba(0, 0, 0, 0.10);

    text-align: center;
}


.auth-register p {
    margin: 0 0 9px;

    font-size: 12px;

    line-height: 1.5;

    color: var(--muted);
}


.auth-register a {
    font-size: 11px;
    font-weight: 700;

    letter-spacing: 0.10em;

    color: var(--ink);

    text-transform: uppercase;

    text-decoration: underline;
    text-underline-offset: 4px;

    transition: opacity 180ms ease;
}


.auth-register a:hover {
    opacity: 0.55;
}


/* -----------------------------------------
   MOBILE
   ----------------------------------------- */

@media (max-width: 600px) {

    .auth-page {
        min-height: calc(100vh - 64px);

        align-items: flex-start;

        padding: 105px 20px 70px;
    }


    .auth-container {
        width: 100%;
    }


    .auth-eyebrow {
        margin-bottom: 22px;
    }


    .auth-title {
        font-size: clamp(48px, 15vw, 68px);
    }


    .auth-intro {
        margin-top: 22px;
        margin-bottom: 38px;
    }


    .auth-form {
        gap: 22px;
    }


    .auth-divider {
        margin-top: 28px;
    }


    .auth-register {
        margin-top: 38px;
    }

}


@media (max-width: 380px) {

    .auth-page {
        padding-left: 17px;
        padding-right: 17px;
    }


    .auth-title {
        font-size: 46px;
    }


    .form-label-row {
        align-items: flex-start;
        flex-direction: column;

        gap: 5px;
    }

}

/* -----------------------------------------
   GOOGLE BUTTON — a real <button> inside a POST form
   ----------------------------------------- */

.google-login-form {
    margin: 0;
}

button.google-login-button {
    appearance: none;
    -webkit-appearance: none;
    border-radius: 0;
    cursor: pointer;
}


/* =========================================================
   PHASE 4 — HOME HERO
   ========================================================= */

.home-hero {
    width: min(760px, calc(100% - (var(--gutter) * 2)));
    margin: 0 auto;
    padding: 110px 0 60px;
    text-align: center;
}

.home-hero .eyebrow {
    margin-bottom: 20px;
    color: var(--ink-2);
}

.home-hero h1 {
    font-size: clamp(40px, 7vw, 80px);
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: -0.04em;
}

.home-hero-sub {
    width: min(460px, 100%);
    margin: 24px auto 0;
    font-size: 14px;
    line-height: 1.6;
    color: var(--ink-2);
}

.home-hero-cta {
    display: inline-block;
    margin-top: 32px;
    padding: 16px 32px;
    border: 1px solid var(--ink);
    background: var(--ink);
    color: var(--bg);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: background 200ms ease, color 200ms ease;
}

.home-hero-cta:hover {
    background: transparent;
    color: var(--ink);
}


/* =========================================================
   PHASE 4 — RELATED PRODUCTS
   ========================================================= */

.related-products {
    width: min(var(--max), calc(100% - (var(--gutter) * 2)));
    margin: clamp(24px, 3vw, 48px) auto 36px;
    padding: 0;
    border: 0;
    font-family: var(--font);
}

.related-products-header {
    margin: 0 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.related-products-title {
    margin: 0;
    font-size: clamp(14px, 1.15vw, 17px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.related-products-scroll {
    display: flex;
    gap: clamp(14px, 1.5vw, 20px);
    overflow-x: auto;
    overflow-y: hidden;
    padding: 2px 0 8px;

    scroll-snap-type: x proximity;
    scroll-padding-inline: 0;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.related-products-scroll::-webkit-scrollbar {
    display: none;
}

.related-products-controls {
    display: flex;
    flex: 0 0 auto;
}

.related-products-controls[hidden] {
    display: none;
}

.related-products-controls button {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
}

.related-products-controls button:disabled {
    opacity: 0.3;
    cursor: default;
}

.related-products-controls svg {
    width: 20px;
    height: 20px;
    stroke-width: 2;
}

.related-products-scroll:focus-visible,
.related-products-controls button:focus-visible,
.related-products-more:focus-visible {
    outline: 2px solid var(--pink);
    outline-offset: -2px;
}

.related-products-more {
    flex: 0 0 120px;
    align-self: flex-start;
    display: grid;
    place-items: center;
    min-height: 180px;
    padding: 12px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    color: inherit;
}

.related-products-more[aria-disabled="true"] {
    opacity: 0.6;
}

.related-product {
    flex: 0 0 150px;
    display: block;
    text-decoration: none;
    color: inherit;
    scroll-snap-align: start;
}

.related-product-image {
    width: 100%;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: var(--frame);
}

.related-product-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.related-product-image-empty {
    display: grid;
    place-items: center;
    padding: 12px;
    color: var(--muted);
    font-size: 11px;
    text-align: center;
}

.related-product:hover .related-product-image img {
    transform: scale(1.03);
}

.related-product-name {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    min-height: 2.7em;
    margin: 10px 0 0;
    font-size: 12px;
    line-height: 1.35;
    font-weight: 600;
}

.related-product-price {
    margin: 5px 0 0;
    font-size: 12px;
    line-height: 1.4;
    color: var(--muted);
}

@media (min-width: 900px) {
    .related-product { flex-basis: 190px; }
    .related-products-more { flex-basis: 150px; min-height: 237px; }
}

/* =========================================================
   PHASE 4 — ORDER TRACKER
   ========================================================= */

.order-tracker {
    margin: 30px 0;
}

.order-tracker h2 {
    margin-bottom: 18px;
    font-size: var(--fs-meta);
    font-weight: 700;
    letter-spacing: 0.13em;
}

.order-tracker-steps {
    list-style: none;
    position: relative;
    padding-left: 26px;
}

.order-tracker-steps::before {
    content: "";
    position: absolute;
    left: 5px;
    top: 6px;
    bottom: 6px;
    width: 1px;
    background: var(--line);
}

.order-tracker-step {
    position: relative;
    padding-bottom: 22px;
    font-size: var(--fs-small);
    color: var(--ink-3);
}

.order-tracker-step:last-child {
    padding-bottom: 0;
}

.order-tracker-marker {
    position: absolute;
    left: -26px;
    top: 2px;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    border: 1px solid var(--line-strong);
    background: var(--field);
}

.order-tracker-step-done {
    color: var(--ink);
}

.order-tracker-step-done .order-tracker-marker {
    border-color: var(--ink);
    background: var(--ink);
}

.order-tracker-step-current {
    color: var(--ink);
    font-weight: 700;
}

.order-tracker-step-current .order-tracker-marker {
    border-color: var(--pink);
    background: var(--pink);
}


/* =========================================================
   PHASE 4 — DELIVERY DETAILS
   ========================================================= */

.order-delivery-to {
    margin: 30px 0;
    padding: 20px 24px;
    border: 1px solid var(--ink);
    background: var(--field);
}

.order-delivery-to h2 {
    margin-bottom: 12px;
    font-size: var(--fs-meta);
    font-weight: 700;
    letter-spacing: 0.13em;
}

.order-delivery-to p {
    font-size: var(--fs-small);
    line-height: 1.6;
    color: var(--ink-body);
}

.order-delivery-to p.order-delivery-name {
    font-weight: 700;
    color: var(--ink);
}


/* Hero anchor should stop below the fixed header. */
#shop {
    scroll-margin-top: var(--header-h);
}


@media (max-width: 599px) {
    .home-hero {
        padding: 90px 0 45px;
    }
}


/* =========================================================
   COLLECTION: product links, out-of-stock, pagination
   ========================================================= */

/* Hidden visually but still read by screen readers */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* The name and price are one link to the product page */
a.product-meta {
    display: block;
    color: inherit;
}

a.product-meta .product-title,
a.product-meta .product-price {
    transition: opacity 180ms ease;
}

a.product-meta:hover .product-title,
a.product-meta:hover .product-price {
    opacity: 0.6;
}

/* Related products: out-of-stock note */
.related-product-stock {
    margin: 3px 0 0;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-2);
}

/* PAGINATION — shown only when there are more than 12 bags */

.colour-request-note {
    margin: 0 0 var(--s-5);
    padding: 12px 14px;
    border-left: 2px solid var(--pink);
    background: var(--surface);
    color: var(--ink-2);
    font-size: 12px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}
.colour-request-note strong { display: block; margin-bottom: 4px; color: var(--ink); }
.colour-request-note p { margin: 0; }
.colour-request-note .colour-request-products { margin-top: 6px; }
.colour-request-note-cart { margin-top: var(--s-5); }
.order-delivery-notes { padding: var(--s-5); border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.order-delivery-notes h2 { margin: 0 0 var(--s-2); font-size: 13px; }
.order-delivery-notes p { margin: 0; font-size: 13px; line-height: 1.7; }

.product-grid.product-grid-paged {
    padding-bottom: var(--s-6);
}

.pagination {
    width: min(var(--max), calc(100% - (var(--gutter) * 2)));
    margin: 0 auto;
    padding: var(--s-5) 0 var(--s-9);

    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--s-4);

    border-top: 1px solid var(--line);
}

.pagination-pages {
    display: flex;
    align-items: center;
    gap: 2px;
    list-style: none;
}

.pagination-link,
.pagination-gap {
    min-width: 40px;
    height: 40px;
    padding: 0 6px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-size: var(--fs-label);
    font-weight: 600;
    letter-spacing: 0.06em;
    font-variant-numeric: tabular-nums;
    color: var(--ink-2);
}

.pagination-gap {
    min-width: 24px;
    color: var(--ink-3);
}

.pagination-link {
    border-bottom: 1px solid transparent;
    transition: color 160ms ease, border-color 160ms ease;
}

a.pagination-link:hover {
    color: var(--ink);
    border-bottom-color: var(--line-strong);
}

.pagination-link.is-current {
    color: var(--ink);
    font-weight: 700;
    border-bottom-color: var(--ink);
}

.pagination-step {
    min-width: 44px;
    height: 40px;
    padding-bottom: 4px;    /* optically centres the small capitals on the page numbers */

    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-size: var(--fs-meta);
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink);

    transition: opacity 180ms ease;
}

a.pagination-step:hover {
    opacity: 0.55;
}

.pagination-disabled {
    color: var(--ink-3);
    cursor: default;
}

@media (max-width: 599px) {

    /*
     * Phones: the page bar must stay on ONE line down to 320px wide, even in
     * its longest forms ("Prev 1 ... 15 16 17 ... 32 Next" and
     * "Prev 1 2 3 4 5 ... 32 Next"). These sizes keep it under about 280px.
     */

    .pagination {
        gap: var(--s-1);
    }

    .pagination-pages {
        gap: 0;
    }

    .pagination-link {
        min-width: 30px;
        padding: 0 4px;
    }

    .pagination-gap {
        min-width: 18px;
        padding: 0;
    }

    .pagination-step {
        min-width: 36px;
        letter-spacing: 0.06em;
    }
}


/* APPEARANCE — device default, with a remembered manual choice. */
:root { color-scheme: light; }
html[data-theme="dark"] {
    color-scheme: dark;
    --bg: #000000;
    --surface: #16181c;
    --frame: #16181c;
    --field: #0f1113;
    --ink: #e7e9ea;
    --ink-2: #a0a7ad;
    --ink-body: #c4c9cd;
    --ink-3: #929ba3;
    --placeholder: #929ba3;
    --line: #2f3336;
    --line-strong: #626b73;
    --line-on-surface: #3a4045;
    --success: #85d4a2;
    --success-bg: #10251a;
    --success-line: #29553a;
    --warning: #f0c675;
    --warning-bg: #2a2110;
    --warning-line: #655025;
    --danger: #ffaaa3;
    --danger-bg: #301716;
    --danger-line: #68322e;
    --focus: #e7e9ea;
}
/* Theme controls share the existing header and drawer; no extra page row. */
.theme-toggle {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    width: 44px; min-height: 44px; padding: 0; border: 1px solid transparent;
    border-radius: 50%; background: transparent; color: var(--ink); font: inherit;
    font-size: 12px; cursor: pointer;
    transition: background-color 160ms ease, border-color 160ms ease;
}
.theme-toggle:hover { background: var(--surface); border-color: var(--line); }
.theme-toggle svg { width: 20px; height: 20px; flex-shrink: 0; }
.theme-toggle[hidden], .drawer-appearance[hidden] { display: none; }
.theme-sun { display: none; }
html[data-theme="dark"] .theme-sun { display: block; }
html[data-theme="dark"] .theme-moon { display: none; }
.header-theme-toggle { position: absolute; left: calc(var(--gutter) + 44px); top: 50%; transform: translateY(-50%); }
.drawer-header { justify-content: space-between; }
.drawer-theme-toggle { width: auto; border-radius: 4px; padding: 0 10px; margin-left: -10px; }

.drawer-appearance { flex-shrink: 0; min-width: 0; margin: 0; padding: 20px 24px; border: 0; border-top: 1px solid var(--line); }
.drawer-appearance legend { float: left; width: 100%; padding: 0; margin-bottom: 4px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.appearance-caption { clear: both; margin: 0 0 14px; color: var(--ink-2); font-size: 12px; }
.appearance-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.appearance-options label { position: relative; margin: 0; cursor: pointer; }
.appearance-options input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.appearance-options span { display: flex; min-height: 44px; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 5px; color: var(--ink-2); font-size: 12px; }
.appearance-options input:checked + span { background: var(--bg); color: var(--ink); border-color: var(--line-strong); font-weight: 700; }
.appearance-options input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
.appearance-status { margin: 10px 0 0; color: var(--ink-2); font-size: 11px; }
/* Select neutral lettering by colour, so it can overlap the bag cutout in either theme. */
.brand-art { position: relative; display: block; }
.brand-filters { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }
html[data-theme="dark"] .brand img { filter: url("#brand-dark-lettering"); }
html[data-theme="dark"] :is(.product-image img, .gallery-slide img, .receipt-thumb img) { mix-blend-mode: normal; }
html[data-theme="dark"] .gallery-arrow { background: #16181ce6; }
html[data-theme="dark"] :is(.button, .pdp-add-to-cart, .receipt-checkout, .checkout-submit, .auth-button, .auth-card button[type="submit"], .order-action-primary, .account-action-primary, .modal-action-btn, .price-filter-form button):hover {
    background: #cbd0d3; border-color: #cbd0d3;
}
html[data-theme="dark"] :is(.button, .pdp-add-to-cart, .receipt-checkout, .checkout-submit, .auth-button, .auth-card button[type="submit"], .order-action-primary, .account-action-primary, .modal-action-btn):active {
    background: #aeb6bc; border-color: #aeb6bc;
}
html[data-theme="dark"] .site-footer { background: #0b0d0e; color: var(--ink); border-top: 1px solid var(--line); }
html[data-theme="dark"] .site-footer :is(dt, a, button) { color: var(--ink); }
html[data-theme="dark"] .site-footer :is(a, button):focus-visible { outline-color: var(--focus); }
html[data-theme="dark"] :is(.footer-main, .footer-bottom) { border-color: var(--line); }
html[data-theme="dark"] .auth-error { color: var(--danger); background: var(--danger-bg); border-color: var(--danger-line); }
html[data-theme="dark"] :is(.form-field input, .google-login-button) { border-color: var(--line-strong); }
html[data-theme="dark"] .form-field input::placeholder { opacity: 1; }
html[data-theme="dark"] :is(.form-field input:hover, .form-field input:focus, .google-login-button:hover) { border-color: var(--ink); background: var(--surface); }
html[data-theme="dark"] .auth-register { border-color: var(--line); }
html[data-theme="dark"] .auth-divider::before,
html[data-theme="dark"] .auth-divider::after { background: var(--line); }
html[data-theme="dark"] .address-suggest-list { background: var(--surface); border-color: var(--line-strong); }
html[data-theme="dark"] .address-suggest-list li { border-color: var(--line); }
html[data-theme="dark"] .address-suggest-list li:hover,
html[data-theme="dark"] .address-suggest-list li[aria-selected="true"] { background: #292e33; }
html[data-theme="dark"] .auth-button:hover { color: #000; }
html[data-theme="dark"] .auth-divider span { background: var(--line); }
html[data-theme="dark"] .drawer-overlay { background: rgba(91, 112, 131, .4); }
html[data-theme="dark"] .modal-overlay { background: rgba(91, 112, 131, .4); }
@media (prefers-reduced-motion: reduce) { .theme-toggle { transition: none; } }
html[data-theme="dark"] .modal-action-btn small { color: #42484d; }

/* Keep the complete product photo visible below the desktop header. */
@media (min-width: 900px) and (min-height: 550px) {
    .pdp-gallery { position: sticky; top: calc(var(--header-h) + 20px); }
    .gallery-slide {
        aspect-ratio: auto;
        height: min(700px, calc(100vh - var(--header-h) - 110px));
        height: min(700px, calc(100dvh - var(--header-h) - 110px));
    }
}

/* Mobile header: menu + theme | centred brand | search + cart.
   Fixed, separate 44px targets keep the logo and controls from overlapping. */
.drawer-title { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
@media (max-width: 899px) {
    :root { --header-h: 114px; }
    .site-header {
        grid-template-columns: 88px minmax(0, 1fr) 88px;
        column-gap: 8px;
        padding-inline: 12px;
    }
    .site-header .menu-toggle {
        grid-column: 1; grid-row: 1; width: 44px; height: 44px;
        margin: 0; justify-self: start;
    }
    .header-theme-toggle {
        position: static; grid-column: 1; grid-row: 1;
        justify-self: end; transform: none; margin: 0;
    }
    .site-header .brand {
        grid-column: 2; grid-row: 1; width: 100%; max-width: 228px; min-width: 0;
    }
    .site-header .brand-art { display: block; width: 100%; }
    .site-header .brand img { width: 100%; height: auto; max-width: 100%; }
    .site-header .header-actions {
        grid-column: 3; grid-row: 1; display: flex; gap: 0; margin: 0;
    }
    .site-header .header-actions .icon-button { width: 44px; height: 44px; margin: 0; }
    .site-header .header-account-link { display: none; }
}
@media (max-width: 359px) {
    .site-header { padding-inline: 8px; column-gap: 4px; }
}

/* Compact drawer: categories receive the remaining viewport space. */
.nav-drawer {
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
}
.nav-drawer .drawer-header {
    height: 64px;
    padding: 0 20px;
}
.nav-drawer .drawer-body {
    flex: 1 1 0;
    min-height: 0;
    padding: 12px 20px 16px;
    gap: 20px;
    scrollbar-width: thin;
    scrollbar-color: var(--ink-3) transparent;
    scroll-padding-block: 12px;
}
.nav-drawer .drawer-category {
    margin: 0 0 4px;
    padding-bottom: 8px;
    font-size: 11px;
    line-height: 16px;
}
.nav-drawer .drawer-body a {
    min-height: 44px;
    padding: 9px 0;
    font-size: 18px;
    line-height: 1.4;
}
.nav-drawer .drawer-appearance {
    padding: 12px 20px 10px;
}
.nav-drawer .drawer-appearance legend {
    margin-bottom: 8px;
    font-size: 11px;
    line-height: 14px;
}
.nav-drawer .appearance-options {
    clear: both;
    gap: 2px;
    padding: 2px;
    border-radius: 6px;
}
.nav-drawer .appearance-options span {
    min-height: 40px;
    font-size: 12px;
    border-radius: 4px;
}
.nav-drawer .appearance-status {
    margin: 6px 0 0;
    font-size: 10px;
    line-height: 14px;
}
.nav-drawer .drawer-account-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px;
    padding: 12px 20px calc(12px + env(safe-area-inset-bottom, 0px));
}
.drawer-account-actions > a {
    min-height: 44px;
    justify-content: center;
    padding: 8px 6px;
    border: 1px solid var(--line-strong);
    border-radius: 4px;
    font-size: 12px;
    line-height: 1.3;
    letter-spacing: 0;
    text-transform: none;
    text-align: center;
}
.drawer-account-actions > .drawer-login {
    background: var(--ink);
    color: var(--bg);
    border-color: var(--ink);
}
.drawer-account-actions > form { grid-column: 1 / -1; margin: 0; }
.drawer-account-actions > form button {
    min-height: 40px;
    justify-content: center;
    font-size: 12px;
    letter-spacing: 0;
    text-transform: none;
}
/* Landscape/short windows: keep all controls reachable by scrolling the drawer. */
@media (max-height: 480px) {
    .nav-drawer { overflow-y: auto; overscroll-behavior: contain; }
    .nav-drawer .drawer-body { flex: none; overflow: visible; }
}

/* Categories live in the existing shop introduction, above the product grid. */
.shop-bar-with-categories {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 20px;
    padding-bottom: 12px;
}
.shop-bar-with-categories > .category-filter {
    grid-column: 1 / -1;
    min-width: 0;
    max-width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    margin: 0;
    padding: 2px 0 4px;
    scroll-padding-inline: 4px;
}
.shop-bar-with-categories .category-filter-link { min-height: 40px; }
.shop-bar-with-categories .category-filter-link.active {
    border-color: var(--pink);
    background: var(--pink);
    color: #fff;
}
.shop-bar-with-categories .category-filter-link:focus-visible {
    outline: 2px solid var(--ink);
    outline-offset: -3px;
}
@media (hover: hover) and (pointer: fine) {
    .shop-bar-with-categories > .category-filter {
        scrollbar-width: thin;
        scrollbar-color: var(--line-strong) transparent;
    }
    .shop-bar-with-categories > .category-filter::-webkit-scrollbar {
        display: block;
        height: 4px;
    }
    .shop-bar-with-categories > .category-filter::-webkit-scrollbar-thumb {
        background: var(--line-strong);
        border-radius: 4px;
    }
}

/* Saved bags and the optional account step after guest checkout. */
.save-bag-form { margin: 12px 0; }
.product-caption { display: grid; grid-template-columns: minmax(0, 1fr) 44px; gap: 4px; align-items: start; padding-top: var(--s-3); }
.product-caption .product-meta { min-width: 0; padding-top: 0; }
.product-caption .product-title { overflow-wrap: anywhere; }
.save-bag-form-card { margin: 0; }
.product-out-of-stock .sold-out-badge { top: auto; bottom: 12px; }
.save-bag-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 8px 12px; border: 1px solid var(--line-strong); background: var(--bg); color: var(--ink); font: inherit; font-size: 12px; cursor: pointer; }
.save-bag-button svg { width: 20px; height: 20px; flex: 0 0 auto; }
.save-bag-button-card { width: 44px; height: 44px; min-height: 44px; padding: 0; border: 0; border-radius: 0; background: transparent; }
.save-bag-button-card svg { width: 18px; height: 18px; }
.save-bag-button[aria-pressed="true"] { color: var(--pink); }
.save-bag-button[aria-pressed="true"] svg { fill: currentColor; }
.save-bag-button:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.save-bag-button:disabled { cursor: wait; opacity: .65; }
.header-saved-link { position: relative; }
.saved-count { position: absolute; top: 0; right: -3px; min-width: 14px; padding: 1px 3px; border-radius: 8px; background: var(--pink); color: #fff; font-size: 9px; text-align: center; }
.saved-count[hidden], .saved-feedback[hidden] { display: none; }
.saved-feedback { position: fixed; z-index: 1200; right: var(--gutter); bottom: max(16px, env(safe-area-inset-bottom)); max-width: min(380px, calc(100vw - 32px)); padding: 12px 16px; background: var(--ink); color: var(--bg); border: 1px solid var(--line-strong); font-size: 12px; line-height: 1.6; }
.saved-feedback a { display: inline-block; margin-left: 10px; text-decoration: underline; }
.saved-bags-hint, .checkout-account-hint { font-size: 13px; line-height: 1.7; color: var(--ink-2); margin: 10px 0 24px; }
.saved-bags-hint a, .checkout-account-hint a { color: var(--ink); text-decoration: underline; }
.receipt-item-controls { flex-wrap: wrap; }
.order-account-offer { margin: 0 0 var(--s-6); padding: var(--s-5); border: 1px solid var(--line); }
.order-account-offer h2 { font-size: 18px; margin: 0 0 12px; }
.order-account-offer p { font-size: 13px; line-height: 1.7; margin: 0 0 14px; overflow-wrap: anywhere; }
.order-account-offer .order-action-secondary { display: inline-flex; margin-right: 16px; }
@media (max-width: 899px) { .header-actions .header-saved-link { display: none; } }
/* Guest checkout and the existing free-text colour preference. */
.checkout-account-hint, .colour-request-note, .guest-account-offer { font-size:.9rem; line-height:1.65; }
.colour-request-note { margin:16px 0; }
.colour-request-note strong { display:block; margin-bottom:4px; }
.guest-account-offer { margin:24px 0; padding:0 24px; }
.order-delivery-details { padding:24px; }
.order-delivery-details p { line-height:1.65; }
.order-delivery-notes { white-space:pre-wrap; overflow-wrap:anywhere; }
.order-payment-reference { overflow-wrap:anywhere; padding:0 24px; }
.order-detail-card > .order-detail-item { padding-left:24px; padding-right:24px; }

/* Final review stays compact in both existing colour themes. */
.checkout-review-content { max-width: 760px; margin: 0 auto; }
.checkout-review-card { padding: 24px 0; border-bottom: 1px solid var(--border-color, rgba(128,128,128,.28)); }
.checkout-review-card .checkout-section-title { margin-top: 0; }
.checkout-review-card p { margin: 8px 0; overflow-wrap: anywhere; }
.review-line { display: flex; justify-content: space-between; gap: 20px; padding: 8px 0; }
.review-line > :first-child { min-width: 0; overflow-wrap: anywhere; }
.review-line > :last-child { flex-shrink: 0; text-align: right; }
.review-line p { margin: 3px 0; font-size: .88em; opacity: .7; }
.review-total { margin-top: 8px; padding-top: 16px; border-top: 1px solid var(--border-color, rgba(128,128,128,.28)); font-size: 1.08em; }
.review-label { margin: 20px 0 8px; font-size: .9em; }
.review-notes { white-space: normal; }
.checkout-review-submit { margin-top: 28px; }
.checkout-review-submit .checkout-submit { width: 100%; }
.checkout-review-submit button:disabled { cursor: wait; opacity: .65; }
.review-edit-link { display: inline-block; padding: 16px 0; font-size: .9em; text-underline-offset: 4px; }
@media (max-width: 480px) {
    .checkout-review-card { padding: 20px 0; }
    .review-line { gap: 12px; font-size: .94em; }
    .checkout-review-submit .checkout-submit { white-space: normal; line-height: 1.4; padding: 18px 12px; }
}
