/* =================================================================
   De una — Storefront público
   Sistema de diseño moderno, retail-first.
   Todo el CSS vive bajo body.theme-store para no afectar plataforma.
   ================================================================= */

body.theme-store {
    --st-bg: #ffffff;
    --st-bg-alt: #f6f7f9;
    --st-bg-soft: #fafafa;
    --st-fg: #0f172a;
    --st-fg-muted: #6b7280;
    --st-fg-soft: #9ca3af;
    --st-border: #ececec;
    --st-border-strong: #d4d4d8;
    --st-accent: var(--app-primary, #111827);
    --st-accent-bg: var(--app-primary-bg, var(--st-accent));
    --st-accent-fg: var(--app-primary-fg, #ffffff);
    --st-accent-rgb: var(--app-primary-rgb, 17, 24, 39);
    --st-accent-soft: rgba(var(--st-accent-rgb), 0.10);
    --st-sale: #dc2626;
    --st-success: #16a34a;
    --st-radius-sm: 8px;
    --st-radius: 12px;
    --st-radius-lg: 18px;
    --st-radius-pill: 999px;
    --st-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 6px 16px rgba(15, 23, 42, 0.05);
    --st-shadow-strong: 0 18px 40px rgba(15, 23, 42, 0.10);
    --st-header-h: 68px;

    margin: 0;
    background: var(--st-bg);
    background-image: none;
    color: var(--st-fg);
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

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

body.theme-store .st-preview-bar {
    width: 100%;
    padding: 10px 16px;
    background: var(--st-fg);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
}

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

body.theme-store h1,
body.theme-store h2,
body.theme-store h3,
body.theme-store h4 {
    color: var(--st-fg);
    letter-spacing: -0.01em;
}

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

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

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

body.theme-store .storefront-shell > .sa-flash {
    width: min(100% - 32px, 1280px);
    margin: 16px auto 0;
    border-radius: var(--st-radius);
    box-shadow: none;
}

/* ----- Botones -------------------------------------------------- */
body.theme-store .button,
body.theme-store button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--st-accent-bg);
    color: var(--st-accent-fg);
    border: 0;
    border-radius: var(--st-radius);
    padding: 13px 18px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    box-shadow: none;
    transition: background-color 0.15s ease, transform 0.1s ease, opacity 0.15s ease;
    font-family: inherit;
}

body.theme-store .button:hover,
body.theme-store button:hover {
    background: var(--app-primary-dark, #1f2937);
    color: var(--st-accent-fg);
    transform: none;
    filter: none;
}

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

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

body.theme-store .button-primary:hover,
body.theme-store .button.is-accent:hover {
    background: var(--app-primary-dark, #0134c8);
    color: var(--st-accent-fg);
}

body.theme-store .button-dark {
    background: var(--st-fg);
    color: #fff;
}

body.theme-store .button-dark:hover {
    background: #1f2937;
    color: #fff;
}

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

body.theme-store .button-secondary:hover {
    background: var(--st-bg-alt);
    color: var(--st-fg);
}

body.theme-store .button-danger {
    background: var(--st-sale);
}

body.theme-store .button-danger:hover {
    background: #b91c1c;
}

body.theme-store .button-ghost {
    background: transparent;
    color: var(--st-fg);
    padding: 10px 12px;
}

body.theme-store .button-ghost:hover {
    background: var(--st-bg-alt);
    color: var(--st-fg);
}

body.theme-store [disabled],
body.theme-store .button[disabled] {
    cursor: not-allowed;
    opacity: 0.55;
}

/* ----- Inputs --------------------------------------------------- */
body.theme-store input:not([type="checkbox"]):not([type="radio"]),
body.theme-store textarea,
body.theme-store select {
    width: 100%;
    padding: 12px 14px;
    background: var(--st-bg);
    color: var(--st-fg);
    border: 1px solid var(--st-border-strong);
    border-radius: var(--st-radius);
    font-size: 16px;
    font-family: inherit;
    box-shadow: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}

body.theme-store input:focus,
body.theme-store textarea:focus,
body.theme-store select:focus {
    outline: none;
    border-color: var(--st-fg);
    box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.08);
}

/* Labels: alta especificidad para vencer components.css (#334155) */
body.theme-store label:not([class^="sa-"]):not([class*=" sa-"]) {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--st-fg);
}

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

/* ----- Container ----------------------------------------------- */
.st-container {
    width: min(100% - 32px, 1280px);
    margin: 0 auto;
}

@media (max-width: 540px) {
    .st-container { width: min(100% - 24px, 1280px); }
}

/* ================================================================
   HEADER
   ================================================================ */
.st-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--st-border);
}

.st-header-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 18px;
    height: var(--st-header-h);
}

.st-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--st-fg);
    font-weight: 700;
    font-size: 18px;
    letter-spacing: -0.01em;
    line-height: 1;
}

.st-brand:hover { color: var(--st-fg); }

.st-brand-logo {
    max-height: 40px;
    width: auto;
    display: block;
}

.st-brand-mark {
    width: 36px;
    height: 36px;
    border-radius: var(--st-radius-pill);
    background: var(--st-accent-bg);
    color: var(--st-accent-fg);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 16px;
    letter-spacing: 0;
}

body.theme-store .st-brand:hover .st-brand-mark { background: var(--app-primary-dark, var(--st-accent)); }
body.theme-store .st-brand { color: var(--st-fg); }

.st-nav {
    display: flex;
    gap: 4px;
    justify-content: center;
}

.st-nav a {
    color: var(--st-fg);
    padding: 8px 14px;
    border-radius: var(--st-radius-pill);
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.15s, color 0.15s;
    line-height: 1.2;
}

.st-nav a:hover { background: var(--st-bg-alt); color: var(--st-fg); }

.st-nav a[aria-current="page"] {
    background: var(--st-accent-bg);
    color: var(--st-accent-fg);
}

.st-header-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    justify-self: end;
}

body.theme-store .st-icon-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    min-width: 0;
    border-radius: var(--st-radius-pill);
    background: transparent;
    color: var(--st-fg);
    border: 0;
    text-decoration: none;
    cursor: pointer;
    font-size: 19px;
    padding: 0;
    margin: 0;
    transition: background-color 0.15s;
    flex: 0 0 auto;
}

body.theme-store .st-icon-btn:hover {
    background: var(--st-bg-alt);
    color: var(--st-fg);
}

body.theme-store .st-icon-btn[aria-expanded="true"] {
    background: var(--st-bg-alt);
    color: var(--st-fg);
}

body.theme-store .st-menu-toggle {
    display: none;
    background: var(--st-accent-bg);
    color: var(--st-accent-fg);
    border-radius: var(--st-radius);
}

body.theme-store .st-menu-toggle:hover {
    background: var(--app-primary-dark, var(--st-accent));
    color: var(--st-accent-fg);
}

.st-cart-count {
    position: absolute;
    top: 4px;
    right: 4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: var(--st-radius-pill);
    background: var(--st-accent-bg);
    color: var(--st-accent-fg);
    font-size: 11px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.st-search-panel {
    border-top: 1px solid var(--st-border);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.18s ease, transform 0.18s ease;
}

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

.st-search-panel.is-open {
    opacity: 1;
    transform: translateY(0);
}

.st-search-form {
    max-width: 760px;
    margin: 0 auto;
    padding: 14px 0;
}

.st-search-field {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.st-search-field input {
    width: 100%;
    min-width: 0;
    height: 40px;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--st-fg);
    font: inherit;
}

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

.st-search-field button {
    border: 0;
    border-radius: var(--st-radius-pill);
    background: var(--st-accent-bg);
    color: var(--st-accent-fg);
    height: 40px;
    padding: 0 18px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.15s ease, transform 0.15s ease;
}

.st-search-field button:hover {
    background: var(--app-primary-dark, var(--st-accent));
    transform: translateY(-1px);
}

.st-menu-toggle { display: none; }

.st-subnav {
    border-top: 1px solid var(--st-border);
    background: var(--st-bg);
    position: relative;
    z-index: 20;
}

.st-subnav-row {
    display: flex;
    flex-wrap: nowrap;
    gap: 4px;
    padding: 8px 0;
    overflow: visible;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.st-subnav-row::-webkit-scrollbar { display: none; }

.st-subnav-row a {
    flex: 0 0 auto;
    padding: 6px 12px;
    border-radius: var(--st-radius-pill);
    font-size: 13px;
    font-weight: 500;
    color: var(--st-fg-muted);
    white-space: nowrap;
    line-height: 1.2;
    transition: background-color 0.15s, color 0.15s;
}

.st-subnav-row a:hover { color: var(--st-fg); background: var(--st-bg-alt); }

.st-subnav-row a.is-active {
    background: var(--st-accent-bg);
    color: var(--st-accent-fg);
}

.st-subnav-dropdown {
    position: relative;
    flex: 0 0 auto;
}

.st-subnav-dropdown-trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

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

.st-subnav-dropdown-trigger i {
    font-size: 11px;
}

.st-subnav-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 30;
    min-width: 210px;
    padding: 8px;
    border: 1px solid var(--st-border);
    border-radius: var(--st-radius);
    background: var(--st-bg);
    box-shadow: var(--st-shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s;
}

.st-subnav-dropdown:hover .st-subnav-dropdown-menu,
.st-subnav-dropdown:focus-within .st-subnav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.st-subnav-dropdown-menu a {
    display: block;
    padding: 9px 10px;
    border-radius: var(--st-radius-sm);
    color: var(--st-fg);
}

.st-subnav-dropdown-menu a:hover,
.st-subnav-dropdown-menu a[aria-current="page"] {
    background: var(--st-bg-alt);
    color: var(--st-fg);
}

@media (max-width: 860px) {
    .st-subnav { display: none; }
}

@media (max-width: 860px) {
    body.theme-store { --st-header-h: 60px; }

    .st-header-row {
        grid-template-columns: auto 1fr auto;
    }

    .st-nav { display: none; }
    body.theme-store .st-menu-toggle { display: inline-flex; }

    .st-search-form {
        padding: 10px 0;
    }

    .st-search-field button {
        padding: 0 14px;
    }
}

/* ================================================================
   DRAWER (mobile menu)
   ================================================================ */
.st-drawer {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: block;
    pointer-events: none;
}

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

.st-drawer.is-open { pointer-events: auto; }

.st-drawer-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.42);
    opacity: 0;
    transition: opacity 0.22s ease;
}

.st-drawer.is-open .st-drawer-backdrop { opacity: 1; }

.st-drawer-panel {
    position: absolute;
    inset: 0 auto 0 0;
    width: min(82vw, 340px);
    background: var(--st-bg);
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.18);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overscroll-behavior: contain;
    transform: translateX(-100%);
    transition: transform 0.24s ease;
}

.st-drawer.is-open .st-drawer-panel { transform: translateX(0); }

.st-drawer-header {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: flex-start;
    margin: 14px 14px 4px;
    padding: 0;
    border: 0;
    background: transparent;
}

body.theme-store .st-drawer-header .st-icon-btn {
    width: 38px;
    height: 38px;
    border-radius: var(--st-radius);
    border: 1px solid var(--st-border);
    background: var(--st-bg);
    color: var(--st-fg);
}

body.theme-store .st-drawer-header .st-icon-btn:hover {
    background: var(--st-bg-alt);
    color: var(--st-fg);
}

.st-drawer-nav {
    flex-shrink: 0;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.st-drawer-nav a {
    padding: 14px 14px;
    border-radius: var(--st-radius);
    color: var(--st-fg);
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.st-drawer-nav a:hover {
    background: var(--st-bg-alt);
}

.st-drawer-nav a[aria-current="page"] {
    background: var(--st-accent-bg);
    color: var(--st-accent-fg);
}

.st-drawer-search {
    flex-shrink: 0;
    padding: 0 12px 14px;
}

.st-drawer-search .st-search-field {
    grid-template-columns: minmax(0, 1fr) auto;
    box-shadow: none;
}

.st-drawer-search .st-search-field button {
    width: auto;
    margin-top: 0;
    padding: 0 16px;
}

.st-drawer-cat {
    display: block;
    border-radius: var(--st-radius);
}

.st-drawer-cat > summary {
    padding: 14px 14px;
    border-radius: var(--st-radius);
    color: var(--st-fg);
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    cursor: pointer;
    list-style: none;
    user-select: none;
}

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

.st-drawer-cat > summary:hover {
    background: var(--st-bg-alt);
}

.st-drawer-cat-chevron {
    transition: transform 0.2s ease;
    font-size: 13px;
    color: var(--st-fg-muted);
}

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

.st-drawer-subcats {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 2px 0 6px 12px;
    margin-left: 6px;
    border-left: 1px solid var(--st-border);
}

.st-drawer-subcats a {
    padding: 11px 12px;
    font-size: 14px;
    font-weight: 400;
}

.st-drawer-subcats .st-drawer-subcat-all {
    color: var(--st-fg-muted);
    font-style: italic;
    font-size: 13px;
    padding: 9px 12px;
}

.st-drawer-section {
    flex-shrink: 0;
    border-top: 1px solid var(--st-border);
    padding: 12px 8px;
}

.st-drawer-section-title {
    margin: 0 0 6px;
    padding: 4px 14px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--st-fg-muted);
    font-weight: 700;
}

.st-drawer-section .st-drawer-nav {
    padding: 0 4px;
}

.st-drawer-foot {
    padding: 14px 20px 20px;
    border-top: 1px solid var(--st-border);
    color: var(--st-fg-muted);
    font-size: 13px;
}

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

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

/* ================================================================
   CARRUSEL / HERO
   ================================================================ */
.storefront-carousel {
    position: relative;
    overflow: hidden;
    background: var(--st-bg-alt);
    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 {
    position: relative;
    inset: auto;
    display: block;
    min-height: inherit;
    opacity: 1;
    z-index: auto;
    transition: none;
    pointer-events: auto;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

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

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

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

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

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

.storefront-carousel-controls .storefront-carousel-arrow {
    pointer-events: auto;
    position: static;
    transform: none;
}

.storefront-carousel-arrow {
    width: 44px;
    height: 44px;
    border-radius: var(--st-radius-pill);
    background: rgba(255, 255, 255, 0.92);
    color: var(--st-fg);
    border: 0;
    box-shadow: var(--st-shadow);
    cursor: pointer;
    font-size: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.storefront-carousel-arrow:hover {
    background: #fff;
    color: var(--st-fg);
    transform: none;
}

body.theme-store .storefront-carousel-arrow.is-disabled,
body.theme-store .storefront-carousel-arrow[disabled] {
    cursor: not-allowed;
    pointer-events: none;
    opacity: 0.45;
}

.storefront-carousel-dots {
    position: absolute;
    z-index: 4;
    left: 0;
    right: 0;
    bottom: 18px;
    display: inline-flex;
    gap: 6px;
    margin: 0 auto;
    padding: 0;
    background: transparent;
    width: fit-content;
    align-items: center;
    justify-content: center;
}

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

body.theme-store .storefront-carousel-dot {
    width: 8px;
    height: 8px;
    min-width: 0;
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.55);
    cursor: pointer;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.18), 0 1px 2px rgba(0, 0, 0, 0.18);
    transition: background-color 0.18s, transform 0.18s;
    flex: 0 0 auto;
    line-height: 0;
    font-size: 0;
}

body.theme-store .storefront-carousel-dot:hover {
    background: rgba(255, 255, 255, 0.85);
}

body.theme-store .storefront-carousel-dot.is-active {
    background: #fff;
    transform: scale(1.25);
}

@media (max-width: 767px) {
    .storefront-carousel-track {
        min-height: min(56.25vw, 480px);
    }

    .storefront-carousel-controls {
        padding: 0;
    }

    .storefront-carousel-arrow {
        display: inline-flex;
        width: 34px;
        height: 48px;
        padding: 0 !important;
        border: 0 !important;
        background: transparent !important;
        background-image: none !important;
        box-shadow: none !important;
        color: #fff;
        font-size: 22px;
        text-shadow: 0 1px 6px rgba(255, 255, 255, 0.75);
    }

    .storefront-carousel-arrow:hover {
        background: transparent !important;
        background-image: none !important;
        color: #fff;
        box-shadow: none !important;
        transform: none;
    }

    .storefront-carousel-dots { bottom: 10px; }
}

/* ================================================================
   MAIN / SECCIONES
   ================================================================ */
.st-main {
    padding: 48px 0 64px;
}

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

.st-section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 28px;
}

.st-section-title {
    margin: 0;
    font-size: clamp(24px, 3.5vw, 34px);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.st-section-subtitle {
    margin: 6px 0 0;
    color: var(--st-fg-muted);
    font-size: 15px;
}

.st-section-link {
    color: var(--st-fg);
    font-weight: 500;
    font-size: 14px;
    border-bottom: 1px solid var(--st-fg);
    padding-bottom: 1px;
}

.st-section-kicker {
    margin: 0 0 6px;
    color: var(--st-fg-muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.st-home-category-strip {
    padding: 34px 0 12px;
    background: var(--st-bg);
}

.st-featured-products {
    margin-top: 28px;
    padding: 42px 0;
    background: var(--st-accent-bg);
    color: var(--st-accent-fg);
}

.st-featured-products .st-section-kicker,
.st-featured-products .st-section-title {
    color: inherit;
}

.st-carousel-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

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

body.theme-store .st-scroll-carousel-arrow {
    width: 40px;
    height: 40px;
    border-radius: var(--st-radius-pill);
    border: 1px solid var(--st-border);
    background: var(--st-bg);
    color: var(--st-fg);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

body.theme-store .st-scroll-carousel-arrow.is-disabled,
body.theme-store .st-scroll-carousel-arrow[disabled] {
    cursor: not-allowed;
    pointer-events: none;
    opacity: 0.4;
}

.st-featured-products .st-scroll-carousel-arrow {
    border-color: color-mix(in srgb, var(--st-accent-fg) 28%, transparent);
    background: color-mix(in srgb, var(--st-accent-fg) 12%, transparent);
    color: var(--st-accent-fg);
}

.st-scroll-carousel {
    min-width: 0;
}

.st-scroll-carousel-track {
    --st-scroll-carousel-gap: 18px;
    display: block;
    overflow: hidden;
    padding: 2px 2px 12px;
}

.st-category-card {
    position: relative;
    flex: 0 0 clamp(150px, 18vw, 220px);
    aspect-ratio: 4 / 5;
    border-radius: var(--st-radius-lg);
    overflow: hidden;
    color: #fff;
    background: var(--st-fg);
    scroll-snap-align: start;
}

.st-category-card img,
.st-category-card-placeholder {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.st-category-card img {
    object-fit: cover;
    transition: transform 0.45s ease;
}

.st-category-card:hover img {
    transform: scale(1.04);
}

.st-category-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.08), rgba(15, 23, 42, 0.62));
}

.st-category-card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    background: linear-gradient(135deg, var(--st-accent), var(--app-primary-dark, var(--st-accent)));
}

.st-category-card > span:last-child {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 14px;
    z-index: 1;
    color: #fff;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.15;
    text-shadow: 0 1px 12px rgba(15, 23, 42, 0.45);
}

.st-product-carousel .st-product-card {
    flex: 0 0 clamp(210px, 24vw, 280px);
    scroll-snap-align: start;
}

@media (max-width: 767px) {
    .st-home-category-strip { padding-top: 24px; }
    .st-featured-products { margin-top: 18px; padding: 30px 0; }
    .st-scroll-carousel-arrows { display: none; }
    .st-scroll-carousel-track { gap: 14px; padding-bottom: 8px; }
    .st-category-card { flex-basis: 148px; }
    .st-product-carousel .st-product-card { flex-basis: 210px; }
}

@media (max-width: 767px) {
    .st-main { padding: 28px 0 48px; }
    .st-section-head { margin-bottom: 18px; }
}

/* ================================================================
   GRILLA DE PRODUCTOS + CARD
   ================================================================ */
.st-product-grid {
    display: grid;
    gap: 28px 22px;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

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

.st-product-card {
    display: flex;
    flex-direction: column;
    text-align: left;
    color: inherit;
    position: relative;
    background: var(--st-bg);
    border: 1px solid var(--st-border);
    border-radius: var(--st-radius-lg);
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.st-product-card:hover {
    border-color: var(--st-border-strong);
    box-shadow: var(--st-shadow);
}

.st-product-card-media {
    position: relative;
    aspect-ratio: 1 / 1;
    background: var(--st-bg-alt);
    overflow: hidden;
    isolation: isolate;
    border-bottom: 1px solid var(--st-border);
}

.st-product-card-link {
    position: absolute;
    inset: 0;
    display: block;
}

.st-product-card-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.st-product-card:hover .st-product-card-media img {
    transform: scale(1.04);
}

.st-product-card-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--st-fg-soft);
    font-size: 30px;
}

.st-product-card-out {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.72);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--st-fg);
    letter-spacing: 0.02em;
    backdrop-filter: blur(2px);
}

.st-badge {
    position: absolute;
    z-index: 2;
    top: 10px;
    left: 10px;
    display: inline-flex;
    align-items: center;
    padding: 5px 9px;
    border-radius: var(--st-radius-sm);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: var(--st-fg);
    color: #fff;
}

.st-badge.is-sale {
    right: auto;
    left: 10px;
    background: var(--st-sale);
}
.st-badge.is-new { background: #16a34a; }

.st-product-card-quick {
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 10px;
    display: flex;
    gap: 6px;
    z-index: 2;
}

.st-product-card-quick form,
.st-product-card-quick a,
.st-product-card-quick button {
    flex: 1;
    margin: 0;
    width: 100%;
}

.st-product-card-quick .button {
    width: 100%;
    padding: 11px 12px;
    font-size: 13px;
    border-radius: var(--st-radius-sm);
    background: var(--st-accent-bg);
    color: var(--st-accent-fg);
    text-align: center;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.18);
}

.st-product-card-quick .button span {
    text-align: center;
}

.st-product-card-quick .button-secondary {
    background: rgba(255, 255, 255, 0.95);
    color: var(--st-fg);
    border: 0;
}

.st-product-card-quick .button:hover {
    background: var(--app-primary-dark, var(--st-accent));
    color: var(--st-accent-fg);
}

@media (hover: hover) and (min-width: 861px) {
    .st-product-card-quick {
        transform: translateY(8px);
        opacity: 0;
        transition: opacity 0.2s ease, transform 0.2s ease;
    }

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

.st-product-card-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 14px 14px 16px;
}

.st-product-card-brand {
    color: var(--st-fg-muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}

.st-product-card-brand:hover { color: var(--st-fg); }

.st-product-card-title {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--st-fg);
}

.st-product-card-title a {
    color: inherit;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.st-product-card-title a:hover { text-decoration: underline; text-underline-offset: 2px; }

.st-product-card-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-top: 2px;
    font-size: 16px;
    font-weight: 700;
    color: var(--st-fg);
    letter-spacing: -0.01em;
}

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

.st-product-card-price .st-price-prefix {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--st-fg-muted);
}

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

/* ================================================================
   ESTADO VACÍO
   ================================================================ */
.st-empty {
    background: var(--st-bg-alt);
    border: 1px dashed var(--st-border-strong);
    border-radius: var(--st-radius-lg);
    padding: 56px 24px;
    text-align: center;
    color: var(--st-fg-muted);
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

.st-empty-icon {
    width: 56px;
    height: 56px;
    border-radius: 99px;
    background: var(--st-bg);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--st-fg-soft);
    margin-bottom: 4px;
}

.st-empty h2 {
    margin: 0;
    color: var(--st-fg);
    font-size: 20px;
    font-weight: 700;
}

.st-empty p { margin: 0; }

.st-empty-actions {
    margin-top: 14px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.st-not-found-page {
    padding: 48px 0 72px;
}

.st-not-found-card {
    max-width: 680px;
    margin: 0 auto;
}

.st-not-found-card h1 {
    margin: 0;
    color: var(--st-fg);
    font-size: clamp(30px, 5vw, 46px);
    font-weight: 800;
    letter-spacing: -0.04em;
}

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

/* ================================================================
   COLECCIÓN (Marca / Etiqueta)
   ================================================================ */
.st-collection-head {
    margin: 0 0 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--st-border);
}

.st-collection-eyebrow {
    color: var(--st-fg-muted);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 600;
}

.st-collection-title {
    margin: 6px 0 6px;
    font-size: clamp(28px, 4vw, 38px);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.st-collection-meta { color: var(--st-fg-muted); font-size: 14px; }

.st-collection-description {
    color: var(--st-fg-muted);
    margin-top: 12px;
    max-width: 720px;
    line-height: 1.6;
}

/* ================================================================
   FICHA DE PRODUCTO
   ================================================================ */
.storefront-product { padding-bottom: 80px; }

@media (max-width: 880px) {
    .storefront-product { padding-bottom: 0; }
}

.st-breadcrumbs {
    margin: 16px 0 24px;
    color: var(--st-fg-muted);
    font-size: 13px;
    line-height: 1.45;
}

.st-breadcrumbs > * {
    display: inline;
}

.st-breadcrumbs > * + * {
    margin-left: 6px;
}

.st-breadcrumbs a { color: var(--st-fg-muted); }
.st-breadcrumbs a:hover { color: var(--st-fg); text-decoration: underline; }
.st-breadcrumbs span[aria-current] {
    color: var(--st-fg);
    overflow-wrap: anywhere;
}

.storefront-product-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 56px;
    align-items: start;
}

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

.storefront-product-media {
    display: grid;
    gap: 12px;
    position: sticky;
    top: calc(var(--st-header-h) + 16px);
    min-width: 0;
}

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

.storefront-product-stage {
    position: relative;
    width: 100%;
    border: 1px solid var(--st-border);
    border-radius: var(--st-radius-lg);
    background: var(--st-bg-alt);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.storefront-product-stage .splide__track {
    width: 100%;
}

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

.storefront-product-image {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 0;
    background: var(--st-bg-alt);
    border: 0;
    display: block;
}

.storefront-product-image.is-slide-next {
    animation: stProductImageNext 0.28s ease;
}

.storefront-product-image.is-slide-prev {
    animation: stProductImagePrev 0.28s ease;
}

@keyframes stProductImageNext {
    from { opacity: 0.4; transform: translateX(32px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes stProductImagePrev {
    from { opacity: 0.4; transform: translateX(-32px); }
    to { opacity: 1; transform: translateX(0); }
}

body.theme-store .storefront-product-stage-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    min-width: 0;
    border-radius: var(--st-radius);
    background: rgba(255, 255, 255, 0.94);
    color: var(--st-fg);
    border: 0;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.15);
    cursor: pointer;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.18s, background-color 0.15s;
}

body.theme-store .storefront-product-stage:hover .storefront-product-stage-arrow {
    opacity: 1;
    transform: translateY(-50%);
}

body.theme-store .storefront-product-stage-arrow:hover {
    background: #fff;
    color: var(--st-fg);
    transform: translateY(-50%);
}

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

.storefront-product-stage-bullets {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 12px;
    display: inline-flex;
    gap: 6px;
    margin: 0 auto;
    padding: 0;
    background: transparent;
    width: fit-content;
    align-items: center;
    z-index: 2;
}

body.theme-store .storefront-product-stage-bullet {
    width: 8px;
    height: 8px;
    min-width: 0;
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.55);
    cursor: pointer;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.18), 0 1px 2px rgba(0, 0, 0, 0.18);
    transition: background-color 0.18s, transform 0.18s;
    flex: 0 0 auto;
    line-height: 0;
    font-size: 0;
}

body.theme-store .storefront-product-stage-bullet:hover {
    background: rgba(255, 255, 255, 0.85);
}

body.theme-store .storefront-product-stage-bullet.is-active {
    background: #fff;
    transform: scale(1.25);
}

@media (max-width: 767px) {
    .storefront-product-stage-arrow { display: none; }
}

.storefront-product-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
    gap: 8px;
}

body.theme-store .storefront-product-thumb {
    aspect-ratio: 1;
    border: 1px solid var(--st-border);
    background: transparent;
    border-radius: var(--st-radius-sm);
    padding: 0;
    margin: 0;
    overflow: hidden;
    cursor: pointer;
    box-shadow: none;
    transition: border-color 0.15s;
}

body.theme-store .storefront-product-thumb:hover {
    background: transparent;
    color: inherit;
    border-color: var(--st-border-strong);
    transform: none;
}

body.theme-store .storefront-product-thumb.is-active {
    border-color: var(--st-fg);
    border-width: 1.5px;
    box-shadow: none;
}

.storefront-product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 0;
}

.storefront-product-info {
    display: grid;
    gap: 18px;
    align-content: start;
    padding-top: 4px;
    min-width: 0;
}

.storefront-product-brand {
    color: var(--st-fg-muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    text-decoration: none;
}

.storefront-product-brand:hover { color: var(--st-fg); text-decoration: underline; }

.storefront-product-title {
    margin: 0;
    font-size: clamp(28px, 3.5vw, 38px);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
    color: var(--st-fg);
}

.storefront-product-price {
    display: flex;
    align-items: baseline;
    gap: 14px;
    font-size: 28px;
    font-weight: 700;
    color: var(--st-fg);
    letter-spacing: -0.02em;
}

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

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

.storefront-product-price-prefix,
.storefront-product-price-muted {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--st-fg-muted);
}

.storefront-product-price-muted {
    text-transform: none;
    letter-spacing: 0;
}

.storefront-product-stock {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
}

.storefront-product-stock::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 99px;
    background: var(--st-fg-soft);
    flex-shrink: 0;
}

.storefront-product-stock:has(.storefront-stock-ok)::before { background: var(--st-success); }
.storefront-product-stock:has(.storefront-stock-out)::before { background: var(--st-sale); }

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

.storefront-product-form {
    display: grid;
    gap: 18px;
    padding: 18px 0 0;
    border-top: 1px solid var(--st-border);
    margin-top: 4px;
}

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

.storefront-product-attribute-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
    color: var(--st-fg);
}

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

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

.storefront-product-swatch {
    border: 1.5px solid var(--st-border-strong);
    border-radius: var(--st-radius-sm);
    background: var(--st-bg);
    color: var(--st-fg);
    padding: 9px 14px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    box-shadow: none;
    transition: border-color 0.15s, background-color 0.15s, color 0.15s;
}

.storefront-product-swatch:hover {
    border-color: var(--st-fg);
    background: var(--st-bg);
    color: var(--st-fg);
    transform: none;
}

.storefront-product-swatch.is-selected {
    border-color: var(--st-fg);
    background: var(--st-fg);
    color: #fff;
    box-shadow: none;
}

.storefront-product-swatch-color {
    width: 38px;
    height: 38px;
    padding: 0;
    border-radius: 99px;
    border-width: 2px;
}

.storefront-product-swatch-color.is-selected {
    border-color: var(--st-fg);
    box-shadow: 0 0 0 2px #fff inset;
    background-clip: padding-box;
}

.storefront-product-swatch-image {
    width: 56px;
    height: 56px;
    padding: 0;
    overflow: hidden;
    border-radius: var(--st-radius-sm);
    border-width: 2px;
}

.storefront-product-swatch-image.is-selected { border-color: var(--st-fg); background: var(--st-bg); }

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

.storefront-product-variation-feedback {
    color: var(--st-sale);
    font-size: 13px;
    min-height: 18px;
}

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

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

.storefront-product-actions {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px;
    align-items: stretch;
}

body.theme-store .st-qty-stepper {
    display: inline-flex;
    align-items: stretch;
    border: 1px solid var(--st-border-strong);
    border-radius: var(--st-radius);
    overflow: hidden;
    background: var(--st-bg);
    height: 50px;
    padding: 0;
    box-sizing: border-box;
}

body.theme-store .st-qty-stepper > button {
    width: 42px;
    height: 100%;
    background: transparent;
    color: var(--st-fg);
    border: 0;
    border-radius: 0;
    padding: 0;
    margin: 0;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    box-shadow: none;
    flex: 0 0 auto;
}

body.theme-store .st-qty-stepper > button:hover {
    background: var(--st-bg-alt);
    color: var(--st-fg);
    transform: none;
}

body.theme-store .st-qty-stepper > input,
body.theme-store .st-qty-stepper > input.storefront-product-qty {
    width: 56px;
    height: 100%;
    text-align: center;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--st-fg);
    font-weight: 600;
    font-size: 15px;
    padding: 0;
    margin: 0;
    box-shadow: none;
    flex: 1 1 auto;
    min-width: 0;
    -moz-appearance: textfield;
    appearance: textfield;
}

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

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

.storefront-product-add {
    width: 100%;
    height: 50px;
    border-radius: var(--st-radius);
    background: var(--st-fg);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.storefront-product-add:hover { background: #1f2937; }

.storefront-product-add[disabled] {
    background: var(--st-fg-soft);
    cursor: not-allowed;
    opacity: 1;
    color: #fff;
}

.st-product-actions-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

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

.st-product-extras {
    display: grid;
    gap: 10px;
    color: var(--st-fg-muted);
    font-size: 13px;
    background: var(--st-bg-alt);
    border-radius: var(--st-radius);
    margin: 0;
    padding: 14px 16px;
    list-style: none;
}

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

.st-product-extra::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.05em;
    width: 17px;
    height: 17px;
    border-radius: 999px;
    background: var(--st-accent-bg);
}

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

.storefront-product-description {
    border-top: 1px solid var(--st-border);
    padding-top: 28px;
    margin-top: 8px;
    color: var(--st-fg);
    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-size: 18px;
    margin: 0 0 12px;
    font-weight: 700;
}

.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: 14px;
    }

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

.storefront-product-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
    font-size: 13px;
    color: var(--st-fg-muted);
}

.storefront-product-tags a {
    background: var(--st-bg-alt);
    color: var(--st-fg);
    padding: 6px 12px;
    border-radius: var(--st-radius-pill);
    text-decoration: none;
    font-size: 12px;
    border: 1px solid var(--st-border);
    transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}

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

/* Sticky CTA mobile en ficha de producto */
.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(255, 255, 255, 0.96);
        backdrop-filter: saturate(180%) blur(12px);
        border-top: 1px solid var(--st-border);
        padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
        display: flex;
        gap: 10px;
        align-items: center;
        box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.06);
    }

    .st-product-mobile-cta .st-mobile-price {
        flex: 1;
        font-size: 17px;
        font-weight: 700;
        line-height: 1.2;
        display: flex;
        flex-direction: column;
        gap: 1px;
    }

    .st-product-mobile-cta .st-mobile-price small {
        font-size: 12px;
        font-weight: 500;
        color: var(--st-fg-soft);
        text-decoration: line-through;
    }

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

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

/* Productos relacionados */
.storefront-related-card {
    background: transparent;
    border: 0;
    box-shadow: none;
    backdrop-filter: none;
    padding: 0;
    margin-top: 56px;
}

.storefront-related-card h2 {
    margin: 0 0 22px;
    font-size: 22px;
    font-weight: 700;
}

.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: 22px;
}

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

.storefront-related-item img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: var(--st-radius);
    background: var(--st-bg-alt);
    transition: transform 0.5s ease;
}

.storefront-related-item:hover { border-color: transparent; }
.storefront-related-item:hover img { transform: scale(1.04); }

.storefront-related-item strong {
    font-weight: 500;
    font-size: 14px;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.storefront-related-item span {
    color: var(--st-fg);
    font-weight: 700;
    font-size: 15px;
}

/* Reseñas */
.storefront-reviews-card {
    background: transparent;
    border: 0;
    box-shadow: none;
    backdrop-filter: none;
    padding: 0;
    margin-top: 56px;
    border-top: 1px solid var(--st-border);
    border-bottom: 1px solid var(--st-border);
}

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

.storefront-reviews-head h2 {
    margin: 0;
    font-size: clamp(22px, 3vw, 28px);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.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: 28px;
    padding: 26px 32px;
    border: 1px solid var(--st-border);
    border-radius: var(--st-radius);
    background: var(--st-bg-alt);
}

.storefront-review-average {
    display: grid;
    justify-items: center;
    gap: 8px;
    text-align: center;
}

.storefront-review-average strong {
    color: var(--st-fg);
    font-size: clamp(42px, 7vw, 58px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.05em;
}

.storefront-review-average span {
    color: var(--st-fg-soft);
    font-size: 13px;
}

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

.storefront-review-bar-row {
    display: grid;
    grid-template-columns: 94px minmax(0, 1fr) 32px;
    align-items: center;
    gap: 14px;
    color: var(--st-fg-muted);
    font-size: 13px;
}

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

.storefront-review-bar {
    height: 9px;
    overflow: hidden;
    border-radius: var(--st-radius-pill);
    background: color-mix(in srgb, var(--st-border) 62%, transparent);
}

.storefront-review-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--st-fg);
}

.storefront-review-empty {
    margin: 0;
    padding: 0 0 44px;
    color: var(--st-fg-muted);
    font-size: 15px;
    line-height: 1.6;
}

.storefront-review-form-wrap {
    max-height: 0;
    margin: 0;
    padding: 0 clamp(24px, 4vw, 32px);
    overflow: hidden;
    border: 0 solid var(--st-border);
    border-radius: var(--st-radius);
    background: var(--st-bg-alt);
    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(24px, 4vw, 32px);
    padding-bottom: clamp(24px, 4vw, 32px);
    border-width: 1px;
    opacity: 1;
    pointer-events: auto;
}

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

.storefront-review-feedback.sa-flash {
    margin: 0 0 16px;
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 12.5px;
    font-weight: 500;
    line-height: 1.35;
    box-shadow: none;
}

.storefront-review-feedback.sa-flash.is-success {
    border: 1px solid rgba(20, 83, 45, 0.16);
    background: rgba(20, 83, 45, 0.06);
    color: #166534;
}

.storefront-review-feedback.sa-flash.is-error {
    border: 1px solid rgba(180, 35, 24, 0.18);
    background: rgba(180, 35, 24, 0.06);
    color: #b42318;
}

.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 24px;
    align-items: start;
}

.storefront-review-form label {
    display: block;
    margin-bottom: 8px;
    font-size: 15px;
    font-weight: 500;
    color: var(--st-fg);
}

.storefront-review-form input,
.storefront-review-form textarea {
    width: 100%;
    border: 1px solid var(--st-border);
    border-radius: 6px;
    background: var(--st-bg);
    color: var(--st-fg);
    padding: 12px 14px;
    font: inherit;
}

.storefront-review-form input:focus,
.storefront-review-form textarea:focus {
    border-color: color-mix(in srgb, var(--st-accent) 55%, var(--st-border));
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--st-accent) 18%, transparent);
    outline: 0;
}

.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: 4px;
    min-height: 38px;
}

.storefront-review-stars label {
    display: inline-flex;
    margin: 0;
    cursor: pointer;
}

.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: 28px;
    height: 34px;
    color: color-mix(in srgb, var(--st-fg-soft) 60%, #f59e0b);
    font-size: 27px;
    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: #f59e0b;
}

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

.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 {
    border-radius: var(--st-radius-sm);
    outline: 2px solid color-mix(in srgb, var(--st-accent) 55%, transparent);
    outline-offset: 2px;
}

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

.storefront-review-item {
    padding: 28px 10px 30px;
    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);
    font-size: 15px;
    font-weight: 700;
}

.storefront-review-item-head time {
    color: var(--st-fg-soft);
    font-size: 14px;
    white-space: nowrap;
}

.storefront-review-rating {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    color: #f59e0b;
    font-size: 16px;
    margin-bottom: 8px;
}

.storefront-review-item p {
    color: var(--st-fg);
    line-height: 1.65;
    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: 22px 18px;
    }

    .storefront-review-bar-row {
        grid-template-columns: 84px minmax(0, 1fr) 28px;
        gap: 10px;
    }

    .storefront-review-form-grid {
        grid-template-columns: 1fr;
    }
}

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

.st-page-title {
    margin: 0 0 24px;
    font-size: clamp(28px, 4vw, 36px);
    font-weight: 700;
    letter-spacing: -0.02em;
}

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

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

.st-cart-list {
    background: var(--st-bg);
    border: 1px solid var(--st-border);
    border-radius: var(--st-radius-lg);
    padding: 8px 24px;
}

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

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

.st-cart-item-img {
    width: 96px;
    height: 96px;
    border-radius: var(--st-radius);
    background: var(--st-bg-alt);
    object-fit: cover;
    display: block;
}

.st-cart-item-info { display: grid; gap: 4px; min-width: 0; }
.st-cart-item-name { font-weight: 600; font-size: 15px; color: var(--st-fg); }
.st-cart-item-name a { color: inherit; }
.st-cart-item-name a:hover { text-decoration: underline; text-underline-offset: 2px; }

.st-cart-item-meta {
    color: var(--st-fg-muted);
    font-size: 13px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

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

body.theme-store .st-cart-item-controls .st-qty-stepper { height: 40px; }
body.theme-store .st-cart-item-controls .st-qty-stepper > button { width: 36px; font-size: 18px; }
body.theme-store .st-cart-item-controls .st-qty-stepper > input,
body.theme-store .st-cart-item-controls .st-qty-stepper > input.storefront-product-qty { width: 44px; font-size: 14px; }

.st-cart-item-trash {
    background: transparent;
    color: var(--st-fg-muted);
    border: 0;
    padding: 6px 8px;
    border-radius: var(--st-radius-sm);
    font-size: 13px;
    cursor: pointer;
    box-shadow: none;
    text-decoration: underline;
    text-underline-offset: 2px;
    font-weight: 500;
    height: auto;
}

.st-cart-item-trash:hover {
    background: transparent;
    color: var(--st-sale);
    transform: 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-weight: 700;
    font-size: 16px;
    color: var(--st-fg);
}

.st-cart-item-unit {
    color: var(--st-fg-muted);
    font-size: 12px;
}

@media (max-width: 540px) {
    .st-cart-item {
        grid-template-columns: 80px 1fr;
        gap: 14px;
        padding: 18px 0;
    }

    .st-cart-item-img { width: 80px; height: 80px; }

    .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-bg-alt);
    border: 1px solid var(--st-border);
    border-radius: var(--st-radius-lg);
    padding: 24px;
    display: grid;
    gap: 14px;
    position: sticky;
    top: calc(var(--st-header-h) + 16px);
}

.st-cart-summary h3 {
    margin: 0 0 4px;
    font-size: 16px;
    font-weight: 700;
}

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

.st-cart-summary-row .muted { color: var(--st-fg-muted); }

.st-cart-summary-total {
    border-top: 1px solid var(--st-border);
    padding-top: 14px;
    margin-top: 4px;
    font-size: 16px;
    font-weight: 700;
}

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

.st-cart-summary .button { width: 100%; height: 50px; font-size: 15px; }
.st-cart-summary .st-cart-keep {
    text-align: center;
    color: var(--st-fg-muted);
    font-size: 13px;
}

.st-cart-summary .st-cart-keep a {
    color: var(--st-fg);
    text-decoration: underline;
    text-underline-offset: 2px;
    font-weight: 500;
}

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

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

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

.st-checkout-sections { grid-area: sections; min-width: 0; }
.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: 18px;
    }

    .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-bg);
    border: 1px solid var(--st-border);
    border-radius: var(--st-radius-lg);
    padding: 24px;
    margin-bottom: 16px;
}

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

.st-form-section h2 {
    margin: 0 0 18px;
    font-size: 17px;
    font-weight: 700;
}

.st-form-section .st-section-eyebrow {
    display: inline-block;
    background: var(--st-bg-alt);
    color: var(--st-fg);
    border-radius: 99px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 700;
    margin: 0 0 12px;
    letter-spacing: 0.04em;
}

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

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

.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-size: 17px;
    font-weight: 700;
}

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

.st-checkout-coupon-icon {
    flex: 0 0 auto;
    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: 16px;
    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.04em;
    font-weight: 700;
}

.st-checkout-coupon-apply {
    min-height: 47px;
    padding-inline: 18px;
    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: var(--st-success, #15803d);
    font-weight: 700;
}

.st-checkout-coupon-feedback.is-error {
    color: var(--st-sale);
    font-weight: 700;
}

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

body.theme-store .st-form-section .ts-wrapper.single .ts-control {
    display: flex;
    align-items: center;
    min-height: 47px;
    padding: 8px 38px 8px 14px;
    background: var(--st-bg-alt, var(--st-bg));
    border: 1px solid var(--st-border-strong);
    border-radius: var(--st-radius);
    box-shadow: none;
    color: var(--st-fg);
    font-family: inherit;
    font-size: 16px;
}

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

body.theme-store .st-form-section .ts-wrapper.focus .ts-control {
    border-color: var(--st-fg);
    box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.08);
}

body.theme-store .st-form-section .ts-wrapper.disabled .ts-control {
    background: var(--st-bg-alt);
    opacity: 0.7;
}

body.theme-store .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: 16px;
}

body.theme-store .st-form-section .ts-control > input::placeholder {
    color: var(--st-fg-muted) !important;
    opacity: 1;
}

body.theme-store .st-form-section .ts-dropdown {
    border: 1px solid var(--st-border);
    border-radius: var(--st-radius);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.14);
    overflow: hidden;
    background: var(--st-bg-alt, var(--st-bg));
    color: var(--st-fg);
}

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

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

.st-checkout-shipping-note {
    background: var(--st-bg-alt);
    border: 1px solid var(--st-border);
    border-radius: var(--st-radius);
    color: var(--st-fg-muted);
    font-size: 14px;
    padding: 14px 16px;
    margin-bottom: 10px;
}

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

.st-radio-card {
    display: block;
    background: var(--st-bg);
    border: 1.5px solid var(--st-border);
    border-radius: var(--st-radius);
    padding: 14px 16px;
    cursor: pointer;
    margin-bottom: 8px;
    transition: border-color 0.15s, background-color 0.15s;
}

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

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

.st-radio-card.is-selected,
.st-radio-card:has(input[type="radio"]:checked) {
    border-color: var(--st-fg);
    background: var(--st-bg);
}

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

.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: 10px;
    font-weight: 500;
}

.st-radio-card-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin: 8px 0 0;
    padding: 4px 8px;
    border-radius: var(--st-radius-pill);
    font-size: 12px;
    font-weight: 700;
}

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

.st-radio-card-badge.is-warning {
    background: #fff4d6;
    border: 1px solid #ffd36a;
    color: #7a4b00;
}

.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: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--st-fg);
}

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

.st-radio-card-amount { font-weight: 700; }

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

.st-checkout-summary h2 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
}

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

.st-summary-line {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    font-size: 14px;
}

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

.st-summary-thumb {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    border-radius: var(--st-radius-sm);
    border: 1px solid var(--st-border);
    background: var(--st-bg);
    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: 18px;
}

.st-summary-line strong {
    font-weight: 600;
    display: block;
}

.st-summary-line .muted { color: var(--st-fg-muted); font-size: 12px; }

.st-summary-line .price { font-weight: 700; }

.st-summary-totals {
    display: grid;
    gap: 8px;
    padding-top: 4px;
}

.st-summary-totals .row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}

.st-summary-totals .total {
    border-top: 1px solid var(--st-border);
    padding-top: 14px;
    font-size: 18px;
    font-weight: 700;
}

.st-checkout-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.st-checkout-actions .button { flex: 1; height: 50px; font-size: 15px; }

@media (max-width: 960px) {
    .st-checkout-summary {
        position: static;
        top: auto;
    }

    .st-checkout-actions {
        position: static;
        z-index: auto;
        width: 100%;
        margin-top: 0;
    }
}

@media (max-width: 540px) {
    .st-checkout-actions {
        flex-direction: column;
        gap: 10px;
    }

    .st-checkout-actions .button {
        width: 100%;
        flex: none;
    }
}

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

.st-success-card {
    max-width: 720px;
    margin: 24px auto 0;
    padding: 48px 40px;
    background: var(--st-bg);
    border: 1px solid var(--st-border);
    border-radius: var(--st-radius-lg);
    text-align: center;
    box-shadow: var(--st-shadow);
}

.st-success-icon {
    width: 76px;
    height: 76px;
    margin: 0 auto 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #d1fae5;
    color: #059669;
    border-radius: 99px;
    font-size: 34px;
}

.st-success-card.is-cancelled .st-success-icon { background: #f1f5f9; color: #64748b; }
.st-success-card.is-paid .st-success-icon,
.st-success-card.is-shipped .st-success-icon,
.st-success-card.is-delivered .st-success-icon { background: #d1fae5; color: #059669; }
.st-success-card.is-pending .st-success-icon { background: #fef3c7; color: #b45309; }

.st-success-title {
    margin: 0 0 8px;
    font-size: clamp(24px, 3.2vw, 32px);
    font-weight: 700;
    letter-spacing: -0.02em;
}

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

.st-success-meta {
    text-align: left;
    background: var(--st-bg-alt);
    border-radius: var(--st-radius);
    padding: 18px 22px;
    display: grid;
    gap: 12px;
    font-size: 14px;
    margin: 0 0 22px;
}

.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-weight: 500;
    margin: 0;
    flex: 0 0 auto;
}

.st-success-meta dd {
    margin: 0;
    color: var(--st-fg);
    text-align: right;
    font-weight: 500;
}

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

.st-success-payment-instructions,
.st-success-tracking {
    text-align: left;
    background: var(--st-bg-alt);
    border: 1px solid var(--st-border);
    border-radius: var(--st-radius);
    padding: 16px 22px;
    margin: 0 0 22px;
}

.st-success-payment-instructions h2,
.st-success-tracking h2 {
    margin: 0 0 8px;
    font-size: 15px;
    font-weight: 700;
}

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

.st-success-tracking dl {
    display: grid;
    gap: 8px;
    margin: 12px 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-weight: 500;
}

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

.st-success-tracking a {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.st-success-totals {
    text-align: left;
    background: var(--st-bg);
    border: 1px solid var(--st-border);
    border-radius: var(--st-radius);
    padding: 16px 22px;
    margin: 0 0 24px;
    display: grid;
    gap: 8px;
    font-size: 14px;
}

.st-success-totals .row { display: flex; justify-content: space-between; }
.st-success-totals .row.total {
    border-top: 1px solid var(--st-border);
    padding-top: 12px;
    margin-top: 4px;
    font-size: 18px;
    font-weight: 700;
}

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

.st-success-actions .button { min-width: 200px; height: 50px; font-size: 15px; }

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

/* ================================================================
   COLECCIONES (marca / etiqueta)
   ================================================================ */
.st-collection-page { padding: 24px 0 64px; }

.st-collection-head {
    margin: 18px 0 28px;
    display: grid;
    gap: 6px;
}

.st-collection-eyebrow {
    color: var(--st-fg-muted);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 12px;
    font-weight: 700;
    margin: 0;
}

.st-collection-title {
    margin: 0;
    font-size: clamp(28px, 4vw, 38px);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.st-collection-desc {
    margin: 4px 0 0;
    color: var(--st-fg-muted);
    line-height: 1.6;
    max-width: 760px;
}

.st-collection-count {
    margin: 4px 0 0;
    color: var(--st-fg-soft);
    font-size: 13px;
}

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

.st-search-results-form {
    margin: 18px 0 12px;
    max-width: 680px;
}

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

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

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

.st-maintenance-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--st-bg-alt);
    color: var(--st-fg);
    border-radius: 99px;
    font-size: 26px;
}

.st-maintenance-msg {
    margin: 8px 0 14px !important;
    color: var(--st-fg) !important;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;
}

/* ================================================================
   PÁGINAS ESTÁTICAS
   ================================================================ */
.st-page-card {
    max-width: 760px;
    margin: 32px auto 0;
    background: transparent;
    border: 0;
    padding: 0;
    box-shadow: none;
}

.st-page-card h1 {
    margin: 0 0 18px;
    font-size: clamp(28px, 4vw, 38px);
    font-weight: 700;
    letter-spacing: -0.02em;
}

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

.st-page-content p {
    text-indent: 0;
}

.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 (card)
   ================================================================ */
.st-maintenance-card {
    background: var(--st-bg);
    border: 1px solid var(--st-border);
    border-radius: var(--st-radius-lg);
    padding: 56px 40px;
    text-align: center;
    max-width: 540px;
    width: 100%;
    box-shadow: var(--st-shadow);
}

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

.st-maintenance-card h1 { margin: 0 0 8px; font-size: 26px; font-weight: 700; }
.st-maintenance-card p { color: var(--st-fg-muted); line-height: 1.6; margin: 0; }
.st-maintenance-card .pill {
    display: inline-flex;
    margin: 0 0 16px;
    padding: 6px 12px;
    border-radius: 99px;
    background: var(--st-bg-alt);
    color: var(--st-fg);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* ================================================================
   FOOTER
   ================================================================ */
.st-footer {
    background: var(--st-accent-bg);
    color: var(--st-accent-fg);
    margin-top: 64px;
    padding: 56px 0 24px;
}

.st-footer a { color: inherit; }

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

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

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

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

.st-footer-brand strong {
    color: inherit;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.st-footer-brand p {
    margin: 0;
    color: inherit;
    opacity: 0.78;
    line-height: 1.6;
    font-size: 14px;
}

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

.st-footer-col h4 {
    color: inherit;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0 0 14px;
}

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

.st-footer-col a {
    text-decoration: none;
    font-size: 14px;
    color: inherit;
    opacity: 0.78;
    transition: opacity 0.15s;
}

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

.st-footer-contact {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 14px;
    color: inherit;
    opacity: 0.86;
}

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

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

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

.st-footer-social a {
    display: inline-flex;
    width: 38px;
    height: 38px;
    border-radius: 99px;
    background: rgba(var(--st-accent-rgb), 0);
    color: inherit;
    align-items: center;
    justify-content: center;
    border: 1px solid currentColor;
    opacity: 0.85;
    text-decoration: none;
    transition: background-color 0.15s, transform 0.1s;
    font-size: 16px;
}

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

.st-footer-bottom {
    border-top: 1px solid currentColor;
    padding-top: 22px;
    color: inherit;
    opacity: 0.7;
    font-size: 13px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

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

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

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

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

/* ================================================================
   HOME CONFIGURABLE
   ================================================================ */
@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 color-mix(in srgb, var(--st-accent-fg) 18%, transparent);
}

.st-home-marquee--secondary {
    margin-top: 30px;
    border-top: 1px solid color-mix(in srgb, var(--st-accent-fg) 18%, transparent);
}

.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-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}

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

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

.st-promo-carousel {
    background: var(--st-promo-bg, var(--st-bg-alt));
}

.st-promo-slide {
    background: var(--st-promo-bg, var(--st-bg-alt));
}

.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: linear-gradient(90deg, rgba(0, 0, 0, 0.38), rgba(0, 0, 0, 0.08));
}

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

.st-promo-slide-card {
    width: min(700px, 100%);
    padding: clamp(24px, 4vw, 44px);
    border-radius: calc(var(--st-radius) + 12px);
    background: color-mix(in srgb, var(--st-bg) 88%, transparent);
    color: var(--st-fg);
    box-shadow: var(--st-shadow-lg);
}

.st-promo-slide-bg + .st-promo-slide-inner .st-promo-slide-card {
    background: rgba(255, 255, 255, 0.9);
}

.st-promo-slide-card h1 {
    margin: 0;
    font-size: clamp(34px, 5vw, 76px);
    line-height: 0.95;
    letter-spacing: -0.06em;
}

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

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

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

.st-promo-slide.is-background-product .st-promo-slide-inner {
    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);
    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.32);
}
.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: var(--st-bg-alt);
}

.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: var(--st-muted);
    font-size: 40px;
}

.st-promo-featured-badge {
    position: absolute;
    z-index: 2;
    padding: 6px 14px;
    background: var(--st-accent-bg);
    color: var(--st-accent-fg);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    box-shadow: 0 8px 18px -6px color-mix(in srgb, var(--st-accent) 60%, rgba(0, 0, 0, 0.3));
}

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

.st-promo-featured-kicker {
    color: var(--st-accent);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.st-promo-featured-title {
    margin: 0;
    font-size: clamp(20px, 1.7vw, 26px);
    font-weight: 700;
    color: var(--st-fg);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.st-promo-featured-price {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
    font-size: 20px;
    font-weight: 700;
    color: var(--st-fg);
}

.st-promo-featured-price-prefix {
    color: var(--st-muted);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.st-promo-featured-price-old {
    color: var(--st-muted);
    text-decoration: line-through;
    font-size: 14px;
    font-weight: 500;
}

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

.st-promo-featured-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 11px 20px;
    background: var(--st-fg);
    color: var(--st-bg);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    width: max-content;
    transition: transform 0.2s ease, background 0.2s ease;
}

.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: var(--st-bg);
    border: 2px dashed color-mix(in srgb, var(--st-fg) 18%, transparent);
    border-radius: 18px;
}

.st-promo-featured-empty strong {
    font-size: 18px;
    color: var(--st-fg);
}

.st-promo-featured-empty small {
    color: var(--st-muted);
    font-size: 12px;
}

/* ======================================================
   Variant: TARJETA — Product image floats integrated on the
   slide with a soft accent glow behind it, no card chrome.
   Tilted "Oferta" sticker on top of image.
   ====================================================== */
.st-promo-slide.variant-card .st-promo-featured-card {
    --st-promo-card-width: min(440px, 100%);
    padding: 18px;
    background: color-mix(in srgb, var(--st-bg) 88%, var(--st-accent) 12%);
    border: 1px solid color-mix(in srgb, var(--st-fg) 8%, transparent);
    border-radius: calc(var(--st-radius) + 14px);
    box-shadow: 0 28px 60px -28px rgba(15, 23, 42, 0.35);
}

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

.st-promo-slide.variant-card .st-promo-featured-media {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 24px;
    overflow: hidden;
    box-shadow:
        0 36px 72px -22px rgba(15, 23, 42, 0.36),
        0 0 0 1px color-mix(in srgb, var(--st-fg) 6%, transparent);
}

.st-promo-slide.variant-card .st-promo-featured-card::before {
    content: '';
    position: absolute;
    z-index: -1;
    top: -10%;
    left: 10%;
    width: 80%;
    height: 80%;
    background: radial-gradient(circle at center,
        color-mix(in srgb, var(--st-accent) 35%, transparent) 0%,
        transparent 60%);
    filter: blur(40px);
    pointer-events: none;
}

.st-promo-slide.variant-card .st-promo-featured-badge {
    top: 18px;
    right: 18px;
    left: auto;
    transform: rotate(6deg);
    transform-origin: center;
}

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

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

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

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

/* ======================================================
   Variant: DIVIDIDO — Image and text live side by side on the
   slide, no surrounding box. Image spans tall, big typography.
   ====================================================== */
.st-promo-slide.variant-split .st-promo-featured-card {
    --st-promo-card-width: min(960px, 100%);
}

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

.st-promo-slide.variant-split .st-promo-featured-media {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    max-height: 480px;
    border-radius: 28px;
    overflow: hidden;
    box-shadow:
        0 36px 72px -22px rgba(15, 23, 42, 0.4),
        0 0 0 1px color-mix(in srgb, var(--st-fg) 6%, transparent);
}

.st-promo-slide.variant-split .st-promo-featured-card::before {
    content: '01';
    position: absolute;
    top: -10px;
    right: 0;
    z-index: -1;
    font-size: clamp(120px, 13vw, 200px);
    font-weight: 900;
    line-height: 0.85;
    color: var(--st-accent);
    opacity: 0.16;
    letter-spacing: -0.06em;
    pointer-events: none;
}

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

.st-promo-slide.variant-split .st-promo-featured-body {
    display: grid;
    justify-items: start;
    gap: 10px;
    padding: 0;
    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-kicker {
    position: relative;
    padding-left: 36px;
    text-align: left;
}

.st-promo-slide.variant-split .st-promo-featured-kicker::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 26px;
    height: 2px;
    background: var(--st-accent-bg);
    transform: translateY(-50%);
}

.st-promo-slide.variant-split .st-promo-featured-title {
    font-size: clamp(32px, 3.4vw, 56px);
    line-height: 0.98;
    letter-spacing: -0.02em;
    margin-top: 4px;
}

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

.st-promo-slide.variant-split .st-promo-featured-cta {
    margin-top: 20px;
    padding: 13px 24px;
    background: var(--st-accent-bg);
    color: var(--st-accent-fg);
}

@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(34px, 6vw, 78px) 0;
}

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

.st-home-benefit-card {
    display: grid;
    gap: 9px;
    padding: 22px;
    border: 1px solid var(--st-border);
    border-radius: var(--st-radius);
    background: var(--st-bg);
}

.st-home-benefit-card i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: var(--st-accent-bg);
    color: var(--st-accent-fg);
    font-size: 24px;
}

.st-home-benefit-card strong {
    font-size: 16px;
}

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

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

.st-product-marquee {
    overflow-x: auto;
    overflow-y: hidden;
    margin-top: 24px;
    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: 18px;
    padding: 4px 18px 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, 290px);
    flex: 0 0 auto;
}

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

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

.st-home-mosaic-large .st-product-card-title {
    font-size: clamp(22px, 2vw, 34px);
    line-height: 1.05;
}

.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: 18px;
}

.st-home-story-card,
.st-home-newsletter-card {
    display: grid;
    gap: 18px;
    padding: clamp(28px, 5vw, 56px);
    border-radius: calc(var(--st-radius) + 12px);
    background:
        radial-gradient(circle at top right, color-mix(in srgb, var(--st-accent) 22%, transparent), transparent 38%),
        var(--st-bg-alt);
    border: 1px solid var(--st-border);
}

.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-size: clamp(30px, 4vw, 58px);
    letter-spacing: -0.05em;
}

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

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

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

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

.st-home-faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    cursor: pointer;
    padding: 18px 20px;
    font-weight: 800;
    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: 999px;
    background: var(--st-bg-alt);
    color: var(--st-fg);
    font-family: "bootstrap-icons";
    font-size: 14px;
    transition: transform 0.22s ease, background 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-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);
    border-radius: var(--st-radius-pill);
    padding: 0 18px;
    background: var(--st-bg);
    color: var(--st-fg);
}

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

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

.st-home-editorial-rank {
    position: absolute;
    z-index: 2;
    top: 12px;
    right: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 30px;
    border-radius: var(--st-radius-pill);
    background: var(--st-accent-bg);
    color: var(--st-accent-fg);
    font-size: 12px;
    font-weight: 900;
}

@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-carousel .storefront-carousel-list,
    .st-promo-carousel .storefront-carousel-slide {
        min-height: inherit;
    }

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

    .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: 22px;
    }

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

    .st-promo-slide.variant-split .st-promo-featured-card::before {
        font-size: clamp(70px, 18vw, 110px);
        top: -18px;
    }

    .st-promo-slide.variant-split .st-promo-featured-media {
        aspect-ratio: 4 / 3;
        min-height: 0;
    }

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

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

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

    .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-mosaic-large .st-product-card-media {
        min-height: 0;
        aspect-ratio: 1 / 1.15;
    }

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

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

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

    .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: 14px;
    }

    .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 {
        height: 100%;
        display: flex;
        flex-direction: column;
    }

    .st-home-mosaic-small > *:first-child .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: 18px;
        line-height: 1.05;
    }

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

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

/* ================================================================
   HOME EDITOR MODE (ADMIN)
   ================================================================ */
body.store-admin-home-edit-mode {
    background: var(--st-bg);
}

.store-admin-home-edit-container {
    width: 100%;
    margin: 0;
    padding: 0;
}

body.store-admin-home-edit-mode .store-admin-home-edit-form {
    position: sticky;
    top: 0;
    z-index: 100;
    display: grid;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--st-border);
    background: color-mix(in srgb, var(--st-bg) 94%, transparent);
    backdrop-filter: blur(14px);
}

body.store-admin-home-edit-mode .store-admin-home-savebar {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    backdrop-filter: none;
}

body.store-admin-home-edit-mode .store-admin-home-savebar p {
    margin: 0;
    color: var(--st-fg);
    font-size: 14px;
    font-weight: 700;
}

body.store-admin-home-edit-mode .store-admin-home-savebar-mobile-text {
    display: none;
}

body.store-admin-home-edit-mode .store-admin-home-mobile-actions {
    display: none;
}

body.store-admin-home-edit-mode .store-admin-home-tools {
    grid-template-columns: minmax(220px, 0.75fr) repeat(2, minmax(220px, 1fr));
}

body.store-admin-home-edit-mode .store-admin-home-tools[hidden] {
    display: none;
}

body.store-admin-home-edit-mode .store-admin-home-tool-card {
    background: var(--st-bg);
}

.store-admin-home-editor-surface {
    min-height: 100vh;
}

body.store-admin-home-edit-mode [data-home-section] {
    position: relative;
}

body.store-admin-home-edit-mode [data-home-section][data-home-section-hidden="true"] {
    display: none !important;
}

.st-home-section-visibility-button {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 20;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 32px;
    padding: 0 11px;
    border: 1px solid color-mix(in srgb, var(--st-fg) 14%, transparent) !important;
    border-radius: 10px;
    background: color-mix(in srgb, var(--st-bg) 88%, transparent) !important;
    color: var(--st-fg) !important;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.1);
    cursor: pointer !important;
}

.st-home-section-visibility-button:hover,
.st-home-section-visibility-button:focus {
    background: var(--st-bg) !important;
    color: var(--st-fg) !important;
    transform: none;
    filter: none;
}

.st-featured-products .st-home-section-visibility-button,
.st-footer .st-home-section-visibility-button,
.st-home-marquee .st-home-section-visibility-button {
    border-color: color-mix(in srgb, var(--st-accent-fg) 30%, transparent) !important;
    background: color-mix(in srgb, var(--st-accent) 72%, transparent) !important;
    color: var(--st-accent-fg) !important;
}

.st-home-marquee .st-home-section-visibility-button {
    top: 50%;
    min-height: 24px;
    padding: 0 8px;
    font-size: 11px;
    transform: translateY(-50%) !important;
}

.st-home-marquee .st-home-section-visibility-button:hover,
.st-home-marquee .st-home-section-visibility-button:focus {
    transform: translateY(-50%) !important;
}

.st-home-section-hidden-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: min(100% - 32px, 1180px);
    margin: 16px auto;
    padding: 13px 14px;
    border: 1px dashed color-mix(in srgb, var(--st-accent) 34%, var(--st-border));
    border-radius: 14px;
    background: color-mix(in srgb, var(--st-accent) 6%, var(--st-bg));
    color: var(--st-fg);
}

.st-home-section-hidden-bar strong {
    font-size: 14px;
    font-weight: 900;
}

.st-home-section-hidden-bar span {
    color: var(--st-fg-muted);
    font-size: 13px;
    font-weight: 700;
}

.st-home-section-hidden-bar .button {
    min-height: 34px;
    padding: 0 12px;
    border-radius: 10px;
    cursor: pointer !important;
}

body.store-admin-home-edit-mode .store-admin-home-icon-grid button,
body.store-admin-home-edit-mode .store-admin-home-icon-grid button:hover,
body.store-admin-home-edit-mode .store-admin-home-icon-grid button:focus,
body.store-admin-home-edit-mode .store-admin-home-icon-grid button:focus-visible {
    width: 34px !important;
    height: 34px !important;
    padding: 0 !important;
    border: 1px solid var(--store-admin-border, var(--st-border-strong)) !important;
    border-radius: 10px !important;
    background: transparent !important;
    color: var(--store-admin-text, #111827) !important;
    box-shadow: none !important;
    transform: none !important;
    filter: none !important;
}

body.store-admin-home-edit-mode .store-admin-home-product-modal .store-admin-combobox-results {
    background: var(--store-admin-panel-bg, var(--st-bg)) !important;
    color: var(--store-admin-text, var(--st-fg)) !important;
    border-color: var(--store-admin-border, var(--st-border)) !important;
}

body.store-admin-home-edit-mode .store-admin-home-product-modal .store-admin-combobox-item,
body.store-admin-home-edit-mode .store-admin-home-product-modal button.store-admin-combobox-item,
body.store-admin-home-edit-mode .store-admin-home-product-modal .store-admin-combobox-item:hover,
body.store-admin-home-edit-mode .store-admin-home-product-modal button.store-admin-combobox-item:hover,
body.store-admin-home-edit-mode .store-admin-home-product-modal .store-admin-combobox-item:focus-visible,
body.store-admin-home-edit-mode .store-admin-home-product-modal button.store-admin-combobox-item:focus-visible {
    justify-content: flex-start !important;
    width: 100% !important;
    padding: 10px 12px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: var(--store-admin-text, var(--st-fg)) !important;
    box-shadow: none !important;
    transform: none !important;
    filter: none !important;
}

body.store-admin-home-edit-mode .store-admin-home-product-modal .store-admin-combobox-item:hover,
body.store-admin-home-edit-mode .store-admin-home-product-modal button.store-admin-combobox-item:hover,
body.store-admin-home-edit-mode .store-admin-home-product-modal .store-admin-combobox-item:focus-visible,
body.store-admin-home-edit-mode .store-admin-home-product-modal button.store-admin-combobox-item:focus-visible {
    background: rgba(15, 23, 42, 0.06) !important;
}

.store-admin-home-editor-surface a,
.store-admin-home-editor-surface button:not([data-store-carousel-prev]):not([data-store-carousel-next]):not([data-st-scroll-prev]):not([data-st-scroll-next]) {
    cursor: default;
}

.st-home-edit-field {
    border-radius: 6px;
    color: inherit;
    cursor: pointer;
    outline: 1px solid transparent;
    outline-offset: 3px;
    transition: outline-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

[data-home-button-editable],
[data-home-icon-editable],
[data-home-product-slot],
[data-home-faq-editable],
[data-home-faq-add],
[data-home-faq-remove] {
    cursor: pointer;
}

.store-admin-home-editor-surface [data-home-editable],
.store-admin-home-editor-surface [data-home-button-editable],
.store-admin-home-editor-surface [data-home-icon-editable],
.store-admin-home-editor-surface [data-home-product-slot],
.store-admin-home-editor-surface [data-home-faq-editable],
.store-admin-home-editor-surface [data-home-faq-add],
.store-admin-home-editor-surface [data-home-faq-remove] {
    cursor: pointer;
}

.st-home-edit-field:hover,
.st-home-edit-field:focus {
    background: color-mix(in srgb, var(--st-accent) 8%, transparent);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--st-accent) 12%, transparent);
    outline-color: color-mix(in srgb, var(--st-accent) 70%, transparent);
}

.st-featured-products .st-home-edit-field:hover,
.st-featured-products .st-home-edit-field:focus,
.st-footer .st-home-edit-field:hover,
.st-footer .st-home-edit-field:focus {
    background: color-mix(in srgb, var(--st-accent-fg) 12%, transparent);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--st-accent-fg) 14%, transparent);
    outline-color: color-mix(in srgb, var(--st-accent-fg) 76%, transparent);
}

.st-home-edit-field--marquee {
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
    letter-spacing: inherit;
    text-transform: inherit;
}

.st-home-edit-field--kicker {
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
}

.st-home-edit-field--hero-title,
.st-home-edit-field--title {
    display: block;
}

.st-home-edit-field--body,
.st-home-edit-field--card-text,
.st-home-edit-field--faq-answer {
    color: inherit;
    display: inline;
}

.st-home-edit-button-shell {
    display: inline-flex;
    min-width: 160px;
}

.st-home-edit-button-shell .st-home-edit-field {
    background: transparent;
    color: inherit;
    text-align: center;
}

.st-home-edit-field--url {
    display: block;
    max-width: 260px;
    margin-top: 8px;
    color: var(--st-muted);
    font-size: 13px;
}

.st-home-faq-item summary .st-home-edit-field {
    flex: 1 1 auto;
    font-weight: inherit;
}

.st-home-edit-icon {
    border-radius: 14px;
    outline: 1px solid transparent;
    outline-offset: 6px;
    transition: outline-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.st-home-edit-icon:hover,
.st-home-edit-icon:focus {
    background: transparent;
    box-shadow: 0 0 0 8px color-mix(in srgb, var(--st-accent) 10%, transparent);
    color: inherit;
    outline-color: color-mix(in srgb, var(--st-accent) 62%, transparent);
}

.st-home-edit-product-slot {
    position: relative;
    border-radius: 22px;
    outline: 1px solid transparent;
    outline-offset: 5px;
    transition: outline-color 0.16s ease, box-shadow 0.16s ease;
}

.st-home-edit-product-slot:hover,
.st-home-edit-product-slot:focus {
    box-shadow: 0 0 0 6px color-mix(in srgb, var(--st-accent) 12%, transparent);
    outline-color: color-mix(in srgb, var(--st-accent) 66%, transparent);
}

.st-home-edit-faq-row {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 36px;
    align-items: center;
    gap: 10px;
}

.st-home-edit-faq-row .st-home-faq-item {
    min-width: 0;
}

.st-home-edit-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 1px solid var(--st-border-strong);
    border-radius: 10px;
    background: transparent;
    color: #dc2626;
    font-size: 13px;
}

.st-home-edit-remove:hover,
.st-home-edit-remove:focus {
    border-color: var(--st-border-strong);
    background: transparent;
    color: #dc2626;
}

body.store-admin-home-edit-mode .st-home-edit-remove,
body.store-admin-home-edit-mode .st-home-edit-remove:hover,
body.store-admin-home-edit-mode .st-home-edit-remove:focus,
body.store-admin-home-edit-mode .st-home-edit-remove:focus-visible {
    width: 32px !important;
    height: 32px !important;
    padding: 0 !important;
    border: 1px solid var(--st-border-strong) !important;
    border-radius: 10px !important;
    background: transparent !important;
    color: #dc2626 !important;
    cursor: pointer !important;
    box-shadow: none !important;
    transform: none !important;
    filter: none !important;
}

.st-home-edit-add-faq {
    margin-top: 16px;
    cursor: pointer !important;
}

body.store-admin-home-edit-mode .st-home-newsletter-form input:disabled {
    opacity: 1;
    cursor: not-allowed;
}

.st-home-carousel-edit-placeholder {
    min-height: 420px;
    display: grid;
    place-items: center;
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--st-accent) 10%, var(--st-bg)), var(--st-bg-alt));
}

.st-home-carousel-edit-placeholder-card {
    display: grid;
    justify-items: center;
    gap: 10px;
    width: min(560px, 100%);
    margin: 0 auto;
    padding: clamp(30px, 6vw, 56px);
    border: 1px dashed color-mix(in srgb, var(--st-accent) 42%, transparent);
    border-radius: 28px;
    background: color-mix(in srgb, var(--st-bg) 84%, transparent);
    text-align: center;
    box-shadow: var(--st-shadow);
}

.st-home-carousel-edit-placeholder-card span {
    color: var(--st-fg);
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.055em;
}

.st-home-carousel-edit-placeholder-card p {
    max-width: 430px;
    margin: 0;
    color: var(--st-fg-muted);
}

@media (max-width: 1100px) {
    body.store-admin-home-edit-mode .store-admin-home-tools {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    body.store-admin-home-edit-mode .store-admin-home-edit-form {
        position: sticky;
        padding: 10px 14px;
        backdrop-filter: none;
    }

    body.store-admin-home-edit-mode .store-admin-home-savebar {
        display: block;
        text-align: center;
    }

    body.store-admin-home-edit-mode .store-admin-home-savebar-desktop-text {
        display: none;
    }

    body.store-admin-home-edit-mode .store-admin-home-savebar-mobile-text {
        display: inline;
    }

    body.store-admin-home-edit-mode .store-admin-home-desktop-actions {
        display: none !important;
    }

    body.store-admin-home-edit-mode .store-admin-home-mobile-actions {
        position: fixed !important;
        top: auto !important;
        right: 12px !important;
        bottom: max(12px, env(safe-area-inset-bottom)) !important;
        left: 12px !important;
        z-index: 9999;
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        pointer-events: none;
        background: transparent !important;
    }

    body.store-admin-home-edit-mode .store-admin-home-mobile-actions .button {
        width: 100%;
        min-height: 44px;
        pointer-events: auto;
    }
}

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

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

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

body.theme-store [data-st-add-button].is-success {
    background: var(--st-success, #16a34a);
    color: #fff;
}

.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: #0f172a;
    color: #fff;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.22);
    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: #16a34a; }
.st-toast.is-error { background: #dc2626; }

.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, #0f172a);
    color: var(--st-accent-fg, #fff);
    font-size: 12px;
    font-weight: 700;
    margin-left: 6px;
}

/* ================================================================
   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(15, 23, 42, 0.60);
    backdrop-filter: blur(4px);
}

.storefront-popup-dialog {
    position: relative;
    z-index: 1;
    width: min(560px, 100%);
    display: grid;
    gap: 18px;
    padding: 24px;
    border-radius: var(--st-radius-lg);
    background: #fff;
    box-shadow: 0 26px 60px rgba(15, 23, 42, 0.22);
}

.storefront-popup--centered .storefront-popup-dialog {
    overflow: hidden;
    padding-top: 30px;
    justify-items: stretch;
    text-align: left;
}

.storefront-popup--centered .storefront-popup-dialog::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 6px;
    background: linear-gradient(90deg, var(--st-accent), rgba(var(--st-accent-rgb), 0.35));
}

.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-radius: 28px;
}

.storefront-popup--spotlight .storefront-popup-dialog {
    width: min(520px, 100%);
    justify-items: center;
    gap: 18px;
    padding: 38px 30px 30px;
    overflow: hidden;
    text-align: center;
}

.storefront-popup--spotlight .storefront-popup-dialog::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 96px;
    background:
        radial-gradient(circle at 24% 10%, rgba(255, 255, 255, 0.85), transparent 32%),
        linear-gradient(135deg, rgba(var(--st-accent-rgb), 0.2), rgba(var(--st-accent-rgb), 0.06));
    pointer-events: none;
}

.storefront-popup-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 99px;
    background: rgba(15, 23, 42, 0.06);
    color: #0f172a;
    box-shadow: none;
    padding: 0;
    z-index: 4;
}

.storefront-popup-close:hover { background: rgba(15, 23, 42, 0.10); color: #0f172a; }

.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: 360px;
    object-fit: cover;
}

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

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

.storefront-popup-copy { display: grid; gap: 10px; }
.storefront-popup-copy h2 { margin: 0; font-size: 22px; font-weight: 700; }
.storefront-popup-copy p { margin: 0; color: var(--st-fg-muted); line-height: 1.6; }

.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: 6px solid #ffffff;
    border-radius: 999px;
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.16);
}

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

.storefront-popup--spotlight .storefront-popup-copy {
    max-width: 390px;
}

.storefront-popup--spotlight .storefront-popup-copy h2 {
    font-size: clamp(24px, 5vw, 34px);
    letter-spacing: -0.035em;
}

.storefront-popup--spotlight .storefront-popup-copy p {
    color: #475569;
    font-size: 16px;
}

.storefront-popup-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    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 var(--st-border);
    border-radius: var(--st-radius-pill);
    background: #ffffff;
    color: var(--st-fg);
    padding: 0 16px;
    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: var(--st-success, #15803d); }
.storefront-popup-form-message.is-error { color: var(--st-danger, #b91c1c); }
.storefront-popup-form .button:disabled {
    cursor: wait;
    opacity: 0.72;
}

@media (max-width: 540px) {
    .storefront-popup-dialog { padding: 18px; border-radius: var(--st-radius); }
    .storefront-popup-copy h2 { font-size: 19px; }
    .storefront-popup--split_image .storefront-popup-dialog {
        grid-template-columns: minmax(0, 1fr);
        padding: 0;
        border-radius: var(--st-radius);
    }
    .storefront-popup--split_image .storefront-popup-media img {
        min-height: 190px;
        max-height: 240px;
    }
    .storefront-popup--split_image .storefront-popup-copy {
        padding: 20px 18px 18px;
    }
    .storefront-popup--spotlight .storefront-popup-dialog {
        padding: 30px 20px 22px;
    }
    .storefront-popup--spotlight .storefront-popup-media {
        width: 96px;
        height: 96px;
    }
    .storefront-popup--spotlight .storefront-popup-copy h2 {
        font-size: 24px;
    }
}

/* ================================================================
   Sobreescrituras de clases legacy de plataforma para storefront
   (siguen siendo usadas en algunos templates por compatibilidad)
   ================================================================ */
body.theme-store .card {
    background: var(--st-bg);
    border: 1px solid var(--st-border);
    border-radius: var(--st-radius-lg);
    box-shadow: none;
    backdrop-filter: none;
}

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

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

body.theme-store .product-image {
    width: 100%;
    aspect-ratio: 1;
    height: auto;
    border-radius: var(--st-radius);
    background: var(--st-bg-alt);
    object-fit: cover;
}

body.theme-store .price {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0;
}

body.theme-store .empty-state {
    background: var(--st-bg-alt);
    border: 1px dashed var(--st-border-strong);
    box-shadow: none;
    border-radius: var(--st-radius-lg);
}

body.theme-store .nav { display: none; }

.st-checkout-info-tooltip {
    position: relative;
    display: inline-flex;
    align-items: center;
    color: var(--st-fg-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-radius: var(--st-radius);
    background: var(--st-fg);
    color: var(--st-bg);
    font-size: 12px;
    line-height: 1.35;
    box-shadow: var(--st-shadow);
    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: 860px) {
    .st-account-icon { display: none !important; }
}

.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-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) 12%, transparent);
    color: var(--st-fg);
}

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

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

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

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

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