body{
    overflow-y:scroll;
    font-family: var(--font-body-family);
    font-size: var(--body-txt-font-size);
}
.bs-main.bs-main{
    padding:0;
}


@media screen and (min-width: 1400px){
    .container{
        max-width: 1320px;
    }	
}

/**********************************
    Pagina en construccion
***********************************/
.bs-construction-page {
    height:100%;
    display: flex;
    align-items: center;
}

.fondo-construccion {
    background: url(texturaseda.jpeg);
}

/******************
        Sucursales 
*******************/

.bs-table {
    display:flex;
    flex-wrap:wrap;
}

.bs-table table {
    width: 100%;
    margin-bottom: 1rem;
    color: #212529;
}

.bs-table table td{
    vertical-align: top;
    border-top:1px solid var(--gray-500);
}

.bs-table div {
    width:50%;
}

/******************
        Sucursales tabla 
*******************/
/* Estilos para la tabla estática */
.bs-table-sucursal-static table {
    width: 100%;
    max-width: 800px;
    margin: 20px auto;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 14px;
    text-align: left;
    background-color: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1); 
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Estilos para la tabla en el acordeón */
.bs-table-sucursal-accordion table {
    width: 100%;
    margin: 1px auto;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 14px;
    text-align: left;
    background-color: #ffffff;
    border: 1px solid rgb(248 249 250);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Encabezado de la tabla */
.bs-table-sucursal-static thead, .bs-table-sucursal-accordion thead {
    background-color: #f8f9fa; 
    color: #333;
}

.bs-table-sucursal-static th, .bs-table-sucursal-accordion th {
    padding: 6px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    text-transform: capitalize;
    font-weight: bold;
}

/* Filas de la tabla */
.bs-table-sucursal-static td, .bs-table-sucursal-accordion td {
    padding: 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05); /* Borde sutil */
}

.bs-table-sucursal-static tbody tr:last-child td, .bs-table-sucursal-accordion tbody tr:last-child td {
    border-bottom: none;
}

.bs-table-sucursal-static tbody tr:hover, .bs-table-sucursal-accordion tbody tr:hover {
    background-color: #f5f5f5; /* Efecto hover */
    transition: background-color 0.3s ease;
}

/* Estilos para el acordeón */
.stock-accordion .stock-card {
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 7px;
    margin: 8px 0;
    width: 70%;
}

.stock-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background-color: #f8f9fa;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    font-weight: bold;
    color: #333;
}

.stock-accordion-title {
    margin: 0;
    font-size: 16px;
    font-weight: bold;
}

.stock-accordion-btn {
    background-color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    color: var(--primary-contrast);
    font-size: 18px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.stock-accordion-btn:hover {
    background-color: var(--primary-hover-color);
    border-color: var(--primary-hover-color);
    color: white;
}

.stock-toggle-icon {
    font-size: 18px;
}

.collapse.show + .stock-card-header .stock-accordion-btn .stock-toggle-icon {
    content: "-";
}

.stock-card-body {
    flex: 1 1 auto;
    min-height: 1px;
    padding: 0px;
}

.stock-accordion-body {
    padding: 10px 20px;
    font-size: 14px;
    background-color: #ffffff;
    color: #333;
}

/************************
    Enlaces 
*************************/
a{color: var(--body-txt-default-color);}
a:hover{color: var(--primary-hover-color);}
/*************************
    Inputs
**************************/
.form-control{
    border-radius: var(--default-border-radius);
    border-color: var(--input-border-color);
    color: var(--input-txt-color);
    background: var(--input-bg-color);
}
.form-control option:hover{
    background: var(--primary-color);
}

.custom-control-input:checked~.custom-control-label::before{
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--primary-contrast);
    box-shadow:none;
}

.bs-form-inline form{
    display:flex;
    align-items:center;

}
.bs-form-inline form .form-group .form-control{
    border-radius:0;
    margin-right: -1px;
}

.bs-form-inline form .form-group:first-child .form-control{
    border-radius:var(--default-border-radius) 0 0 var(--default-border-radius);
    border-color: var(--primary-color);
    height: 33px;
}

.bs-form-inline form .form-group .btn{
    border-radius: 0 var(--default-border-radius) var(--default-border-radius) 0;
    padding-top:5px;
    padding-bottom:5px;
}


.custom-control-input.is-invalid~.custom-control-label, .was-validated .custom-control-input:invalid~.custom-control-label{
    font-weight:var(--font-bold);
}
.custom-control-input.is-invalid~.custom-control-label::before, .was-validated .custom-control-input:invalid~.custom-control-label::before{
    border-width:2px;
}
.custom-control-input.is-invalid~.custom-control-label a, .was-validated .custom-control-input:invalid~.custom-control-label a{
    text-decoration:underline;
    color:#dc3545;
}
/*********************************
formulario
**********************************/
.texto-form {
    font-size: 10px;
}

/* Estilos base para el jumbotron de mensaje */
.jumbotron.formulario-mensaje-personalizado {
    border: 1px solid #e1e5ec;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    background-color: #ffffff;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-family: 'Roboto', sans-serif;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 200px;
}

/* Estilos específicos para mensajes de error */
.jumbotron.formulario-mensaje-error {
    background-color: #fef2f2;
    border-color: #f5c6cb;
    color: #721c24;
}

/* Estilos específicos para mensajes de éxito */
.jumbotron.formulario-mensaje-exito {
    background-color: #ffffff;
    border-color: #c3e6cb;
    color: #155724;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.1);
}

/* Estilo de los encabezados dentro del mensaje */
.jumbotron.formulario-mensaje-personalizado h1.display-4 {
    font-size: 1.8rem;
    font-weight: var(--font-light);
    margin-bottom: 0.5rem;
    color: var(--body-txt-default-color);
}

.jumbotron.formulario-mensaje-personalizado p.lead {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: #555;
}

/* Media Query para pantallas pequeñas */
@media (max-width: 768px) {
    .jumbotron.formulario-mensaje-personalizado {
        padding: 1rem;
        height: auto;
    }

    .jumbotron.formulario-mensaje-personalizado h1.display-4 {
        font-size: 1.6rem;
    }

    .jumbotron.formulario-mensaje-personalizado p.lead {
        font-size: 0.9rem;
    }
}
/***************************
    Filter
****************************/
.bs-collection-filter .panel-collapse{
    max-height:200px;
    overflow-y:auto;
}
/**************************
Pagination
***************************/
/*** Paginación ***/
/* color de números e íconos */
.page-link {
    color: grey;
}

/* color al clickear un botón */
.page-link:focus {
    box-shadow: none;
}

/* color de la página actual */
.page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-contrast);
}
.page-link{
    border:0px none;
    border-radius:var(--default-border-radius);
    margin:0 .25rem;
    background:var(--footer-bg-color);
}
.page-link:hover{
    color:var(--primary-color);
}
/***************************
    Badge
****************************/
.badge-primary{
    background: var(--primary-color);
    color: var(--primary-txt-color);
}
.badge-secondary{
    background: var(--secondary-color);
    color: var(--secondary-contrast);
}
/**********************************
    TITULOS
***********************************/
 h1 ,h2 ,h3, h4, h5, h6,
.h1,.h2,.h3,.h4,.h5,.h6{
    font-family: var(--font-title-family);
}

.bs-home__title,
.bs-home__title:hover,
.bs-title-home a{
    font-size:var(--home-title-size);
    color: var(--home-title-color);
    text-transform: var(--title-transform);
    font-weight: var(--title-weight);
    display:flex;
    align-items:center;
    text-align:center;
    justify-content:center;
    padding: 2rem 0 1rem;
    white-space: nowrap; /*texto en 1 linea*/
    flex-direction: column;
}


.btn-dark {
    background-color: var(--primary-color);
    border-color: var(--primary-border);
    color: #ffffff;
}

.btn-dark:hover {
    color: #5b5b5b;
    background-color: #aec1b7;
    border-color: #aec1b7;
}

.badge-warning {
    color: #ffffff;
    font-weight: 500;
    background-color: #e7b369;
}
/**********************************
    Migas de Pan
***********************************/
.bs-breadcrumb .dropdown-item:active {
    background-color: var(--primary-color);
}
.bs-breadcrumb {
    background: var(--breadcrumb-bg-color);
    border-radius: 0.25rem;
    width: 100%;
}

.breadcrumb {
    display: flex;
    align-items: center;
    min-height: 32px;
    margin-bottom: 0;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    background: var(--breadcrumb-bg-color);
}

.breadcrumb-item {
    line-height: 2;
}

.breadcrumb-item a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #696969;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: '>';
    color: #6c757d;
    padding: 0 5px;
}

.breadcrumb-item.active {
    color: rgb(69 69 69);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    max-width: 30%;
    padding-bottom: 1px;
}

.icon {
    width: 16px;
    height: 16px;
    margin-right: 5px;
    fill: currentColor;
}

/* Estilos para pantallas pequeñas */
@media (max-width: 768px) {
    .breadcrumb {
        min-height: 28px;
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
        margin-left: 0;
        justify-content: flex-start;
    }
    
    .breadcrumb-item.active {
        max-width: 50%; 
    }
    
    .breadcrumb-item + .breadcrumb-item::before {
        padding: 0 3px;
    }

    .icon {
        width: 12px;
        height: 12px;
        margin-right: 3px;
    }

    /* Agrega scroll al dropdown en mobile */
    .breadcrumb-item .dropdown-menu {
        max-height: 200px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch; /* Para mejor scroll en iOS */
    }

    /* Estilizar scrollbar para móviles que lo soporten */
    .breadcrumb-item .dropdown-menu::-webkit-scrollbar {
        width: 4px;
    }

    .breadcrumb-item .dropdown-menu::-webkit-scrollbar-track {
        background: #f1f1f1;
    }

    .breadcrumb-item .dropdown-menu::-webkit-scrollbar-thumb {
        background: #888;
        border-radius: 4px;
    }
}



/*****************************
    Imagenes medios de pago
******************************/
.bs-pay-method{
    opacity:0.5;
}
@media (max-width: 992px) {
    .medios-pagos {
        padding-bottom:70px
    }
}

/************************
Marcas
************************/
.bs-home__brands{
    justify-content:center;
}
.bs-home__brands__item{
    display:block;
    padding:.5rem 1.5rem;
    background: #f6f8f9;
    border-radius:var(--default-border-radius);
}


/* media queries */ 

@media screen and (min-width:768px){
    
    .bs-article-title::before,
    .bs-article-title::after,
    .bs-home-title::before,
    .bs-home-title::after{
        max-width:100px;
        min-width:40px;
    }
}
/******************************
DISCOUNT
*******************************/
.bs-discount.template{
    background:var(--discount-bg-color);
    color:var(--discount-txt-color);
    border-radius: var(--default-border-radius);
    margin:.5rem;
    padding: .25rem .75rem;
}

.ir-arriba {
    display: none;
    padding: 12px;
    background: var(--primary-color);
    font-size: 16px;
    color: #fff;
    bottom: 73px;
    right: 16px;
    cursor: pointer;
    position: fixed;
    border-radius: 12px;
    z-index: 98; 
    border: solid 0.5px #bcbcbc;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.ir-arriba:hover {
    background: var(--primary-hover-color);
    font-size: 16px;
    cursor: pointer; 
    border: solid 0.5px #bcbcbc;
}
/* color textos carro despegable*/
.detailItemCart .infoItemCart {
    color: var(--body-txt-default-color);
}
.containerItemCart {
    color: var(--body-txt-default-color);
}
.containerSubtotal {
    color: var(--body-txt-default-color);
}
.containerItemCart a {
    color: var(--body-txt-default-color);
}
/************************************
Alerta
*************************************/
.badge-warning {
    color: var(--secondary-contrast);
    background-color: var(--secondary-color);
    font-weight: var(--font-light);
}
/************************************
Chat Widget
*************************************/
.chat-widget .dropdown-toggle::after {
    display: none; /* Oculta el dropdown-toggle solo dentro del widget */
}

.chat-widget {
    --box-shadow-widget: rgba(50, 50, 93, 0.25) 0px 6px 12px -2px, rgba(0, 0, 0, 0.3) 0px 3px 7px -3px;
    position: fixed;
    bottom: 139px;
    z-index: 1000;
    right: 10px; /* Por defecto, ajusta a la izquierda si se requiere */
}

.chat-widget .chat-widget__close-icon { display: none; }
.chat-widget.show .chat-widget__close-icon { display: inline; }
.chat-widget .chat-widget__chat-icon { display: inline; }
.chat-widget.show .chat-widget__chat-icon { display: none; }

.chat-widget .dropdown-menu.show {
    box-shadow: var(--box-shadow-widget);
    width: auto;
}

.chat-widget__btn {
    background: var(--primary-color);
    box-shadow: var(--box-shadow-widget);
    color: white;
    width: 1.5em;
    height: 1.5em;
    font-size: 36px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 100px;
    border: solid 1px rgba(255, 255, 255, 0.3); 

}
.chat-widget__btn:hover {
    background: var(--primary-hover-color);
    transition: 0.3s;
    box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.2), 0px 2px 6px rgba(0, 0, 0, 0.1); 

}
.chat-widget__content {
    background: white;
    width: 100%;
    min-width: 260px;
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 10px;
    padding: 10px;
}

.chat-widget__img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.chat-widget__message {
    box-sizing: border-box;
    border: silver 1px solid;
    padding: 6px;
    border-radius: var(--default-border-radius);
}

.chat-widget__chat-list {
    grid-column: 2 / 3;
    display: flex;
    flex-wrap: wrap;
}

.chat-widget__whatsapp,
.chat-widget__facebook {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 100px;
}

.chat-widget__whatsapp {
    background: linear-gradient(0deg, rgb(32,176,56) 0%, rgb(96,214,106) 100%);
    color: white;
    margin-left: 6px;
}

.chat-widget__whatsapp:hover {
    color: white;
    outline: 4px rgba(96,214,106, 0.6) solid;
}

.chat-widget__facebook {
    background: linear-gradient(0deg, rgba(0,98,224,1) 0%, rgba(25,175,255,1) 100%);
    color: white;
    margin-left: 4px;
}

.chat-widget__facebook:hover {
    color: white;
    outline: 4px rgba(25,175,255, 0.6) solid;
}

@media screen and (min-width: 768px) {
    .chat-widget { bottom: 30%; }
}
