/* Página de accesorios / merchandising */
.page-accesorios.store-marketplace .store-main {
    background: #f8fafc;
}

.accesorios-main {
    max-width: 1180px;
    margin: 0 auto;
    padding: 1rem 1rem 2.5rem;
}

.accesorios-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.82rem;
    color: #64748b;
    margin-bottom: 1rem;
}

.accesorios-breadcrumb a {
    color: #7c3aed;
    text-decoration: none;
}

.accesorios-breadcrumb a:hover {
    text-decoration: underline;
}

.accesorios-breadcrumb-sep {
    color: #cbd5e1;
}

.accesorios-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 1.35rem;
    margin-bottom: 1rem;
    border-radius: 18px;
    background: linear-gradient(135deg, #fff 0%, #f5f3ff 100%);
    border: 1px solid #e9e5ff;
    box-shadow: 0 8px 28px rgba(124, 58, 237, 0.08);
}

.accesorios-tcg-badge {
    display: inline-block;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    background: #7c3aed;
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.45rem;
}

.accesorios-hero h1 {
    margin: 0 0 0.35rem;
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 800;
    color: #0f172a;
}

.accesorios-hero p {
    margin: 0;
    font-size: 0.9rem;
    color: #64748b;
}

.accesorios-back-btn {
    border-radius: 12px;
    white-space: nowrap;
}

.accesorios-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 0.85rem;
}

.accesorios-search-wrap {
    flex: 1 1 220px;
    position: relative;
    max-width: 480px;
}

.accesorios-search-wrap i {
    position: absolute;
    left: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
}

.accesorios-search-input {
    width: 100%;
    padding: 0.55rem 0.85rem 0.55rem 2.35rem;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 0.92rem;
    background: #fff;
    color: #0f172a;
}

.accesorios-search-input:focus {
    outline: none;
    border-color: #a78bfa;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.12);
}

.accesorios-filter {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    font-size: 0.72rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.accesorios-filter .form-select {
    min-width: 140px;
    border-radius: 10px;
}

.accesorios-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 0.75rem;
}

.accesorios-filter-btn {
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #475569;
    border-radius: 999px;
    padding: 0.35rem 0.85rem;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.accesorios-filter-btn:hover {
    border-color: #c4b5fd;
    color: #6d28d9;
}

.accesorios-filter-btn.is-active {
    background: #7c3aed;
    border-color: #7c3aed;
    color: #fff;
}

.accesorios-result-hint {
    font-size: 0.82rem;
    color: #64748b;
    margin: 0 0 0.85rem;
    min-height: 1.2em;
}

.accesorios-status {
    padding: 2rem 0;
    text-align: center;
}

.accesorios-loader-ring {
    width: 36px;
    height: 36px;
    margin: 0 auto 0.75rem;
    border: 3px solid #e9e5ff;
    border-top-color: #7c3aed;
    border-radius: 50%;
    animation: accesorios-spin 0.8s linear infinite;
}

@keyframes accesorios-spin {
    to { transform: rotate(360deg); }
}

.accesorios-empty {
    padding: 2rem 0;
}

.accesorios-empty-box {
    text-align: center;
    padding: 2rem 1rem;
    border-radius: 16px;
    background: #fff;
    border: 1px dashed #e2e8f0;
}

.accesorios-empty-box i {
    font-size: 2rem;
    color: #c4b5fd;
    margin-bottom: 0.75rem;
}

.accesorios-empty-box h3 {
    margin: 0 0 0.35rem;
    font-size: 1.1rem;
}

.accesorios-empty-box p {
    margin: 0 0 1rem;
    color: #64748b;
    font-size: 0.9rem;
}

.accesorios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.accesorios-grid.is-loading {
    opacity: 0.65;
    pointer-events: none;
}

.accesorios-grid .accesorios-card,
.accesorios-grid .tcg-merch-card {
    width: 100%;
    min-width: 0;
}

.accesorios-skel-card {
    min-height: 280px;
    border-radius: 14px;
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: accesorios-shimmer 1.2s ease-in-out infinite;
}

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

.accesorios-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 0.5rem;
}

.accesorios-page-label {
    font-size: 0.85rem;
    color: #64748b;
    min-width: 10rem;
    text-align: center;
}

[data-theme="dark"] .page-accesorios.store-marketplace .store-main {
    background: #0f172a;
}

[data-theme="dark"] .accesorios-hero {
    background: linear-gradient(135deg, #1e293b 0%, #312e81 100%);
    border-color: #4338ca;
}

[data-theme="dark"] .accesorios-hero h1 {
    color: #f8fafc;
}

[data-theme="dark"] .accesorios-search-input,
[data-theme="dark"] .accesorios-filter-btn {
    background: #1e293b;
    border-color: #334155;
    color: #e2e8f0;
}

[data-theme="dark"] .accesorios-empty-box {
    background: #1e293b;
    border-color: #334155;
}

/* Tarjetas de producto (antes en tcg-home-hub.css) */
.tcg-merch-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.tcg-merch-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.1);
}

.tcg-merch-card.is-out { opacity: 0.92; }

.tcg-merch-card-img {
    position: relative;
    aspect-ratio: 4 / 3;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-bottom: 1px solid #f1f5f9;
}

.tcg-merch-card-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0.65rem;
}

.tcg-merch-card-fallback {
    display: none;
    place-items: center;
    width: 100%;
    height: 100%;
    color: #c4b5fd;
    font-size: 2rem;
    background: #faf5ff;
}

.tcg-merch-card-img.is-fallback img { display: none; }
.tcg-merch-card-img.is-fallback .tcg-merch-card-fallback { display: grid; }

.tcg-merch-badge {
    position: absolute;
    top: 0.5rem;
    padding: 0.18rem 0.5rem;
    border-radius: 999px;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    z-index: 2;
}

.tcg-merch-badge--top { left: 0.5rem; background: #fbbf24; color: #78350f; }
.tcg-merch-badge--stock { right: 0.5rem; background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.tcg-merch-badge--out { right: 0.5rem; background: #f3f4f6; color: #6b7280; }

.tcg-merch-out-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.72);
    display: grid;
    place-items: center;
    z-index: 3;
}

.tcg-merch-card-body {
    padding: 0.7rem 0.8rem 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    flex: 1;
}

.tcg-merch-cat {
    font-size: 0.68rem;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.tcg-merch-title {
    margin: 0;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.35;
    color: #111827;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tcg-merch-price {
    margin: 0.15rem 0 0.45rem;
    font-size: 1rem;
    font-weight: 800;
    color: var(--store-tcg, #6d28d9);
}

.tcg-merch-actions {
    display: flex;
    gap: 0.4rem;
    margin-top: auto;
}

.tcg-merch-actions .btn-primary {
    flex: 1;
    font-size: 0.72rem;
    font-weight: 700;
    border-radius: 10px;
    background: var(--store-tcg, #6d28d9);
    border-color: var(--store-tcg, #6d28d9);
}

.tcg-merch-actions .btn-outline-primary {
    width: 36px;
    padding: 0;
    border-radius: 10px;
    color: var(--store-tcg, #6d28d9);
    border-color: rgba(109, 40, 217, 0.35);
}

.accesorios-filter-btn.is-active {
    background: #7c3aed;
    border-color: #7c3aed;
    color: #fff;
}

[data-theme="dark"] .tcg-merch-card {
    background: #1e293b;
    border-color: #334155;
}

[data-theme="dark"] .tcg-merch-title { color: #f1f5f9; }
