/* ==========================================================================
   1. MERKEZİ TASARIM SİSTEMİ (DESIGN TOKENS)
   ========================================================================== */
:root {
    --bg-main: #0B1120;
    --bg-card: #151F32;
    --bg-elevated: #1E293B;
    --bg-subtle: #0F172A;
    --text-main: #F8FAFC;
    --text-muted: #94A3B8;
    --border-color: #26334D;
    --glass-bg: rgba(15, 23, 42, 0.92);
    --glass-border: rgba(255, 255, 255, 0.08);

    --primary: #FF6B00;
    --primary-hover: #E56000;
    --primary-light: rgba(255, 107, 0, 0.15);
    --secondary: #2563EB;
    --success: #10B981;
    --success-bg: rgba(16, 185, 129, 0.15);
    --danger: #EF4444;
    --danger-bg: rgba(239, 68, 68, 0.15);
    --warning: #F59E0B;
    --warning-bg: rgba(245, 158, 11, 0.15);

    --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px;
    --sp-5: 20px; --sp-6: 24px; --sp-8: 32px; --sp-10: 40px; --sp-12: 48px;

    --rad-sm: 8px; --rad-md: 12px; --rad-lg: 16px; --rad-xl: 22px; --rad-pill: 9999px;

    --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.25);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.5);

    --z-header: 200;
    --z-sticky-bar: 400;
    --z-fab: 450;
    --z-overlay: 900;
    --z-drawer: 1000;
    --z-modal: 1100;
    --z-toast: 1200;
    --z-lightbox: 1500;

    --transition-fast: 180ms ease;
    --transition-bounce: 300ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* ==========================================================================
   2. SIFIRLAMA, ERİŞİLEBİLİRLİK VE TEMEL DÜZEN
   ========================================================================== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; font-size: 16px; overflow-anchor: none; }
body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    line-height: 1.5;
    overflow-anchor: none;
}
main { flex: 1 0 auto; width: 100%; }
footer { flex-shrink: 0; margin-top: auto; }

.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 var(--sp-4); }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button, input, select, textarea { font-family: inherit; border: none; outline: none; background: none; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
    min-height: 44px; padding: 10px 20px; border-radius: var(--rad-pill);
    font-weight: 700; font-size: 14px; transition: transform var(--transition-bounce), background var(--transition-fast), opacity var(--transition-fast);
    user-select: none; text-align: center;
}
.btn:active:not(:disabled) { transform: scale(0.96); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 4px 14px rgba(255, 107, 0, 0.35); }
.btn-primary:hover:not(:disabled) { background: var(--primary-hover); }
.btn-secondary { background: var(--secondary); color: #fff; }
.btn-success { background: var(--success) !important; color: #fff !important; }
.btn-outline { border: 1.5px solid var(--border-color); background: var(--bg-card); color: var(--text-main); }
.btn-outline:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); }

/* ==========================================================================
   3. A) HEADER, CANLI ARAMA VE KATEGORİ ÇİPLERİ (TİTREME KORUMALI FIXED YAPI)
   ========================================================================== */
.site-header {
    position: fixed; top: 0; left: 0; right: 0; width: 100%;
    z-index: var(--z-header);
    background: var(--glass-bg); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    will-change: transform;
}
.header-spacer {
    height: 178px;
    flex-shrink: 0;
}
.header-top {
    display: grid; grid-template-columns: auto 1fr auto; align-items: center;
    gap: var(--sp-3); height: 68px;
}
.header-left { display: flex; align-items: center; }
.header-center { display: flex; align-items: center; justify-content: flex-start; }
@media (max-width: 639px) { .header-center { justify-content: center; } }
.header-right { display: flex; align-items: center; gap: var(--sp-2); }

.icon-btn {
    width: 44px; height: 44px; border-radius: var(--rad-pill);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 19px; color: var(--text-main); position: relative;
    background: var(--bg-card); border: 1px solid var(--border-color);
    transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}
.icon-btn:hover { background: var(--bg-elevated); border-color: var(--primary); color: var(--primary); }

.badge-counter {
    position: absolute; top: -4px; right: -4px;
    background: var(--primary); color: #fff;
    font-size: 11px; font-weight: 800; min-width: 20px; height: 20px;
    padding: 0 5px; border-radius: var(--rad-pill);
    display: inline-flex; align-items: center; justify-content: center;
    border: 2px solid var(--bg-main);
    transition: transform var(--transition-bounce);
}
.badge-counter.hidden { display: none !important; }
.badge-counter.bump { transform: scale(1.35); }

.brand-logo { display: inline-flex; align-items: center; cursor: pointer; }
.brand-logo svg, .brand-logo img { height: 46px; width: auto; display: block; }

.header-collapsible {
    overflow: visible;
    max-height: 120px;
    opacity: 1;
    transform: translateY(0);
    transition: max-height 0.26s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.2s ease, transform 0.26s ease;
}
.site-header.compact .header-collapsible {
    max-height: 0;
    opacity: 0;
    transform: translateY(-8px);
    overflow: hidden;
    pointer-events: none;
}

.search-wrap { position: relative; padding-bottom: var(--sp-3); }
.search-bar {
    display: flex; align-items: center; height: 46px;
    background: var(--bg-card); border: 1.5px solid var(--border-color);
    border-radius: var(--rad-pill); padding: 0 var(--sp-4);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.search-bar:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); }
.search-bar i.search-icon { color: var(--text-muted); font-size: 16px; margin-right: var(--sp-3); }
.search-bar input { flex: 1; height: 100%; font-size: 14px; color: var(--text-main); min-width: 0; }
.search-bar input::placeholder { color: var(--text-muted); }
.search-clear-btn { width: 28px; height: 28px; border-radius: 50%; display: none; align-items: center; justify-content: center; color: var(--text-muted); }
.search-clear-btn.show { display: inline-flex; }

.search-dropdown {
    position: absolute; top: calc(100% - 4px); left: 0; right: 0;
    background: var(--bg-card); border: 1px solid var(--border-color);
    border-radius: var(--rad-lg); box-shadow: var(--shadow-lg);
    z-index: var(--z-drawer); display: none; overflow: hidden; max-height: 420px; overflow-y: auto;
}
.search-dropdown.show { display: block; }
.sd-section-title { padding: 10px 16px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.6px; color: var(--text-muted); background: var(--bg-subtle); display: flex; justify-content: space-between; align-items: center; }
.sd-item { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--border-color); cursor: pointer; transition: background var(--transition-fast); }
.sd-item:hover { background: var(--bg-elevated); }
.sd-item img { width: 44px; height: 44px; object-fit: contain; background: #fff; border-radius: var(--rad-sm); padding: 4px; flex-shrink: 0; }
.sd-item-info { flex: 1; min-width: 0; }
.sd-item-title { font-size: 13px; font-weight: 600; color: var(--text-main); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sd-item-price { font-size: 13px; font-weight: 800; color: var(--primary); }

.category-strip-wrap {
    position: relative; padding-bottom: var(--sp-3);
    -webkit-mask-image: linear-gradient(to right, #000 90%, transparent 100%);
    mask-image: linear-gradient(to right, #000 90%, transparent 100%);
}
.category-strip {
    display: flex; gap: var(--sp-2); overflow-x: auto; scrollbar-width: none; scroll-behavior: smooth; padding-right: 32px;
}
.category-strip::-webkit-scrollbar { display: none; }
.cat-chip {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 16px; min-height: 38px; border-radius: var(--rad-pill);
    background: var(--bg-card); border: 1px solid var(--border-color);
    font-size: 13px; font-weight: 600; color: var(--text-muted);
    white-space: nowrap; cursor: pointer; transition: all var(--transition-fast);
}
.cat-chip i { font-size: 14px; color: var(--primary); }
.cat-chip:hover { border-color: var(--primary); color: var(--text-main); }
.cat-chip.active { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 4px 12px rgba(255, 107, 0, 0.3); }
.cat-chip.active i { color: #fff; }

/* ==========================================================================
   4. OFF-CANVAS YAN ÇEKMECE (DRAWER) & MODALLAR
   ========================================================================== */
.backdrop-overlay {
    position: fixed; inset: 0; background: rgba(2, 6, 23, 0.72);
    backdrop-filter: blur(4px); z-index: var(--z-overlay);
    opacity: 0; visibility: hidden; transition: opacity 0.28s ease, visibility 0.28s ease;
}
.backdrop-overlay.show { opacity: 1; visibility: visible; }

.off-canvas {
    position: fixed; top: 0; left: 0; width: 88%; max-width: 360px; height: 100dvh;
    background: var(--bg-card); z-index: var(--z-drawer);
    transform: translateX(-100%); transition: transform 0.32s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: flex; flex-direction: column; border-right: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
}
.off-canvas.open { transform: translateX(0); }
.off-canvas.right-side { left: auto; right: 0; transform: translateX(100%); border-right: none; border-left: 1px solid var(--border-color); }
.off-canvas.right-side.open { transform: translateX(0); }

.drawer-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: var(--sp-4) var(--sp-5); border-bottom: 1px solid var(--border-color);
    background: var(--bg-subtle);
}
.drawer-header h3 { font-size: 17px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.drawer-body { flex: 1; overflow-y: auto; padding: var(--sp-4); }
.drawer-footer { padding: var(--sp-4); border-top: 1px solid var(--border-color); background: var(--bg-subtle); }

.drawer-user-box {
    display: flex; align-items: center; gap: 12px; padding: var(--sp-4);
    background: linear-gradient(135deg, rgba(255, 107, 0, 0.18), rgba(37, 99, 235, 0.18));
    border: 1px solid var(--border-color); border-radius: var(--rad-lg); margin-bottom: var(--sp-4); cursor: pointer;
}
.drawer-user-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 800; }

.drawer-acc-item { border-bottom: 1px solid var(--border-color); }
.drawer-acc-btn {
    width: 100%; display: flex; justify-content: space-between; align-items: center;
    padding: 14px 8px; font-size: 14px; font-weight: 700; color: var(--text-main);
}
.drawer-acc-btn i.left-ic { width: 24px; color: var(--primary); text-align: center; margin-right: 8px; }
.drawer-sub-list { display: none; padding: 0 0 12px 36px; flex-direction: column; gap: 8px; }
.drawer-sub-list.open { display: flex; }
.drawer-sub-list a { font-size: 13px; color: var(--text-muted); padding: 4px 0; transition: color 0.2s; }
.drawer-sub-list a:hover { color: var(--primary); }

.bottom-sheet {
    position: fixed; left: 0; right: 0; bottom: 0;
    max-width: 640px; margin: 0 auto; max-height: 88dvh;
    background: var(--bg-card); border-top: 1px solid var(--border-color);
    border-radius: var(--rad-xl) var(--rad-xl) 0 0;
    z-index: var(--z-modal); transform: translateY(100%);
    transition: transform 0.32s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: flex; flex-direction: column; box-shadow: var(--shadow-lg);
}
.bottom-sheet.open { transform: translateY(0); }
.sheet-handle { width: 42px; height: 5px; background: var(--border-color); border-radius: var(--rad-pill); margin: 10px auto 4px; }
.sheet-header { display: flex; justify-content: space-between; align-items: center; padding: 12px 20px 16px; border-bottom: 1px solid var(--border-color); }
.sheet-body { padding: 20px; overflow-y: auto; flex: 1; }
.sheet-footer { padding: 16px 20px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--border-color); display: flex; gap: 12px; background: var(--bg-subtle); }

/* ==========================================================================
   5. B) ANA SAYFA BÖLÜMLERİ VE KUSURSUZ ÜRÜN KARTLARI
   ========================================================================== */
.page-view { display: none; padding-bottom: var(--sp-10); }
.page-view.active { display: block; }

.hero-slider {
    position: relative; margin-top: var(--sp-3); border-radius: var(--rad-xl);
    overflow: hidden; border: 1px solid var(--border-color); box-shadow: var(--shadow-md);
}
.hero-track { display: flex; transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1); }
.hero-slide {
    flex: 0 0 100%; padding: 36px 24px; min-height: 220px;
    display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
    position: relative; overflow: hidden;
}
@media (min-width: 768px) { .hero-slide { padding: 52px 48px; min-height: 280px; } }
.hero-slide.slide-1 { background: linear-gradient(135deg, #0A2E9E 0%, #1E1B4B 55%, #FF6B00 100%); }
.hero-slide.slide-2 { background: linear-gradient(135deg, #0F172A 0%, #065F46 60%, #10B981 100%); }
.hero-slide.slide-3 { background: linear-gradient(135deg, #31102F 0%, #7C2D12 60%, #F97316 100%); }
.hero-badge { background: rgba(255,255,255,0.18); backdrop-filter: blur(6px); padding: 4px 12px; border-radius: var(--rad-pill); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 12px; }
.hero-slide h2 { font-size: clamp(22px, 4vw, 34px); font-weight: 800; line-height: 1.15; margin-bottom: 8px; max-width: 540px; }
.hero-slide p { font-size: 14px; color: rgba(255,255,255,0.88); margin-bottom: 20px; max-width: 460px; }
.hero-dots { position: absolute; bottom: 14px; right: 20px; display: flex; gap: 6px; }
.hero-dot { width: 8px; height: 8px; border-radius: var(--rad-pill); background: rgba(255,255,255,0.35); cursor: pointer; transition: all 0.25s; }
.hero-dot.active { width: 22px; background: #fff; }

.trust-strip {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-3);
    margin-top: var(--sp-5);
}
@media (min-width: 768px) { .trust-strip { grid-template-columns: repeat(4, 1fr); } }
.trust-item {
    background: var(--bg-card); border: 1px solid var(--border-color);
    border-radius: var(--rad-lg); padding: 14px; display: flex; align-items: center; gap: 12px;
    cursor: pointer; transition: border-color var(--transition-fast);
}
.trust-item:hover { border-color: var(--primary); }
.trust-ic { width: 42px; height: 42px; border-radius: var(--rad-md); background: var(--primary-light); color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.trust-info h4 { font-size: 13px; font-weight: 700; }
.trust-info p { font-size: 11px; color: var(--text-muted); }

.quick-cats {
    display: flex; gap: var(--sp-4); overflow-x: auto; scrollbar-width: none;
    padding: var(--sp-6) 0 var(--sp-2);
}
.quick-cats::-webkit-scrollbar { display: none; }
.q-cat-item { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 76px; cursor: pointer; }
.q-cat-circle {
    width: 64px; height: 64px; border-radius: 50%;
    background: var(--bg-card); border: 2px solid var(--border-color);
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; color: var(--primary); transition: all var(--transition-bounce);
}
.q-cat-item:hover .q-cat-circle, .q-cat-item.active .q-cat-circle {
    background: var(--primary); color: #fff; border-color: var(--primary); box-shadow: 0 8px 16px rgba(255,107,0,0.3);
}
.q-cat-item span { font-size: 12px; font-weight: 600; text-align: center; color: var(--text-muted); }
.q-cat-item.active span { color: var(--text-main); font-weight: 700; }

.section-bar {
    display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
    gap: var(--sp-3); margin: var(--sp-6) 0 var(--sp-4);
}
.section-title-group h2 { font-size: 20px; font-weight: 800; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.section-subtitle { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.countdown-pill {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--danger-bg); color: var(--danger); border: 1px solid rgba(239,68,68,0.3);
    padding: 4px 10px; border-radius: var(--rad-pill); font-size: 12px; font-weight: 800;
}

.active-filters-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: var(--sp-4); }
.filter-tag {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 12px; background: var(--primary-light); color: var(--primary);
    border: 1px solid rgba(255,107,0,0.3); border-radius: var(--rad-pill);
    font-size: 12px; font-weight: 700; cursor: pointer;
}

.product-grid {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-3);
}
@media (min-width: 768px) { .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-4); } }
@media (min-width: 1024px) { .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-5); } }

.product-card {
    background: var(--bg-card); border: 1px solid var(--border-color);
    border-radius: var(--rad-lg); padding: var(--sp-3);
    display: flex; flex-direction: column; position: relative;
    cursor: pointer; transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    height: 100%; min-width: 0;
}
.product-card:hover { border-color: rgba(255, 107, 0, 0.5); box-shadow: var(--shadow-md); }

.card-badges {
    position: absolute; top: 10px; left: 10px; z-index: 3;
    display: flex; flex-direction: column; gap: 4px; pointer-events: none;
}
.badge-disc { background: var(--danger); color: #fff; font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: var(--rad-pill); }
.badge-stock-warn { background: var(--warning); color: #000; font-size: 10px; font-weight: 800; padding: 3px 8px; border-radius: var(--rad-pill); }
.badge-out { background: #475569; color: #fff; font-size: 10px; font-weight: 800; padding: 3px 8px; border-radius: var(--rad-pill); }

.card-fav-btn {
    position: absolute; top: 10px; right: 10px; z-index: 4;
    width: 36px; height: 36px; border-radius: 50%;
    background: rgba(15, 23, 42, 0.65); backdrop-filter: blur(4px);
    border: 1px solid var(--border-color); color: var(--text-muted);
    display: flex; align-items: center; justify-content: center; font-size: 15px;
    transition: all var(--transition-fast);
}
.card-fav-btn:hover { color: var(--danger); transform: scale(1.08); }
.card-fav-btn.active { color: var(--danger); background: rgba(239, 68, 68, 0.15); border-color: var(--danger); }

.card-media {
    width: 100%; aspect-ratio: 1 / 1; background: #FFFFFF;
    border-radius: var(--rad-md); padding: 14px; margin-bottom: var(--sp-3);
    display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.card-media img {
    width: 100%; height: 100%; object-fit: contain;
    transition: transform 0.3s ease;
}
.product-card:hover .card-media img { transform: scale(1.04); }

.card-brand { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; color: var(--primary); margin-bottom: 2px; }
.card-title {
    font-size: 13px; font-weight: 600; color: var(--text-main); line-height: 1.4;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden; min-height: 2.8em; margin-bottom: 6px;
}
.card-rating { display: flex; align-items: center; gap: 4px; font-size: 11px; color: var(--warning); margin-bottom: 10px; }
.card-rating span { color: var(--text-muted); font-weight: 600; }

.card-price-block { margin-top: auto; margin-bottom: 10px; min-height: 46px; display: flex; flex-direction: column; justify-content: flex-end; }
.card-old-price { font-size: 11px; color: var(--text-muted); text-decoration: line-through; font-weight: 500; }
.card-current-price { font-size: 17px; font-weight: 800; color: var(--text-main); letter-spacing: -0.3px; }
.card-installment-hint { font-size: 10px; color: var(--success); font-weight: 600; margin-top: 2px; }

.card-add-btn { width: 100%; min-height: 40px; padding: 8px 12px; font-size: 13px; border-radius: var(--rad-md); }

/* ==========================================================================
   6. ÜRÜN DETAY SAYFASI (PDP) & MOBİL TAŞMA KORUMASI (DÜZELTME a)
   ========================================================================== */
.breadcrumb-nav {
    display: flex; align-items: center; gap: 8px; overflow-x: auto; scrollbar-width: none;
    white-space: nowrap; font-size: 12px; color: var(--text-muted); padding: var(--sp-3) 0 var(--sp-4);
    max-width: 100%;
}
.breadcrumb-nav::-webkit-scrollbar { display: none; }
.breadcrumb-nav a, .breadcrumb-nav span.crumb-link { color: var(--text-muted); cursor: pointer; transition: color 0.2s; }
.breadcrumb-nav a:hover, .breadcrumb-nav span.crumb-link:hover { color: var(--primary); }
.breadcrumb-nav span.crumb-current { color: var(--text-main); font-weight: 700; }

.pdp-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--sp-6);
    width: 100%;
    max-width: 100%;
}
.pdp-grid > * {
    min-width: 0;
    max-width: 100%;
}
@media (min-width: 992px) {
    .pdp-grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
        align-items: start;
    }
}

.pdp-gallery-card {
    background: var(--bg-card); border: 1px solid var(--border-color);
    border-radius: var(--rad-xl); padding: var(--sp-4); position: relative;
    width: 100%; max-width: 100%; min-width: 0; overflow: hidden;
}
@media (min-width: 992px) { .pdp-gallery-card { position: sticky; top: 190px; } }
.pdp-main-slider {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    aspect-ratio: 1 / 1; background: #FFFFFF; border-radius: var(--rad-lg); align-items: center;
    width: 100%; max-width: 100%;
}
.pdp-main-slider::-webkit-scrollbar { display: none; }
.pdp-slide { flex: 0 0 100%; width: 100%; max-width: 100%; height: 100%; scroll-snap-align: center; display: flex; align-items: center; justify-content: center; padding: 24px; cursor: zoom-in; }
.pdp-slide img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }

.pdp-thumbs {
    display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none;
    margin-top: 12px; padding-bottom: 4px; width: 100%; max-width: 100%;
}
.pdp-thumbs::-webkit-scrollbar { display: none; }
.pdp-thumb {
    width: 64px; height: 64px; flex-shrink: 0; border-radius: var(--rad-md);
    background: #FFFFFF; padding: 6px; border: 2px solid transparent; cursor: pointer; opacity: 0.6; transition: 0.2s;
}
.pdp-thumb.active { border-color: var(--primary); opacity: 1; }
.pdp-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }

.pdp-info-card {
    background: var(--bg-card); border: 1px solid var(--border-color);
    border-radius: var(--rad-xl); padding: var(--sp-5);
    width: 100%; max-width: 100%; min-width: 0;
}
.pdp-top-meta { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.pdp-brand-pill { background: var(--primary-light); color: var(--primary); padding: 4px 12px; border-radius: var(--rad-pill); font-size: 12px; font-weight: 800; cursor: pointer; display: inline-block; }
.pdp-sku { font-size: 12px; color: var(--text-muted); font-family: monospace; }
.pdp-title { font-size: clamp(20px, 3vw, 26px); font-weight: 800; line-height: 1.25; margin-bottom: 12px; word-break: break-word; }

.pdp-price-panel {
    background: var(--bg-subtle); border: 1px solid var(--border-color);
    border-radius: var(--rad-lg); padding: 16px; margin: 16px 0 20px;
    display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
}
.pdp-price-big { font-size: 28px; font-weight: 800; color: var(--primary); letter-spacing: -0.5px; }

.color-swatch-list, .storage-chip-list { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.color-swatch {
    display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px;
    border-radius: var(--rad-pill); border: 1.5px solid var(--border-color);
    background: var(--bg-subtle); cursor: pointer; font-size: 12px; font-weight: 600;
}
.color-swatch.active { border-color: var(--primary); background: var(--primary-light); color: var(--primary); }
.color-dot { width: 22px; height: 22px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.3); }

.storage-chip {
    padding: 10px 16px; border-radius: var(--rad-md); border: 1.5px solid var(--border-color);
    background: var(--bg-subtle); font-size: 13px; font-weight: 700; cursor: pointer; transition: 0.2s;
}
.storage-chip.active { border-color: var(--primary); background: var(--primary-light); color: var(--primary); }

.warranty-card {
    display: flex; align-items: flex-start; gap: 12px; padding: 14px;
    border: 1.5px solid var(--border-color); border-radius: var(--rad-md);
    background: var(--bg-subtle); cursor: pointer; margin-bottom: 10px; transition: 0.2s;
}
.warranty-card.active { border-color: var(--primary); background: var(--primary-light); }

.pdp-tabs-bar {
    display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
    border-bottom: 1px solid var(--border-color); margin: 32px 0 20px;
    background: var(--bg-main); padding-top: 8px; max-width: 100%;
}
.pdp-tabs-bar::-webkit-scrollbar { display: none; }
.pdp-tab-btn {
    padding: 12px 18px; font-size: 14px; font-weight: 700; color: var(--text-muted);
    border-bottom: 3px solid transparent; white-space: nowrap;
}
.pdp-tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); }
.pdp-tab-pane { display: none; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--rad-xl); padding: var(--sp-5); margin-bottom: 32px; overflow-x: auto; }
.pdp-tab-pane.active { display: block; }

.zebra-table { width: 100%; border-collapse: collapse; border-radius: var(--rad-md); overflow: hidden; }
.zebra-table tr:nth-child(even) { background: var(--bg-subtle); }
.zebra-table th, .zebra-table td { padding: 12px 16px; text-align: left; font-size: 13px; border-bottom: 1px solid var(--border-color); word-break: break-word; }
.zebra-table th { width: 38%; color: var(--text-muted); font-weight: 600; }
.zebra-table td { font-weight: 700; color: var(--text-main); }

/* ==========================================================================
   7. D) FOOTER, CANLI DESTEK VE YÜZEN BUTONLAR
   ========================================================================== */
.site-footer { background: var(--bg-card); border-top: 1px solid var(--border-color); padding-top: var(--sp-8); }
.footer-top-grid { display: grid; grid-template-columns: 1fr; gap: var(--sp-6); padding-bottom: var(--sp-8); border-bottom: 1px solid var(--border-color); }
@media (min-width: 768px) { .footer-top-grid { grid-template-columns: 1.2fr 1.2fr; } }

.call-center-card {
    background: var(--bg-subtle); border: 1px solid var(--border-color);
    border-radius: var(--rad-xl); padding: var(--sp-5);
    display: flex; flex-direction: column; gap: 10px;
}
.call-phone { font-size: 24px; font-weight: 800; color: var(--primary); display: inline-flex; align-items: center; gap: 10px; }

.newsletter-card {
    background: var(--bg-subtle); border: 1px solid var(--border-color);
    border-radius: var(--rad-xl); padding: var(--sp-5);
}
.newsletter-form { display: flex; gap: 8px; margin-top: 12px; }
.newsletter-form input {
    flex: 1; height: 44px; padding: 0 16px; border-radius: var(--rad-pill);
    background: var(--bg-card); border: 1px solid var(--border-color); font-size: 14px; min-width: 0;
}

.footer-acc-item { border-bottom: 1px solid var(--border-color); }
.footer-acc-trigger {
    width: 100%; display: flex; justify-content: space-between; align-items: center;
    padding: 16px 0; font-size: 15px; font-weight: 700; color: var(--text-main);
}
.footer-acc-panel { display: none; padding-bottom: 16px; flex-direction: column; gap: 10px; }
.footer-acc-panel.open { display: flex; }
.footer-acc-panel a { font-size: 13px; color: var(--text-muted); transition: color 0.2s; }
.footer-acc-panel a:hover { color: var(--primary); }

.footer-bottom { padding: var(--sp-6) 0 calc(var(--sp-6) + env(safe-area-inset-bottom)); text-align: center; }
.social-links { display: flex; justify-content: center; gap: 12px; margin-bottom: 20px; }
.social-links a {
    width: 42px; height: 42px; border-radius: 50%; background: var(--bg-subtle);
    border: 1px solid var(--border-color); display: flex; align-items: center; justify-content: center;
    font-size: 17px; transition: all 0.2s;
}
.social-links a:hover { background: var(--primary); border-color: var(--primary); color: #fff; transform: translateY(-2px); }

.payment-badges { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 14px; margin-bottom: 16px; }
.pay-badge {
    height: 34px; padding: 0 12px; border-radius: 6px; background: var(--bg-subtle);
    border: 1px solid var(--border-color); display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    font-size: 12px; font-weight: 700; color: var(--text-main);
}

.sticky-pdp-bar {
    position: fixed; left: 0; right: 0; bottom: 0;
    background: var(--glass-bg); backdrop-filter: blur(16px);
    border-top: 1px solid var(--border-color);
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    z-index: var(--z-sticky-bar); transform: translateY(100%);
    transition: transform 0.28s ease;
}
.sticky-pdp-bar.show { transform: translateY(0); }
.sticky-pdp-inner { max-width: 1280px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; }

.fab-stack {
    position: fixed; right: 16px; bottom: calc(20px + env(safe-area-inset-bottom));
    z-index: var(--z-fab); display: flex; flex-direction: column; gap: 12px;
    transition: bottom 0.28s ease;
}
.fab-stack.lifted { bottom: calc(96px + env(safe-area-inset-bottom)); }
.fab-circle {
    width: 48px; height: 48px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; box-shadow: var(--shadow-md); border: 1px solid var(--border-color);
    transition: transform 0.2s, opacity 0.2s;
}
.fab-up-btn { background: var(--bg-elevated); color: var(--text-main); opacity: 0; pointer-events: none; transform: translateY(10px); }
.fab-up-btn.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.fab-chat-btn { background: var(--primary); color: #fff; border-color: var(--primary); }

.chat-widget {
    position: fixed; right: 16px; bottom: calc(80px + env(safe-area-inset-bottom));
    width: calc(100vw - 32px); max-width: 350px;
    background: var(--bg-card); border: 1px solid var(--border-color);
    border-radius: var(--rad-xl); box-shadow: var(--shadow-lg);
    z-index: var(--z-modal); display: none; flex-direction: column; overflow: hidden;
}
.chat-widget.open { display: flex; }
.chat-head { background: linear-gradient(135deg, var(--primary), #D97706); color: #fff; padding: 14px 16px; display: flex; justify-content: space-between; align-items: center; }
.chat-messages { padding: 16px; max-height: 260px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; font-size: 13px; }
.chat-bubble { padding: 10px 14px; border-radius: 14px; max-width: 85%; line-height: 1.4; word-break: break-word; }
.chat-bubble.bot { background: var(--bg-elevated); color: var(--text-main); align-self: flex-start; border-bottom-left-radius: 4px; }
.chat-bubble.user { background: var(--primary); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.chat-quick-replies { display: flex; gap: 6px; overflow-x: auto; padding: 8px 12px; border-top: 1px solid var(--border-color); scrollbar-width: none; }
.chat-chip { padding: 6px 10px; border-radius: var(--rad-pill); background: var(--bg-subtle); border: 1px solid var(--border-color); font-size: 11px; font-weight: 600; white-space: nowrap; }
.chat-input-bar { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--border-color); background: var(--bg-subtle); }
.chat-input-bar input { flex: 1; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--rad-pill); padding: 0 14px; height: 38px; font-size: 13px; min-width: 0; }

.toast-stack {
    position: fixed; left: 50%; transform: translateX(-50%);
    bottom: calc(24px + env(safe-area-inset-bottom)); z-index: var(--z-toast);
    width: calc(100% - 32px); max-width: 420px; display: flex; flex-direction: column; gap: 8px; pointer-events: none;
    transition: bottom 0.28s ease;
}
.toast-stack.lifted { bottom: calc(96px + env(safe-area-inset-bottom)); }
.toast-box {
    pointer-events: auto; background: var(--bg-elevated); color: var(--text-main);
    border: 1px solid var(--border-color); border-left: 4px solid var(--success);
    padding: 12px 16px; border-radius: var(--rad-md); box-shadow: var(--shadow-lg);
    display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13px; font-weight: 600;
}
.toast-box.error { border-left-color: var(--danger); }

.lightbox-modal {
    position: fixed; inset: 0; background: rgba(2, 6, 23, 0.95);
    z-index: var(--z-lightbox); display: none; align-items: center; justify-content: center;
}
.lightbox-modal.open { display: flex; }
.lb-nav-btn {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,0.12);
    color: #fff; font-size: 20px; display: flex; align-items: center; justify-content: center;
}
.lb-prev { left: 16px; } .lb-next { right: 16px; }