/* projects/vlog/css/products.css */

/* Variables de color para un tema oscuro limpio */
:root {
    --clean-dark-bg: #1e1e2e;      /* Fondo principal muy oscuro */
    --clean-card-bg: #28283d;      /* Fondo de tarjetas ligeramente más claro */
    --clean-accent-primary: #88d0ff; /* Azul claro suave para acentos */
    --clean-accent-secondary: #5effc4; /* Verde/cian suave para títulos */
    --clean-text-light: #f0f0f0;    /* Texto casi blanco */
    --clean-text-secondary: #b0b0c0; /* Texto gris claro para descripciones */
    --clean-border-color: #3a3a4a; /* Borde sutil */
    --clean-shadow: rgba(0, 0, 0, 0.2);
    --clean-amazon-orange: #FF9900;
    --clean-amazon-orange-hover: #e68a00;
}

/* Importar fuente de Google Fonts (asegúrate de que sea compatible con tu licencia) */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

/* Base de la página de productos */
.products-page-main-clean {
    background-color: var(--clean-dark-bg) !important;
    color: var(--clean-text-light) !important;
    font-family: 'Roboto', sans-serif !important; /* Usar Roboto */
    padding: 2.5rem 1.5rem !important;
    max-width: 1300px !important;
    margin: 0 auto !important;
    min-height: calc(100vh - 150px) !important; /* Ajustar según la altura de tu header/footer */
}

/* Sección Hero/Banner */
.products-hero-clean {
    background-color: var(--clean-card-bg) !important;
    border-radius: 10px !important;
    padding: 3.5rem 2.5rem !important;
    margin-bottom: 3.5rem !important;
    text-align: center !important;
    box-shadow: 0 4px 15px var(--clean-shadow) !important;
    border: 1px solid var(--clean-border-color) !important;
    position: relative !important;
    overflow: hidden !important;
}

.hero-content-clean {
    position: relative !important;
    z-index: 1 !important;
}

.products-hero-clean h1 {
    font-size: 3.8rem !important;
    color: var(--clean-accent-primary) !important;
    margin-bottom: 1rem !important;
    letter-spacing: -0.05rem !important;
    font-weight: 700 !important; /* Más negrita para impacto */
}

.products-hero-clean p {
    font-size: 1.3rem !important;
    color: var(--clean-text-secondary) !important;
    line-height: 1.7 !important;
    max-width: 900px !important;
    margin: 0 auto !important;
    font-weight: 300 !important; /* Más ligera para contraste */
}

/* Contenedor de categorías */
.products-categories-container-clean {
    margin-top: 4rem !important;
}

.category-section-clean {
    background-color: var(--clean-card-bg) !important;
    border-radius: 10px !important;
    padding: 3rem !important;
    margin-bottom: 3rem !important;
    box-shadow: 0 6px 18px var(--clean-shadow) !important;
    border: 1px solid var(--clean-border-color) !important;
}

.category-title-clean {
    font-size: 2.8rem !important;
    color: var(--clean-accent-secondary) !important;
    text-align: center !important;
    margin-bottom: 3rem !important;
    position: relative !important;
    padding-bottom: 0.8rem !important;
    font-weight: 500 !important;
}

.category-title-clean::after {
    content: '' !important;
    position: absolute !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    bottom: 0 !important;
    width: 100px !important;
    height: 3px !important;
    background-color: var(--clean-accent-secondary) !important;
    border-radius: 2px !important;
}

/* Cuadrícula de productos */
.product-grid-clean {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
    gap: 2.5rem !important;
    justify-content: center !important;
    align-items: stretch !important; /* Para que las tarjetas tengan la misma altura */
}

/* Tarjeta de producto individual */
.product-card-clean {
    background-color: #34344a !important; /* Un tono ligeramente diferente para las tarjetas */
    border-radius: 8px !important;
    box-shadow: 0 3px 10px var(--clean-shadow) !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out !important;
    border: 1px solid var(--clean-border-color) !important;
}

.product-card-clean:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 8px 20px var(--clean-shadow) !important;
}

.product-image-wrapper {
    background-color: #1a1a2e !important; /* Fondo oscuro detrás de la imagen */
    padding: 1rem !important; /* Añadir padding para que la imagen no esté pegada a los bordes */
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    height: 220px !important; /* Altura fija para el contenedor de la imagen */
}

.product-image-clean {
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important; /* La imagen se ajusta sin recortarse */
    border-radius: 5px !important;
}

.product-details-clean {
    padding: 1.5rem !important;
    flex-grow: 1 !important;
    display: flex !important;
    flex-direction: column !important;
}

.product-title-clean {
    font-size: 1.8rem !important;
    color: var(--clean-text-light) !important;
    margin-bottom: 0.6rem !important;
    line-height: 1.3 !important;
    font-weight: 500 !important;
}

.product-description-clean {
    font-size: 1rem !important;
    color: var(--clean-text-secondary) !important;
    margin-bottom: 1.5rem !important;
    flex-grow: 1 !important;
    line-height: 1.6 !important;
}

.product-price-clean {
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    color: var(--clean-accent-secondary) !important;
    margin-bottom: 1.5rem !important;
    text-align: right !important;
}

.buy-button-clean {
    display: block !important;
   
    padding: 1rem 1.5rem !important;
    background-color: var(--clean-amazon-orange) !important; /* Naranja de Amazon */
    color: white !important;
    text-align: center !important;
    text-decoration: none !important;
    border-radius: 5px !important;
    font-weight: 500 !important;
    font-size: 1.1rem !important;
    transition: background-color 0.3s ease, transform 0.2s ease !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2) !important;
}

.buy-button-clean:hover {
    background-color: var(--clean-amazon-orange-hover) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3) !important;
}

/* --- Estilos Responsivos --- */
@media (max-width: 1024px) {
    .products-hero-clean h1 {
        font-size: 3rem !important;
    }
    .products-hero-clean p {
        font-size: 1.15rem !important;
    }
    .category-title-clean {
        font-size: 2.4rem !important;
    }
    .product-grid-clean {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)) !important;
        gap: 2rem !important;
    }
}

@media (max-width: 768px) {
    .products-page-main-clean {
        padding: 2rem 1rem !important;
    }
    .products-hero-clean {
        padding: 3rem 1.5rem !important;
    }
    .products-hero-clean h1 {
        font-size: 2.5rem !important;
    }
    .products-hero-clean p {
        font-size: 1rem !important;
    }
    .category-section-clean {
        padding: 2.5rem !important;
    }
    .category-title-clean {
        font-size: 2rem !important;
    }
    .product-grid-clean {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)) !important;
        gap: 1.5rem !important;
    }
    .product-title-clean {
        font-size: 1.6rem !important;
    }
    .product-description-clean {
        font-size: 0.9rem !important;
    }
    .product-price-clean {
        font-size: 1.1rem !important;
    }
    .buy-button-clean {
        padding: 0.9rem 1.2rem !important;
        font-size: 1rem !important;
    }
    .product-image-wrapper {
        height: 180px !important;
    }
}

@media (max-width: 480px) {
    .products-page-main-clean {
        padding: 1.5rem 0.8rem !important;
    }
    .products-hero-clean {
        padding: 2.5rem 1rem !important;
    }
    .products-hero-clean h1 {
        font-size: 2.2rem !important;
    }
    .products-hero-clean p {
        font-size: 0.9rem !important;
    }
    .category-section-clean {
        padding: 2rem !important;
    }
    .category-title-clean {
        font-size: 1.8rem !important;
    }
    .product-grid-clean {
        grid-template-columns: 1fr !important; /* Una columna en pantallas muy pequeñas */
    }
    .product-image-wrapper {
        height: 160px !important;
    }
    .product-details-clean {
        padding: 1.2rem !important;
    }
    .product-title-clean {
        font-size: 1.4rem !important;
    }
    .product-description-clean {
        font-size: 0.85rem !important;
    }
    .product-price-clean {
        font-size: 1.05rem !important;
    }
    .buy-button-clean {
        font-size: 0.9rem !important;
    }
}
