/* ================================================
   AJUSTES DE TAMAÑO - PRODUCTOS Y CARRITO
   Solo override de tamaños específicos
   ================================================ */

/* =========================
   PRODUCTOS - DESKTOP
   ========================= */

/* Grid más compacto */
.products-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
    gap: 20px !important;
}

/* Cards más pequeñas */
.product-card {
    max-width: 100%;
}

.product-image {
    aspect-ratio: 1 / 1 !important;
    height: auto !important;
}

.product-info {
    padding: 12px !important;
}

.product-info h3 {
    font-size: 0.9rem !important;
}

.product-price {
    font-size: 0.95rem !important;
}

/* =========================
   PRODUCTOS - TABLET
   ========================= */
@media (min-width: 769px) and (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 18px !important;
    }
}

/* =========================
   PRODUCTOS - MOBILE 2x2
   ========================= */
@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
        padding: 0 10px !important;
    }

    .product-card {
        border-radius: 14px !important;
    }

    .product-image {
        height: auto !important;
    }

    .product-info {
        padding: 10px !important;
    }

    .product-info h3 {
        font-size: 0.85rem !important;
        line-height: 1.2 !important;
    }

    .product-price {
        font-size: 0.9rem !important;
    }

    .product-actions {
        gap: 6px !important;
        margin-top: 8px !important;
    }

    .product-actions button {
        height: 32px !important;
        font-size: 0.75rem !important;
    }

    .product-actions .cart-btn {
        width: 32px !important;
        font-size: 0.9rem !important;
    }
}

/* =========================
   PRODUCTOS - MOBILE PEQUEÑO
   ========================= */
@media (max-width: 480px) {
    .products-grid {
        gap: 10px !important;
    }

    .product-card {
        border-radius: 12px !important;
    }

    .product-info {
        padding: 8px !important;
    }

    .product-info h3 {
        font-size: 0.8rem !important;
    }

    .product-price {
        font-size: 0.85rem !important;
    }

    .product-actions button {
        height: 30px !important;
    }
}

/* =========================
   CARRITO - DESKTOP
   ========================= */

/* Items del carrito más compactos en desktop */
.cart-product-card,
.cart-item {
    padding: 10px !important;
    gap: 10px !important;
}

.cart-product-image {
    width: 60px !important;
    height: 60px !important;
    min-width: 60px !important;
}

.cart-product-name {
    font-size: 0.85rem !important;
}

.cart-product-price {
    font-size: 0.95rem !important;
}

.cart-qty-btn {
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    font-size: 0.75rem !important;
}

.cart-qty-number {
    font-size: 0.85rem !important;
    min-width: 20px !important;
}

.cart-remove-btn {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    font-size: 0.8rem !important;
}

/* =========================
   CARRITO - MOBILE
   ========================= */
@media (max-width: 768px) {
    
    /* Imagen del producto - TAMAÑO ÓPTIMO */
    .cart-product-image,
    #cart-items > div:not(.empty-cart) img {
        height: 180px !important;
        max-height: 180px !important;
    }

    /* Card más compacta */
    .cart-product-card,
    #cart-items > div:not(.empty-cart) {
        padding: 14px !important;
        margin-bottom: 14px !important;
        border-radius: 18px !important;
    }

    /* Textos más pequeños */
    .cart-product-name,
    #cart-items h3,
    #cart-items h4 {
        font-size: 1rem !important;
    }

    .cart-product-price,
    #cart-items p {
        font-size: 0.9rem !important;
    }

    /* Controles de cantidad más compactos */
    .cart-quantity-controls {
        padding: 6px 14px !important;
        min-height: 46px !important;
    }

    .cart-qty-btn {
        width: 38px !important;
        height: 38px !important;
        min-width: 38px !important;
    }

    .cart-qty-number {
        font-size: 1.05rem !important;
    }

    .cart-remove-btn {
        width: 46px !important;
        height: 46px !important;
        min-width: 46px !important;
    }
}

/* =========================
   CARRITO - MOBILE PEQUEÑO
   ========================= */
@media (max-width: 480px) {
    
    /* Imagen un poco más pequeña pero visible */
    .cart-product-image,
    #cart-items > div:not(.empty-cart) img {
        height: 160px !important;
    }

    .cart-product-card,
    #cart-items > div:not(.empty-cart) {
        padding: 12px !important;
    }

    .cart-qty-btn {
        width: 34px !important;
        height: 34px !important;
        min-width: 34px !important;
    }

    .cart-remove-btn {
        width: 42px !important;
        height: 42px !important;
        min-width: 42px !important;
    }
}

/* =========================
   HERO SECTION – MOBILE FIX
========================= */
@media (max-width: 768px) {
    .hero {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .hero {
        min-height: 90vh;
        padding: 5rem 1.5rem 3rem;
    }

    .hero-title {
        font-size: clamp(2.2rem, 6vw, 3rem);
        line-height: 1.1;
        margin-bottom: 1rem;
    }

    .hero-description {
        font-size: 1rem;
        max-width: 500px;
        margin-bottom: 1.5rem;
        opacity: 0.85;
    }

    .hero-actions {
        margin-bottom: 2rem;
    }

    .hero-actions .btn {
        width: 100%;
        max-width: 320px;
    }

    .hero-image {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    }

    .hero-image img {
        width: 100%;
        height: auto;
    }







}
