html {
    scroll-behavior: smooth;
}

/* Header shadow on scroll */
#header.scrolled {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* ── Promo Banner ── */
.promo-banner {
    background: linear-gradient(135deg, #0a0a0a 0%, #0d0d1a 30%, #1a1a2e 60%, #16213e 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px 12px;
}

/* Aurora gradient animasyonu */
.promo-banner::before {
    content: '';
    position: absolute;
    inset: -50%;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(212,175,55,.12) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 50%, rgba(99,102,241,.08) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 0%, rgba(236,72,153,.06) 0%, transparent 60%);
    animation: promoAurora 8s ease-in-out infinite alternate;
    pointer-events: none;
}
@keyframes promoAurora {
    0% { transform: translateX(-5%) translateY(-5%) scale(1); }
    100% { transform: translateX(5%) translateY(5%) scale(1.1); }
}

/* Dönen ışık huzmesi */
.promo-banner::after {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: conic-gradient(from 0deg, transparent 0%, rgba(212,175,55,.04) 10%, transparent 20%, rgba(99,102,241,.03) 30%, transparent 40%);
    animation: promoRotate 15s linear infinite;
    pointer-events: none;
}
@keyframes promoRotate { to { transform: rotate(360deg); } }

/* Slider */
.promo-slider { position: relative; z-index: 1; height: 56px; width: 100%; }
.promo-slide {
    position: absolute; inset: 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    opacity: 0; transform: translateY(12px);
    transition: opacity .8s ease, transform .8s ease;
    pointer-events: none;
}
.promo-slide.active {
    opacity: 1; transform: translateY(0);
    pointer-events: auto;
}
.promo-slide.exit {
    opacity: 0; transform: translateY(-12px);
}

/* Başlık */
.promo-title {
    font-size: 16px; font-weight: 800; color: #fff; letter-spacing: -0.5px;
    text-shadow: 0 0 30px rgba(255,255,255,.15);
}

/* İndirim yazısı — shimmer efekti */
.promo-discount {
    font-size: 26px; font-weight: 900;
    background: linear-gradient(90deg, #d4af37 0%, #f5d67b 25%, #fff 50%, #f5d67b 75%, #d4af37 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: promoShimmer 3s ease-in-out infinite;
    letter-spacing: 2px; margin: 2px 0;
    filter: drop-shadow(0 0 12px rgba(212,175,55,.3));
}
@keyframes promoShimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Alt başlık */
.promo-subtitle {
    font-size: 8px; color: rgba(255,255,255,.5); letter-spacing: 3px;
    text-transform: uppercase; position: relative; z-index: 1; margin-bottom: 8px;
}

/* Countdown grid */
.countdown-grid { display: flex; gap: 6px; position: relative; z-index: 1; }
.countdown-box {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 8px; padding: 6px 4px; min-width: 50px;
    position: relative;
    transition: border-color .3s, background .3s;
}
.countdown-box:hover { border-color: rgba(255,255,255,.2); background: rgba(255,255,255,.08); }
.countdown-box .num { font-size: 18px; font-weight: 800; color: #fff; line-height: 1; font-variant-numeric: tabular-nums; }
.countdown-box .label { font-size: 6px; color: rgba(255,255,255,.4); text-transform: uppercase; letter-spacing: 1px; margin-top: 3px; }

/* Stok kutusu — altın vurgu + nabız */
.countdown-box.stock {
    border-color: rgba(212,175,55,.35);
    background: rgba(212,175,55,.08);
    animation: stockPulse 2.5s ease-in-out infinite;
}
.countdown-box.stock .num { color: #d4af37; text-shadow: 0 0 15px rgba(212,175,55,.4); }
@keyframes stockPulse {
    0%,100% { border-color: rgba(212,175,55,.25); box-shadow: 0 0 0 0 rgba(212,175,55,0); }
    50% { border-color: rgba(212,175,55,.5); box-shadow: 0 0 15px 0 rgba(212,175,55,.15); }
}

/* Parçacık parıltıları */
.promo-banner .sparkle { position: absolute; z-index: 1; pointer-events: none; border-radius: 50%; }
.promo-banner .sparkle:nth-child(1) { width:3px;height:3px;background:#d4af37;top:15%;left:10%;animation:sparkFloat 4s ease-in-out infinite; }
.promo-banner .sparkle:nth-child(2) { width:2px;height:2px;background:#f5d67b;top:25%;right:15%;animation:sparkFloat 5s ease-in-out infinite .5s; }
.promo-banner .sparkle:nth-child(3) { width:4px;height:4px;background:rgba(212,175,55,.6);bottom:20%;left:20%;animation:sparkFloat 3.5s ease-in-out infinite 1s; }
.promo-banner .sparkle:nth-child(4) { width:2px;height:2px;background:#fff;top:30%;left:75%;animation:sparkFloat 4.5s ease-in-out infinite 1.5s; }
.promo-banner .sparkle:nth-child(5) { width:3px;height:3px;background:rgba(245,214,123,.5);bottom:30%;right:10%;animation:sparkFloat 5.5s ease-in-out infinite 2s; }
.promo-banner .sparkle:nth-child(6) { width:2px;height:2px;background:#d4af37;top:60%;left:5%;animation:sparkFloat 4s ease-in-out infinite 2.5s; }
@keyframes sparkFloat {
    0%,100% { opacity:0; transform: translateY(0) scale(0); }
    20% { opacity:1; transform: translateY(-5px) scale(1); }
    80% { opacity:.7; transform: translateY(-20px) scale(.8); }
    100% { opacity:0; transform: translateY(-30px) scale(0); }
}

@media (min-width: 640px) {
    .promo-banner { padding: 40px 24px; }
    .promo-slider { height: 80px; }
    .promo-title { font-size: 30px; }
    .promo-discount { font-size: 48px; margin: 8px 0; }
    .promo-subtitle { font-size: 13px; margin-bottom: 20px; }
    .countdown-grid { gap: 12px; }
    .countdown-box { min-width: 72px; padding: 14px 10px; border-radius: 12px; }
    .countdown-box .num { font-size: 30px; }
    .countdown-box .label { font-size: 9px; margin-top: 6px; }
}

/* Product card hover lift */
.product-card {
    transform: translateY(0);
}
.product-card:hover {
    transform: translateY(-4px);
}

/* Mobile: products fill remaining viewport after header + banner */
@media (max-width: 639px) {
    .products-grid {
        grid-auto-rows: calc((var(--vh, 1vh) * 100 - 68px - var(--banner-h, 150px)) / 2);
    }
    .product-card {
        display: flex;
        flex-direction: column;
    }
    .product-card .product-image {
        flex: 1;
        min-height: 0;
    }
    .product-card .product-info {
        flex-shrink: 0;
    }
}

/* Line clamp */
.line-clamp-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.fade-in-up {
    animation: fadeInUp 0.6s ease-out both;
}

/* ── Product Effects ──
   Class'lar .product-card (article) üzerine uygulanır.
   CSS descendant selector ile her efekt doğru hedefe yönlenir:
   - Kart seviyesi: glow, neon, flip (box-shadow / transform — card'da)
   - Resim overlay: shine, pulse, sparkle, ribbon (::before/::after — .product-image'da)
   - Resim transform: shake, bounce, zoom (img elementinde) */

/* Keyframes */
@keyframes fx-shine   { 0%{left:-100%} 100%{left:100%} }
@keyframes fx-glow    { 0%,100%{box-shadow:inset 0 0 25px rgba(59,130,246,.2),inset 0 0 50px rgba(59,130,246,.1)} 50%{box-shadow:inset 0 0 40px rgba(59,130,246,.45),inset 0 0 80px rgba(59,130,246,.2)} }
@keyframes fx-pulse   { 0%,100%{opacity:0} 50%{opacity:1} }
@keyframes fx-shake   { 0%,100%{transform:translateX(0)} 20%{transform:translateX(-3px)} 40%{transform:translateX(3px)} 60%{transform:translateX(-2px)} 80%{transform:translateX(2px)} }
@keyframes fx-bounce  { 0%,100%{transform:translateY(0)} 40%{transform:translateY(-6px)} 60%{transform:translateY(-3px)} }
@keyframes fx-neon    { 0%,100%{box-shadow:inset 0 0 25px rgba(255,0,222,.25),inset 0 0 50px rgba(255,0,222,.1)} 50%{box-shadow:inset 0 0 45px rgba(255,0,222,.5),inset 0 0 90px rgba(255,0,222,.2)} }
@keyframes fx-zoom    { 0%,100%{transform:scale(1)} 50%{transform:scale(1.06)} }
@keyframes fx-flip    { 0%,100%{transform:perspective(800px) rotateY(0)} 50%{transform:perspective(800px) rotateY(8deg)} }
@keyframes fx-sparkle { 0%{opacity:0;transform:scale(0)} 50%{opacity:1;transform:scale(1)} 100%{opacity:0;transform:scale(0)} }
@keyframes fx-ribbon  { 0%{background-position:-200% 0} 100%{background-position:200% 0} }

/* ── Shine: resim üzerinde parlak ışık ── */
.fx-shine .product-image::after{content:'';position:absolute;top:0;left:-100%;width:60%;height:100%;background:linear-gradient(90deg,transparent 0%,rgba(255,255,255,.45) 50%,transparent 100%);z-index:5;pointer-events:none;animation:fx-shine 2.5s ease-in-out both}
.fx-shine.loop .product-image::after{animation:fx-shine 2.5s ease-in-out infinite}

/* ── Glow: kartı saran mavi ışıltı ── */
.fx-overlay.fx-glow{animation:fx-glow 2s ease-in-out both}
.fx-overlay.fx-glow.loop{animation:fx-glow 2s ease-in-out infinite}

/* ── Pulse: resim üzerinde mavi nabız overlay ── */
.fx-pulse .product-image::after{content:'';position:absolute;inset:0;background:radial-gradient(circle,rgba(59,130,246,.18) 0%,transparent 70%);z-index:5;pointer-events:none;opacity:0;animation:fx-pulse 2s ease-in-out both}
.fx-pulse.loop .product-image::after{animation:fx-pulse 2s ease-in-out infinite}

/* ── Shake: resim titreşim ── */
.fx-shake .product-image>img{animation:fx-shake 0.5s ease-in-out both}
.fx-shake.loop .product-image>img{animation:fx-shake 0.5s ease-in-out infinite;animation-delay:2s}

/* ── Bounce: resim zıplama ── */
.fx-bounce .product-image>img{animation:fx-bounce 0.8s ease-in-out both}
.fx-bounce.loop .product-image>img{animation:fx-bounce 0.8s ease-in-out infinite;animation-delay:1.5s}

/* ── Neon: kartı saran pembe neon ── */
.fx-overlay.fx-neon{animation:fx-neon 2s ease-in-out both}
.fx-overlay.fx-neon.loop{animation:fx-neon 2s ease-in-out infinite}

/* ── Zoom: resim büyüyüp küçülür ── */
.fx-zoom .product-image>img{animation:fx-zoom 2s ease-in-out both}
.fx-zoom.loop .product-image>img{animation:fx-zoom 2s ease-in-out infinite}

/* ── Flip: kart 3D dönüş ── */
.fx-overlay.fx-flip{animation:fx-flip 1.5s ease-in-out both}
.fx-overlay.fx-flip.loop{animation:fx-flip 1.5s ease-in-out infinite}

/* ── Sparkle: resim üzerinde kıvılcım ── */
.fx-sparkle .product-image::before,.fx-sparkle .product-image::after{position:absolute;z-index:5;pointer-events:none;font-size:16px;animation:fx-sparkle 1.5s ease-in-out both}
.fx-sparkle .product-image::before{content:'✦';top:12%;left:12%;color:#fbbf24}
.fx-sparkle .product-image::after{content:'✦';top:25%;right:12%;color:#f472b6;animation-delay:0.4s}
.fx-sparkle.loop .product-image::before,.fx-sparkle.loop .product-image::after{animation:fx-sparkle 1.5s ease-in-out infinite}
.fx-sparkle.loop .product-image::after{animation-delay:0.4s}

/* ── Ribbon: resim altında gradient şerit ── */
.fx-ribbon .product-image::after{content:'';position:absolute;bottom:0;left:0;right:0;height:4px;z-index:5;pointer-events:none;background:linear-gradient(90deg,#3b82f6,#8b5cf6,#ec4899,#3b82f6);background-size:200% 100%;animation:fx-ribbon 2s linear both}
.fx-ribbon.loop .product-image::after{animation:fx-ribbon 2s linear infinite}

/* ── Product Badges ── */
.pv-badge{position:absolute;z-index:6;font-weight:600;letter-spacing:.02em;pointer-events:none;line-height:1;white-space:nowrap}
.pv-badge.pos-tl{top:6px;left:6px} .pv-badge.pos-tr{top:6px;right:6px}
.pv-badge.pos-bl{bottom:6px;left:6px} .pv-badge.pos-br{bottom:6px;right:6px}
@media(min-width:640px){
    .pv-badge.pos-tl{top:10px;left:10px} .pv-badge.pos-tr{top:10px;right:10px}
    .pv-badge.pos-bl{bottom:10px;left:10px} .pv-badge.pos-br{bottom:10px;right:10px}
}
.pv-badge.shape-pill{padding:4px 10px;border-radius:9999px;font-size:9px}
.pv-badge.shape-rect{padding:3px 8px;border-radius:4px;font-size:9px}
.pv-badge.shape-ribbon{padding:4px 12px 4px 8px;border-radius:0 4px 4px 0;font-size:9px}
.pv-badge.shape-ribbon.pos-tr,.pv-badge.shape-ribbon.pos-br{border-radius:4px 0 0 4px;padding:4px 8px 4px 12px}
.pv-badge.shape-circle{width:36px;height:36px;border-radius:50%;font-size:7px;display:flex;align-items:center;justify-content:center;text-align:center;padding:2px}
@media(min-width:640px){
    .pv-badge.shape-pill{padding:5px 14px;font-size:11px}
    .pv-badge.shape-rect{padding:4px 12px;font-size:11px}
    .pv-badge.shape-ribbon{padding:5px 16px 5px 10px;font-size:11px}
    .pv-badge.shape-ribbon.pos-tr,.pv-badge.shape-ribbon.pos-br{padding:5px 10px 5px 16px}
    .pv-badge.shape-circle{width:48px;height:48px;font-size:9px}
}
.pv-badge.color-red{background:#ef4444;color:#fff}
.pv-badge.color-green{background:#22c55e;color:#fff}
.pv-badge.color-blue{background:#3b82f6;color:#fff}
.pv-badge.color-purple{background:#8b5cf6;color:#fff}
.pv-badge.color-gold{background:linear-gradient(135deg,#f59e0b,#d97706);color:#fff}
.pv-badge.color-black{background:#111827;color:#fff}
.pv-badge.color-pink{background:#ec4899;color:#fff}
.pv-badge.color-orange{background:#f97316;color:#fff}
@keyframes bdg-pulse{0%,100%{transform:scale(1)}50%{transform:scale(1.08)}}
@keyframes bdg-bounce{0%,100%{transform:translateY(0)}50%{transform:translateY(-3px)}}
.pv-badge.anim-pulse{animation:bdg-pulse 2s ease-in-out infinite}
.pv-badge.anim-bounce{animation:bdg-bounce 1.5s ease-in-out infinite}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}
