/* ============================================================
   NovaCommerce - Modern E-Ticaret Özel Stilleri
   ============================================================ */

:root {
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --secondary: #0ea5e9;
    --accent: #f43f5e;
    --dark: #0f172a;
    --light: #f8fafc;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: #1e293b;
    background-color: #f8fafc;
    overflow-x: hidden;
}

/* Yumuşak Kaydırma & Scrollbar */
html {
    scroll-behavior: smooth;
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Glassmorphism ve Kart Efektleri */
.glass-panel {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.product-card {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* İndirim Rozeti & Ribon */
.badge-discount {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    box-shadow: 0 4px 10px rgba(220, 38, 38, 0.3);
}

.badge-featured {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
}

.badge-flash {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

/* Kayan Sepet (Slide-over Cart Drawer) */
#cartDrawerBackdrop {
    transition: opacity 0.3s ease;
}
#cartDrawer {
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Toast Bildirim Kutusu */
#toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}
.toast-msg {
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border-radius: 12px;
    background: #0f172a;
    color: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
    font-size: 14px;
    font-weight: 500;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.toast-msg.show {
    transform: translateY(0);
    opacity: 1;
}
.toast-msg.success {
    border-left: 4px solid #10b981;
}
.toast-msg.error {
    border-left: 4px solid #ef4444;
}

/* Flaş İndirim Sayacı Kutusu */
.countdown-box {
    background: rgba(15, 23, 42, 0.85);
    color: #ffffff;
    font-weight: 700;
    font-family: monospace;
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 13px;
    letter-spacing: 0.5px;
}

/* Kredi Kartı İnteraktif Görünümü */
.credit-card-preview {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4338ca 100%);
    border-radius: 16px;
    color: white;
    padding: 24px;
    box-shadow: 0 15px 30px rgba(49, 46, 129, 0.35);
    position: relative;
    overflow: hidden;
    min-height: 200px;
}
.credit-card-preview::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
    pointer-events: none;
}

/* WhatsApp Hızlı Sipariş Yüzen Buton */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 999;
    background: #25d366;
    color: white;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
    transition: all 0.3s ease;
    text-decoration: none;
}
.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
}

/* Yazdırma Modu (Fatura İçin) */
@media print {
    header, footer, .no-print, .whatsapp-float, #toast-container {
        display: none !important;
    }
    body {
        background: white !important;
        color: black !important;
    }
    .print-card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
}
