/* CardVerse Marketplace */
:root {
    --store-tcg: #7c3aed;
    --store-tcg-soft: rgba(124, 58, 237, 0.15);
    --store-success: #22c55e;
    --store-warning: #f59e0b;
    --store-danger: #ef4444;
    --store-radius: 14px;
    --store-radius-lg: 20px;
    --store-shadow: 0 12px 40px rgba(15, 23, 42, 0.12);
    --store-shadow-soft: 0 4px 20px rgba(15, 23, 42, 0.08);
    --store-header-h: 212px;
    --store-announce: #f97316;
    --store-mid-bg: #ececec;
    --store-mid-text: #1a1a1a;
    --store-nav-bg: #0a0a0a;
    --store-bottom-nav-h: 0px;
}

/* Marketplace siempre en tema claro (no heredar dark de style.css) */
body.store-marketplace {
    --bg: #f6f7fb;
    --surface: #ffffff;
    --surface-2: #f3f4f6;
    --border: rgba(15, 23, 42, 0.1);
    --text: #111827;
    --muted: #6b7280;
    --accent: #374151;
    --header-bg: rgba(255, 255, 255, 0.92);
    --header-hover: rgba(15, 23, 42, 0.08);
    --input-focus: rgba(124, 58, 237, 0.2);
    --shadow-soft: rgba(15, 23, 42, 0.1);
    background: var(--bg);
    color: var(--text);
    color-scheme: light;
}

.store-marketplace {
    padding-bottom: calc(var(--store-bottom-nav-h) + 1rem);
}

@media (max-width: 991.98px) {
    .store-marketplace {
        --store-header-h: 120px;
        --store-bottom-nav-h: 64px;
        padding-bottom: calc(var(--store-bottom-nav-h) + 4.5rem);
    }
    .store-marketplace.store-search-open { --store-header-h: 168px; }

    .store-logo {
        min-height: 56px;
    }

    .store-logo-img {
        height: 56px;
        max-width: 180px;
    }

    .store-logo-mark {
        width: 56px;
        height: 56px;
        font-size: 1.05rem;
    }
}

.store-marketplace .app-header { display: none !important; }

.store-header {
    position: sticky;
    top: 0;
    z-index: 210;
    background: var(--store-mid-bg);
    border-bottom: none;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}

/* Franja naranja superior */
.store-announcement {
    background: var(--store-announce);
    color: #fff;
    text-align: center;
    padding: 0.45rem 1rem;
}

.store-announcement p {
    margin: 0;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

/* Fila central: logo + búsqueda + utilidades */
.store-header-mid {
    background: var(--store-mid-bg);
    color: var(--store-mid-text);
    padding: 0.85rem 1rem 0.5rem;
}

.store-header-mid-inner {
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 1400px;
    margin: 0 auto;
}

.store-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--store-mid-text);
    flex-shrink: 0;
    min-height: 80px;
}

.store-logo-mark {
    width: 80px;
    height: 80px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--store-tcg), #a78bfa);
    color: #fff;
    font-weight: 800;
    font-size: 1.35rem;
    display: grid;
    place-items: center;
}

.store-logo-img {
    display: block;
    height: 80px;
    width: auto;
    max-width: 260px;
    object-fit: contain;
    object-position: left center;
    border-radius: 0;
}

/* Selector TCG integrado en la barra de búsqueda */
.store-search-mid {
    flex: 1;
    min-width: 0;
    position: relative;
    display: flex;
    align-items: stretch;
    gap: 0;
}

.store-search-tcg-wrap {
    flex: 0 0 auto;
    position: relative;
    display: flex;
    align-items: stretch;
}

.store-search-tcg-wrap::after {
    content: '';
    position: absolute;
    right: 0;
    top: 20%;
    bottom: 20%;
    width: 1px;
    background: #ddd;
    pointer-events: none;
}

.store-search-tcg {
    appearance: none;
    -webkit-appearance: none;
    border: 1px solid #ccc;
    border-right: none;
    border-radius: 8px 0 0 8px;
    background: #f7f7f7 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 16 16'%3E%3Cpath fill='%23666' d='M4.5 6l3.5 3.5L11.5 6z'/%3E%3C/svg%3E") no-repeat right 0.55rem center;
    padding: 0 1.75rem 0 0.75rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: #222;
    min-width: 7.5rem;
    max-width: 9.5rem;
    cursor: pointer;
    height: auto;
    min-height: 44px;
}

.store-search-tcg:focus {
    outline: none;
    border-color: var(--store-tcg, #7c3aed);
    box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.15);
    z-index: 1;
}

@media (max-width: 991.98px) {
    .store-search-tcg {
        min-width: 6.5rem;
        max-width: 7.5rem;
        font-size: 0.72rem;
        padding-right: 1.5rem;
    }
}

.store-header-utils {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
    margin-left: auto;
}

.store-region {
    font-size: 0.8rem;
    font-weight: 600;
    color: #333;
    padding-right: 0.5rem;
    border-right: 1px solid #ccc;
    margin-right: 0.15rem;
    white-space: nowrap;
}

.store-util-btn {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #222;
    display: grid;
    place-items: center;
    font-size: 1.25rem;
    text-decoration: none;
    cursor: pointer;
    position: relative;
}

.store-util-btn:hover { background: rgba(0, 0, 0, 0.06); }
.store-util-btn--cms {
    color: #6366f1;
}
.store-util-btn--cms:hover {
    background: rgba(99, 102, 241, 0.1);
    color: #4f46e5;
}
.store-util-wishlist.is-active {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}
.store-util-wishlist.is-active:hover {
    background: rgba(239, 68, 68, 0.16);
}
.store-util-btn img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }

/* Menú desplegable del avatar */
.store-avatar-menu {
    position: relative;
}

.store-avatar-trigger {
    padding: 0;
}

.store-avatar-menu.is-open .store-avatar-trigger {
    background: rgba(124, 58, 237, 0.1);
    color: #7c3aed;
}

.store-avatar-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 220px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.12), 0 2px 8px rgba(15, 23, 42, 0.06);
    border: 1px solid #e2e8f0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    z-index: 1080;
    padding: 0.35rem 0;
    overflow: visible;
}

.store-avatar-menu.is-open .store-avatar-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.store-avatar-dropdown-arrow {
    position: absolute;
    top: -6px;
    right: 14px;
    width: 12px;
    height: 12px;
    background: #fff;
    border-left: 1px solid #e2e8f0;
    border-top: 1px solid #e2e8f0;
    transform: rotate(45deg);
    pointer-events: none;
}

.store-avatar-dropdown-head {
    padding: 0.65rem 0.85rem 0.55rem;
    border-bottom: 1px solid #f1f5f9;
}

.store-avatar-dropdown-head strong {
    display: block;
    font-size: 0.88rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
}

.store-avatar-dropdown-head span {
    display: block;
    margin-top: 0.1rem;
    font-size: 0.75rem;
    color: #64748b;
}

.store-avatar-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.6rem 0.85rem;
    font-size: 0.88rem;
    font-weight: 500;
    color: #334155;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}

.store-avatar-dropdown-item + .store-avatar-dropdown-item {
    border-top: 1px solid #f1f5f9;
}

.store-avatar-dropdown-item:hover,
.store-avatar-dropdown-item:focus-visible {
    background: #f5f3ff;
    color: #7c3aed;
    outline: none;
}

.store-avatar-dropdown-item i {
    font-size: 1rem;
    width: 1.1rem;
    text-align: center;
    opacity: 0.9;
}

.store-avatar-dropdown-item--logout:hover,
.store-avatar-dropdown-item--logout:focus-visible {
    color: #dc2626;
    background: #fef2f2;
}

@media (max-width: 991.98px) {
    .store-avatar-dropdown {
        right: -4px;
    }
}

.store-util-cart .store-cart-badge {
    top: 2px;
    right: 0;
    background: #111;
}

/* Menú negro inferior — dentro del header sticky */
.store-main-nav {
    background: var(--store-nav-bg);
    border-top: 1px solid #1f1f1f;
    position: relative;
    z-index: 1;
}

.store-main-nav-inner {
    display: flex;
    align-items: center;
    gap: 0;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 0.5rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.store-main-nav-inner::-webkit-scrollbar { display: none; }

.store-main-nav-link {
    display: inline-flex;
    align-items: center;
    padding: 0.85rem 1.15rem;
    color: #fff;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    letter-spacing: 0.01em;
    border-bottom: 3px solid transparent;
    transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.store-main-nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

.store-main-nav-link.is-active {
    border-bottom-color: var(--store-announce);
    color: #fff;
}

.store-main-nav-dropdown {
    position: relative;
}

.store-main-nav-dropdown-btn {
    border: none;
    background: transparent;
    cursor: pointer;
    gap: 0.35rem;
}

.store-nav-chevron {
    font-size: 0.65rem;
    opacity: 0.75;
    transition: transform 0.15s;
}

.store-main-nav-dropdown:hover .store-nav-chevron,
.store-main-nav-dropdown:focus-within .store-nav-chevron {
    transform: rotate(180deg);
}

.store-main-nav-submenu {
    display: none;
    position: fixed;
    min-width: 210px;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 10px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
    padding: 0.35rem;
    z-index: 1200;
}

.store-main-nav-dropdown:hover .store-main-nav-submenu,
.store-main-nav-dropdown:focus-within .store-main-nav-submenu,
.store-main-nav-dropdown.is-open .store-main-nav-submenu {
    display: block;
}

.store-main-nav-sublink {
    display: block;
    padding: 0.55rem 0.85rem;
    color: #e5e7eb;
    font-size: 0.84rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.15s, color 0.15s;
}

.store-main-nav-sublink:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.store-main-nav-subgroup {
    padding: 0.2rem 0;
}

.store-main-nav-subgroup + .store-main-nav-subgroup {
    margin-top: 0.25rem;
    padding-top: 0.35rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.store-main-nav-subgroup-label {
    display: block;
    padding: 0.35rem 0.85rem 0.25rem;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
}

.store-main-nav-sublink--muted {
    color: rgba(255, 255, 255, 0.45);
    font-weight: 500;
    font-style: italic;
    pointer-events: none;
}

.store-main-nav-dropdown.is-active .store-main-nav-dropdown-btn {
    border-bottom-color: var(--store-announce);
}

/* Página Banlist */
.banlist-format-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.banlist-format-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    border: 1px solid var(--border, #e5e7eb);
    background: #fff;
    color: var(--text, #111827);
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.banlist-format-pill:hover {
    border-color: var(--pill-color, #7c3aed);
    color: var(--pill-color, #7c3aed);
}

.banlist-format-pill.is-active {
    background: var(--pill-color, #7c3aed);
    border-color: var(--pill-color, #7c3aed);
    color: #fff;
}

.page-banlist.store-marketplace .banlist-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 1rem 2rem;
}

.store-header-top {
    display: none;
}

.store-nav-wrap { display: none; }

.store-tcg-picker { position: relative; flex-shrink: 0; }

.store-tcg-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.65rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
}

.store-tcg-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--store-tcg); }

.store-tcg-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 200px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--store-radius);
    box-shadow: var(--store-shadow);
    padding: 0.35rem;
    z-index: 300;
}

.store-tcg-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.55rem 0.65rem;
    border: none;
    background: transparent;
    color: var(--text);
    border-radius: 10px;
    font-size: 0.85rem;
    text-align: left;
    cursor: pointer;
}

.store-tcg-option:hover, .store-tcg-option.is-active { background: var(--store-tcg-soft); }

.store-tcg-option-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--tcg-color, var(--store-tcg));
}

.store-tcg-soon {
    margin-left: auto;
    font-size: 0.65rem;
    color: var(--muted);
    text-transform: uppercase;
}

.store-header-actions {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-left: auto;
}

.store-icon-btn {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #222;
    display: grid;
    place-items: center;
    font-size: 1.15rem;
    cursor: pointer;
    position: relative;
}

.store-icon-btn:hover { background: rgba(0, 0, 0, 0.06); }

.store-cart-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--store-tcg);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    display: grid;
    place-items: center;
}

.store-profile-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    display: grid;
    place-items: center;
    color: var(--text);
    text-decoration: none;
    border: 2px solid var(--border);
}

.store-profile-btn img { width: 100%; height: 100%; object-fit: cover; }

.store-avatar-initials {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: hsl(var(--avatar-hue, 250) 65% 52%);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.02em;
    user-select: none;
}

.store-avatar-trigger .store-avatar-initials {
    width: 100%;
    height: 100%;
    font-size: 0.68rem;
}

.store-search-bar,
.store-search-mid .store-search-hint {
    padding: 0;
    max-width: none;
    margin: 0;
}

.store-search-hint {
    margin: 0.35rem auto 0;
    max-width: 1400px;
    padding: 0 0.25rem;
    font-size: 0.72rem;
    color: #666;
}

@media (max-width: 991.98px) {
    .store-search-mid {
        display: none;
        width: 100%;
        order: 3;
        flex-basis: 100%;
        padding-top: 0.5rem;
    }
    .store-marketplace.store-search-open .store-search-mid { display: flex; flex-wrap: wrap; }
    .store-header-mid-inner { flex-wrap: wrap; }
    .store-search-hint { display: none; }
    .store-marketplace.store-search-open .store-search-hint { display: block; width: 100%; }
}

.store-search-wrap {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
    background: #fff;
    border: 1px solid #ccc;
    border-left: none;
    border-radius: 0 8px 8px 0;
    padding: 0;
    overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04);
}

.store-search-wrap:focus-within {
    border-color: var(--store-tcg, #7c3aed);
    box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.12);
}

.store-search-input {
    flex: 1;
    border: none;
    background: transparent;
    color: #111;
    font-size: 0.92rem;
    padding: 0.65rem 0.85rem;
    min-width: 0;
}

.store-search-input::placeholder { color: #888; }

.store-search-submit {
    display: grid;
    place-items: center;
    width: 44px;
    height: 100%;
    min-height: 42px;
    border: none;
    border-left: 1px solid #e5e5e5;
    background: #fff;
    color: #333;
    font-size: 1rem;
    cursor: pointer;
}

.store-search-submit:hover { background: #f5f5f5; }

.store-filter-btn {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.55rem 0.9rem;
    border-radius: 4px;
    border: 1px solid #ccc;
    background: #fff;
    color: #222;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.store-filter-btn:hover { background: #f5f5f5; }
.store-stats {
    padding: 0.35rem 1rem;
    max-width: 1400px;
    margin: 0 auto;
    font-size: 0.72rem;
    color: #666;
    background: var(--store-mid-bg);
    border-top: 1px solid #ddd;
}

.store-autocomplete {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 4px);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--store-radius);
    box-shadow: var(--store-shadow);
    max-height: 360px;
    overflow-y: auto;
    z-index: 250;
}

.store-ac-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.6rem 0.85rem;
    border: none;
    background: transparent;
    color: var(--text);
    text-align: left;
    cursor: pointer;
    border-bottom: 1px solid var(--border);
}

.store-ac-item:hover { background: var(--store-tcg-soft); }
.store-ac-img { width: 36px; height: 52px; object-fit: cover; border-radius: 6px; }
.store-ac-img--merch {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 52px;
    border-radius: 6px;
    background: #f3f0ff;
    color: #7c3aed;
    flex-shrink: 0;
}
.store-ac-img--merch img { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; }
.store-ac-name { font-size: 0.85rem; font-weight: 600; display: block; }
.store-ac-meta { font-size: 0.72rem; color: var(--muted); }
.store-ac-loading {
    padding: 0.65rem 0.85rem;
    font-size: 0.82rem;
    color: var(--muted);
    text-align: center;
}
.store-ac-empty {
    padding: 0.75rem 0.85rem;
    font-size: 0.84rem;
    color: var(--muted);
    text-align: center;
}

.store-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 190;
    display: flex;
    background: var(--header-bg);
    backdrop-filter: blur(16px);
    border-top: 1px solid var(--border);
    padding-bottom: env(safe-area-inset-bottom, 0);
}

.store-bottom-link {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    padding: 0.45rem 0.25rem;
    color: var(--muted);
    text-decoration: none;
    font-size: 0.65rem;
    font-weight: 600;
    border: none;
    background: transparent;
    position: relative;
    cursor: pointer;
}

.store-bottom-link i { font-size: 1.2rem; }
.store-bottom-link.is-active { color: var(--store-tcg); }

.store-bottom-badge {
    position: absolute;
    top: 2px;
    right: calc(50% - 22px);
    min-width: 16px;
    height: 16px;
    border-radius: 999px;
    background: var(--store-tcg);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    display: grid;
    place-items: center;
}

.store-cart-drawer, .store-filter-drawer {
    position: fixed;
    inset: 0;
    z-index: 400;
    pointer-events: none;
}

.store-cart-drawer.is-open, .store-filter-drawer.is-open { pointer-events: auto; }

.store-cart-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.25s;
}

.store-cart-drawer.is-open .store-cart-backdrop,
.store-filter-drawer.is-open .store-cart-backdrop { opacity: 1; }

.store-cart-panel, .store-filter-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: min(420px, 100%);
    height: 100%;
    background: var(--surface);
    border-left: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.28s ease;
}

.store-cart-drawer.is-open .store-cart-panel,
.store-filter-drawer.is-open .store-filter-panel { transform: translateX(0); }

.store-cart-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.1rem;
    border-bottom: 1px solid var(--border);
}

.store-cart-head h2 { margin: 0; font-size: 1.1rem; }
.store-cart-close { width: 36px; height: 36px; border: none; border-radius: 10px; background: var(--surface-2); cursor: pointer; }
.store-cart-body { flex: 1; overflow-y: auto; padding: 1rem; }
.store-cart-line { display: flex; gap: 0.75rem; padding: 0.75rem 0; border-bottom: 1px solid var(--border); }
.store-cart-line img { width: 48px; height: 70px; object-fit: cover; border-radius: 8px; }
.store-cart-foot { padding: 1rem; border-top: 1px solid var(--border); }
.store-cart-totals { display: flex; justify-content: space-between; margin-bottom: 0.75rem; }
.store-cart-checkout { width: 100%; border-radius: 12px; }
.store-filter-body { padding: 1rem; }
.store-filter-field { display: block; margin-bottom: 0.85rem; }
.store-filter-field span { display: block; font-size: 0.78rem; color: var(--muted); margin-bottom: 0.3rem; }

.store-fab-cart {
    position: fixed;
    right: 1rem;
    bottom: calc(var(--store-bottom-nav-h) + 0.75rem);
    z-index: 180;
}

.store-fab-cart button {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.65rem 1.1rem;
    border: none;
    border-radius: 999px;
    background: var(--store-tcg);
    color: #fff;
    font-weight: 700;
    box-shadow: var(--store-shadow);
    cursor: pointer;
}

.store-main { max-width: 1400px; margin: 0 auto; padding: 1rem; }

body.store-marketplace .store-main {
    background: transparent;
}
.store-marketplace .tienda-toolbar { display: none; }

.store-home-section { margin-bottom: 2rem; }

.store-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.store-section-title { margin: 0; font-size: 1.2rem; font-weight: 700; }
.store-section-sub { margin: 0.2rem 0 0; font-size: 0.82rem; color: var(--muted); }

.store-coming-soon {
    padding: 2rem;
    border-radius: var(--store-radius-lg);
    border: 1px dashed var(--border);
    background: var(--surface);
    text-align: center;
}

.store-marketplace .tienda-hero-inner { border-radius: var(--store-radius-lg); min-height: 220px; }
.store-marketplace .tienda-hero-tag { background: var(--store-tcg-soft); color: var(--store-tcg); border-radius: 999px; padding: 0.25rem 0.65rem; font-weight: 700; font-size: 0.72rem; }
.store-marketplace .tienda-hero-btn { background: var(--store-tcg) !important; border: none; border-radius: 12px; }

.store-marketplace .tienda-set-grid,
.store-marketplace .tienda-products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
    gap: 1rem;
}

.store-marketplace .tienda-set-card,
.store-marketplace .tienda-product {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--store-radius);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.store-marketplace .tienda-set-card:hover,
.store-marketplace .tienda-product:hover {
    transform: translateY(-4px);
    box-shadow: var(--store-shadow-soft);
    border-color: var(--store-tcg);
}

.store-marketplace .tienda-set-card-img { aspect-ratio: 1; background: var(--surface-2); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.store-marketplace .tienda-set-card-img img { width: 100%; height: 100%; object-fit: cover; }
.store-marketplace .tienda-set-card-body { padding: 0.85rem; }
.store-marketplace .tienda-set-card-title { font-size: 0.9rem; font-weight: 700; margin: 0; }
.store-marketplace .tienda-set-card-price { font-size: 1.1rem; font-weight: 800; color: var(--store-success); }
.store-marketplace .tienda-set-card-stock { font-size: 0.72rem; font-weight: 600; padding: 0.2rem 0.5rem; border-radius: 6px; background: rgba(34, 197, 94, 0.12); color: var(--store-success); }
.store-marketplace .tienda-set-card-stock--out { background: rgba(239, 68, 68, 0.12); color: var(--store-danger); }
.store-marketplace .tienda-set-card-stock--preventa { background: rgba(245, 158, 11, 0.12); color: var(--store-warning); }
.store-marketplace .tienda-set-card-actions { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.5rem; }

.store-marketplace .tienda-product { display: flex; flex-direction: column; cursor: pointer; }
.store-marketplace .tienda-product-img { padding: 0.75rem; min-height: 160px; display: flex; align-items: center; justify-content: center; background: var(--surface-2); }
.store-marketplace .tienda-product-image { height: 128px !important; width: auto !important; object-fit: contain; }
.store-marketplace .tienda-product-body { padding: 0.75rem 0.85rem; }
.store-marketplace .tienda-product-title { font-size: 0.88rem; font-weight: 700; margin: 0 0 0.25rem; }

.store-mkt-rarity {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.15rem 0.45rem;
    border-radius: 6px;
    background: var(--store-tcg-soft);
    color: var(--store-tcg);
    margin-bottom: 0.35rem;
}

.store-mkt-card-hover {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    opacity: 0;
    transition: opacity 0.2s;
}

.store-marketplace .tienda-set-card-img { position: relative; }
.store-marketplace .tienda-set-card:hover .store-mkt-card-hover { opacity: 1; }

.store-mkt-quick-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: #fff;
    color: #111;
    display: grid;
    place-items: center;
    cursor: pointer;
}

.store-home-loading {
    padding: 0.5rem 0 1.5rem;
}

.store-home-skeleton-row {
    height: 14px;
    border-radius: 8px;
    background: linear-gradient(90deg, rgba(255,255,255,0.06) 25%, rgba(255,255,255,0.12) 50%, rgba(255,255,255,0.06) 75%);
    background-size: 200% 100%;
    animation: storeShimmer 1.2s ease-in-out infinite;
    margin-bottom: 0.75rem;
    max-width: 220px;
}

.store-home-skeleton-row--short { max-width: 140px; }

.store-home-skeleton-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem;
    margin-top: 1.25rem;
}

.store-home-skeleton-card {
    height: 180px;
    border-radius: var(--store-radius-lg);
    background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0.04) 75%);
    background-size: 200% 100%;
    animation: storeShimmer 1.2s ease-in-out infinite;
}

@keyframes storeShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.store-collection-teaser {
    margin-top: 2rem;
    padding: 1.25rem 1.5rem;
    border-radius: var(--store-radius-lg);
    background: linear-gradient(135deg, var(--store-tcg-soft) 0%, #ffffff 72%);
    border: 1px solid rgba(15, 23, 42, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    color: #111827;
}

.store-collection-teaser h3 {
    margin: 0 0 0.35rem;
    font-size: 1.1rem;
    font-weight: 800;
    color: #111827;
}

.store-collection-teaser p {
    margin: 0;
    font-size: 0.9rem;
    color: #4b5563;
    line-height: 1.45;
}

.store-collection-teaser h3 i {
    color: var(--store-tcg, #7c3aed);
}

.store-marketplace[data-tcg="yugioh"] { --store-tcg: #7c3aed; --store-tcg-soft: rgba(124, 58, 237, 0.15); }
.store-marketplace[data-tcg="pokemon"] { --store-tcg: #f59e0b; --store-tcg-soft: rgba(245, 158, 11, 0.15); }
.store-marketplace[data-tcg="onepiece"] { --store-tcg: #ef4444; --store-tcg-soft: rgba(239, 68, 68, 0.15); }
.store-marketplace[data-tcg="digimon"] { --store-tcg: #3b82f6; --store-tcg-soft: rgba(59, 130, 246, 0.15); }

.store-marketplace.page-producto-detalle .producto-main { max-width: 1200px; margin: 0 auto; }
.store-marketplace .producto-hero,
.store-marketplace .producto-listings-section {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--store-radius-lg);
    padding: 1.25rem;
}

@media (min-width: 992px) {
    .store-product-layout { display: grid; grid-template-columns: 380px 1fr; gap: 1.5rem; align-items: start; }
    .store-product-sticky { position: sticky; top: calc(var(--store-header-h) + 1rem); }
}

.store-skeleton {
    background: linear-gradient(90deg, var(--surface-2), var(--border), var(--surface-2));
    background-size: 200% 100%;
    animation: storeShimmer 1.2s infinite;
    border-radius: 8px;
    height: 48px;
    margin-bottom: 0.5rem;
}

@keyframes storeShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* TCG selector — visible en barra de búsqueda */

.store-search-wrap > .bi-search { display: none; }

.store-mkt-game {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
    margin-bottom: 0.25rem;
    background: var(--surface-2);
    color: var(--muted);
}

.store-mkt-game--pokemon { color: #f59e0b; background: rgba(245, 158, 11, 0.12); }
.store-mkt-game--onepiece { color: #ef4444; background: rgba(239, 68, 68, 0.12); }
.store-mkt-game--digimon { color: #3b82f6; background: rgba(59, 130, 246, 0.12); }

/* Carrusel de banners — ancho completo estilo Troll and Toad */
.coleccion-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.5rem 1rem 0;
}

.coleccion-toolbar .search-wrap { max-width: 280px; min-width: 160px; }

/* Mi colección — selector de TCG (no usar menú superior) */
.page-cartas .coleccion-head {
    padding: 1rem 0 0.75rem;
}

.coleccion-head-copy {
    margin-bottom: 0.85rem;
}

.coleccion-head-title {
    margin: 0 0 0.25rem;
    font-size: 1.35rem;
    font-weight: 800;
    color: #111827;
    letter-spacing: -0.02em;
}

.coleccion-head-sub {
    margin: 0;
    font-size: 0.88rem;
    color: #6b7280;
    max-width: 52ch;
}

.coleccion-tcg-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.35rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.05);
}

.coleccion-tcg-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 0.95rem;
    border: 1px solid transparent;
    border-radius: 10px;
    background: transparent;
    color: #4b5563;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.coleccion-tcg-btn i {
    font-size: 1rem;
    opacity: 0.85;
}

.coleccion-tcg-btn:hover {
    background: #f9fafb;
    color: #111827;
}

.coleccion-tcg-btn.is-active {
    color: #fff;
    border-color: transparent;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.12);
}

.coleccion-tcg-btn.is-active[data-tcg="yugioh"] { background: #7c3aed; }
.coleccion-tcg-btn.is-active[data-tcg="pokemon"] { background: #f59e0b; }
.coleccion-tcg-btn.is-active[data-tcg="onepiece"] { background: #ef4444; }
.coleccion-tcg-btn.is-active[data-tcg="digimon"] { background: #3b82f6; }

@media (max-width: 575.98px) {
    .coleccion-tcg-bar {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .coleccion-tcg-btn {
        justify-content: center;
        width: 100%;
    }
}

.store-banner-bleed {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    margin-bottom: 1.25rem;
}

.store-banner-carousel {
    position: relative;
    margin: 0;
    border-radius: 0;
    overflow: hidden;
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
    background: #0f0f14;
}

.store-banner-track {
    display: flex;
    transition: transform 0.45s ease;
    will-change: transform;
}

.store-banner-slide {
    flex: 0 0 100%;
    min-height: 320px;
}

.store-banner-slide-inner {
    min-height: 320px;
    display: flex;
    align-items: center;
    padding: 2.5rem clamp(1.5rem, 5vw, 4rem);
    background: linear-gradient(135deg, #1a1033 0%, #0f0f14 55%, #1a0a2e 100%);
    background-size: cover;
    background-position: center right;
    position: relative;
}

.store-banner-slide-inner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(8, 8, 12, 0.82) 0%, rgba(8, 8, 12, 0.45) 50%, rgba(8, 8, 12, 0.2) 100%);
}

.store-banner-content {
    position: relative;
    z-index: 1;
    max-width: 640px;
}

.store-banner-tag {
    margin: 0 0 0.35rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--store-tcg);
}

.store-banner-title {
    margin: 0 0 0.5rem;
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 800;
    line-height: 1.1;
}

.store-banner-sub {
    margin: 0 0 1rem;
    color: var(--muted);
    font-size: 0.95rem;
}

.store-banner-btn {
    font-weight: 700;
    border-radius: 999px;
    padding: 0.55rem 1.25rem;
}

.store-banner-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 2.25rem;
    height: 2.25rem;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    display: grid;
    place-items: center;
    opacity: 0.85;
    transition: opacity 0.2s, background 0.2s;
}

.store-banner-nav:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.75);
}

.store-banner-nav--prev { left: 0.65rem; }
.store-banner-nav--next { right: 0.65rem; }

.store-banner-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0.65rem;
    display: flex;
    justify-content: center;
    gap: 0.35rem;
    z-index: 2;
}

.store-banner-dot {
    width: 0.55rem;
    height: 0.55rem;
    border: none;
    border-radius: 50%;
    padding: 0;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
}

.store-banner-dot.is-active {
    background: var(--store-tcg);
    transform: scale(1.15);
}

@media (min-width: 992px) {
    .store-banner-slide,
    .store-banner-slide-inner { min-height: 420px; }
}

@media (max-width: 575.98px) {
    .store-banner-slide,
    .store-banner-slide-inner { min-height: 240px; padding: 1.5rem 2.75rem; }
    .store-search-tcg { max-width: 7.5rem; font-size: 0.72rem; }
}

/* Detalle carta TCG externa */
.store-tcg-detail {
    max-width: 900px;
    margin: 0 auto;
    padding: 1rem;
}

.store-tcg-detail-card {
    display: grid;
    gap: 1.5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--store-radius-lg);
    padding: 1.5rem;
}

@media (min-width: 768px) {
    .store-tcg-detail-card { grid-template-columns: 260px 1fr; align-items: start; }
}

.store-tcg-detail-img img {
    width: 100%;
    max-width: 260px;
    border-radius: 10px;
    display: block;
    margin: 0 auto;
}

.store-tcg-detail-meta {
    color: var(--muted);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.store-tcg-detail-text {
    white-space: pre-wrap;
    font-size: 0.9rem;
    color: var(--text);
    opacity: 0.9;
}

/* Featured singles — Mejores precios */
.store-featured-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

@media (min-width: 768px) {
    .store-featured-row {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1200px) {
    .store-featured-row {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}

.store-featured-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--store-radius);
    overflow: hidden;
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.store-featured-card:hover {
    transform: translateY(-3px);
    border-color: var(--store-tcg);
    box-shadow: var(--store-shadow-soft);
}

.store-featured-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.store-featured-img {
    aspect-ratio: 63 / 88;
    background: #111118;
    display: grid;
    place-items: center;
    padding: 0.65rem;
}

.store-featured-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 6px;
}

.store-featured-body {
    padding: 0.65rem 0.7rem 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    flex: 1;
}

.store-featured-name {
    margin: 0;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.store-featured-meta {
    margin: 0;
    font-size: 0.68rem;
    color: var(--muted);
    line-height: 1.3;
}

.store-featured-foot {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.35rem;
    margin-top: auto;
}

.store-featured-price {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--store-tcg);
}

.store-featured-change {
    font-size: 0.72rem;
    font-weight: 700;
    color: #16a34a;
    background: rgba(34, 197, 94, 0.12);
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
    white-space: nowrap;
}

.store-featured-stock {
    font-size: 0.65rem;
    color: var(--muted);
}

.store-featured-row--page {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    padding: 0 1rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .store-featured-row--page { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (min-width: 1200px) {
    .store-featured-row--page { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

.store-destacadas-head {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 1rem 0.5rem;
}
