/* Mega Menú Visual - Playeras Chispita */
.mega-menu-item {
    position: static !important;
}

.mega-menu-wrapper {
    position: relative;
    /*border: 2px solid red !important;  DEBUG - Quitar después */
}

.mega-menu-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-25%);
    width: 950px;
    background: white;
   /* border: 3px solid blue !important; DEBUG - Quitar después */
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    z-index: 1000;
    padding: 25px;
}

.mega-menu-item:hover .mega-menu-dropdown {
    display: block !important;
    animation: fadeInUp 0.3s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Layout del mega menú */
.mega-menu-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.mega-menu-categories h4,
.mega-menu-products h4 {
    color: #1e293b;
    margin-bottom: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    border-bottom: 2px solid #0ea5e9;
    padding-bottom: 8px;
}

/* Categorías con imágenes */
.category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.category-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    color: #475569;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
}

.category-item:hover {
    background: #ffffff;
    border-color: #0ea5e9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.2);
}

.category-image {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    object-fit: cover;
    background: #e2e8f0;
    flex-shrink: 0;
}

.category-name {
    font-size: 0.9rem;
    font-weight: 500;
}

/* Productos aleatorios */
.product-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.product-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    color: #475569;
    border: 1px solid #f1f5f9;
    background: #ffffff;
}

.product-item:hover {
    border-color: #0ea5e9;
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.1);
}

.product-image {
    width: 50px;
    height: 50px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
    background: #f8fafc;
}

.product-info {
    flex: 1;
}

.product-title {
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 4px;
    line-height: 1.2;
}

.product-price {
    font-size: 0.8rem;
    color: #0ea5e9;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .mega-menu-dropdown {
        width: 300px;
        left: 20px;
        transform: none;
    }
    
    .mega-menu-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .category-grid {
        grid-template-columns: 1fr;
    }
}

/* Mejoras para la versión nueva */
.featured-product {
    margin-top: 10px;
}

.featured-product-item {
    display: block;
    text-decoration: none;
    color: inherit;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 15px;
    transition: all 0.3s ease;
    background: white;
}

.featured-product-item:hover {
    border-color: #0ea5e9;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.featured-product-image {
    width: 100%;
    height: 120px;
    object-fit: contain;
    border-radius: 8px;
    margin-bottom: 10px;
    background: #f8fafc;
}

.featured-product-info {
    text-align: center;
}

.featured-product-title {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 5px;
    line-height: 1.2;
}

.featured-product-price {
    color: #0ea5e9;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 8px;
}

.featured-product-badge {
    background: #ef4444;
    color: white;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 12px;
    display: inline-block;
}

.no-products {
    text-align: center;
    padding: 20px;
    color: #64748b;
    font-style: italic;
}