/* =====================================================
   SIMPLE CART MODAL - COMPLETELY REBUILT FROM SCRATCH
   ===================================================== */

/* Modal Overlay */
.cart-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--black-overlay);
    z-index: 10000;
    display: none;
    justify-content: flex-end;
    align-items: stretch;
}

.cart-modal.active {
    display: flex;
}

/* Modal Panel */
.cart-modal-panel {
    background: var(--white-pure);
    width: 500px;
    height: 100vh;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.cart-modal.active .cart-modal-panel {
    transform: translateX(0);
}

/* Header */
.cart-modal-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.cart-modal-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.cart-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}

.cart-modal-close:hover {
    background: var(--bg-light);
}

/* Body */
.cart-modal-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

/* Items */
.cart-items-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.cart-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--gray-100);
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-image {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.cart-item-content {
    flex: 1;
}

.cart-item-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 5px 0;
    line-height: 1.3;
}

.cart-item-price {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 16px;
}

.cart-item-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
}

/* Quantity Controls - Premium Design */
.quantity-controls {
    display: inline-flex;
    align-items: center;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.quantity-btn {
    background: var(--white-pure);
    border: none;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #495057;
    transition: all 0.2s ease;
    position: relative;
}

.quantity-btn:hover:not(:disabled) {
    background: var(--primary-color);
    color: var(--white-pure);
    transform: scale(1.05);
}

.quantity-btn:active:not(:disabled) {
    transform: scale(0.95);
}

.quantity-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: var(--bg-light);
}

.quantity-value {
    min-width: 45px;
    text-align: center;
    font-weight: 600;
    padding: 0 12px;
    font-size: 15px;
    color: #212529;
    background: var(--white-pure);
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
}

.remove-btn {
    background: var(--white-pure);
    border: 1px solid #dc3545;
    color: #dc3545;
    cursor: pointer;
    padding: 8px 10px;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
}

.remove-btn:hover {
    background: #dc3545;
    color: var(--white-pure);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

/* Summary */
.cart-summary {
    background: var(--bg-light);
    padding: 20px;
    margin: 20px 0;
    border-radius: 8px;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
    font-weight: 600;
    color: #1976d2;
}

/* Footer */
.cart-modal-footer {
    padding: 20px;
    border-top: 1px solid var(--border-light);
    display: flex;
    gap: 15px;
    flex-shrink: 0;
}

.cart-btn {
    flex: 1;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.cart-btn-secondary {
    background: var(--bg-light);
    color: #666;
}

.cart-btn-secondary:hover {
    background: var(--border-color);
}

.cart-btn-primary {
    background: #1976d2;
    color: var(--white-pure);
}

.cart-btn-primary:hover {
    background: #1565c0;
}

/* Empty State */
.cart-empty {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.cart-empty-icon {
    font-size: 48px;
    margin-bottom: 20px;
    color: #ddd;
}

/* Desktop/Tablet Only - NO MOBILE CODE */