/* General Link Styling */
.product-card-link {
    text-decoration: none !important;
    color: inherit;
}

/* Labels */
.nuevo-label {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #e3342f;
    color: white;
    padding: 5px 10px;
    font-size: 0.8rem;
    font-weight: bold;
    border-radius: 4px;
    z-index: 1;
}

/* Headers */
.category-header,
.product-header {
    background-color: #e3342f;
    color: white;
    padding: 10px;
    border-radius: 8px;
    font-weight: bold;
    max-width: 95%;
    margin: auto;
    text-align: center;
}

/* Card Styles with Hover Effects */
.card, .product-card-link .card, .category-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
    background-color: #ffffff;
}

.card:hover, .product-card-link .card:hover, .category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
    filter: brightness(1.1);
}

/* Image Styling with Hover Zoom Effect */
.card img, .category-card img, .product-card img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    max-height: 180px;
    transition: transform 0.3s ease;
}

.card:hover img, .category-card:hover img, .product-card:hover img {
    transform: scale(1.05);
}

/* Text and Titles */
.card-title, .card-text {
    font-size: 1.25rem;
    color: #333;
    font-weight: bold;
    text-align: center;
    margin-top: 10px;
}

.card-text {
    font-size: 1rem;
    color: #555;
}

/* Responsive Grid Layouts */
@media (max-width: 768px) {
    .col-md-3 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 576px) {
    .col-md-3, .col-md-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

.slick-products .slick-slide {
    margin: 0 21px; /* Ajusta el valor de 10px según el espacio que desees */
}

.small-card-img {
    width: 100% !important;
    height: auto;
    object-fit: contain; /* Asegura que toda la imagen sea visible */
    max-height: 120px; /* Ajusta según tus necesidades */
    margin: 0 auto; /* Centra la imagen */
    transition: transform 0.3s ease;
}

.card:hover .small-card-img {
    transform: scale(1.05); /* Efecto de zoom */
}
