:root {
    --primary-color: #D83344;
    --text-color: #333333;
    --background-color: #f5f5f7;
    --card-background: #ffffff;
}

/* Reseteo básico */
body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
}

/* Contenedor del buscador/filtros */
.listings-search {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    max-width: 1200px;
    margin: 20px auto 0;
    justify-content: center;
    align-items: center;
}

/* Inputs y select con mismo ancho */
.listings-search__input {
    width: 180px;
    height: 45px;
    border-radius: 25px !important;
    border: 1px solid #ccc;
    padding: 0 15px;
    font-size: 0.9rem;
    outline: none;
}

/* Botón negro */
.listings-search__btn {
    width: 120px;
    height: 45px;
    border-radius: 25px;
    background-color: #000;
    color: #fff;
    border: none;
    font-size: 0.9rem;
    cursor: pointer;
}
.listings-search__btn:hover {
    background-color: #333;
}

/* Contenedor de tarjetas con 4 columnas */
.listings-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 20px auto;
}

/* Ajuste del contenedor interno .cont (que envuelve la tarjeta),
   ya no forzamos max-width: 400px, para que se acomode a la columna */
.cont {
    width: 100%;
    max-width: none;
    margin: 0;
}

/* Tarjeta (tu estilo original, con ajustes) */
.product-card {
    background-color: var(--card-background);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

/* Carrusel manual */
.product-card__carousel {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
}
.product-card__image-item {
    display: none; /* Mostramos con JS */
    width: 100%;
    height: 100%;
}
.product-card__image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    border-radius: 20px 20px 0 0 !important;
}

/* Botones de navegación del carrusel */
.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    cursor: pointer;
    border-radius: 20px;
}
.carousel-prev {
    left: 10px;
}
.carousel-next {
    right: 10px;
}
.carousel-prev:hover,
.carousel-next:hover {
    background: rgba(0,0,0,0.8);
}

.product-card:hover .product-card__image-item img {
    transform: scale(1.05);
}

/* Info de la tarjeta */
.product-card__info {
    padding: 20px;
    flex: 1 0 auto;
}

/* Título más pequeño (antes 1.5rem). Lo reducimos a 1rem o 1.1rem */
.product-card__title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-color);
}

/* Descripción como lista */
.product-card__description {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 20px;
    list-style: none;
    padding: 0;
}
.product-card__description li {
    margin-bottom: 5px;
}

/* Precio más grande y fila */
.product-card__price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.product-card__price {
    font-size: 1.4rem; /* Más grande que el anterior 1.25rem */
    font-weight: 600;
    color: var(--primary-color);
}

/* Botón de "Ver Detalles" */
.product-card__btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.product-card__btn:hover {
    background-color: #C71729;
}

/* Paginación */
.listings-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 15px auto 40px;
    gap: 15px;
    max-width: 1200px;
}
.listings-pagination button {
    background-color: #000;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
}
.listings-pagination button:hover {
    background-color: #333;
}
.listings-pagination .page-info {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-color);
}

/* Responsive: cuando la pantalla sea menor a 992px, pasamos a 2 col */
@media (max-width: 992px) {
    .listings-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Responsive: cuando sea menor a 576px, pasamos a 1 col */
@media (max-width: 576px) {
    .listings-container {
        grid-template-columns: 1fr;
    }
    .product-card__carousel {
        height: 200px;
    }
    .product-card__title {
        font-size: 0.9rem;
    }
    .product-card__price {
        font-size: 1.2rem;
    }
}