/* ============================================================
   YK ETicaret Storefront — Design System v2
   ------------------------------------------------------------
   Stratejik referans: Hepsiburada, Trendyol, Amazon
   Marka: turuncu vurgu (#ff6000) + lacivert secondary
   Tek dosya, framework-less, CSS custom properties odakli
   ============================================================ */

/* ============================================================
   1) TOKENS — Design System Variables
   ============================================================ */
:root {
    /* Marka renkleri */
    --primary: #ff6000;
    --primary-hover: #e65500;
    --primary-pressed: #cc4b00;
    --primary-soft: #fff4ec;
    --primary-soft-2: #ffe3cf;

    --secondary: #1c2956;
    --secondary-hover: #243368;
    --secondary-soft: #eef1f9;

    --accent: #0d7cc9;
    --accent-soft: #e6f2fb;

    /* Yuzey katmanlari */
    --surface-0: #f4f5f7;       /* sayfa arka plani */
    --surface-1: #ffffff;        /* kart/temel yuzey */
    --surface-2: #f8f9fb;        /* hover/ikincil */
    --surface-3: #eef0f4;        /* basili hal */
    --surface-dark: #0f1733;
    --surface-dark-2: #1c2956;

    /* Metin renkleri */
    --text: #111827;
    --text-strong: #0b101e;
    --text-muted: #6b7280;
    --text-subtle: #9ca3af;
    --text-on-primary: #ffffff;
    --text-on-dark: #ffffff;

    /* Cizgi/cerceve */
    --border: #e5e7eb;
    --border-strong: #d1d5db;
    --border-focus: #ff8533;

    /* Durum renkleri (WCAG 4.5:1+) */
    --success: #047857;
    --success-soft: #d1fae5;
    --danger: #dc2626;
    --danger-soft: #fee2e2;
    --warning: #b45309;
    --warning-soft: #fef3c7;
    --info: #1d4ed8;
    --info-soft: #dbeafe;

    /* Tipografi olcegi (modular) */
    --fs-2xs: 0.6875rem;  /* 11 */
    --fs-xs:  0.75rem;    /* 12 */
    --fs-sm:  0.8125rem;  /* 13 */
    --fs-md:  0.9375rem;  /* 15 - body */
    --fs-lg:  1rem;       /* 16 */
    --fs-xl:  1.125rem;   /* 18 */
    --fs-2xl: 1.375rem;   /* 22 */
    --fs-3xl: 1.75rem;    /* 28 */
    --fs-4xl: 2.25rem;    /* 36 */

    --lh-tight: 1.2;
    --lh-snug: 1.35;
    --lh-normal: 1.5;
    --lh-relaxed: 1.65;

    --fw-regular: 400;
    --fw-medium: 500;
    --fw-semibold: 600;
    --fw-bold: 700;
    --fw-black: 800;

    /* Spacing (4px tabani) */
    --sp-1: 0.25rem;
    --sp-2: 0.5rem;
    --sp-3: 0.75rem;
    --sp-4: 1rem;
    --sp-5: 1.25rem;
    --sp-6: 1.5rem;
    --sp-8: 2rem;
    --sp-10: 2.5rem;
    --sp-12: 3rem;
    --sp-16: 4rem;

    /* Yuvarlatma */
    --radius-xs: 4px;
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-pill: 999px;

    /* Golge — yumusak ve katmanli */
    --shadow-xs: 0 1px 1px rgba(15, 23, 42, 0.04);
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08), 0 2px 4px rgba(15, 23, 42, 0.04);
    --shadow-lg: 0 12px 28px rgba(15, 23, 42, 0.12), 0 4px 8px rgba(15, 23, 42, 0.05);
    --shadow-xl: 0 24px 48px rgba(15, 23, 42, 0.18);
    --shadow-focus: 0 0 0 3px rgba(255, 96, 0, 0.28);

    /* Animasyon */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
    --t-fast: 120ms;
    --t-base: 180ms;
    --t-slow: 280ms;

    /* Layout */
    --container: 1320px;
    --topbar-height: 132px;       /* utility + main toplam */
    --topbar-height-with-cats: 178px;  /* + kategori bar */
}

/* ============================================================
   2) RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: var(--fs-md);
    line-height: var(--lh-normal);
    color: var(--text);
    background: var(--surface-0);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

img, svg, video { display: block; max-width: 100%; }
button { font-family: inherit; }
input, select, textarea { font-family: inherit; font-size: inherit; }
a { color: var(--primary); text-decoration: none; transition: color var(--t-fast) var(--ease-out); }
a:hover { color: var(--primary-hover); }

/* Klavye/erisilebilirlik — focus halkasi */
:focus { outline: none; }
:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
    border-radius: var(--radius-xs);
}

/* Hareket azaltma tercihi */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Erisilebilirlik: ekran okuyucu icin gorunmez metin */
.sr-only {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* Atla baglantisi */
.skip-link {
    position: absolute; top: -48px; left: var(--sp-4);
    background: var(--secondary); color: #fff;
    padding: var(--sp-2) var(--sp-4);
    border-radius: var(--radius-sm);
    font-weight: var(--fw-semibold);
    z-index: 1000;
    transition: top var(--t-base) var(--ease-out);
}
.skip-link:focus { top: var(--sp-2); color: #fff; }

/* Plasiyer impersonation banner */
.impersonation-banner {
    background: linear-gradient(90deg, #fde68a 0%, #fcd34d 100%);
    color: #78350f;
    border-bottom: 2px solid #f59e0b;
    font-weight: 600;
    font-size: 0.92rem;
    box-shadow: 0 2px 6px rgba(245,158,11,0.18);
    position: sticky;
    top: 0;
    z-index: 100;
}
.impersonation-banner .imp-inner {
    display: flex; align-items: center; gap: 0.75rem;
    padding: 0.55rem var(--sp-4);
}
.impersonation-banner .imp-icon { font-size: 1.3rem; }
.impersonation-banner .imp-btn {
    margin-left: auto;
    background: #78350f; color: #fff;
    border: none; border-radius: 6px;
    padding: 0.35rem 0.9rem;
    font-size: 0.85rem; font-weight: 600;
    cursor: pointer;
}
.impersonation-banner .imp-btn:hover { background: #92400e; }
.impersonation-banner .imp-btn[disabled] { opacity: 0.6; cursor: wait; }

/* Layout yardimcilari */
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--sp-4); }
.muted { color: var(--text-muted); }
.small { font-size: var(--fs-sm); }
.text-strong { color: var(--text-strong); font-weight: var(--fw-semibold); }

/* ============================================================
   3) TOPBAR — 2 katmanli ust nav + ana arama + kategori bar
   ============================================================ */

/* 3.1 Utility — koyu lacivert, kucuk linkler */
.topbar-utility {
    background: var(--surface-dark);
    color: rgba(255, 255, 255, 0.85);
    font-size: var(--fs-xs);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.topbar-utility-inner {
    display: flex; align-items: center; justify-content: space-between;
    gap: var(--sp-4); min-height: 36px;
}
.topbar-utility-left, .topbar-utility-right {
    display: flex; align-items: center; gap: var(--sp-2);
    flex-wrap: wrap;
}
.topbar-utility a, .topbar-utility .util-text {
    color: rgba(255, 255, 255, 0.78);
    padding: var(--sp-2) var(--sp-3);
    border-radius: var(--radius-xs);
    display: inline-flex; align-items: center; gap: var(--sp-1);
    transition: color var(--t-fast), background var(--t-fast);
}
.topbar-utility a:hover {
    color: #fff; background: rgba(255, 255, 255, 0.08);
}
.topbar-utility .util-divider {
    width: 1px; height: 14px;
    background: rgba(255, 255, 255, 0.15);
}
.topbar-utility .util-icon {
    width: 14px; height: 14px; flex-shrink: 0;
}

/* 3.2 Main bar — logo + arama + kullanici + sepet */
.topbar {
    background: var(--surface-1);
    border-bottom: 1px solid var(--border);
    position: sticky; top: 0; z-index: 100;
    box-shadow: var(--shadow-sm);
}
.topbar-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: var(--sp-5);
    padding: var(--sp-4) 0;
}

/* Marka */
.brand {
    display: inline-flex; align-items: center; gap: var(--sp-2);
    color: var(--text); text-decoration: none;
    font-weight: var(--fw-bold);
    line-height: 1;
}
.brand:hover { color: var(--text); }
.brand-mark {
    background: linear-gradient(135deg, var(--primary) 0%, #ff7d2e 100%);
    color: #fff;
    width: 40px; height: 40px;
    border-radius: var(--radius-md);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: var(--fs-lg);
    font-weight: var(--fw-black);
    letter-spacing: 0.4px;
    box-shadow: 0 2px 6px rgba(255, 96, 0, 0.3);
}
.brand-text {
    font-size: var(--fs-2xl);
    color: var(--secondary);
    letter-spacing: -0.2px;
}
.brand-logo {
    height: 44px;
    max-width: 200px;
    width: auto;
    object-fit: contain;
    display: block;
}
@media (max-width: 640px) {
    .brand-logo { height: 36px; max-width: 150px; }
}

/* Arama */
.search-form {
    display: flex;
    background: var(--surface-1);
    border: 2px solid var(--primary);
    border-radius: var(--radius-md);
    overflow: hidden;
    height: 46px;
    transition: box-shadow var(--t-base) var(--ease-out);
    max-width: 720px;
}
.search-form:focus-within {
    box-shadow: var(--shadow-focus);
}
.search-form input {
    flex: 1; padding: 0 var(--sp-4);
    border: none; background: transparent;
    color: var(--text); font-size: var(--fs-md);
    min-width: 0;
}
.search-form input:focus { outline: none; }
.search-form input::placeholder { color: var(--text-subtle); }
.search-form button {
    padding: 0 var(--sp-6);
    background: var(--primary); color: #fff;
    border: none; cursor: pointer;
    display: inline-flex; align-items: center; gap: var(--sp-2);
    font-weight: var(--fw-semibold);
    transition: background var(--t-fast);
}
.search-form button:hover { background: var(--primary-hover); }
.search-form button:active { background: var(--primary-pressed); }
.search-form button .search-label {
    font-size: var(--fs-sm);
}

/* Sag nav — Hesabim + Sepet */
.top-nav {
    display: flex; align-items: center; gap: var(--sp-2);
}
.nav-pill {
    display: inline-flex; align-items: center; gap: var(--sp-2);
    padding: var(--sp-2) var(--sp-3);
    border-radius: var(--radius-md);
    background: transparent;
    color: var(--text);
    text-decoration: none;
    font-size: var(--fs-sm);
    font-weight: var(--fw-medium);
    transition: background var(--t-fast), color var(--t-fast);
    border: 1px solid transparent;
    line-height: 1.1;
}
.nav-pill:hover {
    background: var(--primary-soft);
    color: var(--primary);
}
.nav-pill svg { width: 20px; height: 20px; flex-shrink: 0; }
.nav-pill .pill-label-stack {
    display: flex; flex-direction: column; align-items: flex-start;
    text-align: left;
}
.nav-pill .pill-label-small {
    font-size: var(--fs-2xs);
    color: var(--text-muted);
    font-weight: var(--fw-regular);
    line-height: 1.1;
}
.nav-pill .pill-label-big {
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);
    line-height: 1.1;
}
.nav-pill:hover .pill-label-small { color: var(--primary); }

/* Hesap açılır menüsü — header kısayolu */
.account-menu { position: relative; }
.account-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 220px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    padding: var(--sp-2);
    margin-top: var(--sp-2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity var(--t-fast), transform var(--t-fast), visibility var(--t-fast);
    z-index: 200;
}
/* Pill ile menü arasındaki boşlukta hover kopmasın diye görünmez köprü */
.account-dropdown::before {
    content: "";
    position: absolute;
    top: calc(-1 * var(--sp-2));
    left: 0; right: 0;
    height: var(--sp-2);
}
.account-menu:hover .account-dropdown,
.account-menu:focus-within .account-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.account-dropdown a {
    display: flex; align-items: center; gap: var(--sp-2);
    padding: var(--sp-2) var(--sp-3);
    color: var(--text);
    text-decoration: none;
    font-size: var(--fs-sm);
    border-radius: var(--radius-sm);
    transition: background var(--t-fast), color var(--t-fast);
    white-space: nowrap;
}
.account-dropdown a:hover { background: var(--primary-soft); color: var(--primary); }
.account-dropdown a svg { width: 16px; height: 16px; flex-shrink: 0; }
.account-dropdown-divider { border-top: 1px solid var(--border); margin: var(--sp-2) 0; }
.account-dropdown a.account-dropdown-logout { color: var(--danger, #dc2626); }
.account-dropdown a.account-dropdown-logout:hover { background: #fee2e2; color: var(--danger, #dc2626); }

/* Sepet — vurgulu */
.cart-link {
    position: relative;
    background: var(--primary-soft);
    border-color: var(--primary-soft-2);
}
.cart-link:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.cart-link:hover .pill-label-small { color: rgba(255,255,255,0.85); }
.cart-badge {
    position: absolute;
    top: -6px; right: -6px;
    background: var(--secondary);
    color: #fff;
    min-width: 22px; height: 22px;
    border-radius: var(--radius-pill);
    font-size: var(--fs-2xs);
    font-weight: var(--fw-bold);
    align-items: center; justify-content: center;
    padding: 0 6px;
    border: 2px solid #fff;
    display: none; /* JS açacak */
}
.cart-link:hover .cart-badge { background: var(--secondary-hover); }

.user-greet {
    font-size: var(--fs-sm);
    color: var(--text-muted);
    font-weight: var(--fw-medium);
    padding: 0 var(--sp-2);
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 3.3 Kategori bar — sticky alt menü */
.cat-bar {
    background: var(--surface-1);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 78px;   /* main topbar yüksekliği (utility kayboluyor mobilde) */
    z-index: 90;
    box-shadow: var(--shadow-xs);
}
.cat-bar-scroll {
    overflow-x: auto;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}
.cat-bar-scroll::-webkit-scrollbar { height: 4px; }
.cat-bar-scroll::-webkit-scrollbar-thumb {
    background: var(--border-strong);
    border-radius: var(--radius-pill);
}
.cat-bar-inner {
    display: inline-flex; gap: 0;
    padding: 0;
    white-space: nowrap;
    min-width: max-content;
}
.cat-bar-link {
    display: inline-flex; align-items: center; gap: var(--sp-2);
    padding: var(--sp-3) var(--sp-4);
    color: var(--text); text-decoration: none;
    font-size: var(--fs-sm); font-weight: var(--fw-medium);
    border-bottom: 3px solid transparent;
    transition: color var(--t-fast), border-color var(--t-fast);
    white-space: nowrap;
}
.cat-bar-link:hover, .cat-bar-link.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}
.cat-bar-link.is-all { color: var(--secondary); font-weight: var(--fw-semibold); }
.cat-bar-link.is-all:hover { color: var(--primary); }
.cat-bar-link svg { width: 16px; height: 16px; }

/* Responsive — topbar */
@media (max-width: 900px) {
    .topbar-utility-left .util-extra { display: none; }
    .topbar-inner {
        grid-template-columns: auto auto;
        grid-template-areas: "brand nav" "search search";
        gap: var(--sp-3);
        padding: var(--sp-3) 0;
    }
    .brand { grid-area: brand; }
    .top-nav { grid-area: nav; justify-self: end; gap: var(--sp-1); }
    .search-form { grid-area: search; height: 42px; }
    .nav-pill .pill-label-stack { display: none; }
    .nav-pill { padding: var(--sp-2); }
    .cat-bar { top: 112px; }
}
@media (max-width: 500px) {
    .brand-text { display: none; }
    .topbar-utility-inner { font-size: 11px; }
    .topbar-utility .util-text:not(.util-key) { display: none; }
}

/* ============================================================
   4) HERO — Bento layout, slider placeholder + side cards
   ============================================================ */

.hero-section {
    padding: var(--sp-6) 0 var(--sp-4);
}
.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--sp-4);
}

/* Ana slider yer tutucu */
.hero-main {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
    color: #fff;
    min-height: 340px;
    background:
        radial-gradient(120% 80% at 80% 20%, rgba(255,255,255,0.18) 0%, transparent 50%),
        radial-gradient(80% 120% at 10% 100%, rgba(28,41,86,0.55) 0%, transparent 60%),
        linear-gradient(135deg, #ff6000 0%, #ff8533 55%, #ffb27a 100%);
    box-shadow: var(--shadow-md);
    display: flex; flex-direction: column;
    padding: var(--sp-10) var(--sp-8);
    isolation: isolate;
}
.hero-main::before {
    /* Sag taraf dekoratif sekiller */
    content: '';
    position: absolute; inset: 0;
    background:
        radial-gradient(circle at 92% 18%, rgba(255,255,255,0.22) 0, transparent 22%),
        radial-gradient(circle at 88% 78%, rgba(255,255,255,0.10) 0, transparent 18%);
    pointer-events: none;
    z-index: -1;
}
.hero-tag {
    display: inline-flex; align-items: center; gap: var(--sp-2);
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: var(--sp-2) var(--sp-3);
    border-radius: var(--radius-pill);
    font-size: var(--fs-xs);
    font-weight: var(--fw-semibold);
    align-self: flex-start;
    margin-bottom: var(--sp-4);
    text-transform: uppercase;
    letter-spacing: 0.4px;
}
.hero-tag .hero-tag-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(255,255,255,0.3);
    animation: pulse 2.4s var(--ease-in-out) infinite;
}
@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 4px rgba(255,255,255,0.3); }
    50% { box-shadow: 0 0 0 8px rgba(255,255,255,0); }
}
.hero-main h1 {
    font-size: clamp(1.75rem, 3.4vw, 2.6rem);
    line-height: var(--lh-tight);
    margin: 0 0 var(--sp-3);
    font-weight: var(--fw-black);
    letter-spacing: -0.5px;
    max-width: 580px;
}
.hero-main p {
    font-size: var(--fs-lg);
    line-height: var(--lh-relaxed);
    margin: 0 0 var(--sp-6);
    opacity: 0.95;
    max-width: 540px;
}
.hero-actions {
    display: flex; gap: var(--sp-3); flex-wrap: wrap;
    margin-top: auto;
}
.hero-cta {
    display: inline-flex; align-items: center; gap: var(--sp-2);
    background: #fff; color: var(--primary);
    padding: var(--sp-3) var(--sp-6);
    border-radius: var(--radius-md);
    font-weight: var(--fw-bold);
    font-size: var(--fs-md);
    text-decoration: none;
    box-shadow: var(--shadow-md);
    transition: transform var(--t-base) var(--ease-out), box-shadow var(--t-base);
}
.hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: var(--primary-hover);
}
.hero-cta-ghost {
    background: transparent;
    color: #fff;
    border: 1.5px solid rgba(255,255,255,0.7);
    box-shadow: none;
}
.hero-cta-ghost:hover {
    background: rgba(255,255,255,0.12);
    color: #fff;
    box-shadow: none;
    transform: translateY(-2px);
}

/* Slide indicator (placeholder) */
.hero-dots {
    position: absolute;
    bottom: var(--sp-5);
    right: var(--sp-8);
    display: inline-flex; gap: var(--sp-2);
    z-index: 1;
}
.hero-dots span {
    width: 28px; height: 4px;
    background: rgba(255,255,255,0.4);
    border-radius: var(--radius-pill);
    transition: background var(--t-base);
}
.hero-dots span.is-active { background: #fff; width: 36px; }

/* ============ CMS Slider (Index hero, from /api/storefront/sliders) ============ */
.hero-slider {
    position: relative;
    overflow: hidden;
    padding: 0;
}
.hero-slide {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    padding: 2.5rem 2rem;
    color: #fff;
    transition: opacity 0.5s;
}
.hero-slide.is-active { display: flex; }
.hero-slide-content { max-width: 560px; position: relative; z-index: 1; }
.hero-slide-content h1 {
    font-size: 2.4rem;
    line-height: 1.1;
    margin: 0 0 0.75rem;
    font-weight: 800;
    text-shadow: 0 2px 12px rgba(0,0,0,0.35);
}
.hero-slide-content p {
    font-size: 1.05rem;
    margin: 0 0 1.5rem;
    opacity: 0.95;
    text-shadow: 0 1px 6px rgba(0,0,0,0.35);
    white-space: pre-line;
}

/* Slayt metin konumu — yatay (justify) + dikey (align) + metin hizasi */
.hero-slide.hero-pos-left-top,
.hero-slide.hero-pos-left-center,
.hero-slide.hero-pos-left-bottom { justify-content: flex-start; }
.hero-slide.hero-pos-center-top,
.hero-slide.hero-pos-center-center,
.hero-slide.hero-pos-center-bottom { justify-content: center; }
.hero-slide.hero-pos-right-top,
.hero-slide.hero-pos-right-center,
.hero-slide.hero-pos-right-bottom { justify-content: flex-end; }

.hero-slide.hero-pos-left-top,
.hero-slide.hero-pos-center-top,
.hero-slide.hero-pos-right-top { align-items: flex-start; }
.hero-slide.hero-pos-left-center,
.hero-slide.hero-pos-center-center,
.hero-slide.hero-pos-right-center { align-items: center; }
.hero-slide.hero-pos-left-bottom,
.hero-slide.hero-pos-center-bottom,
.hero-slide.hero-pos-right-bottom { align-items: flex-end; }

.hero-slide[class*="hero-pos-center-"] .hero-slide-content { text-align: center; }
.hero-slide[class*="hero-pos-right-"] .hero-slide-content { text-align: right; }
.hero-slide[class*="hero-pos-center-"] .hero-actions { justify-content: center; }
.hero-slide[class*="hero-pos-right-"] .hero-actions { justify-content: flex-end; }

.hero-slider .hero-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    gap: 0.4rem;
}
.hero-slider .hero-dots button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    padding: 0;
}
.hero-slider .hero-dots button.is-active {
    background: #fff;
    width: 32px;
    border-radius: 5px;
}

.hero-empty-note {
    margin-top: 1.5rem;
    padding: 0.6rem 0.9rem;
    background: rgba(0,0,0,0.18);
    border-radius: 6px;
    color: rgba(255,255,255,0.85);
    font-size: 0.8rem;
}

@media (max-width: 900px) {
    .hero-slide { padding: 1.75rem 1.25rem; }
    .hero-slide-content h1 { font-size: 1.65rem; }
}

/* Side kartlar */
.hero-side {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: var(--sp-4);
}
.hero-side-card {
    position: relative;
    border-radius: var(--radius-xl);
    padding: var(--sp-5) var(--sp-6);
    color: #fff;
    display: flex; flex-direction: column; justify-content: space-between;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    background: linear-gradient(135deg, var(--secondary) 0%, #2d3d80 100%);
    transition: transform var(--t-base) var(--ease-out), box-shadow var(--t-base);
}
.hero-side-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}
.hero-side-card.alt {
    background: linear-gradient(135deg, #0d7cc9 0%, #2196f3 100%);
}
.hero-side-card .side-tag {
    align-self: flex-start;
    background: rgba(255,255,255,0.18);
    padding: var(--sp-1) var(--sp-3);
    border-radius: var(--radius-pill);
    font-size: var(--fs-2xs);
    font-weight: var(--fw-semibold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.hero-side-card h3 {
    margin: var(--sp-3) 0 var(--sp-1);
    font-size: var(--fs-xl);
    font-weight: var(--fw-bold);
    line-height: var(--lh-snug);
}
.hero-side-card p {
    margin: 0;
    font-size: var(--fs-sm);
    opacity: 0.9;
    line-height: var(--lh-snug);
}
.hero-side-card .side-stats {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-2);
    margin-top: var(--sp-4);
    padding-top: var(--sp-3);
    border-top: 1px solid rgba(255,255,255,0.15);
}
.hero-side-card .side-stat-value {
    font-size: var(--fs-xl);
    font-weight: var(--fw-black);
    line-height: 1.1;
}
.hero-side-card .side-stat-label {
    font-size: var(--fs-2xs);
    opacity: 0.85;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.hero-side-card::after {
    content: '';
    position: absolute;
    width: 160px; height: 160px;
    right: -50px; bottom: -50px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    pointer-events: none;
}

@media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-main { min-height: 260px; padding: var(--sp-6) var(--sp-5); }
    .hero-side { grid-template-rows: auto auto; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 500px) {
    .hero-side { grid-template-columns: 1fr; }
    .hero-main { padding: var(--sp-5) var(--sp-4); min-height: 220px; }
    .hero-dots { right: var(--sp-4); }
}

/* ============================================================
   5) PROMO STRIP — 8 hizli erisim karti
   ============================================================ */

.promo-strip {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: var(--sp-2);
    padding: var(--sp-4) 0 var(--sp-2);
}
.promo-card {
    display: flex; flex-direction: column; align-items: center;
    gap: var(--sp-1);
    padding: var(--sp-3) var(--sp-2);
    background: var(--surface-1);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text);
    text-decoration: none;
    text-align: center;
    transition: transform var(--t-base) var(--ease-out),
                box-shadow var(--t-base),
                border-color var(--t-fast);
    position: relative;
    overflow: hidden;
}
.promo-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-soft-2);
    color: var(--text);
}
.promo-icon {
    width: 36px; height: 36px;
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--primary-soft);
    color: var(--primary);
    margin-bottom: var(--sp-1);
    transition: background var(--t-fast), color var(--t-fast);
}
.promo-card:hover .promo-icon { background: var(--primary); color: #fff; }
.promo-icon svg { width: 18px; height: 18px; }
.promo-title { font-size: var(--fs-xs); font-weight: var(--fw-bold); line-height: 1.2; }
.promo-sub { font-size: var(--fs-2xs); color: var(--text-muted); line-height: 1.25; }

/* Renk varyantlari (ikon arka plani) */
.promo-card.tone-secondary .promo-icon { background: var(--secondary-soft); color: var(--secondary); }
.promo-card.tone-secondary:hover .promo-icon { background: var(--secondary); color: #fff; }
.promo-card.tone-info .promo-icon { background: var(--info-soft); color: var(--info); }
.promo-card.tone-info:hover .promo-icon { background: var(--info); color: #fff; }
.promo-card.tone-success .promo-icon { background: var(--success-soft); color: var(--success); }
.promo-card.tone-success:hover .promo-icon { background: var(--success); color: #fff; }

@media (max-width: 1100px) { .promo-strip { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 500px) { .promo-strip { grid-template-columns: repeat(2, 1fr); gap: var(--sp-2); } }

/* ============================================================
   6) SECTION & TYPOGRAPHY
   ============================================================ */

.section { padding: var(--sp-6) 0; }
.section-tight { padding: var(--sp-4) 0; }

.section-header {
    display: flex; justify-content: space-between; align-items: center;
    gap: var(--sp-4);
    margin-bottom: var(--sp-5);
}
.section-header h2 {
    margin: 0;
    font-size: var(--fs-3xl);
    font-weight: var(--fw-bold);
    color: var(--secondary);
    letter-spacing: -0.3px;
    line-height: var(--lh-tight);
}
.section-header .section-eyebrow {
    color: var(--primary);
    font-size: var(--fs-xs);
    font-weight: var(--fw-bold);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: var(--sp-1);
    display: block;
}
.link-more {
    color: var(--primary);
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);
    text-decoration: none;
    display: inline-flex; align-items: center; gap: var(--sp-1);
    padding: var(--sp-2) var(--sp-3);
    border-radius: var(--radius-sm);
    transition: background var(--t-fast);
}
.link-more:hover { background: var(--primary-soft); text-decoration: none; }
.link-more svg { width: 14px; height: 14px; transition: transform var(--t-fast); }
.link-more:hover svg { transform: translateX(2px); }

/* ============================================================
   7) CATEGORY CARDS (anasayfa)
   ============================================================ */

.category-grid {
    display: grid;
    /* Kategori sayısı kadar sütun: kaç kategori varsa satırı ona böler
       (1 kategori = tam genişlik, 4 kategori = 4'e bölünmüş, 7 kategori = 7'ye).
       --cat-count sunucu tarafından set edilir; yoksa 4 varsayılır. */
    grid-template-columns: repeat(var(--cat-count, 4), minmax(0, 1fr));
    gap: var(--sp-3);
}
/* Tablet: sabit sütun yerine kart genişliğine göre otomatik sar,
   boş sütun bırakmadan mevcut kartları satıra yay (auto-fit). */
@media (max-width: 900px) {
    .category-grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
}
/* Mobil: 2 sütun */
@media (max-width: 500px) {
    .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-2); }
}
.category-card {
    background: var(--surface-1);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--sp-5) var(--sp-3);
    text-align: center;
    transition: transform var(--t-base) var(--ease-out),
                box-shadow var(--t-base),
                border-color var(--t-fast);
    color: var(--text); text-decoration: none;
    display: flex; flex-direction: column; align-items: center; gap: var(--sp-2);
}
.category-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    color: var(--text);
}
.category-card-icon {
    width: 88px; height: 88px;
    background: var(--primary-soft);
    border-radius: var(--radius-md, 8px);
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--primary);
    transition: background var(--t-base), color var(--t-base);
    overflow: hidden;
    padding: 2px;
}
.category-card-icon svg { width: 36px; height: 36px; }
.category-card-icon img {
    width: 100%; height: 100%;
    object-fit: contain;
    border-radius: 4px;
}

/* Catalog sidebar uploaded icons */
.catalog-sidebar a .sidebar-icon {
    width: 18px; height: 18px;
    object-fit: contain;
    margin-right: 0.4rem;
    vertical-align: middle;
    border-radius: 3px;
    background: #fff;
}

/* Active category banner — catalog top */
.category-banner {
    width: 100%;
    margin: 0.5rem 0 1.25rem;
    border-radius: var(--radius-lg, 12px);
    overflow: hidden;
    background: var(--bg-soft, #f8f9fb);
    aspect-ratio: 1600 / 300;
    max-height: 220px;
}
.category-banner img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}

/* Product page gallery thumbs strip */
.product-gallery-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.gallery-thumbs {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
}
.gallery-thumb {
    width: 64px; height: 64px;
    flex-shrink: 0;
    border: 2px solid transparent;
    border-radius: 6px;
    overflow: hidden;
    background: var(--bg-soft, #f8f9fb);
    cursor: pointer;
    padding: 0;
    transition: border-color 0.15s;
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 3px; }
.gallery-thumb:hover { border-color: var(--text-muted, #6b7280); }
.gallery-thumb.is-active { border-color: var(--primary, #ff6000); }

/* Brand logo inline next to brand name on product page */
.brand-logo-inline {
    height: 18px;
    max-width: 60px;
    object-fit: contain;
    vertical-align: middle;
    margin-right: 0.35rem;
}
.category-card:hover .category-card-icon {
    background: var(--primary);
    color: #fff;
    transform: scale(1.05);
}
.category-card-name {
    font-weight: var(--fw-semibold);
    font-size: var(--fs-md);
    line-height: var(--lh-snug);
    color: var(--text);
}
.category-card-count {
    font-size: var(--fs-xs);
    color: var(--text-muted);
    font-weight: var(--fw-medium);
}

/* ============================================================
   8) PRODUCT GRID & CARD
   ============================================================ */

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: var(--sp-3);
}

.product-card {
    background: var(--surface-1);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: border-color var(--t-fast),
                box-shadow var(--t-base) var(--ease-out),
                transform var(--t-base) var(--ease-out);
    display: flex; flex-direction: column;
    position: relative;
}
.product-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}
.product-card-link {
    text-decoration: none; color: inherit;
    display: flex; flex-direction: column; flex: 1;
}

/* Resim alani */
.product-image {
    aspect-ratio: 1 / 1;
    background: var(--surface-2);
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
    position: relative;
}
.product-image img {
    width: 100%; height: 100%;
    object-fit: contain;
    padding: var(--sp-3);
    transition: transform var(--t-slow) var(--ease-out);
}
.product-card:hover .product-image img { transform: scale(1.04); }

/* Placeholder: marka tutarli, renkli arka plan + harf */
.product-image-placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    font-size: 2.4rem;
    font-weight: var(--fw-black);
    color: rgba(255, 96, 0, 0.45);
    background:
        linear-gradient(135deg, var(--primary-soft) 0%, #fff 70%),
        radial-gradient(circle at 30% 30%, rgba(255,96,0,0.06), transparent 60%);
    letter-spacing: -1px;
    text-transform: uppercase;
    user-select: none;
}

/* Stokta yok overlay'i */
.product-image .stock-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(248, 249, 251, 0.55) 0%, rgba(248, 249, 251, 0) 35%);
    display: flex; align-items: flex-end; justify-content: center;
    padding-bottom: var(--sp-3);
    pointer-events: none;
}
.product-image .stock-overlay-tag {
    background: var(--surface-dark);
    color: #fff;
    font-size: var(--fs-xs);
    font-weight: var(--fw-bold);
    letter-spacing: 0.4px;
    padding: var(--sp-2) var(--sp-4);
    border-radius: var(--radius-pill);
    text-transform: uppercase;
}

/* Rozet (kosegen sol ust) */
.product-badge {
    position: absolute;
    top: var(--sp-2); left: var(--sp-2);
    background: var(--primary);
    color: #fff;
    padding: var(--sp-1) var(--sp-2);
    border-radius: var(--radius-xs);
    font-size: var(--fs-2xs);
    font-weight: var(--fw-bold);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    z-index: 2;
}
.product-badge.is-new { background: var(--success); }
.product-badge.is-discount { background: var(--danger); }

/* Favori butonu (sag ust) */
.product-fav {
    position: absolute;
    top: var(--sp-2); right: var(--sp-2);
    width: 32px; height: 32px;
    background: rgba(255,255,255,0.95);
    border: 1px solid var(--border);
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--text-muted);
    cursor: pointer;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity var(--t-base), transform var(--t-base), color var(--t-fast), background var(--t-fast);
    z-index: 2;
}
.product-card:hover .product-fav { opacity: 1; transform: translateY(0); }
.product-fav:hover { color: var(--danger); background: #fff; }
.product-fav svg { width: 16px; height: 16px; }
.product-fav.is-fav { opacity: 1; transform: translateY(0); color: var(--danger); background: #fff; border-color: var(--danger); }
.product-fav.is-fav svg { fill: currentColor; }
.product-fav[disabled] { opacity: 0.6; cursor: wait; }

/* Govde */
.product-body {
    padding: var(--sp-3) var(--sp-3) var(--sp-4);
    display: flex; flex-direction: column;
    gap: var(--sp-1);
    flex: 1;
}
.product-brand {
    font-size: var(--fs-2xs);
    color: var(--primary);
    font-weight: var(--fw-bold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.product-name {
    font-size: var(--fs-md);
    font-weight: var(--fw-medium);
    color: var(--text);
    line-height: var(--lh-snug);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: calc(var(--fs-md) * var(--lh-snug) * 2);
}
.product-meta {
    margin-top: auto;
    display: flex; flex-direction: column;
    gap: var(--sp-1);
    padding-top: var(--sp-3);
    border-top: 1px dashed var(--border);
}
.product-price-row {
    display: flex; align-items: baseline; justify-content: space-between;
    gap: var(--sp-2);
}
.product-price {
    font-size: var(--fs-xl);
    font-weight: var(--fw-black);
    color: var(--primary);
    line-height: 1.1;
    letter-spacing: -0.3px;
}
.product-price-old {
    font-size: var(--fs-xs);
    color: var(--text-muted);
    text-decoration: line-through;
    font-weight: var(--fw-medium);
}
.product-stock {
    font-size: var(--fs-xs);
    color: var(--success);
    font-weight: var(--fw-semibold);
    display: inline-flex; align-items: center; gap: var(--sp-1);
}
.product-stock::before {
    content: '';
    display: inline-block;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: currentColor;
    flex-shrink: 0;
}
.product-stock.is-out { color: var(--danger); }
.product-stock.is-low { color: var(--warning); }

/* Stokta yok karti */
.product-card.is-out .product-card-link { opacity: 0.9; }
.product-card.is-out .product-name { color: var(--text-muted); }
.product-card.is-out .product-price { color: var(--text-muted); }

/* ============================================================
   9) BREADCRUMB
   ============================================================ */

.breadcrumb {
    display: flex; align-items: center; gap: var(--sp-2);
    padding: var(--sp-4) 0;
    font-size: var(--fs-sm);
    color: var(--text-muted);
    flex-wrap: wrap;
}
.breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--t-fast);
}
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep {
    color: var(--text-subtle);
    user-select: none;
}
.breadcrumb [aria-current="page"] {
    color: var(--text);
    font-weight: var(--fw-medium);
}

/* ============================================================
   10) CATALOG layout (sidebar + grid)
   ============================================================ */

.catalog-layout {
    display: grid;
    grid-template-columns: 256px 1fr;
    gap: var(--sp-6);
    padding-top: var(--sp-2);
}
.catalog-sidebar {
    background: var(--surface-1);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: var(--sp-5);
    height: fit-content;
    position: sticky; top: 178px; /* topbar + cat-bar */
    max-height: calc(100vh - 200px);
    overflow-y: auto;
    scrollbar-width: thin;
}
.catalog-sidebar h3 {
    font-size: var(--fs-md);
    margin: 0 0 var(--sp-3);
    color: var(--secondary);
    font-weight: var(--fw-bold);
    display: flex; align-items: center; gap: var(--sp-2);
}
.catalog-sidebar h3 svg { width: 16px; height: 16px; color: var(--primary); }
.catalog-sidebar h3:not(:first-child) {
    margin-top: var(--sp-5);
    padding-top: var(--sp-4);
    border-top: 1px solid var(--border);
}
.catalog-sidebar ul {
    list-style: none; padding: 0; margin: 0;
    display: flex; flex-direction: column; gap: 2px;
}
.catalog-sidebar a {
    display: flex; justify-content: space-between; align-items: center;
    gap: var(--sp-2);
    color: var(--text);
    font-size: var(--fs-sm);
    text-decoration: none;
    padding: var(--sp-2) var(--sp-3);
    border-radius: var(--radius-sm);
    transition: background var(--t-fast), color var(--t-fast);
}
.catalog-sidebar a:hover {
    background: var(--surface-2);
    color: var(--primary);
}
.catalog-sidebar a.active {
    background: var(--primary-soft);
    color: var(--primary);
    font-weight: var(--fw-semibold);
}
.catalog-sidebar a .count {
    color: var(--text-muted);
    font-size: var(--fs-xs);
    background: var(--surface-3);
    padding: 1px var(--sp-2);
    border-radius: var(--radius-pill);
    font-weight: var(--fw-medium);
    min-width: 28px; text-align: center;
}
.catalog-sidebar a.active .count {
    background: var(--primary);
    color: #fff;
}

/* Hierarchical kategori ağacı — details/summary */
.cat-tree { padding: 0; }
.cat-tree-sub {
    margin-left: 1rem !important;
    border-left: 2px solid var(--surface-3, #e5e7eb);
    padding-left: 0.4rem !important;
    margin-top: 4px !important;
}
.cat-branch { display: block; }
.cat-branch[open] > .cat-branch-summary .cat-toggle::before { content: "−"; }
.cat-branch-summary {
    list-style: none;
    display: flex; align-items: center; gap: var(--sp-2, 0.5rem);
    padding: var(--sp-2, 0.5rem) var(--sp-3, 0.75rem);
    border-radius: var(--radius-sm, 6px);
    cursor: pointer;
    transition: background var(--t-fast, 0.12s);
    color: var(--text, #1a1f36);
    font-size: var(--fs-sm, 0.875rem);
}
.cat-branch-summary::-webkit-details-marker { display: none; }
.cat-branch-summary:hover { background: var(--surface-2, #f8f9fb); }
.cat-branch-summary.active { background: var(--primary-soft, #fff4ed); color: var(--primary, #ff6000); font-weight: var(--fw-semibold, 600); }
.cat-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 18px; height: 18px;
    background: var(--surface-3, #e5e7eb);
    color: var(--text-muted, #6b7280);
    border-radius: 4px;
    font-weight: 700; font-size: 0.85rem; line-height: 1;
    flex-shrink: 0;
    transition: background 0.12s, color 0.12s;
}
.cat-branch-summary:hover .cat-toggle { background: var(--primary, #ff6000); color: #fff; }
.cat-branch[open] > .cat-branch-summary .cat-toggle { background: var(--primary, #ff6000); color: #fff; }
.cat-toggle::before { content: "+"; }
.cat-branch-link {
    flex: 1;
    color: inherit;
    text-decoration: none;
    padding: 0 !important;
    background: none !important;
}
.cat-branch-link:hover { color: var(--primary, #ff6000); text-decoration: none; }
.cat-branch-summary .count { margin-left: auto; }

/* Leaf (cocugu olmayan) — link butun summary'i kaplar */
.catalog-sidebar a.cat-leaf {
    /* mevcut catalog-sidebar a stilini kullanir, ek bir sey gerekmiyor */
}

.catalog-toolbar {
    display: flex; justify-content: space-between; align-items: center;
    gap: var(--sp-4); flex-wrap: wrap;
    background: var(--surface-1);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: var(--sp-3) var(--sp-4);
    margin-bottom: var(--sp-4);
}
.catalog-toolbar .toolbar-title {
    display: flex; align-items: baseline; gap: var(--sp-2);
}
.catalog-toolbar h1 {
    margin: 0;
    font-size: var(--fs-xl);
    font-weight: var(--fw-bold);
    color: var(--secondary);
}
.catalog-toolbar .toolbar-count {
    color: var(--text-muted);
    font-size: var(--fs-sm);
}
.catalog-toolbar .toolbar-actions {
    display: flex; align-items: center; gap: var(--sp-2);
}
.toolbar-chip {
    display: inline-flex; align-items: center; gap: var(--sp-1);
    background: var(--primary-soft);
    color: var(--primary);
    padding: var(--sp-1) var(--sp-2) var(--sp-1) var(--sp-3);
    border-radius: var(--radius-pill);
    font-size: var(--fs-xs);
    font-weight: var(--fw-semibold);
}
.toolbar-chip a {
    color: var(--primary);
    display: inline-flex;
    line-height: 0;
    border-radius: 50%;
    padding: 2px;
}
.toolbar-chip a:hover { background: var(--primary); color: #fff; }
.toolbar-chip svg { width: 12px; height: 12px; }

@media (max-width: 900px) {
    .catalog-layout { grid-template-columns: 1fr; gap: var(--sp-4); }
    .catalog-sidebar { position: static; max-height: none; }
}

/* ============================================================
   11) PRODUCT DETAIL
   ============================================================ */

.product-detail {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: var(--sp-8);
    background: var(--surface-1);
    border-radius: var(--radius-lg);
    padding: var(--sp-6);
    margin-top: var(--sp-2);
    border: 1px solid var(--border);
}
.product-gallery {
    background: var(--surface-2);
    border-radius: var(--radius-md);
    aspect-ratio: 1 / 1;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-muted);
    overflow: hidden;
    position: relative;
}
.product-gallery img {
    width: 100%; height: 100%;
    object-fit: contain;
    padding: var(--sp-6);
    transition: transform var(--t-slow) var(--ease-out);
}
.product-gallery:hover img { transform: scale(1.03); }
.product-info { display: flex; flex-direction: column; gap: var(--sp-3); }
.product-info .brand-line a {
    color: var(--primary);
    font-weight: var(--fw-bold);
    text-transform: uppercase;
    font-size: var(--fs-xs);
    letter-spacing: 0.6px;
}
.product-info h1 {
    font-size: var(--fs-3xl);
    margin: 0;
    color: var(--secondary);
    font-weight: var(--fw-bold);
    line-height: var(--lh-snug);
    letter-spacing: -0.3px;
}
.product-info .short-desc {
    font-size: var(--fs-lg);
    color: var(--text);
    margin: 0;
    line-height: var(--lh-relaxed);
}

.price-block {
    background: linear-gradient(135deg, var(--primary-soft) 0%, #fff 100%);
    border-left: 4px solid var(--primary);
    padding: var(--sp-5);
    border-radius: var(--radius-md);
    margin: var(--sp-2) 0;
}
.price-block .price {
    font-size: var(--fs-4xl);
    font-weight: var(--fw-black);
    color: var(--primary);
    line-height: 1;
    letter-spacing: -0.5px;
}
.price-block .price-vat {
    font-size: var(--fs-sm);
    color: var(--text-muted);
    margin-top: var(--sp-2);
}
.price-block .stock-info {
    font-size: var(--fs-md);
    color: var(--success);
    margin-top: var(--sp-3);
    font-weight: var(--fw-bold);
    display: inline-flex; align-items: center; gap: var(--sp-2);
}
.price-block .stock-info svg { width: 16px; height: 16px; }
.price-block .stock-info.low { color: var(--danger); }

/* Sepete ekle formu */
.add-to-cart-form {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: var(--sp-3);
    align-items: end;
    padding: var(--sp-4);
    background: var(--surface-2);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}
.qty-label {
    display: flex; flex-direction: column;
    font-size: var(--fs-xs);
    color: var(--text-muted);
    gap: var(--sp-1);
    font-weight: var(--fw-medium);
    text-transform: uppercase;
    letter-spacing: 0.4px;
}
.qty-label input {
    width: 96px;
    padding: var(--sp-3) var(--sp-3);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    font-size: var(--fs-md);
    font-weight: var(--fw-semibold);
    text-align: center;
    background: #fff;
    transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.qty-label input:focus {
    border-color: var(--primary);
    box-shadow: var(--shadow-focus);
    outline: none;
}
.btn-add-to-cart {
    width: 100%;
    padding: var(--sp-3) var(--sp-6);
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    font-size: var(--fs-lg);
    font-weight: var(--fw-bold);
    cursor: pointer;
    transition: background var(--t-fast), transform var(--t-fast);
    display: inline-flex;
    align-items: center; justify-content: center; gap: var(--sp-2);
    min-height: 50px;
}
.btn-add-to-cart:hover { background: var(--primary-hover); }
.btn-add-to-cart:active { transform: scale(0.985); background: var(--primary-pressed); }
.btn-add-to-cart svg { width: 18px; height: 18px; }

.spec-list {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: var(--sp-2) var(--sp-4);
    padding: var(--sp-4);
    background: var(--surface-2);
    border-radius: var(--radius-md);
    margin: 0;
}
.spec-list dt {
    color: var(--text-muted);
    font-size: var(--fs-sm);
    font-weight: var(--fw-medium);
}
.spec-list dd {
    margin: 0;
    font-weight: var(--fw-semibold);
    color: var(--text);
    font-size: var(--fs-sm);
}
.spec-list code {
    background: var(--surface-3);
    padding: 2px var(--sp-2);
    border-radius: var(--radius-xs);
    font-size: var(--fs-xs);
    font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
.spec-list dd.oem-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    align-items: center;
}

.product-description {
    margin-top: var(--sp-6);
    padding: var(--sp-6);
    background: var(--surface-1);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}
.product-description h3 {
    margin: 0 0 var(--sp-3);
    color: var(--secondary);
    font-size: var(--fs-xl);
    font-weight: var(--fw-bold);
}
.product-description-body {
    line-height: var(--lh-relaxed);
    color: var(--text);
    white-space: pre-line;
    font-size: var(--fs-md);
}

/* Varyant tablosu */
.variant-table {
    width: 100%; border-collapse: collapse;
    font-size: var(--fs-sm);
}
.variant-table thead th {
    text-align: left;
    padding: var(--sp-3);
    border-bottom: 2px solid var(--border-strong);
    color: var(--text-muted);
    font-weight: var(--fw-semibold);
    text-transform: uppercase;
    font-size: var(--fs-xs);
    letter-spacing: 0.5px;
}
.variant-table tbody td {
    padding: var(--sp-3);
    border-bottom: 1px solid var(--border);
}
.variant-table tbody tr:hover { background: var(--surface-2); }
.variant-table .col-num { text-align: right; }
.variant-table .stock-pos { color: var(--success); font-weight: var(--fw-semibold); }
.variant-table .stock-neg { color: var(--danger); font-weight: var(--fw-semibold); }

@media (max-width: 900px) {
    .product-detail {
        grid-template-columns: 1fr;
        gap: var(--sp-5);
        padding: var(--sp-4);
    }
    .product-info h1 { font-size: var(--fs-2xl); }
    .price-block .price { font-size: var(--fs-3xl); }
    .add-to-cart-form { grid-template-columns: 1fr; }
    .qty-label input { width: 100%; }
}

/* ============================================================
   12) PAGINATION
   ============================================================ */

.pagination {
    display: flex; justify-content: center; align-items: center;
    gap: var(--sp-1);
    padding: var(--sp-6) 0;
    flex-wrap: wrap;
}
.pagination a, .pagination span {
    padding: var(--sp-2) var(--sp-3);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    text-decoration: none;
    font-size: var(--fs-sm);
    font-weight: var(--fw-medium);
    background: var(--surface-1);
    min-width: 40px;
    text-align: center;
    transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast);
}
.pagination a:hover {
    background: var(--primary-soft);
    border-color: var(--primary);
    color: var(--primary);
}
.pagination .current {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    font-weight: var(--fw-bold);
}
.pagination .disabled {
    color: var(--text-subtle);
    opacity: 0.5;
    pointer-events: none;
    background: var(--surface-2);
}

/* ============================================================
   13) EMPTY STATE
   ============================================================ */

.empty-state {
    text-align: center;
    padding: var(--sp-16) var(--sp-4);
    color: var(--text-muted);
    background: var(--surface-1);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}
.empty-state-icon {
    width: 80px; height: 80px;
    margin: 0 auto var(--sp-4);
    background: var(--primary-soft);
    color: var(--primary);
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
}
.empty-state-icon svg { width: 36px; height: 36px; }
.empty-state h3 {
    margin: 0 0 var(--sp-2);
    color: var(--text);
    font-size: var(--fs-xl);
    font-weight: var(--fw-bold);
}
.empty-state p { margin: 0; font-size: var(--fs-md); }
.empty-state p + p { margin-top: var(--sp-2); }

/* ============================================================
   14) CART
   ============================================================ */

.cart-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: var(--sp-5);
    padding: var(--sp-2) 0 var(--sp-10);
}

.cart-header {
    display: flex; justify-content: space-between; align-items: center;
    gap: var(--sp-3);
    margin-bottom: var(--sp-4);
}
.cart-header h2 {
    margin: 0;
    font-size: var(--fs-2xl);
    font-weight: var(--fw-bold);
    color: var(--secondary);
}
.cart-header .cart-count {
    color: var(--text-muted);
    font-size: var(--fs-md);
    font-weight: var(--fw-medium);
    margin-left: var(--sp-2);
}

.cart-lines {
    background: var(--surface-1);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 0 var(--sp-5);
}
.cart-line {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr) auto 130px auto;
    gap: var(--sp-4);
    padding: var(--sp-4) 0;
    border-bottom: 1px solid var(--border);
    align-items: center;
}
.cart-line:last-child { border-bottom: none; }

.cart-line-image {
    width: 88px; height: 88px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.cart-line-image img {
    width: 100%; height: 100%;
    object-fit: contain;
    padding: var(--sp-2);
}
.cart-line-info { min-width: 0; display: flex; flex-direction: column; gap: var(--sp-1); }
.cart-line-name {
    font-weight: var(--fw-semibold);
    color: var(--text);
    text-decoration: none;
    font-size: var(--fs-md);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.cart-line-name:hover { color: var(--primary); }
.cart-line-meta {
    font-size: var(--fs-xs);
    color: var(--text-muted);
    display: flex; flex-wrap: wrap; gap: var(--sp-2);
    align-items: center;
}
.cart-line-meta code {
    background: var(--surface-3);
    padding: 1px var(--sp-2);
    border-radius: var(--radius-xs);
    font-family: ui-monospace, "SF Mono", Menlo, monospace;
    font-size: var(--fs-2xs);
}
.cart-line-warn {
    color: var(--danger);
    font-weight: var(--fw-semibold);
    display: inline-flex; align-items: center; gap: var(--sp-1);
}
.cart-line-warn svg { width: 12px; height: 12px; }
.cart-line-unit {
    font-size: var(--fs-xs);
    color: var(--text-muted);
    margin-top: var(--sp-1);
}

/* Stepper qty */
.qty-stepper {
    display: inline-flex; align-items: stretch;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    background: var(--surface-1);
    overflow: hidden;
    height: 36px;
}
.qty-stepper input {
    width: 56px;
    border: none;
    text-align: center;
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);
    color: var(--text);
    background: transparent;
    padding: 0;
    -moz-appearance: textfield;
}
.qty-stepper input::-webkit-outer-spin-button,
.qty-stepper input::-webkit-inner-spin-button {
    -webkit-appearance: none; margin: 0;
}
.qty-stepper input:focus { outline: none; background: var(--primary-soft); }
.qty-stepper button {
    width: 32px; padding: 0;
    background: var(--surface-2);
    border: none;
    color: var(--text);
    cursor: pointer;
    font-size: var(--fs-md);
    font-weight: var(--fw-bold);
    transition: background var(--t-fast), color var(--t-fast);
    display: inline-flex; align-items: center; justify-content: center;
}
.qty-stepper button:hover { background: var(--primary); color: #fff; }
.qty-stepper button:active { background: var(--primary-pressed); }
.qty-stepper .qty-apply {
    background: var(--primary-soft);
    color: var(--primary);
    font-size: var(--fs-2xs);
    font-weight: var(--fw-bold);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    width: auto; padding: 0 var(--sp-3);
    border-left: 1px solid var(--border-strong);
}
.qty-stepper .qty-apply:hover { background: var(--primary); color: #fff; }

.cart-line-total {
    text-align: right;
    font-size: var(--fs-lg);
    font-weight: var(--fw-black);
    color: var(--primary);
    letter-spacing: -0.2px;
}

.cart-line-remove {
    background: none; border: none; cursor: pointer;
    color: var(--text-muted);
    padding: var(--sp-2);
    border-radius: 50%;
    width: 36px; height: 36px;
    display: inline-flex; align-items: center; justify-content: center;
    transition: color var(--t-fast), background var(--t-fast);
}
.cart-line-remove:hover { color: var(--danger); background: var(--danger-soft); }
.cart-line-remove svg { width: 16px; height: 16px; }

.cart-clear-form {
    display: inline-flex;
}
.cart-clear-btn {
    background: none; border: none; cursor: pointer;
    color: var(--text-muted);
    font-size: var(--fs-sm);
    padding: var(--sp-2) var(--sp-3);
    border-radius: var(--radius-sm);
    display: inline-flex; align-items: center; gap: var(--sp-1);
    transition: background var(--t-fast), color var(--t-fast);
}
.cart-clear-btn:hover { color: var(--danger); background: var(--danger-soft); }
.cart-clear-btn svg { width: 14px; height: 14px; }

/* Sipariş özeti */
.cart-summary {
    background: var(--surface-1);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: var(--sp-5);
    height: fit-content;
    position: sticky;
    top: 96px;
    display: flex; flex-direction: column; gap: var(--sp-3);
}
.cart-summary h3 {
    margin: 0;
    font-size: var(--fs-xl);
    color: var(--secondary);
    font-weight: var(--fw-bold);
    padding-bottom: var(--sp-3);
    border-bottom: 1px solid var(--border);
}
.summary-row {
    display: flex; justify-content: space-between;
    align-items: center;
    font-size: var(--fs-sm);
}
.summary-row .row-label { color: var(--text-muted); }
.summary-row .row-value { color: var(--text); font-weight: var(--fw-semibold); }
.summary-row.muted .row-value { color: var(--text-muted); font-weight: var(--fw-medium); }
.summary-divider {
    height: 1px;
    background: var(--border);
    border: none;
    margin: 0;
}
.summary-row.total {
    font-size: var(--fs-lg);
    padding-top: var(--sp-2);
}
.summary-row.total .row-label { color: var(--secondary); font-weight: var(--fw-bold); }
.summary-row.total .row-value {
    color: var(--primary);
    font-size: var(--fs-2xl);
    font-weight: var(--fw-black);
    letter-spacing: -0.3px;
}
.summary-coupon {
    display: flex; gap: var(--sp-2);
    padding: var(--sp-3);
    background: var(--surface-2);
    border-radius: var(--radius-sm);
    border: 1px dashed var(--border-strong);
}
.summary-coupon input {
    flex: 1;
    border: 1px solid var(--border);
    background: #fff;
    padding: var(--sp-2) var(--sp-3);
    border-radius: var(--radius-xs);
    font-size: var(--fs-sm);
}
.summary-coupon button {
    background: var(--secondary);
    color: #fff;
    border: none;
    padding: 0 var(--sp-3);
    border-radius: var(--radius-xs);
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);
    cursor: pointer;
}
.summary-coupon button:disabled {
    opacity: 0.5; cursor: not-allowed;
}
.summary-coupon button:hover:not(:disabled) {
    background: var(--secondary-hover, #2b3a6f);
}
.summary-coupon input[readonly] {
    background: #f8f9fb;
    color: var(--text-muted, #6b7280);
    text-transform: uppercase;
    font-weight: 600;
}

/* Uygulanan kampanyalar */
.applied-promos {
    margin: var(--sp-2, 0.5rem) 0;
    padding: var(--sp-3, 0.75rem);
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: var(--radius-sm, 6px);
}
.applied-promos .ap-title {
    display: flex; align-items: center; gap: 0.3rem;
    font-size: 0.78rem; font-weight: 700; color: #15803d;
    text-transform: uppercase; letter-spacing: 0.4px;
    margin-bottom: 0.5rem;
}
.applied-promos ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.35rem; }
.applied-promos li { font-size: 0.85rem; line-height: 1.4; }
.applied-promos .promo-amount { color: #15803d; font-weight: 700; margin-left: 0.4rem; }

/* Kupon kaldir form */
.coupon-remove-form {
    display: flex; justify-content: space-between; align-items: center;
    margin-top: 0.4rem; padding: 0 0.25rem;
}
.link-button-sm {
    background: none; border: none; padding: 0; cursor: pointer;
    color: var(--danger, #dc2626); font-size: 0.78rem; text-decoration: underline;
}
.link-button-sm:hover { color: #991b1b; }
.cart-checkout {
    width: 100%;
    padding: var(--sp-4);
    margin-top: var(--sp-2);
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    font-size: var(--fs-md);
    font-weight: var(--fw-bold);
    cursor: pointer;
    transition: background var(--t-fast), transform var(--t-fast);
    display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
    min-height: 52px;
    text-decoration: none;
    box-sizing: border-box;
}
.cart-checkout:hover:not(:disabled) { background: var(--primary-hover); color: #fff; text-decoration: none; }
.cart-checkout:active:not(:disabled) { transform: scale(0.985); }
.cart-checkout:disabled { background: var(--text-subtle); cursor: not-allowed; opacity: 0.7; }
.cart-checkout svg { width: 18px; height: 18px; }

.cart-secondary-link {
    display: inline-flex; justify-content: center; align-items: center; gap: var(--sp-1);
    text-decoration: none;
    color: var(--text-muted);
    font-size: var(--fs-sm);
    font-weight: var(--fw-medium);
    padding: var(--sp-2);
    border-radius: var(--radius-sm);
}
.cart-secondary-link:hover { color: var(--primary); }
.cart-trust {
    display: flex; flex-direction: column; gap: var(--sp-2);
    padding-top: var(--sp-3);
    border-top: 1px solid var(--border);
    font-size: var(--fs-xs);
    color: var(--text-muted);
}
.cart-trust .trust-row {
    display: inline-flex; align-items: center; gap: var(--sp-2);
}
.cart-trust .trust-row svg {
    width: 14px; height: 14px;
    color: var(--success);
    flex-shrink: 0;
}

@media (max-width: 900px) {
    .cart-layout { grid-template-columns: 1fr; }
    .cart-summary { position: static; }
}
@media (max-width: 700px) {
    .cart-line {
        grid-template-columns: 64px minmax(0, 1fr) auto;
        grid-template-areas:
            "img info remove"
            "qty qty total";
        gap: var(--sp-3) var(--sp-3);
        padding: var(--sp-4) 0;
    }
    .cart-line-image { width: 64px; height: 64px; grid-area: img; }
    .cart-line-info { grid-area: info; }
    .cart-line-remove { grid-area: remove; align-self: start; }
    .cart-line form.cart-line-qty-form { grid-area: qty; }
    .cart-line-total { grid-area: total; align-self: center; }
}

/* ============================================================
   15) AUTH (login)
   ============================================================ */

.auth-wrapper {
    display: flex; justify-content: center;
    padding: var(--sp-10) var(--sp-4);
}
.auth-card {
    background: var(--surface-1);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: var(--sp-8);
    max-width: 460px;
    width: 100%;
}
.auth-card .auth-icon {
    width: 56px; height: 56px;
    margin: 0 auto var(--sp-4);
    background: var(--primary-soft);
    color: var(--primary);
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
}
.auth-card .auth-icon svg { width: 26px; height: 26px; }
.auth-card h1 {
    margin: 0 0 var(--sp-2);
    font-size: var(--fs-2xl);
    color: var(--secondary);
    font-weight: var(--fw-bold);
    text-align: center;
}
.auth-card .auth-sub {
    margin: 0;
    color: var(--text-muted);
    text-align: center;
    font-size: var(--fs-sm);
}
.auth-form {
    display: flex; flex-direction: column;
    gap: var(--sp-4);
    margin-top: var(--sp-6);
}
.auth-form label {
    display: flex; flex-direction: column;
    gap: var(--sp-2);
    font-size: var(--fs-sm);
    color: var(--text);
    font-weight: var(--fw-medium);
}
.auth-form input[type=email],
.auth-form input[type=password] {
    padding: var(--sp-3) var(--sp-4);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-md);
    font-size: var(--fs-md);
    background: var(--surface-1);
    transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.auth-form input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: var(--shadow-focus);
}
.checkbox-row {
    flex-direction: row !important;
    align-items: center;
    gap: var(--sp-2) !important;
    cursor: pointer;
    font-weight: var(--fw-regular) !important;
    font-size: var(--fs-sm);
}
.checkbox-row input { accent-color: var(--primary); }
.btn-primary {
    padding: var(--sp-3) var(--sp-4);
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    font-size: var(--fs-md);
    font-weight: var(--fw-bold);
    cursor: pointer;
    margin-top: var(--sp-2);
    transition: background var(--t-fast), transform var(--t-fast);
    min-height: 48px;
}
.btn-primary:hover { background: var(--primary-hover); }
.btn-primary:active { transform: scale(0.985); background: var(--primary-pressed); }

.alert {
    padding: var(--sp-3) var(--sp-4);
    border-radius: var(--radius-md);
    margin-top: var(--sp-4);
    font-size: var(--fs-sm);
    display: inline-flex; align-items: center; gap: var(--sp-2);
}
.alert svg { width: 16px; height: 16px; flex-shrink: 0; }
.alert-error {
    background: var(--danger-soft);
    color: #991b1b;
    border: 1px solid #fecaca;
}
.alert-info {
    background: var(--info-soft);
    color: #1e3a8a;
    border: 1px solid #bfdbfe;
}

.auth-note {
    margin-top: var(--sp-6);
    padding-top: var(--sp-4);
    border-top: 1px solid var(--border);
    text-align: center;
    font-size: var(--fs-sm);
    color: var(--text-muted);
}

/* ============================================================
   16) FOOTER
   ============================================================ */

.site-footer {
    background: var(--surface-dark);
    color: rgba(255, 255, 255, 0.85);
    margin-top: var(--sp-12);
    padding: var(--sp-12) 0 var(--sp-5);
}
.footer-top {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr) 1.4fr;
    gap: var(--sp-6);
    padding-bottom: var(--sp-8);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-top h4 {
    margin: 0 0 var(--sp-4);
    font-size: var(--fs-md);
    color: #fff;
    font-weight: var(--fw-bold);
    letter-spacing: 0.2px;
}
.footer-top ul {
    list-style: none; padding: 0; margin: 0;
    display: flex; flex-direction: column; gap: var(--sp-2);
}
.footer-top a {
    color: rgba(255,255,255,0.7);
    font-size: var(--fs-sm);
    text-decoration: none;
    transition: color var(--t-fast), padding-left var(--t-fast);
    display: inline-flex; align-items: center; gap: var(--sp-2);
}
.footer-top a:hover { color: var(--primary); padding-left: var(--sp-1); }
.footer-top p {
    color: rgba(255,255,255,0.65);
    font-size: var(--fs-sm);
    margin: var(--sp-3) 0 0;
    line-height: var(--lh-relaxed);
    max-width: 320px;
}
.footer-brand .brand-text { color: #fff; }
.footer-brand .brand-mark { box-shadow: none; }

.footer-social {
    display: flex; gap: var(--sp-2);
    margin-top: var(--sp-3);
}
.footer-social a {
    width: 36px; height: 36px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.85);
    padding: 0;
    transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast);
}
.footer-social a:hover {
    background: var(--primary); color: #fff;
    transform: translateY(-2px);
    padding-left: 0;
}
.footer-social svg { width: 16px; height: 16px; }

.footer-newsletter form {
    display: flex; gap: var(--sp-2); margin-top: var(--sp-3);
}
.footer-newsletter input {
    flex: 1;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    color: #fff;
    padding: var(--sp-2) var(--sp-3);
    border-radius: var(--radius-sm);
    font-size: var(--fs-sm);
    min-width: 0;
}
.footer-newsletter input::placeholder { color: rgba(255,255,255,0.5); }
.footer-newsletter input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255,255,255,0.12);
}
.footer-newsletter button {
    background: var(--primary); color: #fff;
    border: none; cursor: pointer;
    padding: var(--sp-2) var(--sp-3);
    border-radius: var(--radius-sm);
    font-size: var(--fs-sm); font-weight: var(--fw-semibold);
}
.footer-newsletter button:hover { background: var(--primary-hover); }

.footer-payments {
    display: flex; flex-wrap: wrap; gap: var(--sp-2);
    margin-top: var(--sp-3);
}
.footer-payment-chip {
    background: rgba(255,255,255,0.08);
    padding: var(--sp-1) var(--sp-3);
    border-radius: var(--radius-sm);
    font-size: var(--fs-2xs);
    color: rgba(255,255,255,0.7);
    font-weight: var(--fw-semibold);
    letter-spacing: 0.4px;
}

.footer-copy {
    text-align: center;
    padding-top: var(--sp-5);
    color: rgba(255,255,255,0.55);
    font-size: var(--fs-sm);
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--sp-3);
}
.footer-copy span:first-child { letter-spacing: 0.2px; }

@media (max-width: 900px) {
    .footer-top { grid-template-columns: 1fr 1fr; }
    .footer-newsletter, .footer-brand-col { grid-column: 1 / -1; }
}
@media (max-width: 500px) {
    .footer-top { grid-template-columns: 1fr; gap: var(--sp-5); }
    .footer-copy { flex-direction: column; text-align: center; }
}

/* ============================================================
   Storefront Popup (CMS popups: modal | slideout | corner)
   ============================================================ */
.ykt-popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--sp-4);
    animation: yktPopupFade 0.25s ease-out;
}
.ykt-popup-overlay.ykt-popup-modal {
    background: rgba(15, 23, 42, 0.62);
    backdrop-filter: blur(2px);
}
.ykt-popup-overlay.ykt-popup-slideout,
.ykt-popup-overlay.ykt-popup-corner {
    background: transparent;
    pointer-events: none;
    align-items: flex-end;
    justify-content: flex-end;
    padding: var(--sp-5);
}
.ykt-popup-overlay.ykt-popup-slideout .ykt-popup-card,
.ykt-popup-overlay.ykt-popup-corner .ykt-popup-card {
    pointer-events: auto;
    max-width: 360px;
    animation: yktPopupSlide 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes yktPopupFade {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes yktPopupSlide {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.ykt-popup-card {
    position: relative;
    background: #fff;
    border-radius: var(--radius-lg, 14px);
    box-shadow: 0 20px 60px -10px rgba(15, 23, 42, 0.35), 0 8px 20px -8px rgba(15, 23, 42, 0.2);
    width: 100%;
    max-width: 520px;
    max-height: calc(100vh - 2 * var(--sp-4));
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: yktPopupPop 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes yktPopupPop {
    from { opacity: 0; transform: scale(0.94); }
    to { opacity: 1; transform: scale(1); }
}

.ykt-popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(15, 23, 42, 0.08);
    color: #475569;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, color 0.15s, transform 0.15s;
    z-index: 2;
}
.ykt-popup-close:hover {
    background: #fff;
    color: #0f172a;
    transform: scale(1.08);
}

.ykt-popup-image {
    width: 100%;
    background: #f1f5f9;
    overflow: hidden;
    max-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ykt-popup-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ykt-popup-body {
    padding: var(--sp-5, 20px);
    display: flex;
    flex-direction: column;
    gap: var(--sp-3, 12px);
    overflow-y: auto;
}
.ykt-popup-body h3 {
    margin: 0;
    font-size: var(--fs-xl, 1.25rem);
    font-weight: var(--fw-bold, 700);
    color: #0f172a;
    line-height: 1.3;
}
.ykt-popup-body h3:empty { display: none; }
.ykt-popup-content {
    color: #475569;
    font-size: var(--fs-sm, 0.92rem);
    line-height: 1.55;
}
.ykt-popup-content :first-child { margin-top: 0; }
.ykt-popup-content :last-child { margin-bottom: 0; }

.ykt-popup-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary, #f97316);
    color: #fff;
    font-weight: var(--fw-semibold, 600);
    padding: 0.7rem 1.2rem;
    border-radius: var(--radius-sm, 8px);
    text-decoration: none;
    transition: background 0.15s, transform 0.15s;
    align-self: flex-start;
    margin-top: var(--sp-2, 8px);
}
.ykt-popup-cta:hover {
    background: var(--color-primary-hover, #ea580c);
    transform: translateY(-1px);
}

@media (max-width: 600px) {
    .ykt-popup-card { max-width: 100%; }
    .ykt-popup-image { max-height: 200px; }
    .ykt-popup-overlay.ykt-popup-slideout,
    .ykt-popup-overlay.ykt-popup-corner {
        padding: var(--sp-3);
    }
    .ykt-popup-overlay.ykt-popup-slideout .ykt-popup-card,
    .ykt-popup-overlay.ykt-popup-corner .ykt-popup-card {
        max-width: 100%;
    }
}

/* Newsletter footer mesaj */
.newsletter-msg {
    margin-top: var(--sp-2);
    font-size: var(--fs-sm);
    min-height: 1.2em;
    transition: opacity 0.2s;
}
.newsletter-msg-ok { color: #86efac; }
.newsletter-msg-err { color: #fca5a5; }
.footer-newsletter button:disabled { opacity: 0.6; cursor: wait; }

/* Min order warning banner (sepet ozeti icinde) */
.min-order-warning {
    background: #fef3c7;
    border: 1px solid #fde68a;
    border-radius: 6px;
    padding: 0.7rem 0.8rem;
    margin-bottom: 0.6rem;
    color: #92400e;
    font-size: 0.88rem;
}
.min-order-warning .small { color: #b45309; font-size: 0.78rem; margin-top: 0.2rem; }

/* ============================================================
   Banner Slots — Admin Bannerlar > Konum: home_top / home_middle / category_top
   ============================================================ */
.banner-slot {
    margin: var(--sp-4, 16px) 0;
    display: grid;
    gap: var(--sp-3, 12px);
}
/* Slot iki banner olursa 2 sütun, 3+ olursa 3 sütun */
.banner-slot:has(.banner-item:nth-child(2):last-child) { grid-template-columns: 1fr 1fr; }
.banner-slot:has(.banner-item:nth-child(3)) { grid-template-columns: repeat(3, 1fr); }

.banner-item {
    display: block;
    border-radius: var(--radius-md, 10px);
    overflow: hidden;
    background: #f1f5f9;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
}
.banner-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px -8px rgba(15, 23, 42, 0.18);
}
.banner-item img, .banner-item picture {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

@media (max-width: 700px) {
    .banner-slot,
    .banner-slot:has(.banner-item:nth-child(2):last-child),
    .banner-slot:has(.banner-item:nth-child(3)) { grid-template-columns: 1fr; }
}
