/* =================================================================
   De una — Storefront Midnight
   Estética "Noir Showroom": fondo carbón profundo, tipografía
   geométrica Space Grotesk y micro-interacciones luminosas tintadas
   con el color principal de la tienda. Todos los FONDOS clave
   (botones, badges, dots/bullets activos, contadores, hover de
   flechas, halos, swatches seleccionados, etc.) usan `--st-accent`
   con `--st-accent-fg` para texto, garantizando contraste
   independientemente del color de marca elegido por el cliente.
   Champagne queda reservado SOLO para textos/icons decorativos
   (kickers, brand-line, estrellas de reviews, hover de items),
   donde mantiene legibilidad sobre el fondo oscuro sin importar
   cuán claro o oscuro sea el accent.
   Todo vive bajo body.theme-store-midnight para no afectar a los
   themes Starter / Essential.
   ================================================================= */

/* ----- Variables y base ---------------------------------------- */
body.theme-store-midnight {
    /* Carbón → grafito → tinta */
    --st-noir-0: #0a0b0e;
    --st-noir-1: #0f1014;
    --st-noir-2: #15161b;
    --st-noir-3: #1c1d23;
    --st-noir-4: #25262d;
    --st-noir-5: #34363f;

    /* Champagne / gold neutral. Se reserva exclusivamente para detalles
       de TEXTOS sobre fondo oscuro (kickers, ratings, hovers de ítems
       en menús) cuando necesitamos un color cálido y elegante que no
       dependa del accent del cliente. NO se usa para fondos. */
    --st-champagne: #dac399;

    /* Rol de tokens base que el resto de la app espera */
    --st-bg: var(--st-noir-0);
    --st-bg-alt: var(--st-noir-1);
    --st-bg-soft: var(--st-noir-2);
    --st-bg-raised: var(--st-noir-3);
    --st-fg: #f3efe6;
    --st-fg-strong: #ffffff;
    --st-fg-muted: #a8a299;
    --st-fg-soft: #6f6a62;
    --st-border: rgba(255, 255, 255, 0.08);
    --st-border-strong: rgba(255, 255, 255, 0.18);
    --st-line: rgba(218, 195, 153, 0.22);

    /* Accent = color principal de la tienda. En este theme oscuro,
       puede ser oscuro o claro, así que tenemos reglas específicas
       para mantener legibilidad en hover (ver botones más abajo). */
    --st-accent: var(--app-primary, #dac399);
    --st-accent-bg: var(--app-primary-bg, var(--st-accent));
    --st-accent-fg: var(--app-primary-fg, #0f1014);
    --st-accent-rgb: var(--app-primary-rgb, 218, 195, 153);
    --st-accent-soft: rgba(var(--st-accent-rgb), 0.14);
    --st-accent-glow: rgba(var(--st-accent-rgb), 0.32);

    --st-sale: #ff6f6f;
    --st-success: #6fd7a8;

    --st-radius-sm: 6px;
    --st-radius: 14px;
    --st-radius-lg: 22px;
    --st-radius-pill: 999px;

    --st-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
    --st-shadow-strong: 0 32px 60px rgba(0, 0, 0, 0.55);
    --st-shadow-glow: 0 0 0 1px var(--st-accent-soft), 0 24px 60px rgba(0, 0, 0, 0.55);

    --st-header-h: 96px;

    --st-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
    --st-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;

    margin: 0;
    /* El degradé del fondo del body usa SIEMPRE el color principal de la
       tienda en ambas esquinas para que el "showroom" se sienta tintado
       de la marca, no de un dorado fijo. */
    background:
        radial-gradient(1200px 800px at 80% -10%, rgba(var(--st-accent-rgb), 0.10), transparent 60%),
        radial-gradient(900px 700px at 0% 110%, rgba(var(--st-accent-rgb), 0.08), transparent 60%),
        var(--st-noir-0);
    background-attachment: fixed;
    color: var(--st-fg);
    font-family: var(--st-sans);
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.storefront-popup--image_top .storefront-popup-dialog {
    grid-template-columns: minmax(0, 1fr);
    max-width: 520px;
}

.storefront-popup--image_top .storefront-popup-media {
    min-height: 210px;
    order: 0;
}

.storefront-popup--image_top .storefront-popup-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.storefront-popup--image_top .storefront-popup-copy {
    text-align: center;
    align-items: center;
}

/* Storefront controls must outrank the shared app input defaults. */
body.theme-store.theme-store-midnight .st-main input:not([type="checkbox"]):not([type="radio"]):not(.ts-control > input):not(.sa-input-affix > input):not(.sa-search-input > input):not(.sa-combobox__control > input):not(.sa-multiselect__search > input),
body.theme-store.theme-store-midnight .st-main textarea,
body.theme-store.theme-store-midnight .st-main select,
body.theme-store.theme-store-midnight .storefront-popup-form input:not([type="checkbox"]):not([type="radio"]):not(.ts-control > input):not(.sa-input-affix > input):not(.sa-search-input > input):not(.sa-combobox__control > input):not(.sa-multiselect__search > input),
body.theme-store.theme-store-midnight .st-home-newsletter-form input:not([type="checkbox"]):not([type="radio"]):not(.ts-control > input):not(.sa-input-affix > input):not(.sa-search-input > input):not(.sa-combobox__control > input):not(.sa-multiselect__search > input) {
    width: 100%;
    box-sizing: border-box;
    padding: 13px 16px;
    background: var(--st-noir-2);
    color: var(--st-fg);
    border: 1px solid var(--st-border);
    border-radius: var(--st-radius-sm);
    font-family: var(--st-sans);
    font-size: 15px;
    outline: 0;
    box-shadow: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

body.theme-store.theme-store-midnight .st-main input:not([type="checkbox"]):not([type="radio"]):not(.ts-control > input):not(.sa-input-affix > input):not(.sa-search-input > input):not(.sa-combobox__control > input):not(.sa-multiselect__search > input):focus,
body.theme-store.theme-store-midnight .st-main textarea:focus,
body.theme-store.theme-store-midnight .st-main select:focus,
body.theme-store.theme-store-midnight .storefront-popup-form input:not([type="checkbox"]):not([type="radio"]):not(.ts-control > input):not(.sa-input-affix > input):not(.sa-search-input > input):not(.sa-combobox__control > input):not(.sa-multiselect__search > input):focus,
body.theme-store.theme-store-midnight .st-home-newsletter-form input:not([type="checkbox"]):not([type="radio"]):not(.ts-control > input):not(.sa-input-affix > input):not(.sa-search-input > input):not(.sa-combobox__control > input):not(.sa-multiselect__search > input):focus {
    border-color: var(--st-accent);
    background: var(--st-noir-3);
    box-shadow: 0 0 0 4px var(--st-accent-soft);
    outline: 0;
}

body.theme-store.theme-store-midnight .st-main .st-qty-stepper > input:not([type="checkbox"]):not([type="radio"]):not(.ts-control > input):not(.sa-input-affix > input):not(.sa-search-input > input):not(.sa-combobox__control > input):not(.sa-multiselect__search > input),
body.theme-store.theme-store-midnight .st-main .st-qty-stepper > input.storefront-product-qty {
    width: 56px;
    height: 100%;
    text-align: center;
    border: 0;
    background: transparent;
    color: var(--st-fg-strong);
    font-family: var(--st-display);
    font-size: 16px;
    font-weight: 600;
    padding: 0;
    box-shadow: none;
    border-radius: 0;
    -moz-appearance: textfield;
}

body.theme-store.theme-store-midnight .st-main .st-cart-item-controls .st-qty-stepper > input:not([type="checkbox"]):not([type="radio"]):not(.ts-control > input):not(.sa-input-affix > input):not(.sa-search-input > input):not(.sa-combobox__control > input):not(.sa-multiselect__search > input),
body.theme-store.theme-store-midnight .st-main .st-cart-item-controls .st-qty-stepper > input.storefront-product-qty {
    width: 42px;
    font-size: 14px;
}

body.theme-store.theme-store-midnight .st-main .st-qty-stepper > input:not([type="checkbox"]):not([type="radio"]):not(.ts-control > input):not(.sa-input-affix > input):not(.sa-search-input > input):not(.sa-combobox__control > input):not(.sa-multiselect__search > input):focus,
body.theme-store.theme-store-midnight .st-main .st-qty-stepper > input.storefront-product-qty:focus {
    outline: 0;
    box-shadow: none;
    border-color: transparent;
    background: transparent;
}

.storefront-product-customer-files {
    display: grid;
    gap: 8px;
    margin: 18px 0 4px;
    padding: 14px;
    border: 1px solid var(--st-border);
    border-radius: var(--st-radius);
    background: var(--st-surface);
}

.storefront-product-customer-files label {
    margin: 0;
    font-weight: 800;
    color: var(--st-fg);
}

.storefront-product-file-inputs {
    display: grid;
    gap: 8px;
}

.storefront-product-file-input {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--st-border);
    border-radius: 10px;
    background: var(--st-bg);
    color: var(--st-fg);
    font-size: 16px;
}

.storefront-product-file-help,
.storefront-product-file-list,
.storefront-product-file-error {
    color: var(--st-fg-muted);
    font-size: 13px;
    line-height: 1.5;
}

.storefront-product-file-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.storefront-product-file-list span {
    padding: 5px 8px;
    border-radius: var(--st-radius-pill);
    background: color-mix(in srgb, var(--st-accent) 18%, transparent);
    color: var(--st-fg);
}

.storefront-product-file-error {
    color: #ff9b92;
    font-weight: 700;
}

.st-cart-item-files {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 8px;
}

.st-checkout-info-tooltip {
    position: relative;
    display: inline-flex;
    align-items: center;
    color: var(--st-muted);
    cursor: help;
}

.st-checkout-info-tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 10px);
    z-index: 20;
    width: min(280px, 78vw);
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--st-radius);
    background: var(--st-panel);
    color: var(--st-fg);
    font-size: 12px;
    line-height: 1.35;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 6px);
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.st-checkout-info-tooltip:hover::after,
.st-checkout-info-tooltip:focus-visible::after {
    opacity: 1;
    transform: translate(-50%, 0);
}

@media (max-width: 520px) {
    .st-checkout-info-tooltip::after {
        left: auto;
        right: 0;
        width: min(280px, calc(100vw - 32px));
        transform: translateY(6px);
    }

    .st-checkout-info-tooltip:hover::after,
    .st-checkout-info-tooltip:focus-visible::after {
        transform: translateY(0);
    }
}

@media (max-width: 980px) {
    .st-account-icon { display: none !important; }
}

body.theme-store-midnight * { box-sizing: border-box; }


body.theme-store-midnight a {
    color: inherit;
    text-decoration: none;
}

body.theme-store-midnight h1,
body.theme-store-midnight h2,
body.theme-store-midnight h3,
body.theme-store-midnight h4 {
    color: var(--st-fg-strong);
    font-family: var(--st-display);
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin: 0;
}

body.theme-store-midnight .site-shell {
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body.theme-store-midnight .storefront-shell {
    flex: 1 0 auto;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    position: relative;
    z-index: 1;
}

body.theme-store-midnight,
body.theme-store-midnight a,
body.theme-store-midnight button,
body.theme-store-midnight label {
    touch-action: manipulation;
}

body.theme-store-midnight .storefront-shell > .sa-flash {
    width: min(100% - 32px, 1200px);
    margin: 16px auto 0;
    border-radius: var(--st-radius);
    border: 1px solid var(--st-border);
    background: var(--st-bg-raised);
    color: var(--st-fg);
    box-shadow: var(--st-shadow);
    font-weight: 500;
}

body.theme-store-midnight .st-preview-bar {
    width: 100%;
    padding: 10px 16px;
    background: var(--st-accent-bg);
    color: var(--st-accent-fg);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    text-align: center;
    font-family: var(--st-display);
}

/* ----- Botones -------------------------------------------------
   Sistema "noir glass": fondo `--st-accent` (color principal de la
   tienda) por defecto, con texto en `--st-accent-fg` para asegurar
   contraste. En hover se agrega un halo luminoso usando `box-shadow`
   en lugar de pseudo-elementos sobre el contenido, para que los
   íconos dentro del <span> nunca queden tapados. */
body.theme-store-midnight .button,
body.theme-store-midnight button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--st-accent-bg);
    color: var(--st-accent-fg);
    border: 1px solid var(--st-accent);
    border-radius: var(--st-radius-pill);
    padding: 14px 26px;
    font-family: var(--st-display);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.16em;
    line-height: 1;
    text-decoration: none;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 0 0 1px transparent;
    position: relative;
    overflow: hidden;
    transition:
        background-color 0.35s ease,
        color 0.35s ease,
        border-color 0.35s ease,
        box-shadow 0.45s ease,
        transform 0.2s ease;
}

body.theme-store-midnight .button:hover,
body.theme-store-midnight button:hover {
    background: var(--st-accent-bg);
    color: var(--st-accent-fg);
    border-color: var(--st-accent);
    box-shadow:
        0 0 0 1px var(--st-accent-soft),
        0 18px 40px var(--st-accent-glow);
    transform: translateY(-1px);
}

body.theme-store-midnight .button:active,
body.theme-store-midnight button:active {
    transform: translateY(0);
}

body.theme-store-midnight .button:focus-visible,
body.theme-store-midnight button:focus-visible {
    outline: 2px solid var(--st-accent);
    outline-offset: 3px;
}

body.theme-store-midnight .button-primary,
body.theme-store-midnight .button.is-accent {
    background: var(--st-accent-bg);
    color: var(--st-accent-fg);
    border-color: var(--st-accent);
}

body.theme-store-midnight .button-primary:hover,
body.theme-store-midnight .button.is-accent:hover {
    background: var(--st-accent-bg);
    color: var(--st-accent-fg);
    border-color: var(--st-accent);
    box-shadow:
        0 0 0 1px var(--st-accent-soft),
        0 18px 40px var(--st-accent-glow);
}

body.theme-store-midnight .button-dark {
    background: var(--st-noir-3);
    color: var(--st-fg);
    border-color: var(--st-border-strong);
}

body.theme-store-midnight .button-dark:hover {
    background: var(--st-noir-4);
    color: var(--st-fg-strong);
    border-color: var(--st-accent);
    box-shadow:
        0 0 0 1px var(--st-accent-soft),
        0 16px 32px rgba(0, 0, 0, 0.5);
}

body.theme-store-midnight .button-secondary {
    background: transparent;
    color: var(--st-fg);
    border: 1px solid var(--st-border-strong);
}

body.theme-store-midnight .button-secondary:hover {
    background: rgba(255, 255, 255, 0.04);
    color: var(--st-fg-strong);
    border-color: var(--st-accent);
    box-shadow: 0 0 0 1px var(--st-accent-soft);
}

body.theme-store-midnight .button-danger {
    background: var(--st-sale);
    color: #1a0707;
    border-color: var(--st-sale);
}

body.theme-store-midnight .button-danger:hover {
    background: #ff8b8b;
    color: #1a0707;
    border-color: #ff8b8b;
}

body.theme-store-midnight .button-ghost {
    background: transparent;
    color: var(--st-fg);
    border: 0;
    padding: 10px 12px;
    letter-spacing: 0.14em;
    box-shadow: none;
}

body.theme-store-midnight .button-ghost:hover {
    /* Hover de texto sin fondo: NO usar var(--st-accent) como color de
       texto porque puede ser claro/medio y perderse. Usamos
       --st-fg-strong y reservamos el accent para el subrayado. */
    background: transparent;
    color: var(--st-fg-strong);
    text-decoration: underline;
    text-decoration-color: var(--st-accent);
    text-underline-offset: 4px;
    box-shadow: none;
    transform: none;
}

body.theme-store-midnight [disabled],
body.theme-store-midnight .button[disabled] {
    cursor: not-allowed;
    opacity: 0.4;
    box-shadow: none;
    transform: none;
}

/* ----- Inputs -------------------------------------------------- */
body.theme-store-midnight input:not([type="checkbox"]):not([type="radio"]),
body.theme-store-midnight textarea,
body.theme-store-midnight select {
    width: 100%;
    padding: 13px 16px;
    background: var(--st-noir-2);
    color: var(--st-fg);
    border: 1px solid var(--st-border);
    border-radius: var(--st-radius-sm);
    font-family: var(--st-sans);
    font-size: 15px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    outline: 0;
    box-shadow: none;
}

body.theme-store-midnight input:focus,
body.theme-store-midnight textarea:focus,
body.theme-store-midnight select:focus {
    border-color: var(--st-accent);
    background: var(--st-noir-3);
    box-shadow: 0 0 0 4px var(--st-accent-soft);
    outline: 0;
}

body.theme-store-midnight input::placeholder,
body.theme-store-midnight textarea::placeholder {
    color: var(--st-fg-soft);
}

body.theme-store.theme-store-midnight label:not([class^="sa-"]):not([class*=" sa-"]) {
    display: block;
    margin-bottom: 6px;
    font-family: var(--st-display);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--st-fg-muted);
}

body.theme-store-midnight .muted { color: var(--st-fg-muted); }
body.theme-store-midnight .error-text { color: var(--st-sale); font-size: 13px; margin-top: 6px; }

/* ----- Container ----------------------------------------------- */
.st-container {
    width: min(100% - 40px, 1240px);
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 720px) {
    .st-container {
        width: min(100% - 28px, 1240px);
    }
}

/* ================================================================
   HEADER
   ================================================================ */
body.theme-store-midnight .st-header {
    background: rgba(10, 11, 14, 0.65);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    color: var(--st-fg);
    border-bottom: 1px solid var(--st-border);
    position: sticky;
    top: 0;
    z-index: 50;
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

body.theme-store-midnight.st-midnight-scrolled .st-header {
    background: rgba(10, 11, 14, 0.92);
    border-bottom-color: var(--st-accent);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}

.st-header-sticky {
    position: relative;
}

body.theme-store-midnight .st-header-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    min-height: var(--st-header-h);
    padding: 18px 0;
    gap: 24px;
    transition: padding 0.3s ease, min-height 0.3s ease;
}

body.theme-store-midnight.st-midnight-scrolled .st-header-row {
    min-height: calc(var(--st-header-h) - 22px);
    padding: 8px 0;
}

body.theme-store-midnight .st-brand {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
    align-self: center;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--st-fg-strong);
    font-family: var(--st-display);
    font-size: 26px;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.1;
    padding: 4px 0;
}

body.theme-store-midnight .st-brand:hover { color: var(--st-fg-strong); }

body.theme-store-midnight .st-brand-logo {
    max-height: 46px;
    width: auto;
    display: block;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.4));
}

body.theme-store-midnight .st-brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--st-accent);
    background: var(--st-accent-bg);
    color: var(--st-accent-fg);
    font-family: var(--st-display);
    font-size: 18px;
    font-weight: 600;
    border-radius: 50%;
    letter-spacing: 0;
}

body.theme-store-midnight .st-nav {
    grid-column: 1;
    grid-row: 1;
    display: inline-flex;
    align-items: center;
    gap: 30px;
    justify-self: start;
    align-self: center;
    height: 100%;
}

body.theme-store-midnight .st-nav a {
    position: relative;
    display: inline-flex;
    align-items: center;
    height: 100%;
    padding: 6px 0;
    color: var(--st-fg);
    font-family: var(--st-display);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    transition: color 0.2s ease;
}

body.theme-store-midnight .st-nav a::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--st-accent-bg);
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

body.theme-store-midnight .st-nav a:hover {
    color: var(--st-fg-strong);
    background: transparent;
}

body.theme-store-midnight .st-nav a:hover::after,
body.theme-store-midnight .st-nav a[aria-current="page"]::after {
    width: 100%;
}

body.theme-store-midnight .st-nav a[aria-current="page"] {
    color: var(--st-fg-strong);
}

.st-header-actions {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    align-self: center;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

body.theme-store-midnight .st-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: transparent;
    color: var(--st-fg);
    border: 0;
    padding: 0;
    margin: 0;
    border-radius: 50%;
    text-decoration: none;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    box-shadow: none;
    position: relative;
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

body.theme-store-midnight .st-icon-btn::before {
    display: none;
}

body.theme-store-midnight .st-icon-btn:hover {
    background: var(--st-accent-soft);
    color: var(--st-fg-strong);
    box-shadow: 0 0 0 1px var(--st-accent-soft);
    transform: none;
}

body.theme-store-midnight .st-icon-btn[aria-expanded="true"] {
    background: var(--st-accent-soft);
    color: var(--st-fg-strong);
    box-shadow: 0 0 0 1px var(--st-accent-soft);
}

body.theme-store-midnight .st-menu-toggle {
    display: none;
    background: transparent;
    color: var(--st-fg);
    border: 0;
}

body.theme-store-midnight .st-menu-toggle:hover {
    background: var(--st-accent-soft);
    color: var(--st-fg-strong);
}

.st-cart-count {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: var(--st-accent-bg);
    color: var(--st-accent-fg);
    border-radius: 999px;
    font-family: var(--st-display);
    font-size: 10px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    letter-spacing: 0;
    box-shadow: 0 0 0 2px var(--st-noir-0);
}

/* ----- Search panel ---------------------------------------------- */
body.theme-store-midnight .st-search-panel {
    background: var(--st-noir-1);
    border-top: 1px solid var(--st-border);
    border-bottom: 1px solid var(--st-border);
    padding: 18px 0;
    animation: stMidnightSlideDown 0.3s ease;
}

@keyframes stMidnightSlideDown {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

body.theme-store-midnight .st-search-form { width: 100%; }

body.theme-store-midnight .st-search-field {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    border: 1px solid var(--st-border);
    background: var(--st-noir-2);
    padding: 6px 10px 6px 18px;
    border-radius: var(--st-radius-pill);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

body.theme-store-midnight .st-search-field:focus-within {
    border-color: var(--st-accent);
    box-shadow: 0 0 0 4px var(--st-accent-soft);
}

body.theme-store-midnight .st-search-field input {
    flex: 1;
    background: transparent;
    color: var(--st-fg);
    border: 0;
    border-radius: 0;
    padding: 10px 0;
    font-family: var(--st-display);
    font-size: 18px;
    box-shadow: none;
    outline: 0;
}

body.theme-store-midnight .st-search-field input:focus {
    box-shadow: none;
    border-color: transparent;
    background: transparent;
}

body.theme-store-midnight .st-search-field input::placeholder {
    color: var(--st-fg-soft);
}

body.theme-store-midnight .st-search-field button {
    background: var(--st-accent-bg);
    color: var(--st-accent-fg);
    border: 1px solid var(--st-accent);
    padding: 12px 22px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    height: auto;
    border-radius: var(--st-radius-pill);
}

body.theme-store-midnight .st-search-field button:hover {
    background: var(--st-accent-bg);
    color: var(--st-accent-fg);
    border-color: var(--st-accent);
    box-shadow:
        0 0 0 1px var(--st-accent-soft),
        0 12px 28px var(--st-accent-glow);
}

/* ----- Subnav (categorías) -------------------------------------- */
body.theme-store-midnight .st-subnav {
    /* `position: relative` + `z-index` aseguran que el dropdown del
       subnav flote sobre `.st-collection-head` y demás bloques que
       crean su propio contexto con `position: relative` (el header de
       categoría tenía un recuadro que se montaba sobre el submenú). */
    position: relative;
    z-index: 20;
    background: rgba(15, 16, 20, 0.72);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--st-border);
    overflow: visible;
}

.st-subnav-row {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
    min-height: 48px;
    padding: 6px 0;
}

body.theme-store-midnight .st-subnav-row > a,
body.theme-store-midnight .st-subnav-dropdown-trigger {
    padding: 10px 22px;
    color: var(--st-fg);
    font-family: var(--st-display);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    text-decoration: none;
    transition: color 0.2s ease, background-color 0.2s ease;
    position: relative;
    border-radius: var(--st-radius-pill);
}

body.theme-store-midnight .st-subnav-row > a:hover,
body.theme-store-midnight .st-subnav-dropdown-trigger:hover {
    color: var(--st-fg-strong);
    background: var(--st-accent-soft);
}

body.theme-store-midnight .st-subnav-row > a.is-active,
body.theme-store-midnight .st-subnav-row > a[aria-current="page"] {
    color: var(--st-accent-fg);
    background: var(--st-accent-bg);
}

.st-subnav-dropdown {
    position: relative;
}

body.theme-store-midnight .st-subnav-dropdown.is-active > .st-subnav-dropdown-trigger {
    color: var(--st-accent-fg);
    background: var(--st-accent-bg);
}

.st-subnav-dropdown-trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    background: transparent;
    border: 0;
}

.st-subnav-dropdown-trigger i { font-size: 12px; opacity: 0.7; }

body.theme-store-midnight .st-subnav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    min-width: 240px;
    background: var(--st-noir-2);
    border: 1px solid var(--st-border);
    border-radius: var(--st-radius);
    padding: 10px 6px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0.18s;
    z-index: 60;
    box-shadow: var(--st-shadow);
}

.st-subnav-dropdown:hover .st-subnav-dropdown-menu,
.st-subnav-dropdown:focus-within .st-subnav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0s;
}

body.theme-store-midnight .st-subnav-dropdown-menu a {
    display: block;
    padding: 10px 16px;
    color: var(--st-fg);
    font-family: var(--st-sans);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
    border-radius: 8px;
    transition: background 0.15s ease, color 0.15s ease;
}

body.theme-store-midnight .st-subnav-dropdown-menu a:first-child {
    color: var(--st-champagne);
    border-bottom: 1px solid var(--st-border);
    margin-bottom: 4px;
    padding-bottom: 12px;
    border-radius: 0;
}

body.theme-store-midnight .st-subnav-dropdown-menu a:hover {
    background: var(--st-accent-soft);
    color: var(--st-fg-strong);
}

/* ----- Drawer mobile -------------------------------------------- */
.st-drawer {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: block;
}

.st-drawer[hidden] { display: none; }

body.theme-store-midnight .st-drawer-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    animation: stMidnightFade 0.25s ease;
}

@keyframes stMidnightFade {
    from { opacity: 0; }
    to { opacity: 1; }
}

body.theme-store-midnight .st-drawer-panel {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: min(380px, 100%);
    background: var(--st-noir-1);
    color: var(--st-fg);
    padding: 20px 26px 28px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
    border-left: 1px solid var(--st-border);
    animation: stMidnightDrawerIn 0.35s ease;
    box-shadow: -30px 0 60px rgba(0, 0, 0, 0.5);
}

@keyframes stMidnightDrawerIn {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

.st-drawer-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin: 0 -10px 0 0;
}

body.theme-store-midnight .st-drawer-header .st-icon-btn {
    background: rgba(255, 255, 255, 0.04);
    color: var(--st-fg);
    border: 1px solid var(--st-border);
    border-radius: 50%;
    width: 40px;
    height: 40px;
}

body.theme-store-midnight .st-drawer-header .st-icon-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--st-fg-strong);
}

.st-drawer-nav {
    display: flex;
    flex-direction: column;
    gap: 0;
}

body.theme-store-midnight .st-drawer-nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 0;
    color: var(--st-fg);
    font-family: var(--st-display);
    font-size: 18px;
    font-weight: 500;
    letter-spacing: -0.01em;
    text-decoration: none;
    border-bottom: 1px solid var(--st-border);
    transition: color 0.2s ease;
}

body.theme-store-midnight .st-drawer-nav a:hover { color: var(--st-champagne); }

body.theme-store-midnight .st-drawer-nav a i {
    font-size: 14px;
    opacity: 0.5;
}

body.theme-store-midnight .st-drawer-nav a[aria-current="page"] {
    color: var(--st-champagne);
}

.st-drawer-search {
    border-top: 1px solid var(--st-border);
    padding-top: 20px;
}

.st-drawer-search .st-search-field input {
    font-size: 15px;
}

body.theme-store-midnight .st-drawer-cat {
    border-bottom: 1px solid var(--st-border);
}

body.theme-store-midnight .st-drawer-cat summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    cursor: pointer;
    list-style: none;
    color: var(--st-fg);
    font-family: var(--st-display);
    font-size: 18px;
    font-weight: 500;
}

.st-drawer-cat summary::-webkit-details-marker { display: none; }

.st-drawer-cat-chevron {
    font-size: 14px;
    opacity: 0.6;
    transition: transform 0.25s ease;
}

.st-drawer-cat[open] .st-drawer-cat-chevron {
    transform: rotate(180deg);
}

.st-drawer-subcats {
    display: flex;
    flex-direction: column;
    padding: 0 0 14px 14px;
    gap: 0;
}

body.theme-store-midnight .st-drawer-subcats a {
    padding: 10px 0;
    border-bottom: 0;
    font-family: var(--st-sans);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0;
    color: var(--st-fg-muted);
}

body.theme-store-midnight .st-drawer-subcats a:hover { color: var(--st-fg-strong); }

body.theme-store-midnight .st-drawer-subcat-all {
    color: var(--st-champagne) !important;
    font-size: 15px !important;
}

.st-drawer-section { margin-top: 4px; }

body.theme-store-midnight .st-drawer-section-title {
    margin: 0 0 6px;
    font-family: var(--st-display);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--st-fg-muted);
}

.st-drawer-foot {
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid var(--st-border);
}

body.st-drawer-open { overflow: hidden; }

/* ================================================================
   CARRUSEL HERO
   ================================================================ */
.storefront-carousel {
    position: relative;
    background: var(--st-noir-1);
    overflow: hidden;
    border-bottom: 1px solid var(--st-border);
}

.storefront-carousel-track {
    position: relative;
    width: 100%;
    /* 16:9 como piso, no como tope: el contenido puede estirar el track */
    min-height: min(56.25vw, 720px);
}

.storefront-carousel:has(.is-background-product) .storefront-carousel-track {
    display: block;
    min-height: 0;
}

.storefront-carousel-list {
    min-height: inherit;
}

.storefront-carousel-slide {
    min-height: inherit;
    position: relative;
    inset: auto;
    opacity: 1;
    visibility: visible;
    z-index: auto;
    transition: none;
}

.storefront-carousel:has(.is-background-product) .storefront-carousel-slide {
    position: relative;
    inset: auto;
}

.storefront-carousel-slide.is-active {
    opacity: 1;
    visibility: visible;
}

.storefront-carousel-media {
    position: absolute;
    inset: 0;
    display: block;
}

.storefront-carousel-media a,
.storefront-carousel-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.storefront-carousel-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(10, 11, 14, 0.55) 100%);
    pointer-events: none;
}

.storefront-carousel-controls {
    position: absolute;
    inset: 0;
    z-index: 4;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
}

body.theme-store-midnight .storefront-carousel-arrow {
    pointer-events: auto;
    position: static;
    transform: none;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(15, 16, 20, 0.75);
    color: var(--st-fg);
    border: 1px solid var(--st-border-strong);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: var(--st-shadow);
}

body.theme-store-midnight .storefront-carousel-arrow::before { display: none; }

body.theme-store-midnight .storefront-carousel-arrow:hover {
    background: var(--st-accent-bg);
    color: var(--st-accent-fg);
    border-color: var(--st-accent);
    box-shadow:
        0 0 0 1px var(--st-accent-soft),
        0 12px 32px var(--st-accent-glow);
    transform: none;
}

body.theme-store-midnight .storefront-carousel-arrow.is-disabled,
body.theme-store-midnight .storefront-carousel-arrow[disabled] {
    background: rgba(15, 16, 20, 0.45);
    color: var(--st-fg-soft);
    border-color: var(--st-border);
    cursor: not-allowed;
    pointer-events: none;
    opacity: 0.45;
}

.storefront-carousel-dots {
    position: absolute;
    z-index: 4;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    align-items: center;
}

.storefront-carousel-dots li {
    display: inline-flex;
}

body.theme-store-midnight .storefront-carousel-dot {
    width: 30px;
    height: 2px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.32);
    padding: 10px 0;
    box-shadow: none;
    cursor: pointer;
    background-clip: content-box;
    transition: background-color 0.3s ease, width 0.3s ease;
}

body.theme-store-midnight .storefront-carousel-dot::before { display: none; }

body.theme-store-midnight .storefront-carousel-dot:hover {
    background: var(--st-accent-bg);
    background-clip: content-box;
}

body.theme-store-midnight .storefront-carousel-dot.is-active {
    background: var(--st-accent-bg);
    background-clip: content-box;
    width: 50px;
}

@media (max-width: 720px) {
    body.theme-store-midnight .storefront-carousel-arrow {
        width: 34px;
        height: 48px;
        padding: 0 !important;
        border: 0 !important;
        background: transparent !important;
        background-image: none !important;
        box-shadow: none !important;
        color: var(--st-fg);
        font-size: 22px;
        text-shadow: 0 1px 6px rgba(255, 255, 255, 0.75);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
    body.theme-store-midnight .storefront-carousel-arrow:hover {
        background: transparent !important;
        background-image: none !important;
        color: var(--st-fg);
        border-color: transparent !important;
        box-shadow: none !important;
        transform: none;
    }
    .storefront-carousel-controls { padding: 0; }
}

/* ================================================================
   MAIN + Section labels
   ================================================================ */
.st-main {
    padding: 64px 0 88px;
    flex: 1 0 auto;
}

.st-section { padding: 28px 0; }

.st-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 36px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--st-border);
}

.st-section-title {
    margin: 0;
    font-family: var(--st-display);
    font-size: clamp(34px, 5.5vw, 56px);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1;
    color: var(--st-fg-strong);
}

.st-section-subtitle {
    margin: 14px 0 0;
    color: var(--st-fg-muted);
    font-family: var(--st-sans);
    font-size: 15px;
    max-width: 540px;
    line-height: 1.6;
}

.st-section-link {
    color: var(--st-fg);
    font-family: var(--st-display);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px solid var(--st-fg);
    transition: color 0.2s ease, border-color 0.2s ease;
}

.st-section-link:hover {
    /* Texto sin fondo: usamos --st-fg-strong y reservamos accent para
       el subrayado para que sea visible con cualquier color de marca. */
    color: var(--st-fg-strong);
    border-bottom-color: var(--st-accent);
}

.st-section-kicker {
    margin: 0 0 14px;
    font-family: var(--st-display);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--st-champagne);
    display: inline-flex;
    align-items: center;
    gap: 14px;
}

.st-section-kicker::before {
    /* La línea fina del kicker es decorativa pero tiene fondo: usa el
       color principal de la tienda para que se sienta on-brand. */
    content: '';
    width: 28px;
    height: 1px;
    background: var(--st-accent-bg);
    display: inline-block;
}

/* ================================================================
   CATEGORÍAS HORIZONTAL
   ================================================================ */
.st-home-category-strip {
    padding: 80px 0 30px;
}

.st-featured-products {
    padding: 60px 0 40px;
    background: linear-gradient(180deg, transparent, rgba(15, 16, 20, 0.6) 50%, transparent);
    border-top: 1px solid var(--st-border);
    border-bottom: 1px solid var(--st-border);
}

.st-carousel-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--st-border);
}

.st-scroll-carousel-arrows {
    display: flex;
    gap: 8px;
}

body.theme-store-midnight .st-scroll-carousel-arrow {
    width: 44px;
    height: 44px;
    background: var(--st-noir-2);
    color: var(--st-fg);
    border: 1px solid var(--st-border);
    border-radius: 50%;
    padding: 0;
    box-shadow: none;
    font-size: 16px;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

body.theme-store-midnight .st-scroll-carousel-arrow::before { display: none; }

body.theme-store-midnight .st-scroll-carousel-arrow:hover {
    background: var(--st-accent-bg);
    color: var(--st-accent-fg);
    border-color: var(--st-accent);
    box-shadow:
        0 0 0 1px var(--st-accent-soft),
        0 8px 24px var(--st-accent-glow);
}

body.theme-store-midnight .st-scroll-carousel-arrow.is-disabled,
body.theme-store-midnight .st-scroll-carousel-arrow[disabled] {
    background: var(--st-noir-1);
    color: var(--st-fg-soft);
    border-color: var(--st-border);
    cursor: not-allowed;
    pointer-events: none;
    opacity: 0.45;
}

.st-scroll-carousel { position: relative; }

.st-scroll-carousel-track {
    --st-scroll-carousel-gap: 24px;
    display: block;
    overflow: hidden;
    padding-bottom: 8px;
}

.st-product-carousel .st-product-card {
    flex: 0 0 calc((100% - 24px * 3) / 4);
    max-width: 320px;
    min-width: 0;
}

@media (max-width: 1100px) {
    .st-product-carousel .st-product-card {
        flex: 0 0 calc((100% - 24px * 2) / 3);
    }
}

@media (max-width: 880px) {
    .st-product-carousel .st-product-card {
        flex: 0 0 calc((100% - 24px) / 2.2);
        max-width: none;
    }
}

@media (max-width: 540px) {
    .st-product-carousel .st-product-card {
        flex: 0 0 calc((100% - 14px) / 1.6);
    }
    .st-product-carousel.st-scroll-carousel .st-scroll-carousel-track {
        gap: 14px;
    }
}

.st-category-card {
    flex: 0 0 200px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    text-align: center;
    color: var(--st-fg);
    text-decoration: none;
    transition: transform 0.4s ease;
}

.st-category-card img,
.st-category-card-placeholder {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    background: var(--st-noir-2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--st-fg-soft);
    font-size: 36px;
    border-radius: var(--st-radius);
    border: 1px solid var(--st-border);
    transition: transform 0.5s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.st-category-card:hover img,
.st-category-card:hover .st-category-card-placeholder {
    transform: scale(1.04);
    border-color: var(--st-accent);
    box-shadow:
        0 0 0 1px var(--st-accent-soft),
        0 12px 32px rgba(0, 0, 0, 0.5);
}

.st-category-card span {
    font-family: var(--st-display);
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0;
    color: var(--st-fg);
}

.st-category-card:hover span {
    color: var(--st-champagne);
}

@media (max-width: 720px) {
    .st-category-card { flex: 0 0 152px; }
}

/* ================================================================
   PRODUCT GRID + CARDS
   ================================================================ */
.st-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 48px 28px;
}

@media (max-width: 720px) {
    .st-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 30px 14px;
    }
}

.st-product-card {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    overflow: visible;
    position: relative;
}

.st-product-card-media {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--st-noir-2);
    border: 1px solid var(--st-border);
    border-radius: var(--st-radius);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.st-product-card:hover .st-product-card-media {
    border-color: var(--st-accent);
    box-shadow:
        0 0 0 1px var(--st-accent-soft),
        0 18px 40px rgba(0, 0, 0, 0.55);
}

.st-product-card-link {
    display: block;
    width: 100%;
    height: 100%;
}

.st-product-card-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.st-product-card:hover .st-product-card-link img {
    transform: scale(1.06);
}

.st-product-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--st-fg-soft);
    font-size: 30px;
    background: var(--st-noir-2);
}

.st-product-card-out {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(15, 16, 20, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--st-fg);
    padding: 6px 12px;
    font-family: var(--st-display);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    border: 1px solid var(--st-border-strong);
    border-radius: var(--st-radius-pill);
}

.st-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: var(--st-accent-bg);
    color: var(--st-accent-fg);
    padding: 6px 12px;
    font-family: var(--st-display);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    border-radius: var(--st-radius-pill);
}

.st-badge.is-sale {
    right: auto;
    left: 14px;
    background: var(--st-sale);
    color: #1a0707;
}

/* Quick add: visible siempre en mobile/tablet, en hover en desktop */
body.theme-store-midnight .st-product-card-quick {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 12px;
    top: auto;
    padding: 0;
    text-align: center;
    margin: 0;
    z-index: 3;
    display: block;
    transform: none;
    opacity: 1;
    pointer-events: auto;
}

body.theme-store-midnight .st-product-card-quick form,
body.theme-store-midnight .st-product-card-quick > a,
body.theme-store-midnight .st-product-card-quick > button {
    margin: 0;
    padding: 0;
    width: 100%;
    display: block;
}

@media (hover: hover) and (min-width: 861px) {
    body.theme-store-midnight .st-product-card-quick {
        transform: translateY(8px);
        opacity: 0;
        transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
    }

    body.theme-store-midnight .st-product-card:hover .st-product-card-quick {
        transform: translateY(0);
        opacity: 1;
    }
}

body.theme-store-midnight .st-product-card-quick .button {
    /* Hereda el fondo `--st-accent` del .button base; sólo ajustamos
       proporciones y un glow más suave porque flota sobre la imagen. */
    width: 100%;
    padding: 12px 16px;
    font-size: 11px;
    letter-spacing: 0.18em;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
}

body.theme-store-midnight .st-product-card-quick .button:hover {
    background: var(--st-accent-bg);
    color: var(--st-accent-fg);
    border-color: var(--st-accent);
    box-shadow:
        0 0 0 1px var(--st-accent-soft),
        0 14px 32px var(--st-accent-glow);
}

@media (max-width: 720px) {
    body.theme-store-midnight .st-product-card-quick .button {
        padding: 10px 12px;
        font-size: 10px;
        letter-spacing: 0.16em;
    }
}

.st-product-card-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 18px 4px 0;
    text-align: left;
}

.st-product-card-brand {
    margin: 0;
    font-family: var(--st-display);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--st-champagne);
}

.st-product-card-title {
    margin: 0;
    font-family: var(--st-display);
    font-size: 16px;
    font-weight: 500;
    letter-spacing: -0.005em;
    line-height: 1.3;
    color: var(--st-fg-strong);
}

.st-product-card-title a {
    color: var(--st-fg-strong);
    transition: color 0.25s ease;
}

.st-product-card:hover .st-product-card-title a {
    color: var(--st-champagne);
}

.st-product-card-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 4px;
    font-family: var(--st-display);
    font-size: 15px;
    font-weight: 500;
    color: var(--st-fg);
    letter-spacing: 0;
}

.st-price-prefix {
    font-family: var(--st-sans);
    font-size: 11px;
    color: var(--st-fg-muted);
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.st-price-old {
    text-decoration: line-through;
    color: var(--st-fg-soft);
    font-size: 13px;
    font-weight: 400;
}

.st-price-sale {
    color: var(--st-sale);
    font-weight: 600;
}

/* ================================================================
   ESTADO VACÍO
   ================================================================ */
.st-empty {
    text-align: center;
    padding: 80px 24px;
    border: 1px dashed var(--st-border);
    border-radius: var(--st-radius-lg);
    background: var(--st-noir-1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.st-empty-icon {
    width: 64px;
    height: 64px;
    border: 1px solid var(--st-accent);
    color: var(--st-accent-fg);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    background: var(--st-accent-bg);
    margin-bottom: 8px;
    border-radius: 50%;
}

.st-empty h2 {
    margin: 0;
    font-family: var(--st-display);
    font-size: clamp(26px, 4vw, 36px);
    font-weight: 600;
    color: var(--st-fg-strong);
}

.st-empty p {
    margin: 0;
    color: var(--st-fg-muted);
    font-family: var(--st-sans);
    font-size: 15px;
    max-width: 460px;
    line-height: 1.6;
}

.st-empty-actions { margin-top: 14px; }

.st-not-found-page {
    padding: 54px 0 84px;
}

.st-not-found-card {
    max-width: 720px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.st-not-found-card::before {
    content: '';
    position: absolute;
    inset: -35% auto auto 50%;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--st-accent) 24%, transparent);
    filter: blur(58px);
    transform: translateX(-50%);
    pointer-events: none;
}

.st-not-found-card > * {
    position: relative;
    z-index: 1;
}

.st-not-found-card h1 {
    margin: 0;
    font-family: var(--st-display);
    font-size: clamp(34px, 6vw, 60px);
    font-weight: 700;
    letter-spacing: -0.05em;
    color: var(--st-fg-strong);
}

.st-not-found-code {
    color: var(--st-champagne);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

/* ================================================================
   COLECCIONES
   ================================================================ */
.st-collection-page { padding: 28px 0 64px; }

.st-collection-head {
    margin: 24px 0 48px;
    display: grid;
    gap: 12px;
    text-align: center;
    padding: 36px 28px 38px;
    border: 1px solid var(--st-border);
    border-radius: var(--st-radius-lg);
    background: linear-gradient(180deg, var(--st-noir-1), var(--st-noir-2));
    position: relative;
    overflow: hidden;
}

.st-collection-head::before {
    content: '';
    position: absolute;
    inset: 0;
    /* Halo dinámico tintado con el color de la marca. */
    background:
        radial-gradient(600px 220px at 50% -20%, var(--st-accent-glow), transparent 70%);
    pointer-events: none;
}

.st-collection-eyebrow {
    color: var(--st-champagne);
    text-transform: uppercase;
    letter-spacing: 0.32em;
    font-family: var(--st-display);
    font-size: 11px;
    font-weight: 600;
    margin: 0;
    position: relative;
}

.st-collection-title {
    margin: 0;
    font-family: var(--st-display);
    font-size: clamp(38px, 6.5vw, 68px);
    font-weight: 600;
    letter-spacing: -0.03em;
    color: var(--st-fg-strong);
    position: relative;
}

.st-collection-desc {
    margin: 6px auto 0;
    color: var(--st-fg-muted);
    font-family: var(--st-sans);
    font-size: 15px;
    line-height: 1.65;
    max-width: 640px;
    position: relative;
}

.st-collection-count {
    margin: 6px 0 0;
    color: var(--st-fg-soft);
    font-family: var(--st-display);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    position: relative;
}

.st-search-results-head { max-width: none; }

.st-search-results-form {
    margin: 22px auto 18px;
    max-width: 560px;
}


body.theme-store-midnight .st-search-results-form #store-search-results {
    border: 0;
    box-shadow: none;
}

/* ================================================================
   PRODUCT DETAIL
   ================================================================ */
.storefront-product { padding-bottom: 100px; }

.st-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 8px;
    align-items: center;
    margin: 0 0 26px;
    color: var(--st-fg-muted);
    font-family: var(--st-display);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.st-breadcrumbs a {
    color: var(--st-fg-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.st-breadcrumbs a:hover {
    /* Texto sin fondo: usamos --st-fg-strong para mantener legibilidad
       independientemente del accent del cliente, y el accent solo
       como subrayado decorativo. */
    color: var(--st-fg-strong);
    text-decoration: underline;
    text-decoration-color: var(--st-accent);
    text-underline-offset: 4px;
}

.st-breadcrumbs span[aria-hidden="true"] { color: var(--st-fg-soft); }
.st-breadcrumbs span:not([aria-hidden]) { color: var(--st-fg-strong); }

.storefront-product-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 64px;
    align-items: start;
    margin-top: 16px;
}

@media (max-width: 980px) {
    .storefront-product-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

.storefront-product-media {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

.storefront-product-stage {
    position: relative;
    background: var(--st-noir-1);
    border: 1px solid var(--st-border);
    border-radius: var(--st-radius-lg);
    overflow: hidden;
    aspect-ratio: 4 / 5;
}

.storefront-product-stage.splide {
    display: block;
}

.storefront-product-stage .splide__track,
.storefront-product-stage .splide__list,
.storefront-product-stage .splide__slide {
    height: 100%;
}

.storefront-product-slide {
    display: flex;
    align-items: center;
    justify-content: center;
}

.storefront-product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

body.theme-store-midnight .storefront-product-image.is-slide-next {
    animation: stMidnightProductImageNext 0.42s cubic-bezier(0.16, 1, 0.3, 1);
}

body.theme-store-midnight .storefront-product-image.is-slide-prev {
    animation: stMidnightProductImagePrev 0.42s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes stMidnightProductImageNext {
    from { opacity: 0; transform: translateX(40px) scale(0.98); }
    to { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes stMidnightProductImagePrev {
    from { opacity: 0; transform: translateX(-40px) scale(0.98); }
    to { opacity: 1; transform: translateX(0) scale(1); }
}

body.theme-store-midnight .storefront-product-stage-arrow,
body.theme-store-midnight .storefront-product-stage-arrow:hover {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    padding: 0;
    box-shadow: var(--st-shadow);
    font-size: 16px;
}

body.theme-store-midnight .storefront-product-stage-arrow {
    background: rgba(15, 16, 20, 0.78);
    color: var(--st-fg);
    border: 1px solid var(--st-border-strong);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    transition:
        opacity 0.25s ease,
        background-color 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

body.theme-store-midnight .storefront-product-stage-arrow::before { display: none; }

body.theme-store-midnight .storefront-product-stage:hover .storefront-product-stage-arrow {
    opacity: 1;
}

body.theme-store-midnight .storefront-product-stage-arrow:hover {
    background: var(--st-accent-bg);
    color: var(--st-accent-fg);
    border-color: var(--st-accent);
    box-shadow:
        0 0 0 1px var(--st-accent-soft),
        0 12px 28px var(--st-accent-glow);
}

body.theme-store-midnight .storefront-product-stage-arrow.is-prev { left: 16px; }
body.theme-store-midnight .storefront-product-stage-arrow.is-next { right: 16px; }

.storefront-product-stage-bullets {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

body.theme-store-midnight .storefront-product-stage-bullet {
    width: 24px;
    height: 2px;
    background: rgba(255, 255, 255, 0.32);
    border: 0;
    border-radius: 999px;
    padding: 10px 0;
    background-clip: content-box;
    cursor: pointer;
    box-shadow: none;
    transition: background-color 0.3s ease, width 0.3s ease;
}

body.theme-store-midnight .storefront-product-stage-bullet::before { display: none; }

body.theme-store-midnight .storefront-product-stage-bullet:hover {
    background: var(--st-accent-bg);
    background-clip: content-box;
}

body.theme-store-midnight .storefront-product-stage-bullet.is-active {
    background: var(--st-accent-bg);
    background-clip: content-box;
    width: 38px;
}

.storefront-product-gallery {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}

body.theme-store-midnight .storefront-product-thumb {
    aspect-ratio: 1;
    background: var(--st-noir-2);
    border: 1px solid var(--st-border);
    cursor: pointer;
    padding: 0;
    overflow: hidden;
    border-radius: var(--st-radius-sm);
    transition: border-color 0.2s ease, transform 0.2s ease;
    box-shadow: none;
}

body.theme-store-midnight .storefront-product-thumb::before { display: none; }

body.theme-store-midnight .storefront-product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

body.theme-store-midnight .storefront-product-thumb:hover {
    border-color: var(--st-border-strong);
    background: var(--st-noir-3);
    transform: translateY(-1px);
}

body.theme-store-midnight .storefront-product-thumb.is-active {
    border-color: var(--st-accent);
    box-shadow: 0 0 0 1px var(--st-accent-soft);
}

.storefront-product-info {
    display: flex;
    flex-direction: column;
    gap: 22px;
    position: sticky;
    top: calc(var(--st-header-h) + 24px);
    min-width: 0;
}

.storefront-product-brand {
    margin: 0;
    font-family: var(--st-display);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--st-champagne);
}

.storefront-product-title {
    margin: 0;
    font-family: var(--st-display);
    font-size: clamp(30px, 4.5vw, 44px);
    font-weight: 600;
    letter-spacing: -0.025em;
    line-height: 1.1;
    color: var(--st-fg-strong);
}

.storefront-product-price {
    display: flex;
    align-items: baseline;
    gap: 14px;
    flex-wrap: wrap;
    font-family: var(--st-display);
    font-size: 24px;
    font-weight: 600;
    color: var(--st-fg-strong);
    letter-spacing: -0.01em;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--st-border);
}

.storefront-product-price-old {
    text-decoration: line-through;
    color: var(--st-fg-soft);
    font-size: 17px;
    font-weight: 500;
}

.storefront-product-price-sale { color: var(--st-sale); }

.storefront-product-price-muted {
    font-family: var(--st-sans);
    font-size: 14px;
    color: var(--st-fg-muted);
    font-weight: 500;
}

.storefront-product-stock {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--st-display);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--st-fg-muted);
}

.storefront-product-stock::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: var(--st-success);
    box-shadow: 0 0 8px rgba(111, 215, 168, 0.6);
}

.storefront-product-stock.is-out::before {
    background: var(--st-sale);
    box-shadow: 0 0 8px rgba(255, 111, 111, 0.5);
}

.storefront-stock-ok { color: var(--st-success); }
.storefront-stock-out { color: var(--st-sale); }

.storefront-product-form {
    display: flex;
    flex-direction: column;
    gap: 22px;
    margin-top: 6px;
}

.storefront-product-attributes { display: grid; gap: 22px; }

.storefront-product-attribute-label {
    font-family: var(--st-display);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    margin-bottom: 12px;
    color: var(--st-fg-strong);
}

.storefront-product-attribute-value {
    color: var(--st-fg-muted);
    font-family: var(--st-sans);
    font-weight: 500;
    font-size: 14px;
    text-transform: none;
    letter-spacing: 0;
    margin-left: 8px;
}

.storefront-product-attribute-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

body.theme-store-midnight .storefront-product-swatch {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 50px;
    min-height: 46px;
    padding: 6px 18px;
    border: 1px solid var(--st-border-strong);
    background: var(--st-noir-2);
    color: var(--st-fg);
    cursor: pointer;
    border-radius: var(--st-radius-pill);
    font-family: var(--st-display);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.04em;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: none;
}

body.theme-store-midnight .storefront-product-swatch::before { display: none; }

body.theme-store-midnight .storefront-product-swatch:hover {
    background: var(--st-noir-3);
    color: var(--st-fg-strong);
    border-color: var(--st-accent);
    box-shadow: 0 0 0 1px var(--st-accent-soft);
}

body.theme-store-midnight .storefront-product-swatch.is-selected,
body.theme-store-midnight .storefront-product-swatch.is-selected:hover {
    background: var(--st-accent-bg);
    color: var(--st-accent-fg);
    border-color: var(--st-accent);
    box-shadow: 0 0 0 1px var(--st-accent-soft);
}

.storefront-product-swatch.is-disabled {
    opacity: 0.35;
    cursor: not-allowed;
    text-decoration: line-through;
}

.storefront-product-swatch-color {
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--st-border-strong);
    background-clip: content-box;
    border-radius: 50%;
    position: relative;
    min-width: 44px;
    min-height: 44px;
}

.storefront-product-swatch-color::after {
    content: '';
    position: absolute;
    inset: -5px;
    border: 1px solid transparent;
    border-radius: 50%;
    transition: border-color 0.2s ease;
}

.storefront-product-swatch-color.is-selected::after {
    border-color: var(--st-accent);
}

.storefront-product-swatch-image {
    width: 56px;
    height: 56px;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--st-border-strong);
    border-radius: var(--st-radius-sm);
    position: relative;
    min-width: 56px;
    min-height: 56px;
}

.storefront-product-swatch-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.storefront-product-swatch-image.is-selected {
    outline: 2px solid var(--st-accent);
    outline-offset: 3px;
}

.storefront-product-variation-feedback {
    color: var(--st-sale);
    font-family: var(--st-sans);
    font-size: 14px;
}

.storefront-product-variation-clear {
    width: fit-content;
    border: 0;
    background: transparent;
    color: var(--st-fg-muted);
    padding: 0;
    font-family: var(--st-sans);
    font-size: 13px;
    text-decoration: none;
}

.storefront-product-variation-clear:hover {
    color: var(--st-fg);
    background: transparent;
    text-decoration: underline;
}

.storefront-product-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: stretch;
    margin-top: 4px;
}

body.theme-store-midnight .st-qty-stepper {
    display: inline-flex;
    align-items: center;
    height: 56px;
    background: var(--st-noir-2);
    border: 1px solid var(--st-border-strong);
    border-radius: var(--st-radius-pill);
    overflow: hidden;
    padding: 0;
}

body.theme-store-midnight .st-qty-stepper > button {
    width: 48px;
    height: 100%;
    border: 0;
    background: transparent;
    color: var(--st-fg);
    cursor: pointer;
    font-size: 18px;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
    letter-spacing: 0;
    text-transform: none;
    transform: none;
}

body.theme-store-midnight .st-qty-stepper > button::before { display: none; }

body.theme-store-midnight .st-qty-stepper > button:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--st-champagne);
    box-shadow: none;
    transform: none;
}

body.theme-store-midnight .st-qty-stepper > input,
body.theme-store-midnight .st-qty-stepper > input.storefront-product-qty {
    width: 56px;
    height: 100%;
    text-align: center;
    border: 0;
    background: transparent;
    color: var(--st-fg-strong);
    font-family: var(--st-display);
    font-size: 16px;
    font-weight: 600;
    padding: 0;
    box-shadow: none;
    border-radius: 0;
}

body.theme-store-midnight .st-qty-stepper > input::-webkit-outer-spin-button,
body.theme-store-midnight .st-qty-stepper > input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

body.theme-store-midnight .st-qty-stepper > input:focus {
    outline: 0;
    box-shadow: none;
    border-color: transparent;
    background: transparent;
}

.storefront-product-add {
    flex: 1;
    height: 56px;
    min-width: 220px;
    font-size: 12px;
    letter-spacing: 0.2em;
}

.st-product-actions-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: stretch;
}

.st-product-actions-row .button-secondary {
    flex: 1 1 200px;
    height: 56px;
}

.st-product-extras {
    display: grid;
    gap: 14px;
    color: var(--st-fg);
    font-family: var(--st-sans);
    font-size: 13px;
    background: var(--st-noir-1);
    border: 1px solid var(--st-border);
    border-radius: var(--st-radius);
    padding: 22px 24px;
    margin: 10px 0 0;
    list-style: none;
}

.st-product-extra {
    position: relative;
    padding-left: 29px;
    line-height: 1.55;
}

.st-product-extra::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.08em;
    width: 18px;
    height: 18px;
    border: 1px solid color-mix(in srgb, var(--st-champagne) 72%, transparent);
    border-radius: 999px;
    background: rgba(218, 195, 153, 0.1);
    box-shadow: 0 0 14px rgba(218, 195, 153, 0.18);
}

.st-product-extra::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 4px;
    width: 5px;
    height: 9px;
    border: solid var(--st-champagne);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    color: var(--st-champagne);
}

.storefront-product-description {
    border-top: 1px solid var(--st-border);
    padding-top: 32px;
    margin-top: 14px;
    color: var(--st-fg);
    font-family: var(--st-sans);
    line-height: 1.75;
    font-size: 15px;
    max-width: 100%;
    overflow-wrap: break-word;
    text-align: left;
    word-break: normal;
}

.storefront-product-description h2 {
    font-family: var(--st-display);
    font-size: 22px;
    margin: 0 0 16px;
    font-weight: 600;
    color: var(--st-fg-strong);
}

.storefront-product-description * {
    max-width: 100%;
}

.storefront-product-description img,
.storefront-product-description video,
.storefront-product-description iframe {
    height: auto;
}

.storefront-product-description table {
    display: block;
    overflow-x: auto;
}

@media (max-width: 880px) {
    .storefront-product-info {
        gap: 16px;
        position: static;
    }

    .storefront-product-description {
        padding-top: 24px;
        margin-top: 0;
        line-height: 1.7;
    }
}

.storefront-product-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
    font-family: var(--st-sans);
    font-size: 12px;
    color: var(--st-fg-muted);
    margin-top: 20px;
}

.storefront-product-tags a {
    background: var(--st-noir-2);
    color: var(--st-fg);
    padding: 6px 14px;
    border-radius: 999px;
    text-decoration: none;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    border: 1px solid var(--st-border);
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.storefront-product-tags a:hover {
    background: var(--st-accent-bg);
    color: var(--st-accent-fg);
    border-color: var(--st-accent);
}

.st-product-mobile-cta { display: none; }

@media (max-width: 880px) {
    .st-product-mobile-cta {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 80;
        background: rgba(10, 11, 14, 0.92);
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
        border-top: 1px solid var(--st-border);
        padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
        display: flex;
        gap: 12px;
        align-items: center;
        box-shadow: 0 -16px 32px rgba(0, 0, 0, 0.5);
    }

    .st-product-mobile-cta .st-mobile-price {
        flex: 1;
        font-family: var(--st-display);
        font-size: 18px;
        font-weight: 600;
        line-height: 1.2;
        color: var(--st-fg-strong);
        display: flex;
        flex-direction: column;
        gap: 1px;
    }

    .st-product-mobile-cta .st-mobile-price small {
        font-family: var(--st-sans);
        font-size: 11px;
        font-weight: 500;
        color: var(--st-fg-soft);
        text-decoration: line-through;
        letter-spacing: 0.06em;
    }

    .st-product-mobile-cta .button {
        flex: 0 0 auto;
        height: 48px;
        padding: 0 22px;
    }

    body.theme-store-midnight.has-mobile-cta { padding-bottom: 92px; }
}

/* ================================================================
   PRODUCTOS RELACIONADOS
   ================================================================ */
.storefront-related-card {
    background: transparent;
    border: 0;
    box-shadow: none;
    backdrop-filter: none;
    padding: 0;
    margin-top: 80px;
}

.storefront-related-card h2 {
    margin: 0 0 28px;
    font-family: var(--st-display);
    font-size: clamp(26px, 3.6vw, 36px);
    font-weight: 600;
    color: var(--st-fg-strong);
    padding-bottom: 18px;
    border-bottom: 1px solid var(--st-border);
}

.storefront-related-card .st-product-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.storefront-related-card.is-fallback .st-product-card:nth-child(n+6) { display: none; }

@media (max-width: 1220px) {
    .storefront-related-card .st-product-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
    .storefront-related-card.is-fallback .st-product-card:nth-child(n+5) { display: none; }
}

@media (max-width: 977px) {
    .storefront-related-card .st-product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .storefront-related-card.is-fallback .st-product-card:nth-child(n+4) { display: none; }
}

@media (max-width: 735px) {
    .storefront-related-card .st-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .storefront-related-card.is-fallback .st-product-card:nth-child(n+3) { display: none; }
}

.storefront-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 28px;
}

.storefront-related-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
    color: var(--st-fg);
    text-decoration: none;
    background: transparent;
    border: 0;
    padding: 0;
    border-radius: 0;
}

.storefront-related-item img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: var(--st-radius);
    background: var(--st-noir-2);
    border: 1px solid var(--st-border);
    transition: transform 0.5s ease, border-color 0.3s ease;
}

.storefront-related-item:hover img {
    transform: scale(1.04);
    border-color: var(--st-accent);
    box-shadow: 0 0 0 1px var(--st-accent-soft);
}

.storefront-related-item strong {
    font-family: var(--st-display);
    font-weight: 500;
    font-size: 14px;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--st-fg-strong);
}

.storefront-related-item span {
    color: var(--st-fg);
    font-family: var(--st-display);
    font-weight: 500;
    font-size: 14px;
}

/* ================================================================
   RESEÑAS
   ================================================================ */
.storefront-reviews-card {
    background: transparent;
    border: 0;
    box-shadow: none;
    backdrop-filter: none;
    padding: 0;
    margin-top: 80px;
    border-top: 1px solid var(--st-border);
}

.storefront-reviews-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 36px 0;
}

.storefront-reviews-head h2 {
    margin: 0;
    font-family: var(--st-display);
    font-size: clamp(26px, 3.6vw, 36px);
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--st-fg-strong);
}

.storefront-review-write {
    flex: 0 0 auto;
    min-width: 180px;
}

.storefront-review-summary {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    align-items: center;
    gap: 36px;
    padding: 32px 36px;
    border: 1px solid var(--st-border);
    border-radius: var(--st-radius-lg);
    background: var(--st-noir-1);
}

.storefront-review-average {
    display: grid;
    justify-items: center;
    gap: 10px;
    text-align: center;
    border-right: 1px solid var(--st-border);
    padding-right: 24px;
}

@media (max-width: 720px) {
    .storefront-review-average { border-right: 0; padding-right: 0; }
}

.storefront-review-average strong {
    color: var(--st-fg-strong);
    font-family: var(--st-display);
    font-size: clamp(54px, 8vw, 80px);
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.04em;
}

.storefront-review-average span {
    color: var(--st-fg-muted);
    font-family: var(--st-display);
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    font-weight: 600;
}

.storefront-review-bars { display: grid; gap: 12px; }

.storefront-review-bar-row {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr) 32px;
    align-items: center;
    gap: 14px;
    color: var(--st-fg-muted);
    font-family: var(--st-display);
    font-size: 12px;
    letter-spacing: 0.06em;
}

.storefront-review-bar-row strong {
    color: var(--st-fg);
    font-size: 12px;
    font-weight: 500;
    text-align: right;
}

.storefront-review-bar {
    height: 4px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--st-noir-3);
    position: relative;
}

.storefront-review-bar span {
    /* Fondo de la barra: usa el color de la marca. */
    display: block;
    height: 100%;
    background: var(--st-accent-bg);
}

.storefront-review-empty {
    margin: 0;
    padding: 0 0 50px;
    color: var(--st-fg-muted);
    font-family: var(--st-sans);
    font-size: 15px;
    line-height: 1.6;
    text-align: center;
}

.storefront-review-form-wrap {
    max-height: 0;
    margin: 0;
    padding: 0 clamp(24px, 4vw, 36px);
    overflow: hidden;
    border: 0 solid var(--st-border);
    border-radius: var(--st-radius-lg);
    background: var(--st-noir-1);
    box-shadow: none;
    opacity: 0;
    pointer-events: none;
    transition:
        max-height 0.34s ease,
        margin-bottom 0.34s ease,
        padding-top 0.34s ease,
        padding-bottom 0.34s ease,
        border-width 0.34s ease,
        opacity 0.2s ease;
}

.storefront-review-form-wrap.is-open {
    max-height: 1200px;
    margin-bottom: 36px;
    padding-top: clamp(28px, 4vw, 36px);
    padding-bottom: clamp(28px, 4vw, 36px);
    border-width: 1px;
    opacity: 1;
    pointer-events: auto;
}

.storefront-review-form-wrap h3 {
    margin: 0 0 22px;
    color: var(--st-fg-strong);
    font-family: var(--st-display);
    font-size: clamp(20px, 3vw, 26px);
    font-weight: 600;
    letter-spacing: -0.02em;
}

.storefront-review-feedback.sa-flash {
    margin: 0 0 18px;
    padding: 10px 14px;
    border-radius: var(--st-radius-sm);
    border: 1px solid var(--st-border);
    background: var(--st-noir-2);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
    box-shadow: none;
}

.storefront-review-feedback.sa-flash.is-success {
    border-color: var(--st-success);
    color: var(--st-success);
    background: rgba(111, 215, 168, 0.08);
}

.storefront-review-feedback.sa-flash.is-error {
    border-color: var(--st-sale);
    color: var(--st-sale);
    background: rgba(255, 111, 111, 0.08);
}

.storefront-review-form { display: grid; gap: 18px; max-width: none; }

.storefront-review-form-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 0.85fr);
    gap: 18px 32px;
    align-items: start;
}

.storefront-review-form label {
    display: block;
    margin-bottom: 6px;
    font-family: var(--st-display);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--st-fg-muted);
}

.storefront-review-form textarea { resize: vertical; }

.storefront-review-help {
    margin-top: 6px;
    color: var(--st-fg-soft);
    font-size: 13px;
}

.storefront-review-form .error-text {
    margin-top: 6px;
    font-size: 12.5px;
}

.storefront-review-form button.is-loading {
    opacity: 0.75;
    cursor: wait;
}

.storefront-review-stars {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 6px;
    min-height: 38px;
}

.storefront-review-stars label {
    display: inline-flex;
    margin: 0;
    cursor: pointer;
    padding: 0;
    background: transparent;
    border: 0;
    text-transform: none;
    letter-spacing: 0;
    color: inherit;
}

.storefront-review-stars input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.storefront-review-star-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 36px;
    color: var(--st-noir-4);
    font-size: 28px;
    line-height: 1;
    transition: color 0.14s ease, transform 0.14s ease;
}

.storefront-review-star-icon .bi-star-fill { display: none; }

.storefront-review-stars label:hover .storefront-review-star-icon,
.storefront-review-stars label:hover ~ label .storefront-review-star-icon,
.storefront-review-stars label:has(input:checked) .storefront-review-star-icon,
.storefront-review-stars label:has(input:checked) ~ label .storefront-review-star-icon {
    color: var(--st-champagne);
}

.storefront-review-stars label:hover .storefront-review-star-icon {
    transform: translateY(-1px) scale(1.06);
}

.storefront-review-stars label:hover .bi-star,
.storefront-review-stars label:hover ~ label .bi-star,
.storefront-review-stars label:has(input:checked) .bi-star,
.storefront-review-stars label:has(input:checked) ~ label .bi-star {
    display: none;
}

.storefront-review-stars label:hover .bi-star-fill,
.storefront-review-stars label:hover ~ label .bi-star-fill,
.storefront-review-stars label:has(input:checked) .bi-star-fill,
.storefront-review-stars label:has(input:checked) ~ label .bi-star-fill {
    display: inline-block;
}

.storefront-review-stars label:focus-within .storefront-review-star-icon {
    outline: 2px solid var(--st-accent);
    outline-offset: 2px;
}

.storefront-review-list {
    display: grid;
    gap: 0;
    margin-top: 20px;
}

.storefront-review-item {
    padding: 28px 12px 32px;
    border-top: 1px solid var(--st-border);
}

.storefront-review-item-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 10px;
}

.storefront-review-item-head strong {
    color: var(--st-fg-strong);
    font-family: var(--st-display);
    font-size: 15px;
    font-weight: 600;
}

.storefront-review-item-head time {
    color: var(--st-fg-soft);
    font-family: var(--st-display);
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    white-space: nowrap;
}

.storefront-review-rating {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    color: var(--st-champagne);
    font-size: 16px;
    margin-bottom: 10px;
}

.storefront-review-item p {
    color: var(--st-fg);
    font-family: var(--st-sans);
    font-size: 15px;
    line-height: 1.7;
    margin: 0;
}

.storefront-review-image {
    display: block;
    width: min(100%, 360px);
    height: auto;
    margin-top: 18px;
    border-radius: var(--st-radius);
    object-fit: contain;
}

@media (max-width: 720px) {
    .storefront-reviews-head {
        align-items: stretch;
        flex-direction: column;
    }
    .storefront-review-write { width: 100%; }
    .storefront-review-summary {
        grid-template-columns: 1fr;
        padding: 26px 22px;
        gap: 26px;
    }
    .storefront-review-average { padding-bottom: 22px; border-bottom: 1px solid var(--st-border); }
    .storefront-review-bar-row {
        grid-template-columns: 80px minmax(0, 1fr) 28px;
        gap: 10px;
    }
    .storefront-review-form-grid { grid-template-columns: 1fr; }
}

/* ================================================================
   CARRITO
   ================================================================ */
.st-cart-page { padding: 24px 0 80px; }

.st-page-title {
    margin: 0 0 36px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--st-border);
    font-family: var(--st-display);
    font-size: clamp(34px, 4.6vw, 52px);
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--st-fg-strong);
}

.st-cart-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 56px;
    align-items: start;
}

@media (max-width: 880px) {
    .st-cart-grid { grid-template-columns: 1fr; gap: 30px; }
}

.st-cart-list {
    background: transparent;
    border: 0;
    border-top: 1px solid var(--st-border);
    border-radius: 0;
    padding: 0;
}

.st-cart-item {
    display: grid;
    grid-template-columns: 110px 1fr auto;
    gap: 24px;
    padding: 24px 0;
    border-bottom: 1px solid var(--st-border);
    align-items: center;
}

.st-cart-item:last-child { border-bottom: 0; }

.st-cart-item-img {
    width: 110px;
    height: 138px;
    border-radius: var(--st-radius);
    background: var(--st-noir-2);
    border: 1px solid var(--st-border);
    object-fit: cover;
    display: block;
}

.st-cart-item-info { display: grid; gap: 6px; min-width: 0; }
.st-cart-item-name {
    font-family: var(--st-display);
    font-weight: 600;
    font-size: 17px;
    color: var(--st-fg-strong);
    line-height: 1.2;
}
.st-cart-item-name a { color: inherit; }
.st-cart-item-name a:hover { color: var(--st-champagne); }

.st-cart-item-meta {
    color: var(--st-fg-muted);
    font-family: var(--st-display);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.st-cart-item-controls {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 10px;
}

body.theme-store-midnight .st-cart-item-controls .st-qty-stepper { height: 40px; }
body.theme-store-midnight .st-cart-item-controls .st-qty-stepper > button { width: 36px; font-size: 16px; }
body.theme-store-midnight .st-cart-item-controls .st-qty-stepper > input,
body.theme-store-midnight .st-cart-item-controls .st-qty-stepper > input.storefront-product-qty {
    width: 44px; font-size: 13px; font-family: var(--st-display);
}

body.theme-store-midnight .st-cart-item-trash {
    background: transparent;
    color: var(--st-fg-muted);
    border: 0;
    padding: 6px 0;
    border-radius: 0;
    font-family: var(--st-display);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: none;
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-color: var(--st-border-strong);
    height: auto;
}

body.theme-store-midnight .st-cart-item-trash::before { display: none; }

body.theme-store-midnight .st-cart-item-trash:hover {
    background: transparent;
    color: var(--st-sale);
    text-decoration-color: var(--st-sale);
    transform: none;
    box-shadow: none;
}

.st-cart-item-side {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-end;
    text-align: right;
    min-width: 120px;
}

.st-cart-item-price {
    font-family: var(--st-display);
    font-weight: 600;
    font-size: 19px;
    color: var(--st-fg-strong);
}

.st-cart-item-unit {
    color: var(--st-fg-muted);
    font-family: var(--st-display);
    font-size: 11px;
    letter-spacing: 0.06em;
}

@media (max-width: 540px) {
    .st-cart-item {
        grid-template-columns: 84px 1fr;
        gap: 16px;
        padding: 22px 0;
    }
    .st-cart-item-img { width: 84px; height: 104px; }
    .st-cart-item-side {
        grid-column: 1 / -1;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        text-align: left;
    }
}

.st-cart-summary {
    background: var(--st-noir-1);
    border: 1px solid var(--st-border);
    border-radius: var(--st-radius-lg);
    padding: 28px 26px;
    display: grid;
    gap: 16px;
    position: sticky;
    top: calc(var(--st-header-h) + 24px);
    box-shadow: var(--st-shadow);
}

.st-cart-summary h3 {
    margin: 0 0 4px;
    font-family: var(--st-display);
    font-size: 20px;
    font-weight: 600;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--st-border);
    color: var(--st-fg-strong);
}

.st-cart-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--st-sans);
    font-size: 14px;
    gap: 12px;
}

.st-cart-summary-row .muted {
    color: var(--st-fg-muted);
    font-weight: 500;
    letter-spacing: 0.04em;
}

.st-cart-summary-total {
    border-top: 1px solid var(--st-border);
    padding-top: 18px;
    margin-top: 8px;
    font-family: var(--st-display);
    font-size: 17px;
    font-weight: 600;
    color: var(--st-fg-strong);
}

.st-cart-summary-total .total {
    font-size: 26px;
    letter-spacing: -0.01em;
}

.st-cart-summary .button { width: 100%; height: 56px; }
.st-cart-summary .st-cart-keep {
    text-align: center;
    color: var(--st-fg-muted);
    font-family: var(--st-display);
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 500;
}

.st-cart-summary .st-cart-keep a {
    color: var(--st-fg);
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-color: var(--st-border-strong);
    font-weight: 600;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.st-cart-summary .st-cart-keep a:hover {
    /* Texto sin fondo: usamos fg-strong y reservamos el accent para
       el subrayado para mantener legibilidad con cualquier brand. */
    color: var(--st-fg-strong);
    text-decoration-color: var(--st-accent);
}

/* ================================================================
   CHECKOUT
   ================================================================ */
.st-checkout-page { padding: 24px 0 96px; }

.st-checkout-form { display: block; }

.st-checkout-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 400px;
    grid-template-areas:
        "sections summary"
        "actions  summary";
    gap: 56px;
    align-items: start;
}

.st-checkout-sections { grid-area: sections; min-width: 0; display: grid; gap: 20px; }
.st-checkout-summary { grid-area: summary; }
.st-checkout-actions { grid-area: actions; }

@media (max-width: 960px) {
    .st-checkout-grid {
        grid-template-columns: 1fr;
        grid-template-areas:
            "sections"
            "summary"
            "actions";
        gap: 24px;
    }
    .st-checkout-summary { position: static; top: auto; }
    .st-checkout-actions {
        position: static;
        z-index: auto;
        width: 100%;
        margin-top: 0;
    }
}

.st-form-section {
    background: var(--st-noir-1);
    border: 1px solid var(--st-border);
    border-radius: var(--st-radius-lg);
    padding: 28px 32px;
    margin-bottom: 0;
}

.st-form-section + .st-form-section { margin-top: 0; }

body.theme-store-midnight .st-form-section h2 {
    margin: 0 0 24px;
    font-family: var(--st-display);
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--st-fg-strong);
}

body.theme-store-midnight .st-form-section label {
    margin-bottom: 6px;
}

.st-form-section .st-section-eyebrow {
    display: inline-block;
    background: var(--st-accent-bg);
    color: var(--st-accent-fg);
    border-radius: var(--st-radius-pill);
    padding: 4px 12px;
    font-family: var(--st-display);
    font-size: 10px;
    font-weight: 600;
    margin: 0 0 12px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
}

.st-field-grid {
    display: grid;
    gap: 18px 18px;
    grid-template-columns: 1fr 1fr;
}

@media (max-width: 540px) {
    .st-field-grid { grid-template-columns: 1fr; gap: 16px; }
    .st-form-section { padding: 22px 20px; }
}

.st-field-grid > .st-field-full { grid-column: 1 / -1; }

.st-checkout-coupon-accordion summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    cursor: pointer;
    list-style: none;
    font-family: var(--st-display);
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--st-fg-strong);
}

.st-checkout-coupon-accordion summary::-webkit-details-marker { display: none; }

.st-checkout-coupon-icon {
    flex: 0 0 auto;
    color: var(--st-champagne);
    transition: transform 0.26s ease;
}

.st-checkout-coupon-accordion[open] .st-checkout-coupon-icon { transform: rotate(180deg); }
.st-checkout-coupon-accordion.is-closing .st-checkout-coupon-icon { transform: rotate(0deg); }

.st-checkout-coupon-panel {
    display: grid;
    gap: 12px;
    padding-top: 18px;
    opacity: 0;
    overflow: hidden;
    transform: translateY(-4px);
    transition: height 0.26s ease, opacity 0.2s ease, transform 0.2s ease;
    will-change: height, opacity, transform;
}

.st-checkout-coupon-accordion[open]:not(.is-closing) .st-checkout-coupon-panel {
    opacity: 1;
    transform: translateY(0);
}

.st-checkout-coupon-accordion.is-closing .st-checkout-coupon-panel {
    opacity: 0;
    transform: translateY(-4px);
}

.st-checkout-coupon-help { margin: 0; }

.st-checkout-coupon-field {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
}

.st-checkout-coupon-field input {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
}

.st-checkout-coupon-apply {
    min-height: 47px;
    padding-inline: 20px;
    white-space: nowrap;
}

.st-checkout-coupon-help,
.st-checkout-coupon-feedback {
    color: var(--st-fg-muted);
    font-size: 13px;
    line-height: 1.45;
}

.st-checkout-coupon-feedback.is-success {
    color: #86efac;
    font-weight: 700;
}

.st-checkout-coupon-feedback.is-error {
    color: #fecaca;
    font-weight: 700;
}

@media (max-width: 540px) {
    .st-checkout-coupon-field { grid-template-columns: 1fr; }
    .st-checkout-coupon-apply { width: 100%; }
}

body.theme-store-midnight .st-form-section .ts-wrapper.single .ts-control {
    display: flex;
    align-items: center;
    min-height: 47px;
    padding: 8px 38px 8px 14px;
    background: var(--st-noir-2);
    border: 1px solid var(--st-border);
    border-radius: var(--st-radius-sm);
    box-shadow: none;
    color: var(--st-fg);
    font-family: var(--st-sans);
    font-size: 15px;
}

body.theme-store-midnight .st-form-section .ts-wrapper.single .ts-control .item {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    line-height: 1.25;
}

body.theme-store-midnight .st-form-section .ts-wrapper.focus .ts-control {
    border-color: var(--st-accent);
    background: var(--st-noir-3);
    box-shadow: 0 0 0 4px var(--st-accent-soft);
}

body.theme-store-midnight .st-form-section .ts-wrapper.disabled .ts-control {
    opacity: 0.55;
}

body.theme-store-midnight .st-form-section .ts-control > input {
    width: auto !important;
    flex: 1 1 auto;
    min-height: 0 !important;
    background: transparent !important;
    color: var(--st-fg) !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    font-size: 15px;
    font-family: var(--st-sans);
}

body.theme-store-midnight .st-form-section .ts-dropdown {
    border: 1px solid var(--st-border);
    border-radius: var(--st-radius);
    box-shadow: var(--st-shadow);
    overflow: hidden;
    background: var(--st-noir-2);
}

body.theme-store-midnight .st-form-section .ts-dropdown .option,
body.theme-store-midnight .st-form-section .ts-dropdown .no-results {
    padding: 12px 14px;
    font-size: 14px;
    font-family: var(--st-sans);
    color: var(--st-fg);
}

body.theme-store-midnight .st-form-section .ts-dropdown .active {
    background: var(--st-accent-soft);
    color: var(--st-fg-strong);
}

.st-checkout-shipping-note {
    background: var(--st-noir-2);
    border: 1px solid var(--st-border);
    border-radius: var(--st-radius);
    color: var(--st-fg-muted);
    font-family: var(--st-sans);
    font-size: 14px;
    padding: 14px 18px;
    margin-bottom: 14px;
}

.st-checkout-dac-agency {
    display: grid;
    gap: 8px;
    margin-top: 12px;
}

body.theme-store-midnight .st-radio-card {
    display: block;
    background: var(--st-noir-2);
    border: 1px solid var(--st-border);
    border-radius: var(--st-radius);
    padding: 16px 20px;
    cursor: pointer;
    margin-bottom: 10px;
    transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
    /* Reset de los estilos uppercase + letter-spacing que vienen
       heredados de la regla genérica `body.theme-store-midnight label`. */
    text-transform: none;
    letter-spacing: 0;
    font-style: normal;
    font-weight: 400;
    font-size: 15px;
    font-family: var(--st-sans);
    color: var(--st-fg);
}

body.theme-store-midnight .st-radio-card * {
    text-transform: none;
    letter-spacing: 0;
}

.st-radio-card:last-child { margin-bottom: 0; }

.st-radio-card:hover {
    border-color: var(--st-border-strong);
    background: var(--st-noir-3);
}

.st-radio-card.is-selected,
.st-radio-card:has(input[type="radio"]:checked) {
    border-color: var(--st-accent);
    background: var(--st-noir-3);
    box-shadow: 0 0 0 1px var(--st-accent-soft);
}

.st-radio-card.is-unavailable { opacity: 0.5; }

.st-radio-card.is-unavailable .st-radio-card-amount {
    color: var(--st-fg-muted);
    font-weight: 500;
    font-size: 13px;
}

.st-radio-card-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
}

.st-radio-card-name {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--st-display);
    font-size: 15px;
    font-weight: 600;
    color: var(--st-fg-strong);
}

.st-radio-card-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin: 9px 0 0;
    padding: 5px 9px;
    border-radius: 999px;
    font-family: var(--st-sans);
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
}

.st-radio-card-badge[hidden] {
    display: none !important;
}

.st-radio-card-badge.is-warning {
    background: #2d220d;
    border: 1px solid #8b6721;
    color: #f4d28a;
}

.st-payment-method-logo {
    display: block;
    width: auto;
    max-width: 82px;
    height: 22px;
    padding: 2px 5px;
    border-radius: 4px;
    background: #fff;
    object-fit: contain;
    flex: 0 0 auto;
}

.st-radio-card-name input[type="radio"] {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: var(--st-accent);
}

.st-radio-card-info {
    color: var(--st-fg-muted);
    font-family: var(--st-sans);
    font-style: normal;
    font-size: 13px;
    margin-top: 6px;
}

.st-radio-card-amount {
    font-family: var(--st-display);
    font-weight: 600;
    font-size: 16px;
    color: var(--st-fg-strong);
}

.st-checkout-summary {
    background: var(--st-noir-1);
    border: 1px solid var(--st-border);
    border-radius: var(--st-radius-lg);
    padding: 28px 26px;
    display: grid;
    gap: 16px;
    position: sticky;
    top: calc(var(--st-header-h) + 24px);
    box-shadow: var(--st-shadow);
}

.st-checkout-summary h2 {
    margin: 0;
    font-family: var(--st-display);
    font-size: 20px;
    font-weight: 600;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--st-border);
    color: var(--st-fg-strong);
}

.st-summary-list {
    display: grid;
    gap: 14px;
    padding: 4px 0 14px;
    border-bottom: 1px solid var(--st-border);
}

.st-summary-line {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    font-family: var(--st-sans);
    font-size: 14px;
}

.st-summary-product {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
}

.st-summary-thumb {
    width: 52px;
    height: 64px;
    flex: 0 0 52px;
    border-radius: var(--st-radius-sm);
    border: 1px solid var(--st-border);
    background: var(--st-noir-2);
    object-fit: cover;
    display: block;
}

.st-summary-thumb.is-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--st-fg-soft);
    font-size: 16px;
}

.st-summary-line strong {
    font-family: var(--st-display);
    font-weight: 500;
    font-size: 14px;
    display: block;
    color: var(--st-fg-strong);
}

.st-summary-line .muted {
    color: var(--st-fg-muted);
    font-family: var(--st-display);
    font-size: 11px;
    letter-spacing: 0.08em;
}

.st-summary-line .price {
    font-family: var(--st-display);
    font-weight: 500;
    font-size: 14px;
    color: var(--st-fg);
}

.st-summary-totals { display: grid; gap: 10px; padding-top: 6px; }

.st-summary-totals .row {
    display: flex;
    justify-content: space-between;
    font-family: var(--st-sans);
    font-size: 13px;
    color: var(--st-fg-muted);
}

.st-summary-totals .total {
    border-top: 1px solid var(--st-border);
    padding-top: 16px;
    font-family: var(--st-display);
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--st-fg-strong);
}

.st-checkout-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.st-checkout-actions .button { flex: 1; height: 56px; }

@media (max-width: 540px) {
    .st-checkout-actions { flex-direction: column; gap: 12px; }
    .st-checkout-actions .button { width: 100%; flex: none; }
}

/* ================================================================
   PEDIDO CONFIRMADO
   ================================================================ */
.st-success-page { padding: 32px 0 80px; }

.st-success-card {
    max-width: 720px;
    margin: 28px auto 0;
    padding: 56px 44px;
    background: var(--st-noir-1);
    border: 1px solid var(--st-border);
    border-radius: var(--st-radius-lg);
    text-align: center;
    box-shadow: var(--st-shadow);
    position: relative;
    overflow: hidden;
}

.st-success-card::before {
    content: '';
    position: absolute;
    inset: 0;
    /* Halo dinámico tintado con el color de la marca. */
    background:
        radial-gradient(500px 220px at 50% -20%, var(--st-accent-glow), transparent 70%);
    pointer-events: none;
}

.st-success-icon {
    width: 76px;
    height: 76px;
    margin: 0 auto 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--st-noir-2);
    color: var(--st-success);
    border: 1px solid var(--st-success);
    border-radius: 50%;
    font-size: 32px;
    position: relative;
    box-shadow: 0 0 0 6px rgba(111, 215, 168, 0.08);
}

.st-success-card.is-cancelled .st-success-icon { color: var(--st-fg-muted); border-color: var(--st-fg-muted); box-shadow: 0 0 0 6px rgba(168, 162, 153, 0.08); }
.st-success-card.is-paid .st-success-icon,
.st-success-card.is-shipped .st-success-icon,
.st-success-card.is-delivered .st-success-icon { color: var(--st-success); border-color: var(--st-success); }
.st-success-card.is-pending .st-success-icon {
    /* Estado "pendiente" se tiñe del color de marca. */
    color: var(--st-accent-fg);
    background: var(--st-accent-bg);
    border-color: var(--st-accent);
    box-shadow: 0 0 0 6px var(--st-accent-soft);
}

.st-success-title {
    margin: 0 0 12px;
    font-family: var(--st-display);
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--st-fg-strong);
    position: relative;
}

.st-success-lead {
    color: var(--st-fg-muted);
    margin: 0 auto 30px;
    max-width: 540px;
    font-family: var(--st-sans);
    font-size: 15px;
    line-height: 1.65;
    position: relative;
}

.st-success-meta {
    text-align: left;
    background: var(--st-noir-2);
    border: 1px solid var(--st-border);
    border-radius: var(--st-radius);
    padding: 20px 24px;
    display: grid;
    gap: 14px;
    font-family: var(--st-sans);
    font-size: 14px;
    margin: 0 0 24px;
    position: relative;
}

.st-success-meta > div {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.st-success-meta dt {
    color: var(--st-fg-muted);
    font-family: var(--st-display);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin: 0;
    flex: 0 0 auto;
}

.st-success-meta dd {
    margin: 0;
    color: var(--st-fg-strong);
    text-align: right;
    font-family: var(--st-display);
    font-size: 15px;
    font-weight: 500;
}

.st-success-meta dd .muted {
    color: var(--st-fg-muted);
    font-weight: 400;
    font-size: 12px;
    font-family: var(--st-sans);
}

.st-success-payment-instructions,
.st-success-tracking {
    text-align: left;
    background: var(--st-noir-2);
    border: 1px solid var(--st-border);
    border-radius: var(--st-radius);
    padding: 20px 24px;
    margin: 0 0 20px;
    position: relative;
}

.st-success-payment-instructions h3,
.st-success-tracking h3 {
    margin: 0 0 10px;
    font-family: var(--st-display);
    font-size: 17px;
    font-weight: 600;
    color: var(--st-fg-strong);
}

.st-success-payment-instructions p,
.st-success-tracking p {
    margin: 0;
    color: var(--st-fg-muted);
    font-family: var(--st-sans);
    font-size: 14px;
    line-height: 1.65;
}

.st-success-tracking dl {
    display: grid;
    gap: 10px;
    margin: 14px 0 0;
}

.st-success-tracking dl > div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.st-success-tracking dt {
    color: var(--st-fg-muted);
    font-family: var(--st-display);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.st-success-tracking dd {
    margin: 0;
    color: var(--st-fg-strong);
    font-family: var(--st-display);
    font-weight: 500;
    text-align: right;
    overflow-wrap: anywhere;
}

.st-success-tracking a {
    /* Texto: usamos --st-fg-strong y dejamos el accent solo en el
       subrayado para que se lea con cualquier brand. */
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: var(--st-accent);
    color: var(--st-fg-strong);
}

.st-success-totals {
    text-align: left;
    background: transparent;
    border: 1px solid var(--st-border);
    border-radius: var(--st-radius);
    padding: 18px 24px;
    margin: 0 0 26px;
    display: grid;
    gap: 10px;
    font-family: var(--st-sans);
    font-size: 14px;
    color: var(--st-fg-muted);
    position: relative;
}

.st-success-totals .row { display: flex; justify-content: space-between; }
.st-success-totals .row.total {
    border-top: 1px solid var(--st-border);
    padding-top: 14px;
    margin-top: 4px;
    font-family: var(--st-display);
    font-size: 22px;
    font-weight: 600;
    color: var(--st-fg-strong);
}

.st-success-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
}

.st-success-actions .button { min-width: 200px; height: 56px; }

@media (max-width: 540px) {
    .st-success-card { padding: 36px 22px; margin: 8px auto 0; }
    .st-success-meta > div { flex-direction: column; gap: 4px; }
    .st-success-meta dd { text-align: left; }
    .st-success-tracking dl > div { flex-direction: column; gap: 4px; }
    .st-success-tracking dd { text-align: left; }
}

/* ================================================================
   PÁGINAS ESTÁTICAS
   ================================================================ */
.st-static-page { padding: 28px 0 80px; }
.st-page-actions { margin-top: 32px; }
.st-page-actions .button { min-width: 220px; }

.st-page-card {
    max-width: 760px;
    margin: 36px auto 0;
    background: transparent;
    border: 0;
    padding: 0;
    box-shadow: none;
}

.st-page-card h1 {
    margin: 0 0 24px;
    font-family: var(--st-display);
    font-size: clamp(36px, 5.5vw, 56px);
    font-weight: 600;
    letter-spacing: -0.02em;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--st-border);
    color: var(--st-fg-strong);
}

.st-page-content {
    color: var(--st-fg);
    font-family: var(--st-sans);
    font-size: 16px;
    line-height: 1.8;
    white-space: normal;
    text-indent: 0;
}

.st-page-content p { text-indent: 0; margin-bottom: 16px; }

.st-page-content img,
.st-page-content iframe {
    max-width: 100%;
}

.st-page-content img {
    border-radius: 14px;
}

.st-page-content iframe {
    width: 100%;
    min-height: 320px;
    border: 0;
    border-radius: var(--st-radius);
}

.st-page-content .ql-align-center { text-align: center; }
.st-page-content .ql-align-right { text-align: right; }
.st-page-content .ql-align-justify { text-align: justify; }

/* ================================================================
   MANTENIMIENTO
   ================================================================ */
.st-maintenance-page {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
}

.st-maintenance-card {
    background: var(--st-noir-1);
    border: 1px solid var(--st-border);
    border-radius: var(--st-radius-lg);
    padding: 64px 48px;
    text-align: center;
    max-width: 560px;
    width: 100%;
    box-shadow: var(--st-shadow);
    position: relative;
    overflow: hidden;
}

.st-maintenance-card::before {
    content: '';
    position: absolute;
    inset: 0;
    /* Halo dinámico tintado con el color de la marca. */
    background:
        radial-gradient(500px 220px at 50% -20%, var(--st-accent-glow), transparent 70%);
    pointer-events: none;
}

.st-maintenance-card img {
    max-height: 64px;
    width: auto;
    margin: 0 auto 22px;
    position: relative;
}

.st-maintenance-card h1 {
    margin: 0 0 12px;
    font-family: var(--st-display);
    font-size: 30px;
    font-weight: 600;
    color: var(--st-fg-strong);
    position: relative;
}

.st-maintenance-card p {
    color: var(--st-fg-muted);
    font-family: var(--st-sans);
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
    position: relative;
}

.st-maintenance-card .pill {
    display: inline-flex;
    margin: 0 0 18px;
    padding: 6px 14px;
    border-radius: var(--st-radius-pill);
    background: var(--st-accent-bg);
    color: var(--st-accent-fg);
    border: 1px solid var(--st-accent);
    font-family: var(--st-display);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    position: relative;
}

.st-maintenance-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--st-accent-bg);
    color: var(--st-accent-fg);
    border: 1px solid var(--st-accent);
    border-radius: 50%;
    font-size: 26px;
    position: relative;
}

.st-maintenance-msg {
    margin: 8px 0 14px !important;
    color: var(--st-fg) !important;
    font-family: var(--st-sans);
    font-size: 15px;
    line-height: 1.5;
    position: relative;
}

.st-maintenance-logo {
    max-height: 64px;
    width: auto;
    margin: 0 auto 22px;
    display: block;
    position: relative;
}

/* ================================================================
   FOOTER (luxe dark)
   El footer usa el accent color de la tienda como fondo. Para asegurar
   legibilidad con cualquier accent, usamos siempre `--st-accent-fg`
   para el texto y los bordes.
   ================================================================ */
.st-footer {
    background: var(--st-accent-bg);
    color: var(--st-accent-fg);
    margin-top: 88px;
    padding: 76px 0 32px;
    border-top: 1px solid var(--st-accent);
}

.st-footer a { color: inherit; }

.st-footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 56px;
    margin-bottom: 56px;
    align-items: start;
}

@media (max-width: 880px) {
    .st-footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 540px) {
    .st-footer-grid { grid-template-columns: 1fr; gap: 30px; }
}

.st-footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    color: inherit;
    opacity: 1;
    max-width: 360px;
}

.st-footer-brand strong {
    color: inherit;
    font-family: var(--st-display);
    font-size: 26px;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.1;
}

.st-footer-brand p {
    margin: 0;
    color: inherit;
    opacity: 0.76;
    font-family: var(--st-sans);
    line-height: 1.6;
    font-size: 14px;
}

.st-footer-brand img {
    max-height: 38px;
    width: auto;
    display: block;
    opacity: 0.95;
}

body.theme-store-midnight .st-footer-col h4 {
    color: inherit;
    font-family: var(--st-display);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.32em;
    margin: 0 0 24px;
    opacity: 0.7;
}

.st-footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.st-footer-col a {
    text-decoration: none;
    font-family: var(--st-sans);
    font-size: 14px;
    color: inherit;
    opacity: 0.78;
    transition: opacity 0.18s ease;
}

.st-footer-col a:hover { opacity: 1; }

.st-footer-contact {
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-family: var(--st-sans);
    font-size: 14px;
    color: inherit;
    opacity: 0.86;
}

.st-footer-contact a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.st-footer-contact i {
    width: 16px;
    text-align: center;
    color: inherit;
    opacity: 0.7;
    font-size: 14px;
}

.st-footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
}

.st-footer-social a {
    display: inline-flex;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: transparent;
    color: inherit;
    align-items: center;
    justify-content: center;
    border: 1px solid currentColor;
    opacity: 0.85;
    text-decoration: none;
    transition: background-color 0.2s ease, opacity 0.2s ease;
    font-size: 16px;
}

.st-footer-social a:hover {
    opacity: 1;
    background-color: rgba(255, 255, 255, 0.16);
}

.st-footer-bottom {
    border-top: 1px solid currentColor;
    padding-top: 24px;
    color: inherit;
    opacity: 0.7;
    font-family: var(--st-display);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
}

.st-footer-bottom .made-with {
    font-family: var(--st-sans);
    text-transform: none;
    letter-spacing: 0;
    font-size: 12px;
}

.st-footer-bottom .made-with a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.st-footer-bottom .made-with a:hover { opacity: 1; }

body.theme-store-midnight .st-footer { color: var(--st-accent-fg); }

body.theme-store-midnight .st-footer h1,
body.theme-store-midnight .st-footer h2,
body.theme-store-midnight .st-footer h3,
body.theme-store-midnight .st-footer h4,
body.theme-store-midnight .st-footer h5,
body.theme-store-midnight .st-footer h6,
body.theme-store-midnight .st-footer strong,
body.theme-store-midnight .st-footer p,
body.theme-store-midnight .st-footer a,
body.theme-store-midnight .st-footer span,
body.theme-store-midnight .st-footer li,
body.theme-store-midnight .st-footer i {
    color: inherit;
}

/* ================================================================
   AJAX add-to-cart feedback
   ================================================================ */
body.theme-store-midnight [data-st-add-button] {
    position: relative;
}

body.theme-store-midnight [data-st-add-button] .st-btn-default,
body.theme-store-midnight [data-st-add-button] .st-btn-success {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

body.theme-store-midnight [data-st-add-button] .st-btn-success { color: inherit; }

body.theme-store-midnight [data-st-add-button].is-success {
    background: var(--st-success);
    color: #07221a;
    border-color: var(--st-success);
}

body.theme-store-midnight [data-st-add-button].is-success:hover {
    background: var(--st-success);
    color: #07221a;
    border-color: var(--st-success);
    box-shadow: 0 0 0 1px rgba(111, 215, 168, 0.32), 0 14px 32px rgba(111, 215, 168, 0.28);
}

.st-toast-host {
    position: fixed;
    inset: auto 16px 16px auto;
    z-index: 1300;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: calc(100vw - 32px);
    pointer-events: none;
}

.st-toast {
    background: var(--st-noir-3);
    color: var(--st-fg-strong);
    padding: 14px 18px;
    border-radius: var(--st-radius);
    border: 1px solid var(--st-accent);
    font-family: var(--st-display);
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 500;
    box-shadow: var(--st-shadow), 0 0 0 4px var(--st-accent-soft);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.22s ease, transform 0.22s ease;
    pointer-events: auto;
}

.st-toast.is-visible { opacity: 1; transform: translateY(0); }
.st-toast.is-success { background: var(--st-success); color: #07221a; border-color: var(--st-success); }
.st-toast.is-error { background: var(--st-sale); color: #1a0707; border-color: var(--st-sale); }

.st-drawer-count {
    display: inline-block;
    min-width: 22px;
    padding: 0 8px;
    height: 22px;
    line-height: 22px;
    text-align: center;
    border-radius: 999px;
    background: var(--st-accent-bg);
    color: var(--st-accent-fg);
    font-family: var(--st-display);
    font-size: 11px;
    font-weight: 700;
    margin-left: 8px;
    letter-spacing: 0.04em;
}

/* ================================================================
   POPUP
   ================================================================ */
.storefront-popup {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
}

.storefront-popup.is-visible { display: flex; }

.storefront-popup-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(6px);
}

.storefront-popup-dialog {
    position: relative;
    z-index: 1;
    width: min(580px, 100%);
    display: grid;
    gap: 18px;
    padding: 36px 32px;
    border-radius: var(--st-radius-lg);
    background: var(--st-noir-1);
    border: 1px solid var(--st-accent);
    box-shadow:
        var(--st-shadow-strong),
        0 0 0 6px var(--st-accent-soft);
}

.storefront-popup--centered .storefront-popup-dialog {
    background:
        radial-gradient(circle at 18% 0%, rgba(255, 255, 255, 0.08), transparent 32%),
        var(--st-noir-1);
}

.storefront-popup--split_image .storefront-popup-dialog {
    width: min(820px, 100%);
    grid-template-columns: minmax(240px, 0.95fr) minmax(0, 1fr);
    gap: 0;
    padding: 0;
    overflow: hidden;
    border-color: rgba(255, 255, 255, 0.16);
}

.storefront-popup--spotlight .storefront-popup-dialog {
    width: min(540px, 100%);
    justify-items: center;
    gap: 18px;
    padding: 42px 32px 32px;
    overflow: hidden;
    text-align: center;
    background:
        radial-gradient(circle at 50% 8%, var(--st-accent-soft), transparent 34%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 42%),
        var(--st-noir-1);
}

.storefront-popup--spotlight .storefront-popup-dialog::before {
    content: "";
    position: absolute;
    inset: -80px auto auto 50%;
    width: 180px;
    height: 180px;
    border-radius: 999px;
    background: var(--st-accent-bg);
    opacity: 0.14;
    filter: blur(8px);
    transform: translateX(-50%);
    pointer-events: none;
}

body.theme-store-midnight .storefront-popup-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    color: var(--st-fg);
    box-shadow: none;
    padding: 0;
}

body.theme-store-midnight .storefront-popup-close::before { display: none; }

body.theme-store-midnight .storefront-popup-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--st-fg-strong);
    transform: none;
    box-shadow: none;
}

.storefront-popup-media { overflow: hidden; border-radius: var(--st-radius); }
.storefront-popup-media img { width: 100%; height: auto; display: block; }

.storefront-popup--split_image .storefront-popup-media {
    min-height: 100%;
    border-radius: 0;
}

.storefront-popup--split_image .storefront-popup-media img {
    width: 100%;
    height: 100%;
    min-height: 390px;
    object-fit: cover;
}

.storefront-popup--split_image .storefront-popup-copy {
    align-self: center;
    padding: 44px 38px 36px;
}

.storefront-popup--split_image:not(.has-popup-image) .storefront-popup-dialog {
    grid-template-columns: minmax(0, 1fr);
    padding: 36px 32px;
}

.storefront-popup--spotlight .storefront-popup-media,
.storefront-popup--spotlight .storefront-popup-copy {
    position: relative;
    z-index: 1;
}

.storefront-popup--spotlight .storefront-popup-media {
    width: 118px;
    height: 118px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    box-shadow: 0 0 0 8px var(--st-accent-soft);
}

.storefront-popup--spotlight .storefront-popup-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.storefront-popup-copy { display: grid; gap: 10px; }
.storefront-popup-copy h2 {
    margin: 0;
    font-family: var(--st-display);
    font-size: 24px;
    font-weight: 600;
    color: var(--st-fg-strong);
}
.storefront-popup-copy p {
    margin: 0;
    color: var(--st-fg-muted);
    font-family: var(--st-sans);
    line-height: 1.6;
    font-size: 15px;
}

.storefront-popup-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: flex-start;
    margin-top: 8px;
}

.storefront-popup--spotlight .storefront-popup-actions {
    justify-content: center;
}

.storefront-popup-form {
    display: grid;
    gap: 10px;
    margin-top: 8px;
}
.storefront-popup-form input[type="email"] {
    width: 100%;
    min-height: 48px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--st-radius);
    background: rgba(255, 255, 255, 0.06);
    color: var(--st-fg-strong);
    padding: 0 14px;
    font: inherit;
}
.storefront-popup-consent {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    color: var(--st-fg-muted);
    font-size: 12px;
    line-height: 1.45;
}
.storefront-popup-consent input {
    width: 16px;
    height: 16px;
    margin-top: 1px;
    flex: 0 0 auto;
    accent-color: var(--st-accent);
}
.storefront-popup-form-message {
    margin: 0;
    font-size: 13px;
    line-height: 1.45;
}
.storefront-popup-form-message.is-success { color: #86efac; }
.storefront-popup-form-message.is-error { color: #fecaca; }
.storefront-popup-form .button:disabled {
    cursor: wait;
    opacity: 0.72;
}

@media (max-width: 540px) {
    .storefront-popup-dialog { padding: 26px 22px; }
    .storefront-popup-copy h2 { font-size: 20px; }
    .storefront-popup--split_image .storefront-popup-dialog {
        grid-template-columns: minmax(0, 1fr);
        padding: 0;
    }
    .storefront-popup--split_image .storefront-popup-media img {
        min-height: 210px;
        max-height: 260px;
    }
    .storefront-popup--split_image .storefront-popup-copy {
        padding: 24px 22px 22px;
    }
    .storefront-popup--spotlight .storefront-popup-dialog {
        padding: 34px 22px 26px;
    }
    .storefront-popup--spotlight .storefront-popup-media {
        width: 96px;
        height: 96px;
    }
}

/* ================================================================
   Reveal-on-scroll (esta clase la inyecta storefront-midnight.js)
   ================================================================ */
.st-midnight-reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.st-midnight-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .st-midnight-reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* ================================================================
   Sobreescrituras de clases legacy
   ================================================================ */
body.theme-store-midnight .card {
    background: var(--st-noir-1);
    border: 1px solid var(--st-border);
    border-radius: var(--st-radius);
    box-shadow: var(--st-shadow);
    backdrop-filter: none;
}

body.theme-store-midnight .product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 48px 28px;
}

body.theme-store-midnight .product-card {
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
    backdrop-filter: none;
    border-radius: 0;
}

body.theme-store-midnight .product-image {
    width: 100%;
    aspect-ratio: 4 / 5;
    height: auto;
    border-radius: var(--st-radius);
    background: var(--st-noir-2);
    border: 1px solid var(--st-border);
    object-fit: cover;
}

body.theme-store-midnight .price {
    font-family: var(--st-display);
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 0;
    color: var(--st-fg-strong);
}

body.theme-store-midnight .empty-state {
    background: var(--st-noir-1);
    border: 1px dashed var(--st-border);
    box-shadow: none;
    border-radius: var(--st-radius-lg);
    color: var(--st-fg);
}

/* ----- Mobile breakpoints ---------------------------------------- */
@media (max-width: 980px) {
    body.theme-store-midnight { --st-header-h: 80px; }

    body.theme-store-midnight .st-header-row {
        grid-template-columns: minmax(0, 1fr) auto;
        min-height: var(--st-header-h);
        padding: 12px 0;
    }
    body.theme-store-midnight .st-nav { display: none; }
    body.theme-store-midnight .st-menu-toggle { display: inline-flex; }
    body.theme-store-midnight .st-brand {
        font-size: 22px;
        grid-column: 1;
        justify-self: start;
    }
    .st-brand-logo { max-height: 40px; }
    .st-header-actions {
        grid-column: 2;
        justify-self: end;
    }

    .st-subnav { display: none; }

    .st-main { padding: 36px 0 56px; }
    .st-section-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .st-home-category-strip { padding: 50px 0 26px; }
    .st-featured-products { padding: 40px 0 30px; }
    .st-section-link { font-size: 10px; letter-spacing: 0.18em; }
    .st-cart-grid .st-cart-summary { position: static; }
    .st-checkout-summary { position: static; }
}

@media (max-width: 540px) {
    .storefront-product-gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .st-cart-summary { padding: 24px 20px; }
    .st-checkout-summary { padding: 24px 20px; }
}

/* ================================================================
   HOME CONFIGURABLE COMPARTIDA
   ================================================================ */
@keyframes stHomeMarquee {
    from { transform: translate3d(0, 0, 0); }
    to { transform: translate3d(calc(var(--st-marquee-distance, 50%) * -1), 0, 0); }
}

.st-home-marquee {
    overflow: hidden;
    background: var(--st-accent-bg);
    color: var(--st-accent-fg);
    border-bottom: 1px solid var(--st-border-strong);
}

.st-home-marquee--secondary {
    margin-top: 28px;
    border-top: 1px solid var(--st-border-strong);
}

.st-home-marquee-track {
    display: inline-flex;
    width: max-content;
    min-width: 200%;
    gap: 34px;
    padding: 10px 0;
    animation: stHomeMarquee 100s linear infinite;
    will-change: transform;
}

.st-home-marquee-track--edit-static {
    width: 100%;
    min-width: 0;
    justify-content: center;
    animation: none !important;
    transform: none !important;
    will-change: auto;
}

.st-product-marquee.is-paused .st-product-marquee-track,
.st-product-marquee:hover .st-product-marquee-track {
    animation-play-state: paused;
}

.st-home-marquee span {
    display: inline-flex;
    align-items: center;
    gap: 34px;
    color: inherit;
    font-family: var(--st-display);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    white-space: nowrap;
}

.st-home-marquee span::after {
    content: '•';
    opacity: 0.72;
}

.st-home-marquee--edit-static span::after {
    content: none;
}

.st-promo-carousel,
.st-promo-slide {
    background: var(--st-promo-bg, var(--st-noir-1));
}

.st-promo-carousel {
    border-bottom: 1px solid var(--st-border);
}

.st-promo-slide-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.st-promo-slide-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(var(--st-accent-rgb), 0.22), transparent 34%),
        linear-gradient(90deg, rgba(10, 11, 14, 0.82), rgba(10, 11, 14, 0.36));
}

.st-promo-slide-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    min-height: 100%;
    padding-top: clamp(38px, 6vw, 86px);
    padding-bottom: clamp(38px, 6vw, 86px);
}

.st-promo-slide-card {
    width: min(720px, 100%);
    padding: clamp(26px, 4vw, 50px);
    border-radius: var(--st-radius-lg);
    background: rgba(15, 16, 20, 0.84);
    color: var(--st-fg);
    border: 1px solid var(--st-border-strong);
    box-shadow: var(--st-shadow-glow);
}

.st-promo-slide-bg + .st-promo-slide-inner .st-promo-slide-card {
    background: rgba(15, 16, 20, 0.78);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.st-promo-slide-card h1 {
    margin: 0;
    font-family: var(--st-display);
    font-size: clamp(38px, 6vw, 82px);
    font-weight: 600;
    line-height: 0.96;
    letter-spacing: -0.05em;
}

.st-promo-slide-card p:not(.st-section-kicker) {
    margin: 16px 0 0;
    color: var(--st-fg-muted);
    font-size: clamp(15px, 1.4vw, 18px);
}

.st-promo-slide-card .button {
    margin-top: 24px;
}

.st-promo-slide-cover-link {
    position: absolute;
    inset: 0;
    z-index: 3;
}

.st-promo-slide.is-image-only .st-promo-slide-bg { opacity: 1; }
.st-promo-slide.is-image-only .st-promo-slide-bg::after { display: none; }

/* Carrusel de solo imágenes: la imagen define la proporción del carrusel
   en todos los tamaños de pantalla, sin recortes. */
.st-promo-carousel.st-promo-carousel--images .storefront-carousel-track {
    min-height: 0;
}

.st-promo-carousel--images .st-promo-slide {
    display: flex;
    align-items: center;
    justify-content: center;
}

.st-promo-slide-img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 1000px;
    object-fit: contain;
}

/* Carrusel mixto con banners de imagen: cada slide define su propia altura
   y el track anima el cambio de altura al pasar de slide (ver storefront-content.js). */
.st-promo-carousel.st-promo-carousel--adaptive .storefront-carousel-track {
    min-height: 0;
    transition: height 0.5s ease;
}

.st-promo-carousel--adaptive .storefront-carousel-list {
    align-items: flex-start;
}

.st-promo-carousel--adaptive .st-promo-slide {
    height: auto;
}

.st-promo-carousel--adaptive .st-promo-slide:not(.is-image-only) {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.st-promo-carousel--adaptive .st-promo-slide.is-background-text {
    min-height: min(56.25vw, 720px);
}

@media (max-width: 767px) {
    .st-promo-carousel--adaptive .st-promo-slide.is-background-text {
        min-height: min(140vw, 520px);
    }
}

.st-promo-slide.is-background-text .st-promo-slide-inner,
.st-promo-slide.is-background-product .st-promo-slide-inner {
    justify-content: center;
    text-align: left;
    padding-top: clamp(56px, 6vw, 100px);
    padding-bottom: clamp(56px, 6vw, 100px);
}

.st-promo-slide.align-left .st-promo-slide-inner { justify-content: flex-start; text-align: left; }
.st-promo-slide.align-center .st-promo-slide-inner { justify-content: center; text-align: center; }
.st-promo-slide.align-right .st-promo-slide-inner { justify-content: flex-end; text-align: left; }
.st-promo-slide.is-background-product.variant-card .st-promo-slide-inner,
.st-promo-slide.is-background-product.variant-split .st-promo-slide-inner {
    justify-content: center !important;
    text-align: center !important;
}
.st-promo-slide.is-background-product.variant-card.align-left .st-promo-slide-inner,
.st-promo-slide.is-background-product.variant-card.align-right .st-promo-slide-inner,
.st-promo-slide.is-background-product.variant-split.align-left .st-promo-slide-inner,
.st-promo-slide.is-background-product.variant-split.align-right .st-promo-slide-inner {
    justify-content: center !important;
    text-align: center !important;
}
.st-promo-slide.variant-overlay .st-promo-slide-card,
.st-promo-slide.variant-band-overlay .st-promo-slide-card {
    background: transparent;
    color: var(--st-promo-text-color);
    border-color: transparent;
    box-shadow: none;
}
.st-promo-slide.variant-overlay .st-promo-slide-bg + .st-promo-slide-inner .st-promo-slide-card,
.st-promo-slide.variant-band-overlay .st-promo-slide-bg + .st-promo-slide-inner .st-promo-slide-card {
    color: var(--st-promo-text-color);
    text-shadow: 0 12px 28px rgba(0, 0, 0, 0.48);
}
.st-promo-slide.variant-overlay .st-promo-slide-card h1,
.st-promo-slide.variant-overlay .st-promo-slide-card h1 *,
.st-promo-slide.variant-overlay .st-promo-slide-card .st-section-kicker,
.st-promo-slide.variant-overlay .st-promo-slide-card .st-section-kicker *,
.st-promo-slide.variant-overlay .st-promo-slide-card p:not(.st-section-kicker),
.st-promo-slide.variant-overlay .st-promo-slide-card p:not(.st-section-kicker) *,
.st-promo-slide.variant-band-overlay .st-promo-slide-card h1,
.st-promo-slide.variant-band-overlay .st-promo-slide-card h1 *,
.st-promo-slide.variant-band-overlay .st-promo-slide-card .st-section-kicker,
.st-promo-slide.variant-band-overlay .st-promo-slide-card .st-section-kicker *,
.st-promo-slide.variant-band-overlay .st-promo-slide-card p:not(.st-section-kicker),
.st-promo-slide.variant-band-overlay .st-promo-slide-card p:not(.st-section-kicker) * {
    color: var(--st-promo-text-color) !important;
}
.st-promo-slide.variant-band .st-promo-slide-inner,
.st-promo-slide.variant-band-overlay .st-promo-slide-inner {
    align-items: flex-end;
    width: 100%;
    max-width: none;
    padding-right: 0;
    padding-bottom: 0;
    padding-left: 0;
}
.st-promo-slide.variant-band .st-promo-slide-card,
.st-promo-slide.variant-band-overlay .st-promo-slide-card {
    width: 100%;
    border-radius: 0;
}

.st-promo-featured-card {
    --st-promo-card-width: min(340px, 100%);
    position: relative;
    width: var(--st-promo-card-width);
    color: var(--st-fg);
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    isolation: isolate;
}

.st-promo-featured-link {
    position: relative;
    z-index: 1;
    display: grid;
    text-decoration: none;
    color: inherit;
}

.st-promo-featured-media {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #0d0e12;
}

.st-promo-featured-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.st-promo-featured-card:hover .st-promo-featured-media img {
    transform: scale(1.06);
}

.st-promo-featured-placeholder {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    color: color-mix(in srgb, var(--st-fg) 30%, transparent);
    font-size: 40px;
}

.st-promo-featured-badge {
    position: absolute;
    z-index: 2;
    padding: 5px 12px;
    background: var(--st-accent-bg);
    color: var(--st-accent-fg);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    box-shadow: 0 0 22px -4px color-mix(in srgb, var(--st-accent) 70%, transparent);
}

.st-promo-featured-body {
    display: grid;
    gap: 8px;
    padding: 22px 22px 26px;
    text-align: left;
}

.st-promo-featured-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--st-champagne);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.24em;
    text-transform: uppercase;
}

.st-promo-featured-kicker::before {
    content: '';
    width: 18px;
    height: 1px;
    background: var(--st-champagne);
}

.st-promo-featured-title {
    margin: 0;
    font-family: var(--st-font-display, "Space Grotesk", sans-serif);
    font-size: clamp(20px, 1.7vw, 26px);
    font-weight: 600;
    color: var(--st-fg);
    line-height: 1.15;
    letter-spacing: -0.01em;
}

.st-promo-featured-price {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 6px;
    font-family: var(--st-font-display, "Space Grotesk", sans-serif);
    font-size: 22px;
    font-weight: 600;
    color: var(--st-fg);
    letter-spacing: -0.01em;
}

.st-promo-featured-price-prefix {
    color: var(--st-champagne);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.st-promo-featured-price-old {
    color: color-mix(in srgb, var(--st-fg) 45%, transparent);
    text-decoration: line-through;
    font-size: 16px;
    font-weight: 400;
}

.st-promo-featured-price-sale {
    color: var(--st-accent);
}

.st-promo-featured-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
    padding: 11px 22px;
    background: var(--st-accent-bg);
    color: var(--st-accent-fg);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    width: max-content;
    box-shadow: 0 0 28px -6px color-mix(in srgb, var(--st-accent) 60%, transparent);
    transition: box-shadow 0.25s ease;
}

.st-promo-featured-card:hover .st-promo-featured-cta {
    box-shadow: 0 0 36px -4px color-mix(in srgb, var(--st-accent) 80%, transparent);
}

.st-promo-featured-cta i {
    font-size: 14px;
    transition: transform 0.2s ease;
}

.st-promo-featured-card:hover .st-promo-featured-cta i {
    transform: translateX(4px);
}

.st-promo-featured-empty {
    display: grid;
    gap: 6px;
    padding: 32px 26px;
    text-align: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px dashed color-mix(in srgb, var(--st-fg) 25%, transparent);
    border-radius: 12px;
}

.st-promo-featured-empty strong {
    font-family: var(--st-font-display, "Space Grotesk", sans-serif);
    font-size: 20px;
    color: var(--st-fg);
}

.st-promo-featured-empty small {
    color: color-mix(in srgb, var(--st-fg) 45%, transparent);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* ======================================================
   Variant: TARJETA — Showroom hero integrated on the slide.
   Big product image with neon halo and reflection, no card box.
   ====================================================== */
.st-promo-slide.variant-card .st-promo-featured-card {
    --st-promo-card-width: min(440px, 100%);
    padding: 18px;
    background:
        radial-gradient(circle at 80% -10%, color-mix(in srgb, var(--st-accent) 18%, transparent) 0%, transparent 50%),
        linear-gradient(180deg, rgba(20, 21, 26, 0.94), rgba(10, 11, 14, 0.94));
    border: 1px solid color-mix(in srgb, var(--st-accent) 24%, var(--st-border-strong));
    border-radius: var(--st-radius);
    box-shadow:
        0 32px 70px -24px rgba(0, 0, 0, 0.78),
        0 0 0 1px color-mix(in srgb, var(--st-accent) 12%, transparent);
}

.st-promo-slide.variant-card .st-promo-featured-link {
    display: grid;
    gap: 22px;
    text-decoration: none;
    color: inherit;
}

.st-promo-slide.variant-card .st-promo-featured-media {
    position: relative;
    aspect-ratio: 4 / 5;
    max-height: 460px;
    border-radius: calc(var(--st-radius) + 2px);
    overflow: hidden;
    background: #0a0b0e;
    box-shadow:
        0 0 0 1px color-mix(in srgb, var(--st-accent) 35%, transparent),
        0 0 0 8px color-mix(in srgb, var(--st-accent) 8%, transparent),
        0 30px 60px -16px rgba(0, 0, 0, 0.75),
        0 0 60px -10px color-mix(in srgb, var(--st-accent) 40%, transparent),
        inset 0 0 80px rgba(0, 0, 0, 0.4);
    transition: box-shadow 0.4s ease, transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.st-promo-slide.variant-card .st-promo-featured-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(0, 0, 0, 0.45));
    pointer-events: none;
}

.st-promo-slide.variant-card .st-promo-featured-card:hover .st-promo-featured-media {
    transform: translateY(-4px);
    box-shadow:
        0 0 0 1px color-mix(in srgb, var(--st-accent) 60%, transparent),
        0 0 0 10px color-mix(in srgb, var(--st-accent) 14%, transparent),
        0 38px 70px -16px rgba(0, 0, 0, 0.85),
        0 0 90px -8px color-mix(in srgb, var(--st-accent) 60%, transparent),
        inset 0 0 80px rgba(0, 0, 0, 0.4);
}

.st-promo-slide.variant-card .st-promo-featured-card::before {
    content: '';
    position: absolute;
    z-index: -1;
    inset: -10% -10% 30% -10%;
    background-image:
        radial-gradient(1px 1px at 10% 30%, rgba(255, 255, 255, 0.4) 50%, transparent 51%),
        radial-gradient(1px 1px at 78% 22%, rgba(255, 255, 255, 0.35) 50%, transparent 51%),
        radial-gradient(1px 1px at 30% 80%, rgba(255, 255, 255, 0.28) 50%, transparent 51%),
        radial-gradient(1px 1px at 88% 70%, rgba(255, 255, 255, 0.3) 50%, transparent 51%),
        radial-gradient(1px 1px at 56% 50%, rgba(255, 255, 255, 0.22) 50%, transparent 51%);
    pointer-events: none;
    opacity: 0.55;
}

.st-promo-slide.variant-card .st-promo-featured-badge {
    top: 20px;
    left: 20px;
}

.st-promo-slide.variant-card .st-promo-featured-body {
    display: grid;
    justify-items: center;
    gap: 8px;
    padding: 0;
    text-align: center;
}

.st-promo-slide.variant-card .st-promo-featured-title {
    font-size: clamp(24px, 2vw, 32px);
    line-height: 1.08;
}

.st-promo-slide.variant-card .st-promo-featured-price {
    font-size: 22px;
    justify-content: center;
}

.st-promo-slide.variant-card .st-promo-featured-cta {
    margin-top: 10px;
}

/* ======================================================
   Variant: DIVIDIDO — Cinematic spread integrated on the
   slide. Image fills one side, glowing accent rule separates
   from the editorial column, no surrounding card.
   ====================================================== */
.st-promo-slide.variant-split .st-promo-featured-card {
    --st-promo-card-width: min(980px, 100%);
}

.st-promo-slide.variant-split .st-promo-featured-link {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) 1px minmax(0, 1fr);
    align-items: center;
    gap: clamp(24px, 3.5vw, 48px);
    text-decoration: none;
    color: inherit;
}

.st-promo-slide.variant-split .st-promo-featured-media {
    grid-column: 1;
    aspect-ratio: 4 / 5;
    max-height: 480px;
    border-radius: var(--st-radius);
    overflow: hidden;
    box-shadow:
        0 0 0 1px color-mix(in srgb, var(--st-accent) 28%, transparent),
        0 30px 60px -16px rgba(0, 0, 0, 0.75),
        0 0 60px -12px color-mix(in srgb, var(--st-accent) 36%, transparent);
}

.st-promo-slide.variant-split .st-promo-featured-card::before {
    content: '';
    grid-column: 2;
    align-self: stretch;
    width: 1px;
    background: linear-gradient(180deg,
        transparent,
        var(--st-accent) 30%,
        var(--st-accent) 70%,
        transparent);
    box-shadow: 0 0 22px var(--st-accent);
    z-index: 2;
}

.st-promo-slide.variant-split .st-promo-featured-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(120deg, transparent 55%, color-mix(in srgb, var(--st-accent) 24%, transparent)),
        linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.4));
    pointer-events: none;
}

.st-promo-slide.variant-split .st-promo-featured-badge {
    top: 18px;
    left: 18px;
}

.st-promo-slide.variant-split .st-promo-featured-body {
    grid-column: 3;
    display: grid;
    justify-items: start;
    align-content: center;
    padding: 0;
    position: relative;
    text-align: left;
}

.st-promo-slide.variant-split .st-promo-featured-kicker,
.st-promo-slide.variant-split .st-promo-featured-kicker *,
.st-promo-slide.variant-split .st-promo-featured-title,
.st-promo-slide.variant-split .st-promo-featured-title *,
.st-promo-slide.variant-split .st-promo-featured-price,
.st-promo-slide.variant-split .st-promo-featured-price *,
.st-promo-slide.variant-split .st-promo-featured-cta,
.st-promo-slide.variant-split .st-promo-featured-cta * {
    color: var(--st-promo-text-color) !important;
}

.st-promo-slide.variant-split .st-promo-featured-body::before {
    content: '★';
    position: absolute;
    top: -10px;
    right: 0;
    font-size: 16px;
    color: var(--st-accent);
    opacity: 0.65;
}

.st-promo-slide.variant-split .st-promo-featured-kicker {
    text-align: left;
}

.st-promo-slide.variant-split .st-promo-featured-title {
    font-size: clamp(34px, 3.6vw, 56px);
    line-height: 0.98;
    letter-spacing: -0.01em;
}

.st-promo-slide.variant-split .st-promo-featured-price {
    font-size: clamp(22px, 2vw, 30px);
    margin-top: 10px;
}

.st-promo-slide.variant-split .st-promo-featured-cta {
    margin-top: 20px;
}

@media (min-width: 768px) {
    .st-promo-slide.is-background-product.variant-card.align-left .st-promo-slide-inner,
    .st-promo-slide.is-background-product.variant-card.align-right .st-promo-slide-inner,
    .st-promo-slide.is-background-product.variant-split.align-left .st-promo-slide-inner,
    .st-promo-slide.is-background-product.variant-split.align-right .st-promo-slide-inner {
        justify-content: center;
    }

    .st-promo-slide.is-background-product.variant-split.align-center .st-promo-featured-body {
        justify-items: center;
        text-align: center;
    }

    .st-promo-slide.is-background-product.variant-split.align-center .st-promo-featured-kicker {
        text-align: center;
    }

    .st-promo-slide.is-background-product.variant-split.align-center .st-promo-featured-price {
        justify-content: center;
    }
}

.st-home-benefits,
.st-home-product-mosaic,
.st-home-story,
.st-home-faq,
.st-home-newsletter,
.st-home-editorial-products {
    padding: clamp(42px, 7vw, 88px) 0;
}

.st-home-benefit-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.st-home-benefit-card {
    display: grid;
    gap: 10px;
    padding: 24px;
    border: 1px solid var(--st-border);
    border-radius: var(--st-radius);
    background: linear-gradient(180deg, var(--st-noir-2), var(--st-noir-1));
}

.st-home-benefit-card i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--st-accent-bg);
    color: var(--st-accent-fg);
    font-size: 22px;
    box-shadow: 0 0 26px var(--st-accent-glow);
}

.st-home-benefit-card strong {
    color: var(--st-fg-strong);
    font-family: var(--st-display);
    font-size: 16px;
    font-weight: 600;
}

.st-home-benefit-card p {
    margin: 0;
    color: var(--st-fg-muted);
    font-size: 14px;
}

.st-featured-products--marquee {
    overflow: hidden;
}

.st-product-marquee {
    overflow-x: auto;
    overflow-y: hidden;
    margin-top: 26px;
    touch-action: pan-x pan-y;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
}

.st-product-marquee::-webkit-scrollbar {
    display: none;
}

.st-product-marquee-track {
    display: flex;
    width: max-content;
    gap: 22px;
    padding: 4px 22px 18px;
    animation: none;
    will-change: auto;
}

.st-product-marquee-track.is-dragging {
    cursor: grabbing;
    user-select: none;
}

.st-product-marquee .st-product-card {
    width: clamp(210px, 23vw, 292px);
    flex: 0 0 auto;
}

.st-home-mosaic-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.3fr);
    gap: 22px;
}

.st-home-mosaic-large .st-product-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.st-home-mosaic-large .st-home-edit-product-slot {
    display: flex;
    align-self: stretch;
    height: 100%;
}

.st-home-mosaic-large .st-home-edit-product-slot .st-product-card {
    flex: 1 1 auto;
    min-height: 100%;
}

.st-home-mosaic-large .st-product-card-media {
    aspect-ratio: 1 / 1;
    flex: 1 1 auto;
    min-height: 520px;
}

.st-home-mosaic-large .st-product-card-media img {
    height: 100%;
    object-fit: cover;
}

.st-home-mosaic-large .st-product-card-body {
    padding: 22px 0 0;
}

.st-home-mosaic-large .st-product-card-title {
    font-size: clamp(24px, 2.3vw, 38px);
    line-height: 1;
}

.st-home-mosaic-large .st-product-card-price {
    font-size: clamp(18px, 1.5vw, 24px);
}

.st-home-mosaic-small {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.st-home-story-card,
.st-home-newsletter-card {
    display: grid;
    gap: 20px;
    padding: clamp(30px, 5vw, 62px);
    border-radius: var(--st-radius-lg);
    background:
        radial-gradient(circle at top right, rgba(var(--st-accent-rgb), 0.16), transparent 38%),
        var(--st-noir-2);
    border: 1px solid var(--st-border);
    box-shadow: var(--st-shadow);
}

.st-home-story-card {
    max-width: 920px;
    margin: 0 auto;
    text-align: center;
}

.st-home-story-card h2,
.st-home-newsletter-card h2 {
    margin: 0;
    font-family: var(--st-display);
    font-size: clamp(32px, 5vw, 66px);
    font-weight: 600;
    letter-spacing: -0.04em;
}

.st-home-story-card p:not(.st-section-kicker),
.st-home-newsletter-card p {
    margin: 0;
    color: var(--st-fg-muted);
    font-size: 16px;
}

.st-home-story-card .button {
    width: fit-content;
    margin: 0 auto;
}

.st-home-faq-list {
    display: grid;
    gap: 12px;
    width: 100%;
    margin: 0;
}

.st-home-faq-item {
    border: 1px solid var(--st-border);
    border-radius: var(--st-radius);
    background: var(--st-noir-2);
}

.st-home-faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    cursor: pointer;
    padding: 18px 20px;
    color: var(--st-fg-strong);
    font-family: var(--st-display);
    font-weight: 600;
    list-style: none;
}

.st-home-faq-item summary::-webkit-details-marker { display: none; }

.st-home-faq-item summary::after {
    content: '\F282';
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--st-noir-1);
    color: var(--st-fg);
    font-family: "bootstrap-icons";
    font-size: 14px;
    transition: transform 0.22s ease, background-color 0.22s ease, color 0.22s ease;
}

.st-home-faq-item[open] summary::after {
    transform: rotate(180deg);
    background: var(--st-accent-bg);
    color: var(--st-accent-fg);
}

.st-home-faq-item p {
    margin: 0;
    padding: 0 20px 18px;
    color: var(--st-fg-muted);
}

.st-home-newsletter-card {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.65fr);
    align-items: center;
}

.st-home-newsletter-form {
    display: grid;
    gap: 10px;
}

.st-home-newsletter-form input {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--st-border-strong);
    border-radius: var(--st-radius-pill);
    padding: 0 18px;
    background: var(--st-noir-1);
    color: var(--st-fg);
}

.st-home-editorial-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.st-home-editorial-card-wrap {
    position: relative;
}

.st-home-editorial-rank {
    position: absolute;
    z-index: 2;
    top: 14px;
    right: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 46px;
    height: 32px;
    padding: 0 10px;
    border-radius: var(--st-radius-pill);
    background: var(--st-accent-bg);
    color: var(--st-accent-fg);
    font-family: var(--st-display);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    box-shadow: 0 0 22px var(--st-accent-glow);
}

@media (max-width: 980px) {
    .st-home-benefit-grid,
    .st-home-editorial-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .st-home-mosaic-grid,
    .st-home-newsletter-card {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .st-promo-carousel .storefront-carousel-track {
        min-height: min(140vw, 520px);
    }

    .st-promo-slide-inner {
        align-items: flex-end;
        padding-top: 72px;
        padding-bottom: 76px;
    }

    .st-promo-slide.is-background-text.variant-card .st-promo-slide-inner,
    .st-promo-slide.is-background-text.variant-overlay .st-promo-slide-inner {
        align-items: center;
    }

    .st-promo-slide.is-background-product.variant-card .st-promo-slide-inner {
        display: grid;
        place-items: center;
        align-items: center;
        justify-content: center !important;
        text-align: center !important;
        width: 100%;
    }

    .st-promo-slide.is-background-product.variant-card .st-promo-featured-card {
        width: min(360px, 100%);
        justify-self: center !important;
        align-self: center !important;
        margin-inline: auto !important;
    }

    .st-promo-slide.is-background-product.variant-card .st-promo-featured-link,
    .st-promo-slide.is-background-product.variant-card .st-promo-featured-body {
        place-items: center;
        justify-items: center !important;
        text-align: center !important;
        width: 100%;
    }

    .st-promo-slide.is-background-product.variant-card .st-promo-featured-media {
        width: min(280px, 100%);
        justify-self: center !important;
        margin-inline: auto !important;
    }

    .st-promo-slide.is-background-product.variant-card .st-promo-featured-kicker,
    .st-promo-slide.is-background-product.variant-card .st-promo-featured-title,
    .st-promo-slide.is-background-product.variant-card .st-promo-featured-price,
    .st-promo-slide.is-background-product.variant-card .st-promo-featured-cta {
        justify-self: center !important;
        margin-inline: auto !important;
        text-align: center !important;
    }

    .st-promo-slide.is-background-product.variant-card .st-promo-featured-price {
        justify-content: center !important;
    }

    .st-promo-slide.variant-band .st-promo-slide-inner,
    .st-promo-slide.variant-band-overlay .st-promo-slide-inner {
        padding-bottom: 0;
    }

    .st-promo-slide-card {
        padding: 24px;
    }

    .st-promo-slide.variant-split .st-promo-featured-card {
        --st-promo-card-width: min(360px, 100%);
    }

    .st-promo-slide.variant-split .st-promo-featured-link {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .st-promo-slide.variant-split .st-promo-featured-card::before {
        display: none;
    }

    .st-promo-slide.variant-split .st-promo-featured-media {
        grid-column: 1;
        aspect-ratio: 4 / 3;
        max-height: none;
    }

    .st-promo-slide.variant-split .st-promo-featured-body {
        grid-column: 1;
        padding: 0;
    }

    .st-promo-carousel .storefront-carousel-controls {
        align-items: center;
        padding: 0;
    }

    .st-home-mosaic-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .st-home-mosaic-large {
        grid-column: 1 / -1;
    }

    .st-home-mosaic-small {
        display: contents;
    }

    .st-home-benefit-grid,
    .st-home-mosaic-small,
    .st-home-editorial-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .st-home-benefit-card {
        padding: 18px;
    }

    .st-home-mosaic-large .st-product-card-media {
        min-height: 0;
        aspect-ratio: 1 / 1.15;
    }

    .st-home-mosaic-large .st-product-card-title {
        font-size: 20px;
    }

    .st-home-mosaic-large .st-product-card-price {
        font-size: 16px;
    }

    .st-product-marquee-track {
        gap: 14px;
        animation-duration: 82s;
    }

    .st-product-marquee-arrows {
        display: none;
    }

    .st-product-marquee .st-product-card {
        width: 220px;
    }
}

@media (min-width: 601px) and (max-width: 980px) {
    .st-home-mosaic-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 18px;
    }

    .st-home-mosaic-large {
        grid-column: span 3;
    }

    .st-home-mosaic-small {
        display: contents;
    }

    .st-home-mosaic-small > * {
        grid-column: span 2;
    }

    .st-home-mosaic-small > *:first-child {
        grid-column: span 3;
    }

    .st-home-mosaic-small > *:first-child .st-product-card,
    .st-home-mosaic-large .st-product-card {
        height: 100%;
        display: flex;
        flex-direction: column;
    }

    .st-home-mosaic-small > *:first-child .st-product-card-media,
    .st-home-mosaic-large .st-product-card-media {
        flex: 1 1 auto;
        min-height: 0;
        aspect-ratio: 1 / 1.15;
    }

    .st-home-mosaic-small > *:first-child .st-product-card-media img {
        height: 100%;
        object-fit: cover;
    }

    .st-home-mosaic-small > *:first-child .st-product-card-title {
        font-size: 20px;
        line-height: 1;
    }

    .st-home-mosaic-small > *:first-child .st-product-card-price {
        font-size: 16px;
    }
}

.storefront-popup--image_top .storefront-popup-dialog {
    grid-template-columns: minmax(0, 1fr);
    max-width: 520px;
}

.storefront-popup--image_top .storefront-popup-media {
    min-height: 210px;
    order: 0;
}

.storefront-popup--image_top .storefront-popup-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.storefront-popup--image_top .storefront-popup-copy {
    text-align: center;
    align-items: center;
}

body.theme-store-midnight .st-product-card .st-product-card-media.st-product-card-media--square {
    aspect-ratio: 1 / 1;
}

body.theme-store-midnight .st-product-card .st-product-card-media.st-product-card-media--vertical {
    aspect-ratio: 4 / 5;
}

body.theme-store-midnight .st-product-card .st-product-card-media.st-product-card-media--horizontal {
    aspect-ratio: 10 / 7;
}
