/* =====================================================
   PORCELÁNICOS - Subcategoría Dovela
   ===================================================== */

.section-subtitle {
    text-align: center;
    color: #777;
    font-size: 1rem;
    margin-top: -10px;
    margin-bottom: 30px;
    font-weight: 400;
}

/* --- Contenedor de la imagen (Opacidad) --- */
.product-image-container {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: #f0f0f0;
    border-radius: 8px 8px 0 0; /* Bordes redondeados arriba */
}

.product-image-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.4s ease-in-out;
}

/* La imagen B arranca invisible */
.product-image-container .img-b {
    opacity: 0;
}

/* Cuando se activa la clase .show-b, cambiamos las opacidades */
.product-image-container.show-b .img-a {
    opacity: 0;
}

.product-image-container.show-b .img-b {
    opacity: 1;
}

/* Flechas */
.carousel-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 10px;
    z-index: 10;
    pointer-events: none;
}

.carousel-nav button {
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    pointer-events: auto;
    font-size: 1.1rem;
}

.carousel-nav button:hover {
    background: rgba(0, 0, 0, 0.8);
}

/* Puntitos (dots) */
.carousel-dots {
    position: absolute;
    bottom: 12px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 6px;
    z-index: 10;
}

.carousel-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
    pointer-events: auto;
}

.carousel-dots .dot.active {
    background: #fff;
    transform: scale(1.2);
}

/* --- Título del producto --- */
.product-card h4 {
    font-size: 1.15rem;
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1.3;
    margin: 0 0 12px 0;
    color: #222;
}

/* --- Badges informativos --- */
.product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 15px;
}

.product-meta .badge {
    display: inline-block;
    padding: 5px 12px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 20px;
    background: #f0f0f0;
    color: #000; /* Texto negro solicitado */
    border: 1px solid #ddd;
}

.product-meta .badge.stock-ok {
    background: #e3f5e9;
    color: #1e7a3f;
    border-color: #bce3c8;
}

/* --- Descripción y botón Leer más --- */
.product-description {
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 15px;
}

.product-card.expanded .product-description {
    display: block;
    -webkit-line-clamp: unset;
    overflow: visible;
}

/* Botón Leer más centrado y más grande */
.read-more {
    display: block;
    margin: 0 auto; /* Centrado */
    padding: 10px 24px;
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    background-color: #f8f9fa;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: max-content;
}

.read-more:hover {
    background-color: #e2e6ea;
    border-color: #bbb;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .product-image-container {
        height: 220px;
    }
    .section-subtitle {
        font-size: 0.9rem;
        padding: 0 15px;
    }
}
/* Agregar a porcelanato.css para estandarizar */
.product-card h4 {
    font-size: 1.15rem;
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1.3;
    margin: 0 0 12px 0;
    color: #222;
}

.read-more {
    display: block;
    margin: 0 auto;
    padding: 10px 24px;
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    background-color: #f8f9fa;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: max-content;
}

.read-more:hover {
    background-color: #e2e6ea;
    border-color: #bbb;
}