.producto-card .variant-link.variant-selected {
    background-color: #009E73 !important; /* verde Material */
    color: #fff !important;
    font-weight: 600;
    border: 1px solid #2e7d32 !important;
}

/* ===============================
   MOBILE — OPTIMIZACIÓN HOME
   =============================== */
/* ============================
   SUBCATEGORÍAS — MOBILE ≤1024px
============================ */
@media (max-width: 1024px) {
	
	/* ===============================
   MIGAS DE PAN — MOBILE ≤1024px
   =============================== */

  .producto-breadcrumb {
        font-size: 1.7rem !important;
        line-height: 1.8 !important; /* aumenta el espacio entre líneas */
        
    }

    /* ============================
       GRILLA
    ============================ */
    .productos-grid.grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 1.6rem !important;
    }

    /* ============================
       CARD
    ============================ */
    .producto-card {
        padding: 1.4rem !important;
        border-radius: 1.4rem !important;
        box-shadow: var(--shadow-2);
    }

    /* ============================
       IMAGEN
    ============================ */
    .producto-card .subcat-product-img {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 5 / 5 !important;
        object-fit: contain !important;
        background: #fff !important;
        display: block !important;
    }

    /* ============================
       TÍTULO
    ============================ */
    .producto-card h3 {
        font-size: 1.9rem !important;
        line-height: 1.4 !important;
        font-weight: 600 !important;
        text-align: center !important;

        display: -webkit-box !important;
        -webkit-line-clamp: 3 !important;
        -webkit-box-orient: vertical !important;

        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: normal !important;

        min-height: calc(1.6rem * 1.4 * 3) !important;
        margin-bottom: 1rem !important;
    }

    /* ============================
       VARIANTES
    ============================ */
    .producto-card .variant-link {
        font-size: 2.2rem !important; /* antes 1.8rem */
        padding: 1.2rem 1.6rem !important; /* más aire */
        min-width: 120px !important; /* más ancho */
        text-align: center !important;
        border-radius: 1.2rem !important;
        font-weight: 700 !important;
    }

    .producto-card .variant-link.variant-selected {
        background-color: #009E73 !important;
        color: #fff !important;
        font-weight: 700 !important;
        border: 1px solid #009E73 !important;
    }

    /* ============================
       PRECIO
    ============================ */
    .subcat-product-price {
        font-size: 2.8rem !important;
        font-weight: 800 !important;
        color: #d32f2f !important;
        text-align: center !important;
        margin-top: 1.4rem !important;
        margin-bottom: 1.2rem !important;
        line-height: 1.3 !important;
    }

    /* ============================
       PRECIO TACHADO
    ============================ */
    .precio-wrapper {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 0.8rem !important;
        margin-top: 1.2rem !important;
        margin-bottom: 1.6rem !important;
    }

    .precio-tachado {
        font-size: 2.3rem !important;
        color: #777 !important;
        text-decoration: line-through !important;
    }

    /* ============================
       CANTIDADES — TÁCTIL
    ============================ */
    .qty-wrapper {
        width: 100% !important;
        max-width: 320px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 1rem !important;
        margin: 0 auto !important;
    }

    .qty-input-subcat {
        -webkit-appearance: none !important;
        appearance: none !important;

        width: 90px !important;
        height: 90px !important;
        font-size: 2.8rem !important;
        font-weight: 700 !important;

        padding: 0 !important;
        margin: 0 !important;

        border: 1px solid #ccc !important;
        border-radius: 0.8rem !important;

        text-align: center !important;

        display: flex !important;
        align-items: center !important;
        justify-content: center !important;

        background: #fff !important;
    }

    .qty-plus-subcat,
    .qty-minus-subcat {
        width: 90px !important;
        height: 90px !important;
        font-size: 3rem !important;
        font-weight: 800 !important;

        padding: 0 !important;
        margin: 0 !important;

        border-radius: 0.8rem !important;
        background-color: #f3f3f3 !important;
        color: #333 !important;
        border: 1px solid #ddd !important;

        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .qty-minus-subcat {
        border-top-right-radius: 0 !important;
        border-bottom-right-radius: 0 !important;
    }

    .qty-plus-subcat {
        border-top-left-radius: 0 !important;
        border-bottom-left-radius: 0 !important;
    }

    /* ============================
       BOTÓN AGREGAR — TÁCTIL
    ============================ */
    .btn-add-subcat {
        width: 100% !important;
        max-width: 320px !important;
        font-size: 2.6rem !important;
        font-weight: 700 !important;
        padding: 1.8rem 2.6rem !important;
        border-radius: 2.4rem !important;
        min-height: 80px !important;

        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 1.2rem !important;

        margin-left: auto !important;
        margin-right: auto !important;

        box-shadow: 0 3px 8px rgba(0,0,0,0.18);
        transition: transform 0.15s ease, box-shadow 0.15s ease;
    }

    .btn-add-subcat:hover {
        transform: translateY(-3px);
        box-shadow: 0 5px 12px rgba(0,0,0,0.25);
    }

    .btn-add-subcat .material-symbols-rounded {
        font-size: 3.2rem !important;
    }
	/* ============================
   VARIANTES — MOBILE FIX (ESPACIO EXTRA)
============================ */
.producto-card .producto-variantes {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 1.4rem !important; /* MÁS ESPACIO ENTRE BOTONES */
    margin-top: 1.2rem !important;
}

.producto-card .variant-link {
    flex: 1 1 46% !important; /* más aire entre columnas */
    max-width: 100% !important;

    font-size: 1.7rem !important;
    line-height: 1.35 !important; /* MÁS ALTURA ENTRE LÍNEAS */
    padding: 1.4rem 1.2rem !important; /* MÁS ALTURA DEL BOTÓN */

    white-space: normal !important; /* permite saltos */
    text-align: center !important;

    border-radius: 1.2rem !important;
    font-weight: 700 !important;
}

.producto-card .variant-link.variant-selected {
    background-color: #009E73 !important;
    color: #fff !important;
    border: 1px solid #009E73 !important;
}


}


/* ============================================================
   DESKTOP ≥1025px — VERSIÓN FINAL
============================================================ */

@media (min-width: 1025px) {

    /* TARJETA */
    .productos-grid .producto-card {
        padding: 0.8rem !important;
        border-radius: 1.2rem !important;
        box-shadow: 0 1px 4px rgba(0,0,0,0.08);
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

    .productos-grid .producto-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 3px 8px rgba(0,0,0,0.15);
    }

    /* IMAGEN */
    .productos-grid .subcat-product-img {
        height: 180px !important;
        object-fit: contain !important;
        display: block !important;
        margin: 0 auto !important;
    }

    /* NOMBRE */
    .productos-grid .producto-card h3 {
        font-size: 0.95rem !important;
        line-height: 1.25 !important;
        font-weight: 600 !important;
        text-align: center !important;
        margin-bottom: 0.3rem !important;
    }

    /* PRECIO */
    .productos-grid .subcat-product-price {
        font-size: 1.5rem !important;
        font-weight: 800 !important;
        color: #d32f2f !important;
        text-align: center !important;
        margin-top: 0.4rem !important;
        margin-bottom: 0.4rem !important;
        display: block !important;
    }

    .precio-tachado {
        font-size: 1rem !important;
        color: #777 !important;
        text-decoration: line-through !important;
    }

    .precio-wrapper {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 0.3rem !important;
        margin-bottom: 0.8rem !important;
    }

    /* BADGE ML */
    .badge-descuento-ml {
        position: absolute !important;
        top: 0.6rem !important;
        right: 0.6rem !important;
        background: #ffca28 !important;
        color: #000 !important;
        font-size: 0.85rem !important;
        font-weight: 700 !important;
        padding: 0.25rem 0.5rem !important;
        border-radius: 0.4rem !important;
        box-shadow: 0 2px 4px rgba(0,0,0,0.15);
        z-index: 10 !important;
    }

    /* CONTROLES DE CANTIDAD */
    .qty-wrapper {
        max-width: 250px !important;
        margin: 0 auto !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 0.5rem !important;
    }

    .qty-input-subcat {
        height: 40px !important;
        width: 70px !important;
        font-size: 1.3rem !important;
        line-height: 40px !important;
        text-align: center !important;
        border-radius: 0.6rem !important;
        border: 1px solid #ccc !important;
        font-weight: 600 !important;
        background-color: #fff !important;
        box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
        display: block !important;
    }

    .qty-plus-subcat,
    .qty-minus-subcat {
        height: 40px !important;
        width: 40px !important;
        font-size: 1.8rem !important;
        background-color: #f3f3f3 !important;
        border: 1px solid #ddd !important;
        border-radius: 0.6rem !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-weight: 700 !important;
        cursor: pointer !important;
    }
   /* Ocultar flechas del input tipo number en desktop */
.qty-input-subcat::-webkit-outer-spin-button,
.qty-input-subcat::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}

.qty-input-subcat[type=number] {
    -moz-appearance: textfield !important; /* Firefox */
}
.qty-minus-subcat {
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

.qty-input-subcat {
    border-radius: 0 !important;
}

.qty-plus-subcat {
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
}

    /* BOTÓN AGREGAR */
    .btn-add-subcat {
        max-width: 240px !important;
        font-size: 1.2rem !important;
        padding: 0.8rem 1.4rem !important;
        border-radius: 1.2rem !important;
        margin-left: auto !important;
        margin-right: auto !important;
        gap: 0.4rem !important;
        min-height: 44px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        line-height: 1.2 !important;
        box-shadow: 0 2px 6px rgba(0,0,0,0.15);
        transition: transform 0.15s ease, box-shadow 0.15s ease;
    }

    .btn-add-subcat:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    }

    .btn-add-subcat .material-symbols-rounded {
        font-size: 1.6rem !important;
        line-height: 1 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
}
