/* Cart Notification Styles */
.cart-notification {
    position: fixed;
    top: 100px;
    right: -400px;
    background: linear-gradient(135deg, #81c408, #5a9006);
    color: white;
    padding: 15px 25px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(129, 196, 8, 0.4);
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    font-size: 15px;
    min-width: 250px;
    transition: right 0.3s ease;
}

.cart-notification.show {
    right: 20px;
}

.cart-notification i {
    font-size: 1.2rem;
    color: white;
    flex-shrink: 0;
}

.cart-notification span {
    color: white;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
    white-space: normal;
    word-wrap: break-word;
}

/* Cart Count Badge */
.cart-count {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Empty Cart Styles */
#cartItemsContainer .fa-shopping-cart {
    opacity: 0.3;
}

/* Quantity Controls */
.quantity .btn-minus,
.quantity .btn-plus {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.quantity .btn-minus:hover,
.quantity .btn-plus:hover {
    background: var(--bs-primary) !important;
    color: white;
    transform: scale(1.1);
}

/* Cart Item Styles */
#cartItemsContainer tr {
    transition: all 0.3s ease;
}

#cartItemsContainer tr:hover {
    background: rgba(129, 196, 8, 0.05);
}

/* Cart Discount Section Styles */
.cart-discount-section {
    padding: 0;
    border-top: 1px solid #e5e7eb;
    border-bottom: none;
    background: white;
}

.cart-discount-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 1rem 1.5rem;
    user-select: none;
    transition: background 0.2s;
}

.cart-discount-header:hover {
    background: #f9fafb;
}

.cart-discount-header span {
    font-size: 15px;
    font-weight: 400;
    color: #6b7280;
}

.btn-discount-toggle {
    background: transparent;
    border: none;
    color: #6b7280;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, color 0.2s;
}

.btn-discount-toggle:hover {
    color: #111827;
}

.btn-discount-toggle.active i {
    transform: rotate(45deg);
}

.cart-discount-content {
    padding: 0 1.5rem 1rem 1.5rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.discount-input-group {
    display: flex;
    gap: 0.5rem;
}

.discount-input-group input {
    flex: 1;
    padding: 0.65rem 0.875rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    color: #374151;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.discount-input-group input::placeholder {
    color: #9ca3af;
}

.discount-input-group input:focus {
    outline: none;
    border-color: #81c408;
    box-shadow: 0 0 0 3px rgba(129, 196, 8, 0.1);
}

.discount-input-group button {
    padding: 0.65rem 1.25rem;
    border-radius: 6px;
    white-space: nowrap;
    font-weight: 500;
    font-size: 14px;
    background: #81c408;
    color: white;
    border: none;
    transition: background 0.2s, transform 0.1s;
}

.discount-input-group button:hover {
    background: #6a9d06;
}

.discount-input-group button:active {
    transform: scale(0.98);
}

.discount-message {
    margin-top: 0.5rem;
    font-size: 13px;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    display: none;
}

.discount-message.success {
    display: block;
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.discount-message.error {
    display: block;
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

/* Responsive */
@media (max-width: 768px) {
    .cart-notification {
        right: -300px;
        top: 80px;
        max-width: 280px;
        padding: 12px 20px;
        font-size: 0.9rem;
    }

    .cart-notification.show {
        right: 10px;
    }

    .cart-discount-section {
        padding: 0.75rem 1rem;
    }

    .discount-input-group {
        flex-direction: column;
    }

    .discount-input-group button {
        width: 100%;
    }
}