/**
 * Productos por Subcategoría - Sección 2: "Encuentra el equipo ideal"
 *
 * Desktop: Sidebar izquierdo + grid 3 columnas
 * Móvil: Título centrado + grid 2 columnas + botón full-width
 *
 * Estilos base de tarjeta en precotizador-public.css (.featured-card)
 */

/* ===========================================
   SECCIÓN
   =========================================== */
.subcat-section {
    padding: 0 0 40px;
}

/* Línea divisora naranja */
.subcat-section__divider {
    border: none;
    border-top: 4px solid #FFB500;
    margin: 0 0 32px;
}

/* ===========================================
   LAYOUT DESKTOP: sidebar + grid
   =========================================== */
.subcat-section__layout {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

/* Sidebar izquierdo */
.subcat-section__sidebar {
    flex: 0 0 220px;
    padding-top: 8px;
}

/* Botón "Mostrar más productos" - hereda estilos existentes de .show-more-industry */

/* ===========================================
   GRID DESKTOP: 3 columnas
   =========================================== */
.subcat-products-desktop {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* ===========================================
   GRID MÓVIL: 2 columnas
   =========================================== */
.subcat-section__header-mobile {
    text-align: center;
    margin-bottom: 20px;
}

.subcat-products-mobile {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

/* Botón full-width en móvil */
.subcat-section__show-more--mobile {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    width: 100%;
    background: #292E31;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 14px 16px;
    font-family: "Century Gothic", sans-serif;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    margin-bottom: 24px;
}

/* ===========================================
   OVERRIDES TARJETA - SECCIÓN 2 DESKTOP
   =========================================== */

/* Sombra siempre visible en desktop */
.subcat-products-desktop .featured-card {
    border-radius: 20px;
    box-shadow: 0 4px 12px 0 rgba(0, 0, 0, 0.15);
}

/* Nombre: peso 700, underline en hover */
.subcat-products-desktop .featured-card__name {
    font-weight: 700;
}

.subcat-products-desktop .featured-card__name a:hover {
    text-decoration: underline;
    color: inherit;
}

.subcat-products-desktop .featured-card__figure {
    min-height: 160px;
}

.subcat-products-desktop .featured-card__figure img {
    max-height: 140px;
}

/* Botón desktop: 48×40 */
.subcat-products-desktop .featured-card__cart-btn.btn-add--icon {
    width: 48px;
    height: 40px;
}

/* ===========================================
   OVERRIDES TARJETA - SECCIÓN 2 MÓVIL
   =========================================== */

/* Sin sombra en móvil */
.subcat-products-mobile .featured-card {
    border-radius: 12px;
}

/* Nombre: peso 400 en móvil */
.subcat-products-mobile .featured-card__name {
    font-weight: 400;
}

.subcat-products-mobile .featured-card__name a:hover {
    text-decoration: underline;
    color: inherit;
}

.subcat-products-mobile .featured-card__figure {
    min-height: 120px;
}

.subcat-products-mobile .featured-card__figure img {
    max-height: 110px;
}

/* Botón móvil: 41×34 */
.subcat-products-mobile .featured-card__cart-btn.btn-add--icon {
    width: 41px;
    height: 34px;
}

.subcat-products-mobile .featured-card__cart-btn.btn-add--icon svg {
    width: 30px;
    height: 30px;
}

/* ===========================================
   RESPONSIVE
   =========================================== */

/* <375px: 1 columna en móvil */
@media (max-width: 374.98px) {
    .subcat-products-mobile {
        grid-template-columns: 1fr;
    }
}

/* Móvil: ajustar precios */
@media (max-width: 767.98px) {
    .subcat-section {
        padding: 0 0 24px;
    }

    .subcat-section__divider {
        margin-bottom: 20px;
    }

    .subcat-products-mobile .featured-card__price {
        font-size: 20px;
        line-height: 40px;
    }
}