/* Dursana - ana stil dosyası */

:root {
    /* Palet: fren kırmızısı #d9120f, asfalt #17191c, disk grisi #8c939b,
       uyarı sarısı #ffc21a, kırık beyaz #f4f3ef */
    --brand: #d9120f;
    --brand-dark: #b40e0c;
    --brand-soft: #fdeceb;
    --brand-ink: #ffffff;
    --accent: #d9120f;
    --accent-dark: #b40e0c;
    --ink: #17191c;
    --muted: #646a72;
    --line: #e3e5e8;
    --bg: #ffffff;
    --bg-soft: #f4f3ef;
    --media-bg: #f5f5f5; /* ürün görsellerinin arkasındaki gri fon */
    --success: #157347;
    --danger: #c0392b;
    --radius: 14px;
    --radius-sm: 10px;
    --shadow: 0 2px 10px rgba(17, 24, 39, .06);
    --shadow-lg: 0 12px 34px rgba(17, 24, 39, .12);
    --header-h: 68px;
    --font: 'Segoe UI', system-ui, -apple-system, Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

/* Sayfa kaydırma çubuğu bazı tarayıcılarda neredeyse görünmez kalıyordu;
   marka rengiyle belirgin hale getirilir */
html {
    scrollbar-width: thin;
    scrollbar-color: #9aa4b2 #eef0f4;
}
body::-webkit-scrollbar,
.drawer::-webkit-scrollbar,
.search-panel::-webkit-scrollbar,
.mobile-menu::-webkit-scrollbar { width: 12px; height: 12px; }
body::-webkit-scrollbar-track,
.drawer::-webkit-scrollbar-track,
.search-panel::-webkit-scrollbar-track,
.mobile-menu::-webkit-scrollbar-track { background: #eef0f4; }
body::-webkit-scrollbar-thumb,
.drawer::-webkit-scrollbar-thumb,
.search-panel::-webkit-scrollbar-thumb,
.mobile-menu::-webkit-scrollbar-thumb {
    background: #9aa4b2;
    border: 3px solid #eef0f4;
    border-radius: 999px;
}
body::-webkit-scrollbar-thumb:hover,
.drawer::-webkit-scrollbar-thumb:hover,
.search-panel::-webkit-scrollbar-thumb:hover,
.mobile-menu::-webkit-scrollbar-thumb:hover { background: #6b7482; }

body {
    margin: 0;
    font-family: var(--font);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0 0 .5rem; line-height: 1.25; font-weight: 700; }

.container {
    width: min(1200px, 100% - 2rem);
    margin-inline: auto;
}

.icon {
    width: 1.25em;
    height: 1.25em;
    flex: none;
    vertical-align: -.2em;
}

.visually-hidden {
    position: absolute;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* ---------- Butonlar ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .7rem 1.15rem;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    background: var(--brand);
    color: var(--brand-ink);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease, transform .1s ease;
}
.btn:hover { background: var(--brand-dark); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-outline { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-outline:hover { background: var(--bg-soft); border-color: #cfd4db; }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost:hover { background: var(--bg-soft); color: var(--ink); }
.btn-navy { background: var(--ink); color: #fff; }
.btn-navy:hover { background: #0a4576; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #9e2f22; }
.btn-sm { padding: .45rem .75rem; font-size: .875rem; }
.btn-block { width: 100%; }

/* ---------- Başlık / navigasyon ---------- */
/* Başlık ve menü çubuğu birlikte yapışır; aşağı kaydırırken menü satırı
   gizlenip yalnızca arama ve sepet satırı kalır */
.site-top {
    position: sticky;
    top: 0;
    z-index: 40;
}
.site-header {
    /* backdrop-filter kendi yığın bağlamını kurar; arama paneli menü
       çubuğunun üstünde kalsın diye başlık ona göre sıralanır */
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
}
.header-inner {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: var(--header-h);
}
.logo { display: flex; align-items: center; }
.logo img { height: 40px; width: auto; }

/* Başlık logosu: amblem (d) yerinde kalır; yazı (ursana) 5 sn görünür, sonra
   katlanıp kaybolur ve boşalan yer kapanır (arama kutusu sola kayar), kısa
   bir süre sonra yeniden açılır. Oranlar logo-dark.svg ölçülerinden gelir. */
.logo-anim { --logo-h: 40px; flex: 0 0 auto; }
.logo-anim img { display: block; height: var(--logo-h); width: auto; max-width: none; }
.logo-anim .logo-text {
    display: block;
    flex: 0 0 auto;
    overflow: hidden;
    width: calc(var(--logo-h) * 2.453);
    /* İtalik harfler amblemin üstüne hafifçe biner */
    margin-left: calc(var(--logo-h) * -.054);
    perspective: 400px;
}
.logo-anim .logo-text img { transform-origin: 0 50%; }

@media (min-width: 769px) and (prefers-reduced-motion: no-preference) {
    .logo-anim .logo-text { animation: logo-text-space 8s cubic-bezier(.6, 0, .3, 1) infinite; }
    .logo-anim .logo-text img { animation: logo-text-fold 8s cubic-bezier(.6, 0, .3, 1) infinite; }
    /* Üzerine gelindiğinde logo tam hâliyle durur */
    .logo-anim:hover .logo-text,
    .logo-anim:hover .logo-text img,
    .logo-anim:focus-visible .logo-text,
    .logo-anim:focus-visible .logo-text img { animation: none; }
}
/* 0–5 sn tam logo · 0,7 sn katlanma · ~1,7 sn yalnız amblem · 0,6 sn açılma */
@keyframes logo-text-space {
    0%, 62.5% { width: calc(var(--logo-h) * 2.453); margin-left: calc(var(--logo-h) * -.054); }
    71.5%, 92.5% { width: 0; margin-left: 0; }
    100% { width: calc(var(--logo-h) * 2.453); margin-left: calc(var(--logo-h) * -.054); }
}
@keyframes logo-text-fold {
    0%, 62.5% { transform: rotateY(0); opacity: 1; }
    71.5%, 92.5% { transform: rotateY(-88deg); opacity: 0; }
    100% { transform: rotateY(0); opacity: 1; }
}

.search-box {
    position: relative;
    flex: 1 1 auto;
    max-width: 560px;
    margin-right: auto;
}
.search-box.is-open { z-index: 5; }
/* Arama açıkken başlık karartmanın üstüne alınır, kendi içeriği ise
   arama kutusu hariç örtülür */
.site-top.is-searching { z-index: 60; }
.site-top.is-searching .site-header::after,
.site-top.is-searching .main-nav::after {
    content: '';
    position: absolute;
    /* Mutlak konumun sınırı iç kutudur; alt çizgiler açıkta kalmasın diye
       karartma bir piksel taşırılır */
    top: 0;
    left: 0;
    right: 0;
    bottom: -1px;
    z-index: 4;
    background: rgba(23, 25, 28, .35);
    pointer-events: none;
}

.search-form {
    display: flex;
    border: 1px solid var(--line);
    border-radius: 999px;
    overflow: hidden;
    background: var(--bg-soft);
}
.search-form:focus-within { border-color: var(--brand); background: #fff; }
.search-form input {
    flex: 1;
    border: 0;
    background: transparent;
    padding: .6rem 1rem;
    font: inherit;
    outline: none;
    min-width: 0;
}
.search-form button {
    border: 0;
    background: transparent;
    color: var(--muted);
    padding: 0 1rem;
    cursor: pointer;
}
.search-form button:hover { color: var(--accent-dark); }

/* ---------- Arama öneri paneli ---------- */
/* Karartma başlık dahil tüm sayfayı kaplar; yalnızca arama alanı ve panel
   aydınlık kalır (aşağıdaki .is-searching kuralları) */
.search-backdrop {
    position: fixed;
    inset: 0;
    z-index: 50;
    background: rgba(23, 25, 28, .35);
}
.search-backdrop[hidden] { display: none; }

.search-panel {
    position: absolute;
    top: calc(100% + .6rem);
    left: 0;
    right: 0;
    z-index: 61;
    max-height: min(70vh, 560px);
    overflow-y: auto;
    overscroll-behavior: contain;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 1.1rem 1.25rem 1.25rem;
}
.search-panel[hidden] { display: none; }

.suggest-block + .suggest-block { margin-top: 1.35rem; }
.suggest-block h3 {
    margin: 0 0 .7rem;
    font-size: 1rem;
    font-weight: 700;
}

.suggest-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.suggest-chip {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .55rem .85rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    color: var(--ink);
    font-size: .9rem;
    white-space: nowrap;
}
.suggest-chip:hover { border-color: var(--brand); background: var(--bg-soft); }
.suggest-chip .icon { width: 1rem; height: 1rem; color: var(--muted); }
.suggest-chip-logo { width: auto; max-width: 44px; height: 20px; object-fit: contain; }

.suggest-rail-wrap { position: relative; }
.suggest-rail {
    display: flex;
    gap: .75rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding-bottom: .25rem;
}
.suggest-rail::-webkit-scrollbar { display: none; }
.suggest-rail-next {
    position: absolute;
    right: -.4rem;
    top: 50%;
    transform: translateY(-50%);
    display: grid;
    place-items: center;
    width: 2.2rem;
    height: 2.2rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: var(--ink);
    cursor: pointer;
    box-shadow: var(--shadow);
}
.suggest-rail-next:hover { border-color: var(--brand); }

.suggest-list { display: grid; gap: .6rem; }

.suggest-card {
    display: flex;
    gap: .7rem;
    align-items: center;
    padding: .6rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: #fff;
}
.suggest-rail .suggest-card { flex: 0 0 232px; align-items: flex-start; }
.suggest-card:hover { border-color: var(--brand); }
.suggest-card-media { flex: 0 0 64px; }
.suggest-card-media img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    border-radius: var(--radius-sm);
    background: var(--bg-soft);
}
.suggest-card-body { flex: 1; min-width: 0; }
.suggest-card-name {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--ink);
    font-size: .88rem;
    line-height: 1.35;
}
.suggest-card-name:hover { color: var(--accent-dark); }
.suggest-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    margin-top: .45rem;
}
.suggest-card-price { font-weight: 700; color: var(--accent-dark); }
.suggest-card-add {
    display: grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: var(--ink);
    cursor: pointer;
}
.suggest-card-add:hover:not(:disabled) { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.suggest-card-add:disabled { opacity: .45; cursor: not-allowed; }
.suggest-card-add .icon { width: 1.05rem; height: 1.05rem; }

.suggest-all {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    margin-top: .9rem;
    color: var(--accent-dark);
    font-weight: 600;
    font-size: .92rem;
}
.suggest-all:hover { text-decoration: underline; }

.suggest-empty { text-align: center; padding: 1.25rem .5rem; }
.suggest-empty .icon { width: 2rem; height: 2rem; color: var(--muted); }
.suggest-empty p { margin: .5rem 0; }
.suggest-empty-hint { color: var(--muted); font-size: .9rem; }

.suggest-loading { padding: 1.5rem; text-align: center; color: var(--muted); }

.header-actions { display: flex; align-items: center; gap: .35rem; margin-left: auto; }

.cart-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .55rem .9rem;
    border-radius: 999px;
    background: var(--bg-soft);
    color: var(--ink);
    font-weight: 600;
}
.cart-button:hover { background: #eef0f4; }
.cart-label { font-size: .92rem; }

.cart-icon { position: relative; display: inline-flex; }
.cart-icon .icon { width: 1.5rem; height: 1.5rem; }
.cart-count {
    position: absolute;
    top: -9px;
    right: -10px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--danger);
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
    line-height: 1;
    display: grid;
    place-items: center;
    /* Rozet, arkasındaki simgeden beyaz bir halkayla ayrılır */
    box-shadow: 0 0 0 2px #fff;
}
.cart-count[hidden] { display: none; }
.cart-count.is-bumped { animation: cart-bump .45s ease; }

@keyframes cart-bump {
    0% { transform: scale(1); }
    35% { transform: scale(1.45); }
    70% { transform: scale(.92); }
    100% { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
    .cart-count.is-bumped { animation: none; }
}

.header-link {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .55rem .7rem;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--ink);
    font: inherit;
    font-weight: 600;
    font-size: .92rem;
    white-space: nowrap;
    cursor: pointer;
}
.header-link:hover { background: var(--bg-soft); color: var(--accent-dark); }
.header-link .icon { width: 1.15rem; height: 1.15rem; }
.header-logout { display: inline-flex; }
/* Yalnızca dar ekranda, yazı gizlendiğinde görünen simge */
.icon-mobile { display: none; }

.nav-toggle {
    display: none;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: var(--radius-sm);
    padding: .5rem .6rem;
    cursor: pointer;
    color: var(--ink);
}

.main-nav {
    border-bottom: 1px solid var(--line);
    background: #fff;
    transition: transform .25s ease, opacity .2s ease, visibility 0s;
}
/* Menü satırı yüksekliği değiştirilerek değil, başlığın arkasına kaydırılarak
   gizlenir. Yükseklik değişseydi sayfa boyu da değişir, tarayıcının kaydırma
   sabitlemesi (scroll anchoring) konumu geri iter ve menü açılıp kapanarak
   sayfayı titretirdi. */
.site-top.is-collapsed .main-nav {
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform .25s ease, opacity .2s ease, visibility 0s .25s;
}
/* Gizlenen satırın bıraktığı boşluk alttaki içeriğe tıklamayı engellemesin */
.site-top.is-collapsed { pointer-events: none; }
.site-top.is-collapsed > * { pointer-events: auto; }
.site-top.is-collapsed > .main-nav { pointer-events: none; }
/* Kurallar yalnızca menü çubuğunu hedefler; mega menü bu düzenin dışındadır */
.main-nav > .container > ul {
    display: flex;
    gap: .25rem;
    list-style: none;
    margin: 0;
    padding: 0;
    overflow-x: auto;
    scrollbar-width: none;
}
.main-nav > .container > ul::-webkit-scrollbar { display: none; }
.main-nav > .container > ul a {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .75rem .9rem;
    color: var(--muted);
    font-weight: 600;
    font-size: .93rem;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
}
.main-nav > .container > ul a:hover { color: var(--accent-dark); }
.main-nav > .container > ul a.is-active { color: var(--ink); border-bottom-color: var(--brand); }
.main-nav { position: relative; z-index: 1; }
/* "Parçacıya direkt sor": satırın sağ ucunda, canlı destek hattını açar */
.main-nav > .container > ul .nav-ask { margin-left: auto; display: flex; align-items: center; padding-left: .75rem; }
.main-nav > .container > ul .nav-ask button {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .45rem .95rem;
    border: 0;
    border-radius: 999px;
    background: var(--brand);
    color: #fff;
    font: inherit;
    font-weight: 600;
    font-size: .93rem;
    white-space: nowrap;
    cursor: pointer;
}
.main-nav > .container > ul .nav-ask button:hover { background: var(--brand-dark); }

/* ---------- Asfalt üst bant ---------- */
/* Logo, arama ve sepet satırı koyu zemindedir (logo-dark.svg ile); altındaki
   kategori çubuğu beyaz kalır. Kurallar yalnızca .site-header içini etkiler. */
.site-header {
    background: rgba(23, 25, 28, .97);
    border-bottom-color: #17191c;
}
.site-header .header-link { color: #fff; }
.site-header .header-link:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.site-header .cart-button { background: rgba(255, 255, 255, .1); color: #fff; }
.site-header .cart-button:hover { background: rgba(255, 255, 255, .18); }
.site-header .cart-count { background: var(--brand); box-shadow: 0 0 0 2px #17191c; }
.site-header .nav-toggle { background: transparent; border-color: rgba(255, 255, 255, .25); color: #fff; }
.site-header .search-form { background: #fff; border-color: transparent; }
.site-header .search-form:focus-within { border-color: var(--brand); }
/* Açık menünün öğesi çizgiyle işaretlenir; panel açıkken bulunulan sayfanın
   çizgisi gizlenir ki aynı anda iki öğe seçili görünmesin */
.main-nav > .container > ul .nav-item.is-open > a { color: var(--accent-dark); border-bottom-color: var(--brand); }
.main-nav:has(.nav-item.is-open) > .container > ul li:not(.is-open) > a.is-active { color: var(--muted); border-bottom-color: transparent; }
.main-nav:has(.nav-item.is-open) > .container > ul li:not(.is-open) > a.is-active:hover { color: var(--accent-dark); }

/* ---------- Mobil menü ---------- */
.mobile-backdrop {
    position: fixed;
    inset: 0;
    z-index: 75;
    background: rgba(23, 25, 28, .45);
    opacity: 0;
    transition: opacity .25s ease;
}
.mobile-backdrop.is-open { opacity: 1; }
.mobile-backdrop[hidden] { display: none; }

.mobile-menu {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 80;
    display: flex;
    flex-direction: column;
    width: min(400px, 92vw);
    background: #fff;
    box-shadow: var(--shadow-lg);
    transform: translateX(-100%);
    transition: transform .25s ease;
}
.mobile-menu.is-open { transform: translateX(0); }
.mobile-menu[hidden] { display: none; }

.mobile-menu-head {
    position: relative;
    display: grid;
    place-items: center;
    padding: .9rem 1rem;
    border-bottom: 1px solid var(--line);
}
.mobile-menu-head .logo img { height: 34px; }
.mobile-menu-close {
    position: absolute;
    right: .75rem;
    top: 50%;
    transform: translateY(-50%);
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 0;
    background: transparent;
    color: var(--ink);
    cursor: pointer;
}
.mobile-menu-close .icon { width: 1.5rem; height: 1.5rem; }

/* Paneller üst üste yığılır; alt kategoriye geçince yenisi kayarak girer */
.mobile-menu-body { position: relative; flex: 1; overflow: hidden; }
.mobile-panel {
    position: absolute;
    inset: 0;
    overflow-y: auto;
    padding: 1rem;
    background: #fff;
    transition: transform .25s ease;
}
.mobile-panel.is-entering { transform: translateX(100%); }
.mobile-panel.is-hidden { visibility: hidden; }

.mobile-panel h3 {
    margin: .5rem .25rem .6rem;
    font-size: .95rem;
    color: var(--ink);
}
.mobile-panel h3 + .mobile-list { margin-bottom: 1.25rem; }

.mobile-panel-head {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: .9rem;
}
.mobile-panel-head strong { font-size: 1rem; }
.mobile-back {
    display: inline-flex;
    align-items: center;
    gap: .2rem;
    padding: .35rem .6rem .35rem .35rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: var(--muted);
    font: inherit;
    font-size: .82rem;
    cursor: pointer;
}
.mobile-back .icon { width: 1.1rem; height: 1.1rem; transform: rotate(180deg); }

.mobile-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.mobile-item {
    display: flex;
    align-items: center;
    gap: .7rem;
    width: 100%;
    padding: .8rem 1rem;
    border: 0;
    border-radius: 999px;
    background: var(--bg-soft);
    color: var(--ink);
    font: inherit;
    font-size: .95rem;
    text-align: left;
    cursor: pointer;
}
.mobile-item:hover { background: #eef0f4; color: var(--ink); }
.mobile-item span { flex: 1; min-width: 0; }
.mobile-item .icon { width: 1.25rem; height: 1.25rem; color: var(--accent-dark); flex: 0 0 auto; }
/* Satır sonundaki ok soluk kalır */
.mobile-item .icon:last-child { color: var(--muted); width: 1.1rem; height: 1.1rem; }
.mobile-item.is-all { background: var(--brand-soft); font-weight: 600; }
.mobile-logout { margin: 0; display: block; }

.mobile-menu-foot {
    border-top: 1px solid var(--line);
    padding: .85rem 1rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: .6rem 1rem;
}
.mobile-menu-foot a,
.mobile-menu-foot button { display: inline-flex; align-items: center; gap: .6rem; color: var(--ink); font-weight: 600; }
.mobile-menu-foot button { padding: 0; border: 0; background: none; font: inherit; font-weight: 600; cursor: pointer; }
.mobile-menu-foot .icon { width: 1.3rem; height: 1.3rem; color: var(--accent-dark); }

/* ---------- Mega menü ---------- */
/* Karartma menü çubuğunun hemen altından başlar; başlık aydınlık kalır */
.mega-backdrop {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 100vh;
    z-index: 40;
    background: rgba(23, 25, 28, .35);
}
.mega-backdrop[hidden] { display: none; }

.mega {
    position: absolute;
    top: 100%;
    /* Tam genişlik yerine başlık konteyneri kadar açılır; içerik başlıkla aynı hizada kalır */
    left: 50%;
    transform: translateX(-50%);
    width: min(1200px + 2rem, 100%);
    z-index: 50;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 0 0 14px 14px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}
.mega[hidden] { display: none; }

.mega-inner {
    display: grid;
    grid-template-columns: 265px minmax(0, 1fr);
    gap: 1.5rem;
    padding: 1.1rem 0 1.4rem;
    max-height: min(72vh, 620px);
}

.mega-list {
    list-style: none;
    margin: 0;
    padding: 0 .75rem 0 0;
    border-right: 1px solid var(--line);
    overflow-y: auto;
    scrollbar-width: thin;
}
.mega-list li + li { margin-top: .1rem; }
.mega-list-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    white-space: normal;
    padding: .5rem .7rem;
    border-radius: var(--radius-sm);
    color: var(--ink);
    font-size: .92rem;
    line-height: 1.3;
}
.mega-list-link .icon { width: 1rem; height: 1rem; color: var(--muted); flex: 0 0 auto; }
.mega-list-link:hover,
.mega-list-link.is-active {
    background: var(--brand-soft);
    color: var(--accent-dark);
    font-weight: 600;
}
.mega-list-link.is-active .icon { color: var(--accent-dark); }

.mega-panels { overflow-y: auto; padding-right: .25rem; }
.mega-panel[hidden] { display: none; }
.mega-panel h3 {
    margin: 0 0 .9rem;
    font-size: 1rem;
    font-weight: 700;
}
.mega-panel h3 + .mega-grid { margin-bottom: 1.6rem; }

/* Alt kategorinin ürünleri: yan yana beş ürün */
.mega-products-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: .9rem; }
.mega-products-head h3 { margin: 0; }
.mega-products-head a { display: inline-flex; align-items: center; gap: .15rem; color: var(--accent-dark); font-size: .84rem; font-weight: 700; white-space: nowrap; }
.mega-products-head a .icon { width: .9rem; height: .9rem; }
.mega-products { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .8rem; margin-bottom: 1.5rem; }
.mega-product {
    display: flex;
    flex-direction: column;
    gap: .4rem;
    padding: .55rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--ink);
    transition: border-color .15s ease, box-shadow .15s ease;
}
.mega-product:hover { border-color: var(--brand); box-shadow: var(--shadow); }
.mega-product-media { display: block; aspect-ratio: 1; border-radius: 8px; background: var(--media-bg); overflow: hidden; }
.mega-product-media img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.mega-product-name {
    font-size: .78rem;
    line-height: 1.3;
    min-height: 2.6em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.mega-product-price { font-size: .9rem; color: var(--ink); }

.mega-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
    gap: .9rem;
}
.mega-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5rem;
    padding: .5rem .35rem;
    border-radius: var(--radius-sm);
    color: var(--ink);
    text-align: center;
}
.mega-tile:hover { background: var(--bg-soft); color: var(--accent-dark); }
.mega-tile-media {
    display: grid;
    place-items: center;
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: var(--bg-soft);
    overflow: hidden;
}
.mega-tile-media img { width: 100%; height: 100%; object-fit: contain; }
.mega-tile-media img.mega-tile-photo { object-fit: cover; }
.mega-tile-media .icon { width: 1.9rem; height: 1.9rem; color: var(--accent-dark); }
.mega-tile-name {
    font-size: .8rem;
    line-height: 1.3;
    /* Uzun kategori adları komşu kutunun üzerine taşmaz */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}

/* Marka panelleri: sol sütun yok, kutular tüm genişliğe yayılır */
.mega-wide { padding: 1.1rem 0 1.4rem; max-height: min(72vh, 620px); overflow-y: auto; scrollbar-width: thin; }
.mega-wide .make-grid { grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); padding: 4px 2px; }
.mega-wide .brand-grid { margin-bottom: 0; padding: 2px; }
.mega-wide .make-logo { height: 64px; }

.mega-loading { padding: 2rem; text-align: center; color: var(--muted); }

.sidebar-sub { list-style: none; margin: .25rem 0 .5rem .75rem; padding: 0 0 0 .6rem; border-left: 2px solid var(--line); }
.sidebar-sub a { font-size: .88rem; }

/* ---------- Hero ---------- */
.hero {
    background: linear-gradient(135deg, #f4f3ef 0%, #e6e7ea 100%);
    padding: clamp(2rem, 5vw, 3.75rem) 0;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 2rem;
    align-items: center;
}
.hero h1 { font-size: clamp(1.8rem, 4vw, 2.75rem); }
.hero p { color: var(--muted); font-size: 1.05rem; max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.25rem; }
.hero-art {
    display: grid;
    place-items: center;
    color: var(--brand);
    opacity: .9;
}
.hero-art img { width: min(280px, 62vw); height: auto; filter: drop-shadow(0 12px 28px rgba(23, 25, 28, .15)); }

/* ---------- Bölümler ---------- */
.section { padding: clamp(2rem, 4vw, 3rem) 0; }
.section-soft { background: var(--bg-soft); }
.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.section-head h2 { font-size: clamp(1.25rem, 2.5vw, 1.6rem); margin: 0; }
.section-head p { margin: .25rem 0 0; color: var(--muted); font-size: .95rem; }

/* ---------- Yatay kaydırmalı şerit ---------- */
.rail-all {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    font-size: .9rem;
    font-weight: 600;
    color: var(--accent-dark);
    white-space: nowrap;
}
.rail-all .icon { width: 1rem; height: 1rem; }

.rail-wrap { position: relative; }
.rail {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    /* Kartların gölgesi ve odak halkası kırpılmasın */
    padding: .25rem .25rem 1rem;
    margin: -.25rem -.25rem -1rem;
}
.rail::-webkit-scrollbar { display: none; }
.rail > * { flex: 0 0 230px; scroll-snap-align: start; }
.rail .brand-tile { flex-basis: 150px; }

.rail-nav {
    position: absolute;
    top: 45%;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 2.4rem;
    height: 2.4rem;
    transform: translateY(-50%);
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: var(--ink);
    box-shadow: 0 6px 16px rgba(16, 42, 67, .12);
    cursor: pointer;
}
.rail-nav:hover { border-color: var(--brand); }
.rail-nav[hidden] { display: none; }
.rail-prev { left: -1.1rem; }
.rail-next { right: -1.1rem; }

/* ---------- Kategori kartları ---------- */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
}
.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5rem;
    padding: 1.4rem 1rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    text-align: center;
    transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.category-card:hover {
    border-color: var(--brand);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}
.category-card .icon { width: 2.5rem; height: 2.5rem; color: var(--brand); }
.category-card strong { font-size: .98rem; }
.category-card small { color: var(--muted); }

/* ---------- Ürün kartları ---------- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.25rem;
}
.product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.product-card:hover { border-color: #d6dde6; box-shadow: var(--shadow-lg); }

.product-media-wrap { position: relative; padding: .5rem .5rem 0; }
/* Kart kenarı → beyaz boşluk → yuvarlak köşeli gri görsel alanı */
.product-media {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    background: var(--media-bg);
    border-radius: var(--radius-sm);
    overflow: hidden;
}
/* Ürün fotoğraflarının beyaz zemini multiply ile gri fona karışır;
   böylece görsel fonun üstünde beyaz bir kutu gibi durmaz */
.product-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
    opacity: 0;
    transition: opacity .12s ease;
    pointer-events: none;
}
.product-media img.is-active { opacity: 1; }

.hover-dots {
    position: absolute;
    left: 50%;
    bottom: .55rem;
    z-index: 2;
    display: flex;
    gap: .28rem;
    align-items: center;
    padding: .28rem .55rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, .42);
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity .15s ease;
    pointer-events: none;
}
.product-media-wrap:hover .hover-dots { opacity: 1; }
.hover-dots i {
    display: block;
    width: .42rem;
    height: .42rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, .45);
}
.hover-dots i.is-active { background: #fff; }

@media (hover: none) {
    .hover-dots { display: none; }
}

/* Rozetler gri görsel alanının sol üst köşesinden aşağı doğru dizilir */
.badge-stack {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .3rem;
    pointer-events: none;
}
.badge-stack .tag { border-radius: 6px; }
.tag {
    padding: .22rem .55rem;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-size: .72rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.35;
}
.tag-hot { background: #f0762a; }
.tag-new { background: var(--accent-dark); }
.tag-fast { background: #1f9d55; }
.tag-muted { background: #e9edf2; color: #4a5a6b; }
.tag-out {
    position: absolute;
    top: 1.1rem;
    right: 3.5rem;
    background: var(--ink);
    border-radius: 999px;
}

.favorite-toggle {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: grid;
    place-items: center;
    width: 2.1rem;
    height: 2.1rem;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .9);
    color: #8a97a6;
    cursor: pointer;
    transition: color .15s ease, transform .15s ease;
}
.favorite-toggle:hover { color: #e0245e; transform: scale(1.08); }
.favorite-toggle.is-active { color: #e0245e; }
.favorite-toggle.is-active .icon { fill: currentColor; }
.favorite-toggle .icon { width: 1.25rem; height: 1.25rem; }

.product-body { padding: .8rem .9rem 1rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.product-cat { font-size: .76rem; color: var(--accent); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.product-name { font-size: .92rem; font-weight: 400; margin: 0; line-height: 1.4; }
.product-name strong { font-weight: 700; }
.product-name a { color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-name a:hover { color: var(--accent-dark); }

.rating { display: flex; align-items: center; gap: .3rem; font-size: .82rem; color: var(--muted); }
.rating .stars { display: inline-flex; gap: 1px; color: #ffc21a; }
.rating .icon { width: .95rem; height: .95rem; }
.rating b { color: var(--ink); }

.product-prices {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: .35rem .5rem;
    margin-top: auto;
    padding-top: .5rem;
}
.price-now { font-size: 1.15rem; font-weight: 800; color: var(--ink); }
.price-now.is-deal { color: #1f9d55; }
.price-old { font-size: .88rem; color: var(--muted); text-decoration: line-through; flex-basis: 100%; }
.price-note { font-size: .82rem; color: #1f9d55; font-weight: 600; }
.product-card .btn { margin-top: .7rem; }

.detail-badges { display: flex; flex-wrap: wrap; gap: .4rem; margin: .5rem 0 .75rem; }
.detail-badges .tag { border-radius: var(--radius-sm); }
.favorite-inline {
    position: static;
    width: 2.6rem;
    height: 2.6rem;
    border: 1px solid var(--line);
    background: #fff;
}

/* ---------- Ürün detay ---------- */
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .35rem .5rem;
    list-style: none;
    padding: 1rem 0 0;
    margin: 0;
    font-size: .8125rem;
    font-weight: 700;
    color: #484848;
}
.breadcrumb li { display: flex; align-items: center; gap: .5rem; min-width: 0; }
.breadcrumb a { color: inherit; display: inline-flex; align-items: center; }
.breadcrumb a:hover { color: var(--accent-dark); }
/* İlk adım yalnızca ev simgesidir; adı ekran okuyucular için gizli kalır */
.breadcrumb .icon { width: 1.25rem; height: 1.25rem; vertical-align: 0; }
/* Son adım bulunulan sayfadır; bağlantı olsa da soluk ve vurgusuz görünür */
.breadcrumb .active a { color: #9b9b9b; font-weight: 400; cursor: default; }
.breadcrumb .active a:hover { color: #9b9b9b; }
.breadcrumb li + li::before {
    content: "";
    flex: none;
    width: .5rem;
    height: .5rem;
    margin-right: .15rem;
    border-top: 1.5px solid #9b9b9b;
    border-right: 1.5px solid #9b9b9b;
    transform: rotate(45deg) scale(.8);
}

.product-detail {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 2.5rem;
    padding: 1.5rem 0 2rem;
}
.product-detail .gallery {
    background: transparent;
}
.detail-meta { display: flex; flex-wrap: wrap; gap: 1rem; color: var(--muted); font-size: .9rem; }
.detail-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 .75rem; margin: 1rem 0; }
/* Üstü çizili fiyat, indirimli fiyatın bir üst satırında durur */
.detail-price .price-old { flex-basis: 100%; font-size: 1rem; line-height: 1.2; }
.detail-price .price-now { font-size: 1.9rem; white-space: nowrap; }
.stock-line { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; font-size: .92rem; }
.in-stock { color: var(--success); }
.out-stock { color: var(--danger); }

.qty {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    overflow: hidden;
}
.qty button {
    width: 40px; height: 42px;
    border: 0;
    background: var(--bg-soft);
    font-size: 1.15rem;
    cursor: pointer;
    color: var(--ink);
}
.qty button:hover { background: #eceef2; }
/* Son adette azaltma düğmesi silme işlevi görür */
.qty button.is-remove { display: inline-flex; align-items: center; justify-content: center; color: var(--danger); }
.qty button.is-remove .icon { width: 1.1rem; height: 1.1rem; }
.qty button.is-remove:hover { background: #fdecec; }
.qty input {
    width: 56px; height: 42px;
    border: 0;
    text-align: center;
    font: inherit;
    font-weight: 600;
    outline: none;
    -moz-appearance: textfield;
}
.qty input::-webkit-outer-spin-button,
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.buy-row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin: 1.25rem 0; }
.prose { color: #374151; }
.prose h3 { margin-top: 1.5rem; font-size: 1.05rem; }

/* ---------- Filtre / listeleme ---------- */
.listing { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 2rem; align-items: start; }
/* Kategori düğmesi yalnızca dar ekranda, kenar çubuğu yerine görünür */
.listing-cats { display: none; }
/* Gezinti yolu ürün sütununda, başlığın hemen üstünde durur */
.listing .breadcrumb { padding: 0; margin-bottom: .75rem; }
.sidebar {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.1rem;
    background: #fff;
    position: sticky;
    top: calc(var(--header-h) + 1rem);
}
.sidebar h3 { font-size: .95rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.sidebar ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .15rem; }
.sidebar a {
    display: flex;
    justify-content: space-between;
    gap: .5rem;
    padding: .5rem .6rem;
    border-radius: var(--radius-sm);
    font-size: .93rem;
    color: var(--muted);
}
.sidebar a:hover { background: var(--bg-soft); color: var(--ink); }
.sidebar a.is-active { background: var(--brand-soft); color: var(--ink); font-weight: 700; }
.sidebar a span { color: #9aa3af; font-size: .82rem; }

.listing-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}
.listing-toolbar select {
    padding: .55rem .8rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    font: inherit;
    background: #fff;
}

.pagination { display: flex; flex-wrap: wrap; gap: .35rem; justify-content: center; margin-top: 2rem; }
.pagination a, .pagination span {
    min-width: 40px;
    padding: .5rem .7rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    text-align: center;
    font-size: .92rem;
    color: var(--muted);
}
.pagination a:hover { border-color: var(--brand); color: var(--brand); }
.pagination .is-active { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); font-weight: 700; }

.load-more {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .75rem;
    margin-top: 2rem;
}
.load-more-btn {
    min-width: min(100%, 280px);
    padding: .85rem 1.5rem;
    font-weight: 600;
}
.load-more-btn:disabled {
    opacity: .65;
    cursor: wait;
}
.load-more-status {
    margin: 0;
    color: var(--muted);
    font-size: .92rem;
}
.load-more-sentinel {
    width: 100%;
    height: 1px;
    pointer-events: none;
}

/* ---------- Ödeme akışı başlığı (sepet, sipariş) ---------- */
.checkout-page { background: var(--bg-soft); }
.checkout-header { background: #fff; border-bottom: 1px solid var(--line); }
.checkout-header-inner {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    min-height: 72px;
}
.checkout-header .logo-full { height: 32px; width: auto; }
.checkout-secure {
    display: flex;
    flex-direction: column;
    gap: .1rem;
    padding-left: 1.5rem;
    border-left: 1px solid var(--line);
}
.checkout-secure strong {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-size: .95rem;
    color: var(--success);
}
.checkout-secure .icon { width: 1rem; height: 1rem; }
.checkout-secure small { color: var(--muted); font-size: .78rem; }
.checkout-help { margin-left: auto; color: var(--muted); font-weight: 600; font-size: .92rem; }
.checkout-help:hover { color: var(--accent-dark); }

.checkout-footer { border-top: 1px solid var(--line); background: #fff; padding: 1.25rem 0; }
.checkout-footer .container {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    justify-content: space-between;
    color: var(--muted);
    font-size: .85rem;
}
.checkout-footer a:hover { color: var(--accent-dark); }

/* ---------- Sepet ---------- */
.section-tight { padding: .5rem 0 2.5rem; }
.cart-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.cart-close {
    padding: .3rem .7rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--muted);
    font-size: .85rem;
}
.cart-close:hover { color: var(--ink); border-color: #cfd4db; }

.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 1.5rem; align-items: start; }

.cart-notice {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: .75rem 1rem;
    margin-bottom: 1rem;
    border: 1px solid #cfe8d9;
    border-radius: var(--radius);
    background: #f1f9f4;
    font-size: .92rem;
}
.cart-notice-main { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; color: #14603a; }
.cart-notice-main .icon { width: 1.15rem; height: 1.15rem; color: var(--success); }
.cart-notice-pill {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .3rem .7rem;
    border: 1px solid #cfe8d9;
    border-radius: 999px;
    background: #fff;
    font-size: .85rem;
    font-weight: 600;
    color: #14603a;
}
.cart-notice-pill .icon { width: .95rem; height: .95rem; color: var(--success); }

.cart-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.cart-box-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.1rem;
    border-bottom: 1px solid var(--line);
}
.cart-box-head h2 { margin: 0; font-size: 1.15rem; }
.cart-box-head h2 span { color: var(--muted); font-weight: 500; font-size: .9rem; }
.cart-clear {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    border: 0;
    background: transparent;
    padding: 0;
    font: inherit;
    font-size: .88rem;
    font-weight: 600;
    color: var(--danger);
    cursor: pointer;
}
.cart-clear .icon { width: 1rem; height: 1rem; }

.cart-line {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
    padding: 1rem 1.1rem;
    border-bottom: 1px solid var(--line);
}
.cart-line:last-child { border-bottom: 0; }
.cart-line img { width: 72px; height: 72px; object-fit: contain; border-radius: var(--radius-sm); background: var(--bg-soft); }
.cart-line-info h3 { font-size: .95rem; font-weight: 500; margin: 0 0 .35rem; line-height: 1.35; }
.cart-line-info h3 a:hover { color: var(--accent-dark); }
.cart-line-prices { display: flex; align-items: baseline; gap: .5rem; }
.cart-line-prices .price-now { font-size: 1.05rem; font-weight: 700; }
.cart-line-prices .price-old { color: var(--muted); text-decoration: line-through; font-size: .85rem; }
.cart-line-gain { display: flex; align-items: center; gap: .5rem; margin-top: .35rem; }
.gain-pill {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .18rem .5rem;
    border-radius: 999px;
    background: #eaf6ef;
    color: #14603a;
    font-size: .78rem;
    font-weight: 700;
}
.gain-pill .icon { width: .85rem; height: .85rem; }
.cart-line-gain small { color: var(--muted); font-size: .78rem; }

.cart-line-actions { display: flex; align-items: center; gap: .5rem; }
.cart-line-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 34px;
    padding: 0 .7rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--muted);
    font: inherit;
    font-size: .85rem;
    cursor: pointer;
}
.cart-line-btn:hover { border-color: #cfd4db; color: var(--ink); }
.cart-line-btn .icon { width: 1.05rem; height: 1.05rem; }
/* Kart ızgarasındaki kalp mutlak konumludur; sepet satırında akışta kalmalı */
.cart-line-btn.favorite-toggle {
    position: static;
    width: auto;
    height: 34px;
    border-radius: var(--radius-sm);
    background: #fff;
}
.cart-line-btn.favorite-toggle:hover { transform: none; }
.cart-line-btn.favorite-toggle.is-active { color: var(--danger); border-color: #f6c9c5; }
.cart-line-btn.favorite-toggle.is-active .icon { fill: currentColor; }

.cart-recent-title { margin: 1.75rem 0 1rem; font-size: 1.15rem; }
.product-grid-sm { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 1rem; }

.cart-aside { position: sticky; top: 1rem; display: grid; gap: 1rem; }
.summary-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.25rem;
    background: #fff;
}
.summary-card h2 { margin: 0 0 .75rem; font-size: 1.15rem; }
.summary-row { display: flex; justify-content: space-between; gap: 1rem; padding: .4rem 0; color: var(--muted); }
.summary-row b { color: var(--ink); font-weight: 700; }
.summary-row b.is-minus { color: var(--success); }
.summary-row s { color: var(--muted); font-weight: 500; margin-right: .3rem; }
.summary-row .is-free { color: var(--success); }
.summary-total {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding-top: .75rem;
    margin-top: .5rem;
    border-top: 1px solid var(--line);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--ink);
}
.summary-hint {
    display: flex;
    align-items: center;
    gap: .4rem;
    margin: .75rem 0 0;
    padding: .6rem .75rem;
    border-radius: var(--radius-sm);
    background: var(--brand-soft);
    color: var(--ink);
    font-size: .82rem;
}
.summary-hint .icon { width: 1.05rem; height: 1.05rem; flex: 0 0 auto; }
.summary-cta {
    margin-top: 1rem;
    padding: .9rem 1rem;
    background: var(--danger);
    color: #fff;
    font-size: 1rem;
}
.summary-cta:hover { background: #9e2f22; }
.btn-disabled { pointer-events: none; opacity: .55; }
.summary-note { margin: .75rem 0 0; color: var(--muted); font-size: .78rem; line-height: 1.5; }

/* Sipariş sonrası şase numarasıyla uygunluk kontrolü bilgilendirmesi */
.fit-check {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    padding: 1rem 1.25rem;
    border: 1px solid #bfe3cf;
    border-radius: var(--radius);
    background: #eef8f2;
    font-size: .85rem;
    line-height: 1.5;
}
.fit-check .icon { width: 1.5rem; height: 1.5rem; margin-top: .1rem; color: var(--success); flex: 0 0 auto; }
.fit-check b { display: block; margin-bottom: .2rem; font-size: .92rem; color: var(--ink); }
.fit-check p { margin: 0; color: var(--ink); }

.trust-list {
    list-style: none;
    margin: 0;
    padding: 1.1rem 1.25rem;
    display: grid;
    gap: .8rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    font-size: .88rem;
}
.trust-list li { display: flex; align-items: center; gap: .6rem; }
.trust-list .icon { width: 1.1rem; height: 1.1rem; color: var(--success); flex: 0 0 auto; }

/* ---------- Formlar ---------- */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: .88rem; font-weight: 600; color: #374151; }
.field input, .field textarea, .field select {
    padding: .65rem .8rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    font: inherit;
    background: #fff;
    outline: none;
    width: 100%;
}
.field input:focus, .field textarea:focus, .field select:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(217, 18, 15, .22);
}
.field textarea { min-height: 110px; resize: vertical; }
.field small { color: var(--muted); font-size: .8rem; }
.check { display: flex; align-items: center; gap: .5rem; font-size: .92rem; }
.check input { width: 18px; height: 18px; accent-color: var(--brand); }

/* ---------- Uyarılar ---------- */
.alert {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    padding: .8rem 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    margin-bottom: 1rem;
    font-size: .93rem;
}
.alert-success { background: #e8f6ee; border-color: #bfe3cd; color: #145c36; }
.alert-danger { background: #fdeceb; border-color: #f6c9c5; color: #8f271c; }
.alert-info { background: #eaf4fb; border-color: #c5dff2; color: #1c5578; }

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--muted);
}
.empty-state .icon { width: 3.5rem; height: 3.5rem; color: #cbd1d9; margin-bottom: .5rem; }
/* Sonuçsuz arama: ziyaretçiyi canlı desteğe yönlendiren boş durum */
.empty-ask h2 { color: var(--ink); }
.empty-ask > .icon { color: var(--brand); }
.empty-ask p { max-width: 34rem; margin: .35rem auto; }
.empty-ask-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin: 1.1rem 0 .6rem; }
.empty-ask-actions .btn .icon { width: 1.15rem; height: 1.15rem; margin: 0; color: inherit; }

/* ---------- Bildirim ---------- */
.toast-stack {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 80;
    display: grid;
    gap: .5rem;
    max-width: min(360px, calc(100vw - 2rem));
}
.toast {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .8rem 1rem;
    border-radius: var(--radius-sm);
    background: var(--ink);
    color: #fff;
    box-shadow: var(--shadow-lg);
    font-size: .92rem;
    animation: toast-in .2s ease;
}
.toast-success { background: #14653c; }
.toast-danger { background: #96271b; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

/* ---------- Avantaj şeridi ---------- */
.perks { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.perk { display: flex; gap: .8rem; align-items: center; padding: 1rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.perk .icon { width: 2rem; height: 2rem; color: var(--accent); }
.perk strong { display: block; font-size: .95rem; }
.perk small { color: var(--muted); }
/* Her sayfada alt bilgi bağlantılarının üstünde yer alır */
.perks-section { border-top: 1px solid var(--line); }

/* Sepet güncellenirken satırlar ve özet panosu tıklamaya kapanır */
.is-busy { opacity: .55; pointer-events: none; transition: opacity .15s ease; }

/* ---------- Alt bilgi üstü bağlantı listesi ---------- */
.seo-links { border-top: 1px solid var(--line); padding: 2.5rem 0; background: #fff; }
.seo-links-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem; }
.seo-links h2 { font-size: 1.15rem; margin: 0 0 1.25rem; }
.link-columns {
    list-style: none;
    margin: 0;
    padding: 0;
    /* Bağlantılar sütunlara bölünür, satırlar sütun sınırında kırılmaz */
    columns: 3 150px;
    column-gap: 1.5rem;
}
.link-columns li { break-inside: avoid; margin-bottom: .7rem; }
.link-columns a { color: var(--muted); font-size: .85rem; line-height: 1.4; }
.link-columns a:hover { color: var(--accent-dark); }

/* ---------- Alt bilgi ---------- */
.site-footer {
    margin-top: 3rem;
    background: var(--bg-soft);
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: .9rem;
}
.site-footer .container { padding-top: 2.5rem; }
.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)) 1.1fr 1.2fr;
    gap: 2rem;
    padding-bottom: 2.5rem;
}
.site-footer h4 { color: var(--ink); font-size: .98rem; margin: 0 0 1.1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
/* Bağlantı sütunları alt alta; sosyal medya listesi kendi düzenini kullanır */
.footer-col ul { display: grid; gap: .75rem; }
.footer-col a { color: var(--muted); }
.footer-col a:hover { color: var(--accent-dark); }

.footer-phone {
    display: block;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--danger);
}
.footer-phone:hover { color: var(--danger); text-decoration: underline; }
.footer-hours { margin: .3rem 0 1.1rem; font-size: .85rem; }
.footer-help-q { margin: 0 0 .6rem; font-weight: 700; color: var(--danger); font-size: .85rem; }
/* Sütun bağlantı rengini geçmek için seçici footer-col ile birlikte yazılır */
.footer-col a.footer-support,
.footer-col a.footer-support:hover { color: #fff; }
.footer-support { background: var(--danger); padding: .65rem 1rem; }
.footer-support:hover { background: #9e2f22; }

.footer-logo { display: inline-block; }
.footer-logo img { display: block; width: 190px; max-width: 100%; height: auto; }

.footer-strips {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
    padding: 1.75rem 0 2.25rem;
    border-top: 1px solid var(--line);
}
.site-footer h5 { margin: 0 0 1rem; font-size: .95rem; color: var(--ink); }
.footer-badges { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.footer-badges img {
    display: block;
    height: 46px;
    width: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.footer-social { display: flex; flex-wrap: wrap; gap: 1.1rem; align-items: start; }
.footer-social li { display: grid; justify-items: center; gap: .35rem; font-size: .72rem; }
.footer-social a {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid var(--line);
    color: var(--ink);
}
.footer-social a:hover { border-color: var(--brand); color: var(--brand-dark); }
.footer-social .icon { width: 1.2rem; height: 1.2rem; }

.footer-bottom {
    background: var(--ink);
    color: #a9b3bf;
    font-size: .78rem;
    padding: 1rem 0;
}
.footer-bottom .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: .75rem;
    padding-top: 0;
}
.footer-bottom p { margin: 0; line-height: 1.7; }
.footer-bottom-right { text-align: right; }
.footer-bottom .icon { width: .85rem; height: .85rem; color: var(--danger); fill: currentColor; vertical-align: -1px; }

.to-top {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 60;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--ink);
    box-shadow: var(--shadow);
    cursor: pointer;
}
.to-top[hidden] { display: none; }
.to-top:hover { border-color: var(--brand); color: var(--brand-dark); }
.to-top .icon { width: 1.3rem; height: 1.3rem; }

/* ---------- Veri tabloları ve durum etiketleri ---------- */
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: .92rem; }
table.data th, table.data td { padding: .75rem 1rem; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.data th { background: var(--bg-soft); font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
table.data tbody tr:hover { background: #fafbfc; }
table.data td.wrap { white-space: normal; min-width: 220px; overflow-wrap: anywhere; word-break: break-word; }
table.data img.thumb { width: 44px; height: 44px; object-fit: cover; border-radius: 8px; background: var(--bg-soft); }
.row-actions { display: flex; gap: .4rem; }

.status {
    display: inline-block;
    padding: .2rem .6rem;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 600;
}
.status-pending { background: #fff4e0; color: #96660d; }
.status-confirmed { background: #e6f1fd; color: #1a5ba6; }
.status-shipped { background: #ecebfd; color: #4b3fb0; }
.status-delivered { background: #e6f6ec; color: #14653c; }
.status-cancelled { background: #fdecea; color: #96271b; }

/* ---------- Sepete eklendi paneli ---------- */
.drawer-backdrop {
    position: fixed;
    inset: 0;
    z-index: 70;
    background: rgba(23, 25, 28, .45);
    opacity: 0;
    transition: opacity .2s ease;
}
.drawer-backdrop.is-open { opacity: 1; }
.drawer-backdrop[hidden] { display: none; }

.side-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 71;
    width: min(540px, 100%);
    display: flex;
    flex-direction: column;
    background: #fff;
    box-shadow: var(--shadow-lg);
    transform: translateX(100%);
    transition: transform .25s ease;
}
.side-drawer.is-open { transform: translateX(0); }
.side-drawer[hidden] { display: none; }

.drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem 1.25rem;
    border-bottom: 1px solid var(--line);
}
.drawer-head h2 {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin: 0;
    font-size: 1.1rem;
    color: var(--ink);
}
.drawer-head .icon { width: 1.2rem; height: 1.2rem; }
.drawer-close {
    display: grid;
    place-items: center;
    width: 2.2rem;
    height: 2.2rem;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
}
.drawer-close:hover { background: var(--bg-soft); color: var(--ink); }

.drawer-body { flex: 1; overflow-y: auto; padding: 1.25rem; }

.drawer-item {
    display: flex;
    gap: 1rem;
    align-items: center;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
}
.drawer-item-media { flex: 0 0 90px; }
.drawer-item-media img { width: 90px; height: 90px; object-fit: contain; }
.drawer-item-name { color: var(--ink); font-size: .95rem; line-height: 1.4; }
.drawer-item-name:hover { color: var(--accent-dark); }
.drawer-item-price { margin-top: .4rem; font-weight: 800; color: #1f9d55; }

.drawer-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .75rem;
    margin: 1.1rem 0 1.75rem;
}
.drawer-actions .btn { margin: 0; }

.drawer-related h3 { margin: 0 0 .9rem; font-size: 1.05rem; }

.drawer-doc h1 { font-size: 1.25rem; margin: 0 0 1rem; }
.drawer-doc h3 { font-size: 1rem; margin: 1.25rem 0 .4rem; }
.drawer-doc p { margin: 0 0 .75rem; color: var(--muted); line-height: 1.7; font-size: .92rem; }
.drawer-doc a { color: var(--accent-dark); text-decoration: underline; }

/* ---------- Markalar ---------- */
.brand-heading {
    display: flex;
    align-items: baseline;
    gap: .5rem;
    margin: 0 0 1rem;
    font-size: 1.15rem;
}
.brand-heading small { color: var(--muted); font-weight: 500; font-size: .9rem; }

.brand-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
    gap: .9rem;
    margin-bottom: 2rem;
}
.brand-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .55rem;
    color: var(--ink);
    text-align: center;
}
.brand-tile-media {
    display: grid;
    place-items: center;
    width: 100%;
    height: 82px;
    padding: .6rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: #fff;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.brand-tile:hover .brand-tile-media { border-color: var(--brand); box-shadow: var(--shadow); }
.brand-tile-media img { width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; }
.brand-tile-initial {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: .02em;
    color: var(--accent-dark);
}
.brand-tile-name { font-size: .85rem; }

.brand-alphabet {
    display: flex;
    flex-wrap: wrap;
    gap: .15rem;
    align-items: center;
    padding: .5rem 0 1.25rem;
    border-bottom: 1px solid var(--line);
    margin-bottom: 1.5rem;
}
.brand-alphabet a,
.brand-alphabet span {
    min-width: 2rem;
    padding: .35rem .5rem;
    border-radius: var(--radius-sm);
    text-align: center;
    font-size: .92rem;
    font-weight: 600;
}
.brand-alphabet a { color: var(--ink); }
.brand-alphabet a:hover { background: var(--bg-soft); color: var(--accent-dark); }
.brand-alphabet a.is-active { background: var(--brand); color: var(--brand-ink); }
.brand-alphabet .is-disabled { color: #c3ccd6; }

.brand-group { margin-bottom: 1rem; }
.brand-group h3 {
    margin: 0 0 .8rem;
    font-size: 1rem;
    color: var(--accent-dark);
}
.brand-group h3 small { color: var(--muted); font-weight: 500; }

.brand-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--line);
}
.brand-header-logo {
    display: grid;
    place-items: center;
    width: 150px;
    height: 90px;
    padding: .75rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
}
.brand-header-logo img { width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; }
.brand-header h1 { margin: 0 0 .3rem; font-size: 1.5rem; }
.brand-header p { margin: 0 0 .3rem; color: var(--muted); }
.brand-header small { color: var(--muted); }

/* ---------- Yardım sayfası ---------- */
.help-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 2rem;
    align-items: start;
}
.faq { margin-top: 1rem; display: grid; gap: .6rem; }
.faq details {
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: #fff;
    padding: .9rem 1.1rem;
}
.faq details[open] { border-color: var(--brand); }
.faq summary {
    cursor: pointer;
    font-weight: 600;
    list-style: none;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--accent-dark); font-size: 1.25rem; line-height: 1; }
.faq details[open] summary::after { content: '−'; }
.faq p { margin: .7rem 0 0; color: var(--muted); }

/* ---------- Hesap ekranları (giriş, üyelik, şifre) ---------- */
.auth-page {
    background: linear-gradient(160deg, #f4f3ef 0%, #e6e7ea 100%);
    min-height: 100vh;
}
.auth-wrap {
    width: min(520px, 100% - 2rem);
    margin-inline: auto;
    padding: clamp(1.5rem, 5vw, 3rem) 0;
}
/* Geniş ekranda form solda (~%60), tanıtım görseli sağda durur */
.auth-shell { min-height: 100vh; }
.auth-visual { display: none; }
@media (min-width: 1024px) {
    .auth-shell {
        display: grid;
        grid-template-columns: minmax(480px, 60%) minmax(0, 1fr);
    }
    .auth-shell > .auth-wrap { align-self: center; width: min(520px, 100% - 3rem); }
    .auth-visual {
        display: flex;
        align-items: center;
        justify-content: center;
        position: sticky;
        top: 0;
        height: 100vh;
        padding: clamp(1.5rem, 3vw, 3rem);
        overflow: hidden;
        color: #fff;
        background:
            radial-gradient(circle at 85% 8%, rgba(217, 18, 15, .38), transparent 46%),
            radial-gradient(circle at 10% 100%, rgba(217, 18, 15, .16), transparent 42%),
            linear-gradient(150deg, #23272c 0%, #17191c 45%, #0e1012 100%);
    }
    .auth-visual-inner {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: min(720px, 100%);
        max-height: 100%;
        text-align: center;
    }
    .auth-visual-title {
        margin: 0 0 .6rem;
        font-size: clamp(1.6rem, 2.4vw, 2.4rem);
        line-height: 1.15;
        letter-spacing: -.01em;
        color: #fff;
    }
    .auth-visual-title span { color: #ff4a47; }
    .auth-visual-text {
        margin: 0 0 clamp(.75rem, 2vh, 1.75rem);
        max-width: 34rem;
        color: rgba(255, 255, 255, .72);
        font-size: 1.02rem;
    }
    .auth-visual-img {
        flex: 0 1 auto;
        min-height: 0;
        width: auto;
        max-width: 100%;
        height: auto;
        max-height: calc(100vh - 14rem);
    }
}
.auth-logo { display: block; margin: 0 auto 1.75rem; width: 220px; }
.auth-logo img { width: 100%; height: auto; }

.auth-title { text-align: center; font-size: 1.35rem; margin-bottom: .35rem; }
.auth-subtitle { text-align: center; color: var(--muted); margin: 0 0 1.25rem; }

.auth-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .5rem;
    max-width: 420px;
    margin: 0 auto -1px;
}
.auth-tab {
    padding: .85rem 1rem;
    border: 1px solid var(--line);
    border-bottom-color: transparent;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    background: #f2f4f7;
    color: var(--muted);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
}
.auth-tab:hover { color: var(--ink); }
.auth-tab.is-active {
    background: #fff;
    color: var(--ink);
    font-weight: 700;
    box-shadow: 0 -2px 0 var(--brand) inset;
}

.auth-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: clamp(1.25rem, 4vw, 1.75rem);
}
.auth-card .field { margin-bottom: .9rem; }
.auth-card .form-grid { gap: .9rem; }
.auth-card input { padding: .8rem .9rem; }
.auth-card input::placeholder { color: #9aa3af; }
.auth-card .btn { padding: .85rem 1.15rem; margin-top: .35rem; }
.auth-card-foot { margin: 1rem 0 0; text-align: center; font-size: .9rem; }

.auth-errors { align-items: flex-start; margin: 0 0 1rem; }

/* Yan panelde açılan hızlı giriş; kart gölgesi ve genişlik sınırı gereksiz */
.drawer-auth .auth-tabs { max-width: none; }
.drawer-auth .auth-card { box-shadow: none; padding: 1.1rem; }
.drawer-auth .auth-subtitle { text-align: left; font-size: .92rem; }

.auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}
.auth-link { color: var(--accent-dark); font-weight: 600; }
/* Bağlantı görünümlü düğmeler (kodu tekrar gönder gibi) */
button.auth-link { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
#verifyStepCode #verify-code { letter-spacing: .5em; text-align: center; font-size: 1.25rem; font-weight: 700; }
.auth-link:hover { text-decoration: underline; }
.auth-back { text-align: center; margin-top: 1.5rem; font-size: .9rem; }
.auth-back a { color: var(--muted); }
.auth-back a:hover { color: var(--ink); }

.check-start { align-items: flex-start; gap: .6rem; margin-bottom: .85rem; line-height: 1.45; }
.check-start input { margin-top: .15rem; }

.input-password { position: relative; display: flex; }
.input-password input { padding-right: 3rem; }
.toggle-password {
    position: absolute;
    right: .25rem;
    top: 50%;
    transform: translateY(-50%);
    display: grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    border: 0;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    border-radius: var(--radius-sm);
}
.toggle-password:hover { color: var(--ink); background: var(--bg-soft); }
.toggle-password .icon { width: 1.35rem; height: 1.35rem; }

/* ---------- Duyarlı düzen ---------- */
@media (max-width: 992px) {
    .listing { grid-template-columns: 1fr; }
    .sidebar { position: static; }
    .cart-layout, .help-layout { grid-template-columns: 1fr; }
    .cart-aside { position: static; }
    .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .seo-links-grid { grid-template-columns: 1fr; gap: 2rem; }
    .footer-strips { grid-template-columns: 1fr; gap: 1.75rem; }
}

@media (max-width: 768px) {
    :root { --header-h: 60px; }
    .nav-toggle { display: inline-flex; order: -1; }
    /* Kategori ağacı sayfadan kaldırılır, soldan açılan menüde gezilir */
    .listing .sidebar { display: none; }
    .listing-cats { display: inline-flex; justify-content: center; margin-bottom: 1rem; }
    /* Dar ekranda başlıktaki yazılar gizlenip yalnızca simgeler kalır */
    .header-link-text, .cart-label, .hide-mobile { display: none; }
    .icon-mobile { display: inline-flex; }
    .header-link { padding: .55rem; }
    .cart-button { padding: .55rem .7rem; }
    /* Logo, menü simgesi ile sağdaki simgelerin arasında ortalanır */
    .header-inner { justify-content: space-between; gap: .5rem; }
    .header-inner > .logo {
        flex: 1 1 auto;
        min-width: 0;
        justify-content: center;
    }
    .header-inner > .logo img { height: 34px; max-width: 100%; object-fit: contain; }
    .header-inner > .logo-anim { --logo-h: 34px; }
    .header-inner > .logo-anim img { max-width: none; }
    .nav-toggle { margin-right: 0; }
    /* Dar ekranda panel sağdan değil alttan açılır */
    .side-drawer {
        top: auto;
        left: 0;
        width: 100%;
        max-height: 88vh;
        border-radius: var(--radius) var(--radius) 0 0;
        transform: translateY(100%);
    }
    .side-drawer.is-open { transform: translateY(0); }
    .drawer-actions { grid-template-columns: 1fr; }

    /* Dar ekranda parmakla kaydırılır, oklara gerek kalmaz */
    .rail-nav { display: none; }
    .rail > * { flex-basis: 165px; }
    .rail .brand-tile { flex-basis: 120px; }

    .search-box { order: 3; flex-basis: 100%; max-width: none; margin: 0 0 .7rem; }
    .search-panel { padding: .9rem 1rem 1.1rem; max-height: 65vh; }
    .suggest-rail .suggest-card { flex-basis: 200px; }
    .header-inner { flex-wrap: wrap; padding-top: .6rem; }
    /* Kategoriler dar ekranda menü çubuğunda değil, mobil menüde listelenir */
    .main-nav { display: none; }
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero h1 { font-size: 1.45rem; line-height: 1.25; text-wrap: balance; }
    .hero p { margin-inline: auto; font-size: .95rem; }
    .hero-actions { justify-content: center; }
    .hero-art { order: -1; }
    .product-detail { grid-template-columns: 1fr; gap: 1.5rem; }
    .form-grid { grid-template-columns: 1fr; }
    .product-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: .9rem; }
    .cart-line { grid-template-columns: 70px minmax(0, 1fr); row-gap: .6rem; }
    .cart-line img { width: 70px; height: 70px; }
    .cart-line-actions { grid-column: 1 / -1; justify-content: space-between; }
    .checkout-header-inner { gap: .9rem; min-height: 60px; }
    .checkout-header .logo-full { height: 34px; }
    .checkout-secure { padding-left: .9rem; }
    .checkout-secure small { display: none; }
    .footer-grid { grid-template-columns: 1fr; gap: 1.75rem; }
    .seo-links { padding: 1.75rem 0; }
    .link-columns { columns: 2 130px; }
    .footer-bottom .container { flex-direction: column; }
    .footer-bottom-right { text-align: left; }
    .to-top { right: .85rem; bottom: .85rem; }
}

@media (max-width: 420px) {
    .category-grid { grid-template-columns: repeat(2, 1fr); }
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .product-body { padding: .7rem; }
    .product-name { font-size: .9rem; }
}

/* Liste sayfalarının altındaki SEO açıklaması */
.seo-text { padding: 2rem 0 2.5rem; color: #4b5563; }
.seo-text h2, .seo-text h3, .seo-text h4 {
    color: var(--text);
    font-size: 1.02rem;
    margin: 1.5rem 0 .6rem;
}
.seo-text h2:first-child, .seo-text h3:first-child { margin-top: 0; }
.seo-text p { margin: 0 0 .9rem; font-size: .9rem; line-height: 1.75; }
.seo-text ul, .seo-text ol { margin: 0 0 .9rem 1.1rem; font-size: .9rem; line-height: 1.75; }
.seo-text a { color: var(--accent-dark); text-decoration: underline; }

/* ---------- Ürün sayfası ---------- */
.product-detail .gallery { position: relative; }
.gallery-badges {
    position: absolute;
    left: .75rem; bottom: .75rem;
    display: flex; flex-wrap: wrap; gap: .35rem;
}
.gallery-fav {
    position: absolute;
    top: .75rem; right: .75rem;
    width: 40px; height: 40px;
    display: grid; place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: #fff;
    color: var(--muted);
    cursor: pointer;
}
.gallery-fav.is-active { color: var(--accent); border-color: currentColor; }

.buy-box h1 { font-size: 1.45rem; line-height: 1.35; margin: 0 0 .6rem; font-weight: 600; }
.buy-box h1 strong { font-weight: 800; }
.genuine {
    display: inline-flex; align-items: center; gap: .4rem;
    margin: 0 0 .75rem;
    padding: .3rem .6rem;
    border-radius: 999px;
    background: #eef4ff;
    color: #1d4ed8;
    font-size: .82rem; font-weight: 600;
}
.genuine .icon { width: 15px; height: 15px; }
.ship-line { margin: .25rem 0 .75rem; font-size: .92rem; color: #374151; }
.btn-buy { flex: 1; min-width: 200px; justify-content: center; font-size: 1rem; padding: .8rem 1.2rem; }

.spec-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.1rem 1.25rem;
    margin-top: 1.25rem;
}
.spec-row { display: flex; gap: .5rem; font-size: .9rem; padding: .18rem 0; }
.spec-row span { color: var(--muted); }
.spec-card .prose { margin-top: 1rem; }
.spec-card .prose h2 { font-size: .98rem; margin: 0 0 .6rem; }
.spec-card .prose p { font-size: .9rem; line-height: 1.7; margin: 0 0 .7rem; }

.info-panels { margin-top: 1rem; display: grid; gap: .6rem; }
.info-panels details { border: 1px solid var(--line); border-radius: var(--radius); }
.info-panels summary {
    display: flex; align-items: center; justify-content: space-between;
    padding: .9rem 1.1rem;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}
.info-panels summary::-webkit-details-marker { display: none; }
.info-panels summary .icon { transition: transform .2s ease; color: var(--muted); }
.info-panels details[open] summary .icon { transform: rotate(180deg); }
.info-body { padding: 0 1.1rem 1.1rem; color: #4b5563; font-size: .9rem; line-height: 1.7; }

.related-cats h2 { font-size: 1.05rem; margin: 0 0 .8rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
    padding: .45rem .9rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: .87rem;
    color: #374151;
    background: #fff;
}
.chip:hover { border-color: var(--accent); color: var(--accent-dark); }

/* Üstteki sepete ekle düğmesi ekrandan çıkınca beliren sabit çubuk */
.buy-bar {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 60;
    background: #fff;
    border-top: 1px solid var(--line);
    box-shadow: 0 -8px 24px rgba(15, 23, 42, .1);
    transform: translateY(100%);
    transition: transform .25s ease;
}
.buy-bar.is-open { transform: translateY(0); }
.buy-bar .container {
    display: flex; align-items: center; gap: 1rem;
    padding-top: .7rem; padding-bottom: .7rem;
}
.buy-bar-info { display: flex; align-items: center; gap: .7rem; min-width: 0; flex: 1; }
.buy-bar-info img { border-radius: 8px; object-fit: cover; }
/* Uzun ürün adı fiyatın üstüne taşmasın */
.buy-bar-info > div { min-width: 0; }
.buy-bar-info strong {
    display: block;
    font-size: .92rem; font-weight: 600;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.buy-bar-price { text-align: right; white-space: nowrap; }
.buy-bar-price b { display: block; font-size: 1.05rem; color: var(--accent-dark); }
.buy-bar-price small { color: var(--success); font-size: .78rem; font-weight: 600; }
.buy-bar-form { display: flex; align-items: center; gap: .6rem; margin: 0; }
.buy-bar-form .btn-buy { min-width: 160px; }

@media (max-width: 720px) {
    .buy-bar-info small, .buy-bar-info .rating { display: none; }
    .buy-bar .container { gap: .6rem; }
    .buy-bar-form .qty { display: none; }
    .buy-bar-form .btn-buy { min-width: 0; padding: .7rem 1rem; }
    .buy-bar-info img { width: 40px; height: 40px; }
}

/* Sabit satın alma çubuğu açıkken yukarı çık düğmesi onun üstüne taşınır */
body:has(.buy-bar.is-open) .to-top { bottom: 5.75rem; }

/* Mobil: çubuk kaydırmadan bağımsız hep altta durur; solda adet, sağda düğme.
   Fiyat içerikte zaten göründüğü için çubukta tekrarlanmaz */
@media (max-width: 720px) {
    .buy-bar, .buy-bar[hidden] { display: block; transform: none; transition: none; }
    .buy-bar .container { padding-bottom: calc(.7rem + env(safe-area-inset-bottom, 0px)); }
    .buy-bar-info, .buy-bar-price { display: none; }
    /* Adet ve düğme alttaki sabit çubukta olduğu için içerikte tekrarlanmaz */
    #buyForm { display: none; }
    .buy-bar-form { flex: 1 1 auto; gap: .7rem; }
    .buy-bar-form .qty { display: inline-flex; flex: 0 0 auto; }
    .buy-bar-form .qty button { width: 38px; height: 46px; }
    .buy-bar-form .qty input { width: 44px; height: 46px; font-size: 16px; }
    .buy-bar-form .btn-buy { flex: 1 1 auto; justify-content: center; padding: .8rem 1rem; }
    /* Sayfanın sonu ve yüzen düğmeler çubuğun altında kalmasın */
    body:has(.buy-bar) { padding-bottom: calc(4.6rem + env(safe-area-inset-bottom, 0px)); }
    body:has(.buy-bar) .to-top { bottom: 5.75rem; }
    body:has(.buy-bar) .whatsapp-float { bottom: 5.75rem; }
}

/* ---------- Ürün galerisi ---------- */
/* Kartlardaki gibi gri fon; fotoğrafın beyaz zemini multiply ile fona karışır */
.gallery-stage { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--media-bg); }
.gallery-stage img { display: none; width: 100%; aspect-ratio: 1/1; object-fit: contain; padding: .5rem; mix-blend-mode: multiply; }
.gallery-stage img.is-active { display: block; }
/* Dar ekranda görsel kutusu basıktır ki fiyat ilk ekranda görünsün; görsel
   kutuya orantısı bozulmadan sığdırılır (object-fit: contain). Etiketteki
   height="600" en-boy oranını ezmesin diye yükseklik serbest bırakılır */
@media (max-width: 768px) {
    .gallery-stage img { height: auto; aspect-ratio: 4 / 3; }
}
.gallery-nav {
    position: absolute;
    top: 50%; transform: translateY(-50%);
    width: 38px; height: 38px;
    display: grid; place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    color: var(--ink);
    cursor: pointer;
}
.gallery-prev { left: .6rem; }
.gallery-next { right: .6rem; }
.gallery-counter {
    position: absolute;
    left: 50%; bottom: .6rem; transform: translateX(-50%);
    padding: .15rem .55rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, .6);
    color: #fff;
    font-size: .75rem;
}
.gallery-thumbs-wrap {
    position: relative;
    margin-top: .7rem;
}
.gallery-thumbs {
    display: flex;
    gap: .55rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
}
.gallery-thumbs::-webkit-scrollbar { display: none; }
.gallery-thumbs-nav {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    transform: translateY(-50%);
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: var(--ink);
    box-shadow: 0 4px 12px rgba(16, 42, 67, .12);
    cursor: pointer;
}
.gallery-thumbs-nav:hover { border-color: var(--brand); }
.gallery-thumbs-nav .icon { width: 1rem; height: 1rem; }
.gallery-thumbs-prev { left: .15rem; }
.gallery-thumbs-next { right: .15rem; }
.gallery-thumbs-wrap.has-overflow .gallery-thumbs {
    padding-inline: 2.1rem;
}
.gallery-thumbs button {
    flex: 0 0 auto;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 10px;
    background: var(--media-bg);
    overflow: hidden;
    cursor: pointer;
    transition: border-color .15s ease, transform .15s ease;
}
.gallery-thumbs button:hover { border-color: var(--line); transform: translateY(-1px); }
.gallery-thumbs button.is-active { border-color: var(--accent); }
.gallery-thumbs img { display: block; width: 68px; height: 68px; object-fit: contain; padding: 3px; mix-blend-mode: multiply; }

/* ---------- Kullanıcı yorumları ---------- */
.review-photostrip { margin-bottom: 1.5rem; }
.review-photostrip h3 { display: flex; align-items: center; gap: .4rem; margin: 0 0 .7rem; font-size: 1rem; }
.review-photostrip h3 .icon { width: 16px; height: 16px; color: var(--star, #ffc21a); }
.review-photostrip h3 small { color: var(--muted); font-weight: 400; }
.review-photostrip-track {
    display: flex; gap: .6rem;
    overflow-x: auto;
    padding-bottom: .4rem;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--line) transparent;
    -webkit-overflow-scrolling: touch;
}
.review-photostrip-track::-webkit-scrollbar { height: 6px; }
.review-photostrip-track::-webkit-scrollbar-track { background: transparent; }
.review-photostrip-track::-webkit-scrollbar-thumb { background: var(--line); border-radius: 999px; }
.review-photostrip-track .review-thumb {
    width: 92px; height: 92px;
    border-radius: 12px;
}
.reviews-grid { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 1.25rem; }
.review-summary, .review-list, .review-form {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.25rem;
    background: #fff;
}
.review-summary h3 { margin: 0 0 1rem; font-size: 1rem; }
.review-score { text-align: center; margin-bottom: 1rem; }
.review-score b { display: block; font-size: 2.2rem; line-height: 1.1; }
.review-score small { display: block; color: var(--muted); font-size: .82rem; margin-top: .25rem; }
.review-bars { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .35rem; }
.review-bars li { display: grid; grid-template-columns: 12px 1fr 40px; align-items: center; gap: .5rem; font-size: .82rem; }
.review-bars .bar { height: 8px; border-radius: 999px; background: #eef0f4; overflow: hidden; }
.review-bars .bar i { display: block; height: 100%; background: var(--star, #ffc21a); }
.review-bars small { color: var(--muted); text-align: right; }
.review-item { padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.review-item:first-child { padding-top: 0; }
.review-item:last-child { border-bottom: 0; padding-bottom: 0; }
.review-head { display: flex; align-items: center; gap: .7rem; font-size: .88rem; }
.review-head time { color: var(--muted); font-size: .8rem; margin-left: auto; white-space: nowrap; align-self: flex-start; }
.review-avatar {
    flex: 0 0 auto;
    width: 40px; height: 40px;
    display: grid; place-items: center;
    border-radius: 50%;
    color: #fff; font-weight: 700; font-size: .9rem; letter-spacing: .02em;
    background: #64748b;
    text-transform: uppercase;
}
.review-avatar.sm { width: 30px; height: 30px; font-size: .8rem; }
.review-avatar .icon { width: 20px; height: 20px; }
.review-avatar.sm .icon { width: 16px; height: 16px; }
.review-meta { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.review-meta strong { font-weight: 600; }
.review-meta .stars .icon { width: 14px; height: 14px; }
.review-body { margin: .55rem 0 0 !important; font-size: .9rem; line-height: 1.65; color: #374151; }

.review-media { margin-top: .7rem; }.review-thumb {
    padding: 0; border: 1px solid var(--line); border-radius: 10px;
    overflow: hidden; cursor: pointer; background: #fff;
    width: 72px; height: 72px;
    transition: transform .15s ease, border-color .15s ease;
}
.review-thumb:hover { transform: scale(1.04); border-color: var(--accent); }
.review-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }

.review-actions { margin-top: .6rem; }
.review-reply-toggle {
    border: 0; background: none; padding: 0; cursor: pointer;
    color: var(--accent); font-size: .82rem; font-weight: 600;
}
.review-reply-toggle:hover { text-decoration: underline; }

.review-reply-form { margin-top: .7rem; display: flex; flex-direction: column; gap: .5rem; align-items: flex-start; }
.review-reply-form textarea {
    width: 100%; resize: vertical; min-height: 56px;
    border: 1px solid var(--line); border-radius: 10px; padding: .6rem .75rem;
    font: inherit; font-size: .88rem;
}
.review-reply-login { margin: .6rem 0 0; font-size: .82rem; color: var(--muted); }

.review-replies { margin: .7rem 0 0; padding-left: .9rem; border-left: 2px solid var(--line); display: grid; gap: .7rem; }
.review-reply { display: flex; gap: .55rem; }
.review-reply strong { font-size: .82rem; }
.review-reply time { color: var(--muted); font-size: .74rem; margin-left: .5rem; }
.review-reply p { margin: .2rem 0 0 !important; font-size: .85rem; line-height: 1.55; color: #4b5563; }

.review-empty { color: var(--muted); font-size: .9rem; margin: 0; }
.review-form { margin-top: 1.25rem; }
.review-form h3 { margin: 0 0 1rem; font-size: 1rem; }
.review-form .field { margin-bottom: .9rem; max-width: 520px; }
.review-form small { display: block; margin-top: .5rem; color: var(--muted); font-size: .8rem; }

/* Fotoğraflı yorum lightbox */
.review-lightbox { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 1.25rem; }
.review-lightbox[hidden] { display: none; }
.review-lightbox-backdrop { position: absolute; inset: 0; background: rgba(15, 23, 42, .72); }
.review-lightbox-panel {
    position: relative; z-index: 1;
    display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    width: min(920px, 100%); max-height: 88vh;
    background: #fff; border-radius: 14px; overflow: hidden;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
}
.review-lightbox-image { background: #0f172a; display: grid; place-items: center; }
.review-lightbox-image img { width: 100%; height: 100%; max-height: 88vh; object-fit: contain; }
.review-lightbox-side { padding: 1.25rem; overflow-y: auto; display: flex; flex-direction: column; gap: .5rem; }
.review-lightbox-close {
    position: absolute; top: .6rem; right: .6rem; z-index: 2;
    width: 34px; height: 34px; border-radius: 50%;
    border: 0; background: rgba(255, 255, 255, .9); cursor: pointer;
    display: grid; place-items: center;
}
.review-lightbox-nav {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
    width: 42px; height: 42px; border-radius: 50%;
    border: 0; background: rgba(255, 255, 255, .92); cursor: pointer;
    display: grid; place-items: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
}
.review-lightbox-nav .icon { width: 20px; height: 20px; }
.review-lightbox-nav.prev { left: .6rem; }
.review-lightbox-nav.next { right: .6rem; }
.review-lightbox-replies { margin-top: .5rem; }
/* Kapatma düğmesi sağ üstte durur; tarih altında kalmasın */
.review-lightbox-side .review-head { padding-right: 2.6rem; }
.review-lightbox-side .review-reply-login { margin-top: auto; padding-top: .9rem; border-top: 1px solid var(--line); font-size: .88rem; }
.review-reply-login a { color: var(--accent); font-weight: 600; }
.review-reply-login a:hover { text-decoration: underline; }

@media (max-width: 860px) {
    .reviews-grid { grid-template-columns: 1fr; }
    .review-lightbox-panel { grid-template-columns: 1fr; max-height: 92vh; }
    .review-lightbox-image { max-height: 45vh; }
    .review-lightbox-image img { max-height: 45vh; }
    .review-lightbox-side .review-head { padding-right: 0; }
}

/* ---------- Reklam alanları ----------
   Reklam dolana kadar alan yer kaplamaz; etiket ve boşluk yalnızca reklam
   gösterildiğinde görünür. Kapsayıcı gizlenmez, çünkü genişliği sıfır olan
   alana AdSense reklam yerleştiremez. */
.ad-slot { display: block; width: 100%; min-width: 0; text-align: center; }
.ad-slot-grid { grid-column: 1 / -1; }
/* Tam satır reklam, yarım kalan ürün satırında boş hücre bırakmasın */
.product-grid:has(.ad-slot-grid) { grid-auto-flow: row dense; }
.ad-slot-label { display: none; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: .35rem; }
.ad-slot:has(ins[data-ad-status="filled"]) { margin: 1.5rem 0; padding: .75rem 0; border-top: 1px solid var(--border, #e5e7eb); border-bottom: 1px solid var(--border, #e5e7eb); }
.ad-slot:has(ins[data-ad-status="filled"]) .ad-slot-label { display: block; }
.ad-slot ins[data-ad-status="unfilled"] { display: none !important; }

/* ==========================================================================
   Araca göre alışveriş
   ========================================================================== */

/* ---------- Bölüm başlığı ekleri ---------- */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    margin-bottom: .35rem;
    color: var(--brand);
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.eyebrow::before { content: ''; width: 1.6rem; height: 2px; background: var(--brand); }
.section-sub { margin: .25rem 0 0; color: var(--muted); font-size: .95rem; }
.section-head h1 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin: 0; }
.section-links { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem; font-weight: 600; font-size: .92rem; }
.section-links a { display: inline-flex; align-items: center; gap: .2rem; color: var(--muted); }
.section-links a:hover, .section-links a.is-strong { color: var(--accent-dark); }
.section-links .icon { width: 1rem; height: 1rem; }

/* ---------- Araç markası kartı ---------- */
.make-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: .9rem;
}
.make-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5rem;
    padding: .9rem .8rem 1rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    text-align: center;
    transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.make-tile:hover { border-color: var(--brand); transform: translateY(-3px); box-shadow: var(--shadow); }
.make-logo {
    display: grid;
    place-items: center;
    width: 100%;
    height: 84px;
    border-radius: var(--radius-sm);
    background: var(--bg-soft);
}
.make-logo img { width: 56px; height: 56px; object-fit: contain; }
.make-logo img.make-logo-stock { width: auto; height: auto; max-width: 78%; max-height: 60px; }
.make-initials {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--line);
    color: var(--ink);
    font-weight: 800;
    font-size: .95rem;
    letter-spacing: .02em;
}
.make-tile strong { font-size: .86rem; letter-spacing: .06em; text-transform: uppercase; }
.make-tile small { display: inline-flex; align-items: center; gap: .15rem; color: var(--muted); font-size: .8rem; font-weight: 600; }
.make-tile small .icon { width: .85rem; height: .85rem; }
.make-tile:hover small { color: var(--accent-dark); }
.rail .make-tile { flex-basis: 168px; }

/* ---------- Model kartı ---------- */
.model-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: .9rem;
}
.model-card { display: flex; flex-direction: column; gap: .35rem; color: var(--ink); }
.model-art {
    display: grid;
    place-items: center;
    height: 92px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: linear-gradient(180deg, #fff 0%, var(--bg-soft) 100%);
    color: #5a5f66;
    transition: border-color .15s ease, box-shadow .15s ease, color .15s ease;
}
.model-art .icon { width: 3.4rem; height: 3.4rem; }
.model-art.has-photo { overflow: hidden; }
.model-art.has-photo img { width: 100%; height: 100%; object-fit: cover; }
.model-card strong { font-size: .9rem; }
.model-card small { color: var(--muted); font-size: .8rem; }
.model-card:hover .model-art, .model-card.is-active .model-art { border-color: var(--brand); color: var(--brand); box-shadow: var(--shadow); }
.model-card:hover strong, .model-card.is-active strong { color: var(--accent-dark); }

/* ---------- Parça kategorileri şeridi (ana sayfa, hero altı) ---------- */
.part-strip { padding: 1.1rem 0 .9rem; background: #fff; }
.part-strip-row {
    display: flex;
    justify-content: space-between;
    gap: .5rem;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.part-strip-row::-webkit-scrollbar { display: none; }
.part-tile {
    flex: 0 0 104px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .45rem;
    color: inherit;
    text-align: center;
}
/* Yeşil zemin altta durur, görsel onun üstünden taşar */
.part-tile-art {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    width: 92px;
    height: 72px;
    padding-bottom: 5px;
}
.part-tile-art::before {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 40px;
    border-radius: 12px;
    background: #e2f3e4;
    transition: background .15s ease;
}
.part-tile-art img, .part-tile-icon {
    position: relative;
    width: 64px;
    height: 64px;
    border-radius: 16px;
    transition: transform .18s ease;
}
.part-tile-art img { object-fit: cover; border: 2px solid #fff; box-shadow: 0 3px 10px rgba(20, 30, 25, .18); }
.part-tile-icon { display: grid; place-items: center; background: #fff; color: var(--brand); box-shadow: 0 3px 10px rgba(20, 30, 25, .12); }
.part-tile-icon .icon { width: 1.8rem; height: 1.8rem; }
.part-tile-name { font-size: .8rem; font-weight: 600; line-height: 1.25; }
.part-tile:hover .part-tile-art::before { background: #cfebd3; }
.part-tile:hover .part-tile-art img, .part-tile:hover .part-tile-icon { transform: translateY(-3px); }
.part-tile:hover .part-tile-name { color: var(--brand); }
@media (max-width: 1180px) { .part-strip-row { justify-content: flex-start; } }
/* Mobil: 3 sütun x 2 satır görünür (6 parça), fazlası sağa kaydırılır */
@media (max-width: 768px) {
    .part-strip-row {
        display: grid;
        grid-template-rows: repeat(2, auto);
        grid-auto-flow: column;
        grid-auto-columns: calc((100% - 1rem) / 3);
        gap: .9rem .5rem;
        scroll-snap-type: x mandatory;
    }
    .part-tile { min-width: 0; scroll-snap-align: start; }
}

/* ---------- Araç seçim formu ---------- */
.vehicle-form { display: flex; flex-wrap: wrap; gap: .6rem; }
.vehicle-form label { flex: 1 1 140px; min-width: 0; }
.vehicle-form select {
    width: 100%;
    padding: .65rem .8rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--ink);
    font: inherit;
}
.vehicle-form select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(217, 18, 15, .18); }
.vehicle-form select:disabled { background: var(--bg-soft); color: var(--muted); }
.vehicle-form .btn { flex: 0 0 auto; }

/* ---------- "Aracım" şeridi (liste sayfaları) ---------- */
.vehicle-bar {
    display: grid;
    gap: .85rem;
    margin-bottom: 1.25rem;
    padding: 1rem 1.1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--bg-soft);
}
.vehicle-bar.is-selected { border-color: #f3b6b4; background: var(--brand-soft); }
.vehicle-bar-head { display: flex; align-items: center; gap: .8rem; }
.vehicle-bar-icon {
    display: grid;
    place-items: center;
    flex: none;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 999px;
    background: #17191c;
    color: #fff;
}
.vehicle-bar-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.vehicle-bar-text small { color: var(--muted); }
.vehicle-bar-change summary { cursor: pointer; color: var(--accent-dark); font-weight: 600; font-size: .9rem; width: fit-content; }
.vehicle-bar-change[open] summary { margin-bottom: .7rem; }

/* ---------- Ana sayfa: araç seçim kutusu ---------- */
.hero-vehicle {
    padding: 1.4rem;
    border-radius: var(--radius);
    background: #17191c;
    color: #fff;
    box-shadow: var(--shadow-lg);
}
.hero-vehicle h2 { display: flex; align-items: center; gap: .5rem; font-size: 1.1rem; margin-bottom: 1rem; }
.hero-vehicle h2 .icon { color: #ff5a57; }
.hero-vehicle .vehicle-form { flex-direction: column; }
.hero-vehicle .vehicle-form label { flex: none; }
.hero-vehicle .vehicle-form select { border-color: transparent; }
.hero-vehicle .vehicle-form .btn { width: 100%; }

/* ---------- Ürün sayfası: uyumluluk kutusu ve tablosu ---------- */
.fit-box {
    display: grid;
    gap: .8rem;
    margin: 1rem 0;
    padding: .9rem 1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--bg-soft);
}
.fit-box.is-fit { background: #e8f6ee; border-color: #bfe3cd; color: #145c36; }
.fit-box.is-unfit { background: #fdeceb; border-color: #f3b6b4; color: #8f1512; }
.fit-status { display: flex; gap: .65rem; margin: 0; font-size: .93rem; line-height: 1.45; }
.fit-status .icon { flex: none; width: 1.4rem; height: 1.4rem; margin-top: .05rem; }
.fit-status strong { display: block; }
.fit-status a { text-decoration: underline; }
.fit-table-wrap { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.fit-table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.fit-table th, .fit-table td { padding: .7rem 1rem; text-align: left; border-bottom: 1px solid var(--line); }
.fit-table th { background: var(--bg-soft); font-size: .8rem; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.fit-table tr:last-child td { border-bottom: 0; }
.fit-table td a { color: var(--accent-dark); font-weight: 600; }
.fit-table tr.is-mine td { background: #e8f6ee; }
.fit-mine { display: inline-block; margin-left: .35rem; padding: .1rem .5rem; border-radius: 999px; background: #157347; color: #fff; font-size: .72rem; font-weight: 700; }

/* ---------- Arama: yazılı "Ara" düğmesi ---------- */
.site-header .search-form { padding: .2rem; }
.site-header .search-form button {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: 0 1.1rem;
    border-radius: 999px;
    background: var(--brand);
    color: #fff;
    font: inherit;
    font-weight: 700;
    font-size: .92rem;
}
.site-header .search-form button:hover { background: var(--brand-dark); color: #fff; }
.site-header .search-form button .icon { width: 1.05rem; height: 1.05rem; }

@media (max-width: 760px) {
    .hero-grid { grid-template-columns: 1fr; }
    .site-header .search-form button span { display: none; }
    .site-header .search-form button { padding: 0 .8rem; }
    .vehicle-bar-head { flex-wrap: wrap; }
    .vehicle-form .btn { flex: 1 1 100%; }
    .fit-table th, .fit-table td { padding: .6rem .7rem; }
}

/* ---------- OEM numaraları ve ürün kodu ---------- */
.section-tight { padding-top: 0; }
.oem-list { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin: 0; padding: 0; }
.oem-list li {
    padding: .4rem .8rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: #fff;
    font: 600 .9rem/1.3 ui-monospace, Menlo, Consolas, monospace;
    letter-spacing: .02em;
}
.product-code { display: block; color: var(--muted); font: 500 .76rem/1.3 ui-monospace, Menlo, Consolas, monospace; }

/* ---------- WhatsApp destek ---------- */
.btn-whatsapp { background: #128c4b; color: #fff; }
.btn-whatsapp:hover { background: #0e733d; }
.help-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.5rem;
    padding: 1rem 1.2rem;
    border: 1px dashed #cfd4db;
    border-radius: var(--radius);
    background: #fff;
}
.help-strip div { display: flex; flex-direction: column; gap: .15rem; flex: 1 1 260px; }
.help-strip span { color: var(--muted); font-size: .92rem; }
.fit-ask { display: inline-flex; align-items: center; gap: .4rem; color: #0e733d; font-weight: 600; font-size: .9rem; }
.fit-ask:hover { text-decoration: underline; }
.fit-ask .icon { width: 1.15rem; height: 1.15rem; }
.footer-whatsapp { display: inline-flex; align-items: center; gap: .4rem; margin-top: .5rem; font-weight: 600; }
.whatsapp-float {
    position: fixed;
    left: 1rem;
    bottom: 1rem;
    z-index: 35;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .7rem 1rem;
    border-radius: 999px;
    background: #128c4b;
    color: #fff;
    font-weight: 700;
    font-size: .9rem;
    box-shadow: var(--shadow-lg);
}
.whatsapp-float:hover { background: #0e733d; }
.whatsapp-float .icon { width: 1.4rem; height: 1.4rem; }
@media (max-width: 760px) {
    .whatsapp-float { padding: .75rem; bottom: 5rem; }
    .whatsapp-float span { display: none; }
}

/* ---------- Mobil arama: simgeyle açılan tam ekran arama ---------- */
.search-toggle, .site-header .search-form .search-close { display: none; }
@media (max-width: 768px) {
    /* backdrop-filter sabit konumlu arama katmanını başlığa hapseder */
    .site-header { backdrop-filter: none; }
    .site-header .search-toggle { display: inline-flex; }
    .header-inner { flex-wrap: nowrap; padding-top: 0; }
    .search-box { display: none; }
    .search-box.is-mobile-open {
        display: flex;
        flex-direction: column;
        position: fixed;
        inset: 0;
        z-index: 70;
        max-width: none;
        margin: 0;
        padding: .7rem .8rem 0;
        background: #fff;
    }
    .search-box.is-mobile-open .search-form {
        flex: 0 0 auto;
        align-items: stretch;
        overflow: visible;
        border-color: var(--line);
        background: var(--bg-soft);
    }
    .search-box.is-mobile-open .search-form:focus-within { border-color: var(--brand); }
    /* 16px altındaki yazı iOS'ta odaklanınca sayfayı yakınlaştırır */
    .search-box.is-mobile-open .search-form input { font-size: 16px; }
    .site-header .search-box.is-mobile-open .search-close {
        display: inline-flex;
        align-items: center;
        margin-left: .3rem;
        padding: 0 .7rem;
        background: transparent;
        color: var(--ink);
    }
    .search-box.is-mobile-open .search-panel {
        position: static;
        flex: 1 1 auto;
        max-height: none;
        margin: .7rem -.8rem 0;
        padding: .9rem .8rem 1.1rem;
        border: 0;
        border-top: 1px solid var(--line);
        border-radius: 0;
        box-shadow: none;
    }
    /* Tam ekran arama kendi zeminini getirir; başlık karartılmaz */
    .site-top.is-searching .site-header::after { content: none; }
    body.search-lock { overflow: hidden; }
    /* Yukarı çık düğmesi ve satın alma çubuğu aramanın üstüne çıkmasın */
    body.search-lock .site-top { z-index: 90; }
}

/* ---------- Sepet: mobilde alta sabit "Alışverişi Tamamla" çubuğu ---------- */
.checkout-bar { display: none; }
@media (max-width: 768px) {
    .checkout-bar {
        display: block;
        position: fixed;
        left: 0; right: 0; bottom: 0;
        z-index: 60;
        background: #fff;
        border-top: 1px solid var(--line);
        box-shadow: 0 -8px 24px rgba(15, 23, 42, .1);
    }
    .checkout-bar .container {
        padding-top: .7rem;
        padding-bottom: calc(.7rem + env(safe-area-inset-bottom, 0px));
    }
    .checkout-bar-total {
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        gap: 1rem;
        font-weight: 700;
    }
    .checkout-bar-total small { color: var(--muted); font-weight: 500; font-size: .8rem; }
    .checkout-bar-total b { font-size: 1.2rem; white-space: nowrap; }
    .checkout-bar .summary-cta { margin-top: .55rem; }
    /* Düğme sabit çubukta olduğu için özet kartında tekrarlanmaz */
    .summary-card > .summary-cta { display: none; }
    /* Sayfanın sonu ve yukarı çık düğmesi çubuğun altında kalmasın */
    body:has(.checkout-bar) { padding-bottom: calc(7rem + env(safe-area-inset-bottom, 0px)); }
    body:has(.checkout-bar) .to-top { bottom: 7.9rem; }
}

/* ---------- Sepet satırı (mobil): solda görsel, başlığın altında adet,
   sağda satır tutarı (birim fiyat x adet) ---------- */
@media (max-width: 768px) {
    .cart-line {
        grid-template-columns: 70px minmax(0, 1fr) auto;
        gap: .5rem .8rem;
        align-items: start;
    }
    .cart-line-media { grid-column: 1; grid-row: 1 / span 3; }
    /* Başlık, fiyat ve kazanç satırın ızgarasına doğrudan yerleşir */
    .cart-line-info { display: contents; }
    .cart-line-info h3 { grid-column: 2 / -1; grid-row: 1; margin: 0; }
    .cart-line-actions { grid-column: 2; grid-row: 2; justify-content: flex-start; align-self: center; }
    .cart-line-prices {
        grid-column: 3; grid-row: 2;
        flex-direction: column-reverse;
        align-items: flex-end;
        align-self: center;
        gap: 0;
        white-space: nowrap;
    }
    .cart-line-prices .price-now { font-size: 1.1rem; }
    .cart-line-gain { grid-column: 2 / -1; grid-row: 3; margin-top: 0; flex-wrap: wrap; }
    .cart-line .cart-qty button { width: 34px; height: 34px; }
    .cart-line .cart-qty input { width: 38px; height: 34px; font-size: 16px; }
    .cart-line .cart-line-btn { min-width: 34px; padding: 0 .5rem; }
}

/* ---------- Liste sayfaları (mobil): başlığın altındaki boşluk daraltılır ---------- */
@media (max-width: 768px) {
    .section:has(> .listing) { padding-top: .6rem; }
    .listing .breadcrumb { margin-bottom: .5rem; }
    .listing-cats { margin-bottom: .75rem; }
}

/* ---------- Canlı destek penceresi ---------- */
.chat-window {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 95;
    display: flex;
    flex-direction: column;
    width: min(380px, calc(100vw - 2rem));
    height: min(540px, calc(100dvh - 2rem));
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--bg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity .18s ease, transform .18s ease;
}
.chat-window.is-open { opacity: 1; transform: none; }
.chat-window[hidden] { display: none; }
.chat-head {
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: .8rem .9rem;
    background: var(--ink);
    color: #fff;
}
.chat-avatar {
    display: grid;
    place-items: center;
    width: 2.3rem;
    height: 2.3rem;
    border-radius: 50%;
    background: var(--brand);
    flex: none;
}
.chat-avatar .icon { width: 1.25rem; height: 1.25rem; }
.chat-title { display: flex; flex-direction: column; flex: 1; min-width: 0; line-height: 1.25; }
.chat-status { display: inline-flex; align-items: center; gap: .35rem; font-size: .8rem; color: #c3c7cc; }
.chat-status::before { content: ''; width: .5rem; height: .5rem; border-radius: 50%; background: #8c939b; }
.chat-window.is-online .chat-status::before { background: #3ecf7a; }
.chat-close {
    display: grid;
    place-items: center;
    width: 2.2rem;
    height: 2.2rem;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #fff;
    cursor: pointer;
}
.chat-close:hover { background: rgba(255, 255, 255, .12); }
.chat-close .icon { width: 1.15rem; height: 1.15rem; }
.chat-log {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: .6rem;
    padding: 1rem .9rem;
    overflow-y: auto;
    background: var(--bg-soft);
}
.chat-msg { max-width: 85%; align-self: flex-start; }
.chat-msg p {
    margin: 0;
    padding: .55rem .8rem;
    border-radius: 14px 14px 14px 4px;
    background: #fff;
    border: 1px solid var(--line);
    font-size: .92rem;
    line-height: 1.4;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}
.chat-msg time { display: block; margin-top: .15rem; font-size: .72rem; color: var(--muted); }
.chat-msg.is-me { align-self: flex-end; text-align: right; }
.chat-msg.is-me p {
    border-color: transparent;
    border-radius: 14px 14px 4px 14px;
    background: var(--ink);
    color: #fff;
    text-align: left;
}
.chat-offline {
    margin: 0;
    padding: .65rem .9rem;
    border-top: 1px solid var(--line);
    background: var(--brand-soft);
    font-size: .86rem;
    line-height: 1.4;
}
.chat-offline[hidden] { display: none; }
.chat-offline a { color: var(--accent-dark); font-weight: 600; text-decoration: underline; }
.chat-form { display: flex; align-items: flex-end; gap: .5rem; padding: .7rem .9rem; border-top: 1px solid var(--line); }
.chat-form textarea {
    flex: 1;
    min-height: 2.6rem;
    max-height: 7rem;
    padding: .6rem .8rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    font: inherit;
    font-size: .93rem;
    resize: none;
}
.chat-form textarea:focus { outline: 2px solid var(--brand); outline-offset: 1px; }
.chat-form textarea:disabled { background: var(--bg-soft); cursor: not-allowed; }
.chat-form button {
    display: grid;
    place-items: center;
    width: 2.6rem;
    height: 2.6rem;
    border: 0;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    cursor: pointer;
    flex: none;
}
.chat-form button:hover { background: var(--brand-dark); }
.chat-form button:disabled { background: #c9cdd2; cursor: not-allowed; }
.chat-form button .icon { width: 1.2rem; height: 1.2rem; }
@media (max-width: 760px) {
    .chat-window {
        inset: 0;
        width: auto;
        height: auto;
        border: 0;
        border-radius: 0;
    }
}
