.bs-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
    cursor: pointer;
    border: 1px solid #f0f0f0;
}

.bs-card:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08); /* Sombra suave al hover */
}

/* --- Contenedor de Imágenes (Ratio Aspecto 4:5) --- */
.bs-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 125%; /* Altura fija proporcional */
    background-color: #f8f9fa; /* Color de fondo mientras carga img */
}

/* --- Lógica del Cambio de Imagen --- */
.bs-image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.4s ease-in-out; /* Suavidad del cambio */
}

/* La imagen de atrás empieza invisible */
.img-back {
    opacity: 0;
    z-index: 1; /* Encima de la frontal */
}

/* Al pasar el mouse sobre la tarjeta, la imagen de atrás aparece */
.bs-card:hover .img-back {
    opacity: 1;
}

/* --- Badges (Etiquetas) --- */
.bs-badge-top, .bs-badge-bottom {
    position: absolute;
    z-index: 2; /* Por encima de ambas imágenes */
    font-weight: 700;
    color: #fff;
    padding: 4px 10px;
    font-size: 0.8rem;
    font-family: var(--font-primary), sans-serif;
    pointer-events: none; /* Para que el click traspase a la tarjeta */
}

.bs-badge-top {
    top: 10px;
    right: 10px;
    background: #000;
    border-radius: 20px;
}

.bs-badge-bottom {
    bottom: 10px;
    left: 10px;
    background: #e74c3c;
    font-family: var(--font-primary), sans-serif;
    border-radius: 4px;
}

/* --- Textos e Info --- */
.bs-details {
    padding: 12px;
    text-align: center;
}

.bs-description {
    font-size: 0.9rem;
    color: #666;
    margin: 0 0 4px 0;
    font-family: var(--font-primary), sans-serif;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bs-price {
    font-size: 1.1rem;
    font-weight: 800;
    margin: 0;
    font-family: var(--font-primary), sans-serif;
    color: #222;
}

.enlace-vendido{
    text-decoration: none !important;
    display: block;
    margin: 0 10px;
    padding: 1rem;
    color:  var(--color-text-primary) !important;
    font-family: var(--font-primary), sans-serif;
    transition: 0.3s;
}

/* --- AJUSTES PARA CELULAR (Responsive) --- */
@media (max-width: 768px) {
    .bs-badge-top, .bs-badge-bottom {
        font-size: 0.65rem; /* Letra más pequeña en etiquetas */
        padding: 3px 8px;
    }

    .bs-details {
        padding: 8px; /* Menos espacio abajo */
    }

    .bs-description {
        font-size: 0.8rem;
    }

    .bs-price {
        font-size: 1rem;
    }
}
