﻿/* === Drawer Overlay y Backdrop === */
.drawer-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(35,66,141,0.09);
    z-index: 1045;
    display: none;
    transition: opacity 0.2s;
}

    .drawer-backdrop.open {
        display: block;
        opacity: 1;
    }

/* === Drawer (Sidebar) === */
.drawer {
    position: fixed;
    top: 0;
    right: -410px;
    width: 380px;
    height: 100vh;
    background: #fff;
    box-shadow: -6px 0 18px 0 rgba(35,66,141,0.13);
    z-index: 1050;
    display: flex;
    flex-direction: column;
    border-top-left-radius: 1.1rem;
    border-bottom-left-radius: 1.1rem;
    overflow-y: auto;
    transition: right 0.28s cubic-bezier(0.23,1,0.32,1);
}

    .drawer.open {
        right: 0 !important;
    }

/* === Header y Cierre === */
.drawer-header {
    padding: 1.2rem 1.3rem 1rem 1.3rem;
    border-bottom: 1px solid #eaeaea;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--navy-banner); /* Color branding azul */
}

.drawer-close-btn {
    background: none;
    border: none;
    font-size: 1.75rem;
    color: #aaa;
    cursor: pointer;
    line-height: 1;
    padding: 0 0.3em;
}

/* === Contenido === */
.drawer-body {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 1.2rem 1.3rem;
}

.drawer-product-img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 0.8rem;
    border: 1px solid #f0f0f0;
    background: #f9f9fb;
}

.drawer-product-price {
    font-size: 1.07rem;
    color: #23428D;
}

/* === Footer === */
.drawer-footer {
    padding: 1.2rem 1.3rem;
    border-top: 1px solid #eaeaea;
    background: #f8fafd;
}

.drawer-total {
    font-size: 1.15rem;
    color: #23428D;
}

/* === Botón branding === */


/* === Responsivo === */
@media (max-width: 700px) {
    .drawer {
        width: 98vw;
        min-width: 0;
        border-radius: 0;
        right: -100vw;
    }

        .drawer.open {
            right: 0 !important;
        }
}


.flex-grow-1 {
    min-width: 0;
}