
/* Fondo oscuro */
.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1090;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Panel lateral */
.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 420px;
    max-width: 100%;
    height: 100vh;
    height: 100dvh;
    background: #fff;
    z-index: 1100;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.12);
}

.cart-drawer.active {
    transform: translateX(0);
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px;
    border-bottom: 1px solid #eee;
}

.cart-drawer-header h2 {
    margin: 0;
    color: #222;
    font-size: 1.15rem;
    font-weight: 600;
}

#close-cart {
    border: none;
    background: transparent;
    font-size: 30px;
    cursor: pointer;
}

.cart-drawer-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.cart-drawer-item {
    display: flex;
    gap: 14px;
    padding-bottom: 18px;
    margin-bottom: 18px;
    border-bottom: 1px solid #eee;
}

.cart-drawer-item img {
    width: 90px;
    height: 100px;
    object-fit: contain;
    border-radius: 10px;
}

.cart-drawer-item-info {
    flex: 1;
}

.cart-drawer-item-info h3 {
    font-size: 15px;
    margin: 0 0 8px;
}

.cart-drawer-item-info p {
    margin: 0 0 6px;
    font-size: 13px;
    color: #666;
}

.cart-drawer-footer {
    padding: 22px;
    border-top: 1px solid #eee;
}

.cart-drawer-total {
    display: flex;
    justify-content: space-between;
    margin-bottom: 18px;
    font-size: 17px;
}

.cart-drawer-button {
    display: block;
    text-align: center;
    padding: 14px;
    background: #048ABF;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
}

.cart-drawer-button:hover {
    color: white;
    opacity: 0.9;
}

body.cart-drawer-open {
    overflow: hidden;
}

.cart-drawer-empty {
    text-align: center;
    color: #666;
    padding: 35px 10px;
}

.drawer-quantity-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 10px 0;
}

.drawer-quantity-controls button {
    width: 30px;
    height: 30px;
    border: 1px solid #ddd;
    background: white;
    cursor: pointer;
    font-size: 18px;
}

.drawer-remove {
    display: block;
    margin-top: 10px;
    padding: 0;
    border: none;
    background: transparent;
    color: #dc3545;
    text-decoration: underline;
    cursor: pointer;
}

.action-button {
    border: none;
    outline: none;
    background: transparent;
    cursor: pointer;
}

.confi-product{
    display: grid;
    grid-template-columns: 2fr 1fr auto;
    align-items: end;
    gap: 18px;
    align-items: center;
    min-height: 10px; 
}
@media (max-width: 767px) {
    .confi-product {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}