/* assets/css/accessories/categories.css */

.accessories-categories {
    width: 100%;
    padding: 4rem 0;
    display: flex;
    justify-content: center;
    background-color: transparent; /* Aseguramos que no haya fondos globales heredados */
}

.accessories-categories__container {
    width: 100%;
    max-width: 1600px;
    display: flex;
    flex-direction: column;
    gap: 1rem; 
}

.accessories-categories__title {
    font-size: 3rem;
    font-weight: 600;
    color: #000000;
    margin: 0;
    letter-spacing: -0.02em;
}

.accessories-categories__grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start; /* CORRECCIÓN CLAVE: Evita el estiramiento vertical (stretch) */
    gap: 1.5rem;
}

/* Tarjeta de Categoría */
.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    gap: 0.8rem;
    transition: transform 0.3s ease, opacity 0.3s ease;
    flex: 0 1 calc(10% - 1.5rem); 
    min-width: 90px;
    
    /* CORRECCIONES CLAVE PARA EL FONDO Y ALTO */
    background-color: transparent !important; /* Fuerza la eliminación de fondos del tema */
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0;
    height: fit-content; /* Obliga a la tarjeta a medir solo lo que miden la imagen + texto */
}

.category-card:hover {
    transform: translateY(-4px);
    opacity: 0.8;
}

.category-card__image-wrapper {
    width: 85px; 
    height: 85px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: transparent;
}

.category-card__image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.category-card__name {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1d1d1f;
    text-align: center;
    line-height: 1.2;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .accessories-categories__grid {
        justify-content: flex-start;
        gap: 2rem;
    }
    .category-card {
        flex: 0 1 calc(20% - 2rem);
    }
}

@media (max-width: 768px) {
    .accessories-categories__title {
        font-size: 2.5rem;
    }
    .category-card {
        flex: 0 1 calc(33.333% - 2rem);
    }
}

@media (max-width: 480px) {
    .category-card {
        flex: 0 1 calc(50% - 2rem);
    }
    .accessories-categories {
        padding: 3rem 1rem;
    }
}