/*
Theme Name: SacredThreads
Theme URI: https://sacredthreads.us
Author: SacredThreads
Author URI: https://sacredthreads.us
Description: Dark, editorial, cinematic luxury-streetwear theme for WooCommerce. Built for SacredThreads — "Rare Piece for Rare Minds." Gen-Z, mental-health-aware, expressive streetwear. Backend-safe: presentation layer only.
Version: 1.0.2
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sacredthreads
WC requires at least: 7.0
WC tested up to: 8.9
Tags: woocommerce, dark, editorial, minimal, streetwear, e-commerce
*/

/* ==========================================================================
   SacredThreads — Design System
   Dark · Editorial · Cinematic · Minimal · Luxury streetwear
   ========================================================================== */

:root {
    /* Color palette — blacks, deep charcoals, off-whites */
    --st-black:        #0a0a0a;
    --st-near-black:   #0e0e0e;
    --st-charcoal:     #141414;
    --st-charcoal-2:   #1b1b1b;
    --st-charcoal-3:   #232323;
    --st-off-white:    #ece8e1;   /* warm paper white */
    --st-white:        #f6f4ef;
    --st-muted:        #8d8a83;   /* muted warm grey */
    --st-muted-2:      #6a6862;
    --st-line:         rgba(236, 232, 225, 0.12);
    --st-line-strong:  rgba(236, 232, 225, 0.24);
    --st-accent:       #ece8e1;   /* mono accent — luxury restraint */
    --st-overlay:      rgba(10, 10, 10, 0.55);

    /* Typography */
    --st-font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
    --st-font-display: 'Cormorant Garamond', 'Times New Roman', Georgia, serif;

    /* Spacing & rhythm */
    --st-gutter: clamp(20px, 5vw, 64px);
    --st-section: clamp(64px, 10vw, 160px);
    --st-maxw: 1680px;

    /* Motion */
    --st-ease: cubic-bezier(0.4, 0, 0.1, 1);
    --st-dur: 0.6s;
}

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--st-black);
    color: var(--st-off-white);
    font-family: var(--st-font-sans);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    letter-spacing: 0.01em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--st-dur) var(--st-ease), opacity var(--st-dur) var(--st-ease);
}

button { font-family: inherit; cursor: pointer; }

::selection { background: var(--st-off-white); color: var(--st-black); }

/* ----- Typography scale -------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
    margin: 0;
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: -0.01em;
}

.st-eyebrow {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--st-muted);
}

.st-display {
    font-family: var(--st-font-sans);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    line-height: 0.92;
}

.st-serif {
    font-family: var(--st-font-display);
    font-weight: 300;
    font-style: italic;
    letter-spacing: 0;
}

/* Accessibility: visually hidden but available to screen readers. */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px; width: 1px;
    margin: -1px; padding: 0;
    overflow: hidden;
    position: absolute !important;
    word-wrap: normal !important;
}
.screen-reader-text:focus {
    background: var(--st-off-white);
    color: var(--st-black);
    clip: auto !important;
    clip-path: none;
    display: block;
    height: auto; width: auto;
    padding: 14px 20px;
    left: 6px; top: 6px;
    z-index: 100000;
}

/* ----- Layout helpers ---------------------------------------------------- */
.st-container {
    width: 100%;
    max-width: var(--st-maxw);
    margin-inline: auto;
    padding-inline: var(--st-gutter);
}

.st-section { padding-block: var(--st-section); }

.st-divider { height: 1px; background: var(--st-line); border: 0; margin: 0; }

/* ----- Buttons ----------------------------------------------------------- */
.st-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.7em;
    padding: 1.05em 2.4em;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--st-black);
    background: var(--st-off-white);
    border: 1px solid var(--st-off-white);
    border-radius: 0;
    transition: background var(--st-dur) var(--st-ease), color var(--st-dur) var(--st-ease);
}
.st-btn:hover { background: transparent; color: var(--st-off-white); }

.st-btn--ghost {
    background: transparent;
    color: var(--st-off-white);
    border-color: var(--st-line-strong);
}
.st-btn--ghost:hover { background: var(--st-off-white); color: var(--st-black); border-color: var(--st-off-white); }

.st-link-underline {
    position: relative;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    padding-bottom: 4px;
}
.st-link-underline::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    width: 100%; height: 1px;
    background: currentColor;
    transform: scaleX(1);
    transform-origin: left;
    transition: transform var(--st-dur) var(--st-ease);
}
.st-link-underline:hover::after { transform: scaleX(0); transform-origin: right; }

/* ==========================================================================
   HEADER / NAVIGATION — minimal, clean
   ========================================================================== */
.st-header {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    z-index: 1000;
    transition: background var(--st-dur) var(--st-ease), border-color var(--st-dur) var(--st-ease);
    border-bottom: 1px solid transparent;
}
.st-header.is-solid,
.st-header.is-open {
    background: rgba(10, 10, 10, 0.82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom-color: var(--st-line);
}

/* Top scrim: keeps the nav readable over light hero imagery. Fades out once
   the header goes solid on scroll. */
.st-header::before {
    content: "";
    position: absolute;
    left: 0; right: 0; top: 0;
    height: 160px;
    background: linear-gradient(180deg, rgba(8,8,8,0.72) 0%, rgba(8,8,8,0.42) 40%, rgba(8,8,8,0) 100%);
    pointer-events: none;
    z-index: -1;
    opacity: 1;
    transition: opacity var(--st-dur) var(--st-ease);
}
.st-header.is-solid::before { opacity: 0; }

/* Extra insurance: soft shadow so glyphs hold against bright spots. */
.st-header:not(.is-solid) .st-nav__list a,
.st-header:not(.is-solid) .st-brand,
.st-header:not(.is-solid) .st-header__actions a {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.65), 0 0 24px rgba(0, 0, 0, 0.5);
}

.st-header__inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: clamp(28px, 4vw, 64px);   /* breathing room around the centered title */
    height: 76px;
    padding-inline: clamp(22px, 3vw, 56px);  /* nav/actions hug the corners */
    max-width: none;               /* full-width header: nav hugs the left corner */
    margin-inline: 0;
}

.st-brand {
    grid-column: 2;
    justify-self: center;
    display: inline-flex;
    align-items: center;
    gap: clamp(8px, 1vw, 13px);
    white-space: nowrap;
}
.st-brand__mark {
    height: 30px;
    width: auto;
    display: block;
    flex: none;
}
.st-brand__text {
    font-size: clamp(15px, 2vw, 19px);
    font-weight: 600;
    letter-spacing: 0.42em;
    text-transform: uppercase;
    text-indent: 0.42em; /* optical centering for tracking */
    line-height: 1;
}
/* Custom logos (Site Identity) inherit the mark sizing too. */
.st-brand img { height: 30px; width: auto; }

.st-nav { grid-column: 1; justify-self: start; }
.st-nav__list {
    display: flex;
    flex-wrap: nowrap;            /* never stack onto a 2nd row */
    align-items: center;
    gap: clamp(14px, 1.4vw, 24px);
    list-style: none;
    margin: 0; padding: 0;
}
.st-nav__list a {
    font-size: 12px;
    font-weight: 600;            /* bolder, as requested */
    letter-spacing: 0.16em;
    text-transform: uppercase;
    white-space: nowrap;         /* keep "Expression Series" on one line */
    color: var(--st-off-white);
    opacity: 0.92;
}
.st-nav__list a:hover,
.st-nav__list .current-menu-item > a { opacity: 1; }

.st-header__actions {
    grid-column: 3;
    justify-self: end;
    display: flex;
    align-items: center;
    gap: clamp(14px, 1.8vw, 26px);
}
.st-header__actions a {
    font-size: 12px;             /* match the category nav */
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    opacity: 0.92;
}
.st-header__actions a:hover { opacity: 1; }

.st-cart-count {
    display: inline-block;
    min-width: 16px;
    margin-left: 2px;
    opacity: 0.6;
}

/* Mobile menu toggle */
.st-burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 30px; height: 30px;
    background: none; border: 0; padding: 0;
    position: relative;
    z-index: 1001;   /* stay above the open menu overlay (close button) */
}
/* Keep the wordmark (tap = home) and cart above the open menu too */
.st-brand,
.st-header__actions { position: relative; z-index: 1001; }
.st-burger span {
    display: block;
    width: 22px; height: 1.5px;
    background: var(--st-off-white);
    transition: transform var(--st-dur) var(--st-ease), opacity var(--st-dur) var(--st-ease);
}
.st-header.is-open .st-burger span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.st-header.is-open .st-burger span:nth-child(2) { opacity: 0; }
.st-header.is-open .st-burger span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ==========================================================================
   HERO — full-width dark, large editorial typography
   ========================================================================== */
.st-hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    background: var(--st-near-black);
}
.st-hero__media {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: var(--st-near-black);
    /* Desktop image (--st-hero-d) with a cinematic gradient fallback. */
    background-image: var(--st-hero-d,
        radial-gradient(120% 90% at 50% 0%, rgba(40,40,40,0.55) 0%, rgba(10,10,10,0) 55%),
        linear-gradient(180deg, #161616 0%, #0c0c0c 60%, #060606 100%));
}
.st-hero__media::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(10,10,10,0.35) 0%, rgba(10,10,10,0.1) 40%, rgba(10,10,10,0.9) 100%);
}
.st-hero__inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: var(--st-maxw);
    margin-inline: auto;
    padding: var(--st-gutter);
    padding-bottom: clamp(48px, 8vh, 110px);
}
.st-hero__eyebrow { margin-bottom: 26px; color: var(--st-muted); }
.st-hero__title {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: -0.025em;
    line-height: 0.88;
    font-size: clamp(54px, 13vw, 220px);
    margin: 0;
}
.st-hero__tagline {
    margin-top: 24px;
    max-width: 46ch;
    font-family: var(--st-font-display);
    font-style: italic;
    font-weight: 300;
    font-size: clamp(20px, 3vw, 38px);
    line-height: 1.2;
    color: var(--st-off-white);
}
.st-hero__cta { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 16px; }

.st-hero__scroll {
    position: absolute;
    right: var(--st-gutter);
    bottom: clamp(48px, 8vh, 110px);
    z-index: 2;
    writing-mode: vertical-rl;
    font-size: 10px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--st-muted);
    display: flex;
    align-items: center;
    gap: 14px;
}
.st-hero__scroll::after {
    content: "";
    width: 1px; height: 56px;
    background: linear-gradient(var(--st-muted), transparent);
}

/* Banner-style hero: a designed brand graphic shown whole (contained) and
   centered on dark, with the tagline + CTAs below it. Used when no Hero Title
   is set in the Customizer. */
.st-hero--banner { min-height: 86svh; }
.st-hero--banner .st-hero__media {
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center 38%;
    background-color: var(--st-near-black);
}
.st-hero--banner .st-hero__media::after {
    background: linear-gradient(180deg, rgba(10,10,10,0) 50%, rgba(10,10,10,0.4) 78%, rgba(10,10,10,0.92) 100%);
}
.st-hero--banner .st-hero__inner { text-align: center; }
.st-hero--banner .st-hero__tagline { margin-inline: auto; }
.st-hero--banner .st-hero__cta { justify-content: center; }
@media (max-width: 768px) {
    .st-hero--banner { min-height: 78svh; }
    .st-hero--banner .st-hero__media { background-position: center 34%; }
}

/* ==========================================================================
   CATEGORY STRIP — editorial tiles for the 5 categories
   ========================================================================== */
.st-cats__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: clamp(28px, 4vw, 56px);
}
.st-cats__title { font-size: clamp(28px, 4vw, 56px); font-weight: 600; text-transform: uppercase; letter-spacing: -0.02em; }

.st-cats__grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2px;
}
.st-cat {
    position: relative;
    aspect-ratio: 3 / 4.2;
    overflow: hidden;
    background: var(--st-charcoal);
    display: block;
}
.st-cat__media {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    background-image: linear-gradient(180deg, #1d1d1d, #101010);
    transform: scale(1.001);
    transition: transform 1.1s var(--st-ease), filter var(--st-dur) var(--st-ease);
    filter: saturate(1.06) contrast(1.03);
}
.st-cat:hover .st-cat__media { transform: scale(1.06); filter: saturate(1.12) contrast(1.05) brightness(1.05); }
/* Lighter scrim: keep the image vivid up top, darken only behind the label. */
.st-cat::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(10,10,10,0) 38%, rgba(10,10,10,0.26) 66%, rgba(10,10,10,0.82) 100%);
}
.st-cat__label {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    z-index: 2;
    padding: 22px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.st-cat__name {
    font-size: clamp(12px, 1vw, 14px);
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}
.st-cat__arrow {
    font-size: 13px;
    opacity: 0;
    transform: translateX(-6px);
    transition: opacity var(--st-dur) var(--st-ease), transform var(--st-dur) var(--st-ease);
}
.st-cat:hover .st-cat__arrow { opacity: 1; transform: translateX(0); }

/* ==========================================================================
   SPOTLIGHT — featured drop / collection banner (FOG-style)
   ========================================================================== */
.st-spotlight {
    position: relative;
    min-height: 92svh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--st-near-black);
}
.st-spotlight__media {
    position: absolute; inset: 0; z-index: 0;
    background-size: cover; background-position: center;
    background-image: linear-gradient(140deg, #1a1a1a 0%, #0c0c0c 70%);
}
.st-spotlight__media::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(8,8,8,0.85) 0%, rgba(8,8,8,0.35) 55%, rgba(8,8,8,0.65) 100%);
}
.st-spotlight__inner {
    position: relative; z-index: 2;
    width: 100%;
    max-width: var(--st-maxw);
    margin-inline: auto;
    padding: var(--st-gutter);
}
.st-spotlight__content { max-width: 620px; }
.st-spotlight__eyebrow { margin-bottom: 22px; }
.st-spotlight__title {
    font-size: clamp(42px, 8vw, 130px);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: -0.025em;
    line-height: 0.9;
}
.st-spotlight__text {
    margin-top: 24px;
    max-width: 44ch;
    color: var(--st-muted);
    font-size: clamp(15px, 1.4vw, 18px);
    line-height: 1.7;
}
.st-spotlight__cta { margin-top: 38px; }

/* ==========================================================================
   PRODUCTS GRID — premium cards, large images, minimal text
   ========================================================================== */
.st-products__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: clamp(28px, 4vw, 56px);
}
.st-products__title { font-size: clamp(28px, 4vw, 56px); font-weight: 600; text-transform: uppercase; letter-spacing: -0.02em; }
.st-products__sub { margin-top: 10px; color: var(--st-muted); font-size: 13px; letter-spacing: 0.04em; }

/* WooCommerce product grid */
.woocommerce ul.products,
ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(18px, 2.4vw, 40px) clamp(14px, 1.6vw, 26px);
    margin: 0; padding: 0;
    list-style: none;
}
/* WooCommerce adds clearfix ::before/::after to ul.products for its old float
   layout; in a CSS grid those become empty cells and shove the first product
   into column 2. Remove them. */
.woocommerce ul.products::before,
.woocommerce ul.products::after { content: none; display: none; }
.woocommerce ul.products li.product,
ul.products li.product {
    width: auto !important;
    margin: 0 !important;
    float: none !important;
    text-align: left;
}

.st-card { position: relative; display: block; }
.st-card__media {
    display: block;
    position: relative;
    aspect-ratio: 3 / 4;   /* matches the 3:4 product photos + the 3:4 thumbnail crop */
    overflow: hidden;
    background: var(--st-charcoal);
    margin-bottom: 16px;
}
.st-card__media img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 1.1s var(--st-ease), opacity var(--st-dur) var(--st-ease);
}
/* Second image on hover (if theme outputs .st-card__media--alt) */
.st-card__img--alt {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity var(--st-dur) var(--st-ease);
}
.st-card:hover .st-card__img--alt { opacity: 1; }
.st-card:hover .st-card__media img:first-child { transform: scale(1.04); }
/* WooCommerce's default `li.product a img { height:auto }` is more specific and
   leaves the image short inside the card; this higher-specificity rule wins so
   the photo fills the whole 3:4 box. */
.woocommerce ul.products li.product a.st-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.st-card__badge {
    position: absolute;
    top: 14px; left: 14px;
    z-index: 3;
    padding: 6px 11px;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    background: var(--st-off-white);
    color: var(--st-black);
}
.st-card__badge--soldout { background: transparent; color: var(--st-muted); border: 1px solid var(--st-line-strong); }

.st-card__cat {
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--st-muted-2);
    margin-bottom: 7px;
}
.st-card__title {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.02em;
    line-height: 1.35;
    color: var(--st-off-white);
}
.st-card__price {
    margin-top: 6px;
    font-size: 13px;
    letter-spacing: 0.04em;
    color: var(--st-muted);
}
.st-card__price del { opacity: 0.5; margin-right: 8px; }
.st-card__price ins { text-decoration: none; color: var(--st-off-white); }

/* Quick add-to-cart reveal */
.st-card__add {
    margin-top: 14px;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity var(--st-dur) var(--st-ease), transform var(--st-dur) var(--st-ease);
}
.st-card:hover .st-card__add { opacity: 1; transform: translateY(0); }
.st-card__add a,
.st-card__add .button {
    display: inline-block;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--st-off-white);
    border-bottom: 1px solid var(--st-line-strong);
    padding-bottom: 4px;
    background: none;
}
.st-card__add a:hover { border-color: var(--st-off-white); }

@media (hover: none) {
    .st-card__add { opacity: 1; transform: none; }
    .st-card__img--alt { display: none; }
}

/* ==========================================================================
   BRAND STATEMENT — mental-health-aware editorial block
   ========================================================================== */
.st-statement { background: var(--st-near-black); text-align: center; }
.st-statement__inner { max-width: 1000px; margin-inline: auto; }
.st-statement__eyebrow { margin-bottom: 30px; }
.st-statement__quote {
    font-family: var(--st-font-display);
    font-weight: 300;
    font-style: italic;
    font-size: clamp(24px, 4.2vw, 58px);
    line-height: 1.18;
    letter-spacing: -0.005em;
}
.st-statement__quote em { font-style: normal; }
.st-statement__sign {
    margin-top: 36px;
    font-size: 11px;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: var(--st-muted);
}

/* ==========================================================================
   MARQUEE — moving tagline strip (cinematic touch)
   ========================================================================== */
.st-marquee {
    overflow: hidden;
    border-block: 1px solid var(--st-line);
    padding-block: 26px;
    white-space: nowrap;
}
.st-marquee__track {
    display: inline-flex;
    gap: 60px;
    animation: st-marq 38s linear infinite;
    will-change: transform;
}
.st-marquee span {
    font-size: clamp(20px, 3vw, 40px);
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--st-charcoal-3);
}
.st-marquee span::after { content: "✶"; margin-left: 60px; color: var(--st-muted-2); }
@keyframes st-marq { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .st-marquee__track { animation: none; } }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.st-footer {
    background: var(--st-black);
    border-top: 1px solid var(--st-line);
    padding-top: clamp(56px, 8vw, 110px);
    padding-bottom: 44px;
}
.st-footer__top {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: clamp(32px, 5vw, 80px);
    padding-bottom: clamp(48px, 6vw, 90px);
}
.st-footer__logo {
    height: 64px;
    width: auto;
    display: block;
    margin-bottom: 24px;
    opacity: 0.95;
}
.st-footer__brand {
    font-size: clamp(28px, 4vw, 54px);
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.st-footer__tag {
    margin-top: 16px;
    font-family: var(--st-font-display);
    font-style: italic;
    font-size: clamp(17px, 2vw, 24px);
    color: var(--st-muted);
}
.st-footer__col h4 {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: var(--st-muted);
    margin-bottom: 22px;
}
.st-footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.st-footer__col a {
    font-size: 13px;
    letter-spacing: 0.04em;
    color: var(--st-off-white);
    opacity: 0.82;
}
.st-footer__col a:hover { opacity: 1; }

.st-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding-top: 36px;
    border-top: 1px solid var(--st-line);
}
.st-footer__copy { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--st-muted-2); }
.st-footer__legal { display: flex; gap: 26px; }
.st-footer__legal a { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--st-muted); }
.st-footer__legal a:hover { color: var(--st-off-white); }

/* Newsletter */
.st-newsletter { margin-top: 26px; max-width: 380px; }
.st-newsletter form { display: flex; border-bottom: 1px solid var(--st-line-strong); }
.st-newsletter input {
    flex: 1;
    background: none; border: 0; outline: none;
    color: var(--st-off-white);
    font-family: inherit;
    font-size: 13px;
    letter-spacing: 0.08em;
    padding: 12px 0;
}
.st-newsletter input::placeholder { color: var(--st-muted-2); text-transform: uppercase; letter-spacing: 0.18em; font-size: 11px; }
.st-newsletter button {
    background: none; border: 0;
    color: var(--st-off-white);
    font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
}

/* ==========================================================================
   WOOCOMMERCE — page-level styling (shop, single, cart, checkout)
   ========================================================================== */
.st-main { padding-top: 76px; } /* clear fixed header */

.st-page-head {
    padding-block: clamp(48px, 7vw, 110px) clamp(28px, 4vw, 56px);
    text-align: center;
    border-bottom: 1px solid var(--st-line);
}
.st-page-head__eyebrow { margin-bottom: 18px; }
.st-page-head__title { font-size: clamp(34px, 6vw, 90px); font-weight: 600; text-transform: uppercase; letter-spacing: -0.02em; }
.st-page-head__desc { margin-top: 18px; max-width: 60ch; margin-inline: auto; color: var(--st-muted); }

.woocommerce-products-header { text-align: center; margin-bottom: clamp(32px, 5vw, 64px); }
.woocommerce-products-header__title,
.woocommerce .woocommerce-products-header__title.page-title {
    font-size: clamp(34px, 6vw, 84px) !important;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    line-height: 0.95;
}
.woocommerce-products-header .term-description,
.woocommerce-products-header .woocommerce-archive-description {
    max-width: 60ch;
    margin: 18px auto 0;
    color: var(--st-muted);
}
.woocommerce-breadcrumb {
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--st-muted-2);
    margin-bottom: 24px;
}
.woocommerce-breadcrumb a { color: var(--st-muted); }
.woocommerce-result-count { color: var(--st-muted); font-size: 12px; letter-spacing: 0.06em; }
.woocommerce-ordering select {
    background: var(--st-charcoal);
    color: var(--st-off-white);
    border: 1px solid var(--st-line);
    padding: 10px 14px;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 0;
}
.woocommerce .woocommerce-result-count,
.woocommerce .woocommerce-ordering { margin-bottom: 28px; }

/* WooCommerce buttons → brand buttons */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce .button.alt {
    background: var(--st-off-white) !important;
    color: var(--st-black) !important;
    border: 1px solid var(--st-off-white) !important;
    border-radius: 0 !important;
    font-size: 11px !important;
    font-weight: 500 !important;
    letter-spacing: 0.2em !important;
    text-transform: uppercase !important;
    padding: 1em 2.2em !important;
    transition: background var(--st-dur) var(--st-ease), color var(--st-dur) var(--st-ease) !important;
}
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce .button.alt:hover {
    background: transparent !important;
    color: var(--st-off-white) !important;
}

/* Single product */
.woocommerce div.product .product_title {
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: -0.01em;
}
.woocommerce div.product p.price,
.woocommerce div.product span.price {
    color: var(--st-off-white);
    font-size: 20px;
    letter-spacing: 0.02em;
}
.woocommerce span.onsale {
    background: var(--st-off-white);
    color: var(--st-black);
    border-radius: 0;
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    min-height: auto;
    min-width: auto;
    padding: 6px 12px;
    line-height: 1;
}
.woocommerce .woocommerce-tabs ul.tabs li {
    background: var(--st-charcoal);
    border-color: var(--st-line);
}
.woocommerce .woocommerce-tabs ul.tabs li.active { background: var(--st-charcoal-2); }
.woocommerce table.shop_attributes,
.woocommerce table.shop_table { border-color: var(--st-line); }

/* ----- Single product: add-to-cart / variation form ----- */
.woocommerce div.product form.cart { margin-top: 30px; }

/* Variation rows (Size etc.) — label stacked above a full dark dropdown */
.woocommerce div.product form.cart table.variations {
    margin: 0 0 22px;
    border: 0; background: none;
}
.woocommerce div.product form.cart table.variations tr { display: block; margin-bottom: 16px; }
.woocommerce div.product form.cart table.variations th.label,
.woocommerce div.product form.cart table.variations td.value {
    display: block; width: 100%; padding: 0; text-align: left; background: none;
}
.woocommerce div.product form.cart table.variations th.label {
    font-size: 11px; font-weight: 600; letter-spacing: 0.2em;
    text-transform: uppercase; color: var(--st-muted); margin-bottom: 10px;
}
.woocommerce div.product form.cart .variations select {
    width: 100%; max-width: 360px; display: block;
    background: var(--st-charcoal); color: var(--st-off-white);
    border: 1px solid var(--st-line-strong); border-radius: 0;
    padding: 14px 42px 14px 16px;
    font-family: inherit; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
    cursor: pointer; line-height: 1.2;
    -webkit-appearance: none; -moz-appearance: none; appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'><path d='M1 1l5 5 5-5' stroke='%23ece8e1' stroke-width='1.5'/></svg>");
    background-repeat: no-repeat; background-position: right 16px center;
}
.woocommerce div.product form.cart .reset_variations {
    display: inline-block; margin-top: 10px;
    font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--st-muted);
}

/* Quantity + Add to cart on one tidy row */
.woocommerce div.product form.cart .woocommerce-variation-add-to-cart,
.woocommerce div.product form.cart:not(.variations_form) {
    display: flex; align-items: stretch; flex-wrap: wrap; gap: 12px;
}
.woocommerce div.product form.cart .quantity { margin: 0; display: inline-flex; }
.woocommerce div.product form.cart .quantity input.qty {
    width: 76px; height: auto;
    background: var(--st-charcoal); color: var(--st-off-white);
    border: 1px solid var(--st-line-strong); border-radius: 0;
    padding: 14px 8px; text-align: center; font-size: 14px;
}
.woocommerce div.product form.cart button.single_add_to_cart_button {
    padding: 1.05em 2.8em !important;
    margin: 0 !important;
}
.woocommerce div.product .single_variation_wrap .woocommerce-variation-price { margin-bottom: 16px; }

/* Forms / inputs */
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce .select2-container--default .select2-selection--single,
.woocommerce-page input[type="text"],
.woocommerce-page input[type="email"],
.woocommerce-page input[type="tel"],
.woocommerce-page input[type="password"],
.woocommerce-page textarea,
.woocommerce-page select {
    background: var(--st-charcoal) !important;
    color: var(--st-off-white) !important;
    border: 1px solid var(--st-line) !important;
    border-radius: 0 !important;
}

/* Notices */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    background: var(--st-charcoal);
    border-top: 2px solid var(--st-off-white);
    color: var(--st-off-white);
}
.woocommerce-message::before,
.woocommerce-info::before { color: var(--st-off-white); }

/* Block-based cart/checkout: keep the "New in store" recommendation images a
   consistent 3:4 so the cards line up. */
.wp-block-woocommerce-cart .wc-block-components-product-image img,
.wp-block-woocommerce-cart .wp-block-woocommerce-product-image img,
.wp-block-woocommerce-cart .wc-block-grid__product-image img {
    aspect-ratio: 3 / 4;
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

/* ==========================================================================
   WOOCOMMERCE BLOCKS — Cart & Checkout (dark theme)
   ========================================================================== */
/* Give block cart/checkout room (page.php otherwise caps content at 760px). */
body.woocommerce-cart .st-entry,
body.woocommerce-checkout .st-entry { max-width: 1240px !important; }

.wp-block-woocommerce-cart,
.wp-block-woocommerce-checkout { color: var(--st-off-white); }

/* Titles / step headings */
.wc-block-components-title,
.wc-block-checkout__main-title,
.wc-block-cart__totals-title,
.wc-block-components-checkout-step__title { color: var(--st-off-white); }
.wc-block-components-checkout-step__heading-content,
.wc-block-components-checkout-step__description { color: var(--st-muted); }

/* Inputs / selects / textareas */
.wc-block-components-text-input input,
.wc-block-components-text-input textarea,
.wc-block-components-select select,
.wc-block-components-address-form input,
.wc-block-components-address-form select,
.wc-block-components-combobox input {
    background: var(--st-charcoal) !important;
    color: var(--st-off-white) !important;
    border: 1px solid var(--st-line) !important;
    border-radius: 0 !important;
}
.wc-block-components-text-input label,
.wc-block-components-combobox label { color: var(--st-muted) !important; }
.wc-block-components-text-input.is-active label { color: var(--st-off-white) !important; }

/* Buttons → brand */
.wc-block-components-button:not(.is-link) {
    background: var(--st-off-white) !important;
    color: var(--st-black) !important;
    border: 1px solid var(--st-off-white) !important;
    border-radius: 0 !important;
    font-size: 12px !important; font-weight: 600 !important;
    letter-spacing: 0.18em !important; text-transform: uppercase !important;
    padding: 1.05em 2.4em !important;
}
.wc-block-components-button:not(.is-link):hover {
    background: transparent !important; color: var(--st-off-white) !important;
}
.wc-block-components-button.is-link { color: var(--st-muted) !important; }
.wc-block-components-button.is-link:hover { color: var(--st-off-white) !important; }

/* Cart item rows + text */
.wc-block-cart-items__row { border-color: var(--st-line) !important; }
.wc-block-cart-item__product-name,
.wc-block-components-product-name { color: var(--st-off-white) !important; }
.wc-block-cart-item__product-metadata,
.wc-block-components-product-metadata { color: var(--st-muted) !important; }

/* Prices / totals */
.wc-block-components-formatted-money-amount,
.wc-block-components-product-price,
.wc-block-components-totals-item__value { color: var(--st-off-white) !important; }
.wc-block-components-totals-item__label { color: var(--st-muted) !important; }
.wc-block-components-totals-wrapper { border-color: var(--st-line) !important; }
.wc-block-components-totals-footer-item { border-top: 1px solid var(--st-line) !important; }

/* Order-summary / sidebar panel */
.wc-block-cart__sidebar .wc-block-components-totals-wrapper,
.wc-block-checkout__sidebar { background: var(--st-charcoal); }
.wc-block-components-panel__button { color: var(--st-off-white) !important; }

/* Quantity selector */
.wc-block-components-quantity-selector {
    border: 1px solid var(--st-line-strong) !important;
    border-radius: 0 !important; background: var(--st-charcoal);
}
.wc-block-components-quantity-selector__input,
.wc-block-components-quantity-selector__button {
    background: transparent !important; color: var(--st-off-white) !important;
}

/* Shipping / payment radio options */
.wc-block-components-radio-control__option { border-color: var(--st-line) !important; }
.wc-block-components-radio-control--highlight-checked .wc-block-components-radio-control__option--checked {
    border-color: var(--st-off-white) !important;
}

/* Links + notices */
.wp-block-woocommerce-cart a,
.wp-block-woocommerce-checkout a { color: var(--st-off-white); }
.wc-block-components-notice-banner {
    background: var(--st-charcoal) !important;
    color: var(--st-off-white) !important;
    border-radius: 0 !important;
}

/* ==========================================================================
   RESPONSIVE — mobile-first refinements
   ========================================================================== */
@media (max-width: 1200px) {
    /* Grid density */
    .woocommerce ul.products,
    ul.products { grid-template-columns: repeat(3, 1fr); }
    .st-cats__grid { grid-template-columns: repeat(3, 1fr); }
    .st-cats__grid .st-cat:nth-child(4),
    .st-cats__grid .st-cat:nth-child(5) { aspect-ratio: 3 / 3.4; }

    /* Collapse the primary nav to a hamburger before the 5-item bar crams */
    .st-burger { display: flex; grid-column: 1; justify-self: start; }
    .st-header__inner { height: 64px; }
    .st-brand__text { font-size: 15px; letter-spacing: 0.34em; text-indent: 0.34em; }
    .st-brand__mark { height: 24px; }
    .st-brand img { height: 24px; }
    .st-nav {
        position: fixed;
        top: 0; left: 0;
        width: 100%;
        height: 100svh;
        background: rgba(8,8,8,0.97);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        pointer-events: none;
        transition: opacity var(--st-dur) var(--st-ease);
        z-index: 990;
    }
    .st-header.is-open .st-nav { opacity: 1; pointer-events: auto; }
    .st-nav__list { flex-direction: column; flex-wrap: nowrap; gap: 30px; }
    .st-nav__list a { font-size: 16px; letter-spacing: 0.16em; opacity: 1; }
    /* Keep only the cart in the compact bar (Shop/Account live in the menu) */
    .st-header__actions a:not(.st-cart-link) { display: none; }
    .st-main { padding-top: 64px; }
}

@media (max-width: 900px) {
    .st-footer__top { grid-template-columns: 1fr 1fr; }
    .st-footer__brand-col { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
    .woocommerce ul.products,
    ul.products { grid-template-columns: repeat(2, 1fr); gap: 14px 12px; }

    /* Clean, compact 2-up category tiles with a consistent ratio (overrides the
       desktop per-tile aspect tweaks). 5th tile spans full width. */
    .st-cats__grid { grid-template-columns: repeat(2, 1fr); gap: 2px; }
    .st-cats__grid .st-cat,
    .st-cats__grid .st-cat:nth-child(4),
    .st-cats__grid .st-cat:nth-child(5) { aspect-ratio: 4 / 5; }
    .st-cats__grid .st-cat:nth-child(5) { grid-column: 1 / -1; aspect-ratio: 16 / 10; }

    /* On phones, use the mobile hero image (--st-hero-m) full-bleed; fall back to
       the desktop image if no mobile crop is set. */
    .st-hero { min-height: 90svh; }
    .st-hero__media {
        background-image: var(--st-hero-m, var(--st-hero-d,
            radial-gradient(120% 90% at 50% 0%, rgba(40,40,40,0.55) 0%, rgba(10,10,10,0) 55%),
            linear-gradient(180deg, #161616 0%, #0c0c0c 60%, #060606 100%)));
        background-size: cover;
        background-position: center;
    }
    .st-hero__media::after { background: linear-gradient(180deg, rgba(10,10,10,0.2) 0%, rgba(10,10,10,0.1) 45%, rgba(10,10,10,0.92) 100%); }
    .st-hero__scroll { display: none; }

    .st-footer__top { grid-template-columns: 1fr; gap: 40px; }
    .st-footer__bottom { flex-direction: column; align-items: flex-start; }
    .st-footer__legal { flex-wrap: wrap; gap: 16px; }

    .st-card__add { opacity: 1; transform: none; }
}

@media (max-width: 460px) {
    .woocommerce ul.products,
    ul.products { grid-template-columns: repeat(2, 1fr); }
    /* keep the 2-up category tiles from the 768 rules — no 1-column blow-up */
    .st-hero__title { font-size: clamp(44px, 17vw, 90px); }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    * { scroll-behavior: auto !important; }
    .st-cat__media, .st-card__media img { transition: none; }
}
