/* ===============================================
   APPLE PREMIUM MOBILE STYLE
   1 columna grande SOLO en móvil
   Desktop mantiene el grid de 4 columnas original
   =============================================== */

/* ================================
   SOLO MOBILE (≤768px)
   1 COLUMNA GRANDE ESTILO APPLE
   OCUPANDO TODO EL ANCHO
   ================================ */
@media (max-width: 768px) {
    
    /* Grid cambia a 1 columna SIN padding lateral */
    .products-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 16px !important; /* Gap entre cards */
        padding: 0 !important; /* SIN padding lateral */
        max-width: 100% !important; /* Ancho completo */
        margin: 0 !important;
    }
    
    /* Cards OCUPAN TODO EL ANCHO */
    .product-card-premium {
        width: 100% !important; /* Ancho completo */
        max-width: 100% !important; /* Sin límite de ancho */
        min-height: 420px !important;
        margin: 0 !important; /* Sin márgenes */
        border-radius: 0 !important; /* Sin bordes redondeados para look edge-to-edge */
    }
    
    /* Imagen protagonista más grande */
    .product-image-container {
        padding: 30px !important;
    }
    
    /* Tipografía mejorada */
    .product-title {
        font-size: 1.1rem !important; /* +37% más grande */
        line-height: 1.4 !important;
    }
    
    .product-price-premium {
        font-size: 1.5rem !important; /* +50% más grande */
    }
    
    .product-specs {
        font-size: 0.85rem !important;
    }
    
    /* Contenido con más padding */
    .product-content {
        padding: 24px !important;
        gap: 14px !important;
    }
    
    /* Botones táctiles 48px */
    .product-actions-premium {
        display: flex !important;
        gap: 10px !important;
        margin-top: auto !important;
    }
    
    .btn-view-premium {
        flex: 1 !important;
        height: 48px !important;
        font-size: 0.95rem !important;
        border-radius: 12px !important;
    }
    
    .btn-cart-premium {
        width: 48px !important;
        height: 48px !important;
        border-radius: 12px !important;
        font-size: 1.3rem !important;
    }
    
    /* Stock badges más grandes */
    .stock-badge {
        padding: 10px 14px !important;
        font-size: 0.85rem !important;
        border-radius: 10px !important;
    }
    
    /* Botón favorito más grande */
    .btn-favorite {
        width: 44px !important;
        height: 44px !important;
        font-size: 1.1rem !important;
    }
    
    /* Badges de producto */
    .product-badge {
        padding: 8px 16px !important;
        font-size: 0.7rem !important;
    }
}

/* ================================
   MOBILE STANDARD (<480px)
   Ajustes para pantallas más pequeñas
   ================================ */
@media (max-width: 480px) {
    .products-grid {
        padding: 0 !important; /* Sin padding */
        gap: 12px !important;
    }
    
    .product-card-premium {
        min-height: 400px !important;
        border-radius: 0 !important; /* Edge to edge */
    }
    
    .product-image-container {
        padding: 25px !important;
    }
    
    .product-title {
        font-size: 1.05rem !important;
    }
    
    .product-price-premium {
        font-size: 1.4rem !important;
    }
    
    .product-content {
        padding: 22px !important;
    }
}

/* ================================
   MOBILE PEQUEÑO (<375px)
   Ajustes para iPhone SE, etc
   ================================ */
@media (max-width: 375px) {
    .products-grid {
        padding: 0 !important; /* Sin padding */
        gap: 10px !important;
    }
    
    .product-card-premium {
        min-height: 380px !important;
        border-radius: 0 !important; /* Edge to edge */
    }
    
    .product-image-container {
        padding: 20px !important;
    }
    
    .product-content {
        padding: 20px !important;
    }
    
    .product-title {
        font-size: 1rem !important;
    }
    
    .product-price-premium {
        font-size: 1.3rem !important;
    }
}

/* ================================
   MODO SECCIONES - TAMBIÉN MOBILE
   Cuando filtro = "Todos"
   ================================ */
@media (max-width: 768px) {
    .products-section-group .products-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 16px !important;
        padding: 0 !important; /* Sin padding para ancho completo */
    }
    
    .section-category-title {
        padding: 0 16px !important; /* Solo el título con padding */
        margin: 30px 0 20px !important;
    }
}

/* ================================
   ANIMACIONES MOBILE
   ================================ */
@media (max-width: 768px) {
    .product-card-premium {
        animation: fadeInUp 0.5s ease-out;
        animation-fill-mode: both;
    }
    
    .product-card-premium:nth-child(1) { animation-delay: 0.05s; }
    .product-card-premium:nth-child(2) { animation-delay: 0.1s; }
    .product-card-premium:nth-child(3) { animation-delay: 0.15s; }
    .product-card-premium:nth-child(4) { animation-delay: 0.2s; }
    .product-card-premium:nth-child(5) { animation-delay: 0.25s; }
    .product-card-premium:nth-child(6) { animation-delay: 0.3s; }
    
    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

/* ================================
   NOTA IMPORTANTE
   ================================
   
   Este CSS SOLO afecta dispositivos móviles (≤768px).
   
   En desktop (>768px):
   - Se mantiene el grid de 4 columnas original
   - Se mantienen los tamaños normales de texto
   - Se mantiene el diseño compacto
   
   En mobile (≤768px):
   - Grid de 1 columna
   - Cards de 358px de ancho máximo
   - Tipografía más grande (+37% títulos, +50% precios)
   - Botones táctiles de 48px
   - Padding generoso de 30px en imágenes
   
   ================================ */
