/* ================= FEATURED PRODUCTS SECTION ================= */
.featured-section {
    padding: 60px 30px;
    background-color: #131217;
}

/* Section Header */
.section-header {
    max-width: 1260px;
    margin: 0 auto 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.section-title {
    font-size: 20px;
    font-weight: 900;
    color: var(--text-white);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Game Filters */
.game-filters {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.game-filter {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s;
}

.game-filter:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-white);
}

.game-filter.active {
    background-color: rgba(255, 87, 34, 0.2);
    border-color: var(--accent-orange);
    color: var(--accent-orange);
}

.game-filter i {
    font-size: 14px;
}

.btn-view-new,
.btn-view-most {
    padding: 10px 24px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Chakra Petch', sans-serif;
    /* AMBOS IGUALES SIN ACTIVE */
    background-color: transparent;
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* HOVER - ambos iguales */
.btn-view-new:hover,
.btn-view-most:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-white);
}

/* ACTIVE - ambos iguales con naranja */
.btn-view-new.active,
.btn-view-most.active {
    background-color: var(--accent-orange);
    color: var(--text-white);
    border-color: var(--accent-orange);
}

/* Products Grid */
.products-grid {
    max-width: 1260px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 25px;
}

/* Product Card Wrapper */
.product-card-wrapper {
    display: flex;
    flex-direction: column;
}

/* Header con marca (fuera de la card) */
.product-marca-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    position: relative;
}

/* Marca Badge - CENTRADO */
.product-marca-badge {
    background-color: #2a2b30;
    color: white;
    padding: 8px 16px;
    font-family: 'Chakra Petch', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    border-radius: 6px;
    flex: 1;
    text-align: center;
}

/* Discount Badge */
.product-discount {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #ff6b3d, #ff8c5a);
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-family: 'Sporty Pro', sans-serif;
    font-size: 11px;
    font-weight: 700;
    z-index: 3;
    box-shadow: 0 4px 10px rgba(255, 87, 34, 0.4);
}

:root {
    --electric-border-color: #dd8448;
    --electric-light-color: #ff9d5c;
}

.btn-like {
    width: 32px;
    height: 32px;
    background-color: #2a2b30;
    border: none;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    flex-shrink: 0;
    margin-left: 10px;
    position: relative;
}

.btn-like i {
    color: #8f919a;
    font-size: 14px;
    transition: all 0.3s;
    position: relative;
}

/* Hover - Borde eléctrico sutil */
.btn-like:hover {
    background-color: rgb(51, 51, 51);
}

.btn-like:hover i {
    color: #48dd4a;
    filter: url(#electric-turbulent-subtle);
    text-shadow: 0 0 6px #48dd4a, 0 0 12px #000000, 0 0 18px rgba(221, 132, 72, 0.6);
}

/* Active - Borde eléctrico completo + relleno */
.btn-like.active {
    background-color: rgb(51, 51, 51);
}

.btn-like.active i {
    font-weight: 900;
    color: #b7dd48;
    filter: url(#electric-turbulent-strong);
    text-shadow: 0 0 6px #48dd4a, 0 0 12px #000000, 0 0 18px rgba(221, 132, 72, 0.6);
    animation: heartBeatElectric 1.5s infinite;
}

@keyframes heartBeatElectric {
    0%, 100% {
        transform: scale(1);
    }
    10%, 30% {
        transform: scale(1.15);
    }
    20%, 40% {
        transform: scale(1);
    }
}

/* Product Card */
.product-card {
    background-color: #1e1f23;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}



.product-card.highlighted {
    box-shadow: 0 0 20px rgba(255, 87, 34, 0.3);
    border: 2px solid var(--accent-orange);
}

/* Product Image Wrapper */
.product-image-wrapper {
    padding: 20px;
    background: linear-gradient(180deg, #2a2b30 0%, #1e1f23 100%);
    height: 220px;
    position: relative;
    display: block;
}

/* Link que rodea la imagen - expandir a todo el wrapper */
.product-image-wrapper > a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    transition: all 0.3s ease;
}

/* Efecto hover en el link de la imagen */
.product-image-wrapper > a:hover {
    transform: scale(1.05);
}

.product-image-wrapper > a:hover .product-image {
    filter: brightness(1.1);
}

.product-image {
    width: 100%;
    max-width: 150px;
    max-height: 180px;
    height: auto;
    display: block;
    object-fit: contain;
}

/* Degradado sobre la imagen para los textos */
.product-image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(30, 31, 35, 0.95) 0%, rgba(30, 31, 35, 0.7) 50%, transparent 100%);
    padding: 40px 15px 15px;
    z-index: 2;
    pointer-events: none;
}

/* Permitir clicks en links del overlay */
.product-image-overlay * {
    pointer-events: auto;
}

/* Submarca sobre la imagen */
.product-submarca-overlay {
    display: block;
    color: var(--text-muted);
    font-size: 10px;
    font-family: 'Chakra Petch', sans-serif;
    font-weight: 700;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Título sobre la imagen */
.product-title-overlay {
    font-size: 13px;
    font-weight: 400;
    font-family: 'Sporty Pro', sans-serif;
    color: var(--text-white);
    margin: 0;
    line-height: 1.2;
    text-transform: uppercase;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-title-overlay a {
    color: var(--text-white);
    text-decoration: none;
}

.product-title-overlay a:hover {
    color: var(--accent-orange);
}

/* Separador */
.product-divider {
    height: 1px;
    background-color: #2a2b30;
    margin: 0;
}

/* Product Info */
.product-info {
    padding: 3px 10px 15px 10px;
    background-color: #1e1f23;
}

/* Ocultar submarca y título ya que van sobre la imagen */
.product-submarca,
.product-title {
    display: none;
}

/* Eliminar línea separadora extra */
.product-divider-info {
    display: none;
}

/* Precio Grande */
.product-price-large {
 /*   font-family: 'Sporty Pro', sans-serif;/*/
    font-size: 28px;
    font-weight: 700;
    color: white;
}

/* Badges de Info (ahora DEBAJO del precio, HORIZONTALES) */
.product-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.badge-info {
    background: linear-gradient(135deg, #c5056f, #4b0209);
    color: white;
    padding: 3px 4px;
    border-radius: 4px;
    font-size: 10px;
    font-family: 'Chakra Petch', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
}

/* Botón Añadir al Carrito */
.btn-add-to-cart {
    width: 100%;
    padding: 12px;
    background-color: var(--accent-orange);
    color: var(--text-white);
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-add-to-cart:hover {
    background-color: #e64a19;
    transform: translateY(-2px);
}

.btn-add-to-cart i {
    font-size: 14px;
}

/* Botón Añadir al Carrito Grande */
.btn-add-to-cart-large {
    width: 100%;
    background: linear-gradient(135deg, #88be05, #1d7c0c);
    color: white;
    border: none;
    padding: 10px;
    border-radius: 8px;
    font-family: 'Chakra Petch', sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-add-to-cart-large:hover {
    background-color: #ff6b3d;
    transform: translateY(-2px);
}

/* View More Container */
.view-more-container {
    text-align: center;
    margin: 60px 0 40px 0;
}

.btn-view-more {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background-color: var(--accent-orange);
    color: white !important;
    padding: 16px 40px;
    border-radius: 8px;
    font-family: 'Chakra Petch', sans-serif;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 87, 34, 0.3);
}

.btn-view-more:hover {
    background-color: #ff6b3d;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 87, 34, 0.4);
}

/* Seller Info (ya no se usa pero mantengo por si acaso) */
.product-seller {
    display: flex;
    align-items: center;
    gap: 8px;
}

.seller-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.seller-name {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-white);
}

.seller-rating {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-left: auto;
}

.seller-rating i {
    font-size: 10px;
    color: #ffd700;
}

.rating-count {
    font-size: 10px;
    color: var(--text-muted);
    margin-left: 4px;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 1400px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .featured-section {
        padding: 40px 15px;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .game-filters {
        width: 100%;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 10px;
    }
    
    .game-filter,
    .btn-view-new,
    .btn-view-most {
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .product-title {
        font-size: 11px;
    }
    
    .product-price-large {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .product-title {
        font-size: 10px;
    }
    
    .product-price {
        font-size: 12px;
        padding: 4px 10px;
    }
    
    .product-price-large {
        font-size: 20px;
    }
}

/* ================= CARRITO AGRUPADO ================= */
.cart-group-header td {
    background-color: var(--nav-top-bg) !important;
    color: var(--accent-orange) !important;
    font-weight: 800;
    font-size: 14px;
    text-transform: uppercase;
    padding: 15px 20px !important;
    border-top: 2px solid var(--accent-orange);
}

.cart-group-item td {
    padding-left: 30px !important;
}

.woocommerce-cart-form table {
    background-color: var(--nav-top-bg);
    color: var(--text-white);
    border: 1px solid #2a2b30;
    border-radius: 12px;
    overflow: hidden;
}

.woocommerce-cart-form thead th {
    background-color: #25262b;
    color: var(--text-muted);
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 700;
    padding: 15px 20px;
}

.woocommerce-cart-form tbody td {
    border-top: 1px solid #2a2b30;
    padding: 15px 20px;
    color: var(--text-white);
}

.woocommerce-cart-form .product-remove a {
    color: #f44336 !important;
    font-size: 24px;
    font-weight: 700;
}

.woocommerce-cart-form .product-name a {
    color: var(--text-white);
    font-weight: 600;
}

.woocommerce-cart-form .product-name a:hover {
    color: var(--accent-orange);
}

.woocommerce-cart-form .actions {
    background-color: #25262b;
}

.woocommerce-cart-form .button {
    background-color: var(--accent-orange) !important;
    color: white !important;
    border: none !important;
    padding: 12px 25px !important;
    border-radius: 6px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
}

.woocommerce-cart-form .button:hover {
    background-color: #e64a19 !important;
}
.seo-intro-section {
    padding: 48px 20px;
    background: #0d0e12;
    color: #d8d9df;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.seo-intro-section .container {
    max-width: 980px;
    margin: 0 auto;
}

.seo-intro-section h2 {
    margin: 0 0 16px;
    color: #fff;
    font-size: clamp(26px, 4vw, 38px);
}

.seo-intro-section p {
    max-width: 850px;
    margin: 0 0 12px;
    line-height: 1.7;
}

.seo-intro-link {
    display: inline-block;
    margin-top: 12px;
    color: #75efff;
    font-weight: 700;
    text-decoration: none;
}

.seo-intro-link:hover,
.seo-intro-link:focus-visible {
    text-decoration: underline;
}
