/* =========================================================
   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:  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:  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);
}

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


/* =========================================================
   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);
}

.brand img {
    display: block;
    width: auto;
    max-width: none;
    height: 40px;            /* same compact logo as before */
}

/* ~138px wide at 40px tall. Below 360px that would crowd the icons. */
@media (max-width: 359px) {
    .brand img { height: 34px; }
}

@media (max-width: 339px) {
    .brand img { height: 30px; }
}

@media (min-width: 600px) {
    .brand img { height: 44px; }
}

@media (min-width: 900px) {
    .brand img { height: 52px; }   /* a little more presence on desktop */
}

/* 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%;
    transition: transform 380ms var(--ease);
    touch-action: pan-y;
    will-change: transform;
}

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

    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;
}

/* ---- 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 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-8) var(--gutter) var(--s-6);
}

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

.footer-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--s-7);

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

.footer-brand {
    display: flex;
    flex-direction: column;

    font-size: clamp(40px, 11vw, 76px);
    font-weight: 700;
    line-height: 0.98;
    letter-spacing: -0.035em;
    text-transform: uppercase;
}

.footer-service {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--s-5);
    align-content: end;
}

.footer-service div {
    max-width: 52ch;
}

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

    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.65;
    color: #aaa79f;
}

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

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

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s-1) var(--s-6);
}

.footer-links a,
.footer-links button {
    min-height: 44px;
    padding: 0;

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

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

    font: inherit;
    font-size: var(--fs-meta);
    font-weight: 700;
    letter-spacing: 0.12em;
    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-1);
    margin-left: -10px;
}

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

    width: 44px;
    height: 44px;

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

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

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

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

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

    font-size: 12px;
    letter-spacing: 0.04em;
    color: #9a978f;
}

@media (min-width: 900px) {

    .footer-top {
        grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
        column-gap: var(--s-9);
        align-items: end;
    }

    .footer-main {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}


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

.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 {
    border-top: 1px solid var(--ink);
    margin-top: 0;
    padding: 0 0 12px;
}

.related-products-header {
    width: min(var(--max), calc(100% - (var(--gutter) * 2)));
    margin: 0 auto 12px;
}

.related-products-title {
    margin: 0;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.related-products-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0 var(--gutter) 4px;

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

.related-products-scroll::-webkit-scrollbar {
    display: none;
}

.related-product {
    flex: 0 0 150px;
    display: block;
    text-decoration: none;
    color: inherit;
}

.related-product-image {
    width: 150px;
    height: 180px;
    overflow: hidden;
    background: var(--frame);
}

.related-product-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.related-product-name {
    margin: 6px 0 0;
    font-size: 12px;
    line-height: 1.25;
    font-weight: 600;
}

/* =========================================================
   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;
    }
}
