/* =====================================
FUENTE GENERAL
===================================== */
body{
    font-family:'Montserrat',Arial,sans-serif;
    background:#f7f8fa;
    color:#333;
    margin:0;
    padding:0;
}

/* =====================================
HEADER
===================================== */
.header-main{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:20px;

    padding:0 30px;
    min-height:125px;

    background:linear-gradient(
        to bottom,
        #f7f7f7,
        #dddddd
    );

    border-bottom:5px solid #004c99;

    box-shadow:0 3px 12px rgba(0,0,0,.12);
}

/* LOGO */
.logo-img{
    height:110px;
    max-width:100%;
    object-fit:contain;
}

/* =====================================
MENU SUPERIOR
===================================== */
.header-menu{
    display:flex;
    flex-wrap:wrap;
    justify-content:flex-end;
    gap:10px;
}

/* BOTONES */
.menu-item-top{
    min-width:88px;

    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;

    text-decoration:none;
    color:#555;

    padding:10px 14px;

    border-radius:12px;

    font-size:12px;
    font-weight:700;

    transition:.22s ease;
}

/* ICONO */
.menu-item-top .icon{
    font-size:19px;
    margin-bottom:4px;
}

/* HOVER */
.menu-item-top:hover{
    background:#ececec;
    color:#004c99;
    transform:translateY(-2px);
}

/* ACTIVO */
.menu-item-top.active{
    background:#fff;
    color:#004c99;

    box-shadow:0 4px 12px rgba(0,0,0,.12);

    border-bottom:4px solid #004c99;
}

/* LOGIN */
.menu-login{
    background:#f8d7da;
    border:1px solid #f0b8be;
}

.menu-login:hover{
    background:#f4c8ce;
}

/* HEADER PEDIDO */
#header-pedido{
    font-size:11px;
    margin-top:4px;
    color:#198754;
    font-weight:700;
}

/* =====================================
LAYOUT
===================================== */
.container-fluid{
    max-width:1500px;
}

.sidebar{
    max-width:320px;
    background:#ffffff;
    border-right:1px solid #e5e5e5;
    min-height:calc(100vh - 125px);
}

/* =====================================
BUSCADOR
===================================== */
.buscador{
    border-radius:10px;
    border:1px solid #d7d7d7;
    padding:9px 12px;
    transition:.2s;
}

.buscador:focus{
    border-color:#004c99;
    box-shadow:0 0 0 0.2rem rgba(0,76,153,.15);
}

/* =====================================
MENU LATERAL
===================================== */
.menu-lateral{
    list-style:none;
    margin:0;
    padding:0;
}

.menu-lateral li{
    margin-bottom:6px;
}

.menu-lateral li a{
    display:block;
    text-decoration:none;
    color:#333;

    padding:10px 12px;

    border-radius:8px;

    font-size:14px;
    font-weight:600;

    border:1px solid #e1e1e1;

    transition:.18s ease;
}

.menu-lateral li a:hover{
    transform:translateX(4px);
    box-shadow:0 4px 10px rgba(0,0,0,.08);
}

/* NOVEDADES */
.menu-novedades li a{
    background:#d4edda;
}

.menu-novedades li a:hover{
    background:#c4e7cd;
}

/* RUBROS */
.menu-rubros li a{
    background:#d6e9ff;
}

.menu-rubros li a:hover{
    background:#c4ddfa;
}

/* ITEM ACTIVO */
.active-item{
    background:#ffffff !important;
    border:2px solid #004c99 !important;
    color:#004c99 !important;
}

/* =====================================
BREADCRUMB
===================================== */
.breadcrumb-custom{
    display:flex;
    flex-wrap:wrap;
    gap:6px;
    align-items:center;
    font-size:13px;
    color:#777;
}

.bc-link{
    color:#004c99;
    text-decoration:none;
    font-weight:700;
}

.bc-link:hover{
    text-decoration:underline;
}

.bc-current{
    font-weight:700;
    color:#333;
}

.bc-sep{
    color:#999;
}

/* =====================================
CARDS PRODUCTOS
===================================== */
.card{
    border:none;
    border-radius:14px;
    overflow:hidden;
}

.card-img-top{
    background:#fff;
}

.card-footer{
    border-top:1px solid #f0f0f0;
}

.card h6{
    min-height:44px;
    font-weight:700;
    font-size:15px;
}

/* =====================================
PEDIDO / TABLAS
===================================== */
.table{
    background:#fff;
    border-radius:12px;
    overflow:hidden;
}

.table thead th{
    font-size:13px;
    text-transform:uppercase;
    letter-spacing:.4px;
}

.table td,
.table th{
    vertical-align:middle;
}

/* INPUTS */
input[type="number"],
.form-control,
.form-select{
    border-radius:10px;
}

/* BOTONES */
.btn{
    border-radius:10px;
    font-weight:600;
}

/* =====================================
SCROLL SIDEBAR
===================================== */
.sidebar{
    overflow-y:auto;
}

.sidebar::-webkit-scrollbar{
    width:6px;
}

.sidebar::-webkit-scrollbar-thumb{
    background:#c1c1c1;
    border-radius:20px;
}

/* =====================================
RESPONSIVE TABLET
===================================== */
@media (max-width: 992px){

.header-main{
    flex-direction:column;
    padding:15px;
    text-align:center;
}

.header-menu{
    justify-content:center;
}

.sidebar{
    max-width:100%;
    min-height:auto;
    border-right:none;
    border-bottom:1px solid #e5e5e5;
}

.logo-img{
    height:90px;
}

}

/* =====================================
RESPONSIVE MOBILE
===================================== */
@media (max-width: 768px){

.menu-item-top{
    min-width:74px;
    font-size:11px;
    padding:8px 10px;
}

.menu-item-top .icon{
    font-size:16px;
}

.card h6{
    min-height:auto;
}

.table-responsive{
    font-size:13px;
}

h3,h4,h5{
    font-size:1.1rem;
}

}

/* =====================================
EXTRA SMALL
===================================== */
@media (max-width: 480px){

.header-menu{
    gap:6px;
}

.menu-item-top{
    min-width:66px;
    padding:7px;
}

.logo-img{
    height:74px;
}

body{
    font-size:14px;
}

}


#header-pedido{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    line-height:1.1;
    min-width:110px;
}

#header-pedido .monto{
    font-size:18px;
    font-weight:700;
    color:#004c99;
}

#header-pedido .items{
    font-size:12px;
    color:#666;
    font-weight:600;
}


/* =====================================
   MENU SUPERIOR EN CELULARES
===================================== */

@media (max-width: 575.98px) {

    .header-main {
        flex-wrap: wrap;
    }

    .header-menu {
        display: flex;
        flex-wrap: nowrap;
        justify-content: space-between;
        align-items: stretch;
        width: 100%;
        gap: 0;
        padding: 4px 2px;
    }

    .header-menu .menu-item-top {
        flex: 1 1 0;
        min-width: 0;
        padding: 5px 1px;
        font-size: 9px;
        text-align: center;
        white-space: nowrap;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
    }

    .header-menu .menu-item-top .icon {
        margin: 0;
        font-size: 17px;
    }

    .header-menu .menu-item-top .icon i {
        line-height: 1;
    }

}