@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(https://fonts.gstatic.com/s/montserrat/v31/JTUSjIg1_i6t8kCHKm459W1hyyTh89ZNpQ.woff2) format('woff2');
}

.form-control {
    display: block;
    width: 100%;
    height: 34px;
    padding: 6px 12px;
    font-size: 14px;
    line-height: 1.42857143;
    color: #333;
    background-color: #fff;
    background-image: none;
    border: 1px solid #ccc;
    border-radius: 4px;
    -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
    -webkit-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
    -o-transition: border-color ease-in-out .15s,box-shadow ease-in-out .15s;
    -webkit-transition: border-color ease-in-out .15s, -webkit-box-shadow ease-in-out .15s;
    transition: border-color ease-in-out .15s, -webkit-box-shadow ease-in-out .15s;
    transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
    transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s, -webkit-box-shadow ease-in-out .15s;
}

.table-bordered>:not(caption)>*>* {
    border-width: 0px;
    color: #333;
    font-size: 90%;
}

td{
    padding: 4px;
    line-height: 1.4;
    vertical-align: middle;
    border-top: 1px solid #000000;
}

.header-top{
    background:#B3282B;
    color:white;
    padding:12px;
}

.btn-fidelidade{
    background:#6F42C1;
    color:white;
    padding:4px 10px;
    border-radius:20px;
    font-size:12px;
    cursor:pointer;
}

#wrapperCategorias {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #fff;
    padding: 8px 0;
}

/* .menu-categorias{
    background:#fff;
    padding:10px;
    display:flex;
    justify-content:space-around;
    border-bottom:1px solid #eee;
} */

.menu-categorias {
    background:#fff;
    gap: 15px;
    display: flex;
    overflow-x: auto !important;
    white-space: nowrap;
    scroll-behavior: smooth;
    flex: 1;
    padding: 0 35px; /* espaço para as setas */
    cursor: grab;
    user-select: none;
}

.menu-categorias.dragging {
    cursor: grabbing;
}

.menu-categorias::-webkit-scrollbar {
    display: none;
}

/* .menu-item{
    font-size:12px;
    text-decoration:none;
    color:#333;
} */

.menu-item {
    flex: 0 0 calc(100% / 3);
    text-align: center;
    padding: 6px 0;
    position: relative;
    transition: all 0.2s ease;
    font-size:12px;
    text-decoration:none;
    color:#333;
    max-width: calc(100% / 3);
}

.menu-item img{
    margin-bottom:3px;
}

.menu-item.active {
    color: #B3282B;
    font-weight: 600;
}

.menu-item.active::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 20%;
    width: 60%;
    height: 3px;
    background: #B3282B;
    border-radius: 2px;
}

[id^="categoria-"] {
    scroll-margin-top: 90px;
}

.center-text{
    text-align: center !important;
}

html{
    scroll-behavior:smooth;
}

.badge-pontos {
    display:inline-block;
    background:#33B679;
    color:#fff;
    font-size:11px;
    font-weight:600;
    padding:3px 10px;
    border-radius:20px;
    margin:4px 0;
    font-weight: bolder;
}

.badge-pontos2 {
    display:inline-block;
    background:#33B679;
    color:#fff;
    font-size:11px;
    padding:2px 6px;
    border-radius:20px;
    font-weight: bolder;
}


/* FOOTER */
.footer-app{
    position:fixed;
    bottom:0;
    left:0;
    width:100%;
    background:#f2f2f2;
    padding:10px;
    display:flex;
    align-items:center;
    gap:10px;
    box-shadow:0 -5px 15px rgba(0,0,0,0.08);
}

.footer-cart{
    background:#99211c;
    color:#fff;
    padding:12px 18px;
    border-radius:25px;
    display:flex;
    align-items:center;
    gap:6px;
    font-size:13px;
}

.footer-search{
    flex:1;
    border:none;
    padding:10px 15px;
    border-radius:25px;
    background:#e9e9e9;
    font-size:13px;
    width: 100%;
}

.footer-icon{
    width:40px;
    height:40px;
    border-radius:50%;
    background:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    border:1px solid #ddd;
}

.wine{
    color: #910200;
}


/* MODAL FIDELIDADE */
.modal-fidelidade{
    border-radius:20px;
    overflow:hidden;
    border:none;
    box-shadow:0 10px 30px rgba(0,0,0,0.25);
}

.modal-header-custom{
    background:#E8CBA6;
    text-align:center;
    font-weight:bold;
    padding:15px;
    font-size:16px;
}

.btn-close-custom{
    position:absolute;
    top:5px;
    right:5px;
    background:#B3282B;
    color:#fff;
    border:none;
    width:40px;
    height:40px;
    border-radius:50%;
    font-size:18px;
    box-shadow:0 5px 15px rgba(0,0,0,0.3);
    cursor:pointer;
}


/* SIDEBAR */
#sidebar{
    position:fixed;
    top:0;
    left:-280px;
    width:270px;
    height:100%;
    background:#fbddb8;
    padding:20px;
    transition:0.3s;
    z-index:1050;
    overflow-y:auto;
    color:#222;
}

#sidebar.active{
    left:0;
}

#overlay{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,0.4);
    display:none;
    z-index:1040;
}

#overlay.active{
    display:block;
}

.menu-horarios{
    background:#8B1E1E;
    color:#fff;
    padding:8px;
    border-radius:6px;
    text-align:center;
    font-weight:bold;
    cursor:pointer;
    margin-bottom:15px;
}

.btn-fechar{
    background:#B3282B;
    border:none;
    color:white;
    width:35px;
    height:35px;
    border-radius:50%;
    font-size:18px;
}

.close{
    position: absolute;
    right: 10px;
    top: 12px;
    z-index: 10;
}

.modal-titulo{
    display:flex;
    align-items:center;
    gap:10px;
}

.modal-nome{
    font-weight:600;
    font-size:16px;
}


/* ----------------------------------------[MODAL PRODUTOS]----------------------------------------*/
.modal-produto {
    height: 88%;
    top: 3%;
}

.container {
    padding-bottom: 60px !important; /* >= altura do footer */
}

/* BOTÃO X */
.desc-modal-items{
    text-align: center;
}

#modalHeaderCategorias {
    padding: 5px;
    margin-top: 5px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

#modalHeaderCategorias::-webkit-scrollbar {
    display: none;
}

/* .categorias-wrapper {
    position: relative;
    display: flex;
    align-items: center;
} */

.categorias-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.categorias-wrapper .scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
    cursor: pointer;
    z-index: 10;
    display: flex;              /* força aparecer */
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.categorias-wrapper .scroll-btn.left {
    left: 0;
}

.categorias-wrapper .scroll-btn.right {
    right: 0;
}

.categorias-wrapper::before,
.categorias-wrapper::after {
    content: "";
    position: absolute;
    top: 0;
    width: 40px;
    height: 100%;
    pointer-events: none;
    z-index: 5;
}

.categorias-wrapper::before {
    left: 0;
    background: linear-gradient(to right, white, transparent);
}

.categorias-wrapper::after {
    right: 0;
    background: linear-gradient(to left, white, transparent);
}

.scroll-btn {
    display: none; /* escondido por padrão */
    background: #fff;
    color: black;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
}

@media (min-width: 768px) {

    .scroll-btn {
        display: block;
    }

    #modalHeaderCategorias {
        overflow-x: hidden; /* esconde barra */
    }
}

.rounded-pill-custom{
    border-radius: 20px;
}

.modal-close-custom{
    background:#B3282B;
    color:#fff;
    width:32px;
    height:32px;
    border-radius:50%;
    border:none;
    display:flex;
    align-items:center;
    justify-content:center;
    position: absolute;
    right: 10px;
    top: 10px;
}

/* GRUPOS */
.grupo-opcao h6{
    font-weight:600;
    font-size:15px;
}

.grupo-opcao small{
    display:block;
    margin-bottom:10px;
    color:#777;
    
}

.border-grupo{
    border-radius:10px;
    border:1px solid #e5e5e5;
    border-top: 0px !important;
}

/* CARD DAS OPÇÕES */
.opcao-item{
    background:#fff;
    padding:12px;
    margin-bottom:8px;
    border-top:1px solid #e5e5e5;
}

/* CONTADOR */
.contador{
    display:flex;
    align-items:center;
    gap:10px;
}

.btn-contador{
    width: 30px;
    height: 30px;
    border-radius: 15px;
    border: 1px solid #ccc;
    background:#f5f5f5;
    display:flex;
    align-items:center;
    justify-content:center;
    font-weight:600;
    transition: 
        background-color 0.3s ease,
        color 0.3s ease,
        transform 0.3s ease;
}

.btn-contador.flash {
    background:#8B1E1E !important;
    color:#fff !important;
    transform:scale(1.1);
}

.quantidade{
    min-width:20px;
    text-align:center;
    font-weight:600;
}

.modal-header-c2{
    background: #fbddb8;
    padding: 20px 10px 0px 10px;
    border-bottom: none;
}

.box-desc-prod {
    font-size: 20px;
    background: #fbddb8;
    font-weight: bold;
    padding: 15px 10px 20px 10px;
    border-radius: var(--bs-modal-border-radius) var(--bs-modal-border-radius) 0px 0px;
}

.pad-top{
    padding-top: 5px !important;
}

.pad-bottom{
    padding-bottom: 15px !important;
}

.pad-bottom0{
    padding-bottom: 0px !important;
}

.pad{
    padding: 5px !important;
}

.price-badge{
    display:inline-block;
    background:#fff;
    color:#000000;
    font-size:11px;
    font-weight:600;
    padding:3px 10px;
    border-radius:20px;
    margin:4px 0;
    font-weight: bolder;
}

.additional-price-badge{
    display:inline-block;
    background:#777;
    color:#fff;
    font-size:10px;
    padding:3px 6px;
    border-radius:20px;
    margin:4px 0;
    font-weight: bolder;
}

.sidebar-link {
    color: #1a1a1a;
    text-decoration: none;
}


/* DENTRO DO CARRINHO */
.controle-quantidade {
    display: flex;
    align-items: center;
    gap: 8px;
}

.label-qtde {
    font-size: 14px;
    font-weight: 500;
    color: #666;
}

.qtde-box {
    display: flex;
    align-items: center;
    background: #f1f1f1;
    border-radius: 30px;
    padding: 4px 8px;
    gap: 8px;
}

.qtde-box button {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: #B3282B;
    color: #fff;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    transition: 0.2s ease;
}

.qtde-box button:hover {
    background: #f31317;
}

.qtde-box button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.numero-qtde {
    min-width: 20px;
    text-align: center;
    font-weight: 600;
}