/* Evita que OverlayScrollbars se meta encima del modal */
/* .os-padding
{
    z-index: auto !important;
} */
.os-host,
.os-padding,
.os-viewport,
.os-content 
{
    z-index: auto !important;
}

.modal.fade .modal-dialog {
    transition: none !important; /* evita choque con GSAP */
}
html, body
{
    width: 100%;
    max-width: 100%;
    overflow-x: hidden !important;
}
body
{
    font-family: "Mulish", sans-serif;
    background-color: #eeeeee;
}
.img_fondo
{
    background-image: url(../img/carta/patron.png);
    background-size: 300px;
}
#sidebar
{
    position: fixed;
    top: 70px;
    left: 0;
    width: 120px;
    height: calc(100vh - 70px);
    overflow-y: auto;
    border-right: 1px solid #ddd;
    padding-top: 0px;
    overflow: hidden;
    transition: all 0.3s ease;
    background-color: #f5f5f5;
}
#sidebar .category
{
    text-align: center;
    padding: 12px 14px;
    cursor: pointer;
    color: #4b5563;
    transition: 0.2s;
}
#sidebar .category.active
{
    background: #fff2df;
    color: #c26e00;
    font-weight:700;
    box-shadow: 0 6px 18px rgba(194,110,0,0.2);
}
#sidebar .category i
{
    font-size: 26px;
    display: block;
}
#sidebar .category span
{
    font-size: 13px;
}

.mainHeader
{
    height: 70px;
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    background-color: white;
}
/* Contenido de productos */
#contenido
{
    /* margin-top: 80px; */
    margin-top: 105px;
    padding: 5px 30px 0px 150px;
    margin-bottom: -50px !important;
    /* height: calc(100vh - 220px); */
}
#contenido_carta
{
    margin-top: 70px;
    padding: 15px;
    margin-bottom: -50px !important;
}
.card-producto
{
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
    border: 2px solid #ebd21b;
    cursor: pointer;
    color: #49595b;
}
.card-producto:hover
{
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.card-producto .card_img
{
    overflow: hidden;
}
.card-producto .card-img-left
{
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.card-producto:hover .card-img-left
{
    transform: scale(1.3);
}
.card-producto .precio
{
    font-size: 1.3rem;
    font-weight: 700;
    color: #302121;
}
.card-producto .font-title
{
    font-size: 18px;
}
.card-producto .font-categoria
{
    font-size: 14px;
}
.card-producto .font-descripcion
{
    font-size: 12px;
}

.logo-header
{
    height: 60px;
}
.text-color-oficial
{
    color: #302121;
}
.texto-limitado
{
    display: -webkit-box;
    -webkit-line-clamp: 2;       /* Número de líneas */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
section
{
    scroll-margin-top: 80px;
}
.titulo-categoria-sticky
{
    display: flex;
    align-items: center;
    position: fixed;
    top: 70px;
    left: 150px;
    right: 0;
    z-index: 999;
    /* width: calc(100vw - 195px); */
    padding-left: 14px;
    background-color: #eeeeee;
    height: 40px;
    transition: box-shadow 1s ease, background-color 0.3s ease;
}
/* h5.titulo-categoria-sticky + div 
{
    padding-top: 25px;
} */
footer 
{
    margin-top: 50px;
    padding: 25px 0;
    background: #302121;
    color: white;
    margin-left: 120px !important;
    width: calc(100vw - 120px);
    padding-bottom: 100px;
}
.my_footer 
{
    margin-left: 0 !important;
    width: 100% !important;
    padding-bottom: 10px !important;
}
.footer_padding
{
    padding-bottom: 25px !important;
}
.step-circle {
    width: 26px;
    height: 26px;
    background: #0d6efd;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: .8rem;
}
/* Redes sociales (circulares) */
.footer-social 
{
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 6px !important;
}
.footer-social .social-btn 
{
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 5px;
    font-size: 22px;
    color: #fff;
    text-decoration: none;
    transition: 0.2s;
}
.social-btn.fb { background: #1877f2; }
.social-btn.tiktok { background: #000000; }
.social-btn.ig { background: #C13584; }
.social-btn.wa { background: #25D366; }

.footer-social .social-btn:hover 
{
    transform: scale(1.12);
}
.footer-actions 
{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}
.footer-actions .action-btn 
{
    padding: 8px 14px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    border-radius: 10px;
    text-decoration: none;
    background: #f1f1f1;
    color: #333;
    transition: 0.25s;
    border: 1px solid #ddd;
}
.footer-actions .action-btn:hover 
{
    background: #e4e4e4;
    transform: scale(1.04);
}
.contenedor-textos 
{
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 14px;
}
.pedido-flotante 
{
    position: fixed;
    bottom: 15px;
    left: 120px;     
    right: 0;        
    max-width: 100%; 
    margin-left: 20px;
    margin-right: 20px;

    background: #D8A53A;
    color: #302121;
    border-radius: 16px;   
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1039;
    cursor: pointer;
    transition: all 0.25s ease;
    /* position: fixed;
    bottom: 15px;

    left: calc((100% + 120px) / 2);
    transform: translateX(-50%); */
}
/* Hover suave */
.pedido-flotante:hover 
{
    transform: translateY(-4px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.18);
}
.pedido-info 
{
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.pedido-cantidad 
{
    font-size: 0.92rem;
    font-weight: 500;
    opacity: 0.8;
}
.pedido-total 
{
    font-size: 1.35rem;  /* 🔥 Total más grande */
    font-weight: 700;
    margin-top: 2px;
}
.pedido-btn 
{
    display: flex;
    flex-direction: column;
    align-items: center;
    font-weight: 700;
    font-size: 0.85rem;
    text-align: center;
}
.pedido-btn i 
{
    font-size: 1.45rem;
    margin-bottom: 2px;
}
.thumb 
{
    width: 70px;
    height: 70px;
    object-fit: cover;
    cursor: pointer;
    transition: .2s;
    border-radius: 10px;
}
.thumb:hover 
{
    border: 2px solid #0d6efd;
}
.fancybox__container 
{
    z-index: 999999 !important;
}
/* Asegura altura uniforme del input y del label total */
.modal-footer .inp_cantidad, .modal-footer .btn-minus, .modal-footer .btn-plus, .modal-footer .total-label 
{
    height: 40px;
    min-height: 40px;
    display: flex;
    align-items: center;
}
.total-label 
{
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}
.total-box  /* Apariencia total-box (label) */
{
    justify-content: flex-start; /* el label a la izquierda dentro del box */
    padding-right: 12px;
}
.modal-footer .input-group .btn 
{
    border-radius: 6px;
}
/* Responsivo */
@media (max-width: 768px)
{
    #sidebar
    {
        width: 95px;
    }
    footer 
    {
        margin-left: 95px !important;
        width: calc(100vw - 95px) !important;
    }
    .contenedor-textos 
    {
        flex-direction: column;
        text-align: center;
        gap: 6px; 
    }
    .texto-izq, .texto-der 
    {
        text-align: center; 
    }
    #contenido
    {
        margin-top: 105px !important;
        padding: 5px 0px 0px 95px !important;
    }
    .titulo-categoria-sticky
    {
        left: 95px !important;
    }
}
@media (max-width: 576px)
{
    .my_img_product
    {
        height: 200px !important;
        width: auto;          /* mantiene la proporción */
        object-fit: contain;    /* o contain, según lo que busques */
        box-shadow : none !important;
    }
    .thumb
    {
        width: 45px !important;
        height: 45px !important;
    }
    .sidebar-spacer 
    {
        height: 58px;
    }
    .pedido-flotante
    {
        left: 95px !important;     
    }
    /* Que el footer no se meta debajo del sidebar */
    footer 
    {
        margin-left: 95px !important;
        width: calc(100vw - 95px) !important;
    }
    .contenedor-textos 
    {
        flex-direction: column;
        text-align: center;
        gap: 6px; 
    }
    .texto-izq, .texto-der 
    {
        text-align: center; 
        margin-left: 0px !important;
        margin-right: 0px !important;
    }
    #sidebar
    {
        width: 95px !important;
        /* background-color: red; */
        /* margin-top: 10px !important; */
        /* height: calc(100vh - 125px) !important; */
    }
    #contenido
    {
        margin-top: 105px !important;
        padding: 5px 0px 0px 95px !important;
    }
    .card-producto .font-title
    {
        font-size: 13px;
        /* line-height: 0px; */
    }
    .card-producto .font-categoria
    {
        font-size: 10px;
    }
    .p_cat
    {
        margin-top: -10px !important;
    }
    .card-producto .font-descripcion
    {
        font-size: 9.5px;
        margin-top: -5px;
    }
    .div_precio
    {
        margin-top: -5px;
    }
    .precio
    {
        font-size: 1.1rem !important;
    }
    .titulo-categoria-sticky
    {
        left: 95px !important;
    }
}
/* .modal-dialog {
    will-change: transform, opacity;
    transform: translateZ(0);
} */