.carousel-control-prev-icon,
    .carousel-control-next-icon {
        display: none;
    }

    .section-title {
        display: flex;
        align-items: center;
        margin: 20px 0;
    }

    .section-title h2 {
        font-size: 20px;
        font-weight: bold;
        color: #666;
        margin: 0;
        margin-right: 10px;
        white-space: nowrap;
    }

    .section-title .line {
        flex-grow: 1;
        height: 2px;
        background-color: #FF7F00;
    }

    .menu-scroll {
        margin: 20px 0;
    }

    .menu-item {
        display: inline-block;
        padding: 10px 18px;
        background: var(--bs-primary);
        color: #fff;
        border-radius: 15px;
        text-decoration: none;
        font-weight: 500;
        font-size: 14px;
        margin-right: 12px;
        white-space: nowrap;
        transition: background 0.3s ease;
    }

    .menu-item:hover {
        background: var(--bs-primary);
    }

    /* ============================================
       SOLUCIÓN DEFINITIVA PARA TARJETAS UNIFORMES
       ============================================ */

    /* Contenedor de la tarjeta de producto */
    .product-card {
        display: flex;
        flex-direction: column;
        height: 100%;
        border: 1px solid #ffffff;
        border-radius: 8px;
        overflow: hidden;
        transition: box-shadow 0.3s ease;
    }

    .product-card:hover {
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    }

    /* Contenedor de imagen con aspecto cuadrado */
    .card-img-top {
        position: relative;
        width: 100%;
        aspect-ratio: 1 / 1;
        /* Usa aspect-ratio moderno para crear cuadrado */
        overflow: hidden;
        background-color: #ffffff;
    }

    /* El enlace dentro del contenedor de imagen debe ocupar todo el espacio */
    .card-img-top>a {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        display: block;
    }

    /* Imagen con posicionamiento absoluto - SOLUCIÓN DEFINITIVA */
    .card-img-top img.img-prod {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: contain;
        /* Cambiado de cover a contain para mostrar imagen completa */
        object-position: center;
        padding: 10px;
        /* Añade un poco de espacio alrededor */
    }

    /* ============================================
       RESPONSIVE DESIGN - OPTIMIZACIÓN MÓVIL
       ============================================ */

    /* Móviles pequeños (menos de 576px) */
    @media (max-width: 575.98px) {
        .product-card {
            font-size: 0.875rem;
            /* Texto más pequeño en móvil */
        }

        .prod-content {
            font-size: 0.813rem;
            height: 2.6em;
            /* Ajuste para texto más pequeño */
        }

        .product-card h4 {
            font-size: 1rem;
            /* Precio más pequeño */
        }

        .product-card small {
            font-size: 0.75rem;
        }

        .btn-prod-card {
            padding: 0.375rem 0.75rem;
            font-size: 0.875rem;
        }

        .card-img-top img.img-prod {
            padding: 8px;
            /* Menos padding en móvil */
        }

        .product-card .card-body {
            padding: 0.75rem;
            /* Menos padding en móvil */
        }

        /* Badge más pequeño en móvil */
        .badge-agotado {
            padding: 6px 12px;
            font-size: 0.65rem;
            top: 8px;
            left: 8px;
        }
    }

    /* Tablets (576px a 767px) */
    @media (min-width: 576px) and (max-width: 767.98px) {
        .prod-content {
            font-size: 0.875rem;
        }

        .product-card h4 {
            font-size: 1.1rem;
        }

        .card-img-top img.img-prod {
            padding: 12px;
        }
    }

    /* Tablets grandes y escritorio pequeño (768px a 991px) */
    @media (min-width: 768px) and (max-width: 991.98px) {
        .card-img-top img.img-prod {
            padding: 12px;
        }

        .product-card .card-body {
            padding: 0.875rem;
        }
    }

    /* Escritorio (992px en adelante) */
    @media (min-width: 992px) {
        .product-card:hover {
            transform: translateY(-4px);
            box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
        }

        .product-card {
            transition: all 0.3s ease;
        }

        .card-img-top img.img-prod {
            transition: transform 0.3s ease;
        }

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

    /* Optimización para pantallas muy pequeñas (menos de 360px) */
    @media (max-width: 359.98px) {
        .prod-content {
            height: 3em;
            /* Más altura para textos largos en pantallas muy pequeñas */
            font-size: 0.75rem;
        }

        .product-card h4 {
            font-size: 0.95rem;
        }

        .btn-prod-card {
            font-size: 0.813rem;
            padding: 0.25rem 0.5rem;
        }
    }

    /* Botón de favoritos posicionado absolutamente */
    .card-img-top .position-absolute {
        z-index: 10;
    }

    /* Badge de agotado mejorado */
    .badge-agotado {
        position: absolute;
        top: 10px;
        left: 10px;
        background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
        color: white;
        padding: 8px 16px;
        border-radius: 20px;
        font-size: 0.75rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
        z-index: 20;
        animation: pulse 2s ease-in-out infinite;
    }

    @keyframes pulse {

        0%,
        100% {
            transform: scale(1);
            box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
        }

        50% {
            transform: scale(1.05);
            box-shadow: 0 4px 12px rgba(239, 68, 68, 0.6);
        }
    }

    /* Asegurar que el card-body ocupe el espacio restante y mantenga estructura */
    .product-card .card-body {
        flex: 1;
        display: flex;
        flex-direction: column;
        padding: 1rem;
    }

    /* Contenedor de información del producto con altura controlada */
    .product-card .card-body>a {
        display: block;
        text-decoration: none;
        color: inherit;
        margin-bottom: 0.5rem;
    }

    /* Hacer que el contenido de texto tenga altura fija - 2 líneas máximo */
    .prod-content {
        height: 2.4em;
        line-height: 1.2em;
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        margin-bottom: 0.25rem;
    }

    /* Referencia del producto - 1 línea fija */
    .product-card small {
        display: block;
        height: 1.2em;
        line-height: 1.2em;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        color: #6b7280;
    }

    /* Contenedor de precio con altura fija */
    .product-card .d-flex.align-items-center {
        min-height: 2.5rem;
    }

    /* Precio del producto */
    .product-card h4 {
        font-size: 1.25rem;
        font-weight: 700;
        color: #1f2937;
    }

    /* Botón de acción */
    .btn-prod-card {
        width: 100%;
        padding: 0.5rem 1rem;
        font-weight: 500;
        transition: all 0.2s ease;
    }



    /* Ajustes para Flickity - RESPONSIVE */
    .productos-scroll .carousel-cell {
        margin-right: 10px;
    }

    /* Asegurar que las columnas en el carrusel tengan la misma altura */
    .carousel-cell {
        height: auto;
        width: 45%;
        /* Móvil: 2 columnas con espacio */
    }

    .carousel-cell>div {
        height: 100%;
    }

    /* Ajustes responsive para Flickity */
    @media (min-width: 576px) {
        .carousel-cell {
            width: 48%;
            /* Tablets pequeñas: 2 columnas */
        }
    }

    @media (min-width: 768px) {
        .carousel-cell {
            width: 31%;
            /* Tablets: 3 columnas */
        }
    }

    @media (min-width: 992px) {
        .carousel-cell {
            width: 23%;
            /* Desktop: 4 columnas */
        }
    }

    @media (min-width: 1200px) {
        .carousel-cell {
            width: 18%;
            /* Desktop grande: 5 columnas */
        }
    }

    /* Optimizar el carrusel principal en móvil */
    @media (max-width: 767.98px) {
        #carouselExampleIndicators {
            max-height: 300px !important;
        }

        #carouselExampleIndicators img {
            max-height: 300px !important;
        }
    }

    /* Títulos de sección responsive */
    @media (max-width: 575.98px) {
        .section-title h2 {
            font-size: 16px;
        }

        h3 {
            font-size: 18px;
        }

        .menu-item {
            padding: 8px 14px;
            font-size: 13px;
            margin-right: 8px;
        }
    }