/**
 * LIGHT E-Ticaret Sistemi - Yeni Nesil Human-Crafted UI & Animasyon Katmanı
 * Designed with modern European e-commerce principles (editorial typography, spring physics, subtle glassmorphism)
 */

:root {
    --light-primary: #2563eb;
    --light-primary-dark: #1d4ed8;
    --light-primary-light: #3b82f6;
    --light-primary-soft: #eff6ff;
    --light-corporate-dark: #0f172a;
    --light-corporate-slate: #1e293b;
    --light-corporate-border: #e2e8f0;
    --light-emerald: #059669;
    --light-emerald-soft: #ecfdf5;
    --light-amber: #d97706;
    --light-amber-soft: #fffbeb;
    --light-rose: #e11d48;
    --light-rose-soft: #fff1f2;
    --light-slate-900: #0f172a;
    --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f8fafc;
    color: #0f172a;
    overflow-x: hidden;
}

/* Özel Kaydırma Çubuğu */
::-webkit-scrollbar {
    width: 7px;
    height: 7px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Glassmorphism */
.light-glass {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

/* Buton Shimmer (Işıltı) Efekti */
.btn-shimmer {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}
.btn-shimmer::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 20%;
    height: 200%;
    background: linear-gradient(
        60deg,
        rgba(255, 255, 255, 0) 20%,
        rgba(255, 255, 255, 0.25) 50%,
        rgba(255, 255, 255, 0) 80%
    );
    transform: rotate(25deg);
    transition: none;
    pointer-events: none;
}
.btn-shimmer:hover::after {
    left: 140%;
    transition: all 0.75s ease-out;
}

/* Kalp / Wishlist Pop Animasyonu */
@keyframes heartPop {
    0% { transform: scale(1); }
    40% { transform: scale(1.35); }
    70% { transform: scale(0.9); }
    100% { transform: scale(1); }
}
.animate-heart-pop {
    animation: heartPop 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Ürün Kartı İnce Detayları */
.product-card-human {
    transition: transform 0.35s var(--ease-spring), box-shadow 0.35s var(--ease-spring), border-color 0.35s ease;
    will-change: transform, box-shadow;
}
.product-card-human:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 35px -10px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(99, 102, 241, 0.12);
}

.product-img-stage {
    transition: transform 0.5s var(--ease-spring);
}
.product-card-human:hover .product-img-stage {
    transform: scale(1.05);
}

/* Hızlı Ekle Butonu - Alttan Kayarak Çıkan Pill */
.quick-add-pill {
    opacity: 0;
    transform: translateY(8px);
    transition: all 0.25s var(--ease-spring);
}
.product-card-human:hover .quick-add-pill {
    opacity: 1;
    transform: translateY(0);
}

/* Sürekli Kayan Marka Şeridi (Infinite Marquee) */
@keyframes marqueeScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.marquee-track {
    display: flex;
    width: max-content;
    animation: marqueeScroll 28s linear infinite;
}
.marquee-track:hover {
    animation-play-state: paused;
}

/* Canlı Nabız / Pulse Efekti */
.live-pulse {
    position: relative;
}
.live-pulse::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: inherit;
    background: currentColor;
    opacity: 0.3;
    animation: livePulseAnim 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
@keyframes livePulseAnim {
    0%, 100% { transform: scale(1); opacity: 0.35; }
    50% { transform: scale(1.4); opacity: 0; }
}

/* Yumuşak Sayfa Geçişleri & Toast Bildirim */
.toast-slide-in {
    animation: toastSlide 0.3s var(--ease-spring);
}
@keyframes toastSlide {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Rozet Stilleri */
.pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.625rem;
    border-radius: 9999px;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.025em;
    line-height: 1;
}

/* Print CSS */
@media print {
    .no-print, header, footer, aside, nav, #light-live-chat-drawer {
        display: none !important;
    }
    body {
        background: #fff !important;
        color: #000 !important;
    }
}
