/* ========================================
   Cart Notification Styles
   ======================================== */

.notification {
    position: fixed;
    right: 20px;
    padding: 16px 24px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    z-index: 9999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: bottom 0.3s ease;
    max-width: 400px;
    word-wrap: break-word;
}

.notification.show {
    bottom: 20px;
}

.notification i {
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* Success Notification */
.notification-success {
    background: #28a745;
    color: white;
}

.notification-success i {
    color: white;
}

/* Error Notification */
.notification-error {
    background: #dc3545;
    color: white;
}

.notification-error i {
    color: white;
}

/* Info Notification */
.notification-info {
    background: #17a2b8;
    color: white;
}

.notification-info i {
    color: white;
}

/* Warning Notification */
.notification-warning {
    background: #ffc107;
    color: #333;
}

.notification-warning i {
    color: #333;
}

/* Mobile Notifications */
@media (max-width: 575px) {
    .notification {
        right: 10px;
        max-width: auto;
        padding: 14px 16px;
        font-size: 0.9rem;
    }

    .notification.show {
        bottom: 10px;
    }
}

/* ========================================
   Cart Badge Styles
   ======================================== */

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    min-width: 24px;
    animation: badgePulse 0.4s ease;
}

@keyframes badgePulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

.cart-badge:empty {
    display: none;
}

/* ========================================
   Add to Cart Button Styles
   ======================================== */

.btn-add-to-cart {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #1a1a1a;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-add-to-cart:hover:not(:disabled) {
    background: #333;
    transform: translateX(4px);
}

.btn-add-to-cart:active:not(:disabled) {
    transform: translateX(2px);
}

.btn-add-to-cart:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-add-to-cart i {
    font-size: 1rem;
}

/* Alternative button styles */
.btn-add-to-cart.btn-secondary {
    background: #6c757d;
}

.btn-add-to-cart.btn-secondary:hover:not(:disabled) {
    background: #5a6268;
}

.btn-add-to-cart.btn-success {
    background: #28a745;
}

.btn-add-to-cart.btn-success:hover:not(:disabled) {
    background: #218838;
}

.btn-add-to-cart.btn-warning {
    background: #ffc107;
    color: #333;
}

.btn-add-to-cart.btn-warning:hover:not(:disabled) {
    background: #e0a800;
}

/* ========================================
   Quantity Input Styles
   ======================================== */

.quantity-input-group {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
    background: white;
}

.quantity-input-group button {
    background: #f5f5f5;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    transition: background 0.3s ease;
    font-weight: 600;
    color: #333;
}

.quantity-input-group button:hover {
    background: #e0e0e0;
}

.quantity-input-group input {
    border: none;
    text-align: center;
    padding: 8px;
    width: 60px;
    font-weight: 600;
    font-size: 0.95rem;
}

.quantity-input-group input:focus {
    outline: none;
    background: #f9f9f9;
}

/* ========================================
   Responsive Cart Styles
   ======================================== */

@media (max-width: 575px) {
    .btn-add-to-cart {
        padding: 8px 12px;
        font-size: 0.85rem;
        width: 100%;
        justify-content: center;
    }

    .quantity-input-group {
        width: 100%;
    }

    .quantity-input-group input {
        width: 80px;
    }
}
