/* ============================================================
   E-Ticaret — Modern Design System
   Vanilla CSS, mobile-first, dark-mode aware
   ============================================================ */

/* -- 1. RESET ------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { line-height: 1.5; font-family: var(--font-body); color: var(--text); background: var(--bg); min-height: 100vh; -webkit-font-smoothing: antialiased; }
img, picture, video, svg { display: block; max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
hr { border: 0; border-top: 1px solid var(--border); }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 4px; }

/* -- 2. DESIGN TOKENS ---------------------------------------- */
:root {
    /* Color — light theme */
    --bg:               #ffffff;
    --surface:          #f8fafc;
    --surface-2:        #f1f5f9;
    --surface-elev:     #ffffff;
    --text:             #0f172a;
    --text-muted:       #64748b;
    --text-subtle:      #94a3b8;
    --border:           #e2e8f0;
    --border-strong:    #cbd5e1;

    --primary:          #0d9488;
    --primary-hover:    #0f766e;
    --primary-soft:     #ccfbf1;
    --primary-tint:     rgba(13, 148, 136, 0.08);

    --accent:           #f97316;
    --accent-hover:     #ea580c;
    --accent-soft:      #ffedd5;

    --success:          #16a34a;
    --success-soft:     #dcfce7;
    --danger:           #dc2626;
    --danger-soft:      #fee2e2;
    --warning:          #d97706;
    --warning-soft:     #fef3c7;

    /* Typography */
    --font-body:        -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    --font-heading:     'Inter', var(--font-body);
    --font-mono:        'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

    --text-xs:          0.75rem;     /* 12 */
    --text-sm:          0.875rem;    /* 14 */
    --text-base:        1rem;        /* 16 */
    --text-md:          1.125rem;    /* 18 */
    --text-lg:          1.25rem;     /* 20 */
    --text-xl:          1.5rem;      /* 24 */
    --text-2xl:         1.875rem;    /* 30 */
    --text-3xl:         2.25rem;     /* 36 */
    --text-4xl:         3rem;        /* 48 */

    /* Spacing */
    --s-1:  0.25rem;  --s-2:  0.5rem;  --s-3:  0.75rem;  --s-4:  1rem;
    --s-5:  1.25rem;  --s-6:  1.5rem;  --s-8:  2rem;     --s-10: 2.5rem;
    --s-12: 3rem;     --s-16: 4rem;    --s-20: 5rem;     --s-24: 6rem;

    /* Radius */
    --r-sm: 6px;
    --r:    10px;
    --r-md: 12px;
    --r-lg: 16px;
    --r-xl: 24px;
    --r-full: 9999px;

    /* Shadow */
    --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-sm: 0 2px 4px rgba(15, 23, 42, 0.06);
    --shadow:    0 4px 12px rgba(15, 23, 42, 0.08);
    --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.10);
    --shadow-lg: 0 16px 40px rgba(15, 23, 42, 0.14);

    /* Motion */
    --ease:        cubic-bezier(0.4, 0, 0.2, 1);
    --ease-out:    cubic-bezier(0, 0, 0.2, 1);
    --t-fast:      120ms;
    --t-base:      200ms;
    --t-slow:      400ms;

    /* Layout */
    --container:   1280px;
    --container-narrow: 960px;
    --header-h:    72px;
    --topbar-h:    36px;

    /* Blok container — Bootstrap-style responsive max-width.
       Mobile-first: full width below 576px, sınırlı genişlik üstünde.
       Breakpoints: sm 576 / md 768 / lg 992 / xl 1200 / xxl 1400.
       Tüm blok wrap class'ları (.X-wrap) bu değişkeni kullanır → tek noktadan kontrol. */
    --blok-container-max:     100%;
    --blok-container-padding: 16px;
}

@media (min-width: 576px)  { :root { --blok-container-max: 540px;  } }
@media (min-width: 768px)  { :root { --blok-container-max: 720px;  } }
@media (min-width: 992px)  { :root { --blok-container-max: 960px;  } }
@media (min-width: 1200px) { :root { --blok-container-max: 1140px; } }
@media (min-width: 1400px) { :root { --blok-container-max: 1320px; } }

[data-theme="dark"] {
    --bg:               #0a0a0f;
    --surface:          #11131a;
    --surface-2:        #161922;
    --surface-elev:     #1a1d27;
    --text:             #e4e7ef;
    --text-muted:       #94a3b8;
    --text-subtle:      #64748b;
    --border:           #232734;
    --border-strong:    #2d3243;

    --primary-soft:     rgba(13, 148, 136, 0.16);
    --primary-tint:     rgba(13, 148, 136, 0.12);
    --accent-soft:      rgba(249, 115, 22, 0.16);
    --success-soft:     rgba(22, 163, 74, 0.16);
    --danger-soft:      rgba(220, 38, 38, 0.16);
    --warning-soft:     rgba(217, 119, 6, 0.16);

    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.5);
    --shadow:    0 4px 12px rgba(0, 0, 0, 0.6);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.7);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.8);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg:               #0a0a0f;
        --surface:          #11131a;
        --surface-2:        #161922;
        --surface-elev:     #1a1d27;
        --text:             #e4e7ef;
        --text-muted:       #94a3b8;
        --text-subtle:      #64748b;
        --border:           #232734;
        --border-strong:    #2d3243;
        --primary-soft:     rgba(13, 148, 136, 0.16);
        --accent-soft:      rgba(249, 115, 22, 0.16);
    }
}

/* -- 3. TYPOGRAPHY ------------------------------------------- */
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; color: var(--text); }
h1 { font-size: var(--text-3xl); }
h2 { font-size: var(--text-2xl); }
h3 { font-size: var(--text-xl); }
h4 { font-size: var(--text-lg); }
h5 { font-size: var(--text-md); }
h6 { font-size: var(--text-base); }

p { margin: 0; }
small { font-size: var(--text-sm); color: var(--text-muted); }
a { transition: color var(--t-fast) var(--ease); }
a:hover { color: var(--primary); }

/* -- 4. LAYOUT ----------------------------------------------- */
.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--s-4); width: 100%; }
.container-narrow { max-width: var(--container-narrow); margin-inline: auto; padding-inline: var(--s-4); }
@media (min-width: 768px) { .container, .container-narrow { padding-inline: var(--s-6); } }

.page-wrapper { display: flex; flex-direction: column; min-height: 100vh; }
.main { flex: 1 0 auto; }

.section { padding-block: var(--s-12); }
.section-sm { padding-block: var(--s-8); }
.section-lg { padding-block: var(--s-16); }
.section-title { font-size: var(--text-2xl); margin-bottom: var(--s-2); }
.section-sub { color: var(--text-muted); margin-bottom: var(--s-8); }

/* Grids */
.grid { display: grid; gap: var(--s-4); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

@media (max-width: 1023px) {
    .grid-4, .grid-5 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 767px) {
    .grid-3, .grid-4, .grid-5 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-1 { gap: var(--s-1); } .gap-2 { gap: var(--s-2); } .gap-3 { gap: var(--s-3); }
.gap-4 { gap: var(--s-4); } .gap-6 { gap: var(--s-6); } .gap-8 { gap: var(--s-8); }

.hidden { display: none !important; }
.visually-hidden, .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; }
@media (max-width: 767px) { .hide-mobile { display: none !important; } }
@media (min-width: 768px) { .hide-desktop { display: none !important; } }

/* -- 5. BUTTONS ---------------------------------------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
    padding: var(--s-3) var(--s-5);
    font-size: var(--text-sm); font-weight: 600; line-height: 1;
    border-radius: var(--r); border: 1px solid transparent; cursor: pointer;
    transition: all var(--t-base) var(--ease); user-select: none;
    white-space: nowrap;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-sm { padding: var(--s-2) var(--s-3); font-size: var(--text-xs); }
.btn-lg { padding: var(--s-4) var(--s-8); font-size: var(--text-base); }
.btn-block { width: 100%; }
.btn-icon { padding: var(--s-2); aspect-ratio: 1; }

.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--primary-hover); color: #fff; box-shadow: var(--shadow); transform: translateY(-1px); }

.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover:not(:disabled) { background: var(--accent-hover); color: #fff; box-shadow: var(--shadow); transform: translateY(-1px); }

.btn-outline { background: var(--bg); color: var(--text); border-color: var(--border-strong); }
.btn-outline:hover:not(:disabled) { background: var(--surface); border-color: var(--primary); color: var(--primary); }

.btn-ghost { background: transparent; color: var(--text-muted); }
.btn-ghost:hover:not(:disabled) { background: var(--surface); color: var(--text); }

.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover:not(:disabled) { background: #b91c1c; color: #fff; }

/* -- 6. FORMS ------------------------------------------------ */
.form-group { display: flex; flex-direction: column; gap: var(--s-2); margin-bottom: var(--s-4); }
.form-label { font-size: var(--text-sm); font-weight: 500; color: var(--text); }
.form-control, .input, input[type="text"], input[type="email"], input[type="password"], input[type="tel"], input[type="number"], input[type="search"], select, textarea {
    width: 100%;
    padding: var(--s-3) var(--s-4);
    font-size: var(--text-sm);
    color: var(--text);
    background: var(--bg);
    border: 1px solid var(--border-strong);
    border-radius: var(--r);
    transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.form-control:focus, .input:focus, input:focus, select:focus, textarea:focus {
    outline: 0;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-tint);
}
.form-help { font-size: var(--text-xs); color: var(--text-muted); }
.form-error { font-size: var(--text-xs); color: var(--danger); }
textarea { min-height: 100px; resize: vertical; }

.input-group { position: relative; }
.input-group .input-icon {
    position: absolute; left: var(--s-3); top: 50%; transform: translateY(-50%);
    color: var(--text-subtle); pointer-events: none;
}
.input-group input { padding-left: calc(var(--s-3) + var(--s-6)); }

/* -- 7. CARDS ------------------------------------------------ */
.card {
    background: var(--surface-elev);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: var(--s-6);
    transition: border-color var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease), transform var(--t-base) var(--ease);
}
.card-hover:hover { border-color: var(--border-strong); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card-flat { padding: 0; }

/* -- 8. BADGES ----------------------------------------------- */
.badge {
    display: inline-flex; align-items: center; gap: var(--s-1);
    padding: var(--s-1) var(--s-2);
    font-size: var(--text-xs); font-weight: 600; line-height: 1;
    border-radius: var(--r-sm);
    background: var(--surface-2); color: var(--text-muted);
}
.badge-primary { background: var(--primary-soft); color: var(--primary); }
.badge-accent { background: var(--accent-soft); color: var(--accent); }
.badge-success { background: var(--success-soft); color: var(--success); }
.badge-danger { background: var(--danger-soft); color: var(--danger); }
.badge-warning { background: var(--warning-soft); color: var(--warning); }

/* -- 9. HEADER ----------------------------------------------- */
.site-topbar {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    color: var(--text-muted);
    font-size: var(--text-xs);
    height: var(--topbar-h);
    display: flex; align-items: center;
}
.site-topbar .container { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); }
.site-topbar a:hover { color: var(--primary); }
.site-topbar .topbar-links { display: flex; gap: var(--s-4); align-items: center; }

@media (max-width: 767px) { .site-topbar { display: none; } }

.site-header {
    position: sticky; top: 0; z-index: 50;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
}
.site-header .container { display: flex; align-items: center; gap: var(--s-6); height: var(--header-h); }
.site-header .brand { display: inline-flex; align-items: center; gap: var(--s-2); font-weight: 800; font-size: var(--text-lg); color: var(--text); }
.site-header .brand img { max-height: 40px; width: auto; }

.search-form { flex: 1; max-width: 600px; position: relative; }
.search-form input {
    width: 100%; height: 44px; padding-left: var(--s-10); padding-right: var(--s-10);
    border-radius: var(--r-full);
    background: var(--surface);
    border-color: var(--border);
}
.search-form .search-icon {
    position: absolute; left: var(--s-4); top: 50%; transform: translateY(-50%);
    color: var(--text-subtle);
}
.search-form button[type="submit"] {
    position: absolute; right: var(--s-1); top: 50%; transform: translateY(-50%);
    height: 36px; padding-inline: var(--s-4);
    background: var(--primary); color: #fff;
    border-radius: var(--r-full);
    font-size: var(--text-xs); font-weight: 600;
}
.search-form button[type="submit"]:hover { background: var(--primary-hover); }

.header-actions { display: flex; align-items: center; gap: var(--s-2); margin-left: auto; }
.header-action {
    position: relative;
    display: inline-flex; align-items: center; gap: var(--s-2);
    padding: var(--s-2) var(--s-3);
    color: var(--text-muted);
    border-radius: var(--r);
    transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.header-action:hover { background: var(--surface); color: var(--text); }
.header-action .action-label { font-size: var(--text-sm); font-weight: 500; }
@media (max-width: 991px) { .header-action .action-label { display: none; } }
.header-action .badge-count {
    position: absolute; top: 0; right: 0;
    min-width: 18px; height: 18px; padding: 0 5px;
    background: var(--accent); color: #fff;
    font-size: 10px; font-weight: 700;
    border-radius: var(--r-full);
    display: flex; align-items: center; justify-content: center;
}

.site-nav {
    border-top: 1px solid var(--border);
    background: var(--bg);
}
.site-nav .container { display: flex; align-items: center; gap: var(--s-2); min-height: 52px; flex-wrap: wrap; }
.nav-link {
    display: inline-flex; align-items: center; gap: var(--s-1);
    padding: var(--s-2) var(--s-3);
    font-size: var(--text-sm); font-weight: 500; color: var(--text-muted);
    border-radius: var(--r);
    white-space: nowrap;
    transition: all var(--t-fast) var(--ease);
}
.nav-link:hover, .nav-link.active { background: var(--primary-tint); color: var(--primary); }

@media (max-width: 767px) {
    .site-header .container { gap: var(--s-3); }
    .search-form { display: none; }
    .search-form.mobile-open { display: block; position: absolute; top: var(--header-h); left: 0; right: 0; background: var(--bg); padding: var(--s-3); border-bottom: 1px solid var(--border); z-index: 49; }
}

/* Topbar dropdowns */
.tb-dropdown { position: relative; }
.tb-dd-toggle { display: inline-flex; align-items: center; gap: var(--s-1); padding: var(--s-1); color: var(--text-muted); font-size: var(--text-xs); }
.tb-dd-toggle:hover { color: var(--primary); }
.tb-dd-menu { position: absolute; top: 100%; right: 0; min-width: 160px; background: var(--surface-elev); border: 1px solid var(--border); border-radius: var(--r); box-shadow: var(--shadow-md); padding: var(--s-1); display: none; z-index: 60; }
.tb-dropdown:hover .tb-dd-menu { display: block; }
.tb-dd-menu a { display: block; padding: var(--s-2) var(--s-3); font-size: var(--text-sm); color: var(--text); border-radius: var(--r-sm); }
.tb-dd-menu a:hover { background: var(--surface); color: var(--primary); }

/* Search with category select */
.search-form { display: flex; align-items: center; gap: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-full); padding: 4px; }
.search-form .search-cat { width: auto; min-width: 140px; max-width: 180px; border: 0; background: transparent; padding: 0 var(--s-3); height: 36px; font-size: var(--text-sm); border-right: 1px solid var(--border); border-radius: 0; }
.search-form .search-cat:focus { box-shadow: none; }
.search-form .search-icon { position: static; transform: none; margin: 0 var(--s-2); }
.search-form input[type="search"] { flex: 1; border: 0; background: transparent; padding: 0; height: 36px; }
.search-form input[type="search"]:focus { box-shadow: none; }
.search-form button[type="submit"] { position: static; transform: none; height: 36px; padding: 0 var(--s-5); border-radius: var(--r-full); flex-shrink: 0; background: var(--primary); color: #fff; font-size: var(--text-sm); font-weight: 600; }

/* Cart dropdown */
.cart-dropdown { position: relative; }
.cart-toggle .action-label { line-height: 1.2; }
.cart-dd-panel {
    position: absolute; top: calc(100% + 8px); right: 0;
    width: 360px; background: var(--surface-elev);
    border: 1px solid var(--border); border-radius: var(--r-lg);
    box-shadow: var(--shadow-lg); padding: 0;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: all var(--t-base) var(--ease);
    z-index: 60;
}
.cart-dropdown:hover .cart-dd-panel { opacity: 1; visibility: visible; transform: translateY(0); }
.cart-dd-header { padding: var(--s-3) var(--s-4); border-bottom: 1px solid var(--border); }
.cart-dd-items { max-height: 320px; overflow-y: auto; padding: var(--s-2); }
.cart-dd-item { display: flex; gap: var(--s-3); padding: var(--s-2); border-radius: var(--r-sm); transition: background var(--t-fast) var(--ease); }
.cart-dd-item:hover { background: var(--surface); }
.cart-dd-img { flex-shrink: 0; width: 56px; height: 56px; border-radius: var(--r); overflow: hidden; background: var(--surface-2); }
.cart-dd-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-dd-info { flex: 1; min-width: 0; }
.cart-dd-name { display: block; font-size: var(--text-sm); font-weight: 500; color: var(--text); margin-bottom: 4px; line-height: 1.4; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.cart-dd-meta { display: flex; justify-content: space-between; align-items: center; font-size: var(--text-xs); color: var(--text-muted); }
.cart-dd-remove { width: 22px; height: 22px; border-radius: var(--r-full); background: var(--surface); color: var(--text-muted); display: flex; align-items: center; justify-content: center; font-size: 16px; line-height: 1; }
.cart-dd-remove:hover { background: var(--danger); color: #fff; }
.cart-dd-footer { padding: var(--s-3) var(--s-4); border-top: 1px solid var(--border); }

/* Nav with dropdowns */
.site-nav .container { gap: var(--s-1); }
.nav-all {
    display: inline-flex; align-items: center; gap: var(--s-2);
    padding: 0 var(--s-4);
    background: var(--primary); color: #fff !important;
    font-size: var(--text-sm); font-weight: 700;
    border-radius: var(--r); white-space: nowrap;
    transition: background var(--t-fast) var(--ease);
    align-self: stretch;
    margin: 8px 0;
}
.nav-all:hover { background: var(--primary-hover); }
.nav-item { position: relative; align-self: stretch; display: flex; align-items: stretch; }
.nav-item > .nav-link { align-self: stretch; display: inline-flex; align-items: center; }
.nav-dropdown {
    position: absolute; top: 100%; left: 0;
    min-width: 220px;
    background: var(--surface-elev);
    border: 1px solid var(--border); border-radius: var(--r-lg);
    box-shadow: var(--shadow-md); padding: var(--s-2);
    opacity: 0; visibility: hidden; transform: translateY(-4px);
    transition: all var(--t-fast) var(--ease);
    z-index: 50;
}
.nav-item:hover .nav-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-dropdown a {
    display: block; padding: var(--s-2) var(--s-3);
    font-size: var(--text-sm); color: var(--text);
    border-radius: var(--r-sm);
    transition: all var(--t-fast) var(--ease);
}
.nav-dropdown a:hover { background: var(--primary-tint); color: var(--primary); padding-left: calc(var(--s-3) + 4px); }

@media (max-width: 991px) {
    .nav-all { padding: 0 var(--s-3); }
    .nav-dropdown { display: none !important; }
}

/* -- 10. FOOTER ---------------------------------------------- */
.site-footer {
    margin-top: var(--s-16);
    background: var(--surface);
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    padding-top: var(--s-12);
    padding-bottom: var(--s-6);
}
.site-footer h5 {
    font-size: var(--text-sm); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
    color: var(--text); margin-bottom: var(--s-4);
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--s-8); margin-bottom: var(--s-10); }
@media (max-width: 991px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-links { display: flex; flex-direction: column; gap: var(--s-2); }
.footer-links a { color: var(--text-muted); font-size: var(--text-sm); transition: color var(--t-fast) var(--ease); }
.footer-links a:hover { color: var(--primary); }

.footer-social { display: flex; gap: var(--s-2); margin-top: var(--s-4); }
.footer-social a {
    display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px;
    background: var(--surface-elev); border: 1px solid var(--border);
    border-radius: var(--r); color: var(--text-muted);
    transition: all var(--t-fast) var(--ease);
}
.footer-social a:hover { background: var(--primary); color: #fff; border-color: var(--primary); transform: translateY(-2px); }

.footer-newsletter { margin-top: var(--s-4); }
.footer-newsletter form { display: flex; gap: var(--s-2); margin-top: var(--s-2); }
.footer-newsletter input { flex: 1; }

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: var(--s-4);
    display: flex; justify-content: space-between; align-items: center; gap: var(--s-4); flex-wrap: wrap;
    font-size: var(--text-xs); color: var(--text-subtle);
}

/* -- 11. PRODUCT CARD (Modern: Walex/Karaca/Sonoff DNA) ------- */
.product-card {
    background: var(--kart-bg, var(--surface-elev, #fff));
    border-radius: 12px;
    overflow: hidden;
    display: flex; flex-direction: column;
    position: relative;
    transition: transform .25s ease, box-shadow .25s ease;
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px -8px color-mix(in srgb, var(--tema-text, #0f172a) 18%, transparent);
}

/* Media area */
.product-card .pc-media {
    position: relative;
    background: color-mix(in srgb, var(--tema-text, #0f172a) 3%, var(--tema-bg, #fff));
    overflow: hidden;
}
.product-card .pc-image {
    position: relative; display: block; aspect-ratio: 1/1; overflow: hidden;
}
/* Hover-galeri slot sistemi (max 3): slot[0]=ana, slot[1..2]=hover alternatif */
.product-card .pc-img-slot {
    position: absolute; inset: 0;
    width: 100%; height: 100%; object-fit: contain;
    opacity: 0;
    transition: opacity .35s ease, transform .5s ease;
    pointer-events: none;
}
.product-card .pc-img-slot.is-active { opacity: 1; }

/* Tek görsel: hover'da sadece hafif zoom — başka resim yok */
.product-card[data-slot-count="1"]:hover .pc-img-slot.is-active { transform: scale(1.04); }

/* 2 görsel: hover'da slot 0 → 1 cross-fade (CSS-only) */
.product-card[data-slot-count="2"]:hover .pc-img-slot[data-slot="0"] { opacity: 0; }
.product-card[data-slot-count="2"]:hover .pc-img-slot[data-slot="1"] { opacity: 1; }

/* 3 görsel: JS mouse-tracking ile is-hover-active class atanır.
   JS olmadığında fallback — hover'da slot 1 görünür. */
.product-card[data-slot-count="3"] .pc-img-slot.is-hover-active { opacity: 1; }
.product-card[data-slot-count="3"]:hover .pc-img-slot[data-slot="0"]:not(.is-hover-active) { opacity: 0; }
.product-card[data-slot-count="3"]:hover .pc-img-slot[data-slot="1"]:not(.is-hover-active):not([data-overridden]) { opacity: 1; }

/* Slot dot indicator (sadece 3 görsel) */
.pc-slot-dots {
    position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%);
    display: flex; gap: 4px; z-index: 4;
    opacity: 0; transition: opacity .25s ease;
    pointer-events: none;
}
.product-card:hover .pc-slot-dots { opacity: 1; }
.pc-slot-dot {
    width: 16px; height: 3px; border-radius: 2px;
    background: color-mix(in srgb, #fff 60%, transparent);
    box-shadow: 0 0 4px rgba(0,0,0,.3);
    transition: background .2s ease, transform .2s ease;
}
.pc-slot-dot.is-active { background: #fff; transform: scaleY(1.4); }
.product-card .pc-img-empty {
    display: flex; align-items: center; justify-content: center;
    height: 100%; color: var(--tema-muted, #94a3b8);
}

/* Modern placeholder — gradient arkaplan + büyük baş harf + marka watermark */
.product-card .pc-img-empty-modern {
    position: absolute; inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background:
        radial-gradient(circle at 30% 25%, color-mix(in srgb, var(--tema-primary, #0d9488) 16%, transparent) 0%, transparent 60%),
        radial-gradient(circle at 75% 80%, color-mix(in srgb, var(--tema-primary, #0d9488) 10%, transparent) 0%, transparent 55%),
        linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    color: var(--tema-primary, #0d9488);
    overflow: hidden;
}
.product-card .pc-img-empty-modern::before {
    content: '';
    position: absolute;
    top: -40%; left: -10%;
    width: 60%; height: 60%;
    border-radius: 50%;
    background: radial-gradient(circle, color-mix(in srgb, var(--tema-primary, #0d9488) 8%, transparent) 0%, transparent 70%);
    pointer-events: none;
}
.product-card .pc-img-empty__initial {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: clamp(34px, 5vw, 56px);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1;
    color: var(--tema-primary, #0d9488);
    text-shadow: 0 2px 12px color-mix(in srgb, var(--tema-primary, #0d9488) 20%, transparent);
    position: relative;
    z-index: 1;
}
.product-card .pc-img-empty__brand {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: color-mix(in srgb, var(--tema-primary, #0d9488) 70%, transparent);
    padding: 3px 10px;
    border: 1px solid color-mix(in srgb, var(--tema-primary, #0d9488) 25%, transparent);
    border-radius: 999px;
    background: rgba(255,255,255,0.7);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    position: relative;
    z-index: 1;
    max-width: 80%;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

/* ════════════════════════════════════════════════════════════════════════════
   GENERIC HOVER-GALERI (blok inline ürün vitrinleri için, class-agnostic)
   Her varyantın <a class="X-media" data-slot-count="N"> wrapper'ına basılır.
   `.pc-slot` ve `.pc-slot-dots` markup'ı blok_product_media_slots() helper'ından.
   ════════════════════════════════════════════════════════════════════════════ */
[data-slot-count] {
    position: relative;
    box-sizing: border-box;
}
[class^="blok-"] [data-slot-count] {
    border: 1px solid var(--urun-media-border);
    border-radius: 10px;
    overflow: hidden;
}
[data-slot-count] .pc-slot {
    position: absolute; inset: 0;
    width: 100%; height: 100%; object-fit: contain;
    padding: 12px;
    box-sizing: border-box;
    opacity: 0;
    transition: opacity .35s ease, transform .5s ease;
    pointer-events: none;
}
[data-slot-count] .pc-slot.is-active { opacity: 1; }

/* Tek görsel: sadece zoom (varyantın kendi .X-media img:hover transform'u da çalışabilir) */
[data-slot-count="1"]:hover .pc-slot.is-active { transform: scale(1.04); }

/* 2 görsel: crossfade */
[data-slot-count="2"]:hover .pc-slot[data-slot="0"] { opacity: 0; }
[data-slot-count="2"]:hover .pc-slot[data-slot="1"] { opacity: 1; }

/* 3 görsel: JS mouse-X tracking — is-hover-active class JS tarafından atanır */
[data-slot-count="3"] .pc-slot.is-hover-active { opacity: 1; }
[data-slot-count="3"]:hover .pc-slot[data-slot="0"]:not(.is-hover-active) { opacity: 0; }
[data-slot-count="3"]:hover .pc-slot[data-slot="1"]:not(.is-hover-active):not([data-overridden]) { opacity: 1; }

/* Empty fallback */
[data-slot-count] .pc-slot-empty {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    color: var(--tema-muted, #94a3b8);
}

/* Dot indicator — sadece 3+ resim */
[data-slot-count] .pc-slot-dots {
    position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%);
    display: flex; gap: 4px; z-index: 4;
    opacity: 0; transition: opacity .25s ease;
    pointer-events: none;
}
[data-slot-count]:hover .pc-slot-dots { opacity: 1; }
[data-slot-count] .pc-slot-dot {
    width: 16px; height: 3px; border-radius: 2px;
    background: color-mix(in srgb, #fff 70%, transparent);
    box-shadow: 0 0 4px rgba(0,0,0,.35);
    transition: background .2s ease, transform .2s ease;
}
[data-slot-count] .pc-slot-dot.is-active { background: #fff; transform: scaleY(1.4); }

/* Tükendi overlay */
.product-card .pc-tukendi-overlay {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    background: color-mix(in srgb, var(--tema-text, #0f172a) 80%, transparent);
    color: #fff; padding: 6px 16px; border-radius: 4px;
    font-family: var(--font-body); font-size: 13px; font-weight: 700;
    letter-spacing: .05em; z-index: 4;
}

/* Dikey kapsül etiket istifi (sol üst, Walex stili) */
.product-card .pc-badges {
    position: absolute; top: 12px; left: 12px; z-index: 3;
    display: flex; flex-direction: column; gap: 4px;
    pointer-events: none;
}
.product-card .pc-badge {
    display: inline-block;
    padding: 4px 10px; border-radius: 99px;
    font-family: var(--font-body, 'Inter');
    font-size: 10px; font-weight: 800; letter-spacing: .04em;
    color: #fff; line-height: 1.4;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(0,0,0,.08);
}
.product-card .pc-badge-yeni      { background: #d4a017; }     /* sarı-kahve */
.product-card .pc-badge-kampanya  { background: #dc2626; }     /* kırmızı */
.product-card .pc-badge-indirim   { background: var(--indirim-bg, #dc2626); color: var(--indirim-text, #fff); }
.product-card .pc-badge-kargo     { background: var(--tema-primary, #0d9488); color: var(--tema-primary-text, #fff); }

/* Sağ üst hover daire ikonlar */
.product-card .pc-actions {
    position: absolute; top: 12px; right: 12px; z-index: 3;
    display: flex; flex-direction: column; gap: 6px;
    opacity: 0; transform: translateX(8px);
    transition: opacity .2s, transform .2s;
}
.product-card:hover .pc-actions { opacity: 1; transform: translateX(0); }
.product-card .pc-action {
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--kart-bg, #fff); color: var(--tema-text, #0f172a);
    border: 1px solid var(--kart-border, #e2e8f0); cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,.08);
    transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.product-card .pc-action:hover {
    background: var(--tema-primary, #0d9488); color: var(--tema-primary-text, #fff);
    border-color: var(--tema-primary, #0d9488); transform: scale(1.08);
}

/* Body */
.product-card .pc-body {
    padding: 14px 14px 16px;
    display: flex; flex-direction: column; gap: 6px;
    text-align: center;
    flex: 1;
}
.product-card .pc-marka {
    font-family: var(--font-body, 'Inter');
    font-size: 11px; font-weight: 600;
    color: var(--tema-muted, #94a3b8);
    text-transform: uppercase; letter-spacing: .1em;
}
.product-card .pc-title {
    margin: 0;
    font-family: var(--font-heading, 'Inter');
    font-size: var(--text-body, 15px);
    font-weight: 500;
    color: var(--blok-title-color, var(--tema-text));
    line-height: 1.4;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.8em;
}
.product-card .pc-title a {
    color: inherit; text-decoration: none;
    transition: color .15s;
}
.product-card .pc-title a:hover { color: var(--tema-primary, #0d9488); }

/* Rating */
.product-card .pc-rating {
    display: flex; align-items: center; justify-content: center;
    gap: 4px; font-family: var(--font-body);
    font-size: var(--text-small, 13px);
    color: var(--tema-muted, #64748b);
}
.product-card .pc-stars { display: inline-flex; gap: 1px; color: var(--tema-border, #e2e8f0); font-size: 14px; line-height: 1; }
.product-card .pc-star.is-on,
.product-card .pc-star.is-half { color: var(--rating-color, #f0ad00); }
.product-card .pc-star.is-half { position: relative; }
.product-card .pc-rcount { font-size: 12px; color: var(--tema-muted, #94a3b8); }

/* Fiyat */
.product-card .pc-price {
    display: flex; align-items: baseline; justify-content: center;
    gap: 8px; flex-wrap: wrap;
    margin-top: 2px;
}
.product-card .pc-price-now {
    font-family: var(--font-heading, 'Inter');
    font-size: var(--text-h4, 17px);
    font-weight: 800;
    color: var(--fiyat-color, #dc2626);
}
.product-card .pc-price-old {
    font-family: var(--font-body);
    font-size: var(--text-small, 13px);
    color: var(--fiyat-eski-color, #94a3b8);
    text-decoration: line-through;
}
.product-card .pc-kdv {
    flex-basis: 100%; text-align: center;
    font-family: var(--font-body);
    font-size: 10px; color: var(--tema-muted, #94a3b8);
    margin-top: -2px;
}

/* Sepete Ekle */
.product-card .pc-buy {
    margin-top: auto;
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 9px 14px;
    background: transparent;
    color: var(--tema-primary, #0d9488);
    border: 1.5px solid var(--tema-primary, #0d9488);
    border-radius: 8px;
    font-family: var(--font-body, 'Inter');
    font-size: var(--text-small, 13px); font-weight: 700;
    cursor: pointer;
    transition: background .15s, color .15s, transform .15s;
}
.product-card .pc-buy:hover {
    background: var(--tema-primary, #0d9488);
    color: var(--tema-primary-text, #fff);
}
.product-card .pc-buy:active:not(:disabled) { transform: scale(.97); }
.product-card .pc-buy-disabled,
.product-card .pc-buy:disabled {
    background: var(--btn-secondary-bg, #f1f5f9);
    color: var(--tema-muted, #94a3b8);
    border-color: var(--tema-border, #e2e8f0);
    cursor: not-allowed;
}

@media (max-width: 600px) {
    .product-card .pc-body { padding: 10px 10px 12px; gap: 4px; }
    .product-card .pc-title { font-size: 13px; min-height: 2.6em; }
    .product-card .pc-price-now { font-size: 15px; }
    .product-card .pc-actions { display: none; }
    .product-card .pc-badge { font-size: 9px; padding: 3px 8px; }
}

/* -- 12. BREADCRUMB ------------------------------------------ */
.breadcrumb { display: flex; align-items: center; gap: var(--s-2); font-size: var(--text-xs); color: var(--text-muted); margin-bottom: var(--s-6); flex-wrap: wrap; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { color: var(--text-subtle); }

/* -- 13. HERO / SLIDER --------------------------------------- */
.hero {
    position: relative; overflow: hidden;
    border-radius: var(--r-xl);
    background: linear-gradient(135deg, var(--primary) 0%, #0891b2 100%);
    color: #fff;
    padding: var(--s-12) var(--s-8);
    min-height: 320px;
    display: flex; align-items: center;
}
.hero-content { max-width: 540px; position: relative; z-index: 2; }
.hero h1 { color: #fff; font-size: clamp(1.75rem, 4vw, 3rem); margin-bottom: var(--s-3); }
.hero p { color: rgba(255,255,255,0.9); font-size: var(--text-md); margin-bottom: var(--s-6); }

.slider {
    position: relative; overflow: hidden; border-radius: var(--r-xl);
    aspect-ratio: 16/6;
    background: var(--surface);
}
.slider-track { display: flex; transition: transform var(--t-slow) var(--ease); height: 100%; }
.slider-slide { flex: 0 0 100%; position: relative; }
.slider-slide img { width: 100%; height: 100%; object-fit: cover; }
.slider-caption { position: absolute; left: var(--s-8); bottom: var(--s-8); color: #fff; max-width: 480px; text-shadow: 0 2px 12px rgba(0,0,0,0.4); }
.slider-caption h3 { color: #fff; font-size: var(--text-2xl); }
.slider-dots { position: absolute; bottom: var(--s-3); left: 50%; transform: translateX(-50%); display: flex; gap: var(--s-1); z-index: 2; }
.slider-dots button { width: 8px; height: 8px; border-radius: var(--r-full); background: rgba(255,255,255,0.5); transition: all var(--t-fast) var(--ease); }
.slider-dots button.active { background: #fff; width: 24px; }
.slider-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; background: rgba(0,0,0,0.4); color: #fff; border-radius: var(--r-full); display: flex; align-items: center; justify-content: center; z-index: 2; }
.slider-nav:hover { background: rgba(0,0,0,0.7); }
.slider-nav.prev { left: var(--s-3); }
.slider-nav.next { right: var(--s-3); }

@media (max-width: 767px) {
    .hero { padding: var(--s-8) var(--s-4); border-radius: var(--r-lg); }
    .slider { aspect-ratio: 16/9; border-radius: var(--r-lg); }
    .slider-caption { left: var(--s-3); bottom: var(--s-3); }
    .slider-caption h3 { font-size: var(--text-md); }
}

/* -- 14. CATEGORY TILES -------------------------------------- */
.cat-tile {
    display: flex; flex-direction: column; align-items: center; gap: var(--s-2);
    padding: var(--s-4);
    background: var(--surface-elev); border: 1px solid var(--border); border-radius: var(--r-lg);
    transition: all var(--t-base) var(--ease);
}
.cat-tile:hover { border-color: var(--primary); box-shadow: var(--shadow); transform: translateY(-2px); }
.cat-tile img { width: 64px; height: 64px; object-fit: contain; }
.cat-tile-icon { width: 56px; height: 56px; border-radius: var(--r-full); background: var(--primary-tint); color: var(--primary); display: flex; align-items: center; justify-content: center; }
.cat-tile-name { font-size: var(--text-sm); font-weight: 600; color: var(--text); text-align: center; }

/* -- 15. PRODUCT DETAIL -------------------------------------- */
.pd-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--s-10); margin-block: var(--s-8); }
@media (max-width: 991px) { .pd-grid { grid-template-columns: 1fr; gap: var(--s-6); } }

.pd-gallery { display: grid; grid-template-columns: 80px 1fr; gap: var(--s-3); }
.pd-thumbs { display: flex; flex-direction: column; gap: var(--s-2); max-height: 480px; overflow-y: auto; }
.pd-thumb { aspect-ratio: 1; border: 2px solid transparent; border-radius: var(--r); overflow: hidden; cursor: pointer; transition: all var(--t-fast) var(--ease); }
.pd-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pd-thumb.active { border-color: var(--primary); }
.pd-main-image { aspect-ratio: 1; border-radius: var(--r-lg); overflow: hidden; background: var(--surface); border: 1px solid var(--border); }
.pd-main-image img { width: 100%; height: 100%; object-fit: contain; }

@media (max-width: 575px) {
    .pd-gallery { grid-template-columns: 1fr; }
    .pd-thumbs { flex-direction: row; max-height: none; max-width: 100%; overflow-x: auto; }
    .pd-thumb { flex: 0 0 60px; }
}

.pd-info h1 { font-size: var(--text-2xl); margin-bottom: var(--s-3); }
.pd-brand { display: inline-block; font-size: var(--text-xs); color: var(--primary); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: var(--s-2); font-weight: 700; }
.pd-meta { display: flex; gap: var(--s-4); margin-bottom: var(--s-4); font-size: var(--text-sm); color: var(--text-muted); flex-wrap: wrap; }
.pd-meta-item { display: inline-flex; align-items: center; gap: var(--s-1); }
.pd-price { padding: var(--s-4) 0; border-block: 1px solid var(--border); margin-block: var(--s-4); display: flex; align-items: baseline; gap: var(--s-3); flex-wrap: wrap; }
.pd-price-now { font-size: var(--text-3xl); font-weight: 800; color: var(--text); }
.pd-price-old { font-size: var(--text-md); color: var(--text-subtle); text-decoration: line-through; }
.pd-price-discount { background: var(--danger-soft); color: var(--danger); padding: var(--s-1) var(--s-2); border-radius: var(--r-sm); font-size: var(--text-xs); font-weight: 700; }
.pd-stock { display: inline-flex; align-items: center; gap: var(--s-1); font-size: var(--text-sm); margin-bottom: var(--s-4); }
.pd-stock.in { color: var(--success); }
.pd-stock.out { color: var(--danger); }
.pd-buy-row { display: flex; gap: var(--s-3); align-items: stretch; margin-block: var(--s-6); flex-wrap: wrap; }
.pd-qty { display: inline-flex; align-items: center; border: 1px solid var(--border-strong); border-radius: var(--r); overflow: hidden; }
.pd-qty button { width: 40px; height: 48px; color: var(--text-muted); }
.pd-qty button:hover { color: var(--primary); background: var(--surface); }
.pd-qty input { width: 56px; height: 48px; text-align: center; border: 0; background: transparent; font-weight: 600; }
.pd-qty input:focus { box-shadow: none; }

.pd-tabs { display: flex; gap: var(--s-1); border-bottom: 1px solid var(--border); margin-block: var(--s-8) var(--s-6); overflow-x: auto; }
.pd-tab { padding: var(--s-3) var(--s-4); font-size: var(--text-sm); font-weight: 600; color: var(--text-muted); border-bottom: 2px solid transparent; transition: all var(--t-fast) var(--ease); white-space: nowrap; }
.pd-tab.active { color: var(--primary); border-bottom-color: var(--primary); }
.pd-tab-panel { display: none; padding-block: var(--s-4); }
.pd-tab-panel.active { display: block; }
.pd-tab-panel p { margin-bottom: var(--s-3); line-height: 1.7; color: var(--text-muted); }
.pd-tab-panel ul { margin-left: var(--s-5); margin-bottom: var(--s-3); list-style: disc; }
.pd-tab-panel ul li { margin-bottom: var(--s-1); color: var(--text-muted); }
.pd-tab-panel h3 { font-size: var(--text-md); margin: var(--s-4) 0 var(--s-2); color: var(--text); }

/* -- 15b. PRODUCT DETAIL EXTRAS ------------------------------ */
.pd-discount-tag {
    position: absolute; top: var(--s-3); left: var(--s-3); z-index: 2;
    background: var(--danger); color: #fff;
    padding: var(--s-1) var(--s-3); border-radius: var(--r-full);
    font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.04em;
}
.pd-main-image { position: relative; }

.pd-flash-banner {
    display: inline-flex; align-items: center; gap: var(--s-3);
    background: linear-gradient(135deg, #ff4757, #ff6b81);
    color: #fff; padding: var(--s-2) var(--s-4);
    border-radius: var(--r); margin-bottom: var(--s-3);
}
.pd-flash-label { display: inline-flex; align-items: center; gap: var(--s-1); font-weight: 700; font-size: var(--text-sm); }
.pd-fc-box {
    display: inline-flex; flex-direction: column; align-items: center;
    background: rgba(0,0,0,.25); border-radius: var(--r-sm);
    padding: 3px 7px; min-width: 34px; margin: 0 2px;
}
.pd-fc-box b { font-size: var(--text-sm); font-weight: 700; line-height: 1.1; }
.pd-fc-box span { font-size: 9px; opacity: .85; text-transform: uppercase; letter-spacing: .04em; }

.pd-brand a { color: var(--primary); }
.pd-brand a:hover { color: var(--primary-hover); }

.pd-badges { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-block: var(--s-2) var(--s-3); }
.pd-badge { display: inline-block; padding: 5px 12px; border-radius: var(--r-sm); font-size: var(--text-xs); font-weight: 600; color: #fff; white-space: nowrap; }

.pd-short-desc { color: var(--text-muted); line-height: 1.65; margin-bottom: var(--s-3); }

.pd-kdv-note { font-size: var(--text-xs); color: var(--text-subtle); margin-left: var(--s-2); align-self: center; }
.pd-piyasa { display: block; flex-basis: 100%; font-size: var(--text-xs); color: var(--text-subtle); margin-top: var(--s-1); }
.pd-low-stock { display: inline-flex; align-items: center; margin-left: var(--s-2); padding: 2px var(--s-2); background: var(--warning-soft, rgba(217,119,6,.12)); color: var(--warning, #b45309); border-radius: var(--r-sm); font-size: var(--text-xs); font-weight: 600; }

.pd-info-list { list-style: none; padding: 0; margin: 0 0 var(--s-4); }
.pd-info-list li {
    display: flex; align-items: baseline; gap: var(--s-3);
    padding: var(--s-2) 0; font-size: var(--text-sm);
    border-bottom: 1px solid var(--border);
}
.pd-info-list li:last-child { border-bottom: 0; }
.pd-info-list .info-label {
    display: inline-block; min-width: 100px; flex-shrink: 0;
    font-size: var(--text-xs); font-weight: 700; color: var(--text-subtle);
    letter-spacing: 0.04em; text-transform: uppercase;
}
.pd-info-list li strong { font-weight: 600; color: var(--text); }
.pd-info-list li a { color: var(--text); }
.pd-info-list li a:hover { color: var(--primary); }

.pd-cargo-note {
    display: inline-flex; align-items: center; gap: var(--s-2);
    background: var(--primary-tint); color: var(--text);
    border: 1px solid var(--primary-soft);
    padding: var(--s-2) var(--s-3); border-radius: var(--r); margin-bottom: var(--s-3);
    font-size: var(--text-sm);
}
.pd-min-order { display: inline-flex; align-items: center; gap: var(--s-2); font-size: var(--text-sm); color: var(--warning, #b45309); margin-bottom: var(--s-2); }

.pd-circle-row { display: flex; gap: var(--s-2); margin-bottom: var(--s-4); flex-wrap: wrap; }
.pd-circle-btn {
    width: 46px; height: 46px; border-radius: var(--r-full);
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--surface-elev); border: 2px solid var(--border);
    color: var(--text-muted); cursor: pointer; flex-shrink: 0;
    transition: all var(--t-fast) var(--ease);
}
.pd-circle-btn:hover { transform: translateY(-1px); }
.pd-circle-btn.fav { border-color: #e74c3c; color: #e74c3c; }
.pd-circle-btn.fav:hover, .pd-circle-btn.fav.active { background: #e74c3c; color: #fff; }
.pd-circle-btn.compare { border-color: #0ea5e9; color: #0ea5e9; }
.pd-circle-btn.compare:hover, .pd-circle-btn.compare.active { background: #0ea5e9; color: #fff; }
.pd-circle-btn.wa { border-color: #25d366; color: #25d366; }
.pd-circle-btn.wa:hover { background: #25d366; color: #fff; }
.pd-circle-btn.fiyat { border-color: #f1b44c; color: #f1b44c; }
.pd-circle-btn.fiyat:hover { background: #f1b44c; color: #fff; }

.pd-stok-alarm-wrap { margin-bottom: var(--s-4); }
.pd-stok-alarm-wrap .w-full { width: 100%; }

.pd-social-row { display: flex; align-items: center; gap: var(--s-2); flex-wrap: wrap; margin-bottom: var(--s-4); padding: var(--s-3) 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.pd-social-row .pd-label { font-size: var(--text-sm); font-weight: 600; color: var(--text-muted); margin-right: var(--s-1); }
.pd-social {
    display: inline-flex; align-items: center; justify-content: center;
    width: 30px; height: 30px; border-radius: var(--r-full);
    color: #fff; transition: transform var(--t-fast) var(--ease);
}
.pd-social:hover { transform: translateY(-2px); color: #fff; }
.pd-social.fb { background: #3b5998; }
.pd-social.tw { background: #1da1f2; }
.pd-social.wa-share { background: #25d366; }
.pd-social.ln { background: #0077b5; }
.pd-social.pin { background: #bd081c; }
.pd-social.em { background: #dd4b39; }
.pd-social.tv { background: #4a6fa5; }

.pd-features { display: flex; gap: var(--s-4); flex-wrap: wrap; padding: var(--s-3); background: var(--surface); border-radius: var(--r); font-size: var(--text-sm); color: var(--text-muted); margin-bottom: var(--s-3); }
.pd-feat { display: inline-flex; align-items: center; gap: var(--s-2); }

/* -- Reviews ------------------------------------------------ */
.rv-summary {
    display: flex; align-items: center; gap: var(--s-5);
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--r-lg); padding: var(--s-5); margin-bottom: var(--s-5);
}
.rv-avg-num { font-size: 48px; font-weight: 900; color: var(--text); line-height: 1; }
.rv-avg-right { display: flex; flex-direction: column; gap: 4px; }
.rv-avg-stars { font-size: var(--text-lg); letter-spacing: 2px; }
.rv-avg-label { font-size: var(--text-xs); color: var(--text-subtle); }

.rv-list { display: flex; flex-direction: column; gap: var(--s-3); margin-bottom: var(--s-6); }
.rv-card { background: var(--surface-elev); border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--s-4) var(--s-5); }
.rv-card-head { display: flex; align-items: center; gap: var(--s-3); margin-bottom: var(--s-3); }
.rv-avatar {
    width: 40px; height: 40px; border-radius: var(--r-full);
    background: var(--text); color: var(--bg);
    display: flex; align-items: center; justify-content: center;
    font-size: var(--text-md); font-weight: 700; flex-shrink: 0;
}
.rv-meta { flex: 1; min-width: 0; }
.rv-name { font-size: var(--text-sm); font-weight: 700; color: var(--text); }
.rv-date { font-size: var(--text-xs); color: var(--text-subtle); margin-top: 2px; }
.rv-card-stars { font-size: var(--text-sm); flex-shrink: 0; letter-spacing: 1px; }
.rv-body { font-size: var(--text-sm); color: var(--text-muted); line-height: 1.7; }
.rv-images { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-3); }
.rv-images img { width: 80px; height: 80px; object-fit: cover; border-radius: var(--r); border: 1px solid var(--border); cursor: pointer; }
.rv-images img:hover { opacity: .85; }

.rv-empty { text-align: center; padding: var(--s-10) var(--s-4); color: var(--text-subtle); }
.rv-empty svg { display: block; margin: 0 auto var(--s-3); color: var(--text-subtle); }
.rv-empty h3 { font-size: var(--text-md); margin-bottom: var(--s-2); color: var(--text-muted); }

.rv-login-prompt { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--s-6); text-align: center; }
.rv-login-prompt p { font-size: var(--text-sm); color: var(--text-muted); margin-bottom: var(--s-3); }

.rv-form-wrap { background: var(--surface-elev); border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--s-5); margin-top: var(--s-3); }
.rv-form-title { font-size: var(--text-md); font-weight: 700; padding-bottom: var(--s-3); margin-bottom: var(--s-4); border-bottom: 1px solid var(--border); }
.rv-field { margin-bottom: var(--s-4); }
.rv-field label { display: block; font-size: var(--text-sm); font-weight: 600; color: var(--text); margin-bottom: var(--s-2); }
.rv-field label span { color: var(--danger); margin-left: 2px; }

.rv-stars-input { display: inline-flex; flex-direction: row-reverse; gap: 4px; justify-content: flex-end; }
.rv-stars-input input[type="radio"] { display: none; }
.rv-stars-input label {
    font-size: 32px; color: var(--border-strong); cursor: pointer; line-height: 1; padding: 0 2px;
    transition: color var(--t-fast) var(--ease);
}
.rv-stars-input label:hover,
.rv-stars-input label:hover ~ label,
.rv-stars-input input:checked ~ label { color: #f59e0b; }
.rv-star-hint { font-size: var(--text-xs); color: var(--text-subtle); margin-top: var(--s-2); min-height: 18px; }

.rv-textarea { width: 100%; min-height: 110px; padding: var(--s-3); border-radius: var(--r); border: 1px solid var(--border); background: var(--bg); color: var(--text); resize: vertical; font-family: inherit; }
.rv-textarea:focus { border-color: var(--primary); outline: 0; }

.rv-file-input { display: none; }
.rv-file-label {
    display: inline-flex; align-items: center; gap: var(--s-2);
    padding: var(--s-2) var(--s-4); border: 1px dashed var(--border-strong); border-radius: var(--r);
    font-size: var(--text-sm); color: var(--text-muted); cursor: pointer;
}
.rv-file-label:hover { border-color: var(--primary); color: var(--primary); }
.rv-img-preview { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-2); }
.rv-prev-item { position: relative; }
.rv-img-preview img { width: 72px; height: 72px; object-fit: cover; border-radius: var(--r-sm); border: 1px solid var(--border); }
.rv-prev-remove {
    position: absolute; top: -6px; right: -6px;
    width: 20px; height: 20px; border-radius: var(--r-full);
    background: var(--danger); color: #fff; border: 0;
    font-size: 14px; cursor: pointer; line-height: 1;
}

/* -- Product Slider Sections -------------------------------- */
.pd-products-section { margin-block: var(--s-10); }
.pd-products-section .section-title { font-size: var(--text-lg); font-weight: 700; padding-bottom: var(--s-2); border-bottom: 2px solid var(--primary); margin-bottom: var(--s-5); display: inline-block; }
.pd-slider-wrap { position: relative; }
.pd-slider-track {
    display: flex; gap: var(--s-3); overflow-x: auto; scroll-behavior: smooth;
    scroll-snap-type: x mandatory; padding-block: var(--s-1);
    scrollbar-width: none;
}
.pd-slider-track::-webkit-scrollbar { display: none; }
.pd-slider-item { flex: 0 0 calc(20% - var(--s-3)); min-width: calc(20% - var(--s-3)); scroll-snap-align: start; }
@media (max-width: 1199px) { .pd-slider-item { flex: 0 0 calc(25% - var(--s-3)); min-width: calc(25% - var(--s-3)); } }
@media (max-width: 991px)  { .pd-slider-item { flex: 0 0 calc(33.33% - var(--s-3)); min-width: calc(33.33% - var(--s-3)); } }
@media (max-width: 767px)  { .pd-slider-item { flex: 0 0 calc(50% - var(--s-3)); min-width: calc(50% - var(--s-3)); } }
.pd-slider-btn {
    position: absolute; top: 45%; transform: translateY(-50%); z-index: 5;
    width: 38px; height: 38px; border-radius: var(--r-full);
    background: var(--surface-elev); border: 1px solid var(--border);
    color: var(--text); font-size: 22px; line-height: 1;
    display: flex; align-items: center; justify-content: center;
    box-shadow: var(--shadow); cursor: pointer;
    transition: all var(--t-fast) var(--ease);
}
.pd-slider-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.pd-slider-prev { left: -18px; }
.pd-slider-next { right: -18px; }
@media (max-width: 767px) { .pd-slider-prev { left: -10px; } .pd-slider-next { right: -10px; } }

/* -- Bundles ------------------------------------------------ */
.pd-bundle { background: var(--surface); border: 2px solid var(--warning, #f1b44c); border-radius: var(--r-lg); padding: var(--s-5); margin-bottom: var(--s-3); }
.pd-bundle-title { font-size: var(--text-md); color: var(--warning, #f1b44c); margin-bottom: var(--s-3); }
.pd-bundle-items { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); }
.pd-bundle-item { text-align: center; width: 120px; }
.pd-bundle-item img { width: 80px; height: 80px; object-fit: cover; border-radius: var(--r-sm); }
.pd-bundle-name { font-size: var(--text-xs); color: var(--text-muted); margin-top: var(--s-1); }
.pd-bundle-plus { font-size: 24px; color: var(--text-subtle); }
.pd-bundle-price { margin-left: auto; text-align: right; }
.pd-bundle-discount { display: block; color: var(--accent); font-size: var(--text-sm); font-weight: 600; }
.pd-bundle-total { font-size: var(--text-xl); font-weight: 700; color: var(--success); }

/* -- Product Video ------------------------------------------ */
.pd-video-section { margin-block: var(--s-8); }
.pd-video-section .section-title { font-size: var(--text-lg); margin-bottom: var(--s-4); }
.pd-video-wrap { position: relative; padding-bottom: 56.25%; height: 0; border-radius: var(--r-lg); overflow: hidden; background: var(--surface); }
.pd-video-wrap iframe, .pd-video-wrap video { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }

/* -- Modals -------------------------------------------------- */
.pd-modal {
    position: fixed; inset: 0; z-index: 1000;
    background: rgba(0,0,0,0.5); backdrop-filter: blur(2px);
    display: none; align-items: center; justify-content: center;
    padding: var(--s-4);
}
.pd-modal.open { display: flex; }
.pd-modal-dialog {
    background: var(--surface-elev); border-radius: var(--r-lg);
    max-width: 480px; width: 100%; max-height: 90vh; overflow-y: auto;
    box-shadow: var(--shadow-lg);
    animation: modalSlideIn .2s ease;
}
@keyframes modalSlideIn { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
.pd-modal-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: var(--s-4) var(--s-5); border-bottom: 1px solid var(--border);
}
.pd-modal-head h3 { display: inline-flex; align-items: center; gap: var(--s-2); font-size: var(--text-md); margin: 0; }
.pd-modal-close { width: 32px; height: 32px; border-radius: var(--r-full); font-size: 24px; line-height: 1; color: var(--text-muted); background: none; border: 0; cursor: pointer; }
.pd-modal-close:hover { background: var(--surface); color: var(--text); }
.pd-modal-body { padding: var(--s-5); }
.pd-modal-foot { display: flex; justify-content: flex-end; gap: var(--s-2); padding: var(--s-4) var(--s-5); border-top: 1px solid var(--border); }

/* -- Toast --------------------------------------------------- */
.pd-toast {
    position: fixed; bottom: var(--s-6); right: var(--s-6); z-index: 9999;
    max-width: 340px; padding: var(--s-3) var(--s-4);
    border-radius: var(--r); color: #fff; font-size: var(--text-sm);
    box-shadow: var(--shadow-lg);
    transform: translateY(20px); opacity: 0;
    transition: all .3s var(--ease);
}
.pd-toast.show { transform: translateY(0); opacity: 1; }
.pd-toast-success { background: var(--success, #16a34a); }
.pd-toast-danger  { background: var(--danger, #dc2626); }
.pd-toast-warning { background: var(--warning, #d97706); }
.pd-toast a { color: #fff; text-decoration: underline; }

/* -- Cart Page ---------------------------------------------- */
.checkout-steps {
    list-style: none; padding: 0; margin: var(--s-4) 0 var(--s-6);
    display: flex; align-items: center; justify-content: center; gap: var(--s-2);
    flex-wrap: wrap; font-size: var(--text-sm);
}
.checkout-steps li {
    display: inline-flex; align-items: center; gap: var(--s-2);
    color: var(--text-subtle); font-weight: 500;
    padding: var(--s-2) var(--s-3); border-radius: var(--r-full);
    background: var(--surface);
}
.checkout-steps li.active { color: var(--primary); background: var(--primary-tint); font-weight: 700; }
.checkout-steps li.done   { color: var(--success); }
.checkout-steps li .step-num {
    width: 22px; height: 22px; border-radius: var(--r-full);
    background: var(--border); color: var(--text-muted);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: var(--text-xs); font-weight: 700;
}
.checkout-steps li.active .step-num { background: var(--primary); color: #fff; }
.checkout-steps li.done .step-num   { background: var(--success); color: #fff; }
.checkout-steps li + li::before { content: '›'; color: var(--text-subtle); margin-right: var(--s-2); }

.cart-layout { display: grid; grid-template-columns: 1fr 380px; gap: var(--s-6); }
@media (max-width: 991px) { .cart-layout { grid-template-columns: 1fr; } }
.cart-aside { align-self: start; }
@media (min-width: 992px) { .cart-aside { position: sticky; top: var(--s-4); } }

.cart-freeship-bar {
    display: flex; align-items: center; gap: var(--s-2); flex-wrap: wrap;
    background: var(--warning-soft, rgba(217,119,6,.1)); color: var(--text);
    border: 1px solid var(--warning-soft, rgba(217,119,6,.2));
    padding: var(--s-3) var(--s-4); border-radius: var(--r);
    margin-bottom: var(--s-4); font-size: var(--text-sm);
}
.cart-freeship-bar.success { background: var(--success-soft, rgba(22,163,74,.1)); border-color: var(--success-soft, rgba(22,163,74,.2)); color: var(--success); }
.cart-freeship-progress {
    flex-basis: 100%; height: 4px; border-radius: var(--r-full);
    background: var(--border); overflow: hidden; margin-top: var(--s-2);
}
.cart-freeship-progress span { display: block; height: 100%; background: var(--warning, #d97706); transition: width .3s; }

.cart-coupon-section { margin-top: var(--s-4); padding-top: var(--s-4); border-top: 1px solid var(--border); }
.cart-coupon-section details { margin-bottom: var(--s-2); }
.cart-coupon-section summary { font-size: var(--text-sm); color: var(--text-muted); cursor: pointer; padding: var(--s-1) 0; }
.cart-coupon-section summary:hover { color: var(--primary); }

.cart-puan-box {
    margin-top: var(--s-3); padding: var(--s-3);
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--r);
    font-size: var(--text-sm);
}

.cart-discount-row code { background: var(--surface); padding: 1px 5px; border-radius: var(--r-sm); font-size: var(--text-xs); }
.cart-remove-link { background: none; border: 0; color: var(--danger); cursor: pointer; font-size: 14px; padding: 0 4px; line-height: 1; }

/* -- Variant Selector --------------------------------------- */
.variant-selector { margin-block: var(--s-4); }
.variant-group { margin-bottom: var(--s-4); }
.variant-label { display: block; font-size: var(--text-sm); font-weight: 600; margin-bottom: var(--s-2); color: var(--text); }
.variant-label .variant-type-name { font-weight: 700; }
.variant-label .variant-selected-label { color: var(--primary); font-weight: 500; margin-left: var(--s-1); }

.color-swatches { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.color-swatch {
    width: 38px; height: 38px; border-radius: var(--r-full);
    border: 2px solid var(--border); padding: 3px;
    display: inline-flex; align-items: center; justify-content: center;
    cursor: pointer; transition: all var(--t-fast) var(--ease);
    position: relative; overflow: hidden;
}
.color-swatch:hover { border-color: var(--text-muted); transform: scale(1.05); }
.color-swatch.active { border-color: var(--primary); box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--primary); }
.color-swatch .swatch-color { display: block; width: 100%; height: 100%; border-radius: var(--r-full); }
.color-swatch .swatch-img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--r-full); }
.color-swatch .swatch-text { font-size: var(--text-xs); font-weight: 700; color: var(--text); }

.variant-buttons { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.variant-btn {
    min-width: 44px; min-height: 40px; padding: var(--s-2) var(--s-3);
    border: 2px solid var(--border); border-radius: var(--r);
    background: var(--surface-elev); color: var(--text);
    font-size: var(--text-sm); font-weight: 500; cursor: pointer;
    transition: all var(--t-fast) var(--ease);
    display: inline-flex; flex-direction: column; align-items: center; line-height: 1.2;
}
.variant-btn:hover { border-color: var(--text-muted); }
.variant-btn.active { border-color: var(--primary); background: var(--primary-tint); color: var(--primary); }
.variant-btn small { display: block; font-size: 10px; opacity: .8; margin-top: 2px; }

/* Gallery smooth transition */
.pd-main-image img { transition: opacity .25s ease; }

/* -- Checkout Page ------------------------------------------ */
.checkout-layout { display: grid; grid-template-columns: 1fr 380px; gap: var(--s-6); }
@media (max-width: 991px) { .checkout-layout { grid-template-columns: 1fr; } }
.checkout-aside { align-self: start; }
@media (min-width: 992px) { .checkout-aside { position: sticky; top: var(--s-4); } }

.checkout-items { max-height: 280px; overflow-y: auto; padding-right: var(--s-1); display: flex; flex-direction: column; gap: var(--s-2); margin-bottom: var(--s-3); }
.checkout-item { display: grid; grid-template-columns: 48px 1fr auto; gap: var(--s-2); align-items: center; padding: var(--s-2) 0; border-bottom: 1px solid var(--border); }
.checkout-item:last-child { border-bottom: 0; }
.checkout-item img { width: 48px; height: 48px; object-fit: cover; border-radius: var(--r-sm); }
.checkout-item .ci-no-img { width: 48px; height: 48px; background: var(--surface-2); border-radius: var(--r-sm); }
.checkout-item .ci-name { font-size: var(--text-xs); font-weight: 600; color: var(--text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.checkout-item .ci-var, .checkout-item .ci-qty { font-size: 10px; color: var(--text-subtle); }
.checkout-item .ci-price { font-size: var(--text-sm); font-weight: 700; }

.checkout-coupon { margin: var(--s-3) 0; }
.checkout-coupon details summary { font-size: var(--text-sm); color: var(--text-muted); cursor: pointer; padding: var(--s-1) 0; }
.checkout-coupon details summary:hover { color: var(--primary); }

.checkout-puan { padding: var(--s-3); background: var(--surface); border-radius: var(--r); margin: var(--s-2) 0; }

.checkout-totals { display: flex; flex-direction: column; gap: var(--s-2); font-size: var(--text-sm); margin: var(--s-3) 0; }

.checkout-onay { display: flex; align-items: flex-start; gap: var(--s-2); margin-top: var(--s-4); font-size: var(--text-xs); color: var(--text-muted); cursor: pointer; }
.checkout-onay input { margin-top: 3px; flex-shrink: 0; width: 16px; height: 16px; accent-color: var(--primary); }
.checkout-onay a { color: var(--primary); }

/* Payment tabs */
.payment-tabs { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: var(--s-2); margin-bottom: var(--s-4); }
.payment-tab {
    display: flex; flex-direction: column; align-items: center; gap: var(--s-1);
    padding: var(--s-3); border: 2px solid var(--border); border-radius: var(--r);
    cursor: pointer; transition: all var(--t-fast) var(--ease); background: var(--surface-elev);
}
.payment-tab.active { border-color: var(--primary); background: var(--primary-tint); }
.payment-tab input { display: none; }
.payment-tab .pt-icon { font-size: var(--text-xl); line-height: 1; }
.payment-tab .pt-label { font-size: var(--text-sm); font-weight: 600; color: var(--text); }

.payment-detail { padding: var(--s-4); background: var(--surface); border-radius: var(--r); margin-bottom: var(--s-3); }

/* Credit card preview */
.cc-preview {
    background: linear-gradient(135deg, #1e293b, #0f172a); color: #fff;
    padding: var(--s-5); border-radius: var(--r-lg);
    margin-bottom: var(--s-4); aspect-ratio: 1.586; max-width: 360px;
    position: relative; box-shadow: var(--shadow-lg);
}
.cc-chip { width: 36px; height: 26px; background: linear-gradient(135deg, #fbbf24, #d97706); border-radius: 4px; margin-bottom: var(--s-3); }
.cc-brand { position: absolute; top: var(--s-4); right: var(--s-5); font-weight: 800; font-size: var(--text-lg); letter-spacing: .04em; }
.cc-number { font-family: 'Courier New', monospace; font-size: var(--text-xl); letter-spacing: 2px; margin: var(--s-3) 0; }
.cc-bottom { display: flex; justify-content: space-between; align-items: flex-end; }
.cc-label { font-size: 9px; opacity: .7; text-transform: uppercase; letter-spacing: .05em; }
.cc-name, .cc-expiry { font-family: 'Courier New', monospace; font-size: var(--text-sm); margin-top: 2px; text-transform: uppercase; letter-spacing: 1px; }

/* Taksit table */
.taksit-table-wrap { margin-top: var(--s-4); }
.taksit-table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
.taksit-table thead { background: var(--surface-elev); }
.taksit-table th { padding: var(--s-2) var(--s-3); text-align: left; font-weight: 600; color: var(--text-muted); font-size: var(--text-xs); text-transform: uppercase; }
.taksit-table td { padding: var(--s-2) var(--s-3); border-bottom: 1px solid var(--border); }
.taksit-table tbody tr { cursor: pointer; transition: background var(--t-fast); }
.taksit-table tbody tr:hover { background: var(--surface); }
.taksit-table tbody tr.active { background: var(--primary-tint); }
.taksit-table .rdo { display: inline-block; width: 14px; height: 14px; border-radius: var(--r-full); border: 2px solid var(--border-strong); margin-right: var(--s-2); vertical-align: middle; }
.taksit-table tr.active .rdo { background: var(--primary); border-color: var(--primary); box-shadow: inset 0 0 0 2px var(--surface-elev); }

/* Bank account */
.bank-account {
    display: flex; align-items: center; gap: var(--s-3); padding: var(--s-3);
    background: var(--surface-elev); border: 1px solid var(--border); border-radius: var(--r);
    margin-bottom: var(--s-2);
}
.bank-logo { width: 56px; height: 40px; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; border-radius: var(--r-sm); flex-shrink: 0; font-size: var(--text-sm); }
.bank-info { flex: 1; min-width: 0; }
.bank-name { font-weight: 700; color: var(--text); font-size: var(--text-sm); }
.bank-iban { font-family: 'Courier New', monospace; font-size: var(--text-xs); color: var(--text-muted); margin-top: 2px; word-break: break-all; }

/* Payment logos */
.pay-logos { display: flex; align-items: center; gap: var(--s-2); flex-wrap: wrap; margin-top: var(--s-3); }
.pay-logo {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 44px; height: 26px; padding: 0 8px;
    background: var(--surface-elev); border: 1px solid var(--border); border-radius: var(--r-sm);
    font-size: 11px; font-weight: 700; color: var(--text-muted); letter-spacing: .04em;
}
.pay-logos-foot { justify-content: center; margin-top: var(--s-4); }

/* Grid helpers */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-3); }

/* -- 16. PRODUCT LIST / FILTERS ------------------------------ */
.products-layout { display: grid; grid-template-columns: 280px 1fr; gap: var(--s-8); margin-block: var(--s-6); }
@media (max-width: 991px) { .products-layout { grid-template-columns: 1fr; } }

.filter-sidebar {
    background: var(--surface-elev); border: 1px solid var(--border); border-radius: var(--r-lg);
    padding: var(--s-5);
    align-self: start;
}
.filter-section { padding-block: var(--s-4); border-bottom: 1px solid var(--border); }
.filter-section:last-child { border-bottom: 0; }
.filter-section h4 { font-size: var(--text-sm); font-weight: 700; margin-bottom: var(--s-3); }
.filter-list { display: flex; flex-direction: column; gap: var(--s-2); max-height: 240px; overflow-y: auto; }
.filter-list label { display: flex; align-items: center; gap: var(--s-2); font-size: var(--text-sm); color: var(--text-muted); cursor: pointer; padding: var(--s-1) 0; }
.filter-list label:hover { color: var(--text); }
.filter-list input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--primary); cursor: pointer; }

.sort-bar { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); margin-bottom: var(--s-5); padding: var(--s-3) var(--s-4); background: var(--surface); border-radius: var(--r); flex-wrap: wrap; }
.sort-bar .result-count { font-size: var(--text-sm); color: var(--text-muted); }
.sort-bar select { max-width: 240px; }

/* -- 17. PAGE HEADER ----------------------------------------- */
.page-header {
    position: relative;
    overflow: hidden;
    background: url('/public/assets/images/category-hero-bg.jpg') center center / cover no-repeat;
    border-bottom: 0;
    padding-block: var(--s-9, 56px);
}
.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(55, 65, 81, 0.82) 0%, rgba(31, 41, 55, 0.72) 100%);
    z-index: 1;
    pointer-events: none;
}
.page-header > * { position: relative; z-index: 2; }
.page-header,
.page-header .container { color: #fff; }
.page-header h1 {
    color: #fff;
    font-size: clamp(28px, 3vw, 38px);
    margin-bottom: var(--s-2);
    letter-spacing: .5px;
}
.page-header .breadcrumb { margin: 0 0 var(--s-3) 0; }
.page-header .breadcrumb,
.page-header .breadcrumb a,
.page-header .breadcrumb .sep { color: rgba(255,255,255,.85); }
.page-header .breadcrumb a:hover { color: #fff; text-decoration: underline; }
.page-header .text-muted { color: rgba(255,255,255,.78) !important; }
.page-header .badge-primary {
    background: rgba(255,255,255,0.15);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.25);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

/* -- 18. PAGINATION ------------------------------------------ */
.pagination { display: flex; gap: var(--s-1); justify-content: center; margin-block: var(--s-8); flex-wrap: wrap; }
.pagination a, .pagination span {
    min-width: 40px; height: 40px; padding: 0 var(--s-3);
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--surface-elev); border: 1px solid var(--border); border-radius: var(--r);
    font-size: var(--text-sm); font-weight: 500; color: var(--text-muted);
    transition: all var(--t-fast) var(--ease);
}
.pagination a:hover { border-color: var(--primary); color: var(--primary); }
.pagination .active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* -- 19. CONTACT --------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: var(--s-8); margin-block: var(--s-8); }
@media (max-width: 991px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info { display: flex; flex-direction: column; gap: var(--s-3); }
.contact-info-item {
    display: flex; gap: var(--s-3); align-items: flex-start;
    padding: var(--s-4); background: var(--surface-elev); border: 1px solid var(--border); border-radius: var(--r-lg);
    transition: all var(--t-base) var(--ease);
}
.contact-info-item:hover { border-color: var(--primary); transform: translateY(-2px); }
.contact-info-icon {
    flex-shrink: 0; width: 44px; height: 44px;
    background: var(--primary-tint); color: var(--primary); border-radius: var(--r);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: var(--text-md);
}
.contact-info-content h4 { font-size: var(--text-sm); margin-bottom: var(--s-1); }
.contact-info-content p, .contact-info-content a { font-size: var(--text-sm); color: var(--text-muted); }
.contact-info-content a:hover { color: var(--primary); }
.contact-form { background: var(--surface-elev); border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--s-6); }
.contact-form h3 { margin-bottom: var(--s-2); }
.contact-form p.help { color: var(--text-muted); margin-bottom: var(--s-6); }

/* -- 20. UTILITIES ------------------------------------------- */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--text-muted); }
.text-primary { color: var(--primary); }
.text-danger { color: var(--danger); }
.text-success { color: var(--success); }
.mb-2 { margin-bottom: var(--s-2); } .mb-3 { margin-bottom: var(--s-3); } .mb-4 { margin-bottom: var(--s-4); } .mb-6 { margin-bottom: var(--s-6); } .mb-8 { margin-bottom: var(--s-8); }
.mt-2 { margin-top: var(--s-2); } .mt-3 { margin-top: var(--s-3); } .mt-4 { margin-top: var(--s-4); } .mt-6 { margin-top: var(--s-6); } .mt-8 { margin-top: var(--s-8); }
.w-full { width: 100%; }
.rounded { border-radius: var(--r); }
.rounded-lg { border-radius: var(--r-lg); }

/* -- 21. EMPTY / ERROR STATES -------------------------------- */
.empty-state {
    text-align: center; padding: var(--s-16) var(--s-4);
    color: var(--text-muted);
}
.empty-state .icon { width: 64px; height: 64px; margin: 0 auto var(--s-4); background: var(--surface-2); border-radius: var(--r-full); display: flex; align-items: center; justify-content: center; font-size: 28px; color: var(--text-subtle); }
.empty-state h3 { font-size: var(--text-lg); margin-bottom: var(--s-2); color: var(--text); }
.empty-state p { font-size: var(--text-sm); margin-bottom: var(--s-6); }

/* -- CART SIDE PANEL ----------------------------------------- */
#cart-side-overlay {
    position: fixed; inset: 0; z-index: 80;
    background: rgba(0, 0, 0, .5);
    opacity: 0; visibility: hidden;
    transition: opacity var(--t-base) var(--ease);
}
#cart-side-overlay.open { opacity: 1; visibility: visible; }

#cart-side-panel {
    position: fixed; top: 0; right: 0; bottom: 0; z-index: 81;
    width: 420px; max-width: 100vw;
    background: var(--surface-elev);
    box-shadow: -8px 0 32px rgba(0, 0, 0, .15);
    display: flex; flex-direction: column;
    transform: translateX(100%);
    transition: transform var(--t-base) var(--ease);
}
#cart-side-panel.open { transform: translateX(0); }

.csp-head {
    padding: var(--s-4) var(--s-5);
    border-bottom: 1px solid var(--border);
    display: flex; justify-content: space-between; align-items: center;
    flex-shrink: 0;
}
.csp-head h3 { margin: 0; font-size: var(--text-lg); }
#csp-close {
    width: 36px; height: 36px; border-radius: var(--r-full);
    background: var(--surface); color: var(--text-muted);
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; line-height: 1;
    transition: all var(--t-fast) var(--ease);
}
#csp-close:hover { background: var(--surface-2); color: var(--text); }

.csp-body {
    flex: 1; overflow-y: auto;
    padding: var(--s-3);
}
.csp-empty {
    text-align: center; padding: var(--s-12) var(--s-4);
    color: var(--text-muted);
}

.csp-item {
    display: grid; grid-template-columns: 64px 1fr auto; gap: var(--s-3);
    padding: var(--s-3); border-radius: var(--r);
    border: 1px solid var(--border); margin-bottom: var(--s-2);
    background: var(--bg);
    align-items: center;
}
.csp-item-img {
    aspect-ratio: 1; border-radius: var(--r-sm); overflow: hidden;
    background: var(--surface-2);
}
.csp-item-img img { width: 100%; height: 100%; object-fit: cover; }
.csp-item-info { min-width: 0; }
.csp-item-name {
    display: block; font-size: var(--text-sm); font-weight: 600; color: var(--text);
    line-height: 1.35; margin-bottom: var(--s-1);
    overflow: hidden; display: -webkit-box;
    -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.csp-item-meta { display: flex; justify-content: space-between; align-items: center; }
.csp-qty {
    display: inline-flex; align-items: center; gap: 2px;
    border: 1px solid var(--border); border-radius: var(--r-sm);
    background: var(--surface);
}
.csp-qty button {
    width: 24px; height: 24px;
    color: var(--text-muted); font-size: 14px; line-height: 1;
}
.csp-qty button:hover { color: var(--primary); }
.csp-qty span { min-width: 24px; text-align: center; font-size: var(--text-xs); font-weight: 600; }
.csp-item-price { font-weight: 700; color: var(--text); font-size: var(--text-sm); }
.csp-item-remove {
    align-self: start;
    width: 24px; height: 24px; border-radius: var(--r-full);
    background: var(--surface); color: var(--text-muted);
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; line-height: 1;
}
.csp-item-remove:hover { background: var(--danger); color: #fff; }

.csp-foot {
    padding: var(--s-4) var(--s-5);
    border-top: 1px solid var(--border);
    flex-shrink: 0;
}
.csp-total {
    display: flex; justify-content: space-between; align-items: baseline;
    margin-bottom: var(--s-3);
}
.csp-total strong { font-size: var(--text-xl); color: var(--primary); }

@media (max-width: 480px) {
    #cart-side-panel { width: 100vw; }
}

/* -- 22. SCROLL TOP ------------------------------------------ */
#scroll-top {
    position: fixed; bottom: var(--s-6); right: var(--s-6); z-index: 40;
    width: 44px; height: 44px;
    background: var(--primary); color: #fff;
    border-radius: var(--r-full);
    display: flex; align-items: center; justify-content: center;
    box-shadow: var(--shadow-md);
    opacity: 0; pointer-events: none;
    transition: all var(--t-base) var(--ease);
}
#scroll-top.show { opacity: 1; pointer-events: auto; }
#scroll-top:hover { background: var(--primary-hover); transform: translateY(-2px); }

/* -- 23. THEME TOGGLE ---------------------------------------- */
.theme-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px;
    background: transparent; color: var(--text-muted);
    border-radius: var(--r); border: 1px solid var(--border);
    transition: all var(--t-fast) var(--ease);
}
.theme-toggle:hover { background: var(--surface); color: var(--text); }
[data-theme="dark"] .theme-toggle .icon-sun { display: inline-flex; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: inline-flex; }

/* -- 24. MOBILE BOTTOM NAV ----------------------------------- */
.mobile-bottom-nav {
    display: none;
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 45;
    background: color-mix(in srgb, var(--bg) 92%, transparent);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-top: 1px solid var(--border);
    padding: var(--s-2) var(--s-2) calc(var(--s-2) + env(safe-area-inset-bottom));
    justify-content: space-around; align-items: center;
}
.mobile-bottom-nav a {
    display: flex; flex-direction: column; align-items: center; gap: 2px;
    padding: var(--s-1) var(--s-2);
    font-size: 10px; color: var(--text-muted);
    position: relative;
}
.mobile-bottom-nav a.active { color: var(--primary); }
.mobile-bottom-nav a .icon { font-size: 20px; }
@media (max-width: 767px) {
    .mobile-bottom-nav { display: flex; }
    body { padding-bottom: 64px; }
}

/* -- 25. COOKIE CONSENT -------------------------------------- */
.cookie-consent {
    position: fixed; bottom: var(--s-4); left: var(--s-4); right: var(--s-4); z-index: 60;
    max-width: 480px; margin-inline: auto;
    background: var(--surface-elev); border: 1px solid var(--border); border-radius: var(--r-lg);
    box-shadow: var(--shadow-lg);
    padding: var(--s-5);
    font-size: var(--text-sm);
    display: none;
}
.cookie-consent.show { display: block; animation: slideUp 0.3s var(--ease-out); }
.cookie-consent h4 { font-size: var(--text-md); margin-bottom: var(--s-2); }
.cookie-consent p { color: var(--text-muted); margin-bottom: var(--s-3); }
.cookie-consent .actions { display: flex; gap: var(--s-2); justify-content: flex-end; }

@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* -- 26. ALERTS ---------------------------------------------- */
.alert { padding: var(--s-3) var(--s-4); border-radius: var(--r); border: 1px solid var(--border); margin-bottom: var(--s-4); display: flex; gap: var(--s-2); align-items: flex-start; }
.alert-success { background: var(--success-soft); border-color: var(--success); color: var(--success); }
.alert-danger { background: var(--danger-soft); border-color: var(--danger); color: var(--danger); }
.alert-warning { background: var(--warning-soft); border-color: var(--warning); color: var(--warning); }
.alert-info { background: var(--primary-tint); border-color: var(--primary); color: var(--primary); }

/* -- 27. ANIMATIONS ------------------------------------------ */
.animate-fade-in { animation: fadeIn 0.3s var(--ease-out); }
.animate-slide-up { animation: slideUp 0.3s var(--ease-out); }

/* -- 28. PRINT ----------------------------------------------- */
@media print {
    .site-header, .site-footer, .mobile-bottom-nav, .cookie-consent, #scroll-top, .header-actions, .pc-actions { display: none !important; }
    body { background: #fff; color: #000; }
}

/* ════════════════════════════════════════════════════════════════════════════
   ÜRÜN VİTRİN BLOKLAR — Fiyat global stil
   Tüm urun-yatay/uclu/ikili/uc-satir/bir-dort varyantlarında güncel fiyat
   tek noktadan yönetilir. Specificity (0,2,0) varyant-spesifik kuralları geçer.
   Renk: Tema Studyosu > Kartlar & Bloklar > "Fiyat Rengi" (--fiyat-color)
   ════════════════════════════════════════════════════════════════════════════ */
[class^="blok-"] [class$="-price-now"] {
    color: var(--fiyat-color, #0f172a);
    font-size: clamp(17px, 1.9vw, 22px);
    font-weight: 700;
    letter-spacing: -.02em;
}

/* Ürün adı — modern sade font stack, küçük tipografi */
[class^="blok-u"] [class$="-name"] {
    font-family: 'DM Sans', 'Manrope', 'Inter', system-ui, -apple-system, sans-serif;
    font-size: clamp(13px, 1.15vw, 15px);
    line-height: 1.4;
    font-weight: 500;
    letter-spacing: -.005em;
}
[class^="blok-u"] [class$="-name"] a {
    color: var(--tema-text);
    text-decoration: none;
}

/* ════════════════════════════════════════════════════════════════════════════
   ÜRÜN VİTRİN BLOK BAŞLIKLARI — küçültülmüş + body font + altta çizgi
   .blok-u* prefix'i sadece urun-* bloklarında (yatay/uclu/ikili/uc-satir/bir-dort).
   Hero/header/footer/testimonial dokunulmaz.
   ════════════════════════════════════════════════════════════════════════════ */
[class^="blok-u"] [class$="-title"] {
    font-family: var(--font-body);
    font-size: clamp(20px, 2.4vw, 28px);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -.01em;
}
[class^="blok-u"] [class$="-head"] {
    border-bottom: 1px solid var(--tema-border);
    padding-bottom: 16px;
}

/* ════════════════════════════════════════════════════════════════════════════
   MOBİL/TABLET ÜRÜN DÜZENİ (≤ 900px)
   1) TÜM urun-* bloklarındaki carousel ve track'leri 2-up zorla
      - uy-* (flex/grid carousel) → her swipe'ta 1 kart kayar
      - ubd-06 grid-auto-flow track → 2-up
   2) Grid bloklarda 3/5/7 ürün → son tek cell mobilde gizle
   3) Slide içinde dar tasarımı bozan overlay action + KDV etiketi gizle
   Breakpoint 900px: uy-02/03 ve ubd-06 880px breakpoint'lerini de kapsar.
   ════════════════════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
    /* Track gap + grid-auto-flow carousel'lerde slot genişliği */
    [class^="blok-u"] [class$="-track"] {
        gap: 12px !important;
        grid-auto-columns: calc((100% - 12px) / 2) !important;
    }
    /* Flex-tabanlı carousel slide'larında 2-up */
    [class^="blok-u"] [class$="-slide"] {
        flex: 0 0 calc((100% - 12px) / 2) !important;
        width: auto;
        min-width: 0;
        scroll-snap-align: start;
    }
    /* Grid'li listing'lerde 3/5/7 ürün son tek child gizle */
    [class^="blok-u"] [class$="-cell"]:nth-child(n+3):nth-child(odd):last-child {
        display: none;
    }
    /* Dar slide'da tasarım bozan elementleri gizle */
    [class^="blok-u"] .bp-actions { display: none !important; }
    [class^="blok-u"] .bp-kdv { display: none !important; }
}
