/* Sepet Bottom Sheet Stilleri - Mobil Optimize */
.cart-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    align-items: flex-end;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

/* Sayfa kaydırmasını modal açıkken tamamen kilitle */
body.modal-open {
    overflow: hidden;
}

.cart-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.cart-modal-content {
    position: relative;
    background: linear-gradient(135deg, #1e293b, #0f172a);
    border-top: 3px solid rgba(249, 115, 22, 0.5);
    border-radius: 24px 24px 0 0;
    width: 100%;
    max-width: 100%;
    max-height: 90vh;
    height: auto;
    display: flex;
    flex-direction: column;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(249, 115, 22, 0.1);
    animation: slideUpFromBottom 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
    backdrop-filter: blur(20px);
    /* Mobil için dokunma optimizasyonu */
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUpFromBottom {
    from { 
        transform: translateY(100%);
        opacity: 0;
    }
    to { 
        transform: translateY(0);
        opacity: 1;
    }
}

.cart-modal-header {
    display: flex;
    flex-direction: column;
    padding: 15px 20px 20px 20px;
    border-bottom: 2px solid rgba(249, 115, 22, 0.2);
    background: rgba(249, 115, 22, 0.1);
    position: relative;
}

/* Mobil için drag handle */
.cart-modal-drag-handle {
    width: 40px;
    height: 5px;
    background: rgba(249, 115, 22, 0.5);
    border-radius: 3px;
    margin: 0 auto 15px auto;
    cursor: grab;
    flex-shrink: 0;
}

.cart-modal-drag-handle:active {
    cursor: grabbing;
}

.cart-modal-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.cart-modal-header h2 {
    color: #f97316;
    font-size: 1.5rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.cart-modal-close {
    background: transparent;
    border: none;
    color: #e2e8f0;
    font-size: 2rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.cart-modal-close:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    transform: rotate(90deg);
}

.cart-modal-body {
    padding: 25px 30px;
    overflow-y: auto;
    flex: 1;
    max-height: calc(90vh - 200px);
    scroll-behavior: smooth;
    /* Scroll bar'ı tamamen gizle - modern 2025 tasarım */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE ve Edge */
}

/* Scroll bar'ı Chrome/Safari'de tamamen gizle - ama scroll çalışır */
.cart-modal-body::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.cart-loading {
    text-align: center;
    padding: 40px;
    color: #94a3b8;
    font-size: 1.1rem;
}

.cart-empty {
    text-align: center;
    padding: 60px 20px;
    color: #94a3b8;
}

.cart-empty i {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 12px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.cart-item:hover {
    border-color: rgba(249, 115, 22, 0.4);
    transform: translateX(5px);
}

.cart-item-info {
    flex: 1;
}

.cart-item-title {
    color: #e2e8f0;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.cart-item-price {
    color: #f97316;
    font-size: 1.2rem;
    font-weight: 700;
}

.cart-item-remove {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
    width: 35px;
    height: 35px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.cart-item-remove:hover {
    background: rgba(239, 68, 68, 0.3);
    transform: scale(1.1);
}

/* Footer - Modern 2025 Tasarım */
.cart-modal-footer {
    padding: 0;
    border-top: 1px solid rgba(249, 115, 22, 0.2);
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.95));
    backdrop-filter: blur(20px);
    position: sticky;
    bottom: 0;
    z-index: 10;
}

.cart-total-wrapper {
    padding: 20px 30px;
    background: rgba(249, 115, 22, 0.08);
    border-bottom: 1px solid rgba(249, 115, 22, 0.15);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 22px;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.15), rgba(234, 88, 12, 0.1));
    border: 1px solid rgba(249, 115, 22, 0.25);
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.2);
}

.cart-total-label {
    color: #e2e8f0;
    font-size: 1.15rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-total-label i {
    color: #f97316;
    font-size: 1.2rem;
}

.cart-total-price {
    color: #f97316;
    font-size: 2rem;
    font-weight: 800;
    text-shadow: 0 2px 10px rgba(249, 115, 22, 0.4);
    letter-spacing: -0.5px;
}

.cart-modal-actions {
    display: flex;
    gap: 12px;
    padding: 20px 30px;
}

.btn-cart-clear {
    flex: 1;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    border: 1px solid rgba(239, 68, 68, 0.4);
    padding: 14px 18px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.btn-cart-clear:hover {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
}

.btn-cart-clear:active {
    transform: translateY(0);
}

.btn-cart-close {
    flex: 1;
    background: rgba(55, 65, 81, 0.8);
    color: #e2e8f0;
    border: 1px solid rgba(148, 163, 184, 0.3);
    padding: 14px 18px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-cart-close:hover {
    background: rgba(75, 85, 99, 0.9);
    transform: translateY(-2px);
    border-color: rgba(148, 163, 184, 0.5);
}

.btn-cart-close:active {
    transform: translateY(0);
}

.btn-cart-checkout {
    flex: 2;
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: white;
    border: none;
    padding: 16px 28px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.4);
    position: relative;
    overflow: hidden;
}

.btn-cart-checkout::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;
}

.btn-cart-checkout:hover::before {
    left: 100%;
}

.btn-cart-checkout:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(249, 115, 22, 0.5);
    background: linear-gradient(135deg, #ea580c, #dc2626);
    color: white;
}

.btn-cart-checkout:active {
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .cart-modal-content {
        width: 100%;
        max-height: 95vh;
        border-radius: 20px 20px 0 0;
    }
    
    .cart-modal-header {
        padding: 12px 15px 15px 15px;
    }
    
    .cart-modal-header h2 {
        font-size: 1.3rem;
    }
    
    .cart-modal-drag-handle {
        margin-bottom: 10px;
    }
    
    .cart-modal-body {
        max-height: calc(95vh - 200px);
        padding: 15px;
    }
    
    .cart-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cart-modal-actions {
        flex-direction: column;
    }
    
    .cart-total-wrapper {
        padding: 15px 20px;
    }
    
    .cart-total {
        padding: 15px 18px;
    }
    
    .cart-total-price {
        font-size: 1.6rem;
    }
    
    .cart-modal-footer {
        padding: 0;
    }
    
    .btn-cart-checkout {
        flex: 1;
    }
}

/* Modern Onay Dialogu */
.confirm-dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 20000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.confirm-dialog {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    border: 2px solid rgba(249, 115, 22, 0.4);
    border-radius: 20px;
    padding: 25px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(249, 115, 22, 0.1);
    animation: slideUp 0.3s ease;
    text-align: center;
}

.confirm-dialog-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    width: 100%;
}

.confirm-btn-cancel,
.confirm-btn-ok {
    flex: 1;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.confirm-btn-cancel {
    background: rgba(148, 163, 184, 0.2);
    color: #cbd5e1;
    border: 1px solid rgba(148, 163, 184, 0.3);
}

.confirm-btn-cancel:hover {
    background: rgba(148, 163, 184, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(148, 163, 184, 0.3);
}

.confirm-btn-ok {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.confirm-btn-ok:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.5);
}

body.confirm-dialog-open {
    overflow: hidden;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
    }
}

/* Modern Toast Bildirimi */
.toast-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #1e293b, #0f172a);
    border: 2px solid rgba(249, 115, 22, 0.4);
    border-radius: 12px;
    padding: 15px 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(249, 115, 22, 0.1);
    z-index: 30000;
    min-width: 280px;
    max-width: 400px;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast-notification.show {
    opacity: 1;
    transform: translateX(0);
}

.toast-notification.toast-success {
    border-color: rgba(34, 197, 94, 0.5);
    background: linear-gradient(135deg, rgba(6, 78, 59, 0.9), rgba(20, 83, 45, 0.9));
}

.toast-notification.toast-error {
    border-color: rgba(239, 68, 68, 0.5);
    background: linear-gradient(135deg, rgba(127, 29, 29, 0.9), rgba(153, 27, 27, 0.9));
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
    font-size: 0.95rem;
    font-weight: 500;
}

.toast-content i {
    font-size: 1.2rem;
}

.toast-success .toast-content i {
    color: #22c55e;
}

.toast-error .toast-content i {
    color: #ef4444;
}

@media (max-width: 768px) {
    .confirm-dialog {
        padding: 20px;
        margin: 20px;
    }
    
    .confirm-dialog-actions {
        flex-direction: column;
        gap: 12px;
    }
    
    .confirm-btn-cancel,
    .confirm-btn-ok {
        width: 100%;
        padding: 14px 20px;
    }
    
    .toast-notification {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
}

