/* ============================================
   Cart Side Drawer Styles
   ============================================ */
.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    pointer-events: none;
}

.cart-drawer.active {
    pointer-events: all;
}

.cart-drawer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cart-drawer.active .cart-drawer-overlay {
    opacity: 1;
}

.cart-drawer-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 450px;
    height: 100%;
    background: white;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.cart-drawer.active .cart-drawer-content {
    transform: translateX(0);
}

.cart-drawer-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-dark) 100%);
    color: white;
}

.cart-drawer-header h5 {
    color: white;
}

.cart-drawer-header .btn-close {
    filter: invert(1);
}

.cart-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

.cart-drawer-footer {
    padding: 1.5rem;
    border-top: 1px solid #e5e7eb;
    background: #f8fafc;
}

.cart-item-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: var(--border-radius-sm);
    padding: 1rem;
    margin-bottom: 1rem;
    transition: var(--transition);
}

.cart-item-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.cart-item-status {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.cart-item-status.pending {
    background: #fef3c7;
    color: #92400e;
}

.cart-item-status.assigned {
    background: #fed7aa;
    color: #9a3412;
}

.cart-item-status.collected {
    background: #d1fae5;
    color: #065f46;
}

.cart-item-status.completed {
    background: #d1fae5;
    color: #065f46;
}

@media (max-width: 576px) {
    .cart-drawer-content {
        max-width: 100%;
    }
}