/* ==========================================================================
   TR kupon sitesi — kuponla.com tarzı sakin, kart odaklı, araştırma hissi veren
   arayüz. Turuncu vurgu + nötr gri zemin, ince çerçeveler, düşük gölge.
   ========================================================================== */

:root {
    --accent: #ff6a00;
    --accent-dark: #e35c00;
    --accent-soft: #fff3ea;

    --ink: #14181f;
    --ink-2: #3d4653;
    --ink-3: #6b7686;
    --ink-4: #9aa4b2;

    --bg: #f6f7f9;
    --surface: #ffffff;
    --surface-2: #fbfcfd;
    --line: #e4e8ee;
    --line-strong: #cfd6e0;

    --ok: #16a34a;
    --warn: #d97706;
    --danger: #dc2626;
    --info: #2563eb;

    --radius: 14px;
    --radius-sm: 9px;
    --radius-lg: 20px;
    --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 4px 14px rgba(16, 24, 40, .05);
    --shadow-hover: 0 2px 6px rgba(16, 24, 40, .07), 0 12px 28px rgba(16, 24, 40, .09);

    --wrap: 1240px;
    --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

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

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent-dark); }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; font-size: inherit; cursor: pointer; }

h1, h2, h3, h4 { margin: 0 0 .4em; line-height: 1.25; letter-spacing: -.015em; font-weight: 700; }
h1 { font-size: 1.85rem; }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.05rem; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 18px; }
.muted { color: var(--ink-3); }
.small { font-size: .82rem; }
.nowrap { white-space: nowrap; }
.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------------------------------------------------------------- header */

.site-header {
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 50;
}

.header-main {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 14px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 9px;
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: -.02em;
    flex-shrink: 0;
}

.logo-mark {
    width: 32px; height: 32px;
    border-radius: 9px;
    background: linear-gradient(135deg, var(--accent), #ff9248);
    color: #fff;
    display: grid; place-items: center;
    font-size: .95rem; font-weight: 800;
}

/* arama kutusu */
.search-box { flex: 1; position: relative; max-width: 560px; }

.search-box input {
    width: 100%;
    padding: 10px 42px 10px 15px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: var(--surface-2);
    font-size: .92rem;
    color: var(--ink);
    outline: none;
    transition: border-color .15s, box-shadow .15s, background .15s;
}

.search-box input:focus {
    border-color: var(--accent);
    background: var(--surface);
    box-shadow: 0 0 0 3px rgba(255, 106, 0, .12);
}

.search-box button {
    position: absolute; right: 4px; top: 4px;
    width: 34px; height: 34px;
    border: 0; border-radius: 50%;
    background: var(--accent); color: #fff;
    display: grid; place-items: center;
}
.search-box button:hover { background: var(--accent-dark); }

.suggest {
    position: absolute; left: 0; right: 0; top: calc(100% + 6px);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-hover);
    overflow: hidden;
    display: none;
    z-index: 60;
}
.suggest.open { display: block; }

.suggest a {
    display: flex; align-items: center; justify-content: space-between;
    gap: 10px; padding: 9px 14px;
    border-bottom: 1px solid var(--line);
    font-size: .88rem;
}
.suggest a:last-child { border-bottom: 0; }
.suggest a:hover, .suggest a.active { background: var(--accent-soft); }
.suggest .s-type {
    font-size: .68rem; text-transform: uppercase; letter-spacing: .05em;
    color: var(--ink-4); font-weight: 600;
}

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

/* ana menü */
.site-nav { border-top: 1px solid var(--line); background: var(--surface); }
.site-nav .wrap { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.site-nav .wrap::-webkit-scrollbar { display: none; }

.site-nav a {
    padding: 11px 13px;
    font-size: .88rem;
    font-weight: 600;
    color: var(--ink-2);
    border-bottom: 2px solid transparent;
    white-space: nowrap;
}
.site-nav a:hover { color: var(--accent); }
.site-nav a.active { color: var(--accent); border-bottom-color: var(--accent); }

/* ---------------------------------------------------------------- butonlar */

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    padding: 9px 16px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    font-size: .88rem; font-weight: 600;
    transition: background .15s, border-color .15s, color .15s, transform .1s;
}
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }

.btn-ghost { background: transparent; border-color: var(--line-strong); color: var(--ink-2); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn-soft { background: var(--accent-soft); color: var(--accent-dark); }
.btn-soft:hover { background: #ffe7d6; }

.btn-sm { padding: 6px 11px; font-size: .8rem; }
.btn-block { width: 100%; }

/* ---------------------------------------------------------------- etiketler */

.chip {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: .73rem; font-weight: 600;
    background: var(--surface-2);
    border: 1px solid var(--line);
    color: var(--ink-2);
}
.chip-accent { background: var(--accent-soft); border-color: #ffd9bd; color: var(--accent-dark); }
.chip-ok { background: #eaf7ee; border-color: #c7ebd3; color: #14803c; }
.chip-warn { background: #fef6e7; border-color: #fadfae; color: #a35c00; }
.chip-danger { background: #fdeaea; border-color: #f7c9c9; color: #b91c1c; }
.chip-info { background: #eaf1fe; border-color: #c9dcfb; color: #1d4ed8; }

.filter-chips { display: flex; flex-wrap: wrap; gap: 7px; }

.filter-chip {
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid var(--line-strong);
    background: var(--surface);
    font-size: .82rem; font-weight: 600;
    color: var(--ink-2);
}
.filter-chip:hover { border-color: var(--accent); color: var(--accent); }
.filter-chip.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.filter-chip .count { color: var(--ink-4); font-weight: 500; margin-left: 3px; }
.filter-chip.active .count { color: rgba(255, 255, 255, .65); }

/* ---------------------------------------------------------------- bölüm başlığı */

.section { margin: 34px 0; }

.section-head {
    display: flex; align-items: flex-end; justify-content: space-between;
    gap: 16px; margin-bottom: 16px;
}
.section-head h2 { margin: 0 0 3px; }
.section-head p { margin: 0; font-size: .87rem; color: var(--ink-3); }
.section-head .link {
    font-size: .85rem; font-weight: 600; color: var(--accent);
    white-space: nowrap; flex-shrink: 0;
}

/* ---------------------------------------------------------------- öne çıkan mini kartlar (üstteki 6) */

.top-strip {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 18px;
    box-shadow: var(--shadow);
    margin-top: 22px;
}

.top-strip-head {
    display: flex; align-items: baseline; justify-content: space-between;
    gap: 14px; margin-bottom: 14px;
}
.top-strip-head h1 { font-size: 1.5rem; margin: 0 0 2px; }
.top-strip-head p { margin: 0; font-size: .87rem; color: var(--ink-3); }

.mini-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 11px;
}

.mini-card {
    display: flex; flex-direction: column; gap: 8px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface-2);
    transition: border-color .15s, box-shadow .15s, transform .15s;
    min-width: 0;
}
.mini-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.mini-card .m-top { display: flex; align-items: center; gap: 8px; min-width: 0; }

.brand-avatar {
    position: relative;
    width: 30px; height: 30px;
    border-radius: 8px;
    background: var(--surface);
    border: 1px solid var(--line);
    display: grid; place-items: center;
    font-size: .7rem; font-weight: 800;
    color: var(--ink-2);
    flex-shrink: 0;
    overflow: hidden;
}
/* Logo baş harfin üzerine oturur; yüklenemezse img DOM'dan silinir ve baş harf kalır. */
.brand-avatar img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: contain; padding: 2px;
    background: var(--surface);
    border-radius: inherit;
}

.mini-card .m-brand {
    font-size: .78rem; font-weight: 700;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.mini-card .m-title {
    font-size: .82rem; font-weight: 600; line-height: 1.35;
    color: var(--ink-2);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden;
}
.mini-card .m-foot {
    display: flex; align-items: center; justify-content: space-between;
    gap: 6px; margin-top: auto;
}
.mini-card .m-discount { font-size: 1rem; font-weight: 800; color: var(--accent); }
.mini-card .m-uses { font-size: .72rem; color: var(--ink-4); }

/* ---------------------------------------------------------------- kupon kartı */

.coupon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 14px;
}

.coupon-card {
    position: relative;
    display: flex; flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: border-color .15s, box-shadow .15s, transform .15s;
}
.coupon-card:hover {
    border-color: var(--line-strong);
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}
.coupon-card.is-used { border-color: #c7ebd3; }
.coupon-card.is-expired { opacity: .62; }

.cc-head {
    display: flex; align-items: flex-start; gap: 11px;
    padding: 14px 14px 0;
}

.cc-brand-logo {
    position: relative;
    width: 44px; height: 44px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: var(--surface-2);
    display: grid; place-items: center;
    font-size: .85rem; font-weight: 800;
    color: var(--ink-2);
    flex-shrink: 0;
    overflow: hidden;
}
.cc-brand-logo img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: contain; padding: 3px;
    background: var(--surface-2);
    border-radius: inherit;
}

.cc-head-text { min-width: 0; flex: 1; }
.cc-type {
    font-size: .7rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: .05em; color: var(--ink-4);
}
.cc-brand { font-size: .85rem; font-weight: 700; }
.cc-brand a:hover { color: var(--accent); }

.cc-discount {
    flex-shrink: 0;
    font-size: 1.15rem; font-weight: 800;
    color: var(--accent);
    line-height: 1.1;
    text-align: right;
}
.cc-discount small { display: block; font-size: .65rem; font-weight: 600; color: var(--ink-4); }

.cc-body { padding: 11px 14px 0; flex: 1; }

.cc-title {
    font-size: .96rem; font-weight: 700; line-height: 1.35;
    margin: 0 0 6px;
}
.cc-title a:hover { color: var(--accent); }

.cc-desc {
    font-size: .83rem; color: var(--ink-3); line-height: 1.5;
    margin: 0 0 9px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden;
}

.cc-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 11px; }

/* kod alanı — sağdaki kopyala butonu */
.cc-action {
    display: flex; align-items: stretch; gap: 0;
    margin: 0 14px 12px;
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--surface-2);
}

.cc-code {
    flex: 1;
    padding: 10px 12px;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: .92rem; font-weight: 700;
    letter-spacing: .06em;
    color: var(--ink);
    display: flex; align-items: center;
    min-width: 0;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.cc-copy {
    border: 0; border-left: 1px dashed var(--line-strong);
    background: var(--accent); color: #fff;
    padding: 0 18px;
    font-size: .84rem; font-weight: 700;
    white-space: nowrap;
    transition: background .15s;
}
.cc-copy:hover { background: var(--accent-dark); }
.cc-copy.copied { background: var(--ok); }

/* kodsuz kampanyalarda tek buton */
.cc-action.deal { border-style: solid; border-color: transparent; padding: 0; background: none; }
.cc-action.deal .cc-copy { border-left: 0; width: 100%; border-radius: var(--radius-sm); padding: 11px; }

.cc-foot {
    display: flex; align-items: center; justify-content: space-between;
    gap: 10px;
    padding: 9px 14px;
    border-top: 1px solid var(--line);
    background: var(--surface-2);
    font-size: .78rem;
    color: var(--ink-3);
}

/* oy sayacı — çalıştı / çalışmadı bildirimleri */
.cc-tally { display: inline-flex; align-items: center; gap: 3px; margin-left: 8px; font-weight: 700; }
.cc-tally .t-ok { color: var(--ok); }
.cc-tally .t-no { color: var(--danger); }
.cc-tally .t-sep { color: var(--ink-4); font-weight: 500; }

.cc-signals { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.cc-vote { display: flex; gap: 4px; }
.cc-vote button {
    border: 1px solid var(--line);
    background: var(--surface);
    border-radius: 6px;
    padding: 3px 8px;
    font-size: .74rem; font-weight: 600;
    color: var(--ink-3);
    transition: border-color .15s, color .15s;
}
.cc-vote button:hover { border-color: var(--accent); color: var(--accent); }
.cc-vote button.voted { background: var(--accent-soft); border-color: #ffd9bd; color: var(--accent-dark); }
.cc-vote button:disabled { opacity: .55; cursor: default; }

/* "kullandım" işareti */
.used-badge {
    position: absolute; top: 10px; right: 10px;
    background: var(--ok); color: #fff;
    font-size: .68rem; font-weight: 700;
    padding: 3px 8px; border-radius: 999px;
    display: none;
}
.coupon-card.is-used .used-badge { display: block; }

/* ---------------------------------------------------------------- iki kolonlu düzen */

.layout-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 24px;
    align-items: start;
}

.sidebar { position: sticky; top: 118px; display: flex; flex-direction: column; gap: 16px; }

.panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}
.panel-head {
    padding: 13px 15px;
    border-bottom: 1px solid var(--line);
    background: linear-gradient(180deg, var(--surface), var(--surface-2));
    display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
}
.panel-head h3 { margin: 0; font-size: .95rem; letter-spacing: -.01em; }
.panel-head .link { font-size: .8rem; font-weight: 600; color: var(--accent); }
.panel-body { padding: 15px; }
.panel-body.tight { padding: 8px; }

/* ---------------------------------------------------------------- aktüel kartları */

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px;
}

.catalog-card {
    display: flex; flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: box-shadow .15s, transform .15s, border-color .15s;
}
.catalog-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
    border-color: var(--line-strong);
}

.catalog-cover {
    position: relative;
    aspect-ratio: 3 / 4;
    background: linear-gradient(160deg, #f0f2f5, #e6eaf0);
    display: grid; place-items: center;
    overflow: hidden;
}
.catalog-cover img { width: 100%; height: 100%; object-fit: cover; }
.catalog-cover .placeholder { font-size: 1.6rem; font-weight: 800; color: var(--ink-4); }

.catalog-cover .flags {
    position: absolute; top: 8px; left: 8px;
    display: flex; flex-direction: column; gap: 5px; align-items: flex-start;
}
.flag {
    background: rgba(20, 24, 31, .82);
    color: #fff;
    font-size: .68rem; font-weight: 700;
    padding: 2px 7px; border-radius: 5px;
    backdrop-filter: blur(3px);
}
.flag.new { background: var(--accent); }

.catalog-body { padding: 11px 12px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.catalog-brand { font-size: .74rem; font-weight: 700; color: var(--ink-4); text-transform: uppercase; letter-spacing: .04em; }
.catalog-title {
    font-size: .87rem; font-weight: 600; line-height: 1.35; margin: 0;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.catalog-foot {
    display: flex; align-items: center; justify-content: space-between;
    gap: 8px; margin-top: auto;
    font-size: .74rem; color: var(--ink-4);
}

/* ---------------------------------------------------------------- marka / kategori kartları */

.brand-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 11px;
}

.brand-card {
    display: flex; align-items: center; gap: 10px;
    padding: 11px 12px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    transition: border-color .15s, box-shadow .15s;
    min-width: 0;
}
.brand-card:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.brand-card .b-name {
    font-size: .85rem; font-weight: 700;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.brand-card .b-count { font-size: .74rem; color: var(--ink-4); }

.cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 11px;
}

.cat-card {
    display: flex; align-items: center; gap: 10px;
    padding: 13px 14px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-left: 3px solid var(--accent);
    border-radius: var(--radius-sm);
    transition: box-shadow .15s, transform .15s;
}
.cat-card:hover { box-shadow: var(--shadow); transform: translateX(2px); }
.cat-card .c-name { font-size: .88rem; font-weight: 700; }
.cat-card .c-count { font-size: .74rem; color: var(--ink-4); }

/* ---------------------------------------------------------------- liste satırı (dar alanlar) */

.row-list { display: flex; flex-direction: column; }

.row-item {
    display: flex; align-items: center; gap: 11px;
    padding: 11px 14px;
    border-bottom: 1px solid var(--line);
    min-width: 0;
    transition: background .14s, padding-left .14s;
}
.row-item:last-child { border-bottom: 0; }
.row-item:hover {
    background: linear-gradient(90deg, var(--accent-soft), transparent 70%);
    padding-left: 17px;
}
.row-item .r-text { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 3px; }

/* Başlık iki satıra kadar sarsın — tek satırda kesilince okunmuyordu. */
.row-item .r-title {
    font-size: .85rem; font-weight: 650; line-height: 1.35;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden;
}
.row-item:hover .r-title { color: var(--accent-dark); }

/* Alt satır: marka + durum rozeti yan yana. */
.row-item .r-sub {
    display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
    font-size: .74rem; color: var(--ink-4);
}
.row-item .r-sub .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--line-strong); }

/* Kalan süre rozeti: son gün kırmızı, bu hafta turuncu. */
.row-item .r-when {
    font-weight: 700;
    padding: 1px 7px; border-radius: 999px;
    background: var(--surface-2); border: 1px solid var(--line);
    color: var(--ink-3);
}
.row-item .r-when.soon { background: #fef6e7; border-color: #fadfae; color: #a35c00; }
.row-item .r-when.today { background: #fdeaea; border-color: #f7c9c9; color: #b91c1c; }

/* Sağdaki indirim değeri artık bir rozet. */
.row-item .r-value {
    flex-shrink: 0;
    font-size: .82rem; font-weight: 800;
    color: var(--accent-dark);
    background: var(--accent-soft);
    border: 1px solid #ffd9bd;
    padding: 4px 9px; border-radius: 8px;
    line-height: 1.2;
}

/* ---------------------------------------------------------------- blog kartları */

.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.post-card {
    display: flex; flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: box-shadow .15s, transform .15s;
}
.post-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }

.post-cover {
    aspect-ratio: 16 / 9;
    background: linear-gradient(140deg, #eef1f5, #e2e7ee);
    overflow: hidden;
}
.post-cover img { width: 100%; height: 100%; object-fit: cover; }

.post-body { padding: 14px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.post-title { font-size: .98rem; font-weight: 700; line-height: 1.35; margin: 0; }
.post-summary {
    font-size: .84rem; color: var(--ink-3); line-height: 1.5; margin: 0;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.post-foot {
    display: flex; align-items: center; gap: 8px; margin-top: auto;
    font-size: .75rem; color: var(--ink-4);
}

/* ---------------------------------------------------------------- marka başlığı */

.brand-hero {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 22px;
    box-shadow: var(--shadow);
    margin-top: 18px;
    display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap;
}

.brand-hero .hero-logo {
    position: relative;
    width: 76px; height: 76px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: var(--surface-2);
    display: grid; place-items: center;
    font-size: 1.5rem; font-weight: 800;
    color: var(--ink-2);
    flex-shrink: 0;
    overflow: hidden;
}
.brand-hero .hero-logo img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: contain; padding: 6px;
    background: var(--surface-2);
    border-radius: inherit;
}

.brand-hero .hero-text { flex: 1; min-width: 240px; }
.brand-hero h1 { margin: 0 0 5px; }
.brand-hero .hero-sub { font-size: .9rem; color: var(--ink-3); margin: 0 0 12px; }

.stat-row { display: flex; gap: 22px; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; }
.stat .s-value { font-size: 1.4rem; font-weight: 800; line-height: 1.1; }
.stat .s-label { font-size: .75rem; color: var(--ink-4); text-transform: uppercase; letter-spacing: .04em; font-weight: 600; }

/* ---------------------------------------------------------------- kırıntı navigasyonu */

.breadcrumbs {
    display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
    padding: 13px 0 0;
    font-size: .8rem; color: var(--ink-4);
}
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs .sep { color: var(--line-strong); }
.breadcrumbs .current { color: var(--ink-2); font-weight: 600; }

/* ---------------------------------------------------------------- sıralama çubuğu */

.toolbar {
    display: flex; align-items: center; justify-content: space-between;
    gap: 14px; flex-wrap: wrap;
    padding: 12px 15px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    margin-bottom: 16px;
}
.toolbar .result-count { font-size: .86rem; color: var(--ink-3); }
.toolbar .result-count strong { color: var(--ink); font-size: 1.05rem; }
.toolbar .sort-links { display: flex; gap: 3px; flex-wrap: wrap; }
.toolbar .sort-links a {
    padding: 6px 11px; border-radius: 7px;
    font-size: .82rem; font-weight: 600; color: var(--ink-3);
}
.toolbar .sort-links a:hover { background: var(--surface-2); color: var(--accent); }
.toolbar .sort-links a.active { background: var(--ink); color: #fff; }

/* ---------------------------------------------------------------- sayfalama */

.pagination {
    display: flex; justify-content: center; align-items: center;
    gap: 5px; flex-wrap: wrap;
    margin: 26px 0;
}
.pagination a, .pagination span {
    min-width: 36px; height: 36px;
    padding: 0 10px;
    display: grid; place-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    font-size: .85rem; font-weight: 600;
    color: var(--ink-2);
}
.pagination a:hover { border-color: var(--accent); color: var(--accent); }
.pagination .current { background: var(--ink); border-color: var(--ink); color: #fff; }
.pagination .gap { border: 0; background: none; color: var(--ink-4); }

/* ---------------------------------------------------------------- SEO metni */

.seo-content {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px 26px;
    margin: 30px 0;
    box-shadow: var(--shadow);
}
.seo-content h2 { font-size: 1.15rem; margin: 22px 0 8px; }
.seo-content h2:first-child { margin-top: 0; }
.seo-content h3 { font-size: 1rem; margin: 18px 0 6px; }
.seo-content p { font-size: .92rem; color: var(--ink-2); line-height: 1.7; }
.seo-content ul, .seo-content ol { padding-left: 22px; color: var(--ink-2); font-size: .92rem; line-height: 1.7; }

/* SSS */
.faq { margin: 26px 0; }
.faq details {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
    overflow: hidden;
}
.faq summary {
    padding: 13px 16px;
    font-size: .92rem; font-weight: 600;
    cursor: pointer;
    list-style: none;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.2rem; font-weight: 700; flex-shrink: 0; }
.faq details[open] summary::after { content: "−"; }
.faq .faq-answer { padding: 0 16px 14px; font-size: .88rem; color: var(--ink-2); line-height: 1.65; }

/* ---------------------------------------------------------------- kod modalı */

.modal-backdrop {
    position: fixed; inset: 0;
    background: rgba(16, 20, 27, .55);
    backdrop-filter: blur(3px);
    display: none;
    place-items: center;
    z-index: 100;
    padding: 20px;
}
.modal-backdrop.open { display: grid; }

.modal {
    background: var(--surface);
    border-radius: var(--radius-lg);
    max-width: 430px; width: 100%;
    padding: 28px 26px 24px;
    text-align: center;
    box-shadow: 0 24px 60px rgba(16, 24, 40, .28);
    position: relative;
}
.modal .modal-close {
    position: absolute; top: 12px; right: 12px;
    width: 30px; height: 30px;
    border: 0; border-radius: 50%;
    background: var(--surface-2); color: var(--ink-3);
    font-size: 1.1rem; line-height: 1;
}
.modal .modal-close:hover { background: var(--line); }

.modal .m-brand { font-size: .8rem; font-weight: 700; color: var(--ink-4); text-transform: uppercase; letter-spacing: .05em; }
.modal .m-title { font-size: 1.1rem; font-weight: 700; margin: 6px 0 18px; }

.modal .code-reveal {
    display: flex; align-items: center; gap: 0;
    border: 2px dashed var(--accent);
    border-radius: var(--radius-sm);
    background: var(--accent-soft);
    overflow: hidden;
    margin-bottom: 16px;
}
.modal .code-reveal .value {
    flex: 1;
    padding: 14px;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 1.2rem; font-weight: 800;
    letter-spacing: .1em;
    color: var(--ink);
    overflow: hidden; text-overflow: ellipsis;
}
.modal .code-reveal button {
    border: 0; background: var(--accent); color: #fff;
    padding: 15px 18px; font-weight: 700; font-size: .88rem;
    align-self: stretch;
}
.modal .code-reveal button.copied { background: var(--ok); }

.modal .m-hint { font-size: .84rem; color: var(--ink-3); margin: 0 0 16px; }
.modal .m-vote { display: flex; gap: 8px; justify-content: center; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }

/* geri bildirim istemi — kod her gösterildiğinde sorulur */
.modal .m-ask { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.modal .m-ask-q { margin: 0 0 10px; font-size: .95rem; font-weight: 700; color: var(--ink); }
.modal .m-ask-note { margin: 10px 0 0; font-size: .74rem; color: var(--ink-4); }
.modal .m-ask .m-vote { margin-top: 0; padding-top: 0; border-top: 0; }
.modal .m-ask-thanks {
    margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--line);
    font-size: .9rem; font-weight: 600; color: var(--ok); text-align: center;
}
.btn-vote {
    flex: 1; padding: 10px 14px;
    border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
    background: var(--surface); color: var(--ink);
    font-size: .88rem; font-weight: 700;
    transition: border-color .15s, background .15s, color .15s;
}
.btn-vote-ok:hover { border-color: var(--ok); background: #f0fbf4; color: var(--ok); }
.btn-vote-no:hover { border-color: var(--danger); background: #fef2f2; color: var(--danger); }

/* ---------------------------------------------------------------- boş durum */

.empty {
    text-align: center;
    padding: 50px 20px;
    background: var(--surface);
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius);
    color: var(--ink-3);
}
.empty .e-icon { font-size: 2.2rem; margin-bottom: 10px; }
.empty h3 { color: var(--ink); }

/* ---------------------------------------------------------------- alfabe dizini */

.alpha-index { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 18px; }
.alpha-index a {
    width: 34px; height: 34px;
    display: grid; place-items: center;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: var(--surface);
    font-size: .85rem; font-weight: 700;
    color: var(--ink-2);
}
.alpha-index a:hover { border-color: var(--accent); color: var(--accent); }
.alpha-index a.active { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------------------------------------------------------------- broşür görüntüleyici */

.catalog-pages { display: flex; flex-direction: column; gap: 14px; }
.catalog-pages img {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}

/* ---------------------------------------------------------------- alt bilgi */

.site-footer {
    background: var(--surface);
    border-top: 1px solid var(--line);
    margin-top: 46px;
    padding: 34px 0 22px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 28px;
}
.footer-grid h4 { font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-4); margin-bottom: 11px; }
.footer-grid a { display: block; font-size: .85rem; color: var(--ink-2); padding: 3px 0; }
.footer-grid a:hover { color: var(--accent); }
.footer-about { font-size: .85rem; color: var(--ink-3); line-height: 1.65; }

.footer-bottom {
    display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
    margin-top: 26px; padding-top: 18px;
    border-top: 1px solid var(--line);
    font-size: .8rem; color: var(--ink-4);
}

/* ---------------------------------------------------------------- bildirim */

.toast {
    position: fixed; bottom: 22px; left: 50%;
    transform: translateX(-50%) translateY(120%);
    background: var(--ink); color: #fff;
    padding: 11px 20px; border-radius: 999px;
    font-size: .86rem; font-weight: 600;
    box-shadow: 0 10px 30px rgba(16, 24, 40, .25);
    transition: transform .25s ease;
    z-index: 200;
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* ---------------------------------------------------------------- duyarlı */

@media (max-width: 1080px) {
    .mini-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .layout-split { grid-template-columns: 1fr; }
    .sidebar { position: static; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
    h1 { font-size: 1.5rem; }
    .header-main { flex-wrap: wrap; gap: 12px; }
    .search-box { order: 3; flex-basis: 100%; max-width: none; }
    .header-actions { margin-left: auto; }
    .mini-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .coupon-grid { grid-template-columns: 1fr; }
    .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .brand-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .top-strip, .brand-hero { padding: 15px; border-radius: var(--radius); }
    .seo-content { padding: 18px; }
    .footer-grid { grid-template-columns: 1fr; gap: 20px; }
    .toolbar { padding: 11px 12px; }
}

@media print {
    .site-header, .site-nav, .site-footer, .cc-action, .cc-vote { display: none; }
}
