.slider_section {
    position: relative;
}

.search-container {
    position: absolute;
    bottom: 150px;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    text-align: center;
    background: rgba(255, 255, 255, 0.8);
    padding: 5px 20px;
    border-radius: 50px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.search-box {
    display: flex;
    align-items: center;
}

.search-input {
    border: none;
    border-radius: 50px;
    padding: 10px 20px;
    width: 350px;
    outline: none;
    font-size: 16px;
}

.search-button {
    border: none;
    background: none;
    margin-left: -40px;
    cursor: pointer;
    outline: none;
    color: #333;
}

.search-button i {
    font-size: 18px;
}

.search-input:focus {
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

.search-button:hover i {
    color: #007bff;
}

.cart_link {
    color: white;
}

.cart_link:hover {
    color: rgb(253, 186, 2);
}


/*----------- BUTTON ----------*/
.btn-holder {
    width: 400px;
    height: 300px;
    margin: 50px auto 0;
}

.btn-lg.btn-toggle {
    padding: 0;
    margin: 0 5rem;
    position: relative;
    height: 2.5rem;
    width: 6rem;
    border-radius: 3rem;
    color: #6b7381;
    background: #bdc1c8;
    margin-bottom: 30px;
}

.btn-toggle.btn-lg>.switch {
    position: absolute;
    top: 0.2rem;
    left: 0.1rem;
    width: 2rem;
    height: 2rem;
    border-radius: 1.875rem;
    background: #fff;
    transition: left .25s;
}

.btn-toggle.active {
    background-color: #ff8800;
}

.btn-toggle.btn-lg.active>.switch {
    left: 3.75rem;
    transition: left .25s;
}

.btn-lg.btn-toggle:after {
    content: "Active";
    right: -5rem;
    opacity: 0.5;
    line-height: 2.5rem;
    width: 5rem;
    text-align: center;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 2px;
    position: absolute;
    bottom: 0;
    transition: opacity .25s;
}

.btn-lg.btn-toggle.active:after {
    opacity: 1;
}

/*------------ CHECKBOX -------------*/
.toggle-switch {
    margin: 0 auto;
    /* width: 200px; Ajusta el ancho según sea necesario */
    margin-top: 10px;
    position: relative;
}

.toggle-switch label {
    padding: 0;
}

.toggle-switch label input+span {
    position: relative;
    display: inline-block;
    margin-right: 10px;
    width: 3rem;
    /* Reducido aún más */
    height: 1.5rem;
    /* Reducido aún más */
    background: #bdc1c8;
    border: 1px solid #eee;
    border-radius: 50px;
    transition: all 0.3s ease-in-out;
    box-shadow: inset 0 0 3px #828282;
    /* Se reduce el efecto de sombra */
    cursor: pointer;
}

.toggle-switch label input+span small {
    position: absolute;
    display: block;
    width: 1rem;
    /* Reducido aún más */
    height: 1rem;
    /* Reducido aún más */
    border-radius: 50%;
    background: #fff;
    transition: all 0.3s ease-in-out;
    top: 0.25rem;
    left: 0.25rem;
}

.toggle-switch label input:checked+span {
    background-color: #ff8800;
}

.toggle-switch label input:checked+span small {
    left: calc(100% - 1.25rem);
    /* Ajustado para alinear con el nuevo tamaño del span */
    transition: left .25s;
}

.toggle-switch span:after {
    content: "";
    line-height: 1.5rem;
    /* Ajustado para el nuevo tamaño del span */
    width: 2.5rem;
    /* Ajustado para el nuevo tamaño del span */
    font-weight: 600;
    font-size: 0.8rem;
    /* Reducido el tamaño del texto */
    letter-spacing: 1px;
    position: absolute;
    bottom: 0;
    transition: opacity .25s;
    left: 3.5rem;
    /* Ajustado para el nuevo tamaño del span */
    opacity: 0.5;
    color: #6b7381;
}

.toggle-switch label input:checked+span:after {
    opacity: 1;
}

.mapa iframe{
    width: 100%;
}

/*Estilos generales del boton whatsapp*/
.whatsapp-btn {
    position: absolute;
    bottom: 12px;
    left: 20px;
    z-index: 9999;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #25D366;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    animation: breathe 2s ease-in-out infinite;
}

/*Estilos solo al icono whatsapp*/
.whatsapp-btn i {
    color: #fff;
    font-size: 24px;
    animation: beat 2s ease-in-out infinite;
    text-decoration: none;
}

/*Estilos con animation contorno respirando*/
@keyframes breathe {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
    }
}

/*Estilos de animacion del icono latiendo*/
@keyframes beat {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}


.sticky-search-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1000;
    background-color: #ffbe33;
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}
/* Floating Cart Button - same size/color as sticky-search */
.sticky-cart-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    background-color: #ffbe33;
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,.15);
}

.sticky-cart-btn i {
    font-size: 18px;
    color: #fff;
}

.search-container {
    position: fixed;
    bottom: 0px;
    left: 10px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
    padding: 20px;
    z-index: 1001;
    width: 300px;
}

.search-container.active {
    transform: translateY(0);
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
}

/* Opciones (quick view) */
.option-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}

.option-card {
    display: block;
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    cursor: pointer;
    transition: box-shadow .2s ease, transform .2s ease;
    padding: 10px;
}

.option-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
    transform: translateY(-2px);
}

.option-card input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.option-media {
    width: 100%;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

.option-media img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 8px;
}

.option-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.option-name {
    font-weight: 600;
}

.option-price {
    background: #0d6efd;
    color: #fff;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 12px;
}

.option-card input:checked ~ .option-media img {
    outline: 3px solid #0d6efd;
}

.option-card input:checked ~ .option-meta .option-price {
    background: #198754;
}
/* Larger header cart icon */
.user_option .cart_link i {
    font-size: 30px;
}

/* Por si se usa SVG en alguna vista del carrito */
.user_option .cart_link svg {
    width: 23px; /* ~35% más que 17px */
    height: auto;
}