/* KNOT storefront design system (one sheet, every storefront page).
 * Layer 1, tokens (--t-*): edited in Admin → Store theme and printed by StorefrontTheme::css(); the defaults below are the
 *   Doomsday preset, so the sheet also works where no settings are read (error pages of machine endpoints).
 * Layer 2, roles (--ds-*): what a colour is for (canvas, panel, text, line ...), derived from the tokens.
 * Layer 3, component aliases (--sf-*, --knot-*, --campaign-*, --drawer-*): older component sheets read these; all map to roles.
 * Geometry (cards, product page, listing) comes first, then the colour layer, which must stay last. */
:root{--t-page-bg:#0b100d;--t-header-bg:#090c0a;--t-surface:#141c16;--t-surface-2:#1b251d;--t-text:#e0e3da;--t-text-2:#a3ada2;--t-accent:#a9ada9;--t-button-bg:#dce1d5;--t-button-text:#101710;--t-border:#a9ada9;--t-footer-bg:#0b100d;--t-footer-text:#e0e3da;--t-bar-bg:#14281d;--t-bar-fg:#e0e3da;--t-band-bg:#14281d;--t-band-text:#a9ada9;--t-header-opacity:65%;--t-header-blur:7px;--t-border-opacity:34%;--t-r:8px;--t-r-box:8px;--t-r-ctl:0px;--t-corner:round;--t-heading-font:"Bricolage Grotesque", sans-serif;--t-logo-filter:invert(.9);color-scheme:dark}

body.knot-sf {
    --sf-wrap: min(1440px, calc(100% - 64px));
    --sf-out: cubic-bezier(.23, 1, .32, 1);
}

body.knot-sf:has(> .knot-storefront-footer) {
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
    padding-bottom: 0;
}
.knot-sf > .knot-storefront-footer { margin-top: auto; }

.knot-sf .knot-topbar,
.knot-sf.knot-product-detail .knot-topbar {
    background: var(--sf-night);
    color: #fff;
    border-bottom: 1px solid var(--sf-line);
    box-shadow: none;
}
.knot-sf .knot-topbar.knot-public-topbar {
    background: color-mix(in srgb, var(--sf-night) 76%, transparent);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}
.knot-sf.sf-catalog .knot-topbar.knot-public-topbar {
    background: #202020;
    border-bottom: 0;
}
.knot-sf .knot-topbar .knot-logo { filter: brightness(0) invert(1); }
.knot-sf .knot-topbar :is(.knot-nav-links, .knot-nav-icon-button, .knot-pdp-nav-offer, .knot-desktop-search-form button, .knot-menu-toggle) { color: #fff; }
.knot-sf .knot-home-topbar .knot-nav-links :is(.knot-nav-icon-button, .knot-desktop-search-form button) { color: #fff; }
.knot-sf .knot-topbar .knot-desktop-search-form input { color: var(--sf-ink); background: var(--sf-paper); }
.knot-sf .knot-topbar .knot-account-panel { background: var(--sf-paper); color: var(--sf-ink); }
.knot-sf .knot-topbar :focus-visible { outline-color: var(--sf-pink); }
.sf-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    min-height: 44px;
    padding: 9px 16px;
    border: 1px solid transparent;
    border-radius: var(--t-r, 8px); corner-shape: var(--t-corner, round);
    background: var(--sf-cream);
    color: var(--sf-ink);
    font: 700 14px/1.2 var(--font-body, system-ui);
    text-decoration: none;
}
.sf-action:hover { background: #fff; color: var(--sf-ink); }
.sf-action:focus-visible { outline-color: var(--sf-pink); outline-offset: 4px; }

.knot-sf.sf-catalog {
    background: linear-gradient(180deg, var(--sf-photo), var(--sf-paper) 920px);
}
.knot-sf .knot-listing-page { width: var(--sf-wrap); max-width: none; margin-inline: auto; }
.knot-sf :is(.knot-products-heading, .knot-listing-page .knot-page-head) { border: 0; }
.knot-sf :is(.knot-products-heading h2, .knot-listing-page .knot-page-head h1) { color: var(--sf-ink); font-style: italic; line-height: 1.04; }
.knot-sf .knot-listing-page .knot-page-head::before { content: none; }
.knot-sf .knot-product-grid-list { gap: 12px; border: 0; }
.knot-sf .knot-product-grid-edge { width: 100%; margin-inline: 0; }
.knot-sf .knot-card-link { aspect-ratio: auto; overflow: hidden; border: 1px solid #ffffffa8; border-radius: var(--sf-radius, 8px); corner-shape: var(--t-corner, round); background: var(--sf-photo); }
.knot-sf .knot-card-link .knot-product-card { position: relative; inset: auto; display: grid; grid-template-rows: auto 1fr; min-height: 100%; }
.knot-sf .knot-card-link .knot-product-imgwrap { position: relative; inset: auto; aspect-ratio: 1; }
.knot-sf :is(.knot-card-link .knot-product-card, .knot-card-link .knot-product-imgwrap, .knot-card-link .knot-product-img) { background: var(--sf-photo); }
.knot-sf .knot-card-link .knot-product-img { filter: none; mix-blend-mode: normal; }
.knot-sf .knot-card-link .knot-product-meta {
    position: relative;
    inset: auto;
    min-height: 90px;
    padding: 8px 10px;
    border-top: 1px solid var(--sf-line);
    background: var(--sf-paper);
    transform: none;
}
.knot-sf .knot-product-meta::before { content: none; }
.knot-sf .knot-product-name { overflow-wrap: anywhere; color: var(--sf-ink); }
.knot-sf .knot-discount { background: var(--sf-night); border: 0; border-radius: var(--t-r-box, 8px); corner-shape: var(--t-corner, round); }
.knot-sf .knot-search :is(input,button) { min-height: 44px; border-radius: calc(var(--t-r, 8px) * .625); corner-shape: var(--t-corner, round); }
.knot-sf .knot-search button { background: var(--sf-night); color: #fff; }

body.knot-sf.knot-product-detail {
    --knot-focus: var(--sf-pink);
    background: var(--sf-night);
}
.knot-sf.knot-product-detail > .knot-pdp-shell {
    width: 100%;
    padding-inline: clamp(12px, 2vw, 32px);
}
.knot-sf.knot-product-detail .knot-pdp-category-nav {
    padding: 13px;
    border: 1px solid var(--sf-line);
    border-radius: var(--sf-radius, 8px); corner-shape: var(--t-corner, round);
    background: var(--sf-night);
    color: var(--sf-cream);
}
.knot-sf.knot-product-detail .knot-pdp-category-nav a { color: inherit; }
.knot-sf.knot-product-detail .knot-pdp-category-nav a:is(:hover, .is-current, [aria-current]) { color: var(--sf-cream); text-decoration: none; }
.knot-sf.knot-product-detail .knot-pdp-gallery { background: transparent; }
.knot-sf.knot-product-detail .knot-pdp-gallery-slide {
    background: #f7f7f7;
    border: 0;
    border-radius: calc(var(--t-r-box, 8px) * .75); corner-shape: var(--t-corner, round);
}
.knot-sf.knot-product-detail .knot-pdp-gallery-slide img { filter: none; mix-blend-mode: normal; }
.knot-sf .knot-pdp-gallery-track { gap: 12px; }
.knot-sf.knot-product-detail .knot-pdp-right {
    --knot-muted: var(--sf-pink);
    --knot-text: var(--sf-cream);
    --knot-border: var(--sf-line);
    --knot-border-strong: var(--sf-pink);
    color: var(--knot-text);
    background: var(--sf-night);
    border: 1px solid var(--knot-border);
    border-radius: var(--sf-radius, 8px); corner-shape: var(--t-corner, round);
    padding: 15px;
}
.knot-sf.knot-product-detail .knot-pdp-right .knot-pdp-accordion { border-color: var(--knot-border); }
.knot-sf.knot-product-detail .knot-pdp-right :is(.knot-pdp-title,.knot-pdp-price,.knot-pdp-stock,.knot-pdp-desc h2,.knot-pdp-accordion > summary) { color: var(--knot-text); }
.knot-sf.knot-product-detail .knot-pdp-right .knot-pdp-accordion > summary::after { color: var(--knot-muted); }
.knot-sf.knot-product-detail .knot-pdp-title { font: 600 36px/1.12 var(--font-display); }
.knot-sf.knot-product-detail .knot-pdp-price { font-size: 18px; }
.knot-sf.knot-product-detail .knot-p-badge { color: var(--knot-muted); border: 0; padding: 0; }
.knot-sf.knot-product-detail .knot-pdp-offer { display: inline-block; padding: 3px 8px; border-radius: calc(var(--t-r-box, 8px) * .5); corner-shape: var(--t-corner, round); background: var(--sf-pink); color: var(--sf-ink); }
.knot-sf.knot-product-detail .knot-admin-product-code { flex-wrap: wrap; }
.knot-sf.knot-product-detail .knot-admin-product-code .admin-product-code { background: var(--sf-pink); color: var(--sf-ink); }
.knot-sf.knot-product-detail .knot-admin-product-code a { color: var(--knot-text); text-decoration: underline; }
.knot-sf.knot-product-detail .knot-pdp-right :is(.knot-pdp-qty,.size-btn,.knot-product-customize-button) {
    border: 1px solid var(--knot-border-strong);
    border-radius: calc(var(--t-r, 8px) * .75); corner-shape: var(--t-corner, round);
    background: transparent;
    color: var(--knot-text);
}
.knot-sf.knot-product-detail .knot-pdp-right .knot-pdp-qty :is(input,button) { background: transparent; color: var(--knot-text); }
.knot-sf.knot-product-detail .knot-size-row .size-btn.size-active:not(:disabled) {
    background: var(--sf-pink);
    border-color: var(--sf-cream);
    color: var(--sf-ink);
}
.knot-sf.knot-product-detail .knot-pdp-right :is(.knot-select-size,.knot-buy-now) {
    background: var(--sf-cream);
    border-color: var(--sf-cream);
    border-radius: calc(var(--t-r, 8px) * .75); corner-shape: var(--t-corner, round);
    color: var(--sf-ink);
}
.knot-sf.knot-product-detail .knot-pdp-actions .knot-add-to-cart {
    background: transparent;
    border-color: var(--sf-cream);
    border-radius: calc(var(--t-r, 8px) * .75); corner-shape: var(--t-corner, round);
    color: var(--sf-cream);
}
.knot-sf.knot-product-detail .knot-pdp-right .size-btn:disabled { opacity: .56; }
.knot-sf.knot-product-detail .knot-pdp-right :is(.knot-size-toast, .knot-size-chart table) {
    color: var(--knot-text);
    background: var(--sf-night);
}

.knot-sf.sf-cart { background: var(--sf-footer-canvas); }
.knot-sf :is(.knot-checkout-section,.knot-checkout-right,.knot-checkout-membership,.knot-static-page,.knot-narrow,.knot-empty) { background: var(--sf-paper); border-color: var(--sf-line); }
.knot-sf .knot-onepage-checkout { background: var(--sf-photo); }
.knot-sf .knot-checkout-left { background: var(--sf-paper); }
.knot-sf :is(.knot-pay-now,.knot-cart-primary,.knot-viewall) { background: var(--sf-night); color: #fff; border-color: var(--sf-night); border-radius: var(--t-r, 8px); corner-shape: var(--t-corner, round); }
.knot-sf :is(.knot-menu-drawer,.knot-cart-drawer) {
    background: var(--sf-paper);
    color: var(--sf-ink);
}
@supports (backdrop-filter: blur(12px)) or (-webkit-backdrop-filter: blur(12px)) {
    .knot-sf :is(.knot-menu-drawer,.knot-cart-drawer) {
        background: var(--drawer-bg);
        -webkit-backdrop-filter: blur(14px);
        backdrop-filter: blur(14px);
    }}
.knot-sf .knot-storefront-footer { background: var(--sf-footer-ink); color: var(--sf-cream); }
@media (max-width: 720px) {
    .knot-sf.knot-product-detail > .knot-pdp-shell { padding-inline: 12px; }}
.knot-sf .knot-storefront-footer .knot-footer-bottom { background: var(--sf-footer-ink); color: var(--sf-cream); }
.knot-sf .knot-footer-bottom a { color: var(--sf-cream); }
.knot-sf :is(.knot-campaign-popup, .knot-offer-choice) { border-radius: var(--sf-radius, 8px); corner-shape: var(--t-corner, round); background: var(--sf-paper); color: var(--sf-ink); }
.knot-sf .knot-campaign-popup:not(.knot-campaign-popup--image) { width: min(540px, calc(100% - 28px)); }
.knot-sf .knot-campaign-popup--image .knot-campaign-artwork img { max-width: min(640px, calc(100vw - 28px)); }
.knot-sf .knot-campaign-popup .knot-campaign-placeholder { background: var(--sf-night); min-height: 144px; height: auto; aspect-ratio: 3; font-size: 25px; }
.knot-sf .knot-campaign-popup-copy { padding: 18px; gap: 12px; flex-direction: column; align-items: start; }
.knot-sf .knot-campaign-popup h2 { font-size: 22px; }

.knot-auth.knot-sf { background: var(--sf-night); }
.knot-auth.knot-sf .knot-auth-layout { background: transparent; }
.knot-auth.knot-sf .knot-auth-panel {
    padding: 24px;
    border: 1px solid var(--sf-line);
    border-radius: var(--sf-radius, 8px); corner-shape: var(--t-corner, round);
    background: var(--sf-night);
    color: var(--sf-cream);
}
.link-hub.knot-sf { background: var(--sf-night); }
.link-hub.knot-sf .lh-card { background: var(--sf-paper); color: var(--sf-ink); }
.sf-error { min-height: 100svh; display: grid; place-items: center; font: 16px/1.5 system-ui, sans-serif; text-align: center; }
.sf-error main { padding: 24px; }
.sf-error img { width: 112px; height: auto; }
.sf-error h1 { margin: 15px 0 5px; font-size: 34px; }
.sf-error .sf-action { background: var(--sf-night); color: #fff; }

@media (hover:hover) and (pointer:fine) {
    .knot-sf .knot-card-link .knot-product-img { transition: transform 230ms var(--sf-out); }
    .knot-sf .knot-card-link:hover .knot-product-img { transform: scale(1.025); }}
@media (max-width:1024px) {
    body.knot-sf { --sf-wrap: calc(100% - 36px); }
    .knot-sf.knot-product-detail .knot-pdp-title { font-size: 32px; }}
@media (max-width:700px) {
    body.knot-sf { --sf-wrap: calc(100% - 24px); }
    .knot-sf .knot-product-grid-list { gap: 8px; }
    .knot-sf.knot-product-detail .knot-pdp-title { font-size: 30px; }}
@media (prefers-reduced-motion:no-preference) {
    .sf-action { transition: transform 130ms var(--sf-out); }
    .sf-action:active { transform: scale(.98); }}
@media (prefers-reduced-motion:reduce) {
    .knot-sf .knot-card-link :is(.knot-product-meta,.knot-product-img) { transition: none; }
    .knot-sf .knot-card-link:hover .knot-product-img { transform: none; }}

/* Colour layer: every colour, surface, border, header and corner value comes from the tokens. */
html:root {
    --ds-canvas: var(--t-page-bg);
    --ds-deep: var(--t-header-bg);
    --ds-panel: var(--t-surface);
    --ds-raised: var(--t-surface-2);
    --ds-latveria: var(--t-band-bg);
    --ds-armour: light-dark(#7d957f, #526b54);
    --ds-metal: var(--t-accent);
    --ds-text: var(--t-text);
    --ds-muted: var(--t-text-2);
    --ds-action: var(--t-button-bg);
    --ds-ink: var(--t-button-text);
    --ds-line: color-mix(in srgb, var(--t-border) var(--t-border-opacity), transparent);
    --ds-good: light-dark(#2f6b33, #abceac);
    --ds-error: light-dark(#a3261f, #f2aaa6);
    --ds-hover: color-mix(in srgb, var(--t-surface) 82%, var(--t-text));
    /* Motion: one scale for the whole storefront. Enter decelerates (ease-out); leave is quicker (ease-in). */
    --m-instant: 120ms; --m-quick: 180ms; --m-menu: 220ms; --m-panel: 300ms; --m-image: 380ms;
    --m-ease-out: cubic-bezier(.2, .8, .2, 1); --m-ease-in: cubic-bezier(.4, 0, 1, 1);
    background: var(--ds-canvas);
}
:root body, :root .knot-pdp-grid {
    --sf-ink: var(--ds-text); --sf-night: var(--ds-panel);
    --sf-paper: var(--ds-canvas); --sf-cream: var(--ds-text); --sf-photo: var(--ds-raised);
    --sf-pink: var(--ds-metal); --sf-line: var(--ds-line); --sf-lean: var(--ds-raised);
    --sf-footer-canvas: var(--t-footer-bg); --sf-footer-ink: var(--t-footer-bg);
    --campaign-bone: var(--ds-canvas); --campaign-black: var(--ds-text); --campaign-fog: var(--ds-panel);
    --campaign-sage: var(--ds-raised); --campaign-rule: var(--ds-line); --campaign-rust: var(--ds-good);
    --knot-page: var(--ds-canvas); --knot-surface: var(--ds-panel); --knot-surface-raised: var(--ds-raised);
    --knot-surface-muted: var(--ds-raised); --knot-surface-disabled: var(--ds-panel); --knot-text: var(--ds-text);
    --knot-primary: var(--ds-action); --knot-on-primary: var(--ds-ink); --knot-control: var(--ds-panel);
    --knot-border: var(--ds-line); --knot-border-strong: var(--ds-metal); --knot-focus: var(--ds-action);
    --knot-danger: var(--ds-error); --knot-success: var(--ds-good); --knot-muted: var(--ds-muted);
    --navbar-scrolled-bg: var(--ds-deep); --navbar-border: var(--ds-line);
    --drawer-bg: var(--ds-panel); --drawer-section-bg: var(--ds-panel); --drawer-text: var(--ds-text);
    --drawer-muted: var(--ds-muted); --drawer-border: var(--ds-line); --drawer-control-hover: var(--ds-hover);
    --knot-fast: var(--m-quick); --knot-med: var(--m-panel); --knot-ease: var(--m-ease-out);
    background: var(--ds-canvas); color: var(--ds-text);
}
:root :focus-visible { outline: 2px solid var(--ds-action); outline-offset: 3px; }

/* Surfaces */
:root .lh-footer { background: var(--ds-deep)!important; color: var(--t-footer-text)!important; border-color: var(--ds-line)!important; }
:root :is(.knot-announcement) { background: var(--ds-deep)!important; color: var(--t-bar-fg)!important; border-color: var(--ds-line)!important; }
:root :is(.knot-topbar.knot-public-topbar,.knot-topbar) {
    background: color-mix(in srgb, var(--t-header-bg) var(--t-header-opacity), transparent) !important;
    color: var(--ds-text);
    border-color: var(--ds-line);
    -webkit-backdrop-filter: blur(var(--t-header-blur));
    backdrop-filter: blur(var(--t-header-blur));
}
:root :is(.knot-announcement) { background: var(--t-bar-bg)!important; }
:root :is(.knot-menu-drawer,.knot-menu-panel,.knot-menu-head,.knot-account-panel,.knot-cart-drawer,.knot-checkout-right,.knot-quick-view,.knot-profile-panel,.knot-campaign-popup,.knot-order-confirmation,.lh-card,dialog) { background: var(--ds-panel)!important; color: var(--ds-text)!important; border-color: var(--ds-line)!important; }
:root :is(.knot-editorial-catalogue,.knot-checkout-left,.knot-onepage-checkout,.knot-checkout-section,.knot-pdp-info,.knot-static-page,.knot-profile-page,.knot-product-meta,.lh-links,.mf-body) { background: var(--ds-canvas)!important; color: var(--ds-text)!important; }
:root :is(.knot-profile-progress,.knot-offer-sticky,.knot-offer-choice-copy,.knot-profile-address,.knot-checkout-membership,.knot-order-instructions) { background: var(--ds-panel)!important; color: var(--ds-text)!important; border-color: var(--ds-line)!important; }
:root .knot-body.knot-order-success { background: var(--ds-canvas); }
:root .knot-footer-bottom { background: var(--t-footer-bg); color: var(--t-text-2); }
:root .knot-sf .knot-storefront-footer { background: var(--t-footer-bg); color: var(--t-footer-text); }
:root .knot-sf .knot-storefront-footer .knot-footer-bottom, :root .knot-sf .knot-footer-bottom a { color: var(--t-footer-text); }
:root .knot-kinetic { --kn-paper: var(--ds-panel); }
:root .mf-visual, :root .mf-home-strip { --mf-bg: var(--ds-panel); --mf-gold: var(--ds-metal); --mf-muted: var(--ds-muted); --mf-line: var(--ds-line); }
:root .knot-quick-view { --quick-panel: var(--ds-panel); --quick-ink: var(--ds-ink); --quick-text: var(--ds-text); --quick-accent: var(--ds-action); --quick-muted: var(--ds-muted); --quick-line: var(--ds-line); }
:root :is(.knot-quick-add,.knot-quick-dialog,.knot-quick-panel) { background: var(--ds-panel); color: var(--ds-text); }
:root .knot-desktop-search.is-open .knot-desktop-search-form { background: var(--ds-panel); border-color: var(--ds-metal); }
:root .knot-profile-progress-track { background: var(--ds-raised); }
:root .knot-profile-progress-track > span { background: var(--ds-armour); }

/* Text */
:root :is(.knot-nav-icon-button,.knot-menu-toggle,[data-desktop-search-toggle],.knot-menu-panel a,.knot-product-name,.knot-price,.knot-pdp-title,.knot-static-page h1,.knot-static-page h2,.lh-card-copy strong,.knot-checkout-section h2,.knot-card-link) { color: var(--ds-text)!important; }
:root :is(.knot-order-reference,.knot-profile-progress-meta,.knot-confirmation-note,.knot-profile-order-main small,.knot-catalogue-tools > p,.knot-catalogue-sold-out,.knot-catalogue-sidebar .knot-pdp-category-nav,.knot-kinetic a,.lh-card-copy > span) { color: var(--ds-muted)!important; }
:root .knot-pdp-category-nav a:hover { color: var(--ds-text)!important; }
:root .knot-pdp-category-nav a:is([aria-current],.is-current) { color: var(--ds-text)!important; background: var(--ds-raised); }
:root :is(.knot-alert-error,.knot-auth-error,.knot-checkout-error,[aria-invalid=true]) { color: var(--ds-error)!important; }
:root :is(.knot-product-code,.knot-order-reference,.knot-price) { font-family: var(--font-mono, "Geist Mono", monospace); }
:root .sf-error a { color: inherit; }

/* Controls */
:root :is(input:not([type=checkbox],[type=radio],[type=color],[type=range],[type=submit]),textarea,select,.knot-checkout-option) { background: var(--ds-panel)!important; color: var(--ds-text)!important; border-color: var(--ds-metal)!important; }
:root .size-btn { background: var(--ds-panel)!important; color: var(--ds-text)!important; border-color: transparent!important; font-weight: 500; }
:root .size-btn:not(:disabled,.size-disabled):hover { background: var(--ds-hover)!important; }
:root :is(.size-btn.active,.size-btn.size-active,.size-btn[aria-pressed=true]) { background: var(--ds-text)!important; color: var(--ds-canvas)!important; border-color: var(--ds-text)!important; }
:root .size-btn.size-disabled { text-decoration: line-through; }
:root :is(.knot-btn:not(.outline),.knot-cart-primary,.knot-pay-now,.sf-action) { background: var(--ds-action)!important; color: var(--ds-ink)!important; border-color: var(--ds-action)!important; }
/* Secondary actions: a quiet surface, never a second bright block. */
:root :is(.knot-btn.outline,.knot-cart-secondary,.knot-product-customize-button,.knot-product-detail .knot-pdp-actions .knot-add-to-cart) { background: var(--ds-panel)!important; color: var(--ds-text)!important; border-color: transparent!important; }
:root :is(.knot-btn.outline,.knot-cart-secondary,.knot-product-customize-button,.knot-product-detail .knot-pdp-actions .knot-add-to-cart):not(:disabled):hover { background: var(--ds-hover)!important; }
/* Steppers (product page, bag): one hairline container, borderless buttons. */
:root :is(.knot-pdp-qty,.knot-qty) { border: 1px solid var(--ds-line); background: var(--ds-panel); }
:root .knot-qty { gap: 0; }
:root :is(.knot-pdp-qty,.knot-qty) :is(button,input,span) { border: 0!important; background: transparent!important; color: var(--ds-text); }
:root .knot-qty :is(button,span) { display: inline-grid; place-items: center; min-width: 36px; height: 36px; }
:root :is(.knot-pdp-qty,.knot-qty) button:not(:disabled):hover { background: var(--ds-hover)!important; }
/* Bag: a hairline list, not a boxed table. */
:root .sf-cart .knot-table-wrap { border: 0; background: none; }
:root .sf-cart .knot-table { border-collapse: collapse; background: none; }
:root .sf-cart .knot-table :is(th,td) { background: none; border: 0; border-bottom: 1px solid var(--ds-line); }
:root .sf-cart .knot-table th { color: var(--ds-muted); font-weight: 500; }
:root .knot-offer-sticky .knot-btn[aria-disabled=true] { background: var(--ds-raised)!important; color: var(--ds-muted)!important; }
:root .knot-order-confirmation-actions a { color: var(--ds-text); border-color: var(--ds-line); }
:root .knot-order-confirmation-actions a:first-child { background: var(--ds-action); color: var(--ds-ink); }
:root .knot-quick-add svg { color: var(--ds-ink); background: var(--ds-action); }

:root .knot-card-link .knot-product-img { filter: none; mix-blend-mode: normal; }

/* Approved storefront surfaces from Doomsday staging. Shared geometry stays with each page. */
html:root {
    --ds-warn: light-dark(#7a5300, #e1bf85);
}
:root body {
    --sf-lean: var(--ds-raised);
    --campaign-asphalt: var(--ds-muted);
    --campaign-rule-soft: var(--ds-line);
    font-family: var(--font-body, Arial), "Nirmala UI", sans-serif;
    --font-display: var(--t-heading-font, "Bricolage Grotesque", sans-serif);
    --sf-radius: var(--t-r-box, 8px);
}
:root :is(.knot-logo, .knot-kinetic-brand img, .sf-error main > a:first-child img) {
    width: clamp(78px, 9vw, 108px);
    height: auto;
    padding: 0;
    background: none;
    box-sizing: content-box;
    object-fit: contain;
    filter: var(--t-logo-filter);
}
:root .knot-sf.sf-cart,
:root .knot-sf.knot-product-detail,
:root .knot-sf.knot-product-detail > .knot-pdp-shell,
:root .knot-sf.knot-product-detail .knot-pdp-right,
:root .knot-sf :is(.knot-home-products, .knot-pdp-category-nav),
:root :is(.link-hub.knot-sf) {
    background: var(--ds-canvas);
    color: var(--ds-text);
}
:root .knot-sf.knot-product-detail .knot-pdp-right {
    --knot-text: var(--ds-text);
    --knot-muted: var(--ds-muted);
    --knot-border: var(--ds-line);
    --knot-border-strong: var(--ds-metal);
    border-color: transparent;
    border-radius: 0;
}
:root .knot-sf.knot-product-detail .knot-pdp-category-nav {
    border-color: transparent;
    border-radius: 0;
}
:root .knot-sf.knot-product-detail .knot-pdp-right :is(.knot-size-toast, .knot-size-chart table) {
    background: var(--ds-panel);
}
:root .knot-sf.knot-product-detail .knot-pdp-right :is(.knot-pdp-qty,.size-btn,.knot-pdp-custom-cta),
:root .knot-sf.knot-product-detail .knot-pdp-actions :is(.knot-add-to-cart,.knot-pdp-customize) {
    border-radius: var(--t-r-ctl, 0);
}
:root .knot-sf.knot-product-detail .knot-pdp-right .knot-pdp-qty { border-color: var(--ds-line); }
:root .knot-sf.knot-product-detail .knot-pdp-gallery-slide { border-radius: 0; }
:root .knot-sf.knot-product-detail .knot-pdp-title { font-size: clamp(22px, 1.9vw, 28px); }
:root .knot-sf.knot-product-detail .knot-pdp-right :is(.knot-pdp-offer,.knot-pdp-price,.knot-pdp-stock) {
    font-family: var(--font-mono, monospace);
}
:root .knot-sf :is(.knot-pdp-offer) { color: var(--ds-text); }
:root .knot-sf .knot-pdp-right .knot-pdp-offer { background: transparent; text-decoration: underline; border-radius: 0; padding-inline: 0; }
:root .knot-sf :is(.knot-card-link, .knot-catalogue-tools, .knot-home-view-all, .knot-product-filters) {
    border-color: var(--ds-line);
}
:root .knot-sf :is(.knot-viewall, .knot-hero-cta.primary, .knot-search button) {
    background: var(--ds-action);
    color: var(--ds-ink);
    border-color: var(--ds-action);
}
:root .knot-sf .knot-hero-cta.secondary { border-color: #a9ada9; color: #e0e3da; /* always over dark hero media, whatever the page theme */ }
:root .knot-sf .knot-checkout-right { border-color: var(--ds-line); }
:root .knot-sf .knot-campaign-popup { border-color: var(--ds-line); background: var(--ds-panel); }
:root .knot-sf :is(.knot-kinetic-panels span, .knot-cart-layers span) { background: var(--ds-raised); }
:root .knot-sf :is(.knot-kinetic-feature, .knot-kinetic-children a, .knot-kinetic-info a) { color: var(--ds-text); }
:root .knot-desktop-search:not(.is-open) [data-desktop-search-toggle] { color: var(--ds-text) !important; }

/* Studio artwork and garment swatches retain their actual colors. */
:root .ks {
    --ks-ink: var(--ds-text);
    --ks-muted: var(--ds-muted);
    --ks-line: var(--ds-line);
    --ks-ctl: var(--ds-line);
    background: var(--ds-canvas);
    color: var(--ds-text);
}
:root .ks :is(.ks-header,.ks-steps,.ks-step,.ks-card,.ks-btn,.ks-preset,.ks-layer,.ks-stagebar,.ks-stagefoot,.ks-footer,.ks-drop,.ks-note,.ks-seg > button,.ks-swatch) {
    background: var(--ds-panel);
    border-color: var(--ds-line);
    color: var(--ds-text);
}
:root .ks :is(.ks-stage,.ks-proof,.ks-num) { background: var(--ds-raised); }
:root .ks :is(.ks-field > span,.ks-step small,.ks-stagefoot,.ks-points) { color: var(--ds-muted); }
:root .ks :is(.ks-drop.over,.ks-layer.sel,.ks-btn:hover:not(:disabled),.ks-step.active) {
    background: var(--ds-raised) !important;
    color: var(--ds-text) !important;
    border-color: var(--ds-metal) !important;
}
:root .ks :is(.ks-primary,.ks-seg .active,.ks-preset.active) {
    background: var(--ds-action) !important;
    color: var(--ds-ink) !important;
    border-color: var(--ds-action) !important;
}
:root .ks .ks-note.warning { color: var(--ds-warn); }
:root .ks :is(.ks-note.error,.ks-danger) { color: var(--ds-error); }
:root .ks .ks-note.success { color: var(--ds-good); }

.doom-scene, .doom-cursor { pointer-events: none !important; }
.doom-scene { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 3; }
.doom-cursor { position: fixed; inset: 0; display: block; width: 100%; height: 100%; z-index: 2147483000; margin: 0; border: 0; }
.doom-countdown {
    position: absolute;
    z-index: 4;
    right: clamp(.75rem, 4vw, 4rem);
    bottom: clamp(.75rem, 3vw, 3rem);
    display: grid;
    gap: .3em;
    padding: .45em .65em;
    background: color-mix(in srgb, var(--ds-deep) 82%, transparent);
    color: var(--ds-text);
    border-top: 1px solid var(--ds-metal);
    font: 400 clamp(.65rem, 1.2vw, 1.15rem)/1.3 var(--font-mono, monospace);
    font-variant-numeric: tabular-nums;
}
.doom-countdown time { color: var(--ds-good); }
@media (prefers-reduced-motion: reduce) {
    .doom-scene, .doom-cursor { display: none; }}
/* Let page content and the footer share the same surface. */
:root body:has(> :is(.knot-storefront-footer,.lh-footer)) {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    padding-bottom: 0;
}
:root body:has(> :is(.knot-storefront-footer,.lh-footer)) > main { flex: 1 0 auto; }
:root body > :is(.knot-storefront-footer,.lh-footer) { flex: 0 0 auto; }
:root body > .knot-storefront-footer,
:root .knot-storefront-footer .knot-footer-bottom {
    margin-top: 0;
    padding-block-start: 0;
    background: var(--t-footer-bg);
    box-shadow: none;
}
:root .knot-storefront-footer .knot-footer-bottom {
    padding-block-start: 16px;
    border-top: 1px solid var(--ds-line);
}
:root :is(.knot-onepage-checkout, .knot-cart-page) { min-height: auto; }
:root .knot-onepage-checkout :is(.knot-checkout-right,.knot-checkout-section) {
    background: var(--ds-canvas) !important;
}
:root .knot-onepage-checkout { border-top: 0; }
:root .knot-payment-card { border-color: var(--ds-line); }
:root .knot-payment-card:has(input:checked) {
    border-color: var(--ds-metal);
    background: var(--ds-panel);
}
/* Corner style reaches every control: with "Smooth (G2)" --t-corner is squircle, a superellipse whose curvature runs
   continuously into the straight edge. Browsers without corner-shape keep ordinary rounded corners. */
:root :is(button, input, select, textarea, summary, a[class*="btn"], a[class*="cta"], a[class*="button"], [class*="-button"], .size-btn, .knot-viewall, .knot-pay-now, .knot-cart-primary, .knot-add-to-cart, .knot-buy-now, .knot-select-size, .ks-btn, .lh-card, .knot-card-link, dialog) { corner-shape: var(--t-corner, round); }
/* Controls with no radius of their own take the theme's button radius (0 in Doomsday). :where() keeps this below every authored rule. */
:where(button, select, textarea, input:not([type=checkbox], [type=radio], [type=range], [type=color], [type=hidden]), a[class*="btn"], a[class*="cta"], a[class*="button"], [class*="-button"]) { border-radius: var(--t-r-ctl, 0); }