/* Scoped to product list container for better specificity */
#product-list {
    padding-bottom: 20px;
}

/* Product card container */
#product-list .product-card {
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    background: transparent;
    box-shadow: none;
}

/* Product image wrapper */
#product-list .product-card .product-image-wrapper {
    position: relative;
    width: 100%;
    height: 192px;
}

/* Product image */
#product-list .product-card .product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Local city badge */
#product-list .product-card .local-city {
    position: absolute;
    bottom: -1px;
    right: 8px;;
    color: #fff;
    border-radius: 5px;
    font-weight: 500;
    background: #198754 !important;
    padding: 10px !important;
    font-size: 12px !important;
}

/* Status badge (Abierto/Cerrado) */
#product-list .product-card .status-local {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 7px;
    font-size: 13px;
    font-weight: 500;
    border-radius: 4px;
}

#product-list .product-card .status-local.bg-success {
    background-color: #198754;
}

#product-list .product-card .status-local.bg-danger {
    background-color: #dc3545;
}

/* Product info container */
#product-list .product-card .product-info {
    padding: 8px;
}

/* Product title */
#product-list .product-card .product-title {
    font-size: clamp(0.85rem, 2.5vw, 1rem);
    font-weight: bold;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: #000000;
}

/* Product meta (vendor, delivery time, etc.) */
#product-list .product-card .product-meta {
    font-size: clamp(0.8rem, 2.1vw, 0.9rem);
    color: #777;
    margin: 4px 0;
}

#product-list .product-card .product-meta p {
    font-size: inherit;
    margin: 0;
}

/* Star rating */
#product-list .product-card .product-meta .start {
    color: #000000;
}

a.location.text-primary {
    text-decoration: none !important;
}

/* Location link */
#product-list .product-card .location {
   
    text-decoration: none;
    font-weight: 600;
    background: #ca2812;
    padding: 4px !important;
    border-radius: 3px;
    color: white !important;
    margin-bottom: 5px !important;
}

.discount {
    position: absolute;
    bottom: 118px;
    background: #1a8754;
    font-size: 12px;
    left: 8px;
    color: #fff;
    padding: 1px 15px 1px 12px;
    border-radius: 4px;
}

.old-price {
  text-decoration: line-through; /* tachado */
  color: #888; 
  margin-right: 8px;
}


#btnConfirmarMunicipio {
    background: #1a8754;
    border:none
}

#product-list .product-card .location:hover {
    text-decoration: underline;
}

/* Price */
#product-list .product-card .price {
    font-size: clamp(1rem, 2.2vw, 1.27rem);
    color: #000000;
}

/* Badges container */
#product-list .product-card .badges {
    display: flex;
    gap: 4px;
    margin-bottom: 4px;
}

/* General badge styles */

.product-card .badges a,
.product-card .badges button {
    font-size: clamp(0.09rem, 2.3vw, 0.7rem) !important;
}


#product-list .product-card .badge {
    font-weight: bold;
    border-radius: 3px;
    text-align: center;
    text-decoration: none;
    color: #fff;
    flex: 1;
}

/* Yellow badge (Ver Plato) */
#product-list .product-card .badge.yellow {
    background-color: #f9ca24;
    color: #000;
}

#product-list .product-card .badge.yellow:hover {
    background-color: #e0b420;
    text-decoration: none;
}

/* Primary badge (Agregar pedido) */
#product-list .product-card .badge.bg-primary {
    background-color: #0d6efd;
}

#product-list .product-card .badge.bg-primary:hover:not(.disabled) {
    background-color: #0b5ed7;
}

button.bg-primary {
   
    background-color: rgb(202 39 18) !important;
}

/* Disabled badge state */
#product-list .product-card .badge.disabled {
    opacity: 0.75;
    pointer-events: none;
}

/* WhatsApp button */
#product-list .product-card .whatsapp-btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    border-radius: 4px;
    background-color: #198754;
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
}

#product-list .product-card .whatsapp-btn:hover {
    background-color: #157347;
}

/* Bootstrap icon adjustments */
#product-list .product-card .bi::before {
    font-family: 'bootstrap-icons';
    font-style: normal;
    font-weight: 400;
    line-height: 1;
    vertical-align: -0.125em;
}

/* Font Awesome star icon */
#product-list .product-card .fa-star::before {
    content: "\f005";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: #ca2812;
}

.yellow,
.quick-buy-btn {
    padding: 9px !important;
    border: 0px !important;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    #product-list .product-card .whatsapp-btn {
        font-size: 0.85rem;
        padding: 0.375rem 0.5rem;
    }
}

@media (min-width: 992px) {
    #product-list .product-card .product-meta p.mt-lg-3 {
        margin-top: 1rem;
    }
}

















/* slider */

.loader-overlay {
    margin-top: -100px;
    /* Ajusta este valor */
}


/* Asegura que cada slide use flexbox centrado */
.slick-slide-item {
    display: flex;
    justify-content: center;
    /* Centra horizontalmente */
    align-items: center;
    /* Centra verticalmente */
    text-align: center;
    /* Centra texto */
    min-height: 100%;
    /* Ocupar altura del contenedor */
}

/* El contenedor interno también centrado */
.slick-slide-item .b2_bc {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Asegura que las imágenes y textos estén alineados al centro */
.slick-slide-item img {
    margin: 0 auto;
    display: block;
}

/* Si quieres que el contenido ocupe toda la altura del slider */
.slick-slider,
.slick-slide-item {
    height: 100%;
}



.facebook-button {
    position: fixed;
    bottom: 101px;
    right: 20px;
    background-color: #1877F2;
    color: white;
    border-radius: 50%;
    padding: 12px;
    font-size: 24px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    text-decoration: none;
    display: flex
;
    height: 40px;
    right: 31px;
    align-items: center;
    justify-content: center;
}



/* whatsapp button */

.whatsapp-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    background-color: #25D366;
    padding: 15px;
    height: 61px;
    width: 61px;
    display: flex;
    justify-content: center;
    text-decoration: none !important;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    animation: pulse 2s infinite;
    color: white;
    font-size: 24px;
    transition: transform 0.3s ease;
}

.whatsapp-button:hover {
    transform: scale(1.2);
    animation: none;
    background-color: #1ebe5d;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6);
    }

    70% {
        box-shadow: 0 0 0 18px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}