/* Cart & Auth Pages Styles */

/* Force light theme for cart and auth pages */
body {
    background: #f8f9fa !important;
    color: #1f2937 !important;
}

/* Cart Page Styles */
.cart-detail-block {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 1px solid rgba(99, 102, 241, 0.1);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
    margin: 2rem 0;
}

.cart-detail-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
}

.cart-title {
    color: #1f2937;
    font-weight: 700;
    font-size: 2rem;
    margin-bottom: 2rem;
    position: relative;
    text-align: center;
}

.cart-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    border-radius: 2px;
}

.cart-fast-title {
    color: #1f2937;
    font-weight: 600;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.cart-fast-desc {
    color: #6b7280;
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.cart-fast-form {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(99, 102, 241, 0.1);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

/* Auth Page Styles */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000000;
    position: relative;
    padding: 2rem 1rem;
}

.auth-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 60"><defs><pattern id="dotPattern" width="60" height="60" patternUnits="userSpaceOnUse"><circle cx="30" cy="30" r="1" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23dotPattern)"/></svg>');
    z-index: 1;
}

.auth-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 2;
    overflow: hidden;
    max-width: 400px;
    width: 100%;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
}

.auth-title {
    color: #1f2937;
    font-weight: 700;
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
}

.auth-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    border-radius: 2px;
}

/* Form Styles - общие для корзины и авторизации */
.cart-fast-form .form-label,
.auth-card .form-label {
    color: #374151;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.cart-fast-form .form-control,
.auth-card .form-control {
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
}

.cart-fast-form .form-control:focus,
.auth-card .form-control:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    background: rgba(255, 255, 255, 1);
    outline: none;
}

.cart-fast-form .form-control::placeholder,
.auth-card .form-control::placeholder {
    color: #9ca3af;
}

.form-text {
    color: #6b7280;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.form-check-input {
    border: 1px solid #d1d5db;
    border-radius: 4px;
    margin-top: 0.125rem;
}

.form-check-input:checked {
    background-color: #6366f1;
    border-color: #6366f1;
}

.form-check-label {
    color: #374151;
    font-size: 0.9rem;
}

.form-check-label a {
    color: #6366f1;
    text-decoration: none;
    font-weight: 500;
}

.form-check-label a:hover {
    text-decoration: underline;
}

/* Button Styles */
.order-btn {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border: none;
    border-radius: 8px;
    padding: 0.875rem 2rem;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.order-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.order-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
    background: linear-gradient(135deg, #5855f5 0%, #7c3aed 100%);
}

.order-btn:hover::before {
    left: 100%;
}

.order-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

/* Cart Items Styles */
.cart-item {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(99, 102, 241, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cart-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: rgba(99, 102, 241, 0.2);
}

.cart-item-title {
    color: #1f2937;
    font-weight: 600;
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.cart-item-price {
    color: #6366f1;
    font-weight: 700;
    font-size: 1.25rem;
}

.cart-total {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 2px solid rgba(99, 102, 241, 0.2);
    border-radius: 12px;
    padding: 2rem;
    margin-top: 2rem;
    text-align: center;
    position: relative;
}

.cart-total::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
}

.cart-total-title {
    color: #1f2937;
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.cart-total-amount {
    color: #6366f1;
    font-weight: 700;
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.auth-link {
    text-align: center;
    margin-top: 1.5rem;
}

.auth-link a {
    color: #6366f1;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.auth-link a:hover {
    color: #5855f5;
    text-decoration: underline;
}

/* Alert Styles */
.alert {
    border: none;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.alert-success {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.alert-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.alert-warning {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.alert-info {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .cart-detail-block,
    .auth-card {
        margin: 1rem;
        padding: 1.5rem;
    }
    
    .cart-title,
    .auth-title {
        font-size: 1.5rem;
    }
    
    .cart-fast-title {
        font-size: 1.25rem;
    }
    
    .order-btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .cart-total-amount {
        font-size: 1.5rem;
    }
    
    .auth-container {
        min-height: 80vh;
        padding: 1rem;
    }
}

/* Animation Effects */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cart-detail-block,
.auth-card {
    animation: fadeInUp 0.6s ease-out;
}

.cart-item {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.cart-item:nth-child(1) { animation-delay: 0.1s; }
.cart-item:nth-child(2) { animation-delay: 0.2s; }
.cart-item:nth-child(3) { animation-delay: 0.3s; }
.cart-item:nth-child(4) { animation-delay: 0.4s; }
.cart-item:nth-child(5) { animation-delay: 0.5s; }

/* Notification Styles */
.notification-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 10000;
    pointer-events: none;
}

.notification {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    padding: 1rem 1.5rem;
    margin-bottom: 0.75rem;
    max-width: 350px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    pointer-events: auto;
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
}

.notification.removing {
    transform: translateX(400px);
    opacity: 0;
}

.notification-success {
    border-left: 4px solid #10b981;
}

.notification-error {
    border-left: 4px solid #ef4444;
}

.notification-info {
    border-left: 4px solid #6366f1;
}

.notification-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-success .notification-icon {
    color: #10b981;
}

.notification-error .notification-icon {
    color: #ef4444;
}

.notification-info .notification-icon {
    color: #6366f1;
}

.notification-content {
    flex: 1;
}

.notification-message {
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    line-height: 1.4;
}

.notification-close {
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 0.5rem;
}

.notification-close:hover {
    background: rgba(107, 114, 128, 0.1);
    color: #374151;
}

/* Modern Cart Summary Styles */
.cart-summary-modern {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.98) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 16px;
    padding: 1.5rem;
    margin: 2rem 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.cart-summary-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
}

.summary-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.summary-icon {
    color: #6366f1;
    flex-shrink: 0;
}

.summary-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
}

.summary-content {
    margin-bottom: 1.5rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(99, 102, 241, 0.08);
}

.summary-row:last-child {
    border-bottom: none;
}

.summary-label {
    font-size: 0.9rem;
    color: #6b7280;
    font-weight: 500;
}

.summary-value {
    font-size: 0.9rem;
    color: #374151;
    font-weight: 600;
}

.summary-free {
    color: #10b981 !important;
    font-weight: 600;
}

.summary-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #6366f1, transparent);
    margin: 1rem 0;
}

.summary-total {
    padding: 1rem 0 0 0;
    border-top: 2px solid rgba(99, 102, 241, 0.1);
}

.summary-total .summary-label {
    font-size: 1.1rem;
    color: #1f2937;
    font-weight: 600;
}

.summary-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: #6366f1;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.summary-features {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(99, 102, 241, 0.1);
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
}

.feature-item svg {
    color: #10b981;
    flex-shrink: 0;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .cart-summary-modern {
        margin: 1rem 0;
        padding: 1rem;
    }
    
    .summary-header {
        margin-bottom: 1rem;
    }
    
    .summary-title {
        font-size: 1.1rem;
    }
    
    .summary-amount {
        font-size: 1.25rem;
    }
}