#reseñas-container {
    flex-wrap: wrap;
}

#reseñas-extra {
    flex-wrap: wrap;
}
.producto-imagen {
  width: 100%;
  height: 300px;
  object-fit: contain;
  background-color: #1c1c1c; /* o usa #343a40 si va mejor con tu diseño */
  padding: 10px;
}

.badge-descuento {
    background-color: #ff3b3b;
    color: white;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.12);
        opacity: 0.9;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.badge-pulse {
    animation: pulse 1.8s ease-in-out infinite;
}

.descripcion-corta {
    max-height: 6.2em;
    overflow: hidden;
    transition: max-height 0.4s ease;
    font-family: 'Roboto', sans-serif;
    font-size: 0.9rem;
    color: #f8f9fa;
    white-space: pre-wrap;
    line-height: 1.4;
    position: relative;
}

/* Scroll oculto */
.descripcion-corta.expandida {
    max-height: 300px;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.descripcion-corta.expandida::-webkit-scrollbar {
    display: none;
}

/* Contenedor de texto */
.descripcion-texto {
    padding-right: 0.5rem;
}

/* Fade en el borde inferior (cuando no está expandido) */
.descripcion-corta::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2em;
    width: 100%;
    background: linear-gradient(to bottom, rgba(24,24,24,0), rgba(24,24,24,0.9));
    pointer-events: none;
    transition: opacity 0.4s ease;
    opacity: 1;
}

/* Al expandirse, oculta el degradado */
.descripcion-corta.expandida::after {
    opacity: 0;
}
    .ver-mas {
        cursor: pointer;
        font-weight: bold;
        margin-top: 0.5rem;
        transition: color 0.3s;
    }

    .ver-mas:hover {
        color: #ffc107;
    }

    .icono-flecha {
        transition: transform 0.3s ease;
    }

    .ver-mas.expandido .icono-flecha {
        transform: rotate(180deg);
    }
        .resaltado {
        animation: resaltar 1.5s ease-in-out;
        border: 2px solid #ffc107;
        border-radius: 12px;
        box-shadow: 0 0 10px 4px rgba(255, 193, 7, 0.6);
    }

    @keyframes resaltar {
        0% {
            box-shadow: 0 0 10px 4px rgba(255, 193, 7, 0.8);
        }
        50% {
            box-shadow: 0 0 12px 8px rgba(255, 193, 7, 0.5);
        }
        100% {
            box-shadow: 0 0 0px 0px rgba(255, 193, 7, 0);
        }
    }

    .nav-pills .nav-link.active {
        background-color: #28a745 !important;
    }

    .card {
        border-radius: 10px;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    }

    .tab-pane > .d-flex {
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }

    .tab-pane > .d-flex > .card {
        scroll-snap-align: start;
    }

    [id^="cat-"] {
        scroll-margin-top: 80px;
    }

    html {
        scroll-behavior: smooth;
    }

    .product-wrapper {
        position: relative;
    }

    .product-scroll {
        overflow-x: auto;
        scroll-behavior: smooth;
        padding-bottom: 10px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        display: flex;
        gap: 1rem;
    }

    .product-scroll::-webkit-scrollbar {
        display: none;
    }

    .product-wrapper::before,
    .product-wrapper::after {
        content: "";
        position: absolute;
        top: 0;
        bottom: 0;
        width: 40px;
        pointer-events: none;
        z-index: 1;
    }

    .product-wrapper::before {
        left: 0;
        background: linear-gradient(to right, rgba(0, 0, 0, 0.6), transparent);
    }

    .product-wrapper::after {
        right: 0;
        background: linear-gradient(to left, rgba(0, 0, 0, 0.6), transparent);
    }

    .category-scroll {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        flex-wrap: nowrap;
    }

    .category-scroll::-webkit-scrollbar {
        display: none;
    }

    .category-scroll .active {
        background-color: #28a745 !important;
        color: white !important;
        border: none;
    }

    @media (max-width: 768px) {
        .product-scroll {
            gap: 0.5rem;
        }

        .card {
            min-width: 200px;
            max-width: 200px;
        }
    }

    .card:hover {
        transform: scale(1.03);
        transition: transform 0.2s ease-in-out;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    }
    /* Por defecto sin sombras */
.product-wrapper {
    position: relative;
}

.product-wrapper.scrollable::before,
.product-wrapper.scrollable::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 40px;
    pointer-events: none;
    z-index: 1;
}

.product-wrapper.scrollable::before {
    left: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.6), transparent);
}

.product-wrapper.scrollable::after {
    right: 0;
    background: linear-gradient(to left, rgba(0, 0, 0, 0.6), transparent);
}
    /* Desactivamos sombras si no hay scroll o estamos en el borde */
.product-wrapper::before,
.product-wrapper::after {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-wrapper.sombra-izquierda::before {
    opacity: 1;
}

.product-wrapper.sombra-derecha::after {
    opacity: 1;
}


   /* Estilo para el botón del carrito */
        #cartButtonContainer {
            position: fixed;
            top: 93px;
            right: 10px;
            z-index: 1050;
        }

        /* Estilo para el contenedor desplegable del carrito */
        .cart-dropdown {
            z-index: 1040; /* Asegúrate de que el carrito tenga un índice más bajo */
            position: fixed;
            top: 130px;
            right: 10px;
            z-index: 1051;
            background: #2a2a2a;
            color: #f0f0f0;
            border: 1px solid #444;
            padding: 10px;
            width: 300px;
            box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.4);
            display: none;
            border-radius: 8px;
        }

        /* Estilo para los productos en la lista */
        .cart-dropdown ul {
            list-style: none;
            padding: 0;
            margin: 0;
        }

        .cart-dropdown ul li {
            margin-bottom: 10px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .cart-dropdown ul li span {
            font-size: 14px;
        }

        .cart-dropdown ul li button {
            background: none;
            border: none;
            color: #ff4d4d;
            cursor: pointer;
            font-size: 16px;
        }

        .cart-dropdown ul li button:hover {
            color: #ff0000;
        }

        /* Botón de WhatsApp */
        #whatsappButton {
            position: fixed;
            bottom: 20px; /* Distancia desde la parte inferior */
            right: 20px; /* Distancia desde la parte derecha */
            z-index: 1050;
        }

        #whatsappButton .btn {
            background-color: #25D366;
            color: white;
            text-decoration: none;
            padding: 10px 20px;
            border-radius: 50px;
            font-size: 16px;
            display: flex;
            align-items: center;
            box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
        }

        #whatsappButton .btn:hover {
            background-color: #1ebe57;
        }

        #whatsappButton .btn i {
            margin-right: 10px;
            font-size: 20px;
        }