/* ============================================================
   BIO FARMA | CATÁLOGO DE PRODUCTOS
   Hoja de estilos completa — ancho máximo 1200px
   PC: 4 productos por fila | Tablet/móvil: 2 por fila
   ============================================================ */

:root {
    --bf-primary: #087f5b;
    --bf-primary-dark: #066447;
    --bf-primary-light: #eaf7f0;
    --bf-ink: #1d352b;
    --bf-muted: #718078;
    --bf-line: #e4ece7;
    --bf-white: #ffffff;
    --bf-background: #f6f9f7;
    --bf-shadow: 0 7px 24px rgba(25, 60, 43, .07);
    --bf-shadow-hover: 0 15px 34px rgba(25, 60, 43, .13);
}

/* Página: límite real de 1200px */
.productos-page {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
    box-sizing: border-box;
    color: var(--bf-ink);
    font-family: "DM Sans", sans-serif;
}

.productos-page *,
.productos-page *::before,
.productos-page *::after {
    box-sizing: border-box;
}

/* Encabezado */
.productos-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 22px;
    padding: 30px;
    border: 1px solid #dceee4;
    border-radius: 24px;
    background:
        radial-gradient(circle at 90% 0%, rgba(8, 127, 91, .12), transparent 35%),
        linear-gradient(125deg, #fff 0%, #f0faf5 100%);
}

.productos-header-info {
    min-width: 0;
}

.productos-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 11px;
    color: var(--bf-primary);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.3px;
    text-transform: uppercase;
}

.productos-header h1 {
    margin: 0;
    color: #17382d;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: clamp(28px, 3.5vw, 40px);
    font-weight: 800;
    letter-spacing: -1.2px;
    line-height: 1.15;
}

.productos-header p {
    max-width: 600px;
    margin: 10px 0 0;
    color: var(--bf-muted);
    font-size: 14px;
    line-height: 1.65;
}

.productos-header-actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 10px;
}

/* Resumen */
.productos-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}

.producto-summary-card {
    display: flex;
    align-items: center;
    gap: 13px;
    min-width: 0;
    padding: 17px 19px;
    border: 1px solid var(--bf-line);
    border-radius: 17px;
    background: var(--bf-white);
    box-shadow: 0 3px 14px rgba(25, 60, 43, .035);
}

.producto-summary-icon {
    display: grid;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 14px;
    background: var(--bf-primary-light);
    color: var(--bf-primary);
    font-size: 17px;
}

.producto-summary-icon-light {
    background: #eef4ff;
    color: #527bb9;
}

.producto-summary-label {
    display: block;
    margin-bottom: 4px;
    color: var(--bf-muted);
    font-size: 11px;
    font-weight: 600;
}

.producto-summary-value {
    color: var(--bf-ink);
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 21px;
    font-weight: 800;
}

/* Barra de búsqueda */
.productos-toolbar {
    margin-bottom: 24px;
    padding: 13px;
    border: 1px solid var(--bf-line);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 4px 17px rgba(25, 60, 43, .04);
}

.productos-filter-form {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.productos-search,
.productos-category-filter {
    display: flex;
    align-items: center;
    min-width: 0;
    height: 46px;
    border: 1px solid #e3ebe6;
    border-radius: 12px;
    background: #f9fbfa;
    transition: border-color .2s, box-shadow .2s, background .2s;
}

.productos-search {
    position: relative;
    flex: 1 1 400px;
    gap: 10px;
    padding: 0 12px;
}

.productos-search > i,
.productos-category-filter > i {
    flex: 0 0 auto;
    color: #87978e;
    font-size: 14px;
}

.productos-search input {
    width: 100%;
    min-width: 0;
    height: 100%;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--bf-ink);
    font: inherit;
    font-size: 13px;
}

.productos-search input::placeholder {
    color: #9aa8a1;
}

.productos-search:focus-within,
.productos-category-filter:focus-within {
    border-color: #78bea3;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(8, 127, 91, .08);
}

.productos-search-clear {
    display: grid;
    flex: 0 0 27px;
    width: 27px;
    height: 27px;
    place-items: center;
    border-radius: 8px;
    background: #edf3ef;
    color: #60756a;
    text-decoration: none;
}

.productos-category-filter {
    flex: 0 1 225px;
    gap: 8px;
    padding: 0 11px;
}

.productos-category-filter select {
    width: 100%;
    min-width: 0;
    height: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: #43574d;
    font: inherit;
    font-size: 12px;
    cursor: pointer;
}

.btn-producto-filter {
    flex: 0 0 auto;
    height: 46px;
    padding: 0 20px;
    border: 0;
    border-radius: 12px;
    background: var(--bf-primary);
    color: #fff;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    transition: background .2s, transform .2s, box-shadow .2s;
}

.btn-producto-filter:hover {
    transform: translateY(-1px);
    background: var(--bf-primary-dark);
    box-shadow: 0 6px 14px rgba(8, 127, 91, .2);
}

/* Cabecera de catálogo */
.productos-list-container {
    min-width: 0;
}

.productos-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 0 2px 16px;
}

.productos-list-header h2 {
    margin: 0;
    color: #203b31;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -.4px;
}

.productos-list-header p {
    margin: 5px 0 0;
    color: var(--bf-muted);
    font-size: 12px;
}

.productos-list-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 11px;
    border: 1px solid #d9f0e4;
    border-radius: 999px;
    background: #f0faf4;
    color: #18845c;
    font-size: 10px;
    font-weight: 800;
    white-space: nowrap;
}

/* Grid de productos: 4 columnas dentro de 1200px */
.productos-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    width: 100%;
}

/* Tarjeta */
.producto-card {
    position: relative;
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #e5eee8;
    border-radius: 20px;
    background: #fff;
    box-shadow: var(--bf-shadow);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.producto-card:hover {
    transform: translateY(-4px);
    border-color: #c8e6d7;
    box-shadow: var(--bf-shadow-hover);
}

/* Área de imagen */
.producto-card-image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    margin: 9px 9px 0;
    overflow: hidden;
    border-radius: 15px;
    background: radial-gradient(circle at 50% 40%, #fff 0%, #f9fcfa 58%, #edf6f0 100%);
    isolation: isolate;
}

.producto-card-image::after {
    position: absolute;
    z-index: 0;
    right: 12%;
    bottom: 8%;
    left: 12%;
    height: 14px;
    border-radius: 50%;
    background: rgba(30, 75, 52, .07);
    content: "";
    filter: blur(9px);
}

.producto-card-image img {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    padding: 11px;
    object-fit: contain;
    cursor: zoom-in;
    transition: transform .3s ease;
}

.producto-card:hover .producto-card-image img {
    transform: scale(1.04);
}

/* Lupa tipo sticker: admite las clases habituales y botones */
.producto-card-image .producto-zoom,
.producto-card-image .btn-zoom-imagen,
.producto-card-image .imagen-zoom,
.producto-card-image .lupa-imagen,
.producto-card-image button {
    position: absolute;
    z-index: 4;
    top: 9px;
    right: 9px;
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .96);
    border-radius: 50%;
    background: rgba(255, 255, 255, .96);
    color: var(--bf-primary);
    box-shadow: 0 4px 13px rgba(26, 67, 48, .17);
    cursor: pointer;
    backdrop-filter: blur(7px);
    transition: transform .2s, background .2s, color .2s;
}

.producto-card-image .producto-zoom:hover,
.producto-card-image .btn-zoom-imagen:hover,
.producto-card-image .imagen-zoom:hover,
.producto-card-image .lupa-imagen:hover,
.producto-card-image button:hover {
    transform: scale(1.08);
    background: var(--bf-primary);
    color: #fff;
}

.producto-card-image .producto-zoom i,
.producto-card-image .btn-zoom-imagen i,
.producto-card-image .imagen-zoom i,
.producto-card-image .lupa-imagen i,
.producto-card-image button i {
    font-size: 14px;
}

/* Placeholder */
.producto-image-placeholder {
    position: absolute;
    z-index: 1;
    inset: 0;
    align-items: center;
    justify-content: center;
    color: #a4b8ad;
    font-size: 42px;
}

/* Texto y categoría */
.producto-card-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 14px 15px 15px;
}

.producto-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 7px;
    margin-bottom: 8px;
}

.producto-category {
    display: inline-flex;
    max-width: 100%;
    overflow: hidden;
    padding: 5px 8px;
    border-radius: 7px;
    background: #edf8f2;
    color: #16845b;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .2px;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.producto-name {
    display: -webkit-box;
    min-height: 42px;
    margin: 0 0 12px;
    overflow: hidden;
    color: #233c32;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

/* Precio y stock en un bloque compacto */
.producto-price-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 9px;
    margin-top: auto;
    margin-bottom: 13px;
    padding: 10px;
    border: 1px solid #e1eee6;
    border-radius: 13px;
    background: linear-gradient(135deg, #fff, #f5fbf7);
}

.producto-price-main {
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
}

.producto-price-main span {
    color: #7b8b82;
    font-size: 10px;
    font-weight: 600;
}

.producto-price-main strong {
    color: var(--bf-primary);
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 21px;
    font-weight: 800;
    line-height: 1.1;
    white-space: nowrap;
}

.producto-stock-info {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 9px 10px;
    border: 1px solid #d5eee1;
    border-radius: 12px;
    background: #effaf4;
    text-align: center;
}

.producto-stock-info span {
    color: #6f897b;
    font-size: 10px;
    font-weight: 600;
}

.producto-stock-info strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    color: #087f5b;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
}

.producto-stock-info strong::before {
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-radius: 50%;
    background: #20a56b;
    content: "";
}

/* Botón carrito */
.producto-card-acciones {
    margin-top: auto;
}

.producto-card-acciones form {
    width: 100%;
}

.btn-agregar-carrito {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 43px;
    padding: 9px 11px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, #0b9368, #087653);
    color: #fff;
    font: inherit;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 4px 11px rgba(8, 127, 91, .13);
    transition: transform .2s, box-shadow .2s, filter .2s;
}

.btn-agregar-carrito:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 16px rgba(8, 127, 91, .22);
    filter: saturate(1.08);
}

.btn-agregar-carrito:active {
    transform: translateY(0);
}

.btn-agregar-carrito i {
    font-size: 13px;
}

/* Sin resultados */
.productos-empty {
    display: flex;
    align-items: center;
    flex-direction: column;
    padding: 52px 20px;
    border: 1px dashed #d8e8de;
    border-radius: 20px;
    background: #fff;
    text-align: center;
}

.productos-empty-icon {
    display: grid;
    width: 68px;
    height: 68px;
    margin-bottom: 15px;
    place-items: center;
    border-radius: 20px;
    background: #edf8f2;
    color: #7aa992;
    font-size: 27px;
}

.productos-empty h3 {
    margin: 0;
    color: #294337;
    font-size: 18px;
    font-weight: 800;
}

.productos-empty p {
    max-width: 420px;
    margin: 8px 0 0;
    color: var(--bf-muted);
    font-size: 13px;
    line-height: 1.6;
}

.productos-alert {
    margin-bottom: 18px;
    padding: 13px 16px;
    border-radius: 12px;
    font-size: 13px;
}

.productos-alert-error {
    border: 1px solid #f4d6d6;
    background: #fff5f5;
    color: #a53d3d;
}

/* Paginación */
.productos-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin: 26px 0 10px;
}

.productos-pagination a,
.productos-pagination span {
    display: grid;
    min-width: 38px;
    height: 38px;
    padding: 0 9px;
    place-items: center;
    border: 1px solid #e2ece5;
    border-radius: 11px;
    background: #fff;
    color: #5c7065;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
    transition: all .2s;
}

.productos-pagination a:hover {
    border-color: #b9dfca;
    background: #f0faf4;
    color: var(--bf-primary);
}

.productos-pagination a.active {
    border-color: var(--bf-primary);
    background: var(--bf-primary);
    color: #fff;
    box-shadow: 0 4px 11px rgba(8, 127, 91, .18);
}

.productos-pagination .disabled {
    opacity: .38;
}

/* Modal de imagen */
.imagen-modal {
    position: fixed;
    z-index: 9999;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 22px;
    background: rgba(9, 24, 17, .82);
    backdrop-filter: blur(8px);
}

.imagen-modal.activo {
    display: flex;
}

.imagen-modal-contenido {
    display: block;
    max-width: min(90vw, 850px);
    max-height: 86vh;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 18px;
    background: #fff;
    object-fit: contain;
    box-shadow: 0 25px 80px rgba(0, 0, 0, .35);
    animation: bfZoomIn .22s ease-out;
}

.imagen-modal-cerrar {
    position: absolute;
    top: 18px;
    right: 22px;
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 50%;
    background: rgba(255, 255, 255, .15);
    color: #fff;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    transition: transform .2s, background .2s;
}

.imagen-modal-cerrar:hover {
    transform: rotate(90deg);
    background: rgba(255, 255, 255, .28);
}

@keyframes bfZoomIn {
    from { opacity: 0; transform: scale(.94); }
    to { opacity: 1; transform: scale(1); }
}

/* Pantallas amplias: mantener cuatro tarjetas */
@media (min-width: 1201px) {
    .productos-page {
        max-width: 1200px;
    }

    .productos-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* Tablet y dispositivos intermedios */
@media (max-width: 900px) {
    .productos-page {
        padding: 18px;
    }

    .productos-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .productos-header {
        padding: 23px;
        border-radius: 21px;
    }

    .productos-filter-form {
        flex-wrap: wrap;
    }

    .productos-search {
        flex-basis: 100%;
    }

    .productos-category-filter {
        flex: 1 1 200px;
    }
}

/* Móvil */
@media (max-width: 560px) {
    .productos-page {
        padding: 12px;
    }

    .productos-header {
        margin-bottom: 15px;
        padding: 19px 16px;
        border-radius: 18px;
    }

    .productos-header h1 {
        font-size: 28px;
        letter-spacing: -.7px;
    }

    .productos-header p {
        font-size: 12px;
    }

    .productos-eyebrow {
        font-size: 9px;
        letter-spacing: .9px;
    }

    .productos-summary {
        gap: 8px;
        margin-bottom: 15px;
    }

    .producto-summary-card {
        gap: 8px;
        padding: 11px 9px;
        border-radius: 13px;
    }

    .producto-summary-icon {
        flex-basis: 32px;
        width: 32px;
        height: 32px;
        border-radius: 10px;
        font-size: 13px;
    }

    .producto-summary-label {
        font-size: 9px;
    }

    .producto-summary-value {
        font-size: 16px;
    }

    .productos-toolbar {
        margin-bottom: 18px;
        padding: 9px;
        border-radius: 15px;
    }

    .productos-filter-form {
        gap: 8px;
    }

    .productos-search,
    .productos-category-filter,
    .btn-producto-filter {
        height: 42px;
    }

    .productos-search input,
    .productos-category-filter select {
        font-size: 11px;
    }

    .productos-category-filter {
        flex-basis: 100%;
    }

    .btn-producto-filter {
        flex: 1 1 100%;
    }

    .productos-list-header {
        align-items: flex-start;
        margin-bottom: 12px;
    }

    .productos-list-header h2 {
        font-size: 17px;
    }

    .productos-list-header p {
        font-size: 10px;
    }

    .productos-list-badge {
        gap: 4px;
        padding: 6px 7px;
        font-size: 8px;
    }

    .productos-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .producto-card {
        border-radius: 15px;
    }

    .producto-card-image {
        margin: 6px 6px 0;
        border-radius: 11px;
    }

    .producto-card-image img {
        padding: 6px;
    }

    .producto-card-image .producto-zoom,
    .producto-card-image .btn-zoom-imagen,
    .producto-card-image .imagen-zoom,
    .producto-card-image .lupa-imagen,
    .producto-card-image button {
        top: 6px;
        right: 6px;
        width: 30px;
        height: 30px;
    }

    .producto-card-content {
        padding: 10px 9px 11px;
    }

    .producto-card-top {
        margin-bottom: 6px;
    }

    .producto-category {
        padding: 4px 6px;
        font-size: 8px;
    }

    .producto-name {
        min-height: 36px;
        margin-bottom: 9px;
        font-size: 11px;
        line-height: 1.4;
    }

    /* Precio no se divide: S/ 23.00 queda en una línea */
    .producto-price-section {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 5px;
        margin-bottom: 9px;
        padding: 7px;
        border-radius: 10px;
    }

    .producto-price-main span,
    .producto-stock-info span {
        font-size: 9px;
    }

    .producto-price-main strong {
        font-size: 15px;
        white-space: nowrap;
    }

    .producto-stock-info {
        gap: 4px;
        padding: 7px 6px;
        border-radius: 9px;
    }

    .producto-stock-info strong {
        gap: 4px;
        font-size: 9px;
    }

    .producto-stock-info strong::before {
        width: 6px;
        height: 6px;
        flex-basis: 6px;
    }

    .btn-agregar-carrito {
        min-height: 37px;
        gap: 5px;
        padding: 7px 5px;
        border-radius: 9px;
        font-size: 9px;
    }

    .btn-agregar-carrito i {
        font-size: 10px;
    }

    .productos-pagination {
        gap: 5px;
        margin-top: 20px;
    }

    .productos-pagination a,
    .productos-pagination span {
        min-width: 34px;
        height: 34px;
        border-radius: 9px;
        font-size: 11px;
    }

    .imagen-modal {
        padding: 12px;
    }

    .imagen-modal-contenido {
        max-width: 96vw;
        max-height: 82vh;
        border-radius: 13px;
    }

    .imagen-modal-cerrar {
        top: 11px;
        right: 11px;
        width: 39px;
        height: 39px;
        font-size: 27px;
    }
}

/* Celulares muy angostos: conservar 2 columnas */
@media (max-width: 360px) {
    .productos-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px;
    }

    .producto-card-content {
        padding: 8px 6px 9px;
    }

    .producto-name {
        font-size: 10px;
    }

    .producto-price-section {
        gap: 3px;
        padding: 6px 4px;
    }

    .producto-price-main strong {
        font-size: 13px;
    }

    .producto-stock-info {
        padding: 6px 4px;
    }

    .producto-stock-info strong {
        font-size: 8px;
    }

    .btn-agregar-carrito {
        font-size: 8px;
    }
}

/* Accesibilidad */
@media (prefers-reduced-motion: reduce) {
    .producto-card,
    .producto-card-image img,
    .btn-agregar-carrito,
    .productos-pagination a,
    .imagen-modal-cerrar {
        transition: none;
    }

    .imagen-modal-contenido {
        animation: none;
    }
}


/* ============================================================
   AJUSTE VISUAL — TARJETAS COMPACTAS Y PRECIO SIN SOLAPAMIENTO
   ============================================================ */

/* Imagen más limpia y menos dominante */
.producto-card-image {
    aspect-ratio: 1 / 0.88;
    margin: 9px 9px 0;
    border-radius: 15px;
    background: linear-gradient(145deg, #f7fbf8 0%, #edf6f0 100%);
}

.producto-card-image img {
    padding: 14px;
}

/* Contenido con mejor separación */
.producto-card-content {
    padding: 14px 15px 15px;
}

.producto-card-top {
    margin-bottom: 7px;
}

.producto-name {
    min-height: 38px;
    margin-bottom: 12px;
    font-size: 14px;
    line-height: 1.4;
}

/* Precio y disponibilidad: áreas independientes, sin montarse */
.producto-price-section {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 9px;
    width: 100%;
    min-width: 0;
    margin-top: auto;
    margin-bottom: 13px;
    padding: 11px 12px;
    border: 1px solid #deeee4;
    border-radius: 13px;
    background: #f7fbf8;
}

.producto-price-main {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    min-width: 0;
}

.producto-price-main span {
    flex: 0 0 auto;
    color: #718078;
    font-size: 11px;
    font-weight: 700;
}

.producto-price-main strong {
    display: block;
    flex: 0 0 auto;
    color: #07845d;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: clamp(19px, 2vw, 24px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -.45px;
    white-space: nowrap;
}

.producto-stock-info {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100%;
    min-width: 0;
    padding: 8px 10px;
    border: 1px solid #d8eee2;
    border-radius: 9px;
    background: #eef9f3;
    text-align: center;
}

.producto-stock-info span {
    color: #718b7c;
    font-size: 10px;
    font-weight: 700;
}

.producto-stock-info strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    color: #087f5b;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
}

.producto-stock-info strong::before {
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-radius: 50%;
    background: #20a56b;
    content: "";
}

/* Botón más distinguido y con espacio */
.btn-agregar-carrito {
    min-height: 44px;
    border-radius: 12px;
    font-size: 12px;
    letter-spacing: .1px;
}

/* Ajustes para pantallas de móvil */
@media (max-width: 560px) {
    .producto-card-image {
        aspect-ratio: 1 / 0.82;
        margin: 6px 6px 0;
        border-radius: 11px;
    }

    .producto-card-image img {
        padding: 10px;
    }

    .producto-card-content {
        padding: 10px 9px 11px;
    }

    .producto-name {
        min-height: 34px;
        margin-bottom: 9px;
        font-size: 11px;
        line-height: 1.4;
    }

    .producto-price-section {
        flex-direction: column;
        gap: 7px;
        margin-bottom: 9px;
        padding: 9px;
        border-radius: 10px;
    }

    .producto-price-main {
        align-items: baseline;
        justify-content: space-between;
        gap: 5px;
    }

    .producto-price-main span {
        font-size: 10px;
    }

    .producto-price-main strong {
        font-size: 18px;
        letter-spacing: -.35px;
    }

    .producto-stock-info {
        justify-content: center;
        gap: 6px;
        padding: 7px 5px;
    }

    .producto-stock-info span {
        font-size: 9px;
    }

    .producto-stock-info strong {
        font-size: 10px;
    }

    .btn-agregar-carrito {
        min-height: 38px;
        gap: 6px;
        padding: 7px 5px;
        border-radius: 9px;
        font-size: 10px;
    }
}

/* Móviles muy angostos: mantener precio en una sola línea */
@media (max-width: 360px) {
    .producto-price-section {
        padding: 8px 7px;
    }

    .producto-price-main strong {
        font-size: 16px;
    }

    .producto-stock-info {
        flex-wrap: wrap;
        row-gap: 3px;
    }

    .producto-stock-info strong {
        font-size: 9px;
    }
}
