/* ============================================
   STONICX Experience — Frontend Styles
   Awwwards-Level Visual Overhaul
   ============================================ */

/* ─── CSS Custom Properties ─── */
:root {
    --stx-bg: #FAFAFA;
    --stx-bg-warm: #F5F2EE;
    --stx-text: #1A1A1A;
    --stx-text-muted: #666666;
    --stx-accent: #C9A96E;
    --stx-accent-light: #E8D5A3;
    --stx-white: #FFFFFF;
    --stx-black: #0A0A0A;
    --stx-border: rgba(26, 26, 26, 0.08);
    --stx-serif: "Cormorant Garamond", "Times New Roman", serif;
    --stx-sans: "Inter", "Helvetica Neue", Arial, sans-serif;
    --stx-ease: cubic-bezier(0.16, 1, 0.3, 1);
    /* Cursor (overridden by inline style from PHP) */
    --stx-cursor-color: #C9A96E;
    --stx-cursor-size: 40px;
    --stx-cursor-dot-size: 6px;
    --stx-cursor-blend: difference;
}

/* ─── Global White Theme Override ─── */
body {
    background-color: var(--stx-bg) !important;
    font-family: var(--stx-sans) !important;
    color: var(--stx-text);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ─── Typography Elevation ─── */
h1,
h2,
h3,
h4,
h5,
h6,
.woocommerce-loop-product__title,
.entry-title {
    font-family: var(--stx-serif) !important;
    font-weight: 400 !important;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

h1 {
    font-size: clamp(2.5rem, 6vw, 5rem);
}

h2 {
    font-size: clamp(2rem, 4.5vw, 3.5rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
}

p,
.woocommerce-Price-amount {
    font-family: var(--stx-sans) !important;
    font-weight: 400;
    line-height: 1.6;
    letter-spacing: 0.01em;
}

.woocommerce-Price-amount {
    font-family: var(--stx-serif) !important;
    font-weight: 500 !important;
    letter-spacing: 0.02em;
}

/* ─── WooCommerce Product Styling ─── */
.products.columns-3 li.product,
.products.columns-4 li.product,
ul.products li.product {
    transition: transform 0.6s var(--stx-ease);
}

ul.products li.product .woocommerce-loop-product__title {
    font-family: var(--stx-serif) !important;
    font-size: 1rem;
    font-weight: 500 !important;
    letter-spacing: 0.01em;
    color: var(--stx-text);
    margin-top: 12px;
}

ul.products li.product .price {
    font-family: var(--stx-serif) !important;
    font-weight: 500 !important;
    font-size: 0.95rem;
    color: var(--stx-text);
    letter-spacing: 0.02em;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product .price {
    font-family: var(--stx-serif) !important;
}

.woocommerce div.product .product_title,
.woocommerce div.product p.price,
.woocommerce div.product span.price,
.woocommerce div.product p.price .amount,
.woocommerce div.product span.price .amount,
.woocommerce-Price-amount {
    font-family: var(--stx-serif) !important;
    font-weight: 500 !important;
}

.woocommerce-product-details__short-description,
.woocommerce-product-details__short-description p,
.woocommerce-product-details__short-description * {
    font-family: var(--stx-sans) !important;
}

/* Product image container */
ul.products li.product a img,
.woocommerce ul.products li.product a img {
    transition: transform 0.8s var(--stx-ease), filter 0.6s ease;
    will-change: transform;
}

/* ─── Site-Wide Custom Cursor ─── */
.stx-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    z-index: 99999;
    pointer-events: none;
    mix-blend-mode: var(--stx-cursor-blend);
}

.stx-cursor__dot {
    position: absolute;
    width: var(--stx-cursor-dot-size);
    height: var(--stx-cursor-dot-size);
    background: var(--stx-cursor-color);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s var(--stx-ease),
        height 0.3s var(--stx-ease),
        background 0.3s ease,
        opacity 0.3s ease;
}

.stx-cursor__scissors {
    position: absolute;
    width: var(--stx-cursor-size);
    height: var(--stx-cursor-size);
    color: var(--stx-cursor-color);
    transform: translate(-50%, -50%) rotate(-45deg);
    transition: transform 0.4s var(--stx-ease),
        width 0.4s var(--stx-ease),
        height 0.4s var(--stx-ease),
        color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 0 1px rgba(255, 255, 255, 0.4));
    /* Glow for dark backgrounds */
}

.stx-cursor__scissors svg {
    width: 100%;
    height: 100%;
    display: block;
    overflow: visible;
}

/* Blade visibility on different backgrounds */
.scissors-blade-right,
.scissors-blade-left {
    transition: d 0.2s ease;
}

.stx-cursor.is-hovering .stx-cursor__scissors {
    transform: translate(-50%, -50%) rotate(0deg) scale(1.1);
}

.stx-cursor.is-product .stx-cursor__scissors {
    opacity: 0.2;
    transform: translate(-50%, -50%) rotate(-90deg) scale(0.8);
}

.stx-cursor__text {
    position: absolute;
    transform: translate(-50%, -50%);
    font-family: var(--stx-sans);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--stx-cursor-color);
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Cursor: hovering any interactive element */
.stx-cursor.is-hovering .stx-cursor__scissors {
    color: var(--stx-accent, #1A1A1A);
}

.stx-cursor.is-hovering .stx-cursor__dot {
    width: calc(var(--stx-cursor-dot-size) * 0.7);
    height: calc(var(--stx-cursor-dot-size) * 0.7);
}

/* Cursor: product image hover — shows VIEW label */
.stx-cursor.is-product .stx-cursor__scissors {
    opacity: 0.1;
}

.stx-cursor.is-product .stx-cursor__text {
    opacity: 1;
}

.stx-cursor.is-product .stx-cursor__dot {
    opacity: 0;
}

/* Hide default cursor site-wide when custom cursor is active */
body.stx-custom-cursor,
body.stx-custom-cursor a,
body.stx-custom-cursor button,
body.stx-custom-cursor input,
body.stx-custom-cursor select,
body.stx-custom-cursor textarea,
body.stx-custom-cursor * {
    cursor: none !important;
}

/* ─── Scroll Reveal Initial States ─── */
.stx-reveal-up,
.stx-reveal-left,
.stx-reveal-right,
.stx-reveal-scale {
    opacity: 0;
    visibility: hidden;
}

.stx-reveal-up {
    transform: translateY(60px);
}

.stx-reveal-left {
    transform: translateX(-60px);
}

.stx-reveal-right {
    transform: translateX(60px);
}

.stx-reveal-scale {
    transform: scale(0.85);
}

/* Clip reveal */
.stx-reveal-clip {
    clip-path: inset(0 100% 0 0);
}

.stx-reveal-clip.is-revealed {
    clip-path: inset(0 0% 0 0);
}

/* ─── Split Text ─── */
.stx-split-chars,
.stx-split-words,
.stx-split-lines {
    overflow: hidden;
}

.stx-split-lines .line {
    overflow: hidden;
}

/* ─── Parallax ─── */
.stx-parallax-slow,
.stx-parallax-fast,
.stx-parallax-reverse {
    will-change: transform;
}

/* ─── Film Grain Canvas ─── */
.stx-grain-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9998;
    pointer-events: none;
    opacity: var(--stx-grain-opacity);
    mix-blend-mode: multiply;
}

/* ─── Image Enhancement: 3D Tilt ─── */
.stx-tilt,
ul.products li.product>a {
    transition: transform 0.4s var(--stx-ease);
}

/* ─── Image Enhancement: Shine Gloss ─── */
.stx-shine,
ul.products li.product a {
    position: relative;
    overflow: hidden;
}

/* ─── Image Enhancement: Zoom + Pan ─── */
.stx-zoom,
ul.products li.product a {
    overflow: hidden;
}

.stx-zoom img {
    transition: transform 0.4s var(--stx-ease);
    will-change: transform;
}

.stx-touch-active img,
ul.products li.product.stx-touch-active img {
    transform: scale(1.06);
}

/* ─── Scroll Storytelling: Pin Hero ─── */
.stx-pin-hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
}

.stx-pin-hero__layer {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    will-change: transform, opacity;
}

.stx-pin-hero__layer:first-child {
    position: relative;
}

/* ─── Scroll Storytelling: Velocity Skew ─── */
.stx-velocity-skew {
    will-change: transform;
    transform-origin: center center;
}

/* ─── Scroll Storytelling: Image Reveal Mask ─── */
.stx-img-reveal {
    overflow: hidden;
    will-change: clip-path;
}

.stx-img-reveal img {
    display: block;
    width: 100%;
    will-change: transform;
}

/* ─── Scroll Storytelling: Marquee ─── */
.stx-marquee {
    overflow: hidden;
    white-space: nowrap;
    width: 100%;
}

.stx-marquee__inner {
    display: inline-block;
    white-space: nowrap;
    font-family: var(--stx-serif);
    font-size: clamp(2rem, 5vw, 4rem);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 1rem 2rem;
    color: #1A1A1A;
}

/* ─── Scroll Progress Bar ─── */
#stx-scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    z-index: 99999;
    pointer-events: none;
}

/* ═══════════════════════════════════════════════ */
/* Shop the Look — Lookbook Hotspots              */
/* ═══════════════════════════════════════════════ */

.stx-lookbook {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 2rem;
    align-items: start;
    padding: 2rem 4%;
    max-width: 1400px;
    margin: 0 auto;
}

/* Left column: product cards */
.stx-lookbook__products {
    display: block;
}

.stx-lookbook__products ul.products {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 1rem !important;
    list-style: none;
    padding: 0;
    margin: 0;
}

.stx-lookbook__products .woocommerce-loop-product__title {
    font-size: 15px !important;
    font-weight: 600;
    margin: 8px 0 4px !important;
    line-height: 1.3;
}

.stx-lookbook__products .price {
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #1a1a1a !important;
    margin-top: 2px !important;
}

.stx-lookbook__products .product,
.stx-lookbook__product-card {
    transition: transform 0.3s var(--stx-ease), box-shadow 0.3s var(--stx-ease);
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
}

.stx-lookbook__products .is-highlighted {
    z-index: 2;
}

/* Right column: editorial image + hotspots */
.stx-lookbook__image {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    height: 65vh;
    max-height: 65vh;
    min-height: 0;
}

.stx-lookbook__image>img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}

/* Lookbook section title */
.stx-lookbook__title {
    font-size: clamp(1.2rem, 2vw, 1.6rem);
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

/* Fix cursor visibility on lookbook (light background makes blend-mode invisible) */
.stx-lookbook:hover~#stx-cursor,
.stx-lookbook .stx-lookbook__image:hover~#stx-cursor {
    mix-blend-mode: normal !important;
}

/* Hotspot: the (+) marker - ALWAYS VISIBLE */
.stx-lookbook__hotspot {
    position: absolute;
    width: 38px;
    height: 38px;
    transform: translate(-50%, -50%);
    cursor: pointer;
    z-index: 1000;
    pointer-events: auto;
}

/* Force plus signs to always be visible */
.stx-lookbook__hotspot .stx-lookbook__plus {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.stx-lookbook__plus {
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    color: #111;
    font-size: 20px;
    font-weight: 300;
    line-height: 1;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s var(--stx-ease), background 0.3s;
    position: relative;
    z-index: 1001;
}

/* Animated ring pulse */
.stx-lookbook__hotspot::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    animation: stx-hotspot-pulse 2s ease-in-out infinite;
}

@keyframes stx-hotspot-pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.6;
    }

    50% {
        transform: scale(1.4);
        opacity: 0;
    }
}

/* Hover state */
.stx-lookbook__hotspot:hover .stx-lookbook__plus,
.stx-lookbook__hotspot.is-active .stx-lookbook__plus {
    transform: scale(1.15);
    background: #fff;
}

.stx-lookbook__hotspot:hover::before,
.stx-lookbook__hotspot.is-active::before {
    animation: none;
    opacity: 0;
}

/* Tooltip */
.stx-lookbook__tooltip {
    position: absolute;
    left: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 6px;
    padding: 10px 16px;
    white-space: nowrap;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    transform: translateY(-50%) translateX(-8px);
    z-index: 10;
}

.stx-lookbook__hotspot:hover .stx-lookbook__tooltip,
.stx-lookbook__hotspot.is-active .stx-lookbook__tooltip {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
    pointer-events: auto;
}

/* Tooltip arrow */
.stx-lookbook__tooltip::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.95);
}

.stx-lookbook__tooltip-name {
    display: block;
    font-family: var(--stx-serif);
    font-size: 14px;
    font-weight: 600;
    color: #111;
    margin-bottom: 2px;
}

.stx-lookbook__tooltip-price {
    display: block;
    font-family: var(--stx-sans);
    font-size: 13px;
    color: #666;
}

/* Tooltip on right edge: flip to left */
.stx-lookbook__hotspot[data-tooltip-pos="left"] .stx-lookbook__tooltip {
    left: auto;
    right: calc(100% + 12px);
    transform: translateY(-50%) translateX(8px);
}

.stx-lookbook__hotspot[data-tooltip-pos="left"]:hover .stx-lookbook__tooltip,
.stx-lookbook__hotspot[data-tooltip-pos="left"].is-active .stx-lookbook__tooltip {
    transform: translateY(-50%) translateX(0);
}

.stx-lookbook__hotspot[data-tooltip-pos="left"] .stx-lookbook__tooltip::before {
    left: auto;
    right: -6px;
}

/* Dark variant */
.stx-lookbook--dark {
    background: #111;
    padding: 3rem;
    border-radius: 8px;
}

.stx-lookbook--dark .stx-lookbook__products {
    color: #fff;
}

/* Mobile: stack */
@media (max-width: 768px) {
    .stx-lookbook {
        grid-template-columns: 1fr;
    }

    .stx-lookbook__image {
        order: -1;
        max-height: 45vh;
    }
}


/* ═══════════════════════════════════════════════ */
/* Featured Product (.stx-fp)                     */
/* ═══════════════════════════════════════════════ */

.stx-fp {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    background: #111;
    color: #fff;
    padding: 4rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

/* Gallery column */
.stx-fp__gallery {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stx-fp__main-image {
    overflow: hidden;
    border-radius: 4px;
    height: auto;
    max-height: none;
}

.stx-fp__main-image img {
    width: 100%;
    height: auto;
    max-height: none;
    display: block;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

.stx-fp__thumbs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
}

.stx-fp__thumb {
    width: 80px;
    height: 80px;
    border-radius: 3px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.5;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.stx-fp__thumb.is-active,
.stx-fp__thumb:hover {
    opacity: 1;
    border-color: var(--stx-accent, #C9A96E);
}

.stx-fp__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Info column */
.stx-fp__info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem 0;
}

.stx-fp__name {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 600;
    line-height: 1.2;
    margin: 0 0 12px;
    color: #fff;
}

.stx-fp__price {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    color: var(--stx-accent, #C9A96E);
    margin: 0 0 20px;
    font-weight: 500;
}

.stx-fp__desc {
    font-size: 15px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 28px;
}

.stx-fp__desc p {
    margin: 0 0 8px;
    color: inherit;
}

/* Sizes */
.stx-fp__sizes {
    margin-bottom: 28px;
}

.stx-fp__sizes-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 10px;
}

.stx-fp__sizes-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.stx-fp__size {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 12px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 3px;
    font-size: 13px;
    font-weight: 500;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s;
}

.stx-fp__size:hover,
.stx-fp__size.is-active {
    background: var(--stx-accent, #C9A96E);
    border-color: var(--stx-accent, #C9A96E);
    color: #111;
}

/* Quantity row */
.stx-fp__qty-row {
    margin-bottom: 20px;
}

.stx-fp__qty-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 10px;
}

.stx-fp__qty {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 3px;
    margin-right: 12px;
    vertical-align: middle;
}

.stx-fp__qty-btn {
    width: 40px;
    height: 44px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.stx-fp__qty-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.stx-fp__qty-input {
    width: 44px;
    height: 44px;
    text-align: center;
    background: transparent;
    border: none;
    border-left: 1px solid rgba(255, 255, 255, 0.25);
    border-right: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    font-size: 15px;
    appearance: textfield;
}

.stx-fp__qty-input::-webkit-inner-spin-button,
.stx-fp__qty-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.stx-fp__add-to-cart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--stx-accent, #C9A96E);
    color: #111;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 12px 32px;
    border-radius: 3px;
    transition: all 0.3s var(--stx-ease);
    vertical-align: middle;
}

.stx-fp__add-to-cart:hover {
    background: #fff;
    color: #111;
}

/* CTA Button */
.stx-fp__actions {
    margin-top: 8px;
}

.stx-fp__cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    color: var(--stx-accent, #C9A96E);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 8px 0;
    transition: all 0.3s var(--stx-ease);
    border-bottom: 1px solid var(--stx-accent, #C9A96E);
}

.stx-fp__cta:hover {
    color: #fff;
    border-color: #fff;
}

/* Mobile: stack */
@media (max-width: 768px) {
    .stx-fp {
        grid-template-columns: 1fr;
        padding: 2rem 4%;
    }

    .stx-fp__info {
        padding: 0;
    }
}

/* ─── Button & Link Elevation ─── */
.woocommerce a.button,
.woocommerce button.button {
    position: relative;
    overflow: hidden;
    transition: all 0.4s var(--stx-ease);
}

.woocommerce a.button::after,
.woocommerce button.button::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--stx-accent);
    transform: translateY(100%);
    transition: transform 0.4s var(--stx-ease);
    z-index: -1;
}

.woocommerce a.button:hover::after,
.woocommerce button.button:hover::after {
    transform: translateY(0);
}

/* ═══════════════════════════════════════════════ */
/* Premium Frosted Glass Navigation               */
/* ═══════════════════════════════════════════════ */

/* ─── Base: let theme handle default, add transitions ─── */
#masthead.site-header {
    border-bottom: none !important;
    transition:
        background-color 0.5s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── Frosted Glass: scrolled state ─── */
#masthead.site-header.stx-nav-frosted {
    background-color: rgba(255, 255, 255, 0.72) !important;
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

/* Ultra-thin separator line on scroll */
#masthead.site-header.stx-nav-frosted::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 5%;
    right: 5%;
    height: 1px;
    background: linear-gradient(90deg,
            transparent,
            rgba(0, 0, 0, 0.08) 20%,
            rgba(0, 0, 0, 0.08) 80%,
            transparent);
}

/* ─── Hide on scroll down, show on scroll up ─── */
#masthead.site-header.stx-nav-hidden {
    transform: translateY(-110%) !important;
}

#masthead.site-header.stx-nav-visible {
    transform: translateY(0) !important;
}

/* ─── Menu Links: editorial spacing + underline ─── */
#masthead .nav-menu>.menu-item>a {
    font-size: 12px !important;
    font-weight: 500 !important;
    letter-spacing: 0.14em !important;
    text-transform: uppercase;
    color: #1a1a1a !important;
    position: relative;
    padding-bottom: 4px;
    transition: color 0.3s ease;
}

/* Animated underline on hover */
#masthead .nav-menu>.menu-item>a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1.5px;
    background: currentColor;
    transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

#masthead .nav-menu>.menu-item>a:hover::after,
#masthead .nav-menu>.menu-item.current-menu-item>a::after {
    width: 100%;
}

#masthead .nav-menu>.menu-item>a:hover {
    color: #1a1a1a !important;
}

/* Menu item spacing */
#masthead .nav-menu>.menu-item {
    margin-right: 2rem;
}

/* ─── Logo: refined typography ─── */
#masthead .site-branding .logo-text,
#masthead .site-branding .logo {
    font-size: 24px !important;
    font-weight: 500 !important;
    letter-spacing: 0.2em !important;
    text-transform: uppercase;
    transition: opacity 0.3s ease;
}

#masthead .site-branding .logo:hover {
    opacity: 0.7;
}

/* ─── Header Icons: refined hover ─── */
#masthead .header-icon .menu-item>a {
    transition: color 0.3s ease, transform 0.3s ease;
}

#masthead .header-icon .menu-item>a:hover {
    color: #1a1a1a !important;
    transform: translateY(-1px);
}

#masthead .header-icon .menu-item>a svg {
    transition: transform 0.3s ease;
}

#masthead .header-icon .menu-item>a:hover svg {
    transform: scale(1.1);
}

/* Cart count badge */
#masthead .header-icon .cart-counter,
#masthead .header-icon .count {
    background: #1a1a1a !important;
    color: #fff !important;
    font-size: 10px;
    font-weight: 600;
    min-width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    border-radius: 50%;
}

/* ─── Dark section override (nav over dark bg) ─── */
body.header-text-dark #masthead:not(.stx-nav-frosted) .nav-menu>.menu-item>a {
    color: #1a1a1a;
}

/* When over the frosted glass, always dark text */
#masthead.stx-nav-frosted .nav-menu>.menu-item>a {
    color: #1a1a1a !important;
}

#masthead.stx-nav-frosted .site-branding .logo-text,
#masthead.stx-nav-frosted .site-branding .logo {
    color: #1a1a1a !important;
}

#masthead.stx-nav-frosted .header-icon .menu-item>a {
    color: #1a1a1a !important;
}

/* ─── Mobile menu enhancements ─── */
.mobile-menu.side-menu {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.92) !important;
}

.mobile-menu .mobile-nav .menu>.menu-item>a {
    font-size: 13px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 500;
}

/* ─── Admin bar offset fix ─── */
body.admin-bar #masthead.site-header.stx-nav-hidden {
    transform: translateY(calc(-110% - 32px)) !important;
}

/* ─── Page Transition Overlay ─── */
.stx-transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100000;
    pointer-events: none;
    display: flex;
}

.stx-transition-curtain {
    width: 50%;
    height: 100%;
    background: var(--stx-black);
    transform: scaleY(0);
    transform-origin: bottom;
    will-change: transform;
}

.stx-transition-curtain:nth-child(2) {
    transform-origin: top;
}

/* ─── Stitch Transition Overlay ─── */
.stx-stitch-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    pointer-events: none;
    overflow: hidden;
    opacity: 0;
    /* JS will toggle */
}

.stx-stitch-overlay svg {
    width: 100%;
    height: 100%;
}

.stx-stitch-path {
    stroke: #fff;
    stroke-width: 1.5;
    stroke-dasharray: 8, 8;
    filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.4));
}

/* ─── Magnetic Element Wrappers ─── */
[data-stx-magnetic]:not(.stx-lookbook__hotspot) {
    display: inline-block;
    position: relative;
    will-change: transform;
}

.stx-magnetic-inner {
    display: block;
    width: 100%;
    height: 100%;
    will-change: transform;
    pointer-events: none;
    /* Let parent handle hover */
}

/* Section transitions utility */
.stx-transition-dissolve,
.stx-transition-wipe,
.stx-transition-scale {
    position: relative;
}

/* ─── Horizontal Scroll Section ─── */
.stx-horizontal-scroll {
    overflow: hidden;
}

.stx-horizontal-scroll__track {
    display: flex;
    flex-wrap: nowrap;
    will-change: transform;
}

/* ─── Stagger Grid ─── */
.stx-stagger-grid>* {
    opacity: 0;
    transform: translateY(40px);
}

/* ─── WooCommerce Hover Overlay ─── */
ul.products li.product {
    position: relative;
}

/* ─── Responsive Adjustments ─── */
@media (max-width: 768px) {
    .stx-marquee {
        white-space: nowrap !important;
        overflow: hidden;
        display: flex;
        align-items: center;
        line-height: 1 !important;
        height: 2.4em;
    }

    .stx-marquee__inner,
    .stx-marquee__inner * {
        white-space: nowrap !important;
    }

    .stx-marquee__inner {
        display: inline-flex !important;
        align-items: center;
        flex-wrap: nowrap !important;
        font-size: clamp(1.2rem, 6vw, 2rem);
        line-height: 1 !important;
        width: max-content;
    }

    .stx-marquee__inner span,
    .stx-marquee__inner div {
        display: inline !important;
    }

    .stx-marquee__inner br {
        display: none !important;
    }

    .stx-reveal-up {
        transform: translateY(30px);
    }

    .stx-reveal-left {
        transform: translateX(-30px);
    }

    .stx-reveal-right {
        transform: translateX(30px);
    }
}

/* ─── Loading State ─── */
body.stx-loading {
    overflow: hidden;
}

body.stx-loading .stx-transition-curtain {
    transform: scaleY(1);
}

/* ─── Smooth scroll body ─── */
html.lenis,
html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}
