/*
Theme Name: TCG Premium
Theme URI: https://wincondition.cl
Author: Win Condition
Author URI: https://wincondition.cl
Description: Tema Custom Premium Dark Glassmorphism para TCG.
Version: 1.0
Text Domain: tcg-premium
*/
/* ========================================= */
/* TEMA TCG PREMIUM - CÓDIGO MAESTRO COMPLETO */
/* ========================================= */
/* 1. OCULTAR LA BASURA DE WORDPRESS */
.widget_search, .widget_pages, .widget_archive, .widget_categories, .widget_meta, .widget_recent_entries, .widget_recent_comments {
    display: none !important;
}
/* 2. ESPACIO DE TRABAJO A PANTALLA COMPLETA Y CORRECCIÓN DE TÍTULO */
body.woocommerce-page.archive #page {
    width: 100% !important; 
    max-width: none !important;
    margin: 0 auto !important;
    display: block !important;
    padding: 0 2% !important;
    box-sizing: border-box !important;
}
/* 3. LAYOUT FLEXBOX: SIDEBAR + PRODUCTOS */
@media (min-width: 768px) {
    body.woocommerce-page.archive #page {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 25px !important;
    }
    /* Header y footer a ancho completo */
    body.woocommerce-page.archive #masthead {
        width: 100% !important;
        flex: 0 0 100% !important;
        order: 0 !important;
    }
    body.woocommerce-page.archive #colophon {
        width: 100% !important;
        flex: 0 0 100% !important;
        order: 3 !important;
    }
    /* Sidebar de filtros a la izquierda */
    body.woocommerce-page.archive #secondary,
    body.woocommerce-page.archive #sidebar,
    body.woocommerce-page.archive aside.widget-area {
        flex: 0 0 200px !important;
        width: 200px !important;
        max-width: 200px !important;
        box-sizing: border-box !important;
        background: #faf5ff !important;
        padding: 20px !important;
        border-radius: 12px !important;
        backdrop-filter: blur(10px) !important;
        border: 1px solid #a855f7 !important;
        box-shadow: 0 8px 32px rgba(168, 85, 247, 0.15) !important;
        margin-top: 140px !important;
        display: block !important;
        order: 1 !important;
        align-self: flex-start !important;
    }
    /* Zona de cartas al lado derecho */
    body.woocommerce-page.archive #primary {
        flex: 1 1 0% !important;
        width: auto !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        display: block !important;
        padding-top: 120px !important;
        padding-left: 0 !important;
        order: 2 !important;
    }
}
/* 5. CERRAR FLOTADORES PARA EL FOOTER */
#colophon, .site-footer { clear: both !important; width: 100% !important; display: block !important; }
/* 6. LA CUADRÍCULA DE 5 CARTAS PERFECTA */
body.woocommerce-page.archive ul.products {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 25px !important;
    width: 100% !important;
    justify-content: flex-start !important;
}
body.woocommerce-page.archive ul.products li.product { width: 100% !important; max-width: 100% !important; margin: 0 !important; padding: 12px !important; box-sizing: border-box !important; background: #ffffff !important; border: 1px solid rgba(168, 85, 247, 0.3) !important; border-radius: 12px !important; box-shadow: 0 2px 8px rgba(0,0,0,0.06) !important; transition: transform 0.3s ease, box-shadow 0.3s ease !important; }
body.woocommerce-page.archive ul.products li.product:hover { transform: translateY(-8px) !important; box-shadow: 0 16px 32px rgba(0,0,0,0.12) !important; }
body.woocommerce-page.archive ul.products li.product img { width: 100% !important; height: auto !important; max-width: 100% !important; }
/* ========================================= */
/* DISEÑO DEL RESTO DE LA TIENDA (NO TOCAR) */
/* ========================================= */
/* Reducir el tamaño de la cabecera */
.header-container { padding: 0.5rem 2rem; display: flex; align-items: center; }
.site-branding img { max-height: 50px; width: auto; }
.header-search { flex: 1; max-width: 400px; margin: 0 30px; }
.main-navigation { display: flex; align-items: center; margin-right: 50px; }
.main-navigation ul { display: flex; align-items: center; gap: 25px; list-style: none; margin: 0; padding: 0; }
.main-navigation ul li a { text-decoration: none; color: #000000; font-weight: 600; font-size: 0.95rem; transition: color 0.3s ease; padding: 5px 0; }
.main-navigation ul li a:hover { color: #a855f7; }
.menu-toggle { display: none; }
.header-cart { display: flex; align-items: center; margin-left: auto; margin-right: 15px; }
.header-cart a { display: flex; align-items: center; color: #000000; transition: color 0.3s ease; }
.header-cart a:hover { color: #a855f7; }
.header-cart svg { width: 22px; height: 22px; }
.header-cart { position: relative; }
.cart-count {
    position: absolute; top: -6px; right: -8px; background: #a855f7; color: #fff;
    font-size: 0.65rem; font-weight: 700; min-width: 18px; height: 18px;
    border-radius: 10px; display: flex; align-items: center; justify-content: center;
    padding: 0 4px; line-height: 1;
}
.cart-count:empty, .cart-count[data-count="0"] { display: none; }
.header-account { margin-left: 20px; display: flex; align-items: center; }
.header-account a { color: #000000; display: flex; align-items: center; transition: color 0.3s ease; }
.header-account a:hover { color: #a855f7; }
.header-account svg { width: 22px; height: 22px; }

/* ---- CARRITO DRAWER (VENTANA LATERAL) ---- */
#cart-drawer-overlay {
    display: none; position: fixed; inset: 0; background: transparent;
    z-index: 99998;
}
#cart-drawer-overlay.open { display: block; }
#cart-drawer {
    position: fixed; top: 0; right: -380px; width: 360px; height: 100vh;
    background: #fff; box-shadow: -10px 0 40px rgba(0,0,0,0.15);
    z-index: 99999; transition: right 0.35s ease;
    display: flex; flex-direction: column;
}
#cart-drawer.open { right: 0; }
.cart-drawer-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 20px; border-bottom: 1px solid #eee;
    font-size: 1.1rem; font-weight: 700;
}
#cart-drawer-close {
    background: none; border: none; font-size: 1.8rem; cursor: pointer;
    color: #999; line-height: 1; padding: 0 5px;
}
#cart-drawer-close:hover { color: #000; }
#cart-drawer .widget_shopping_cart {
    flex: 1; overflow-y: auto; padding: 20px;
    background: transparent;
}
#cart-drawer .widget_shopping_cart_content { background: transparent; }
#cart-drawer .woocommerce-mini-cart { list-style: none; margin: 0; padding: 0; }
#cart-drawer .woocommerce-mini-cart li { position: relative; padding: 25px 16px 25px 130px; min-height: 150px; border: 1px solid #e5e5e5; border-radius: 10px; margin-bottom: 14px; background: #fff; font-size: 1rem; }
#cart-drawer .woocommerce-mini-cart li img { position: absolute; top: 25px; left: 16px; width: 95px; height: 95px; object-fit: cover; border-radius: 8px; }
#cart-drawer .woocommerce-mini-cart li a:not(.remove) { color: #333; text-decoration: none; font-weight: 600; display: block; padding-right: 0; }
#cart-drawer .woocommerce-mini-cart li a:not(.remove):hover { color: #a855f7; }
#cart-drawer .woocommerce-mini-cart li .remove { display: none; }

/* Price: absolute arriba a la derecha, misma fila que el nombre */
#cart-drawer .woocommerce-mini-cart li .tcg-qty-price { position: absolute; top: 25px; right: 16px; font-size: 0.9rem; color: #000; font-weight: 700; white-space: nowrap; background: #fff; padding-left: 8px; }

/* Trash: al final de la fila del qty */
#cart-drawer .tcg-qty-wrap { display: flex; align-items: center; gap: 6px; margin-top: 12px; justify-content: flex-start; }
#cart-drawer .tcg-qty-btn { width: 32px; height: 32px; border: 1px solid #ddd; border-radius: 6px; background: #f8f8f8; font-size: 1.05rem; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center; line-height: 1; color: #333; }
#cart-drawer .tcg-qty-btn:hover { background: #a855f7; color: #fff; border-color: #a855f7; }
#cart-drawer .tcg-qty-input { width: 40px; height: 32px; text-align: center; border: 1px solid #ddd; border-radius: 6px; font-size: 0.95rem; font-weight: 600; -moz-appearance: textfield; }
#cart-drawer .tcg-qty-input::-webkit-outer-spin-button,
#cart-drawer .tcg-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
#cart-drawer .tcg-trash-btn { width: 32px; height: 32px; border: 1px solid #e74c3c; border-radius: 6px; background: #fff; font-size: 1rem; cursor: pointer; display: flex; align-items: center; justify-content: center; color: #e74c3c; margin-left: auto; transition: background 0.2s; }
#cart-drawer .tcg-trash-btn:hover { background: #e74c3c; color: #fff; }

/* Variaciones del producto */
#cart-drawer .woocommerce-mini-cart li .variation { margin: 2px 0 0; font-size: 0.8rem; color: #666; }
#cart-drawer .woocommerce-mini-cart li .variation dt { display: inline; font-weight: 600; }
#cart-drawer .woocommerce-mini-cart li .variation dd { display: inline; margin: 0 8px 0 2px; }
#cart-drawer .woocommerce-mini-cart__total {
    border: 2px solid #a855f7; border-radius: 10px; padding: 12px 16px;
    margin: 15px 0; font-size: 1rem; font-weight: 700;
    display: flex; justify-content: space-between; align-items: center;
}
#cart-drawer .woocommerce-mini-cart__buttons {
    display: flex; gap: 10px; margin-top: 5px;
}
#cart-drawer .woocommerce-mini-cart__buttons .button {
    flex: 1; text-align: center; padding: 12px; border-radius: 8px;
    font-weight: 700; font-size: 0.85rem; text-decoration: none;
    display: inline-block; transition: background 0.2s, transform 0.1s;
}
#cart-drawer .woocommerce-mini-cart__buttons .button:active {
    transform: scale(0.97);
}
#cart-drawer .woocommerce-mini-cart__buttons .button.wc-forward {
    background: #e9e9e9; color: #333; border: 1px solid #ddd;
}
#cart-drawer .woocommerce-mini-cart__buttons .button.wc-forward:hover {
    background: #ddd;
}
#cart-drawer .woocommerce-mini-cart__buttons .button.checkout {
    background: #a855f7; color: #fff;
}
#cart-drawer .woocommerce-mini-cart__buttons .button.checkout:hover {
    background: #9333ea;
}

/* ---- TOAST NOTIFICACIÓN ---- */
#cart-toast {
    position: fixed; bottom: 30px; right: 30px; background: #000; color: #fff;
    padding: 14px 24px; border-radius: 10px; font-size: 0.9rem; font-weight: 600;
    box-shadow: 0 8px 30px rgba(0,0,0,0.3); z-index: 99999;
    opacity: 0; transform: translateY(20px); transition: opacity 0.4s ease, transform 0.4s ease; pointer-events: none;
}
#cart-toast.show { opacity: 1; transform: translateY(0); }
#tcg-confetti { position: fixed; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 999999; overflow: hidden; }
.tcg-confetti-piece { position: absolute; top: -10px; border-radius: 2px; opacity: 0; animation: tcg-confetti-fall linear forwards; }
@keyframes tcg-confetti-fall { 0% { opacity: 1; transform: translateY(0) rotate(0deg); } 100% { opacity: 0; transform: translateY(100vh) rotate(720deg); } }
.carousel-wrapper { position: relative; display: flex; align-items: center; }
/* (carrusel ul.products unificado más abajo en "DISEÑO DE CARTA INDIVIDUAL") */
.carousel-btn {
    background: rgba(168, 85, 247, 0.9); color: white; border: none; border-radius: 50%;
    width: 45px; height: 45px; font-size: 1.2rem; cursor: pointer; display: flex;
    align-items: center; justify-content: center; z-index: 10; transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.6); position: absolute;
}
.carousel-btn:hover { background: #a78bfa; transform: scale(1.1); }
.carousel-btn.prev-btn { left: -20px; }
.carousel-btn.next-btn { right: -20px; }
@media (max-width: 768px) {
    .carousel-btn { display: none; }
    .featured-products .carousel-flex { overflow: visible !important; }
    .featured-products .carousel-wrapper { padding: 0 !important; }
    .featured-products .carousel-wrapper ul.products { padding: 1rem 0 1.5rem 0; }
    .featured-products { padding: 30px 0 !important; }
    .featured-products .section-header { padding: 0 15px; }
    .featured-products .section-header h2 { font-size: 1.3rem !important; }
    .featured-products .carousel-wrapper ul.products li.product img { max-height: 180px !important; }
    .featured-products .carousel-wrapper ul.products li.product .woocommerce-loop-product__title { font-size: 0.85rem !important; }
    .featured-products .carousel-wrapper ul.products li.product .price { font-size: 0.9rem !important; }
}
/* scroll-btn: ver estilos en header.php inline CSS */
/* ---- CARRUSEL HERO PRINCIPAL ---- */
.hero-slider-section {
    width: 100%; height: 60vh; min-height: 400px; position: relative;
    overflow: hidden; margin-bottom: 3rem; border-radius: 0 0 20px 20px;
}
.hero-carousel { position: relative; width: 100%; height: 100%; }
.hero-slide {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0;
    transition: opacity 0.8s ease-in-out; background-size: cover; background-position: center;
    display: flex; align-items: center; justify-content: center;
}
.hero-slide::before { content: none; }
.hero-slide.active { opacity: 1; z-index: 2; }

/* El contenedor de texto resetea la animación en cada slide */
.slide-content {
    position: relative; z-index: 3; text-align: center;
    max-width: 800px; padding: 0 2rem;
    color: #f8fafc;
    margin-top: 160px;
}
.slide-content .btn {
    font-size: 1.3rem;
    padding: 14px 40px;
    background: transparent !important;
    color: #fff !important;
    border: 2px solid #a855f7 !important;
    border-radius: 50px !important;
    transition: all 0.3s ease !important;
}
.slide-content .btn:hover {
    background: #a855f7 !important;
    color: #fff !important;
    transform: scale(1.05) !important;
    box-shadow: 0 8px 25px rgba(168, 85, 247, 0.4) !important;
}

/* Estado inicial: texto oculto en todas las slides */
.slide-content h2,
.slide-content p,
.slide-content .btn {
    opacity: 0;
    transform: translateY(30px);
    transition: none;
}
.hero-slide:not(.active) .slide-content > * {
    opacity: 0 !important;
    transform: translateY(30px) !important;
    animation: none !important;
}
.hero-slide.active .slide-content > .btn {
    animation: heroTextIn 0.7s ease forwards 0.3s;
}

@keyframes heroTextIn {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}


@media (max-width: 768px) {
    .hero-slider-section { height: 55vh; min-height: 380px; }
    .slide-content { margin-top: 60px !important; }
    .slide-content .btn { font-size: 1.1rem !important; padding: 12px 32px !important; }
    .hero-slide { background-size: contain !important; background-repeat: no-repeat !important; background-color: #f8fafc !important; }
}
/* ---- BOTÓN AÑADIR AL CARRITO (NEÓN FLOTANTE) ---- */
.woocommerce ul.products li.product { position: relative !important; }
.woocommerce ul.products li.product .button.add_to_cart_button {
    position: absolute !important; bottom: 6px !important; right: 6px !important;
    width: 30px !important; height: 30px !important; border-radius: 100% !important;
    background-color: #000000 !important; color: #ffffff !important;
    display: flex !important; align-items: center !important; justify-content: center !important;
    padding: 0 !important; margin: 0 !important; z-index: 20 !important; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.5) !important; transition: transform 0.2s ease, background-color 0.2s ease !important; font-size: 0 !important;
}
.woocommerce ul.products li.product .button.add_to_cart_button:hover { transform: scale(1.15) !important; background-color: #333333 !important; }
.woocommerce ul.products li.product .button.add_to_cart_button::after {
    content: "";
    display: block !important;
    width: 16px !important;
    height: 16px !important;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 2L3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4z'/%3E%3Cline x1='3' y1='6' x2='21' y2='6'/%3E%3Cpath d='M16 10a4 4 0 0 1-8 0'/%3E%3C/svg%3E") no-repeat center !important;
    background-size: contain !important;
}
.woocommerce ul.products li.product .added_to_cart {
    position: absolute !important; top: 65px !important; right: 15px !important;
    font-size: 11px !important; background: #a855f7 !important;
    color: white !important; padding: 4px 8px !important; border-radius: 8px !important;
    z-index: 20 !important; text-decoration: none !important;
}
/* ---- DISEÑO DE CARTA INDIVIDUAL (PANTALLA DE PRODUCTO) ---- */
body { overflow-x: hidden !important; }
html { overflow-x: hidden; }
.carousel-wrapper { position: relative !important; max-width: 100% !important; }
.carousel-wrapper .woocommerce { max-width: 100% !important; }
.carousel-wrapper ul.products {
    display: flex !important; overflow-x: auto !important; flex-wrap: nowrap !important;
    gap: 24px !important; padding: 1rem 0 2rem 0; margin: 0 !important;
    max-width: 100% !important; scroll-behavior: smooth !important; -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory !important;
}
.carousel-wrapper ul.products::-webkit-scrollbar { display: none !important; }
.carousel-wrapper ul.products li.product {
    flex: 0 0 220px; width: 220px; min-width: auto !important; max-width: auto !important;
    scroll-snap-align: start !important; margin: 0 !important;
    background: #ffffff !important; border: 1px solid rgba(168, 85, 247, 0.3) !important; border-radius: 12px !important;
    padding: 12px !important; box-sizing: border-box !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}
.carousel-wrapper ul.products li.product:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 16px 32px rgba(0,0,0,0.12) !important;
}
.carousel-wrapper ul.products li.product img {
    max-height: 260px !important; width: auto !important; height: auto !important;
    object-fit: contain !important; margin: 0 auto 1rem auto !important; display: block !important;
    border-radius: 0 !important; box-shadow: none !important;
}
.woocommerce div.product {
    background: #f8fafc !important; border: 1px solid rgba(0, 0, 0, 0.1) !important;
    border-radius: 16px !important; padding: 30px !important; backdrop-filter: blur(10px); margin-top: 40px !important;
}
.woocommerce div.product div.images {
    border-radius: 12px; overflow: hidden; box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6) !important; transition: transform 0.4s ease;
}
.woocommerce div.product div.images:hover { transform: translateY(-8px) scale(1.02); }
.woocommerce div.product .product_title { font-size: 2.5rem !important; font-weight: 800 !important; color: #000000 !important; margin-bottom: 15px !important; }
.woocommerce div.product p.price, .woocommerce div.product span.price { color: #000000 !important; font-size: 2rem !important; font-weight: bold !important; margin-bottom: 25px !important; }
.woocommerce div.product .woocommerce-product-details__short-description { color: #111827 !important; font-size: 1.1rem !important; line-height: 1.6 !important; margin-bottom: 30px !important; }
.woocommerce div.product form.cart { display: flex !important; gap: 15px !important; margin-bottom: 30px !important; border-top: 1px solid rgba(0,0,0,0.1); padding-top: 30px; }
.woocommerce div.product form.cart div.quantity input.qty { background: #f8fafc !important; color: #000000 !important; border: 1px solid rgba(0,0,0,0.2) !important; border-radius: 8px !important; height: 50px !important; width: 70px !important; font-size: 1.2rem !important; font-weight: bold; }
.woocommerce div.product form.cart .button { flex-grow: 1 !important; height: 50px !important; border-radius: 8px !important; background-color: #000000 !important; color: white !important; font-size: 1.1rem !important; font-weight: bold !important; text-transform: uppercase !important; letter-spacing: 1px !important; border: none !important; box-shadow: 0 4px 15px rgba(0,0,0,0.3) !important; transition: all 0.3s ease !important; }
.woocommerce div.product form.cart .button:hover { background-color: #333333 !important; transform: translateY(-2px) !important; box-shadow: 0 6px 20px rgba(0,0,0,0.4) !important; }
.woocommerce div.product .product_meta { color: #374151 !important; font-size: 0.9rem !important; border-top: 1px solid rgba(0,0,0,0.1); padding-top: 20px !important; }
.woocommerce div.product .product_meta a { color: #a855f7 !important; text-decoration: none !important; }
.woocommerce div.product .woocommerce-tabs ul.tabs { border-bottom: 1px solid rgba(0,0,0,0.1) !important; padding: 0 !important; margin: 40px 0 20px 0 !important; display: flex !important; gap: 20px !important; }
.woocommerce div.product .woocommerce-tabs ul.tabs li { background: transparent !important; border: none !important; border-radius: 0 !important; padding: 0 0 10px 0 !important; margin: 0 !important; }
.woocommerce div.product .woocommerce-tabs ul.tabs li a { color: #374151 !important; font-weight: bold !important; font-size: 1.2rem !important; }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active { border-bottom: 3px solid #a855f7 !important; }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a { color: #000000 !important; }
.woocommerce div.product .woocommerce-Tabs-panel { color: #111827 !important; line-height: 1.8 !important; }
@media (min-width: 768px) {
    .woocommerce div.product { display: flex !important; flex-wrap: wrap !important; gap: 40px !important; }
    .woocommerce div.product div.images { width: 35% !important; float: none !important; }
    .woocommerce div.product div.summary { width: calc(65% - 40px) !important; float: none !important; padding-top: 10px !important; }
    .woocommerce div.product .woocommerce-tabs, .woocommerce div.product .related.products { width: 100% !important; clear: both !important; }
}
.woocommerce div.product div.images img { width: 100% !important; height: auto !important; object-fit: contain !important; border-radius: 12px !important; }
.woocommerce div.product div.images .woocommerce-product-gallery__wrapper, .woocommerce div.product div.images .woocommerce-product-gallery__image { width: 100% !important; height: auto !important; margin: 0 !important; }
.woocommerce div.product div.images .woocommerce-product-gallery__trigger { display: none !important; }
/* ---- DISEÑO DEL CATÁLOGO (TÍTULOS Y PAGINACIÓN) ---- */
.woocommerce-products-header__title.page-title { color: #000000 !important; font-size: 3rem !important; font-weight: 800 !important; text-align: center; margin-bottom: 10px !important; text-shadow: 0 4px 10px rgba(0,0,0,0.5); margin-top: 20px !important; }
.woocommerce-breadcrumb { color: #374151 !important; text-align: center; font-size: 1rem !important; margin-bottom: 40px !important; }
.woocommerce-breadcrumb a { color: #a855f7 !important; text-decoration: none !important; font-weight: bold; }
.woocommerce-result-count { color: #111827 !important; font-size: 1.1rem !important; }
.woocommerce-ordering select { background-color: #f8fafc !important; color: #000000 !important; border: 1px solid rgba(0, 0, 0, 0.2) !important; padding: 10px 15px !important; border-radius: 8px !important; font-size: 1rem !important; outline: none !important; cursor: pointer; }
.woocommerce-pagination { margin-top: 50px !important; }
.woocommerce-pagination ul { border: none !important; display: flex !important; justify-content: center !important; gap: 10px !important; }
.woocommerce-pagination ul li { border: none !important; }
.woocommerce-pagination ul li a, .woocommerce-pagination ul li span.current { display: flex !important; align-items: center; justify-content: center; width: 45px !important; height: 45px !important; background: #f8fafc !important; color: #000000 !important; border-radius: 8px !important; font-weight: bold !important; font-size: 1.1rem !important; text-decoration: none !important; transition: all 0.3s ease !important; border: 1px solid rgba(0,0,0,0.1) !important; }
.woocommerce-pagination ul li span.current { background: #eab308 !important; color: white !important; border-color: #eab308 !important; box-shadow: 0 4px 15px rgba(234, 179, 8, 0.4) !important; }
.woocommerce-pagination ul li a:hover { background: #a855f7 !important; border-color: #a855f7 !important; }

/*======================================================================================*/
/* ========================================= */
/* MEJORAS DE DISEÑO PREMIUM CONSOLIDADAS    */
/* ========================================= */

/* ===== 1. PANEL DE TOTALES (CARRITO) ===== */
body.woocommerce-cart {
    margin: 0 !important;
}
body.woocommerce-cart #page,
body.woocommerce-cart #primary,
body.woocommerce-cart .site-main {
    width: auto !important;
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
    float: none !important;
    clear: none !important;
    display: block !important;
}
body.woocommerce-cart .woocommerce {
    max-width: 1100px !important;
    margin: 40px auto !important;
    padding: 0 20px !important;
    box-sizing: border-box !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 380px !important;
    gap: 30px !important;
    align-items: start !important;
}
body.woocommerce-cart .woocommerce:has(.cart-empty) {
    display: block !important;
}
body.woocommerce-cart .woocommerce-notices-wrapper {
    grid-column: 1 / -1 !important;
}
body.woocommerce-cart form.woocommerce-cart-form {
    grid-column: 1 !important;
    width: 100% !important;
}
body.woocommerce-cart .cart-collaterals {
    grid-column: 2 !important;
    width: 100% !important;
}
body.woocommerce-cart table.shop_table {
    background: #ffffff !important;
    border: 1px solid rgba(168, 85, 247, 0.3) !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06) !important;
}
body.woocommerce-cart table.shop_table thead th {
    background: #faf5ff !important;
    color: #000000 !important;
    font-weight: 700 !important;
    font-size: 0.85rem !important;
    text-transform: uppercase !important;
    padding: 16px 20px !important;
    border-bottom: 1px solid rgba(168, 85, 247, 0.2) !important;
}
body.woocommerce-cart table.shop_table td {
    padding: 20px !important;
    border-bottom: 1px solid rgba(0,0,0,0.06) !important;
    color: #000000 !important;
}
body.woocommerce-cart table.shop_table td.product-name a {
    color: #000000 !important;
    font-weight: 600 !important;
}
body.woocommerce-cart table.shop_table td.product-thumbnail {
    text-align: center !important;
    width: 100px !important;
}
body.woocommerce-cart table.shop_table td.product-thumbnail img {
    max-width: 80px !important;
    height: auto !important;
    margin: 0 auto !important;
    display: block !important;
}
body.woocommerce-cart table.shop_table td.product-price span.amount,
body.woocommerce-cart table.shop_table td.product-subtotal span.amount {
    color: #000000 !important;
    font-weight: 600 !important;
}
body.woocommerce-cart table.shop_table td.product-remove a.remove {
    color: #a855f7 !important;
    background: #faf5ff !important;
    border-radius: 50% !important;
    width: 28px !important;
    height: 28px !important;
    line-height: 26px !important;
    font-size: 18px !important;
    transition: all 0.3s ease !important;
}
body.woocommerce-cart table.shop_table td.product-remove a.remove:hover {
    background: #a855f7 !important;
    color: #ffffff !important;
}
body.woocommerce-cart .cart-collaterals .cart_totals {
    background: #faf5ff !important;
    border: 1px solid rgba(168, 85, 247, 0.3) !important;
    border-radius: 12px !important;
    padding: 30px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06) !important;
    position: sticky !important;
    top: 90px !important;
}
body.woocommerce-cart .cart-collaterals .cart_totals h2 {
    color: #000000 !important;
    font-size: 1.3rem !important;
    font-weight: 700 !important;
    margin-bottom: 20px !important;
    padding-bottom: 12px !important;
    border-bottom: 2px solid #a855f7 !important;
}
body.woocommerce-cart .cart_totals table.shop_table { background: transparent !important; border: none !important; border-radius: 0 !important; box-shadow: none !important; width: 100% !important; backdrop-filter: none !important; }
body.woocommerce-cart .cart_totals table.shop_table th, body.woocommerce-cart .cart_totals table.shop_table td { background: transparent !important; border: none !important; border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important; padding: 16px 0 !important; font-size: 0.95rem !important; vertical-align: middle !important; }
body.woocommerce-cart .cart_totals table.shop_table th { color: #374151 !important; font-weight: 500 !important; text-align: left !important; letter-spacing: 0.05em !important; text-transform: uppercase !important; font-size: 0.8rem !important; width: 50% !important; }
body.woocommerce-cart .cart_totals table.shop_table td { color: #000000 !important; text-align: right !important; font-weight: 600 !important; font-size: 1rem !important; width: 50% !important; }
body.woocommerce-cart .cart_totals table.shop_table tr.order-total th, body.woocommerce-cart .cart_totals table.shop_table tr.order-total td { border-bottom: none !important; padding-top: 20px !important; font-size: 1rem !important; }
body.woocommerce-cart .cart_totals table.shop_table tr.order-total td strong span.amount { color: #a855f7 !important; font-size: 1.3rem !important; font-weight: 800 !important; text-shadow: none !important; }
body.woocommerce-cart .wc-proceed-to-checkout {
    padding: 0 !important;
    margin-top: 20px !important;
}
body.woocommerce-cart .wc-proceed-to-checkout .checkout-button {
    background: #000000 !important;
    color: #ffffff !important;
    border-radius: 8px !important;
    padding: 16px !important;
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    text-align: center !important;
    display: block !important;
    transition: all 0.3s ease !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
}
body.woocommerce-cart .wc-proceed-to-checkout .checkout-button:hover {
    background: #333333 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(0,0,0,0.3) !important;
}
body.woocommerce-cart .cart-collaterals .cross-sells {
    display: none !important;
}
body.woocommerce-cart .button[name="update_cart"] {
    background: #a855f7 !important;
    color: #ffffff !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
}
body.woocommerce-cart .button[name="update_cart"]:hover {
    background: #7c3aed !important;
    transform: translateY(-2px) !important;
}
body.woocommerce-cart .coupon {
    display: flex !important;
    gap: 10px !important;
    align-items: center !important;
}
body.woocommerce-cart .coupon input[type="text"] {
    background: #f8fafc !important;
    border: 1px solid rgba(0,0,0,0.15) !important;
    border-radius: 8px !important;
    padding: 12px 16px !important;
    color: #000000 !important;
    min-width: 150px !important;
}
body.woocommerce-cart .coupon .button {
    background: #a855f7 !important;
    color: #ffffff !important;
    border-radius: 8px !important;
    padding: 12px 20px !important;
    transition: all 0.3s ease !important;
}
body.woocommerce-cart .coupon .button:hover {
    background: #7c3aed !important;
}

/* ===== 2. DISEÑO DEL CHECKOUT PREMIUM ===== */
body.woocommerce-checkout #page { width: 94% !important; max-width: 1400px !important; margin: 0 auto !important; padding: 0 2% !important; }
body.woocommerce-checkout .woocommerce { width: 100% !important; margin: 60px auto !important; padding-bottom: 60px !important; }
form.woocommerce-checkout.checkout { display: grid !important; grid-template-columns: 1fr 400px !important; grid-template-rows: auto 1fr !important; gap: 40px !important; align-items: start !important; width: 100% !important; max-width: 100% !important; box-sizing: border-box !important; }
form.woocommerce-checkout.checkout #customer_details { grid-column: 1 !important; grid-row: 1 / -1 !important; background: #faf5ff !important; border: 1px solid rgba(0,0,0,0.1) !important; border-radius: 16px !important; padding: 35px !important; backdrop-filter: blur(10px) !important; }
form.woocommerce-checkout.checkout #order_review_heading { grid-column: 2 !important; grid-row: 1 !important; color: #000000 !important; font-size: 1.3rem !important; font-weight: 700 !important; margin: 0 !important; padding: 22px 25px !important; background: #faf5ff !important; border: 1px solid rgba(0,0,0,0.1) !important; border-radius: 16px 16px 0 0 !important; border-bottom: none !important; }
form.woocommerce-checkout.checkout #order_review { grid-column: 2 !important; grid-row: 2 !important; position: sticky !important; top: 90px !important; background: #faf5ff !important; border: 1px solid rgba(0,0,0,0.08) !important; border-top: none !important; border-radius: 0 0 16px 16px !important; padding: 0 !important; backdrop-filter: blur(15px) !important; box-shadow: 0 20px 40px rgba(0,0,0,0.4) !important; max-height: none !important; overflow: visible !important; }
form.woocommerce-checkout.checkout #order_review::-webkit-scrollbar { display: none !important; }
.woocommerce-checkout input[type="text"], .woocommerce-checkout input[type="email"], .woocommerce-checkout input[type="tel"], .woocommerce-checkout input[type="number"], .woocommerce-checkout input[type="password"], .woocommerce-checkout textarea, .woocommerce-checkout select { background-color: #f8fafc !important; color: #000000 !important; border: 1px solid rgba(0, 0, 0, 0.15) !important; border-radius: 10px !important; padding: 13px 16px !important; font-size: 1rem !important; width: 100% !important; box-sizing: border-box !important; -webkit-appearance: none !important; }
.woocommerce-checkout input:focus, .woocommerce-checkout select:focus, .woocommerce-checkout textarea:focus { border-color: #a855f7 !important; outline: none !important; box-shadow: 0 0 0 3px rgba(168,85,247,0.2) !important; }
.woocommerce-checkout label, .woocommerce-checkout .form-row label { color: #374151 !important; font-size: 0.85rem !important; font-weight: 600 !important; text-transform: uppercase !important; letter-spacing: 0.05em !important; margin-bottom: 6px !important; display: block !important; }
.woocommerce-checkout h3 { color: #000000 !important; font-size: 1.2rem !important; font-weight: 700 !important; margin-bottom: 20px !important; padding-bottom: 12px !important; border-bottom: 1px solid rgba(0,0,0,0.1) !important; }
.woocommerce-checkout-review-order-table { width: 100% !important; border: none !important; border-collapse: collapse !important; box-shadow: none !important; }
.woocommerce-checkout-review-order-table th, .woocommerce-checkout-review-order-table td { padding: 14px 25px !important; border: none !important; border-bottom: 1px solid rgba(0,0,0,0.05) !important; font-size: 0.9rem !important; color: #111827 !important; outline: none !important; }
.woocommerce-checkout-review-order-table th { background: rgba(255,255,255,0.9) !important; color: #374151 !important; font-size: 0.75rem !important; text-transform: uppercase !important; letter-spacing: 0.1em !important; }
.woocommerce-checkout-review-order-table .product-name { color: #000000 !important; font-weight: 600 !important; display: flex !important; align-items: center !important; gap: 14px !important; }
.checkout-product-thumb { width: 55px !important; height: 55px !important; object-fit: contain !important; border-radius: 8px !important; border: 1px solid #a855f7 !important; background: #f8fafc !important; flex-shrink: 0 !important; box-shadow: 0 4px 10px rgba(0,0,0,0.4) !important; }
.checkout-product-name { color: #000000 !important; font-weight: 600 !important; font-size: 0.95rem !important; line-height: 1.4 !important; }
.woocommerce-checkout-review-order-table .product-total span.amount { color: #a855f7 !important; font-weight: 700 !important; }
.woocommerce-checkout-review-order-table .order-total td strong span { color: #a855f7 !important; font-size: 1.2rem !important; font-weight: 800 !important; }
#order_review #payment { padding: 20px 25px !important; border-top: 1px solid rgba(0,0,0,0.08) !important; background: transparent !important; }
#order_review #payment ul.payment_methods { list-style: none !important; padding: 0 !important; margin: 0 0 15px 0 !important; }
#order_review #payment ul.payment_methods li label { color: #000000 !important; font-weight: 500 !important; cursor: pointer !important; }
.woocommerce-checkout #place_order { background: linear-gradient(135deg, #eab308, #ca8a04) !important; color: white !important; border: none !important; border-radius: 12px !important; padding: 18px !important; font-size: 1.1rem !important; font-weight: 800 !important; text-transform: uppercase !important; letter-spacing: 1px !important; width: 100% !important; cursor: pointer !important; box-shadow: 0 6px 25px rgba(234, 179, 8, 0.5) !important; transition: all 0.3s ease !important; margin-top: 15px !important; }
.woocommerce-checkout #place_order:hover { transform: translateY(-3px) !important; box-shadow: 0 10px 30px rgba(234, 179, 8, 0.7) !important; }
.woocommerce-form-coupon-toggle, .woocommerce-info.woocommerce-info--coupon, body.woocommerce-checkout .woocommerce-notices-wrapper { display: none !important; }
.woocommerce-checkout .select2-container--default .select2-selection--single { background-color: #f8fafc !important; border: 1px solid rgba(0, 0, 0, 0.15) !important; border-radius: 10px !important; height: 48px !important; padding: 10px 16px !important; }
.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__rendered { color: #000000 !important; line-height: 28px !important; }
.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__arrow { height: 46px !important; }
.select2-dropdown { background: #ffffff !important; border: 1px solid rgba(0,0,0,0.1) !important; border-radius: 10px !important; color: #000000 !important; }
.select2-results__option { color: #111827 !important; padding: 10px 16px !important; }
.select2-results__option--highlighted { background: #a855f7 !important; color: white !important; }

/* ===== 3. FOOTER PREMIUM ===== */
.footer-gradient-line { height: 2px !important; background: linear-gradient(90deg, transparent, #a855f7, #eab308, #7c3aed, transparent) !important; margin: 0 !important; }
.site-footer { background: #f8fafc !important; border-top: none !important; padding: 0 !important; margin-top: 60px !important; }
.footer-main { display: grid !important; grid-template-columns: 1.5fr 1fr 1fr !important; gap: 60px !important; padding: 60px 5% !important; max-width: 1400px !important; margin: 0 auto !important; }
.footer-brand .footer-logo img { max-height: 55px !important; width: auto !important; margin-bottom: 20px !important; filter: brightness(1.1) !important; }
.footer-logo-text { font-size: 1.8rem !important; font-weight: 800 !important; color: #000000 !important; margin-bottom: 15px !important; }
.footer-tagline { color: #374151 !important; font-size: 0.95rem !important; line-height: 1.7 !important; margin-bottom: 25px !important; }
.footer-social { display: flex !important; gap: 12px !important; }
.social-btn { width: 42px !important; height: 42px !important; border-radius: 10px !important; display: flex !important; align-items: center !important; justify-content: center !important; text-decoration: none !important; transition: all 0.3s ease !important; color: white !important; }
.social-instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888) !important; }
.social-facebook { background: #1877f2 !important; }
.social-tiktok { background: #000 !important; border: 1px solid rgba(255,255,255,0.2) !important; }
.social-btn:hover { transform: translateY(-4px) scale(1.1) !important; box-shadow: 0 8px 20px rgba(0,0,0,0.4) !important; }
.footer-heading { color: #000000 !important; font-size: 1rem !important; font-weight: 700 !important; text-transform: uppercase !important; letter-spacing: 0.1em !important; margin-bottom: 25px !important; padding-bottom: 12px !important; border-bottom: 2px solid #a855f7 !important; display: inline-block !important; }
.footer-links { list-style: none !important; padding: 0 !important; margin: 0 !important; }
.footer-links li { margin-bottom: 12px !important; }
.footer-links li a { color: #374151 !important; text-decoration: none !important; font-size: 0.95rem !important; transition: all 0.3s ease !important; display: flex !important; align-items: center !important; gap: 8px !important; }
.footer-links li a::before { content: "›" !important; color: #a855f7 !important; font-size: 1.2rem !important; transition: transform 0.3s ease !important; }
.footer-links li a:hover { color: #000000 !important; padding-left: 5px !important; }
.footer-links li a:hover::before { color: #eab308 !important; }
.footer-bottom { border-top: 1px solid rgba(0,0,0,0.06) !important; padding: 20px 5% !important; display: flex !important; justify-content: space-between !important; align-items: center !important; max-width: 1400px !important; margin: 0 auto !important; color: #111827 !important; font-size: 0.85rem !important; }
.footer-bottom strong { color: #374151 !important; }

/* ===== 4. ESTILOS DE VISTA RÁPIDA (QUICK VIEW) ===== */
/* ===== 4. ESTILOS DE VISTA RÁPIDA (QUICK VIEW) ===== */
/* Botón ojo: SIEMPRE visible con pulso suave */
.tcg-quick-view-btn {
    position: absolute !important; top: 6px !important; right: 6px !important;
    width: 30px !important; height: 30px !important;
    background: rgba(0,0,0,0.7) !important;
    color: white !important; border-radius: 50% !important;
    border: none !important;
    display: flex !important; align-items: center !important; justify-content: center !important;
    cursor: pointer !important; z-index: 25 !important;
    transition: all 0.3s ease !important;
    opacity: 1 !important;
    transform: none !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2) !important;
}
.tcg-quick-view-btn:hover {
    background: #000 !important;
    transform: scale(1.15) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.35) !important;
}

/* Modal */
.tcg-modal { display: none; position: fixed; z-index: 100000; left: 0; top: 0; width: 100%; height: 100%; overflow: hidden; background-color: rgba(0,0,0,0.8); backdrop-filter: blur(8px); }
.tcg-modal.show { display: flex; align-items: center; justify-content: center; animation: fadeIn 0.3s; }
.tcg-modal-content { background: #faf5ff; border: 1px solid #a855f7; border-radius: 20px; width: 90%; max-width: 900px; max-height: 90vh; overflow-y: auto; position: relative; padding: 45px; box-shadow: 0 25px 60px rgba(0,0,0,0.6); }
.tcg-close { color: #374151; position: absolute; top: 15px; right: 20px; font-size: 35px; font-weight: bold; cursor: pointer; line-height: 1; transition: color 0.3s; }
.tcg-close:hover { color: #eab308; }

/* Contenido del modal */
#tcg-quick-view-content { display: flex; flex-wrap: wrap; gap: 35px; }
#tcg-quick-view-content .images { width: 40%; }
#tcg-quick-view-content .images img { width: 100%; height: auto; border-radius: 14px; box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
#tcg-quick-view-content .summary { width: calc(60% - 35px); display: flex; flex-direction: column; gap: 0; }
#tcg-quick-view-content .product_title { font-size: 1.8rem; color: #000000; margin: 0 0 8px 0; font-weight: 800; line-height: 1.2; }
#tcg-quick-view-content .price { font-size: 1.6rem; color: #000000; font-weight: 800; margin-bottom: 15px; display: block; }
#tcg-quick-view-content .woocommerce-product-details__short-description { color: #111827; margin-bottom: 20px; line-height: 1.7; font-size: 0.95rem; border-left: 3px solid #a855f7; padding-left: 15px; }

/* Selector de cantidad en el modal */
.tcg-qv-qty-row { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; padding: 15px 0; border-top: 1px solid rgba(0,0,0,0.08); border-bottom: 1px solid rgba(0,0,0,0.08); }
.tcg-qv-qty-row label { color: #374151; font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; white-space: nowrap; }
.tcg-qty-control { display: flex; align-items: center; background: #faf5ff; border: 1px solid #a855f7; border-radius: 10px; overflow: hidden; }
.tcg-qty-btn { width: 38px; height: 38px; background: transparent; border: none; color: #000000; font-size: 1.3rem; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.2s; }
.tcg-qty-btn:hover { background: rgba(168,85,247,0.3); }
.tcg-qty-input { width: 50px; height: 38px; background: transparent; border: none; color: #000000; font-size: 1rem; font-weight: 700; text-align: center; outline: none; -moz-appearance: textfield; }
.tcg-qty-input::-webkit-outer-spin-button, .tcg-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; }

/* Loader */
.tcg-loader { width: 50px; height: 50px; border: 5px solid rgba(0,0,0,0.1); border-top-color: #a855f7; border-radius: 50%; animation: spin 1s linear infinite; margin: 60px auto; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 768px) {
    #tcg-quick-view-content .images { width: 100%; }
    #tcg-quick-view-content .summary { width: 100%; }
    .tcg-modal-content { padding: 25px; }
}

/* ===== 5. BUSCADOR EN CABECERA ===== */
.header-search { flex-grow: 1; margin: 0 20px; max-width: 600px; min-width: 200px; }
.header-search form:not(.dgwt-wcas-search-form) { display: flex; width: 100%; position: relative; margin: 0; }
.header-search form:not(.dgwt-wcas-search-form) input[type="search"] { width: 100% !important; background: #f8fafc !important; border: 1px solid rgba(0,0,0,0.12) !important; border-radius: 20px !important; padding: 10px 20px 10px 45px !important; color: #000000 !important; font-size: 0.95rem !important; transition: all 0.3s ease !important; }
.header-search form:not(.dgwt-wcas-search-form) input[type="search"]:focus { border-color: #a855f7 !important; background: #ffffff !important; box-shadow: 0 0 0 3px rgba(168,85,247,0.15) !important; outline: none !important; }
.header-search form:not(.dgwt-wcas-search-form) button { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); background: transparent; border: none; color: #64748b; padding: 0; cursor: pointer; font-size: 0; }
.header-search form:not(.dgwt-wcas-search-form) button svg { width: 18px; height: 18px; }
.header-search .woocommerce-product-search { display: flex; width: 100%; position: relative; }

/* ===== MEJORAS PARA FIBOSEARCH (ESTILO PREMIUM TCG) ===== */
.dgwt-wcas-search-wrapp {
    max-width: 100% !important;
    min-width: 200px !important;
}
.dgwt-wcas-sf-wrapp {
    border-radius: 20px !important;
    background: #f8fafc !important;
    border: 1px solid rgba(0, 0, 0, 0.12) !important;
    transition: all 0.3s ease !important;
}
.dgwt-wcas-search-wrapp:hover .dgwt-wcas-sf-wrapp,
.dgwt-wcas-search-wrapp.dgwt-wcas-active .dgwt-wcas-sf-wrapp {
    border-color: #a855f7 !important;
    box-shadow: 0 0 0 3px rgba(168,85,247,0.15) !important;
    background: #ffffff !important;
}
.dgwt-wcas-search-input {
    background: transparent !important;
    color: #000000 !important;
    font-size: 0.95rem !important;
    font-weight: 500 !important;
}
.dgwt-wcas-search-input::placeholder {
    color: #94a3b8 !important;
}
.dgwt-wcas-search-submit {
    background: transparent !important;
    border: none !important;
    color: #64748b !important;
}
.dgwt-wcas-search-submit:hover {
    color: #a855f7 !important;
}

/* ===== 6. OPTIMIZACIÓN MÓVIL (FUERZA MÁXIMA) ===== */
@media (max-width: 768px) {
    .header-container {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        padding: 10px 8px !important;
        flex-wrap: nowrap !important;
        gap: 4px !important;
    }
    .site-branding {
        order: 1 !important;
        margin: 0 !important;
        flex: 0 0 auto !important;
        max-width: 110px !important;
        display: flex !important;
        align-items: center !important;
    }
    .site-branding img {
        max-height: 34px !important;
        width: auto !important;
    }
    .header-search {
        order: 2 !important;
        width: auto !important;
        max-width: none !important;
        margin: 0 !important;
        flex: 1 1 auto !important;
        min-width: 0 !important;
        display: flex !important;
        align-items: center !important;
    }
    .header-search .dgwt-wcas-search-wrapp {
        margin: 0 !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
    }
    .header-search .dgwt-wcas-sf-wrapp {
        min-width: 0 !important;
        width: 100% !important;
    }
    .header-search .dgwt-wcas-search-input {
        padding-left: 35px !important;
        padding-right: 8px !important;
    }
    .header-cart {
        order: 3 !important;
        margin-left: 0 !important;
        margin-right: 6px !important;
        display: flex !important;
        align-items: center !important;
        flex: 0 0 auto !important;
    }
    .header-account {
        order: 4 !important;
        margin-left: 0 !important;
        margin-right: 6px !important;
        display: flex !important;
        align-items: center !important;
        flex: 0 0 auto !important;
    }
    .main-navigation {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        order: 5 !important;
        align-items: center !important;
        flex: 0 0 auto !important;
        margin: 0 !important;
    }
    
    .header-cart svg { width: 22px !important; height: 22px !important; }
    .header-account svg { width: 22px !important; height: 22px !important; }
    .menu-toggle { display: flex !important; visibility: visible !important; opacity: 1 !important; flex-direction: column !important; justify-content: space-between !important; width: 26px !important; height: 18px !important; background: transparent !important; border: none !important; cursor: pointer !important; padding: 0 !important; margin: 0 !important; z-index: 99999 !important; }
    #cart-drawer { width: 85% !important; right: -85% !important; }
    .hamburger-line { display: block !important; width: 100% !important; height: 2.5px !important; background-color: #000000 !important; border-radius: 3px !important; transition: all 0.3s ease !important; }
    .main-navigation ul { display: none !important; }
    .main-navigation.toggled .menu-container { display: block !important; position: fixed !important; top: 62px !important; left: 0 !important; width: 100% !important; height: calc(100vh - 62px) !important; background: #ffffff !important; backdrop-filter: blur(20px) !important; z-index: 99998 !important; padding: 30px 20px !important; border-top: 1px solid rgba(0, 0, 0, 0.1) !important; animation: fadeIn 0.3s ease forwards !important; }
    .main-navigation.toggled ul { display: flex !important; flex-direction: column !important; gap: 25px !important; list-style: none !important; padding: 0 !important; margin: 0 !important; }
    .main-navigation.toggled ul li a { color: #000000 !important; font-size: 1.3rem !important; font-weight: 700 !important; text-decoration: none !important; display: block !important; padding: 10px 0 !important; border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important; }
    .main-navigation.toggled .menu-toggle .hamburger-line:nth-child(1) { transform: translateY(8px) rotate(45deg) !important; }
    .main-navigation.toggled .menu-toggle .hamburger-line:nth-child(2) { opacity: 0 !important; }
    .main-navigation.toggled .menu-toggle .hamburger-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg) !important; }
}

/* PANTALLAS MUY PEQUEÑAS (iPhone SE, etc. < 380px) */
@media (max-width: 380px) {
    .header-container { padding: 8px 6px !important; gap: 2px !important; }
    .site-branding { max-width: 90px !important; }
    .site-branding img { max-height: 30px !important; }
    .header-cart { margin-right: 4px !important; }
    .header-account { margin-right: 4px !important; }
    
    html body.woocommerce-page.archive ul.products, html body.woocommerce ul.products, html body.archive.woocommerce-page ul.products { display: grid !important; grid-template-columns: repeat(2, 1fr) !important; gap: 15px !important; width: 100% !important; padding: 10px !important; box-sizing: border-box !important; }
    html body.woocommerce-page.archive ul.products li.product, html body.woocommerce ul.products li.product { width: 100% !important; max-width: 100% !important; margin: 0 !important; background: #ffffff !important; border: 1px solid rgba(168, 85, 247, 0.3) !important; border-radius: 12px !important; padding: 12px !important; box-sizing: border-box !important; display: flex !important; flex-direction: column !important; justify-content: space-between !important; box-shadow: 0 2px 8px rgba(0,0,0,0.06) !important; transition: transform 0.3s ease, box-shadow 0.3s ease !important; }
    html body.woocommerce-page.archive ul.products li.product:hover { transform: translateY(-6px) !important; box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important; }
    html body.woocommerce-page.archive .woocommerce-products-header__title.page-title { font-size: 1.8rem !important; line-height: 1.2 !important; margin-top: 15px !important; margin-bottom: 5px !important; text-align: center !important; }
    .woocommerce-result-count, .woocommerce-ordering { text-align: center !important; float: none !important; margin: 10px auto !important; display: block !important; }
    
    body.woocommerce-cart .woocommerce { display: flex !important; flex-direction: column !important; gap: 30px !important; padding: 10px !important; margin: 20px auto !important; }
    body.woocommerce-cart table.shop_table { border: none !important; background: transparent !important; }
    body.woocommerce-cart table.shop_table thead { display: none !important; }
    body.woocommerce-cart table.shop_table tr.cart_item { display: block !important; background: #f8fafc !important; border: 1px solid rgba(0, 0, 0, 0.1) !important; border-radius: 16px !important; margin-bottom: 20px !important; padding: 20px !important; position: relative !important; }
    body.woocommerce-cart table.shop_table td { display: block !important; text-align: right !important; padding: 10px 0 !important; border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important; }
    body.woocommerce-cart table.shop_table td:last-child { border-bottom: none !important; }
    body.woocommerce-cart table.shop_table td::before { content: attr(data-title) ": " !important; float: left !important; color: #374151 !important; font-weight: 600 !important; text-transform: uppercase !important; font-size: 0.8rem !important; }
    body.woocommerce-cart table.shop_table td.product-thumbnail { text-align: center !important; }
    body.woocommerce-cart table.shop_table td.product-thumbnail::before { display: none !important; }
    body.woocommerce-cart table.shop_table td.product-thumbnail img { max-width: 90px !important; height: auto !important; margin: 0 auto !important; }
    body.woocommerce-cart table.shop_table td.product-remove { position: absolute !important; top: 15px !important; right: 15px !important; border: none !important; padding: 0 !important; }
    body.woocommerce-cart table.shop_table td.product-remove::before { display: none !important; }
    body.woocommerce-cart .cart-collaterals { width: 100% !important; border-left: none !important; padding-left: 0 !important; }
    
    form.woocommerce-checkout.checkout { grid-template-columns: 1fr !important; gap: 25px !important; padding: 10px !important; }
    form.woocommerce-checkout.checkout #customer_details, form.woocommerce-checkout.checkout #order_review_heading, form.woocommerce-checkout.checkout #order_review { grid-column: 1 !important; width: 100% !important; }
    form.woocommerce-checkout.checkout #order_review { position: relative !important; top: 0 !important; max-height: none !important; }
    form.woocommerce-checkout.checkout #customer_details { padding: 20px !important; }
    
    .footer-main { grid-template-columns: 1fr !important; gap: 40px !important; padding: 40px 6% !important; }
    .footer-bottom { flex-direction: column !important; gap: 10px !important; text-align: center !important; }
    
    #tcg-quick-view-content { flex-direction: column; }
    #tcg-quick-view-content .images, #tcg-quick-view-content .summary { width: 100%; }
}

/* ========================================= */
/* 7. LOGIN / REGISTER PREMIUM               */
/* ========================================= */
.woocommerce-form-login,
.woocommerce-form-register {
    background: #faf5ff !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    border-radius: 20px !important;
    padding: 40px !important;
    backdrop-filter: blur(16px) !important;
    max-width: 480px !important;
    margin: 40px auto !important;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5) !important;
}

.woocommerce-form-login h2,
.woocommerce-form-register h2 {
    font-size: 2rem !important;
    color: #000000 !important;
    text-align: center !important;
    margin-bottom: 30px !important;
    font-weight: 800 !important;
}

.woocommerce-form-login p,
.woocommerce-form-register p {
    color: #374151 !important;
    font-size: 0.95rem !important;
    margin-bottom: 15px !important;
}

.woocommerce-form-login .form-row label,
.woocommerce-form-register .form-row label {
    color: #374151 !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    margin-bottom: 6px !important;
    display: block !important;
}

.woocommerce-form-login input[type="text"],
.woocommerce-form-login input[type="email"],
.woocommerce-form-login input[type="password"],
.woocommerce-form-register input[type="text"],
.woocommerce-form-register input[type="email"],
.woocommerce-form-register input[type="password"] {
    background: #f8fafc !important;
    color: #000000 !important;
    border: 1px solid rgba(0, 0, 0, 0.15) !important;
    border-radius: 12px !important;
    padding: 14px 16px !important;
    font-size: 1rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
    transition: all 0.3s ease !important;
}

.woocommerce-form-login input:focus,
.woocommerce-form-register input:focus {
    border-color: #a855f7 !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(168,85,247,0.2) !important;
}

.woocommerce-form-login .button,
.woocommerce-form-register .button {
    background: linear-gradient(135deg, #a855f7, #7c3aed) !important;
    color: white !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 14px 28px !important;
    font-size: 1.1rem !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    width: 100% !important;
    cursor: pointer !important;
    box-shadow: 0 6px 20px rgba(168, 85, 247, 0.4) !important;
    transition: all 0.3s ease !important;
}

.woocommerce-form-login .button:hover,
.woocommerce-form-register .button:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 10px 30px rgba(168, 85, 247, 0.6) !important;
}

.woocommerce-form-login .lost_password a {
    color: #a855f7 !important;
    text-decoration: none !important;
    font-weight: 600 !important;
}

.woocommerce-form-login .lost_password a:hover {
    color: #eab308 !important;
}

.woocommerce-form-login .rememberme {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    color: #374151 !important;
    font-size: 0.9rem !important;
}

.woocommerce-form-login input[type="checkbox"] {
    width: 18px !important;
    height: 18px !important;
    accent-color: #a855f7 !important;
}

/* Tabs de login/register */
.woocommerce-MyAccount-navigation {
    background: #faf5ff !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    border-radius: 16px !important;
    padding: 20px !important;
    backdrop-filter: blur(10px) !important;
    margin-bottom: 30px !important;
}

.woocommerce-MyAccount-navigation ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 5px !important;
}

.woocommerce-MyAccount-navigation ul li {
    margin: 0 !important;
}

.woocommerce-MyAccount-navigation ul li a {
    display: block !important;
    padding: 10px 20px !important;
    color: #374151 !important;
    text-decoration: none !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
    font-weight: 500 !important;
}

.woocommerce-MyAccount-navigation ul li a:hover {
    color: #000000 !important;
    background: rgba(168, 85, 247, 0.2) !important;
}

.woocommerce-MyAccount-navigation ul li.is-active a {
    color: #000000 !important;
    background: linear-gradient(135deg, #a855f7, #7c3aed) !important;
}

/* Account content */
.woocommerce-MyAccount-content {
    background: #faf5ff !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    border-radius: 16px !important;
    padding: 30px !important;
    backdrop-filter: blur(10px) !important;
}

.woocommerce-MyAccount-content h2,
.woocommerce-MyAccount-content h3 {
    color: #000000 !important;
    font-weight: 700 !important;
}

.woocommerce-MyAccount-content p {
    color: #374151 !important;
}

.woocommerce-MyAccount-content address {
    color: #111827 !important;
    background: #f8fafc !important;
    padding: 15px !important;
    border-radius: 10px !important;
    border: 1px solid rgba(0,0,0,0.08) !important;
}

.woocommerce-MyAccount-content table.shop_table {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
}

.woocommerce-MyAccount-content table.shop_table th,
.woocommerce-MyAccount-content table.shop_table td {
    background: transparent !important;
    border-bottom: 1px solid rgba(0,0,0,0.06) !important;
    color: #111827 !important;
}

.woocommerce-MyAccount-content table.shop_table th {
    color: #374151 !important;
    text-transform: uppercase !important;
    font-size: 0.8rem !important;
    letter-spacing: 0.1em !important;
}

.woocommerce-MyAccount-content .woocommerce-Button,
.woocommerce-MyAccount-content .button {
    background: linear-gradient(135deg, #a855f7, #7c3aed) !important;
    color: white !important;
    border: none !important;
    border-radius: 10px !important;
    padding: 12px 24px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

.woocommerce-MyAccount-content .woocommerce-Button:hover,
.woocommerce-MyAccount-content .button:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(168, 85, 247, 0.5) !important;
}

/* Selector de cantidad en productos relacionados */
.woocommerce .related.products .button,
.woocommerce .related.products .add_to_cart_button {
    background: #000000 !important;
    color: #fff !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    padding: 10px 20px !important;
    transition: all 0.3s ease !important;
}

.woocommerce .related.products .button:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3) !important;
    background: #333333 !important;
}

.woocommerce .related.products ul.products li.product {
    background: #ffffff !important;
    border: 1px solid rgba(168, 85, 247, 0.3) !important;
    border-radius: 12px !important;
    padding: 12px !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
    position: relative !important;
    overflow: hidden !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06) !important;
}

.woocommerce .related.products ul.products li.product::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #a855f7, #7c3aed, #eab308);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.woocommerce .related.products ul.products li.product:hover::before {
    opacity: 1;
}

.woocommerce .related.products ul.products li.product:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 12px 24px rgba(0,0,0,0.1) !important;
}

.woocommerce .related.products ul.products li.product img {
    border-radius: 12px !important;
    box-shadow: 0 8px 25px rgba(0,0,0,0.4) !important;
    transition: transform 0.4s ease !important;
}

.woocommerce .related.products ul.products li.product:hover img {
    transform: scale(1.05) !important;
}

.woocommerce .related.products ul.products li.product .woocommerce-loop-product__title {
    color: #000000 !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    font-family: var(--font-body);
    margin: 12px 0 8px !important;
    line-height: 1.3 !important;
}

.woocommerce .related.products ul.products li.product .price {
    color: #000000 !important;
    font-size: 1.3rem !important;
    font-weight: 800 !important;
}

.woocommerce .related.products h2 {
    color: #000000 !important;
    font-size: 2rem !important;
    font-weight: 800 !important;
    margin-bottom: 25px !important;
    position: relative !important;
    display: inline-block !important;
}

.woocommerce .related.products h2::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #a855f7, transparent);
    border-radius: 2px;
}

.woocommerce .related.products {
    margin-top: 60px !important;
    padding: 30px 0 !important;
    border-top: 1px solid rgba(0,0,0,0.06) !important;
}

.woocommerce .related.products ul.products {
    display: flex !important;
    overflow-x: auto !important;
    gap: 20px !important;
    padding: 15px 5px 25px !important;
    scroll-snap-type: x mandatory !important;
    scrollbar-width: thin !important;
    scrollbar-color: #a855f7 #e2e8f0 !important;
}

.woocommerce .related.products ul.products::-webkit-scrollbar {
    height: 6px !important;
}

.woocommerce .related.products ul.products::-webkit-scrollbar-track {
    background: #f1f5f9 !important;
    border-radius: 3px !important;
}

.woocommerce .related.products ul.products::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, #a855f7, #7c3aed) !important;
    border-radius: 3px !important;
}

.woocommerce .related.products ul.products li.product {
    flex: 0 0 240px !important;
    scroll-snap-align: start !important;
}

/* ========================================= */
/* 7. BANNERS PROMOCIONALES (HORIZONTALES)    */
/* ========================================= */
.promo-banners-section {
    padding: 40px 5%;
    max-width: 1400px;
    margin: 0 auto;
    box-sizing: border-box;
}
.promo-banners-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}
.promo-banner-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    min-height: 350px;
    display: flex;
    align-items: flex-end;
    background-size: cover;
    background-position: center;
    text-decoration: none;
    border: 1px solid #a855f7;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.promo-banner-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.5);
}
.promo-banner-content {
    position: relative;
    z-index: 2;
    padding: 40px;
    width: 100%;
    box-sizing: border-box;
    max-width: 500px;
}
.promo-banner-content h3 {
    color: #000000;
    font-size: 2rem;
    font-weight: 800;
    margin: 0 0 8px 0;
}
.promo-banner-content p {
    color: #111827;
    font-size: 1rem;
    margin: 0 0 18px 0;
    line-height: 1.5;
}
.promo-banner-btn {
    display: inline-block;
    color: #a855f7;
    font-weight: 700;
    font-size: 1rem;
    transition: color 0.3s ease;
    border: 2px solid #a855f7;
    border-radius: 8px;
    padding: 10px 24px;
}
.promo-banner-card:hover .promo-banner-btn {
    color: #eab308;
    border-color: #eab308;
}
@media (max-width: 768px) {
    .promo-banners-grid {
        gap: 20px;
    }
    .promo-banner-card {
        min-height: 220px;
    }
    .promo-banner-content {
        padding: 25px;
    }
    .promo-banner-content h3 {
        font-size: 1.4rem;
    }
    .promo-banners-section {
        padding: 25px 4%;
    }
}
/* ========================================= */
/* 8. PÁGINA DE REGISTRO SEPARADA             */
/* ========================================= */
.tcg-register-wrapper {
    max-width: 600px;
    margin: 40px auto;
    padding: 0 20px;
}
.tcg-register-box {
    background: #faf5ff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    padding: 40px;
    backdrop-filter: blur(16px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.tcg-register-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}
.tcg-register-tab {
    flex: 1;
    text-align: center;
    padding: 14px 20px;
    color: #374151;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}
.tcg-register-tab:hover {
    color: #000000;
}
.tcg-register-tab.active {
    color: #000000;
    border-bottom-color: #a855f7;
}
.tcg-register-box .woocommerce-form label {
    color: #374151;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
    display: block;
}
.tcg-register-box .woocommerce-form input {
    background: #f8fafc;
    color: #000000;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    padding: 14px 16px;
    font-size: 1rem;
    width: 100%;
    box-sizing: border-box;
    transition: all 0.3s ease;
}
.tcg-register-box .woocommerce-form input:focus {
    border-color: #a855f7;
    outline: none;
    box-shadow: 0 0 0 3px rgba(168,85,247,0.2);
}
.tcg-register-box .woocommerce-Button {
    background: linear-gradient(135deg, #a855f7, #7c3aed);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 14px 28px;
    font-size: 1.1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    width: 100%;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(168, 85, 247, 0.4);
    transition: all 0.3s ease;
}
.tcg-register-box .woocommerce-Button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(168, 85, 247, 0.6);
}
.tcg-register-box .woocommerce-message {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 12px;
    padding: 20px;
    color: #6ee7b7;
    margin-bottom: 20px;
    text-align: center;
}
.tcg-register-box .woocommerce-error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 12px;
    padding: 20px;
    color: #fca5a5;
    margin-bottom: 20px;
}
.tcg-register-box .woocommerce-error ul {
    margin: 0;
    padding-left: 20px;
}
/* ========================================= */
/* 9. SECCIÓN LOGIN / REGISTER EN FRONT PAGE  */
/* ========================================= */
.tcg-login-section {
    background: #f8fafc !important;
    border-radius: 24px !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    padding: 60px 40px !important;
    margin: 60px auto !important;
    max-width: 1000px !important;
    text-align: center !important;
    backdrop-filter: blur(10px) !important;
}

.tcg-login-section h2 {
    font-size: 2.5rem !important;
    color: #000000 !important;
    font-weight: 800 !important;
    margin-bottom: 10px !important;
}

.tcg-login-section p {
    color: #374151 !important;
    font-size: 1.1rem !important;
    margin-bottom: 35px !important;
}

.tcg-login-buttons {
    display: flex !important;
    gap: 20px !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
}

.tcg-login-btn,
.tcg-register-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 16px 32px !important;
    border-radius: 12px !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
}

.tcg-login-btn {
    background: linear-gradient(135deg, #a855f7, #7c3aed) !important;
    color: white !important;
    box-shadow: 0 6px 20px rgba(168, 85, 247, 0.4) !important;
}

.tcg-register-btn {
    background: transparent !important;
    color: #000000 !important;
    border: 2px solid rgba(0, 0, 0, 0.2) !important;
}

.tcg-login-btn:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 10px 30px rgba(168, 85, 247, 0.6) !important;
    color: white !important;
}

.tcg-register-btn:hover {
    border-color: #a855f7 !important;
    background: rgba(168, 85, 247, 0.1) !important;
    transform: translateY(-3px) !important;
    color: #000000 !important;
}

.tcg-login-benefits {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 25px !important;
    margin-top: 40px !important;
    text-align: left !important;
}

.tcg-benefit-item {
    background: #f8fafc !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    border-radius: 16px !important;
    padding: 25px !important;
    transition: all 0.3s ease !important;
}

.tcg-benefit-item:hover {
    transform: translateY(-5px) !important;
    border-color: rgba(168, 85, 247, 0.3) !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3) !important;
}

.tcg-benefit-item .benefit-icon {
    font-size: 2rem !important;
    margin-bottom: 15px !important;
    display: block !important;
}

.tcg-benefit-item h4 {
    color: #000000 !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    margin-bottom: 8px !important;
}

.tcg-benefit-item p {
    color: #374151 !important;
    font-size: 0.9rem !important;
    margin-bottom: 0 !important;
}

@media (max-width: 768px) {
    .tcg-login-benefits {
        grid-template-columns: 1fr !important;
    }
    .tcg-login-section {
        padding: 40px 20px !important;
    }
    .tcg-login-section h2 {
        font-size: 1.8rem !important;
    }
}

/* ========================================= */
/* RESPONSIVE: PRODUCTOS RELACIONADOS MOVIL   */
/* ========================================= */
@media (max-width: 768px) {
    html body.woocommerce-page section.related.products {
        margin-top: 30px !important;
        padding: 20px 10px !important;
    }

    html body.woocommerce-page section.related.products div.section-header h2 {
        font-size: 1.4rem !important;
        margin-bottom: 15px !important;
    }

    html body.woocommerce-page section.related.products div.carousel-wrapper ul.products {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        overflow-x: hidden !important;
        overflow-y: visible !important;
        gap: 12px !important;
        padding: 0 !important;
        scroll-snap-type: none !important;
        scrollbar-width: none !important;
        flex-wrap: wrap !important;
        flex-direction: row !important;
    }

    html body.woocommerce-page section.related.products div.carousel-wrapper ul.products::-webkit-scrollbar {
        display: none !important;
    }

    html body.woocommerce-page section.related.products div.carousel-wrapper ul.products li.product {
        flex: 0 0 auto !important;
        min-width: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
        scroll-snap-align: none !important;
        padding: 12px !important;
        border-radius: 12px !important;
        box-sizing: border-box !important;
        margin: 0 !important;
    }

    html body.woocommerce-page section.related.products div.carousel-wrapper ul.products li.product img {
        border-radius: 8px !important;
        box-shadow: 0 4px 12px rgba(0,0,0,0.4) !important;
        max-height: 180px !important;
        width: 100% !important;
        height: auto !important;
        object-fit: contain !important;
        margin: 0 auto !important;
        display: block !important;
    }

    html body.woocommerce-page section.related.products div.carousel-wrapper ul.products li.product .woocommerce-loop-product__title {
        font-size: 0.85rem !important;
        margin: 8px 0 4px !important;
    }

    html body.woocommerce-page section.related.products div.carousel-wrapper ul.products li.product .price {
        font-size: 1rem !important;
    }

    html body.woocommerce-page section.related.products div.carousel-wrapper ul.products li.product:hover {
        transform: translateY(-6px) !important;
    }

    html body.woocommerce-page section.related.products div.carousel-wrapper ul.products li.product:hover img {
        transform: scale(1.03) !important;
    }

    html body.woocommerce-page section.related.products .button,
    html body.woocommerce-page section.related.products .add_to_cart_button {
        padding: 6px 12px !important;
        font-size: 0.8rem !important;
    }

    html body.woocommerce-page section.related.products .scroll-btn {
        display: none !important;
    }

    /* Optimización de espacio para la tarjeta del producto principal en móvil */
    html body.woocommerce-page div.product {
        padding: 20px 15px !important;
        margin-top: 20px !important;
        border-radius: 12px !important;
    }

    /* Posicionar la barra de filtros al inicio (arriba de los productos) en móvil */
    html body.woocommerce-page.archive #page {
        display: flex !important;
        flex-direction: column !important;
    }
    
    html body.woocommerce-page.archive #primary {
        order: 2 !important;
        width: 100% !important;
    }
    
    html body.woocommerce-page.archive #secondary {
        order: 1 !important;
        width: 100% !important;
        box-sizing: border-box !important;
        background: #f8fafc !important;
        padding: 20px !important;
        border-radius: 12px !important;
        backdrop-filter: blur(10px) !important;
        margin-top: 20px !important;
        margin-bottom: 10px !important;
        display: block !important;
        clear: both !important;
    }
}

/* Botón de filtros (móvil y desktop, inyectado por JS) */
#tcg-filter-toggle {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    width: auto !important;
    margin: 20px 0 15px 0 !important;
    padding: 12px 24px !important;
    background: #a855f7 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 10px !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    box-shadow: 0 4px 12px rgba(168,85,247,0.3) !important;
}
html body.woocommerce-page.archive #primary {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    margin-left: 0 !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
    box-sizing: border-box !important;
}
.tcg-filter-bar {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
    width: 100%;
}
.tcg-filter-bar-inner {
    background: #fff;
    border: 2px solid #a855f7;
    border-radius: 10px;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}
.tcg-filter-left {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.tcg-filter-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.tcg-filter-right .woocommerce-result-count {
    color: #444;
    font-size: 0.85rem;
    margin: 0;
    padding: 0;
    white-space: nowrap;
}
.tcg-filter-ordering select {
    background: #fff;
    color: #333;
    border: 1.5px solid #a855f7;
    border-radius: 6px;
    padding: 7px 30px 7px 12px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6' fill='none'%3e%3cpath d='M1 1L5 5L9 1' stroke='%23a855f7' stroke-width='2' stroke-linecap='round'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    font-family: inherit;
}
.tcg-filter-ordering select:focus {
    outline: none;
    border-color: #7c3aed;
    box-shadow: 0 0 0 2px rgba(168,85,247,0.2);
}
.tcg-filter-dd {
    position: relative;
}
.tcg-dd-btn {
    background: #fff;
    color: #333;
    border: 1.5px solid #a855f7;
    border-radius: 6px;
    padding: 7px 14px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    transition: all 0.2s;
    font-family: inherit;
}
.tcg-dd-btn:hover {
    background: #a855f7;
    color: #fff;
}
.tcg-dd-btn:hover svg path {
    stroke: #fff;
}
.tcg-dd-panel {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    background: #fff;
    border: 1.5px solid #a855f7;
    border-radius: 8px;
    padding: 6px 0;
    min-width: 180px;
    z-index: 9999;
    box-shadow: 0 8px 24px rgba(168,85,247,0.15);
}
.tcg-dd-panel.open {
    display: block;
}
.tcg-dd-panel a {
    display: block;
    padding: 7px 16px;
    color: #333;
    font-size: 0.85rem;
    text-decoration: none;
    transition: background 0.15s;
}
.tcg-dd-panel a:hover {
    background: #f5f0ff;
    color: #a855f7;
}
.tcg-dd-empty {
    display: block;
    padding: 7px 16px;
    color: #888;
    font-size: 0.85rem;
}
.tcg-reset-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1.5px solid #a855f7;
    border-radius: 6px;
    color: #a855f7;
    background: #fff;
    text-decoration: none;
    transition: all 0.2s;
    flex-shrink: 0;
}
.tcg-reset-btn:hover {
    background: #a855f7;
    color: #fff;
}
.tcg-cat-banner {
    width: 100%;
    display: block;
    line-height: 0;
    margin-bottom: 15px;
}
.tcg-cat-banner-img {
    width: 100%;
    height: auto;
    display: block;
    vertical-align: bottom;
}
.woocommerce-products-header {
    display: none !important;
}
@media (max-width: 768px) {
    .tcg-filter-bar { padding: 0 10px; margin: 0 auto; }
    .tcg-filter-bar-inner { padding: 8px 12px; gap: 6px; }
    .tcg-dd-btn { font-size: 0.78rem; padding: 5px 10px; }
    .tcg-filter-right .woocommerce-result-count { font-size: 0.75rem; }
    .tcg-filter-ordering select { font-size: 0.78rem; padding: 5px 24px 5px 10px; }
}

/* ========================================= */
/* 10. SEPARACIÓN ENTRE SECCIONES            */
/* ========================================= */
::selection {
    background: #a855f7;
    color: #ffffff;
}
.featured-products {
    padding: 50px 0;
    border-top: 3px solid #a855f7;
    margin-top: 0;
    width: 100%;
    overflow: hidden;
}
.featured-products .section-container {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}
.featured-products .section-header {
    max-width: 1200px;
    margin: 0 auto 2rem;
    padding: 0 20px;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}
.featured-products .section-header h2 {
    font-size: 1.8rem;
    font-weight: 800;
    margin: 0;
    color: #000;
}
.featured-products .view-all {
    color: #a855f7;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: color 0.2s;
}
.featured-products .view-all:hover {
    color: #7c3aed;
}
.featured-products .carousel-flex {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 98% !important;
    margin: 0 auto !important;
    overflow: visible;
    box-sizing: border-box;
}
.featured-products .carousel-flex .scroll-btn {
    position: relative !important;
    top: auto !important;
    transform: none !important;
    flex-shrink: 0 !important;
    margin: 0 25px !important;
}
.featured-products .carousel-wrapper {
    flex: 1 1 0% !important;
    min-width: 0 !important;
    width: auto !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    overflow: hidden;
    position: relative;
}
.featured-products .carousel-wrapper ul.products {
    display: flex !important;
    overflow-x: auto !important;
    flex-wrap: nowrap !important;
    gap: 24px !important;
    padding: 1rem 0 1.5rem 0;
    margin: 0 !important;
    box-sizing: border-box;
    scroll-behavior: smooth !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    width: 100%;
}
.featured-products .carousel-wrapper ul.products::-webkit-scrollbar {
    display: none !important;
}
.featured-products .carousel-wrapper ul.products li.product {
    flex: 0 0 220px;
    width: 220px;
    scroll-snap-align: start !important;
    margin: 0 !important;
    background: #ffffff !important;
    border: 1px solid rgba(168, 85, 247, 0.3) !important;
    border-radius: 12px !important;
    padding: 12px !important;
    box-sizing: border-box !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}
.featured-products .carousel-wrapper ul.products li.product:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 16px 32px rgba(0,0,0,0.12) !important;
}
.featured-products .carousel-wrapper ul.products li.product img {
    max-height: 260px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    margin: 0 auto 1rem auto !important;
    display: block !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}
.featured-products:nth-child(odd) {
    background: #faf5ff;
}
.featured-products:nth-child(even) {
    background: #ffffff;
}
.hero-slider-section {
    position: relative;
    border-bottom: 3px solid #a855f7;
}
.promo-banners-section {
    padding: 50px 5%;
    border-top: 3px solid #a855f7;
    background: #ffffff;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
}

