.cart-modal {
    position: fixed;
    top: 80px;
    right: 20px;
    transform: scale(0.95);
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    width: 90%;
    max-width: 500px;
    max-height: 85vh;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.cart-modal.show {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.cart-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.cart-modal-header h3 {
    margin: 0;
    color: #333;
    font-size: 1.25rem;
}

.close-modal {
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
    padding: 4px;
    transition: color 0.3s;
}

.close-modal:hover {
    color: #ff4444;
}

.cart-items {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 1.5rem;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #eee;
    transition: background-color 0.3s;
}

.cart-item:hover {
    background-color: #f8f9fa;
}

.item-details {
    flex-grow: 1;
    padding-right: 1rem;
}

.item-details h4 {
    margin: 0 0 0.5rem;
    color: #333;
    font-size: 1rem;
}

.item-details p {
    margin: 0;
    color: #000000;
    font-weight: 600;
}

.remove-item {
    background: none;
    border: none;
    color: #ff4444;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 4px 8px;
    transition: color 0.3s;
}

.remove-item:hover {
    color: #ff2020;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-top: 2px solid #eee;
    margin-top: 1rem;
    font-weight: 600;
}

.checkout-btn {
    width: 100%;
    padding: 1rem;
    background: #000000;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.checkout-btn:hover {
    background: #000000;
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.cart-overlay.show {
    opacity: 1;
    visibility: visible;
}