.shop-theme {
    --shop-bg: #070b12;
    --shop-surface: #0f1623;
    --shop-border: rgba(255, 255, 255, 0.08);
    --shop-border-strong: rgba(255, 255, 255, 0.14);
    --shop-text: #f4f7fb;
    --shop-muted: #8b97ab;
    --shop-accent: #00e8a0;
    --shop-accent-soft: rgba(0, 232, 160, 0.14);
    --shop-sidebar: 240px;
    --shop-filters: 270px;
}

* { box-sizing: border-box; }
html:has(.shop-shell),
body.shop-theme {
    height: 100%;
    height: 100dvh;
    overflow: hidden;
}
body.shop-theme {
    margin: 0;
    background: var(--shop-bg);
    color: var(--shop-text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    display: grid;
    grid-template-columns: var(--shop-sidebar) minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
}
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
[x-cloak] { display: none !important; }

.shop-shell,
.shop-main { display: contents; }

/* Menú lateral: columna fija bajo la barra, con su propio scroll */
.shop-sidebar {
    grid-column: 1;
    grid-row: 2;
    align-self: stretch;
    min-height: 0;
    height: auto;
    overflow: hidden;
    background: linear-gradient(180deg, var(--shop-sidebar-from, #0c1320) 0%, var(--shop-sidebar-to, #0a101a) 100%);
    border-right: 1px solid var(--shop-border);
    padding: 0.75rem 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 40;
}
.shop-sidebar-nav-sticky {
    position: static;
    top: auto;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    flex: 1;
    min-height: 0;
    height: 100%;
    overflow: hidden;
}
.shop-sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.25rem 0.5rem 1rem;
}
.shop-sidebar-brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--shop-brand-from, #ff4d6d), var(--shop-brand-to, #ff8a5b));
    display: grid;
    place-items: center;
    color: #fff;
    overflow: hidden;
}
.shop-sidebar-brand-mark--logo {
    background: transparent;
    border: 1px solid var(--shop-border);
}
.shop-sidebar-brand-mark--logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
}
.shop-sidebar-brand-name {
    font-weight: 700;
    font-size: 0.95rem;
}

.shop-sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
}

/* Listoncillo / botón de menú */
.shop-ribbon {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    width: 100%;
    padding: 0.72rem 0.9rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #121a28;
    color: #d7deea;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: background .15s, border-color .15s, color .15s, box-shadow .15s;
    box-shadow: 0 1px 0 rgba(255,255,255,0.03) inset;
}
.shop-ribbon i:first-child {
    width: 1.15rem;
    text-align: center;
    color: var(--shop-muted);
    font-size: 0.92rem;
}
.shop-ribbon span { flex: 1; }
.shop-ribbon:hover {
    border-color: rgba(0, 232, 160, 0.35);
    color: #fff;
    background: #162033;
}
.shop-ribbon:hover i:first-child { color: var(--shop-accent); }
.shop-ribbon.is-active {
    background: var(--shop-accent);
    border-color: var(--shop-accent);
    color: #041018;
    box-shadow: 0 0 18px rgba(0, 232, 160, 0.25);
}
.shop-ribbon.is-active i { color: #041018 !important; }

.shop-ribbon-toggle { font: inherit; }
.shop-ribbon-caret {
    margin-left: auto;
    font-size: 0.65rem;
    color: var(--shop-muted);
    transition: transform .15s;
    width: auto !important;
}
.shop-ribbon.is-active .shop-ribbon-caret { color: #041018; }
.shop-ribbon-caret.is-open { transform: rotate(180deg); }

.shop-ribbon-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding: 0.15rem 0 0.25rem 0.55rem;
}
.shop-ribbon-sub {
    font-size: 0.84rem;
    font-weight: 500;
    padding: 0.62rem 0.85rem;
    background: #0e1522;
}

.shop-sidebar-footer {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--shop-border);
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

/* compat: enlaces viejos del menú */
.shop-nav-link {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.7rem 0.85rem;
    border-radius: 12px;
    color: #c7d0df;
    font-size: 0.9rem;
}

/* Barra superior fija: ocupa el ancho y no se va con el scroll */
.shop-top {
    grid-column: 1 / -1;
    grid-row: 1;
    position: relative;
    z-index: 30;
    backdrop-filter: blur(12px);
    background: color-mix(in srgb, var(--shop-bg) 92%, transparent);
    border-bottom: 1px solid var(--shop-border);
    padding: 0.85rem 1.25rem;
}
.shop-top-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    margin: 0;
}
.shop-top-brand {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 110px;
}
.shop-top-eyebrow {
    font-size: 0.62rem;
    letter-spacing: 0.16em;
    color: var(--shop-accent);
    font-weight: 700;
}
.shop-top-brand-row {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-width: 0;
}
.shop-top-logo {
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: 0.01em;
    color: #fff;
    line-height: 1.15;
    white-space: nowrap;
}
.shop-top-logo--placeholder {
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.55);
    font-style: italic;
    border: 1px dashed rgba(255, 255, 255, 0.25);
    border-radius: var(--shop-pill-radius, 14px);
    padding: 0.35rem 0.75rem;
}
.shop-top-logo-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--shop-pill-radius, 14px);
    padding: 0.28rem 0.7rem;
    max-width: 11.5rem;
}
.shop-top-logo-img {
    height: 30px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    display: block;
}
.shop-search {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    background: var(--shop-surface);
    border: 1px solid var(--shop-border-strong);
    border-radius: var(--shop-input-radius, 14px);
    padding: 0.55rem 1rem;
    max-width: 640px;
    margin: 0 auto;
    z-index: 40;
}
.shop-search.is-open {
    border-radius: 14px 14px 0 0;
    border-bottom-color: transparent;
}
.shop-search > .fa-search { color: var(--shop-muted); flex-shrink: 0; }
.shop-search input {
    flex: 1;
    background: transparent;
    border: 0;
    outline: none;
    color: var(--shop-text);
    min-width: 0;
}
.shop-search input::placeholder { color: #667288; }
.shop-search-results {
    position: absolute;
    left: -1px;
    right: -1px;
    top: calc(100% - 1px);
    background: #121a28;
    border: 1px solid var(--shop-border-strong);
    border-top: 1px solid rgba(255,255,255,0.06);
    border-radius: 0 0 14px 14px;
    box-shadow: 0 18px 40px rgba(0,0,0,0.45);
    max-height: min(70vh, 420px);
    overflow-y: auto;
    z-index: 50;
}
.shop-search-results[hidden] { display: none !important; }
.shop-search-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 0.9rem;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: background 0.15s ease;
}
.shop-search-item:last-of-type { border-bottom: 0; }
.shop-search-item:hover,
.shop-search-item.is-active {
    background: rgba(42, 108, 255, 0.14);
}
.shop-search-thumb {
    width: 42px;
    height: 42px;
    border-radius: 0.55rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    overflow: hidden;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    color: var(--shop-muted);
    font-size: 0.85rem;
}
.shop-search-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.shop-search-meta { min-width: 0; flex: 1; }
.shop-search-name {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: #f2f5fb;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.shop-search-sub {
    display: block;
    font-size: 0.72rem;
    color: #8b96a8;
    margin-top: 0.15rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.shop-search-price {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--shop-accent, #3dd6c6);
    flex-shrink: 0;
}
.shop-search-empty,
.shop-search-loading {
    padding: 1rem 1.1rem;
    font-size: 0.85rem;
    color: #8b96a8;
}
.shop-search-footer {
    display: block;
    padding: 0.75rem 1rem;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 600;
    color: #8eb6ff;
    text-decoration: none;
    border-top: 1px solid rgba(255,255,255,0.06);
    background: rgba(255,255,255,0.02);
}
.shop-search-footer:hover { color: #fff; background: rgba(42, 108, 255, 0.12); }
.shop-top-actions {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-left: auto;
}
.shop-user-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: #d7deea;
    font-size: 0.85rem;
    background: var(--shop-surface);
    border: 1px solid var(--shop-border-strong);
    border-radius: var(--shop-pill-radius, 14px);
    cursor: pointer;
    padding: 0.35rem 0.85rem 0.35rem 0.35rem;
    text-decoration: none;
    transition: border-color 0.15s ease, background 0.15s ease;
}
.shop-user-chip:hover {
    border-color: rgba(0, 232, 160, 0.45);
    color: #fff;
}
.shop-user-menu {
    position: relative;
}
.shop-user-caret {
    font-size: 0.65rem;
    opacity: 0.6;
    transition: transform .15s ease;
}
.shop-user-caret.is-open {
    transform: rotate(180deg);
}
.shop-user-dropdown {
    position: absolute;
    top: calc(100% + 0.45rem);
    right: 0;
    min-width: 13.5rem;
    background: #121a28;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 12px;
    box-shadow: 0 16px 36px rgba(0,0,0,.45);
    padding: 0.4rem;
    z-index: 60;
}
.shop-user-dropdown-hello {
    padding: 0.55rem 0.7rem 0.15rem;
    font-size: 0.86rem;
    font-weight: 700;
    color: #f2f5fb;
}
.shop-user-dropdown-role {
    padding: 0.1rem 0.7rem 0.55rem;
    font-size: 0.72rem;
    color: #8b97ab;
}
.shop-user-dropdown-divider {
    height: 1px;
    margin: 0.15rem 0.4rem 0.35rem;
    background: rgba(255,255,255,.08);
}
.shop-user-dropdown-form {
    margin: 0;
}
.shop-user-dropdown-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    text-align: left;
    padding: 0.55rem 0.7rem;
    border-radius: 8px;
    border: 0;
    background: transparent;
    color: #d7deea;
    font-size: 0.82rem;
    text-decoration: none;
    cursor: pointer;
}
.shop-user-dropdown-item:hover {
    background: rgba(255,255,255,.06);
}
.shop-user-dropdown-item i {
    width: 1rem;
    text-align: center;
    opacity: 0.85;
    font-size: 0.78rem;
}
.shop-user-dropdown-item--danger {
    color: #f0a8a8;
}
.shop-user-dropdown-item--danger:hover {
    background: rgba(240, 100, 100, 0.1);
}
.shop-avatar {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: linear-gradient(135deg, #2a6cff, var(--shop-accent));
    display: grid;
    place-items: center;
    font-size: 0.72rem;
    font-weight: 700;
    color: #fff;
}
.shop-cart-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: var(--shop-surface);
    border: 1px solid var(--shop-border-strong);
    color: #fff;
    border-radius: var(--shop-pill-radius, 14px);
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.shop-cart-btn:hover {
    border-color: rgba(0, 232, 160, 0.45);
    color: var(--shop-accent);
}
.shop-cart-badge {
    position: absolute;
    top: -6px;
    right: -4px;
    background: var(--shop-accent);
    color: #041018;
    font-size: 0.65rem;
    font-weight: 800;
    min-width: 1.15rem;
    height: 1.15rem;
    border-radius: 999px;
    display: grid;
    place-items: center;
}
.shop-content {
    grid-column: 2;
    grid-row: 2;
    padding: 1.25rem 1.5rem 1.5rem;
    max-width: none;
    width: auto;
    min-width: 0;
    min-height: 0;
    margin: 0;
    overflow-x: clip;
    overflow-y: auto;
    overscroll-behavior: contain;
}

/* Catálogo: productos/categorías + filtros al lado */
.shop-catalog-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 1.25rem;
    align-items: start;
}
.shop-catalog-main { min-width: 0; }
.shop-filters-inline {
    position: sticky;
    top: 0.75rem;
    height: auto;
    max-height: calc(100dvh - var(--shop-top-offset, 4.5rem) - 1.5rem);
    overflow-y: auto;
    background: transparent;
    border-left: 0;
    padding: 0;
}
.shop-filters-desktop { display: block; }
.shop-filters-drawer {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 70;
    background: rgba(0,0,0,0.55);
    justify-content: flex-end;
}
.shop-filters-drawer.is-open { display: flex; }
.shop-filters-drawer .shop-filters-inline {
    width: min(300px, 88vw);
    height: 100%;
    max-height: none;
    background: #0c131f;
    border-left: 1px solid var(--shop-border);
    padding: 1rem;
    overflow-y: auto;
    position: static;
}
.shop-filter-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    color: #fff;
}
.shop-filter-drawer-close {
    background: transparent;
    border: 0;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
}
.shop-branch-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 1rem;
}
.shop-branch-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    align-items: center;
    margin-bottom: 1rem;
}
.shop-branch-label {
    font-size: 0.8rem;
    color: #8b97ab;
    font-weight: 600;
}
.shop-branch-dropdown {
    position: relative;
    z-index: 40;
}
.shop-branch-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    min-width: 12rem;
    max-width: 18rem;
    padding: 0.4rem 0.85rem 0.4rem 0.4rem;
    border-radius: var(--shop-pill-radius, 14px);
    border: 1px solid rgba(0, 232, 160, 0.35);
    background: rgba(0, 232, 160, 0.12);
    color: #d7fceb;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}
.shop-branch-trigger:hover {
    border-color: rgba(0, 232, 160, 0.55);
    background: rgba(0, 232, 160, 0.18);
}
.shop-branch-trigger-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.15;
    min-width: 0;
}
.shop-branch-trigger-text strong {
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 10rem;
}
.shop-branch-trigger-text small {
    font-size: 0.68rem;
    color: #9fe9cb;
    opacity: 0.9;
}
.shop-branch-caret {
    margin-left: auto;
    font-size: 0.65rem;
    opacity: 0.8;
    transition: transform .15s ease;
}
.shop-branch-caret.is-open {
    transform: rotate(180deg);
}
.shop-branch-thumb {
    width: 1.85rem;
    height: 1.85rem;
    border-radius: 999px;
    object-fit: cover;
    border: 1px solid rgba(255,255,255,.18);
    flex-shrink: 0;
}
.shop-branch-thumb--empty {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.06);
    color: #8b97ab;
    font-size: 0.7rem;
}
.shop-branch-menu {
    position: absolute;
    top: calc(100% + 0.4rem);
    left: 0;
    width: min(22rem, 86vw);
    background: #121a28;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(0,0,0,.45);
    padding: 0.55rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.shop-branch-menu-title {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #8b97ab;
    padding: 0.35rem 0.55rem 0.45rem;
}
.shop-branch-option-form {
    margin: 0;
}
.shop-branch-option {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    text-align: left;
    padding: 0.55rem 0.6rem;
    border-radius: 10px;
    border: 1px solid transparent;
    background: transparent;
    color: #d7deea;
    cursor: pointer;
}
.shop-branch-option:hover {
    background: rgba(255,255,255,.05);
}
.shop-branch-option.is-active {
    border-color: rgba(0, 232, 160, 0.35);
    background: rgba(0, 232, 160, 0.1);
}
.shop-branch-option-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}
.shop-branch-option-text strong {
    font-size: 0.86rem;
}
.shop-branch-option-text small {
    font-size: 0.7rem;
    color: #8b97ab;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.shop-branch-check {
    color: var(--shop-accent);
    font-size: 0.75rem;
}
.shop-branch-pills {
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
}
.shop-branch-pill {
    border: 1px solid var(--shop-border-strong);
    background: var(--shop-surface);
    color: var(--shop-muted);
    border-radius: 999px;
    padding: 0.35rem 0.85rem;
    font-size: 0.78rem;
    cursor: pointer;
}
.shop-branch-pill.is-active,
.shop-branch-pill:hover {
    border-color: rgba(0, 232, 160, 0.45);
    color: var(--shop-accent);
    background: var(--shop-accent-soft);
}
.shop-branch-pill-km {
    margin-left: 0.25rem;
    opacity: 0.75;
    font-size: 0.68rem;
}
.shop-branch-geo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    width: 100%;
    margin-top: 0.35rem;
    padding: 0.55rem 0.85rem;
    border-radius: var(--shop-pill-radius, 14px);
    border: 1px dashed rgba(0, 232, 160, 0.4);
    background: rgba(0, 232, 160, 0.06);
    color: #9fe9cb;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
}
.shop-branch-geo:disabled {
    opacity: 0.65;
    cursor: wait;
}
.shop-branch-geo--inline {
    width: auto;
    margin-top: 0;
    border-radius: 999px;
    padding: 0.4rem 0.75rem;
}
.shop-branch-geo-hint {
    font-size: 0.7rem;
    color: #f0a0a0;
    padding: 0.25rem 0.55rem 0.1rem;
    margin: 0;
}
.shop-search-branches {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-top: 0.35rem;
}
.shop-search-branch {
    display: inline-block;
    font-size: 0.65rem;
    padding: 0.12rem 0.4rem;
    border-radius: 999px;
    background: rgba(255,255,255,0.06);
    color: #9aa8bd;
    border: 1px solid rgba(255,255,255,0.08);
}
.shop-search-branch.is-current {
    color: #9fe9cb;
    border-color: rgba(0, 232, 160, 0.35);
    background: rgba(0, 232, 160, 0.1);
}
.shop-stock-branches {
    border: 1px solid var(--shop-border);
    border-radius: var(--shop-card-radius, 16px);
    padding: 0.9rem 1rem;
    background: rgba(255, 255, 255, 0.03);
}
.shop-stock-branches h3 {
    margin: 0;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--shop-text);
}
.shop-stock-banner-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.7rem;
}
.shop-stock-banner-nav {
    display: flex;
    gap: 0.35rem;
}
.shop-stock-banner-arrow {
    width: 1.7rem;
    height: 1.7rem;
    border-radius: 999px;
    border: 1px solid var(--shop-border-strong);
    background: rgba(0,0,0,0.2);
    color: var(--shop-text);
    cursor: pointer;
    display: grid;
    place-items: center;
    font-size: 0.65rem;
}
.shop-stock-banner-arrow:hover {
    border-color: var(--shop-accent);
    color: var(--shop-accent);
}
.shop-stock-banner-window {
    overflow: hidden;
    border-radius: 12px;
}
.shop-stock-banner-track {
    display: flex;
    width: 100%;
    transition: transform 0.55s ease;
}
.shop-stock-banner-slide {
    flex: 0 0 100%;
    min-width: 100%;
}
.shop-stock-banner-dots {
    display: flex;
    justify-content: center;
    gap: 0.4rem;
    margin-top: 0.65rem;
}
.shop-stock-banner-dot {
    width: 0.45rem;
    height: 0.45rem;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255,255,255,0.22);
    cursor: pointer;
}
.shop-stock-banner-dot.is-active {
    width: 1.1rem;
    background: var(--shop-accent);
}
.shop-stock-chip {
    display: inline-block;
    margin-left: 0.4rem;
    padding: 0.08rem 0.4rem;
    border-radius: 999px;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    vertical-align: middle;
    color: #041018;
    background: var(--shop-accent);
}
.shop-stock-branch-item.is-nearest:not(.is-current) {
    border-color: rgba(0, 232, 160, 0.28);
}
.shop-stock-branch-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.shop-stock-branch-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.7rem 0.8rem;
    border-radius: 12px;
    background: var(--shop-surface);
    border: 1px solid var(--shop-border-strong);
}
.shop-stock-branch-item.is-current {
    border-color: rgba(0, 232, 160, 0.35);
    background: var(--shop-accent-soft);
}
.shop-stock-branch-item strong {
    display: block;
    font-size: 0.88rem;
    color: var(--shop-text);
}
.shop-stock-branch-item small {
    display: block;
    font-size: 0.72rem;
    color: var(--shop-muted);
}
.shop-stock-branch-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
    flex-shrink: 0;
}
.shop-stock-qty {
    font-weight: 800;
    color: var(--shop-accent);
    font-size: 0.95rem;
}
.shop-pdp-pick {
    font-size: 0.72rem;
    color: var(--shop-accent);
    text-decoration: none;
    background: none;
    border: 0;
    cursor: pointer;
    padding: 0;
    font-weight: 600;
}
.shop-pdp-pick:hover { text-decoration: underline; }
.shop-stock-here {
    font-size: 0.7rem;
    color: var(--shop-accent);
    font-weight: 700;
}

/* Product detail */
.shop-pdp { max-width: 1200px; margin: 0 auto; }
.shop-pdp-layout {
    display: grid;
    gap: 1.5rem;
}
@media (min-width: 1024px) {
    .shop-pdp-layout { grid-template-columns: minmax(0, 1fr) 280px; align-items: start; }
}
.shop-pdp-card {
    background: var(--shop-surface);
    border: 1px solid var(--shop-border);
    border-radius: var(--shop-card-radius, 16px);
    padding: 1.35rem 1.35rem 1.5rem;
    color: var(--shop-text);
}
.shop-pdp-kicker {
    margin: 0 0 0.35rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--shop-accent);
}
.shop-pdp-title {
    margin: 0 0 1.25rem;
    font-size: clamp(1.25rem, 2.4vw, 1.7rem);
    line-height: 1.25;
    font-weight: 800;
    color: var(--shop-text);
}
.shop-pdp-sku {
    display: inline-block;
    margin-left: 0.25rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--shop-muted);
}
.shop-pdp-grid {
    display: grid;
    gap: 1.5rem;
}
@media (min-width: 768px) {
    .shop-pdp-grid { grid-template-columns: minmax(240px, 0.95fr) minmax(0, 1.15fr); }
}
.shop-pdp-media {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 280px;
    border-radius: var(--shop-card-radius, 16px);
    border: 1px solid var(--shop-border-strong);
    background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
    overflow: hidden;
}
.shop-pdp-media img {
    width: 100%;
    max-height: 320px;
    object-fit: contain;
    padding: 1.25rem;
}
.shop-pdp-placeholder {
    width: 100%;
    height: 280px;
    display: grid;
    place-items: center;
    color: var(--shop-muted);
    font-size: 3.5rem;
    opacity: 0.55;
}
.shop-pdp-buy {
    display: flex;
    gap: 0.6rem;
    margin-top: 1rem;
    align-items: stretch;
}
.shop-pdp-buy-form {
    display: flex;
    gap: 0.6rem;
    flex: 1;
    min-width: 0;
}
.shop-pdp-qty {
    display: flex;
    align-items: stretch;
    border: 1px solid var(--shop-border-strong);
    border-radius: var(--shop-input-radius, 14px);
    overflow: hidden;
    background: rgba(0,0,0,0.25);
    flex-shrink: 0;
}
.shop-pdp-qty button {
    width: 2.4rem;
    border: 0;
    background: transparent;
    color: var(--shop-text);
    cursor: pointer;
}
.shop-pdp-qty button:hover { color: var(--shop-accent); background: var(--shop-accent-soft); }
.shop-pdp-qty input {
    width: 3.2rem;
    border: 0;
    border-left: 1px solid var(--shop-border);
    border-right: 1px solid var(--shop-border);
    background: transparent;
    color: var(--shop-text);
    text-align: center;
    outline: none;
}
.shop-pdp-add {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 2.75rem;
    font-weight: 800;
}
.shop-pdp-add.is-disabled { opacity: 0.45; cursor: not-allowed; }
.shop-pdp-wish {
    width: 2.75rem;
    flex-shrink: 0;
    border-radius: var(--shop-radius, 14px);
    border: 1px solid var(--shop-border-strong);
    background: var(--shop-accent-soft);
    color: var(--shop-accent);
    cursor: pointer;
    display: grid;
    place-items: center;
    appearance: none;
    padding: 0;
}
.shop-pdp-wish:hover { border-color: var(--shop-accent); }
.shop-pdp-specs {
    margin: 0;
    border: 1px solid var(--shop-border);
    border-radius: 12px;
    overflow: hidden;
}
.shop-pdp-specs > div {
    display: grid;
    grid-template-columns: 8.5rem minmax(0, 1fr);
    gap: 0.75rem;
    padding: 0.7rem 0.9rem;
    border-bottom: 1px solid var(--shop-border);
}
.shop-pdp-specs > div:last-child { border-bottom: 0; }
.shop-pdp-specs dt {
    margin: 0;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--shop-muted);
}
.shop-pdp-specs dd {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--shop-text);
    word-break: break-word;
}
.shop-pdp-specs .is-price dd {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.5rem;
}
.shop-pdp-price {
    color: var(--shop-accent);
    font-size: 1.15rem;
    font-weight: 800;
}
.shop-pdp-old {
    color: #f87171;
    text-decoration: line-through;
    font-weight: 600;
    font-size: 0.85rem;
}
.shop-pdp-branch {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--shop-muted);
    margin-bottom: 0.15rem;
}
.shop-pdp-stock.is-ok { color: #4ade80; }
.shop-pdp-stock.is-out { color: #f87171; }
.shop-pdp-details {
    margin-top: 1rem;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--shop-muted);
}
.shop-pdp-related { margin-top: 1.75rem; }
.shop-pdp-related .shop-section-title {
    margin: 0 0 1rem;
    color: var(--shop-text);
}
.shop-pdp-related-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}
@media (min-width: 768px) {
    .shop-pdp-related-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.shop-pdp-aside-card {
    background: var(--shop-surface);
    border: 1px solid var(--shop-border);
    border-radius: var(--shop-card-radius, 16px);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}
.shop-pdp-aside-card h3 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--shop-text);
}
.shop-pdp-aside-card .shop-product-card { width: 100%; }

.shop-product-other-stock {
    margin: 0.15rem 0 0;
    font-size: 0.62rem;
    line-height: 1.3;
    color: #8b97ab;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Hero */
.shop-hero-card {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    border: 1px solid var(--shop-border);
    min-height: clamp(280px, 38vw, 480px);
    margin-bottom: 1.5rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    background:
        radial-gradient(ellipse 55% 60% at 78% 42%, rgba(80, 40, 160, 0.45), transparent 60%),
        radial-gradient(ellipse 40% 50% at 22% 72%, rgba(0, 180, 255, 0.18), transparent 55%),
        radial-gradient(circle at 12% 18%, rgba(0, 232, 160, 0.12), transparent 35%),
        linear-gradient(135deg, #070b16 0%, #10182c 45%, #0a0f1c 100%);
}
.shop-hero-card::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    background-image:
        radial-gradient(1px 1px at 20px 30px, rgba(255,255,255,.45), transparent),
        radial-gradient(1px 1px at 80px 70px, rgba(255,255,255,.35), transparent),
        radial-gradient(1.5px 1.5px at 140px 40px, rgba(255,255,255,.5), transparent),
        radial-gradient(1px 1px at 200px 120px, rgba(255,255,255,.3), transparent);
    background-size: 280px 160px;
    opacity: 0.45;
}
.shop-hero-card--wide {
    width: 100%;
}
.shop-hero-fs-toggle {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 5;
    width: 2rem;
    height: 2rem;
    border: 0;
    border-radius: 0.4rem;
    background: transparent;
    color: rgba(160, 168, 180, 0.7);
    display: grid;
    place-items: center;
    cursor: pointer;
    font-size: 0.85rem;
    transition: color .15s ease, background .15s ease, opacity .15s ease;
    opacity: 0.75;
}
.shop-hero-fs-toggle:hover {
    color: #d0d5de;
    background: rgba(255,255,255,0.06);
    opacity: 1;
}
.shop-hero-badge {
    display: inline-block;
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    font-weight: 700;
    color: var(--shop-accent);
    margin-bottom: 0.65rem;
}
.shop-hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(240px, 0.9fr) minmax(0, 1.35fr);
    align-items: stretch;
    flex: 1 1 auto;
    min-height: clamp(280px, 38vw, 480px);
    height: 100%;
    gap: 0;
    width: 100%;
}
.shop-hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(1.1rem, 2.5vw, 1.85rem) clamp(1rem, 2.2vw, 2rem);
    min-width: 0;
}
.shop-hero-title {
    font-size: clamp(1.35rem, 2.8vw, 2.35rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin: 0 0 0.75rem;
    color: #fff;
}
.shop-hero-title span { color: var(--shop-accent); }
.shop-hero-sub {
    color: #b7c2d6;
    font-size: clamp(0.85rem, 1.4vw, 0.95rem);
    line-height: 1.5;
    margin: 0 0 1.15rem;
    max-width: 32rem;
}
.shop-hero-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.shop-hero-actions .shop-btn {
    border-radius: var(--shop-pill-radius, 14px) !important;
    min-height: 2.75rem;
    padding: 0.72rem 1.35rem;
    font-weight: 700;
}
.shop-hero-actions .shop-btn-primary {
    border: 1px solid transparent;
    box-shadow: 0 6px 22px rgba(0, 232, 160, 0.22);
}
.shop-hero-actions .shop-btn-ghost {
    border: 1px solid rgba(255, 255, 255, 0.42) !important;
    background: rgba(8, 12, 20, 0.42) !important;
}
.shop-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    border-radius: var(--shop-pill-radius, 14px);
    padding: 0.7rem 1.15rem;
    font-size: 0.88rem;
    font-weight: 700;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.shop-btn-primary { background: var(--shop-accent); color: #041018; }
.shop-btn-primary:hover { background: #25ffb3; color: #041018; }
.shop-btn-danger {
    background: rgba(239, 68, 68, 0.16);
    border-color: rgba(239, 68, 68, 0.45);
    color: #fecaca;
}
.shop-btn-danger:hover {
    background: rgba(239, 68, 68, 0.28);
    color: #fff;
}
.shop-btn-ghost {
    background: transparent;
    border-color: var(--shop-border-strong);
    color: #fff;
}
.shop-btn-ghost:hover { border-color: var(--shop-accent); color: var(--shop-accent); }
.shop-hero-visual {
    position: relative;
    min-width: 0;
    min-height: 100%;
    height: 100%;
    align-self: stretch;
    overflow: hidden;
    display: flex;
}
.shop-hero-visual-link {
    display: block;
    width: 100%;
    height: 100%;
    min-height: inherit;
    flex: 1 1 auto;
}
.shop-hero-visual-link.is-nolink {
    cursor: default;
}
.shop-hero-img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: clamp(220px, 38vw, 480px);
    max-width: 100%;
    object-fit: cover;
    object-position: center center;
}
.shop-hero-card.is-fit-contain .shop-hero-img,
.shop-hero-card.is-fit-contain .shop-banner-fs-img {
    object-fit: contain;
    background: #070b16;
}
.shop-hero-card.is-fit-cover .shop-hero-img,
.shop-hero-card.is-fit-cover .shop-banner-fs-img {
    object-fit: cover;
}
.shop-hero-card.is-fit-fill .shop-hero-img,
.shop-hero-card.is-fit-fill .shop-banner-fs-img {
    object-fit: fill;
}
.shop-hero-img-fallback {
    width: 100%;
    height: 100%;
    min-height: clamp(220px, 38vw, 480px);
    display: grid;
    place-items: center;
    background: rgba(255,255,255,0.04);
    border-left: 1px solid var(--shop-border);
    color: var(--shop-accent);
    font-size: clamp(2.2rem, 5vw, 3.5rem);
}
.shop-hero-points {
    display: none;
}
.shop-hero-dots {
    position: absolute;
    z-index: 3;
    left: 0;
    right: 0;
    bottom: 0.85rem;
    display: flex;
    justify-content: center;
    gap: 0.4rem;
}
.shop-hero-arrows {
    position: absolute;
    inset: 0;
    z-index: 4;
    pointer-events: none;
}
.shop-hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(7, 11, 18, 0.55);
    color: #fff;
    cursor: pointer;
    display: grid;
    place-items: center;
    font-size: 0.8rem;
    pointer-events: auto;
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.shop-hero-arrow:hover {
    border-color: var(--shop-accent);
    background: rgba(0, 232, 160, 0.18);
    color: var(--shop-accent);
}
.shop-hero-arrow--prev { left: 0.65rem; }
.shop-hero-arrow--next { right: 0.65rem; }
.shop-hero-dots button {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    border: 0;
    background: rgba(255,255,255,0.35);
    cursor: pointer;
}
.shop-hero-dots button.is-active { background: var(--shop-accent); }

/* Banner pantalla completa — adapta a cualquier viewport */
html.shop-banner-fs-lock,
html.shop-banner-fs-lock body {
    overflow: hidden !important;
}
.shop-banner-fullscreen {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #05070d;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100vw;
    width: 100dvw;
    height: 100vh;
    height: 100dvh;
    max-width: 100vw;
    max-height: 100dvh;
    overflow: hidden;
}
.shop-banner-fs-img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    object-position: center center;
}
.shop-banner-fs-exit {
    position: absolute;
    top: max(0.85rem, env(safe-area-inset-top));
    left: max(0.85rem, env(safe-area-inset-left));
    z-index: 2;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 999px;
    border: 1px solid rgba(160, 160, 160, 0.35);
    background: rgba(40, 40, 40, 0.35);
    color: #b0b0b0;
    display: grid;
    place-items: center;
    cursor: pointer;
    opacity: 0.85;
    transition: opacity .15s ease, color .15s ease, background .15s ease;
}
.shop-banner-fs-exit:hover {
    color: #e8e8e8;
    background: rgba(60, 60, 60, 0.55);
    opacity: 1;
}
.shop-banner-fs-dots {
    position: absolute;
    bottom: max(1.1rem, env(safe-area-inset-bottom));
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 0.45rem;
    z-index: 2;
}
.shop-banner-fs-arrows {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}
.shop-banner-fs-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(40, 40, 40, 0.45);
    color: #e8e8e8;
    cursor: pointer;
    display: grid;
    place-items: center;
    font-size: 0.9rem;
    pointer-events: auto;
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.shop-banner-fs-arrow:hover {
    border-color: var(--shop-accent);
    background: rgba(0, 232, 160, 0.2);
    color: var(--shop-accent);
}
.shop-banner-fs-arrow--prev { left: max(0.85rem, env(safe-area-inset-left)); }
.shop-banner-fs-arrow--next { right: max(0.85rem, env(safe-area-inset-right)); }
.shop-banner-fs-dots button {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    border: 0;
    background: rgba(255,255,255,0.35);
    cursor: pointer;
}
.shop-banner-fs-dots button.is-active { background: #cfcfcf; }

/* Sections */
.shop-section { margin-bottom: 1.5rem; }
.shop-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.9rem;
}
.shop-section-title { font-size: 1.15rem; font-weight: 700; margin: 0; }
.shop-section-link { color: var(--shop-accent); font-size: 0.85rem; font-weight: 600; }

.shop-cat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}
@media (min-width: 900px) {
    .shop-cat-grid { grid-template-columns: repeat(8, 1fr); }
}
.shop-cat-card {
    background: var(--shop-surface);
    border: 1px solid var(--shop-border);
    border-radius: 16px;
    padding: 1rem 0.5rem;
    text-align: center;
    transition: border-color .15s, transform .15s;
}
.shop-cat-card:hover {
    border-color: rgba(0, 232, 160, 0.4);
    transform: translateY(-2px);
}
.shop-cat-icon {
    width: 42px;
    height: 42px;
    margin: 0 auto 0.55rem;
    border-radius: 12px;
    background: var(--shop-accent-soft);
    color: var(--shop-accent);
    display: grid;
    place-items: center;
}
.shop-cat-img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    margin: 0 auto 0.55rem;
    display: block;
}
.shop-cat-name {
    font-size: 0.72rem;
    color: #c9d3e3;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.shop-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}
@media (min-width: 900px) {
    .shop-stats { grid-template-columns: repeat(4, 1fr); }
}
.shop-stat {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--shop-surface);
    border: 1px solid var(--shop-border);
    border-radius: 16px;
    padding: 0.95rem 1rem;
}
.shop-stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--shop-accent-soft);
    color: var(--shop-accent);
    display: grid;
    place-items: center;
    flex-shrink: 0;
}
.shop-stat-value { font-size: 1.15rem; font-weight: 800; color: #fff; line-height: 1.1; }
.shop-stat-label { font-size: 0.78rem; color: #d0d8e6; line-height: 1.25; }
.shop-stat-label span { color: var(--shop-muted); font-size: 0.7rem; }

.shop-product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.65rem;
}
@media (min-width: 768px) { .shop-product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .shop-product-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1400px) { .shop-product-grid { grid-template-columns: repeat(5, 1fr); } }

.shop-product-grid--compact {
    gap: 0.55rem;
}

.shop-section-head--catalog {
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
}

.shop-catalog-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem 0.65rem;
    font-size: 0.82rem;
    color: var(--shop-muted);
}

.shop-catalog-toolbar-label {
    font-weight: 600;
    white-space: nowrap;
}

.shop-sort-select,
.shop-per-page-select {
    background: var(--shop-surface);
    border: 1px solid var(--shop-border-strong);
    color: var(--shop-text);
    border-radius: var(--shop-input-radius, 14px);
    padding: 0.38rem 0.85rem;
    font-size: 0.8rem;
    outline: none;
    cursor: pointer;
}

.shop-sort-select:focus,
.shop-per-page-select:focus {
    border-color: var(--shop-accent);
}

.shop-catalog-pagination {
    color: var(--shop-muted);
    font-size: 0.85rem;
}

.shop-catalog-pagination nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    align-items: center;
}

.shop-catalog-pagination a,
.shop-catalog-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    padding: 0.35rem 0.55rem;
    border-radius: 999px;
    border: 1px solid var(--shop-border-strong);
    color: var(--shop-text);
    text-decoration: none;
}

.shop-catalog-pagination a:hover {
    border-color: var(--shop-accent);
    color: var(--shop-accent);
}

.shop-catalog-pagination span[aria-current="page"] {
    background: var(--shop-accent-soft);
    border-color: var(--shop-accent);
    color: var(--shop-accent);
    font-weight: 700;
}

.shop-product-card {
    background: var(--shop-surface);
    border: 2px solid var(--shop-border);
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color .15s, transform .15s, box-shadow .15s;
}
.shop-product-card.is-available {
    border-color: rgba(34, 197, 94, 0.65);
}
.shop-product-card.is-unavailable {
    border-color: rgba(239, 68, 68, 0.7);
}
.shop-product-card:hover {
    transform: translateY(-2px);
}
.shop-product-card.is-available:hover {
    border-color: rgba(34, 197, 94, 0.9);
    box-shadow: 0 8px 24px rgba(34, 197, 94, 0.12);
}
.shop-product-card.is-unavailable:hover {
    border-color: rgba(239, 68, 68, 0.9);
    box-shadow: 0 8px 24px rgba(239, 68, 68, 0.12);
}
.shop-product-card.is-stock-denied,
.shop-pdp-card.is-stock-denied {
    border-color: #ef4444;
    background: color-mix(in srgb, #ef4444 16%, var(--shop-surface));
    box-shadow: 0 0 0 1px #ef4444, 0 10px 28px rgba(239, 68, 68, 0.22);
}
.shop-product-card.is-stock-denied:hover {
    border-color: #ef4444;
    box-shadow: 0 0 0 1px #ef4444, 0 10px 28px rgba(239, 68, 68, 0.28);
}
tr.is-stock-denied {
    outline: 2px solid #ef4444;
    background: rgba(239, 68, 68, 0.12);
}
.shop-stock-denied {
    margin: 0.15rem 0 0.35rem;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.3;
    color: #fecaca;
}
.shop-product-image {
    position: relative;
    height: var(--shop-catalog-image-size, 112px);
    min-height: var(--shop-catalog-image-size, 112px);
    max-height: var(--shop-catalog-image-size, 112px);
    background: linear-gradient(180deg, #151e2e, #101722);
    padding: 0.45rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.shop-product-image-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}
.shop-product-img {
    width: var(--shop-catalog-image-size, 112px);
    height: var(--shop-catalog-image-size, 112px);
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center center;
}
.shop-product-image img.shop-product-img { width: var(--shop-catalog-image-size, 112px); height: var(--shop-catalog-image-size, 112px); }
.shop-product-placeholder {
    width: var(--shop-catalog-image-size, 112px);
    height: var(--shop-catalog-image-size, 112px);
    display: grid;
    place-items: center;
    color: #3d4b63;
    font-size: 2.4rem;
}
.shop-product-badge {
    position: absolute;
    top: 0.45rem;
    left: 0.45rem;
    background: var(--shop-accent);
    color: #041018;
    font-size: 0.58rem;
    font-weight: 800;
    padding: 0.15rem 0.4rem;
    border-radius: 999px;
    text-transform: uppercase;
    z-index: 2;
}
.shop-product-badge--soldout {
    background: #ef4444;
    color: #fff;
}
.shop-product-fav {
    position: absolute;
    top: 0.4rem;
    right: 0.4rem;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    border: 1px solid var(--shop-border-strong);
    background: rgba(7,11,18,0.55);
    color: #c9d3e3;
    display: grid;
    place-items: center;
    z-index: 2;
    cursor: pointer;
    padding: 0;
    appearance: none;
    font: inherit;
}
.shop-product-fav.is-on,
.shop-pdp-wish.is-on {
    color: var(--shop-accent);
    border-color: rgba(0, 232, 160, 0.55);
}
.shop-product-body {
    padding: 0.55rem 0.65rem 0.65rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    flex: 1;
}
.shop-product-title {
    font-size: 0.78rem;
    font-weight: 600;
    color: #e8eef8;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 1.25em;
}
.shop-product-price {
    font-size: 1rem;
    font-weight: 800;
    color: var(--shop-accent);
}
.shop-product-old-price {
    font-size: 0.68rem;
    color: #6d7a90;
    text-decoration: line-through;
}
.shop-product-stock {
    font-size: 0.68rem;
    color: #7d889c;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    margin-bottom: 0;
}
.shop-product-stock.is-ok { color: #4ade80; }
.shop-product-stock.is-out { color: #f87171; }
.shop-product-stock .dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: currentColor;
}
.shop-product-restock {
    margin: 0;
    font-size: 0.65rem;
    line-height: 1.3;
    color: #fca5a5;
}
.shop-product-btn {
    width: 100%;
    margin-top: auto;
    border: 0;
    border-radius: 999px;
    background: var(--shop-accent);
    color: #041018;
    font-weight: 800;
    font-size: 0.72rem;
    padding: 0.5rem 0.65rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    text-align: center;
    text-decoration: none;
}
.shop-product-btn:hover { background: #25ffb3; color: #041018; }
.shop-product-btn.is-disabled { opacity: 0.45; cursor: not-allowed; }

/* Filters panel (inline next to products) */
.shop-filter-panel {
    background: var(--shop-surface);
    border: 1px solid var(--shop-border);
    border-radius: 16px;
    padding: 1rem;
    margin-bottom: 0.85rem;
}
.shop-filter-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}
.shop-filter-title { font-size: 0.95rem; font-weight: 700; margin: 0; }
.shop-filter-clear { color: var(--shop-accent); font-size: 0.8rem; font-weight: 600; }
.shop-filter-block { margin-bottom: 1.1rem; }
.shop-filter-subtitle {
    font-size: 0.88rem;
    font-weight: 700;
    margin: 0 0 0.65rem;
    color: #fff;
}
.shop-filter-check {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.84rem;
    color: #c7d0df;
    margin-bottom: 0.55rem;
}
.shop-filter-check input { accent-color: var(--shop-accent); }
.shop-filter-hint {
    margin: 0.45rem 0 0;
    font-size: 0.68rem;
    color: #7d889c;
}
.shop-stock-switch {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    cursor: pointer;
    user-select: none;
}
.shop-stock-switch-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
.shop-stock-switch-track {
    position: relative;
    width: 2.6rem;
    height: 1.35rem;
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.35);
    border: 1px solid rgba(34, 197, 94, 0.55);
    flex-shrink: 0;
    transition: background .15s ease, border-color .15s ease;
}
.shop-stock-switch-thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 1rem;
    height: 1rem;
    border-radius: 999px;
    background: #4ade80;
    transition: transform .15s ease, background .15s ease;
}
.shop-stock-switch-input:checked + .shop-stock-switch-track {
    background: rgba(239, 68, 68, 0.3);
    border-color: rgba(239, 68, 68, 0.55);
}
.shop-stock-switch-input:checked + .shop-stock-switch-track .shop-stock-switch-thumb {
    transform: translateX(1.2rem);
    background: #f87171;
}
.shop-stock-switch-label {
    font-size: 0.78rem;
    color: #7d889c;
    font-weight: 600;
}
.shop-stock-switch-label.is-active {
    color: #4ade80;
}
.shop-stock-switch-label.is-active.is-out {
    color: #f87171;
}
.shop-filter-empty { font-size: 0.8rem; color: var(--shop-muted); }
.shop-price-range input[type=range] { width: 100%; accent-color: var(--shop-accent); }
.shop-price-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--shop-muted);
    margin-top: 0.35rem;
}
.shop-filter-apply {
    width: 100%;
    border: 1px solid rgba(0, 232, 160, 0.45);
    background: transparent;
    color: var(--shop-accent);
    border-radius: 999px;
    padding: 0.65rem;
    font-weight: 700;
    cursor: pointer;
}
.shop-filter-apply:hover { background: var(--shop-accent-soft); }

.shop-benefits-bar {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding: 1rem;
    background: var(--shop-surface);
    border: 1px solid var(--shop-border);
    border-radius: 16px;
}
@media (min-width: 900px) {
    .shop-benefits-bar { grid-template-columns: repeat(4, 1fr); }
}
.shop-benefit-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    color: #d0d8e6;
    font-size: 0.82rem;
}
.shop-benefit-item i { color: var(--shop-accent); }

.shop-footer {
    margin-top: 1.5rem;
    padding: 1.25rem 0 0;
    border-top: 1px solid var(--shop-border);
    color: var(--shop-muted);
    font-size: 0.8rem;
}
.shop-footer-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 900px) {
    .shop-footer-grid { grid-template-columns: repeat(4, 1fr); }
}
.shop-footer-title { color: #fff; font-weight: 700; margin-bottom: 0.5rem; }
.shop-footer a:hover { color: var(--shop-accent); }
.shop-footer-bottom {
    margin-top: 1rem;
    padding-top: 0.85rem;
    border-top: 1px solid var(--shop-border);
    text-align: center;
}

.shop-flash {
    margin-bottom: 1rem;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    font-size: 0.88rem;
}
.shop-flash-ok {
    background: rgba(0, 232, 160, 0.12);
    border: 1px solid rgba(0, 232, 160, 0.3);
    color: #9dffd4;
}
.shop-flash-err {
    background: rgba(255, 92, 122, 0.12);
    border: 1px solid rgba(255, 92, 122, 0.3);
    color: #ffb3c1;
}
.shop-inline-notice {
    position: sticky;
    top: 0;
    z-index: 5;
    margin: 0 0 1rem;
    padding: 0.7rem 0.9rem;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 650;
}
.shop-inline-notice[hidden] { display: none !important; }
.shop-inline-notice.is-ok {
    background: rgba(0, 232, 160, 0.14);
    border: 1px solid rgba(0, 232, 160, 0.35);
    color: var(--shop-text);
}
.shop-inline-notice.is-err {
    background: rgba(255, 92, 122, 0.12);
    border: 1px solid rgba(255, 92, 122, 0.35);
    color: #ffb3c1;
}

.shop-mobile-toggle {
    display: none;
    background: var(--shop-surface);
    border: 1px solid var(--shop-border-strong);
    color: #fff;
    border-radius: 10px;
    width: 38px;
    height: 38px;
    place-items: center;
}

@media (max-width: 1200px) {
    .shop-hero-grid {
        grid-template-columns: minmax(220px, 0.95fr) minmax(0, 1.15fr);
        min-height: clamp(260px, 36vw, 400px);
    }
    .shop-hero-card,
    .shop-hero-img,
    .shop-hero-img-fallback {
        min-height: clamp(260px, 36vw, 400px);
    }
    .shop-catalog-layout { grid-template-columns: minmax(0, 1fr) 230px; }
}
@media (max-width: 1100px) {
    body.shop-theme { grid-template-columns: minmax(0, 1fr); }
    .shop-content { grid-column: 1; }
    .shop-sidebar {
        position: fixed;
        top: var(--shop-top-offset, 4.5rem);
        left: 0;
        height: calc(100dvh - var(--shop-top-offset, 4.5rem));
        width: min(280px, 86vw);
        z-index: 60;
        transform: translateX(-110%);
        transition: transform .2s ease;
    }
    .shop-shell.sidebar-open .shop-sidebar { transform: translateX(0); }
    .shop-mobile-toggle { display: inline-grid; }
    .shop-catalog-layout { grid-template-columns: 1fr; }
    .shop-filters-desktop { display: none; }
}
@media (max-width: 900px) {
    .shop-hero-grid {
        grid-template-columns: 1fr;
        min-height: 0;
    }
    .shop-hero-visual {
        order: -1;
        width: 100%;
        min-height: clamp(180px, 48vw, 320px);
        aspect-ratio: 16 / 9;
        max-height: 42vh;
    }
    .shop-hero-visual-link,
    .shop-hero-img,
    .shop-hero-img-fallback {
        min-height: 100%;
        height: 100%;
        max-height: 100%;
    }
    .shop-hero-copy { padding: 1.15rem 1.15rem 1.35rem; }
    .shop-hero-card {
        min-height: 0;
    }
    .shop-hero-fs-toggle {
        top: 0.55rem;
        right: 0.55rem;
    }
}

/* ===== Ticket 1: plantillas / tipograf�a / botones ===== */
.shop-theme {
    --shop-sidebar-from: #0c1320;
    --shop-sidebar-to: #0a101a;
    --shop-brand-from: #ff4d6d;
    --shop-brand-to: #ff8a5b;
    --shop-radius: 14px;
    --shop-pill-radius: 14px;
    --shop-input-radius: 14px;
    --shop-textarea-radius: 14px;
    --shop-card-radius: 16px;
    --shop-font: Inter, ui-sans-serif, system-ui, sans-serif;
    --shop-font-display: var(--shop-font);
}

/* Inputs y buscadores — mismo redondeo píldora que botones CTA */
body.shop-theme input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="range"]):not([type="file"]):not([type="submit"]):not([type="button"]):not([type="image"]),
body.shop-theme select,
body.shop-theme textarea {
    border-radius: var(--shop-input-radius, 14px);
}
body.shop-theme textarea {
    border-radius: var(--shop-textarea-radius, 1.25rem);
}
body.shop-theme .shop-search input {
    border-radius: 0;
}
body.shop-theme .shop-pdp-qty input {
    border-radius: 0;
}

body.shop-theme h1,
body.shop-theme h2,
body.shop-theme .shop-hero-title,
body.shop-theme .shop-section-title {
    font-family: var(--shop-font-display);
}

.shop-theme .shop-card,
.shop-theme .shop-product-card,
.shop-theme .shop-hero-card,
.shop-theme .shop-category-card {
    border-radius: var(--shop-card-radius);
}

.shop-theme .shop-btn,
.shop-theme .shop-btn-primary,
.shop-theme button.shop-btn,
.shop-theme a.shop-btn {
    border-radius: var(--shop-pill-radius, 14px);
}

body.shop-btn-rounded .shop-btn,
body.shop-btn-rounded .shop-btn-primary,
body.shop-btn-rounded a.shop-btn {
    border-radius: var(--shop-pill-radius, 14px) !important;
}

.shop-btn-pill .shop-btn,
.shop-btn-pill .shop-btn-primary,
body.shop-btn-pill {
    --shop-pill-radius: 999px;
    --shop-input-radius: 999px;
}
.shop-btn-pill .shop-btn,
.shop-btn-pill .shop-btn-primary,
body.shop-btn-pill .shop-btn,
body.shop-btn-pill .shop-btn-primary,
body.shop-btn-pill a.shop-btn {
    border-radius: 999px !important;
}
.shop-btn-square .shop-btn,
.shop-btn-square .shop-btn-primary,
body.shop-btn-square .shop-cart-btn,
body.shop-btn-square .shop-branch-trigger,
body.shop-btn-square .shop-search,
body.shop-btn-square .shop-user-chip,
body.shop-btn-square .shop-top-logo-wrap {
    border-radius: 4px !important;
}
body.shop-btn-square {
    --shop-pill-radius: 4px;
    --shop-input-radius: 4px;
    --shop-textarea-radius: 4px;
}

/* Light mode surfaces */
.shop-mode-light .shop-sidebar {
    box-shadow: 0 0 0 1px var(--shop-border);
}
.shop-mode-light .shop-product-card,
.shop-mode-light .shop-card {
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

/* Template density */
.shop-density-compact .shop-content { gap: 0.85rem; }
.shop-density-airy .shop-content { gap: 1.6rem; }

.shop-template-natural_green .shop-hero-card {
    border: 1px solid var(--shop-border);
}
.shop-template-industrial_pro .shop-product-card {
    border-radius: var(--shop-card-radius);
}
.shop-template-industrial_pro .shop-btn:not(.shop-hero-actions .shop-btn) {
    border-radius: var(--shop-card-radius);
}
.shop-hero-actions .shop-btn {
    border-radius: var(--shop-pill-radius, 14px) !important;
}
.shop-template-industrial_pro .shop-section-title {
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.95rem;
}

.shop-hero-grid--full{grid-template-columns:1fr!important}.shop-hero-card--visual-only .shop-hero-visual{min-height:280px}.shop-catalog-layout--nofiltros{grid-template-columns:1fr!important}

/* Cart */
.shop-cart { max-width: 1200px; margin: 0 auto; }
.shop-cart-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1.15rem;
}
.shop-cart-title {
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem;
    font-size: clamp(1.2rem, 2.2vw, 1.55rem);
    font-weight: 800;
    color: var(--shop-text);
}
.shop-cart-title i { color: var(--shop-accent); }
.shop-cart-count {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--shop-muted);
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    border: 1px solid var(--shop-border-strong);
    background: rgba(255,255,255,0.04);
}
.shop-cart-continue {
    color: var(--shop-accent);
    font-weight: 700;
    font-size: 0.88rem;
}
.shop-cart-continue:hover { text-decoration: underline; }
.shop-cart-layout {
    display: grid;
    gap: 1.15rem;
}
@media (min-width: 1024px) {
    .shop-cart-layout { grid-template-columns: minmax(0, 1fr) 300px; align-items: start; }
}
.shop-cart-panel {
    background: var(--shop-surface);
    border: 1px solid var(--shop-border);
    border-radius: var(--shop-card-radius, 16px);
    color: var(--shop-text);
    overflow: hidden;
}
.shop-cart-table-wrap { overflow-x: auto; }
.shop-cart-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}
.shop-cart-table th {
    text-align: left;
    padding: 0.8rem 0.9rem;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--shop-muted);
    background: rgba(255,255,255,0.03);
    border-bottom: 1px solid var(--shop-border);
}
.shop-cart-table td {
    padding: 0.9rem;
    border-bottom: 1px solid var(--shop-border);
    color: var(--shop-text);
    vertical-align: middle;
}
.shop-cart-table .is-action { width: 2.75rem; }
.shop-cart-table .is-qty { width: 7.5rem; text-align: center; }
.shop-cart-table .is-num { text-align: right; white-space: nowrap; }
.shop-cart-product {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 12rem;
}
.shop-cart-product img,
.shop-cart-thumb {
    width: 52px;
    height: 52px;
    object-fit: contain;
    border-radius: 10px;
    border: 1px solid var(--shop-border-strong);
    background: rgba(0,0,0,0.25);
    flex-shrink: 0;
}
.shop-cart-thumb {
    display: grid;
    place-items: center;
    color: var(--shop-muted);
    font-size: 1.1rem;
}
.shop-cart-name {
    display: block;
    font-weight: 700;
    color: var(--shop-text);
    line-height: 1.3;
}
.shop-cart-name:hover { color: var(--shop-accent); }
.shop-cart-product small {
    display: block;
    margin-top: 0.15rem;
    color: var(--shop-muted);
    font-size: 0.72rem;
}
.shop-cart-price { color: var(--shop-muted); font-weight: 600; }
.shop-cart-subtotal { color: var(--shop-accent); font-weight: 800; }
.shop-cart-remove {
    width: 2rem;
    height: 2rem;
    border: 0;
    border-radius: 8px;
    background: rgba(239, 68, 68, 0.12);
    color: #f87171;
    cursor: pointer;
}
.shop-cart-remove:hover { background: rgba(239, 68, 68, 0.28); color: #fecaca; }
.shop-cart-qty input {
    width: 4.5rem;
    text-align: center;
    border-radius: var(--shop-input-radius, 14px);
    border: 1px solid var(--shop-border-strong);
    background: rgba(0,0,0,0.28);
    color: var(--shop-text);
    padding: 0.45rem 0.35rem;
    outline: none;
}
.shop-cart-qty input:focus { border-color: var(--shop-accent); }
.shop-cart-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem;
}
.shop-cart-empty {
    padding: 3rem 1.25rem;
    text-align: center;
    color: var(--shop-muted);
}
.shop-cart-empty i {
    font-size: 2.4rem;
    margin-bottom: 0.75rem;
    color: var(--shop-accent);
    opacity: 0.8;
}
.shop-cart-empty p {
    margin: 0 0 1rem;
    color: var(--shop-text);
    font-weight: 600;
}
.shop-cart-summary { padding: 1.15rem 1.2rem 1.3rem; }
.shop-cart-summary h2 {
    margin: 0 0 1rem;
    font-size: 1rem;
    font-weight: 800;
    color: var(--shop-text);
}
.shop-cart-totals { margin: 0; }
.shop-cart-totals > div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.55rem 0;
    border-bottom: 1px solid var(--shop-border);
}
.shop-cart-totals dt { color: var(--shop-muted); font-weight: 600; }
.shop-cart-totals dd {
    margin: 0;
    color: var(--shop-text);
    font-weight: 700;
}
.shop-cart-totals .is-grand {
    border-bottom: 0;
    padding-top: 0.85rem;
    margin-top: 0.15rem;
}
.shop-cart-totals .is-grand dt,
.shop-cart-totals .is-grand dd {
    color: var(--shop-text);
    font-size: 1.05rem;
    font-weight: 800;
}
.shop-cart-totals .is-grand dd { color: var(--shop-accent); }
.shop-cart-checkout {
    width: 100%;
    margin-top: 1.1rem;
    min-height: 2.85rem;
    font-weight: 800;
}
.shop-cart-note {
    margin: 1rem 0 0;
    font-size: 0.75rem;
    color: #fca5a5;
}

/* Checkout */
.shop-checkout { max-width: 1200px; margin: 0 auto; }
.shop-checkout-main {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-width: 0;
}
.shop-checkout-card { padding: 1.15rem 1.2rem 1.25rem; }
.shop-checkout-card h2 {
    margin: 0 0 0.9rem;
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--shop-text);
}
.shop-checkout-empty {
    margin: 0 0 0.85rem;
    color: var(--shop-muted);
    font-size: 0.9rem;
}
.shop-checkout-link {
    color: var(--shop-accent);
    font-size: 0.85rem;
    font-weight: 700;
}
.shop-checkout-link:hover { text-decoration: underline; }
.shop-checkout-option {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    padding: 0.8rem 0.9rem;
    margin-bottom: 0.55rem;
    border-radius: 12px;
    border: 1px solid var(--shop-border-strong);
    background: rgba(0,0,0,0.22);
    cursor: pointer;
    color: var(--shop-text);
}
.shop-checkout-option.is-inline { align-items: center; }
.shop-checkout-option:has(:checked) {
    border-color: rgba(0, 232, 160, 0.45);
    background: var(--shop-accent-soft);
}
.shop-checkout-option input {
    margin-top: 0.2rem;
    accent-color: var(--shop-accent);
    flex-shrink: 0;
}
.shop-checkout-option.is-inline input { margin-top: 0; }
.shop-checkout-option strong {
    display: block;
    font-size: 0.9rem;
    color: var(--shop-text);
}
.shop-checkout-option small {
    display: block;
    margin-top: 0.25rem;
    white-space: pre-line;
    font-size: 0.78rem;
    color: var(--shop-muted);
    line-height: 1.45;
}
.shop-checkout-note {
    width: 100%;
    resize: vertical;
    min-height: 5.5rem;
    border-radius: var(--shop-textarea-radius, 1.25rem);
    border: 1px solid var(--shop-border-strong);
    background: rgba(0,0,0,0.28);
    color: var(--shop-text);
    padding: 0.75rem 0.9rem;
    outline: none;
}
.shop-checkout-note::placeholder { color: var(--shop-muted); }
.shop-checkout-note:focus { border-color: var(--shop-accent); }
.shop-checkout-submit {
    width: 100%;
    min-height: 3rem;
    font-size: 1rem;
    font-weight: 800;
}
.shop-checkout-alert {
    margin-bottom: 1rem;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
}
.shop-checkout-alert.is-ok {
    background: rgba(0, 232, 160, 0.12);
    border: 1px solid rgba(0, 232, 160, 0.35);
    color: #6ee7b7;
}
.shop-checkout-alert.is-err {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #fecaca;
}
.shop-checkout-status { font-weight: 700; }
.shop-checkout-status.is-ok { color: #4ade80; }
.shop-checkout-status.is-err { color: #f87171; }
.shop-checkout-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}
.shop-checkout-footer .shop-btn,
.shop-checkout-footer form { flex: 1; min-width: 10rem; }
.shop-checkout-footer form .shop-btn { width: 100%; }

/* Account */
.shop-account { max-width: 760px; margin: 0 auto; }
.shop-account--profile { margin: 0; max-width: 36rem; }
.shop-profile-loyalty {
    display: inline-block;
    margin: 0 0 1rem;
    color: var(--shop-accent);
    font-size: 0.9rem;
    font-weight: 600;
}
.shop-profile-loyalty:hover { text-decoration: underline; }
.shop-account-address {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.15rem;
    margin-bottom: 0.75rem;
}
.shop-account-address-text {
    margin: 0.4rem 0 0;
    white-space: pre-line;
    color: var(--shop-text);
    font-size: 0.9rem;
    line-height: 1.5;
    font-weight: 600;
}
.shop-account-delete {
    padding: 0.45rem 0.8rem;
    font-size: 0.78rem;
}
.shop-account-form {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}
.shop-account-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}
@media (min-width: 640px) {
    .shop-account-grid { grid-template-columns: 1fr 1fr; }
    .shop-account-field.is-wide { grid-column: 1 / -1; }
}
.shop-account-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.shop-account-field span {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--shop-muted);
}
.shop-account-input {
    width: 100%;
    border-radius: var(--shop-input-radius, 14px);
    border: 1px solid var(--shop-border-strong);
    background: rgba(0,0,0,0.28);
    color: var(--shop-text);
    padding: 0.7rem 0.85rem;
    outline: none;
    font: inherit;
}
.shop-account-input::placeholder { color: #8b97ab; }
.shop-account-input:focus { border-color: var(--shop-accent); }
.shop-account-input:disabled {
    color: var(--shop-muted);
    cursor: not-allowed;
}
textarea.shop-account-input { resize: vertical; min-height: 4.5rem; }
.shop-account-check {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    color: var(--shop-text);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
}
.shop-account-check input { accent-color: var(--shop-accent); }

.shop-wishlist { max-width: 1180px; margin: 0 auto; }
.shop-wishlist-hint {
    margin: 0;
    padding: 1rem 1.15rem 0.35rem;
    color: var(--shop-muted);
    font-size: 0.85rem;
    line-height: 1.45;
}
.shop-wishlist-table td small {
    display: block;
    margin-top: 0.2rem;
    color: var(--shop-muted);
    font-size: 0.72rem;
}
.shop-wishlist-thumb {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 10px;
    border: 1px solid var(--shop-border-strong);
    background: rgba(0,0,0,0.25);
}
.shop-wishlist-qty-input {
    width: 4.6rem;
    text-align: center;
    border-radius: var(--shop-input-radius, 14px);
    border: 1px solid var(--shop-border-strong);
    background: rgba(0,0,0,0.28);
    color: var(--shop-text);
    padding: 0.4rem 0.3rem;
    outline: none;
}
.shop-wishlist-qty-input:focus { border-color: var(--shop-accent); }
.shop-wishlist-status {
    display: inline-flex;
    align-items: center;
    padding: 0.18rem 0.55rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    background: rgba(34, 197, 94, 0.18);
    color: #86efac;
    border: 1px solid rgba(34, 197, 94, 0.4);
}
.shop-wishlist-status.is-sent {
    background: rgba(0, 232, 160, 0.14);
    color: var(--shop-accent);
    border-color: rgba(0, 232, 160, 0.4);
}
.shop-wishlist-table .is-actions { width: 6.5rem; text-align: right; }
.shop-wishlist-row-actions {
    display: inline-flex;
    gap: 0.4rem;
    justify-content: flex-end;
}
.shop-wish-icon {
    width: 2.15rem;
    height: 2.15rem;
    border-radius: 10px;
    border: 0;
    cursor: pointer;
    display: grid;
    place-items: center;
    color: #041018;
}
.shop-wish-icon.is-cart { background: var(--shop-accent); }
.shop-wish-icon.is-cart:hover { background: #25ffb3; }
.shop-wish-icon.is-del { background: #ef4444; color: #fff; }
.shop-wish-icon.is-del:hover { background: #f87171; }
.shop-wishlist-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.65rem;
    padding: 1rem 1.15rem 1.15rem;
}

/* SweetAlert — lista de deseos */
.shop-swal {
    background: var(--shop-surface, #0f1623) !important;
    color: var(--shop-text, #f4f7fb) !important;
    border: 1px solid var(--shop-border, rgba(255,255,255,0.08)) !important;
    border-radius: 18px !important;
    padding: 1.4rem 1.3rem 1.2rem !important;
}
.shop-swal-title {
    color: var(--shop-text, #f4f7fb) !important;
    font-weight: 800 !important;
    font-size: 1.25rem !important;
}
.shop-swal-html { color: var(--shop-text, #f4f7fb) !important; padding: 0 !important; }
.shop-swal-sub {
    margin: 0 0 1rem;
    color: var(--shop-muted, #8b97ab);
    font-size: 0.9rem;
}
.shop-swal-icon {
    border-color: rgba(0, 232, 160, 0.45) !important;
    color: var(--shop-accent, #00e8a0) !important;
}
.shop-swal-field {
    display: block;
    text-align: left;
    margin-bottom: 0.75rem;
}
.shop-swal-field span {
    display: block;
    margin-bottom: 0.3rem;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--shop-muted, #8b97ab);
}
.shop-swal-input {
    width: 100%;
    border-radius: var(--shop-input-radius, 14px);
    border: 1px solid var(--shop-border-strong, rgba(255,255,255,0.14));
    background: rgba(0,0,0,0.32);
    color: var(--shop-text, #f4f7fb);
    padding: 0.7rem 0.85rem;
    font: inherit;
    outline: none;
}
.shop-swal-input:focus { border-color: var(--shop-accent, #00e8a0); }
.shop-swal-input.is-readonly {
    opacity: 0.85;
    color: #d7deea;
}
.shop-swal-actions {
    display: flex !important;
    gap: 0.6rem;
    margin-top: 0.6rem !important;
}
.shop-swal-confirm,
.shop-swal-cancel {
    flex: 1;
    border-radius: 999px !important;
    padding: 0.7rem 1rem !important;
    font-weight: 800 !important;
    border: 1px solid transparent !important;
    cursor: pointer;
}
.shop-swal-confirm {
    background: var(--shop-accent, #00e8a0) !important;
    color: #041018 !important;
}
.shop-swal-cancel {
    background: transparent !important;
    border-color: var(--shop-border-strong, rgba(255,255,255,0.14)) !important;
    color: var(--shop-text, #f4f7fb) !important;
}

/* Brands */
.shop-brands { max-width: 1200px; margin: 0 auto; }
.shop-brands-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}
@media (min-width: 768px) { .shop-brands-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .shop-brands-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.shop-brand-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    min-height: 148px;
    padding: 1.15rem 1rem;
    background: var(--shop-surface);
    border: 1px solid var(--shop-border);
    border-radius: var(--shop-card-radius, 16px);
    color: var(--shop-text);
    text-align: center;
    transition: border-color .15s, transform .15s, box-shadow .15s;
}
.shop-brand-card:hover {
    border-color: rgba(0, 232, 160, 0.45);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 232, 160, 0.08);
}
.shop-brand-logo {
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: rgba(0,0,0,0.28);
    border: 1px solid var(--shop-border-strong);
    overflow: hidden;
}
.shop-brand-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0.45rem;
}
.shop-brand-logo span {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--shop-accent);
}
.shop-brand-card strong {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--shop-text);
    line-height: 1.3;
}

.shop-product-quick-actions {
    position: absolute;
    top: 0.4rem;
    right: 0.4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    z-index: 2;
}
.shop-product-quick-actions .shop-product-fav {
    position: static;
}
.shop-favorite-trigger.is-on,
.shop-pdp-wish.shop-favorite-trigger.is-on {
    color: #fb7185;
    border-color: rgba(251, 113, 133, 0.55);
}
.shop-pdp-quick-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}
.shop-fly-layer {
    position: fixed;
    inset: 0;
    z-index: 80;
    pointer-events: none;
    overflow: visible;
}
.shop-cart-fly {
    position: absolute;
    z-index: 1;
    left: 0;
    top: 0;
    width: 46px;
    height: 46px;
    margin-left: -23px;
    margin-top: -23px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    background: color-mix(in srgb, var(--shop-accent) 42%, white);
    color: #04120d;
    display: grid;
    place-items: center;
    font-size: 1.05rem;
    pointer-events: none;
    opacity: 0.9;
    will-change: transform;
    box-shadow: 0 8px 22px rgba(0, 232, 160, 0.28);
}
.shop-cart-bit {
    position: absolute;
    left: 0;
    top: 0;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    background: color-mix(in srgb, var(--shop-accent) 42%, white);
    box-shadow: 0 4px 12px rgba(0, 232, 160, 0.28);
    pointer-events: none;
    will-change: transform;
}
/* El aviso de “añadido” baja de la barra para no tapar el botón Carrito. */
.swal2-container.shop-cart-toast {
    pointer-events: none;
}
.swal2-container.shop-cart-toast .swal2-popup {
    pointer-events: auto;
    width: auto !important;
    max-width: 12rem;
    padding: 0.45rem 0.7rem;
    font-size: 0.85rem;
}

.shop-cart-btn.is-bump {
    animation: shop-cart-bump 0.42s ease;
}
@keyframes shop-cart-bump {
    0%, 100% { transform: scale(1); }
    40% { transform: scale(1.08); }
}
.shop-profile-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    border: 1px solid var(--shop-border-strong);
    background: var(--shop-surface);
}
.shop-profile-toolbar-label {
    font-size: 0.9rem;
    font-weight: 600;
}
.shop-font-controls {
    display: inline-flex;
    gap: 0.35rem;
}
.shop-font-btn {
    min-width: 2.25rem;
    height: 2.25rem;
    padding: 0 0.55rem;
    border-radius: 10px;
    border: 1px solid var(--shop-border-strong);
    background: rgba(255,255,255,0.04);
    color: var(--shop-text);
    cursor: pointer;
    font-weight: 700;
    font-size: 0.85rem;
}
.shop-font-btn:hover {
    border-color: var(--shop-accent);
    color: var(--shop-accent);
}
.shop-catalog-grid--favorites {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 0.85rem;
}

.shop-help-subtitle {
    color: var(--shop-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}
.shop-help-content {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}
.shop-help-block--heading .shop-help-heading,
.shop-help-block--contact .shop-help-heading {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 0.35rem;
}
.shop-help-text {
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--shop-text);
    opacity: 0.92;
}
.shop-help-faq {
    border: 1px solid var(--shop-border-strong);
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255,255,255,0.02);
}
.shop-help-faq-q {
    cursor: pointer;
    list-style: none;
    padding: 0.85rem 1rem;
    font-weight: 600;
    font-size: 0.92rem;
}
.shop-help-faq-q::-webkit-details-marker { display: none; }
.shop-help-faq-a {
    padding: 0 1rem 0.9rem;
    font-size: 0.9rem;
    line-height: 1.55;
    color: var(--shop-muted);
}
.shop-help-figure { margin: 0; }
.shop-help-image {
    width: 100%;
    border-radius: 12px;
    border: 1px solid var(--shop-border-strong);
    display: block;
}
.shop-help-caption {
    margin-top: 0.45rem;
    font-size: 0.82rem;
    color: var(--shop-muted);
}
.shop-help-video-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--shop-border-strong);
    background: #000;
}
.shop-help-video-embed,
.shop-help-video-native {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    object-fit: contain;
    background: #000;
}
.shop-help-video-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--shop-accent);
    font-weight: 600;
}
.shop-help-contact-line {
    font-size: 0.92rem;
    margin: 0.35rem 0;
    display: flex;
    align-items: center;
    gap: 0.55rem;
}
.shop-help-contact-line a {
    color: var(--shop-accent);
}
.shop-stores { max-width: 1200px; margin: 0 auto; }
.shop-stores-lead, .shop-stores-hint {
    margin: 0 0 1rem;
    color: var(--shop-muted);
    font-size: 0.92rem;
}
.shop-stores-locate {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1rem;
    margin-bottom: 1.25rem;
}
.shop-stores-locate .shop-stores-hint { margin: 0; flex: 1 1 16rem; }
.shop-stores-heading {
    margin: 0.4rem 0 0.75rem;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--shop-text);
}
.shop-stores-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.85rem;
    margin-bottom: 1.4rem;
}
@media (min-width: 800px) {
    .shop-stores-grid { grid-template-columns: 1fr 1fr; }
}
.shop-store-card {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    padding: 1rem;
    background: var(--shop-surface);
    border: 1px solid var(--shop-border);
    border-radius: var(--shop-card-radius, 16px);
}
.shop-store-card-main {
    display: flex;
    gap: 0.85rem;
    color: inherit;
    text-decoration: none;
}
.shop-store-photo {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 14px;
    flex: 0 0 auto;
}
.shop-store-photo--empty {
    display: grid;
    place-items: center;
    background: rgba(255,255,255,0.04);
    color: var(--shop-accent);
    font-size: 1.3rem;
}
.shop-store-copy { display: flex; flex-direction: column; gap: 0.2rem; min-width: 0; }
.shop-store-copy strong { font-size: 1.02rem; line-height: 1.3; }
.shop-store-code, .shop-store-line { color: var(--shop-muted); font-size: 0.84rem; }
.shop-store-line { overflow-wrap: anywhere; }
.shop-store-distance {
    color: var(--shop-accent);
    font-size: 0.82rem;
    font-weight: 700;
}
.shop-store-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.shop-store-detail {
    display: grid;
    gap: 1rem;
}
@media (min-width: 900px) {
    .shop-store-detail { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); align-items: start; }
}
.shop-store-detail-info h2 { margin: 1rem 0 0.45rem; font-size: 1rem; }
.shop-store-detail-photo {
    width: 100%;
    max-height: 180px;
    object-fit: cover;
    border-radius: 14px;
    margin-bottom: 0.8rem;
}
.shop-store-detail-line {
    display: flex;
    gap: 0.55rem;
    align-items: flex-start;
    margin: 0.35rem 0;
}
.shop-store-detail-line i { color: var(--shop-accent); margin-top: 0.2rem; }
.shop-store-detail-line a { color: var(--shop-accent); }
.shop-store-hours { list-style: none; margin: 0; padding: 0; }
.shop-store-hours li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.35rem 0;
    border-bottom: 1px solid var(--shop-border);
    font-size: 0.9rem;
}
.shop-store-map-panel { padding: 0.4rem; }
.shop-store-map {
    width: 100%;
    min-height: 360px;
    border: 0;
    border-radius: 12px;
    background: #0b1220;
}
.shop-help-divider {
    border: 0;
    border-top: 1px solid var(--shop-border-strong);
    margin: 0.25rem 0;
}

