/* --- ESTILOS GLOBALES Y TIPOGRAFÍA --- */
html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scrollbar-gutter: stable;
    overflow-y: scroll;
    overflow-x: clip;
    touch-action: manipulation;
}
body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: #f7f8fa;
    color: #1a1a1a;
    margin: 0;
    padding: 0 15px 30px 15px;
    overflow-x: clip;
    touch-action: manipulation;
}

*, *::before, *::after {
    touch-action: manipulation;
}

button, input, select, textarea {
    font-family: inherit;
}

/* --- ANNOUNCEMENT BAR --- */
.announcement-bar {
    background-color: #111827;
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.35px;
    text-align: center;
    min-height: 40px;
    padding: 0 15px;
    margin: 0 -15px 15px -15px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    box-sizing: border-box;
}

.announcement-content {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    line-height: 1;
}

.truck-bounce {
    display: inline-block;
    line-height: 1;
    transform-origin: center bottom;
    animation: truckBounce 1.4s ease-in-out infinite;
}

@keyframes truckBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-2.5px); }
}

/* --- HEADER STICKY CON BUSCADOR INLINE --- */
header {
    max-width: 1400px;
    margin: 0 auto 15px auto;
    background: #ffffff;
    padding: 10px 22px;
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    box-sizing: border-box;
    position: sticky;
    top: 10px;
    z-index: 1000;
    transition: box-shadow 0.2s ease, top 0.2s ease;
}

.header-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    width: 100%;
}

.logo-container a { display: flex; align-items: center; text-decoration: none; }
.logo-container img { height: 36px; max-width: 160px; object-fit: contain; display: block; }

/* BUSCADOR INLINE DESKTOP */
.header-search-desktop {
    flex: 1;
    max-width: 650px;
    margin: 0 15px;
}

.search-form-inline {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    position: relative;
}

.search-input-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon-svg {
    position: absolute;
    left: 12px;
    color: #6c757d;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-input {
    width: 100%;
    padding: 9px 14px 9px 38px;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    font-size: 0.9rem;
    box-sizing: border-box;
    background: #fbfbfb;
    color: #1a1a1a;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.search-input:focus {
    outline: none;
    background: #ffffff;
    border-color: #0d6efd;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.12);
}

.filtros-wrapper-inline {
    position: relative;
}

.btn-filtros-toggle {
    background-color: #f1f3f5;
    color: #1a1a1a;
    border: 1px solid #dee2e6;
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s, border-color 0.2s;
    white-space: nowrap;
    height: 38px;
    box-sizing: border-box;
}
.btn-filtros-toggle:hover {
    background-color: #e9ecef;
    border-color: #ced4da;
}

.btn-buscar-submit {
    background-color: #1a1a1a;
    color: #ffffff;
    border: none;
    padding: 8px 18px;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    height: 38px;
    box-sizing: border-box;
    transition: background 0.2s, transform 0.1s;
    white-space: nowrap;
}
.btn-buscar-submit:hover {
    background-color: #333333;
}
.btn-buscar-submit:active {
    transform: scale(0.98);
}

/* DROPDOWN DE FILTROS */
.filtros-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    width: 290px;
    padding: 18px;
    display: none;
    z-index: 1000;
    box-sizing: border-box;
}
.filtros-dropdown.activo { display: block; }
.filtro-seccion { margin-bottom: 14px; }
.filtro-seccion:last-child { margin-bottom: 0; }
.filtro-seccion h4 { font-size: 0.85rem; font-weight: 700; color: #1a1a1a; margin: 0 0 8px 0; text-transform: uppercase; letter-spacing: 0.5px; }
.filtro-seccion select { width: 100%; padding: 8px 10px; border: 1px solid #dee2e6; border-radius: 8px; font-size: 0.85rem; background: #fff; color: #333; outline: none; box-sizing: border-box; }
.checkbox-group { display: flex; flex-direction: column; gap: 7px; max-height: 140px; overflow-y: auto; padding-right: 4px; }
.checkbox-label { display: flex; align-items: center; gap: 8px; font-size: 0.88rem; color: #495057; cursor: pointer; font-weight: 500; }
.checkbox-label input { accent-color: #0d6efd; width: 15px; height: 15px; cursor: pointer; margin: 0; }

/* ACCIONES DERECHA */
.header-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-shrink: 0;
}

/* BOTÓN BUSCADOR MOBILE (LUPA) */
.btn-search-mobile-toggle {
    display: none;
    background: transparent;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    color: #1a1a1a;
    cursor: pointer;
    transition: background 0.2s;
    padding: 0;
}
.btn-search-mobile-toggle:hover {
    background: #f1f3f5;
}

/* BOTÓN WHATSAPP HEADER */
.btn-whatsapp-header {
    background-color: #16a34a; 
    color: white; 
    border: none; 
    padding: 8px 13px; 
    border-radius: 8px; 
    font-weight: 600; 
    display: flex; 
    align-items: center; 
    gap: 6px; 
    font-size: 0.88rem; 
    text-decoration: none; 
    transition: all 0.2s ease-in-out; 
    box-shadow: 0 2px 6px rgba(22, 163, 74, 0.2);
    height: 36px;
    box-sizing: border-box;
}
.btn-whatsapp-header:hover { 
    background-color: #15803d; 
    box-shadow: 0 4px 10px rgba(21, 128, 61, 0.3); 
}
.btn-whatsapp-header svg { width: 16px; height: 16px; fill: #ffffff; flex-shrink: 0; }
.btn-whatsapp-header span { display: inline-block; }

.btn-abrir-carrito { 
    background: transparent; 
    color: #1a1a1a; 
    border: 1px solid #dee2e6; 
    padding: 6px 10px; 
    border-radius: 8px; 
    cursor: pointer; 
    font-weight: 600; 
    display: flex; 
    align-items: center; 
    gap: 6px; 
    font-size: 0.88rem; 
    transition: all 0.2s; 
    height: 36px;
    box-sizing: border-box;
}
.btn-abrir-carrito:hover { background: #f1f3f5; border-color: #ced4da; }

/* BARRA FLOTANTE DE BÚSQUEDA EN MOBILE */
.header-search-mobile-bar {
    display: none;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #f1f3f5;
    position: relative;
}
.header-search-mobile-bar.activo {
    display: block;
    animation: fadeInSlide 0.2s ease;
}
@keyframes fadeInSlide {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}
.search-form-mobile {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}
.search-form-mobile .btn-filtros-toggle,
.search-form-mobile .btn-buscar-submit {
    flex: 1;
    justify-content: center;
}

/* RESPONSIVE HEADER */
@media (max-width: 900px) {
    header { padding: 9px 12px; }
    .header-search-desktop { display: none; }
    .btn-search-mobile-toggle { display: flex; }
    .logo-container img { height: 32px; max-width: 130px; }
    .btn-whatsapp-header { padding: 7px 9px; font-size: 0.82rem; }
    .btn-whatsapp-header span { display: inline-block !important; }
}

/* --- SUB NAV DEBAJO DEL HEADER --- */
.sub-nav-wrapper {
    max-width: 1400px;
    margin: 0 auto 20px auto;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}
.sub-nav-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: none;
    scroll-behavior: smooth;
    flex: 1;
    padding-bottom: 5px;
}
.sub-nav-scroll::-webkit-scrollbar { display: none; }

.nav-item {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 12px;
    padding: 9px 16px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #495057;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
    transition: all 0.2s ease;
    flex-shrink: 0;
}
.nav-item:hover {
    background-color: #f1f3f5;
    border-color: #ced4da;
    color: #1a1a1a;
}
.nav-item.active {
    background-color: #1a1a1a;
    color: white;
    border-color: #1a1a1a;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    cursor: default;
    pointer-events: auto;
}

.sub-nav-arrow {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 60px;
    background: linear-gradient(to right, rgba(247,248,250,0) 0%, rgba(247,248,250,0.9) 40%, rgba(247,248,250,1) 100%);
    border: none;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 12px;
    cursor: pointer;
    color: #495057;
    z-index: 10;
    transition: opacity 0.2s ease;
}
.sub-nav-arrow:hover { color: #1a1a1a; }

/* --- BREADCRUMBS MODERNOS Y ALINEADOS AL MARGEN --- */
.breadcrumb-container {
    max-width: 1400px;
    margin: 10px auto 22px auto;
    padding: 0 4px;
    display: flex;
    align-items: center;
    box-sizing: border-box;
}

.breadcrumb-nav {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    padding: 7px 16px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.2px;
}

.breadcrumb-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #64748b;
    text-decoration: none;
    transition: color 0.15s ease;
}

.breadcrumb-link:hover {
    color: #0f172a;
}

.breadcrumb-home-icon {
    display: inline-flex;
    align-items: center;
    color: #94a3b8;
}

.breadcrumb-separator {
    display: inline-flex;
    align-items: center;
    color: #cbd5e1;
    font-size: 0.75rem;
    user-select: none;
}

.breadcrumb-current {
    color: #0f172a;
    font-weight: 700;
    text-transform: capitalize;
}

@media (max-width: 768px) {
    .breadcrumb-container {
        margin: 6px auto 16px auto;
        padding: 0;
    }
    .breadcrumb-nav {
        padding: 6px 12px;
        font-size: 0.78rem;
    }
}

/* --- GRID DE PRODUCTOS NORMAL --- */
.grid-productos { 
    display: grid; 
    grid-template-columns: repeat(5, minmax(0, 1fr)); 
    gap: 15px; 
    max-width: 1400px; 
    margin: 0 auto; 
    box-sizing: border-box;
    width: 100%;
}
@media (max-width: 1200px) { 
    .grid-productos { 
        grid-template-columns: repeat(3, minmax(0, 1fr)); 
    } 
}
@media (max-width: 768px) { 
    .grid-productos { 
        grid-template-columns: repeat(2, minmax(0, 1fr)); 
        gap: 10px; 
    } 
}

/* ========================================================
   CATEGORY SHOWCASE (HASBRO PULSE 1:1 CLONE)
   ======================================================== */
.category-showcase {
    position: relative;
    max-width: 1400px;
    margin: 85px auto 45px auto;
    border-radius: 20px;
    padding: 24px 20px 24px 30px;
    box-sizing: border-box;
    display: flex;
    gap: 30px;
    background-color: #171819; 
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
    overflow: visible; 
}

.category-intro {
    width: 360px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: relative;
}

.category-banner-box {
    position: absolute;
    top: -65px;
    left: 0;
    width: 350px;
    height: 240px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    pointer-events: none;
    z-index: 10;
}

.category-banner-box img {
    width: 100%;
    height: 100%;
    object-fit: contain; 
    object-position: left center;
    filter: drop-shadow(4px 12px 18px rgba(0,0,0,0.5));
}

.category-intro-content {
    margin-top: 190px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    z-index: 2;
    width: 100%;
}

.category-intro-title {
    font-family: 'Gilroy-Bold', 'Gilroy', -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
    color: #ffffff;
    font-size: 2.35rem;
    font-weight: 800;
    line-height: 1.15;
    margin: 0 0 20px 0;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 12px rgba(0,0,0,0.45);
    text-align: left;
    width: 100%;
}

.btn-shop-collection {
    display: block;
    width: 100%;
    box-sizing: border-box;
    background: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
    border-radius: 999px;
    padding: 12px 16px;
    font-weight: 800;
    font-size: 0.88rem;
    text-align: center;
    text-decoration: none;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all 0.2s ease;
    margin-top: auto;
}
.btn-shop-collection:hover { 
    background: #ffffff; 
    color: #171819; 
    box-shadow: 0 0 16px rgba(255,255,255,0.3);
}

.slider-container {
    flex: 1;
    min-width: 0;
    position: relative;
    display: flex;
    align-items: center;
}

/* --- DIFUMINACIÓN ULTRA SUTIL Y FINA EN EL SLIDER (CSS MASK) --- */
.slider-container::before,
.slider-container::after {
    display: none !important;
}

.slider-track {
    display: flex;
    align-items: stretch;
    gap: 15px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding: 10px 4px;
    width: 100%;
    /* Máscara suave por defecto */
    -webkit-mask-image: linear-gradient(to right, #000 0%, #000 calc(100% - 24px), transparent 100%);
    mask-image: linear-gradient(to right, #000 0%, #000 calc(100% - 24px), transparent 100%);
    transition: -webkit-mask-image 0.25s ease, mask-image 0.25s ease;
}

.slider-container.can-scroll-left .slider-track {
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 24px, #000 100%);
    mask-image: linear-gradient(to right, transparent 0%, #000 24px, #000 100%);
}

.slider-container.can-scroll-right .slider-track {
    -webkit-mask-image: linear-gradient(to right, #000 0%, #000 calc(100% - 24px), transparent 100%);
    mask-image: linear-gradient(to right, #000 0%, #000 calc(100% - 24px), transparent 100%);
}

.slider-container.can-scroll-left.can-scroll-right .slider-track {
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 24px, #000 calc(100% - 24px), transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, #000 24px, #000 calc(100% - 24px), transparent 100%);
}

.slider-container:not(.can-scroll-left):not(.can-scroll-right) .slider-track {
    -webkit-mask-image: none;
    mask-image: none;
}
.slider-track::-webkit-scrollbar { display: none; }

.slider-track .card {
    min-width: 220px;
    max-width: 220px;
    flex-shrink: 0;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    height: auto !important;
    align-self: stretch !important;
    box-sizing: border-box !important;
}

.slider-track .card > div:first-child {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.slider-track .card .nombre-prod {
    min-height: 2.3em;
}

.slider-track .card .card-footer-box {
    margin-top: auto;
}

.slider-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    z-index: 20;
    color: #1a1a1a;
    transition: transform 0.2s, background 0.2s;
}
.slider-nav-btn:hover { background: #f8f9fa; transform: translateY(-50%) scale(1.08); }
.slider-nav-btn.prev { left: -22px; }
.slider-nav-btn.next { right: -22px; }

.mobile-btn { display: none; }
.desktop-btn { display: block; }

/* RESPONSIVE HASBRO SHOWCASE (MOBILE) */
@media (max-width: 900px) {
    .category-showcase {
        flex-direction: column;
        padding: 0 15px 20px 15px; 
        margin-top: 55px; 
        gap: 12px;
        overflow: hidden;
    }
    .category-intro {
        width: 100%;
        text-align: center;
        align-items: center;
        position: relative;
        justify-content: flex-start;
    }
    .category-banner-box {
        position: absolute;
        top: 0; 
        left: 0;
        right: 0;
        width: 100%;
        height: 270px;
        justify-content: center;
        z-index: 1; 
        opacity: 1;
        pointer-events: none;
    }
    .category-banner-box img {
        width: 100%;
        height: 100%;
        max-width: 420px;
        object-fit: contain;
        object-position: top center;
        -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 50%, rgba(0,0,0,0) 96%);
        mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 50%, rgba(0,0,0,0) 96%);
        filter: drop-shadow(0 10px 15px rgba(0,0,0,0.6));
    }
    .category-intro-content {
        margin-top: 185px;
        margin-bottom: 6px;
        padding: 0 10px;
        align-items: center;
        width: 100%;
        position: relative;
        z-index: 5;
    }
    .category-intro-title {
        font-size: 1.85rem;
        line-height: 1.2;
        text-align: center;
        margin-bottom: 12px;
        text-shadow: 0 2px 14px rgba(0,0,0,0.9);
    }
    .slider-container {
        position: relative;
        z-index: 5;
        margin-top: 5px;
    }
    .slider-nav-btn { display: none; }
    .desktop-btn { display: none; }
    .mobile-btn { 
        display: block; 
        width: 100%; 
        box-sizing: border-box;
        margin-top: 10px;
        position: relative;
        z-index: 5;
    }
    .slider-track .card {
        min-width: 180px;
        max-width: 180px;
    }
}

/* --- PRODUCT CARD --- */
.card { 
    background: white !important; 
    border-radius: 12px; 
    box-shadow: 0 4px 14px rgba(0,0,0,0.06); 
    padding: 10px; 
    display: flex; 
    flex-direction: column; 
    justify-content: space-between;
    position: relative; 
    transition: transform 0.2s, box-shadow 0.2s; 
    border: 1px solid #e5e7eb;
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    height: 100%;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,0.12); }
.card-image-container { 
    position: relative; 
    width: 100%; 
    aspect-ratio: 1 / 1; 
    border-radius: 10px; 
    overflow: hidden; 
    background: #ffffff !important; 
    margin-bottom: 8px; 
}
.card-image-container img.main-product-img { width: 100%; height: 100%; object-fit: contain; transition: opacity 0.3s ease; position: relative; z-index: 1; }

.coleccion-prod { font-size: 0.72rem; color: #6c757d !important; font-weight: 500; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 2px; display: block; text-align: left; }
.nombre-prod { font-size: 0.90rem; font-weight: 600; color: #212529 !important; margin: 0 0 6px 0; line-height: 1.25; min-height: 2.3em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-align: left; }

.card-footer-box {
    margin-top: auto;
    border-top: 1px solid #f1f3f5;
    padding-top: 8px;
}

.precio-prod { 
    font-size: 1.25rem !important; 
    font-weight: 800 !important; 
    color: #111827 !important; 
    margin-bottom: 8px !important; 
    display: block !important; 
    text-align: left !important; 
    letter-spacing: -0.3px !important;
}

.btn-agregar { background-color: #f1f3f5 !important; color: #212529 !important; border: none; padding: 9px; border-radius: 20px; cursor: pointer; font-size: 0.82rem; font-weight: 700; width: 100%; transition: all 0.2s; text-transform: uppercase; letter-spacing: 0.5px; }
.btn-agregar:hover { background-color: #212529 !important; color: white !important; }

.slider-btn { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0, 0, 0, 0.5); color: white; border: none; width: 28px; height: 28px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 0.85rem; transition: background 0.2s; z-index: 2; }
.slider-btn:hover { background: rgba(0, 0, 0, 0.8); }
.slider-btn.prev { left: 6px; }
.slider-btn.next { right: 6px; }
.card-dots { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); display: flex; gap: 4px; z-index: 2; pointer-events: none; }
.dot { width: 5px; height: 5px; border-radius: 50%; background: rgba(0, 0, 0, 0.25); transition: all 0.2s; }
.dot.active { background: #1a1a1a; transform: scale(1.3); }

/* ========================================================
   TOAST NOTIFICACIÓN PREMIUM AL AGREGAR PRODUCTO
   ======================================================== */
.cart-toast {
    position: fixed;
    top: 25px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px) scale(0.96);
    background-color: #171819;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
    border-radius: 999px;
    padding: 8px 12px 8px 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
    max-width: 92vw;
    box-sizing: border-box;
}

.cart-toast.activo {
    transform: translateX(-50%) translateY(0) scale(1);
    opacity: 1;
    pointer-events: auto;
}

.cart-toast-thumb {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: contain;
    background: #ffffff;
    padding: 2px;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cart-toast-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    text-align: left;
}

.cart-toast-status {
    font-size: 0.72rem;
    font-weight: 700;
    color: #22c55e;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 4px;
    line-height: 1;
}

.cart-toast-title {
    font-size: 0.84rem;
    font-weight: 600;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 210px;
    line-height: 1.25;
    margin-top: 2px;
}

.cart-toast-btn {
    background: #ffffff;
    color: #171819;
    border: none;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 800;
    padding: 8px 16px;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.15s ease, background-color 0.15s ease;
    flex-shrink: 0;
}

.cart-toast-btn:hover {
    background: #f1f5f9;
    transform: scale(1.04);
}

.cart-toast-btn:active {
    transform: scale(0.98);
}

/* ANIMACIÓN POTENTE EN EL BOTÓN DEL CARRITO DEL HEADER */
.btn-abrir-carrito.shake-cart {
    animation: cartBounceEffect 0.65s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
    border-color: #16a34a !important;
    background-color: #f0fdf4 !important;
}

.btn-abrir-carrito.shake-cart #contador-carrito-badge {
    background-color: #16a34a !important;
    transform: scale(1.3);
    transition: all 0.2s ease;
}

@keyframes cartBounceEffect {
    0% { transform: scale(1); }
    20% { transform: scale(1.22) rotate(-8deg); }
    40% { transform: scale(1.18) rotate(8deg); }
    60% { transform: scale(1.08) rotate(-4deg); }
    80% { transform: scale(1.04) rotate(2deg); }
    100% { transform: scale(1) rotate(0deg); }
}

@media (max-width: 600px) {
    .cart-toast {
        top: 15px;
        border-radius: 16px;
        padding: 8px 12px;
        gap: 10px;
        width: calc(100% - 30px);
        max-width: 380px;
    }
    .cart-toast-title {
        max-width: 150px;
    }
    .cart-toast-btn {
        padding: 7px 13px;
        font-size: 0.78rem;
    }
}

/* --- DRAWER DEL CARRITO --- */
.carrito-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.5); display: flex; justify-content: flex-end; opacity: 0; visibility: hidden; transition: all 0.3s ease; z-index: 1000; }
.carrito-overlay.abierto { opacity: 1; visibility: visible; }
.carrito-drawer { background: white; width: 100%; max-width: 420px; height: 100%; display: flex; flex-direction: column; box-shadow: -4px 0 20px rgba(0,0,0,0.15); transform: translateX(100%); transition: transform 0.3s ease; color: #1a1a1a; }
.carrito-overlay.abierto .carrito-drawer { transform: translateX(0); }
.carrito-header { padding: 20px 25px; border-bottom: 1px solid #dee2e6; display: flex; justify-content: space-between; align-items: center; }

.btn-cerrar-drawer { background: #f1f3f5; border: none; width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; color: #4b5563; transition: all 0.2s ease; padding: 0; }
.btn-cerrar-drawer:hover { background: #e5e7eb; color: #111827; }
.btn-cerrar-drawer svg { width: 20px; height: 20px; }

.carrito-body { padding: 20px 25px; flex: 1; overflow-y: auto; }
.item-carrito { display: flex; gap: 15px; align-items: center; padding-bottom: 15px; margin-bottom: 15px; border-bottom: 1px solid #f1f3f5; }
.item-carrito img { width: 60px; height: 60px; object-fit: cover; border-radius: 8px; }
.item-info { flex: 1; }
.item-info h4 { margin: 0 0 4px 0; font-size: 0.95rem; font-weight: 600; color: #1a1a1a; }
.item-info .precio-item { color: #0d6efd; font-weight: 700; font-size: 0.95rem; margin-bottom: 6px; display: block; }
.btn-eliminar-item { background: none; border: none; color: #dc3545; cursor: pointer; font-size: 0.85rem; padding: 0; text-decoration: underline; }
.carrito-footer { padding: 20px 25px; border-top: 1px solid #dee2e6; background: #f8f9fa; }
.subtotal-row { display: flex; justify-content: space-between; font-size: 1.25rem; font-weight: 700; margin-bottom: 15px; color: #1a1a1a;}

.shipping-progress-card { background: #f0f7ff; border: 1px solid #d0e3ff; border-radius: 12px; padding: 14px 16px; margin-bottom: 16px; display: flex; flex-direction: column; gap: 10px; }
.shipping-card-header { display: flex; justify-content: space-between; align-items: center; font-size: 0.88rem; font-weight: 700; }
.shipping-card-title { color: #0b57d0; display: flex; align-items: center; gap: 6px; }
.shipping-card-status { color: #0b57d0; }
.shipping-bar-track { width: 100%; height: 7px; background-color: #dbeafe; border-radius: 999px; overflow: hidden; }
.shipping-bar-fill { height: 100%; background-color: #2563eb; width: 0%; border-radius: 999px; transition: width 0.4s ease; }
.shipping-card-desc { font-size: 0.82rem; color: #1e40af; line-height: 1.35; margin: 0; }
.shipping-progress-card.completado { background: #f0fdf4; border-color: #bbf7d0; }
.shipping-progress-card.completado .shipping-card-title, .shipping-progress-card.completado .shipping-card-status { color: #166534; }
.shipping-progress-card.completado .shipping-bar-track { background-color: #dcfce7; }
.shipping-progress-card.completado .shipping-bar-fill { background-color: #16a34a; }
.shipping-progress-card.completado .shipping-card-desc { color: #15803d; }

.btn-whatsapp-drawer { background-color: #16a34a; color: #ffffff !important; border: none; padding: 13px 20px; border-radius: 12px; cursor: pointer; font-size: 0.95rem; font-weight: 700; width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 8px; box-shadow: 0 4px 12px rgba(22, 163, 74, 0.28); transition: all 0.2s ease-in-out; line-height: 1; }
.btn-whatsapp-drawer:hover { background-color: #15803d; }
.btn-whatsapp-drawer svg { width: 17px !important; height: 17px !important; fill: #ffffff !important; flex-shrink: 0; }
.btn-whatsapp-drawer span { color: #ffffff !important; display: inline-block; line-height: 1; }
.vaciar-carrito-link { display: block; text-align: center; margin-top: 12px; color: #6c757d; background: none; border: none; width: 100%; cursor: pointer; text-decoration: underline; }

/* BADGES PREVENTA */
.card-tag { position: absolute; top: 10px; right: 10px; z-index: 5; display: inline-flex; align-items: center; justify-content: center; width: auto; max-width: 50%; min-height: 24px; padding: 4px 9px; border-radius: 999px; font-size: 0.68rem; font-weight: 700; letter-spacing: .25px; box-shadow: 0 2px 8px rgba(0,0,0,.15); backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px); }
.card-tag.preventa { background: rgba(249, 115, 22, 0.9); color: #fff; border: 1px solid rgba(255,255,255,.2); }
@media (max-width: 600px) { .card-tag { top: 7px; right: 7px; min-height: 20px; padding: 2px 7px; font-size: 0.58rem; } }

/* ========================================================
   ENCABEZADO DINÁMICO DE PÁGINA (BAJO LOS CHIPS)
   ======================================================== */
.page-header-container {
    max-width: 1400px;
    margin: 10px auto 18px auto;
    padding: 0 4px;
    box-sizing: border-box;
}

.page-header-title {
    font-size: 1.85rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.5px;
    margin: 0;
    line-height: 1.2;
}

.page-header-count {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #64748b;
    background: #e2e8f0;
    padding: 2px 10px;
    border-radius: 999px;
    margin-left: 10px;
    vertical-align: middle;
}

/* ========================================================
   RESPONSIVE CHIPS EN MOBILE (WRAP / MULTI-FILA)
   ======================================================== */
@media (max-width: 768px) {
    .sub-nav-wrapper {
        overflow: visible;
        margin-bottom: 15px;
    }
    .sub-nav-scroll {
        flex-wrap: wrap;
        gap: 8px;
        padding-bottom: 0;
    }
    .sub-nav-arrow {
        display: none !important;
    }
    .nav-item {
        padding: 7px 13px;
        font-size: 0.82rem;
        flex-grow: 1;
        justify-content: center;
        text-align: center;
    }
    .page-header-container {
        margin: 6px auto 14px auto;
    }
    .page-header-title {
        font-size: 1.5rem;
    }
}


/* ========================================================
   AJUSTE DE ESPACIADO ENTRE CHIPS Y SHOWCASES
   ======================================================== */
.sub-nav-wrapper {
    margin: 0 auto 10px auto;
}

#pageHeaderContainer:empty {
    display: none;
    margin: 0;
}

/* El primer showcase reduce su margen superior para evitar el hueco vacío */
.category-showcase:first-child,
.category-showcase:first-of-type {
    margin-top: 45px;
}

@media (max-width: 900px) {
    .sub-nav-wrapper {
        margin-bottom: 8px;
    }
    .category-showcase {
        margin-top: 25px;
        margin-bottom: 25px;
    }
    .category-showcase:first-child,
    .category-showcase:first-of-type {
        margin-top: 12px;
    }
}

/* ========================================================
   FOOTER DE CONTACTO / COTIZACIÓN PERSONALIZADA (NEGRO AZABACHE)
   ======================================================== */
.site-footer-quote {
    max-width: 1400px;
    margin: 45px auto 10px auto;
    background-color: #171819 !important; /* Negro azabache exacto de las categorías */
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 20px;
    padding: 45px 28px;
    text-align: center;
    color: #ffffff !important;
    box-sizing: border-box;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
}

.site-footer-quote-content {
    max-width: 780px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.site-footer-quote-title {
    font-size: 1.68rem;
    font-weight: 800;
    line-height: 1.25;
    margin: 0;
    color: #ffffff;
    letter-spacing: -0.4px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

.site-footer-quote-subtitle {
    font-size: 1.02rem;
    color: #cbd5e1;
    line-height: 1.55;
    margin: 0;
}

.btn-whatsapp-footer-quote {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: #16a34a;
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 12px 24px;
    border-radius: 999px;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 4px 15px rgba(22, 163, 74, 0.35);
    margin-top: 6px;
}

.btn-whatsapp-footer-quote:hover {
    background-color: #15803d;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(22, 163, 74, 0.45);
}

.btn-whatsapp-footer-quote svg {
    width: 20px;
    height: 20px;
    fill: #ffffff;
    flex-shrink: 0;
}

.site-footer-copy {
    margin-top: 25px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.78rem;
    color: #64748b;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

@media (max-width: 768px) {
    .site-footer-quote {
        margin: 30px auto 10px auto;
        padding: 28px 18px;
        border-radius: 14px;
    }
    .site-footer-quote-title {
        font-size: 1.15rem;
    }
    .site-footer-quote-subtitle {
        font-size: 0.88rem;
    }
    .btn-whatsapp-footer-quote {
        width: 100%;
        box-sizing: border-box;
        padding: 12px 18px;
        font-size: 0.9rem;
    }
    .site-footer-copy {
        justify-content: center;
        text-align: center;
    }
}


/* ========================================================
   PATRÓN MOSAICO DE FONDO PARA CATEGORÍAS (20% OPACIDAD)
   ======================================================== */
.category-showcase-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    background-repeat: repeat;
    background-position: center;
    background-size: 160px;
    opacity: 0.50 !important; /* Opacidad bajada al 10% */
    mix-blend-mode: multiply; /* Modo de fusión Multiply sobre el color de fondo */
    pointer-events: none;
    z-index: 0;
}

/* Asegurar que el contenido del showcase esté por encima del mosaico */
.category-intro {
    z-index: 2;
}
.slider-container {
    z-index: 2;
}

/* ========================================================
   FUNKO EXCLUSIVOS: RIBBON VERTICAL Y BADGE AZUL
   ======================================================== */
.card-ribbon-vertical {
    position: absolute;
    top: 0;
    left: 8px;
    z-index: 6;
    padding: 10px 7px 16px 7px;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-size: 1.08rem; /* Aumentado ~70% respecto al 0.64rem anterior */
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    /* Parte cuadrada arriba y picos abajo en V invertida proporcionados */
    clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 50% calc(100% - 9px), 0% 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    pointer-events: none;
}

.card-ribbon-vertical.exclusivo {
    background-color: #0070d2;
}

.card-ribbon-vertical.oferta {
    background-color: #e11d48;
}

.funko-badge-azul {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #0070d2;
    margin-bottom: 3px;
    line-height: 1.2;
    text-align: left;
}

.funko-badge-azul .funko-info-icon {
    color: #0070d2;
    flex-shrink: 0;
    display: inline-block;
}


/* ========================================================
   TCG (CARTAS): BADGE DE IDIOMA AL LADO DEL PRECIO
   ======================================================== */
.badge-idioma-tcg {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.70rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 999px;
    white-space: nowrap;
    letter-spacing: 0.2px;
    line-height: 1.2;
    border: 1px solid transparent;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

/* Inglés: Azul clarito / pastel */
.badge-idioma-tcg.tcg-idioma-ingles {
    background-color: #e0f2fe;
    color: #0369a1;
    border-color: #bae6fd;
}

/* Chino: Rojo clarito / pastel */
.badge-idioma-tcg.tcg-idioma-chino {
    background-color: #fee2e2;
    color: #b91c1c;
    border-color: #fecaca;
}

/* Japonés: Blanco/grisáceo suave */
.badge-idioma-tcg.tcg-idioma-japones {
    background-color: #f8fafc;
    color: #334155;
    border-color: #e2e8f0;
}


/* ========================================================
   MODAL DE DETALLE EXCLUSIVO TCG
   ======================================================== */
.tcg-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.tcg-modal-overlay.activo {
    opacity: 1;
    visibility: visible;
}

.tcg-modal-card {
    background: #ffffff;
    width: 100%;
    max-width: 820px;
    border-radius: 24px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.28);
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    box-sizing: border-box;
    transform: scale(0.96) translateY(10px);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.tcg-modal-overlay.activo .tcg-modal-card {
    transform: scale(1) translateY(0);
}

.tcg-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f1f5f9;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #475569;
    cursor: pointer;
    z-index: 20;
    transition: background 0.15s, color 0.15s;
}

.tcg-modal-close:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.tcg-modal-body {
    display: flex;
    gap: 32px;
    padding: 32px;
    box-sizing: border-box;
}

/* Columna Galería */
.tcg-modal-gallery-col {
    width: 45%;
    flex-shrink: 0;
}

.tcg-modal-img-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.tcg-modal-main-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 12px;
    box-sizing: border-box;
}

.tcg-modal-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid #e2e8f0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    color: #1e293b;
    font-size: 0.9rem;
}
.tcg-modal-arrow.prev { left: 8px; }
.tcg-modal-arrow.next { right: 8px; }

.tcg-modal-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
}
.tcg-modal-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #cbd5e1;
    cursor: pointer;
}
.tcg-modal-dot.activo {
    background: #2563eb;
    width: 14px;
    border-radius: 999px;
}

/* Columna Información */
.tcg-modal-info-col {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.tcg-modal-header-tags {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.tcg-modal-pill-tag {
    background: #eff6ff;
    color: #2563eb;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border-radius: 999px;
}

.tcg-modal-title {
    font-size: 1.55rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.25;
    margin: 0 0 14px 0;
}

.tcg-modal-specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 16px;
}

.tcg-spec-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.tcg-spec-label {
    font-size: 0.72rem;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
}

.tcg-spec-value {
    font-size: 0.92rem;
    color: #0f172a;
    font-weight: 700;
}

.tcg-modal-desc {
    font-size: 0.90rem;
    color: #475569;
    line-height: 1.55;
    margin-bottom: 16px;
}

.tcg-modal-adicionales-box {
    background: #f8fafc;
    border-left: 3px solid #2563eb;
    padding: 10px 14px;
    border-radius: 4px 10px 10px 4px;
    margin-bottom: 18px;
}

.tcg-adicionales-title {
    font-size: 0.8rem;
    font-weight: 800;
    color: #1e293b;
    margin: 0 0 6px 0;
    text-transform: uppercase;
}

.tcg-adicionales-list {
    margin: 0;
    padding-left: 18px;
    font-size: 0.85rem;
    color: #334155;
    line-height: 1.5;
}

.tcg-modal-footer-action {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.tcg-modal-price-box {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.tcg-modal-price-val {
    font-size: 1.75rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.5px;
}

.btn-tcg-modal-add {
    background: #2563eb;
    color: #ffffff;
    border: none;
    border-radius: 12px;
    padding: 12px 24px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s, transform 0.1s;
}

.btn-tcg-modal-add:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}

/* Indicador sutil sobre la card en el catálogo */
.tcg-clickable-img {
    cursor: pointer;
}

.tcg-clickable-title {
    cursor: pointer;
    transition: color 0.15s;
}

.tcg-clickable-title:hover {
    color: #2563eb !important;
}

.tcg-ver-detalle-overlay {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    pointer-events: auto;
}

.tcg-ver-detalle-btn {
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    transition: background 0.2s, transform 0.15s;
    display: inline-block;
}

.tcg-card-img-wrap:hover .tcg-ver-detalle-btn {
    background: #2563eb;
    transform: scale(1.04);
}

/* Modal en Móviles (Bottom-Sheet o centrado con scroll) */
@media (max-width: 768px) {
    .tcg-modal-overlay {
        padding: 10px;
        align-items: flex-end;
    }
    .tcg-modal-card {
        border-radius: 20px 20px 14px 14px;
        max-height: 92vh;
    }
    .tcg-modal-body {
        flex-direction: column;
        padding: 20px 16px;
        gap: 18px;
    }
    .tcg-modal-gallery-col {
        width: 100%;
    }
    .tcg-modal-img-wrapper {
        aspect-ratio: 4 / 3;
    }
    .tcg-modal-title {
        font-size: 1.3rem;
    }
    .tcg-modal-footer-action {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    .btn-tcg-modal-add {
        justify-content: center;
        width: 100%;
    }
}


/* ========================================================
   CHIPS / TAGS DE FILTRO RÁPIDO (SUB-CATEGORÍAS / TCG)
   ======================================================== */
.page-header-container button,
.page-header-tags button,
.tcg-subcategories-bar button,
.subcategoria-btn,
.tipo-producto-btn,
.filter-chip-btn {
    appearance: none;
    -webkit-appearance: none;
    background: #ffffff;
    color: #475569;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    padding: 7px 16px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
    outline: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
    margin: 3px 2px;
}

.page-header-container button:hover,
.page-header-tags button:hover,
.tcg-subcategories-bar button:hover,
.subcategoria-btn:hover,
.tipo-producto-btn:hover,
.filter-chip-btn:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #0f172a;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.06);
}

.page-header-container button.active,
.page-header-container button.activo,
.page-header-tags button.active,
.tcg-subcategories-bar button.active,
.subcategoria-btn.active,
.tipo-producto-btn.active,
.filter-chip-btn.active {
    background: #0f172a !important;
    border-color: #0f172a !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2) !important;
}

/* Envoltorio con flex, espacio y scroll horizontal en móviles si son muchos */
.tcg-subcategories-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 14px;
    padding-bottom: 6px;
}

@media (max-width: 768px) {
    .tcg-subcategories-bar {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 8px;
        margin-left: -4px;
        margin-right: -4px;
        padding-left: 4px;
        padding-right: 4px;
    }
    .tcg-subcategories-bar::-webkit-scrollbar {
        display: none;
    }
}


/* ========================================================
   TCG VARIANTES & SELECTORES INTERACTIVOS EN MODAL Y CARD
   ======================================================== */
.tcg-card-subtitulo {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    margin-top: 2px;
    margin-bottom: 6px;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-tcg-elegir {
    background-color: #0f172a !important;
    color: #ffffff !important;
    border: none !important;
}
.btn-tcg-elegir:hover {
    background-color: #2563eb !important;
    color: #ffffff !important;
}

/* En el Modal TCG */
.tcg-modal-variants-wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
    padding: 12px 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
}

.tcg-modal-variant-section {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tcg-variant-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tcg-variant-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tcg-variant-pill {
    appearance: none;
    -webkit-appearance: none;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #334155;
    font-size: 0.80rem;
    font-weight: 600;
    padding: 6px 13px;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.18s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    line-height: 1.2;
    box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}

.tcg-variant-pill:hover {
    border-color: #94a3b8;
    background: #f1f5f9;
    color: #0f172a;
    transform: translateY(-1px);
}

.tcg-variant-pill.activo {
    background: #0f172a !important;
    border-color: #0f172a !important;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.22) !important;
}

.tcg-modal-title {
    transition: opacity 0.15s ease, transform 0.15s ease;
}


/* Reglas estrictas para simetría 50/50 en cuadrícula de productos */
.grid-productos > .card {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
}

.grid-productos .card-image-container {
    width: 100% !important;
    aspect-ratio: 1 / 1 !important;
    position: relative !important;
}

.grid-productos .card-image-container img.main-product-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    display: block !important;
}

/* Ocultar sección de subcategorías */
.tcg-subcategories-bar {
    display: none !important;
}



/* ========================================================
   PÁGINA DEDICADA DE PRODUCTO (PDP) ESTILO LISTING
   ======================================================== */
.tcg-pdp-container {
    max-width: 1200px;
    margin: 10px auto 40px auto;
    padding: 0 10px;
    box-sizing: border-box;
}

.tcg-pdp-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.btn-pdp-volver {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #334155;
    font-size: 0.88rem;
    font-weight: 700;
    padding: 9px 18px;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.btn-pdp-volver:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #0f172a;
    transform: translateX(-2px);
}

.tcg-pdp-card {
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
    padding: 36px 32px;
    display: flex;
    gap: 40px;
    box-sizing: border-box;
}

/* Columna Galería Izquierda */
.tcg-pdp-gallery-col {
    width: 48%;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.tcg-pdp-main-img-box {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    padding: 16px;
    box-sizing: border-box;
}

.tcg-pdp-main-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity 0.2s ease;
}







/* Columna Info Derecha */
.tcg-pdp-info-col {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.tcg-pdp-coleccion-tag {
    font-size: 0.78rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 6px;
    display: block;
}


.tcg-pdp-variant-name-display {
    font-size: 0.90rem;
    color: #475569;
    font-weight: 600;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #e2e8f0;
    line-height: 1.4;
}

.tcg-pdp-title {
    font-size: 2.1rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
    margin: 0 0 10px 0;
    letter-spacing: -0.4px;
}





/* Selectores en la PDP */
.tcg-pdp-selectors-box {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 22px;
    padding: 16px 18px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
}

.tcg-pdp-selector-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tcg-pdp-selector-title {
    font-size: 0.76rem;
    font-weight: 800;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.tcg-pdp-pills-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tcg-pdp-pill {
    appearance: none;
    -webkit-appearance: none;
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    color: #1e293b;
    font-size: 0.86rem;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.18s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    line-height: 1.2;
    box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}

.tcg-pdp-pill:hover {
    border-color: #94a3b8;
    background: #f1f5f9;
    transform: translateY(-1px);
}

.tcg-pdp-pill.activo {
    background: #111827 !important;
    border-color: #111827 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(17, 24, 39, 0.25) !important;
}

/* Specs técnicas */
.tcg-pdp-specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 22px;
}

.tcg-pdp-spec-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.tcg-pdp-spec-label {
    font-size: 0.74rem;
    color: #64748b;
    font-weight: 700;
    text-transform: uppercase;
}

.tcg-pdp-spec-val {
    font-size: 1.05rem;
    color: #0f172a;
    font-weight: 800;
}

/* Descripción y adicionales */
.tcg-pdp-desc-text {
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 20px;
}

.tcg-pdp-adicionales-box {
    background: #f8fafc;
    border-left: 3px solid #111827;
    padding: 14px 18px;
    border-radius: 4px 12px 12px 4px;
    margin-bottom: 24px;
}

.tcg-pdp-adicionales-title {
    font-size: 0.82rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 8px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tcg-pdp-adicionales-list {
    margin: 0;
    padding-left: 20px;
    font-size: 0.90rem;
    color: #334155;
    line-height: 1.55;
}

/* BARRA DE COMPRA EN UNA SOLA LÍNEA (HORIZONTAL) */
.tcg-pdp-buy-bar {
    margin-top: auto;
    padding-top: 22px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
    box-sizing: border-box;
}

.tcg-pdp-price-wrap {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.tcg-pdp-price {
    font-size: 2.1rem;
    font-weight: 800;
    color: #111827;
    letter-spacing: -0.5px;
    line-height: 1;
}

/* BOTÓN AÑADIR AL CARRITO: NEGRO/GRIS OSCURO, UNA SOLA LÍNEA, SIN AZUL */
.btn-pdp-add-cart {
    background-color: #111827 !important; /* Negro/gris oscuro elegante de la página */
    color: #ffffff !important;
    border: none !important;
    border-radius: 999px !important;
    padding: 14px 28px !important;
    font-size: 0.95rem !important;
    font-weight: 800 !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    white-space: nowrap !important; /* Estricta línea única */
    flex-shrink: 0 !important;
    transition: all 0.2s ease-in-out !important;
    box-shadow: 0 4px 14px rgba(17, 24, 39, 0.25) !important;
    line-height: 1 !important;
}

.btn-pdp-add-cart:hover {
    background-color: #1f2937 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(17, 24, 39, 0.35) !important;
}

.btn-pdp-add-cart:active {
    transform: scale(0.98) !important;
}

.btn-pdp-add-cart svg {
    width: 20px !important;
    height: 20px !important;
    stroke: #ffffff !important;
    flex-shrink: 0 !important;
}

/* RESPONSIVE PDP EN MOBILE */
@media (max-width: 860px) {
    .tcg-pdp-card {
        flex-direction: column;
        padding: 20px 16px;
        gap: 24px;
        border-radius: 16px;
    }
    .tcg-pdp-gallery-col {
        width: 100%;
    }
    
.tcg-pdp-variant-name-display {
    font-size: 0.90rem;
    color: #475569;
    font-weight: 600;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #e2e8f0;
    line-height: 1.4;
}

.tcg-pdp-title {
        font-size: 1.65rem;
    }
    .tcg-pdp-price {
        font-size: 1.8rem;
    }
    .tcg-pdp-buy-bar {
        display: flex;
        flex-direction: row; /* UNA SOLA LÍNEA HORIZONTAL TAMBIÉN EN MOBILE */
        align-items: center;
        justify-content: space-between;
        gap: 12px;
    }
    .btn-pdp-add-cart {
        padding: 12px 20px !important;
        font-size: 0.88rem !important;
    }
}



/* ========================================================
   SELECTOR DE VARIANTES ESTILO AMAZON (MINIATURA + PRECIO)
   ======================================================== */
.amazon-variants-container {
    margin-bottom: 22px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.amazon-variants-header {
    display: flex;
    align-items: baseline;
    gap: 8px;
    font-size: 0.95rem;
    line-height: 1.4;
}

.amazon-variants-label {
    color: #475569;
    font-weight: 600;
}

.amazon-variants-val {
    color: #0f172a;
    font-weight: 700;
}

.amazon-variants-subrow {
    display: flex;
    align-items: baseline;
    gap: 8px;
    font-size: 0.90rem;
    line-height: 1.3;
    margin-top: -4px;
}

.amazon-variants-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.amazon-variant-card {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 0;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 76px;
    overflow: hidden;
    transition: all 0.15s ease-in-out;
    box-sizing: border-box;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.amazon-variant-card:hover {
    border-color: #64748b;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

.amazon-variant-card.activo {
    border: 2px solid #111827 !important;
    box-shadow: 0 0 0 1px #111827, 0 4px 12px rgba(17, 24, 39, 0.15) !important;
}

.amazon-variant-img-box {
    width: 100%;
    height: 62px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    box-sizing: border-box;
    background: #ffffff;
}

.amazon-variant-img-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.amazon-variant-price-box {
    width: 100%;
    padding: 5px 4px;
    border-top: 1px solid #e2e8f0;
    text-align: center;
    font-size: 0.82rem;
    font-weight: 700;
    color: #0f172a;
    background: #f8fafc;
    box-sizing: border-box;
    white-space: nowrap;
}

.amazon-variant-card.activo .amazon-variant-price-box {
    background: #f1f5f9;
    color: #111827;
}



/* ========================================================
   SLIDER DE FOTOS EN LA PÁGINA DEDICADA DE PRODUCTO (PDP)
   ======================================================== */
.tcg-pdp-main-img-box {
    position: relative !important;
}

.pdp-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    color: #111827;
    border: 1px solid #e2e8f0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    transition: all 0.2s ease;
    z-index: 5;
    outline: none;
}

.pdp-slider-btn:hover {
    background: #111827;
    color: #ffffff;
    border-color: #111827;
    transform: translateY(-50%) scale(1.08);
}

.pdp-slider-btn:active {
    transform: translateY(-50%) scale(0.96);
}

.pdp-slider-btn.prev {
    left: 12px;
}

.pdp-slider-btn.next {
    right: 12px;
}

.pdp-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 5;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(4px);
    padding: 4px 8px;
    border-radius: 999px;
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.pdp-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #94a3b8;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pdp-dot:hover {
    background: #475569;
}

.pdp-dot.activo {
    background: #111827;
    width: 14px;
    border-radius: 999px;
}
