#count {
    font-size: 1.2rem;
    color: #808080;
    margin-bottom: 1.5rem;
}

#end {
    font-size: 1rem;
    font-style: italic;
    color: #808080;
    margin-top: 3rem;
    text-align: center;
}

/* Grid contenedor */
main > ul {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    align-items: stretch;
}

/* Tarjeta de producto */
main > ul > li.product > article {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Imagen */
.product .image {
    width: 100%;
    aspect-ratio: 1;
    background-color: #f9f5f5;
    padding: 1rem;
    border-radius: 1rem;
    overflow: hidden;
    position: relative;
}

.product .image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

main > ul > li.product > article:hover .image img {
    transform: scale(1.05);
}

/* Contenido */
.product .content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem 1.1rem 2rem;
    flex: 1;
}

.product .title {
    font-size: 1.3rem;
    font-weight: 400;
    color: #313131;
}

.product h4 span:not(:last-child) {
    padding-right: 0.7rem;
    margin-right: 0.7rem;
    border-right: 1px solid #b3b3b3;
}

.product .sku {
    font-size: 1rem;
    font-weight: 600;
    color: #f02004;
}

.product .tag {
    font-size: 1rem;
    font-weight: 400;
    color: #808080;
}

/* =====================================================
   Precios — $RD, OLD tachado gris, descuento #f02004
   ===================================================== */
.product .price {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.45rem;
}

.product .price-new {
    font-size: 1.5rem;
    font-weight: 400;
    color: #313131;
    line-height: 1.2;
}

.product .price-old {
    font-size: 1rem;
    font-weight: 400;
    color: #808080;
    text-decoration: line-through;
    line-height: 1.2;
}

.product .price-discount {
    font-size: 1rem;
    font-weight: 400;
    color: #f02004;
    line-height: 1.2;
}

.product .preview-price {
    justify-content: center;
    padding: 0.55rem 0.2rem 0;
}

/* =====================================================
   Responsive
   ===================================================== */

/* Tablet: 2 columnas */
@media (max-width: 1024px) {
    main > ul {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
}

/* Móvil: 1 columna */
@media (max-width: 640px) {
    #end {
        margin-top: 2rem;
    }

    main > ul {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .product .content {
        padding: 0.9rem 1rem 2rem;
    }
}
