/* Fiyo — fiyo.com.tr tasarım sistemi (v4 "Yüksek Kontrast Mono", Android ile aynı token'lar) */

:root {
    --color-bg: #FFFFFF;
    --color-surface: #FFFFFF;
    --color-surface-alt: #F2F2F2;
    --color-primary: #111111;
    --color-primary-deep: #111111;
    --color-on-primary: #FFFFFF;
    --color-primary-container: #E8E8E8;
    --color-on-primary-container: #1A1A1A;
    --color-secondary: #FF5A1F;
    --color-on-secondary: #FFFFFF;
    --color-secondary-container: #FFE1D2;
    --color-success: #1F8A4C;
    --color-success-container: #DCF0E2;
    --color-discount: #D62839;
    --color-discount-container: #FBDEDD;
    --color-text: #111111;
    --color-text-muted: #6B6B6B;
    --color-outline: #E2E2E2;

    --radius-sm: 14px;
    --radius-md: 18px;
    --radius-lg: 24px;
    --radius-pill: 999px;

    --shadow-1: 0 1px 3px rgba(17, 17, 17, 0.08), 0 1px 2px rgba(17, 17, 17, 0.06);
    --shadow-2: 0 4px 16px rgba(17, 17, 17, 0.10);

    color-scheme: light;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    background: var(--color-bg);
    color: var(--color-text);
    font-family: "Segoe UI", Roboto, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
    line-height: 1.5;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

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

.site-header__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 116px;
    gap: 24px;
}

/* Metin logo (2026-07-28). Önceden 340x100 PNG kullanılıyordu ve ölçeklendiği
   için bulanık görünüyordu; kelime işareti artık yazı olduğu için her ekran
   yoğunluğunda net ve ek bir istek gerektirmiyor. */
.site-logo {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-shrink: 0;
    line-height: 1.1;
}

.site-logo__mark {
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -0.035em;
    color: var(--color-text);
}

.site-logo__tld {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--color-text-muted);
}

.site-logo__tagline {
    font-size: 12px;
    color: var(--color-text-muted);
    margin-top: 3px;
    white-space: nowrap;
}

/* Slogandaki tek vurgu: turuncu, italik değil (em varsayılanı sıfırlanıyor). */
.site-logo__tagline em {
    font-style: normal;
    font-weight: 700;
    color: var(--color-secondary);
}

.site-nav {
    display: flex;
    gap: 4px;
    align-items: center;
    flex: 1;
    justify-content: center;
}

.site-nav a {
    padding: 13px 20px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 18px;
    color: var(--color-text-muted);
}

.site-header__bar .btn-primary {
    font-size: 19px;
    padding: 15px 28px;
}

.site-nav a:hover,
.site-nav a.active {
    background: var(--color-primary-container);
    color: var(--color-on-primary-container);
}

.nav-toggle {
    display: none;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 15px;
    padding: 12px 22px;
    cursor: pointer;
    white-space: nowrap;
}

.btn-primary {
    background: var(--color-secondary);
    color: var(--color-on-secondary);
}

.btn-primary:hover {
    filter: brightness(1.05);
}

/* İkincil butonlar (geri bildirim: "gri biraz sıkıcı"). Turuncu tek vurgu
   kuralı bozulmadan canlandırıldı: kenarlık ink rengine yaklaştı, üzerine
   gelince buton dolu ink oluyor - gri bir çerçeve yerine net bir eylem. */
.btn-outline {
    background: var(--color-surface);
    border: 1.5px solid #C9C9C9;
    color: var(--color-text);
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-outline:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-on-primary);
}

.btn-tonal {
    background: var(--color-primary-container);
    color: var(--color-on-primary-container);
    transition: background 0.15s ease;
}

.btn-tonal:hover {
    background: #DCDCDC;
}

/* Hero (v4.4 — 2026-07-28 "Sade")
   Kullanıcı isteği: "hero'yu sıfırdan sade bir şeyle değiştir; süs yok, alt
   çizgi/rozet/kanıt kartı yok". Geriye sadece işi yapan üç şey kaldı: başlık,
   tek cümlelik açıklama ve arama alanı.

   Kaldırılanlar ve NEDEN (geri eklemeden önce oku):
   - `.hero__eyebrow` / `.hero__dot` (YAPAY ZEKÂ DESTEKLİ rozeti)
   - `.hero__mark` (başlıktaki turuncu alt çizgi) — satır sonuna denk gelince
     kelime bölünüp iki ayrı çizgi olarak kırılıyordu
   - `.hero-facts` — ikinci kez tanımlanan bir kural link rengini beyaz yapıyordu
     (koyu hero döneminden kalma), beyaz zeminde "32 pazar yeri" görünmez oldu
   - `.hero-proof` (kanıt kartı) */
.hero {
    background: var(--color-surface);
    color: var(--color-text);
    border: 1px solid var(--color-outline);
    border-radius: var(--radius-lg);
    padding: 48px 40px;
    margin: 18px 0 28px;
}

.hero h1 {
    font-size: clamp(26px, 3.4vw, 38px);
    line-height: 1.15;
    letter-spacing: -0.02em;
    font-weight: 700;
    margin: 0 0 10px;
    max-width: 640px;
    text-wrap: balance;
    color: var(--color-text);
}

.hero p {
    color: var(--color-text-muted);
    font-size: 16px;
    line-height: 1.5;
    max-width: 560px;
    margin: 0 0 24px;
}

/* İki sütunlu hero + kanıt kartı — SADECE /ai-karsilastirma'da (kullanıcı
   isteği, 2026-07-28: "ürün analiz sayfasının sağında son fotoğraflı analiz
   gösterilebilir"). Ana sayfa sade tek sütun kalıyor. Kart yalnızca fiyatı
   sayfadan okunmuş + fotoğrafı olan bir analiz varsa basılıyor. */
.hero--split {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

@media (min-width: 980px) {
    .hero--split {
        grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
        gap: 40px;
        align-items: center;
    }
}

.hero-proof {
    display: block;
    background: var(--color-surface);
    color: var(--color-text);
    border: 1px solid var(--color-outline);
    border-radius: 16px;
    padding: 16px;
    box-shadow: var(--shadow-1);
    transition: box-shadow 0.2s ease;
}

.hero-proof:hover {
    box-shadow: var(--shadow-2);
}

.hero-proof__label {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
    margin-bottom: 14px;
}

.hero-proof__top {
    display: flex;
    align-items: center;
    gap: 14px;
}

.hero-proof__img {
    width: 76px;
    height: 76px;
    flex: none;
    border-radius: 14px;
    background: #FFFFFF;
    border: 1px solid var(--color-outline);
    object-fit: contain;
    padding: 6px;
}

.hero-proof__name {
    font-weight: 700;
    font-size: 15px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-proof__meta {
    font-size: 12.5px;
    color: var(--color-text-muted);
    margin-top: 4px;
}

.hero-proof__price {
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--color-secondary);
    font-variant-numeric: tabular-nums;
    margin-top: 16px;
}

.hero-proof__quote {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    background: var(--color-success-container);
    color: #14663A;
    font-size: 12.5px;
    line-height: 1.4;
}

.hero-proof__cta {
    display: block;
    margin-top: 14px;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--color-text);
}

.hero-proof:hover .hero-proof__cta {
    text-decoration: underline;
}

.hero-form {
    max-width: 100%;
}

/* Minimal soft search bar: beyaz kap, soft shadow, responsive. */
.hero-field {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #FFFFFF;
    border: 1px solid var(--color-outline);
    border-radius: 18px;
    padding: 14px 18px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.hero-field:focus-within {
    border-color: var(--color-secondary);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.hero-field__icon {
    width: 20px;
    height: 20px;
    color: var(--color-text-muted);
    margin-bottom: 2px;
}

.hero-field input[type="url"] {
    border: 0;
    background: transparent;
    font-size: 16px;
    font-family: inherit;
    color: var(--color-text);
    padding: 8px 0;
    line-height: 1.5;
}

.hero-field input[type="url"]:focus {
    outline: none;
}

.hero-field input[type="url"]::placeholder {
    color: var(--color-text-muted);
}

.hero-field .btn {
    width: 100%;
    padding: 12px 22px;
    border-radius: 14px;
    font-size: 15px;
    margin-top: 4px;
    transition: all 0.2s ease;
}

.hero-field .btn:hover {
    filter: brightness(1.08);
}

@media (min-width: 640px) {
    .hero-field {
        flex-direction: row;
        gap: 12px;
        padding: 10px 10px 10px 16px;
        align-items: center;
    }

    .hero-field__icon {
        flex: none;
        margin-bottom: 0;
    }

    .hero-field input[type="url"] {
        flex: 1 1 auto;
        min-width: 0;
        padding: 10px 0;
    }

    .hero-field .btn {
        width: auto;
        flex: none;
        padding: 10px 24px;
        margin-top: 0;
    }
}

/* "En iyi fiyat" kartı (analiz sayfası). Sayfadaki tek koyu yüzey: göz
   doğrudan rakama gitsin diye. İki sütun — solda fiyat + kanıtı, sağda tek
   eylem; dar ekranda alt alta düşer. */
.best-price {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px 24px;
    background: #111111;
    color: #fff;
    border-radius: var(--radius-md);
    padding: 22px 24px;
    margin: 0 0 20px;
}

.best-price__info {
    min-width: 0;
}

.best-price__label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
}

.best-price__store {
    font-size: 14px;
    font-weight: 600;
    margin-top: 6px;
    color: rgba(255, 255, 255, 0.9);
}

.best-price__value {
    font-size: 34px;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-top: 2px;
    font-variant-numeric: tabular-nums;
}

.best-price__verified {
    font-size: 12.5px;
    color: #6FCB98;
    margin-top: 6px;
}

.best-price__quote {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.65);
    margin-top: 2px;
    line-height: 1.35;
}

/* Buton içeriği kadar: kartın tüm genişliğine yayılınca "dev turuncu şerit"
   gibi duruyordu. */
.best-price__cta {
    flex: none;
    padding: 14px 30px;
    font-size: 15px;
}

@media (max-width: 620px) {
    .best-price {
        flex-direction: column;
        align-items: stretch;
        padding: 20px;
    }

    .best-price__cta {
        width: 100%;
    }

    .best-price__value {
        font-size: 30px;
    }
}

/* Sections */
.section {
    margin: 18px 0;
}

.section__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 8px;
    gap: 16px;
}

/* Başlıklar bilinçli olarak saf siyah (--color-text) değil - üst üste gelen
   bölüm başlıkları sayfada fazla dikkat çekiyordu, içeriğin (broşür kapakları,
   market logoları) önüne geçmesin diye kırık bir gri tonuna çekildi. */
.section__head h2 {
    font-size: 21px;
    margin: 0;
    color: #5C5C5C;
    font-weight: 700;
}

.section__head .see-all {
    font-weight: 700;
    color: var(--color-primary);
    font-size: 14px;
}

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

/* Cards */
.card {
    background: var(--color-surface);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-1);
    overflow: hidden;
    transition: box-shadow 0.15s ease, transform 0.15s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card:hover {
    box-shadow: var(--shadow-2);
    transform: translateY(-2px);
}

.card__image {
    position: relative;
    aspect-ratio: 4 / 3;
    background: var(--color-surface-alt);
    overflow: hidden;
}

/* Süresi geçmiş broşür üzerine çekilen uyarı şeridi - importer bir marketi
   tarayamadığında o marketin broşürleri is_active=True kalmaya devam
   edebiliyor (bkz. _brochure_status yorumu); bu şerit end_date geçmiş
   olduğunda kullanıcıya görselin güncel olmadığını açıkça gösterir. */
.card-ribbon {
    position: absolute;
    top: 14px;
    left: -34px;
    width: 150px;
    padding: 5px 0;
    text-align: center;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #FFFFFF;
    transform: rotate(-40deg);
    z-index: 2;
    box-shadow: var(--shadow-1);
}

.card-ribbon--expired {
    background: var(--color-discount);
}

.card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Broşür kapak görselleri dikey taranmış katalog sayfaları. Önce 4:3 yatay
   kutudaydılar (görselin yarısı kırpılıyordu), sonra 3:4'e alındı - ama
   `object-fit: cover` kırpmaya devam etti çünkü kapakların oranı MARKET BAŞINA
   DEĞİŞİYOR. Canlıdan ölçüm (2026-07-27):

       BİM        1067x1600  oran 0.667  -> 3:4 kutuda %11 üst+alt kırpma
       ŞOK        1131x1600  oran 0.707  -> %5.8 üst+alt kırpma
       A101       1280x1600  oran 0.800  -> %6.2 sağ+sol kırpma
       Anpa Gross 1277x1600  oran 0.798  -> %6.2 sağ+sol kırpma

   Yani sabit hiçbir oran herkesi kurtarmıyor; birini sığdıran diğerini kesiyor.
   Kapağın üst kısmında market logosu ve tarih var - kırpılınca broşürün hangi
   markete ait olduğu kayboluyordu (kullanıcı geri bildirimi: "üst kısmı
   taşıyor"). `contain` ile kapak bütün hâlde duruyor; oran farkı kadar ince bir
   boşluk kalıyor, kart zemini beyaz olduğu için göze çarpmıyor. */
.card__image--brochure {
    aspect-ratio: 3 / 4;
    background: #FFFFFF;
}

.card__image--brochure img {
    object-fit: contain;
}

.card__body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

/* Broşür kartları artık dikey (3:4) görsel kullanıyor, altındaki yazı alanı
   orantısız büyük duruyordu - biraz daraltıldı. */
.card__body--brochure {
    padding: 10px 12px 12px;
    gap: 2px;
}

.card__body--brochure .card__title {
    font-size: 13px;
    line-height: 1.25;
}

.card__body--brochure .card__meta {
    font-size: 11.5px;
}

.card__title {
    font-weight: 700;
    font-size: 15px;
    line-height: 1.3;
}

.card__meta {
    font-size: 13px;
    color: var(--color-text-muted);
}

.card__price {
    margin-top: auto;
    padding-top: 8px;
    font-weight: 800;
    color: var(--color-primary);
}

.badge {
    display: inline-flex;
    align-items: center;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    background: rgba(0,0,0,0.55);
    color: #fff;
    width: fit-content;
}

/* Market avatar */
.avatar-circle {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 800;
    font-size: 28px;
    flex-shrink: 0;
}

/* Logosuz marketler için: düz siyah daire yerine daha yumuşak, nötr açık gri
   zemin + koyu baş harf - sayfada çok fazla siyah birikmesin diye (kullanıcı
   geri bildirimi). */
.avatar-circle--fallback {
    background: var(--color-primary-container);
    color: var(--color-on-primary-container);
    border: 1px solid var(--color-outline);
}

/* Market adı yazısı kaldırıldı (kullanıcı isteğiyle) - logolar zaten tek başına
   anlaşılır, `title` attribute ile hover'da isim hâlâ görülebiliyor. */
.market-chip {
    display: flex;
    flex-shrink: 0;
}

.market-chip img {
    -webkit-user-drag: none;
    user-drag: none;
    pointer-events: none;
}

.chip-row {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 4px;
    cursor: grab;
    user-select: none;
    scroll-behavior: smooth;

    /* Varsayılan tarayıcı scrollbar'ı (kalın, gri çubuk) bu tasarımla uyuşmuyordu -
       kaydırma zaten dokunma/trackpad ile çalışıyor, çubuğa gerek yok. */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.chip-row.dragging {
    cursor: grabbing;
}

.chip-row::-webkit-scrollbar {
    display: none;
}

/* Content pages */
.prose {
    max-width: 720px;
    margin: 32px auto;
}

.prose h1 {
    font-size: 30px;
    margin-bottom: 8px;
}

.prose p {
    color: var(--color-text-muted);
    margin: 0 0 16px;
}

.empty-state {
    text-align: center;
    padding: 64px 20px;
    color: var(--color-text-muted);
}

/* Footer */
.site-footer {
    background: var(--color-primary-deep);
    color: rgba(255,255,255,0.75);
    margin-top: 80px;
    padding: 48px 0 32px;
}

.site-footer a {
    color: rgba(255,255,255,0.85);
}

.site-footer__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.site-footer h4 {
    color: #fff;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0 0 14px;
}

.site-footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 14px;
}

.site-footer__bottom {
    border-top: 1px solid rgba(255,255,255,0.14);
    padding-top: 20px;
    font-size: 13px;
    color: rgba(255,255,255,0.55);
}

/* Detail pages */
.detail-header {
    display: flex;
    gap: 28px;
    align-items: flex-start;
    margin: 32px 0;
    flex-wrap: wrap;
    background: var(--color-surface-alt);
    border-radius: var(--radius-lg);
    padding: 28px;
}

.detail-header__cover {
    width: 220px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-2);
    flex-shrink: 0;
}

.detail-header__info h1 {
    font-size: 26px;
    margin: 0 0 8px;
}

.detail-header__info .meta {
    color: var(--color-text-muted);
    margin-bottom: 4px;
}

/* Broşür detayındaki market rozeti - logo + isim, tıklanınca o marketin
   broşürlerine filtreliyor. */
.market-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--color-surface);
    border-radius: var(--radius-pill);
    padding: 6px 14px 6px 6px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 14px;
    box-shadow: var(--shadow-1);
}

.market-pill img {
    width: 26px;
    height: 26px;
    border-radius: 50%;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    font-size: 12px;
    font-weight: 700;
    margin-top: 8px;
}

.status-badge--active {
    background: var(--color-success-container);
    color: var(--color-success);
}

.status-badge--ending,
.status-badge--new {
    background: var(--color-secondary-container);
    color: var(--color-secondary);
}

.status-badge--expired {
    background: var(--color-discount-container);
    color: var(--color-discount);
}

/* Broşür detay sayfası - eskiden bilgi kartı ve sayfa görüntüleyici birbirinden
   kopuk iki ayrı gri kutu halindeydi (kullanıcı geri bildirimi). Şimdi ikisi
   tek bir panel içinde, BİM'in broşür sayfasına benzer iki sütunlu bir
   düzende: solda broşür bilgisi, sağda slider. */
.brochure-panel {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 32px;
    margin: 32px 0;
    padding: 28px;
    background: var(--color-surface);
    border: 1px solid var(--color-outline);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-1);
}

.brochure-panel__sidebar {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.brochure-panel__cover {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-2);
    line-height: 0;
}

.brochure-panel__cover img {
    width: 100%;
    display: block;
}

.brochure-panel__sidebar h1 {
    font-size: 24px;
    margin: 4px 0 0;
}

.brochure-panel__meta {
    list-style: none;
    padding: 0;
    margin: 4px 0 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.brochure-panel__meta li {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--color-text-muted);
    font-size: 14px;
}

.brochure-panel__meta svg {
    flex-shrink: 0;
    color: var(--color-text-muted);
}

.brochure-panel__viewer {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.brochure-viewer {
    position: relative;
}

.viewer-main {
    position: relative;
    width: 100%;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-2);
    background: var(--color-surface-alt);
    cursor: pointer;
    line-height: 0;
}

.viewer-page {
    display: none;
    width: 100%;
}

.viewer-page.is-active {
    display: block;
}

.viewer-counter {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    background: rgba(17, 17, 17, 0.6);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    font-variant-numeric: tabular-nums;
}

.viewer-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: var(--color-surface);
    color: var(--color-text);
    box-shadow: var(--shadow-2);
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.viewer-nav--prev {
    left: 12px;
}

.viewer-nav--next {
    right: 12px;
}

.viewer-nav:hover {
    background: var(--color-primary);
    color: var(--color-on-primary);
    transform: translateY(-50%) scale(1.08);
}

/* Sürükleme/tekerlek ile kaydırma - chip-row'daki aynı mantık. */
.viewer-thumbs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 6px;
    cursor: grab;
    user-select: none;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.viewer-thumbs::-webkit-scrollbar {
    display: none;
}

.viewer-thumb {
    position: relative;
    flex-shrink: 0;
    width: 60px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 2px solid transparent;
    padding: 0;
    background: var(--color-surface);
    box-shadow: var(--shadow-1);
    cursor: pointer;
    opacity: 0.65;
    transition: border-color 0.15s ease, opacity 0.15s ease;
}

.viewer-thumb img {
    width: 100%;
    display: block;
}

.viewer-thumb span {
    position: absolute;
    bottom: 4px;
    right: 4px;
    background: rgba(17, 17, 17, 0.65);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: var(--radius-pill);
}

.viewer-thumb.is-active {
    border-color: var(--color-secondary);
    opacity: 1;
}

.item-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 12px;
    background: var(--color-surface);
    box-shadow: var(--shadow-1);
    margin-bottom: 8px;
}

.item-row img {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    object-fit: contain;
    background: var(--color-surface-alt);
    flex: none;
}

.item-row__body {
    flex: 1;
    min-width: 0;
}

.item-row__title {
    font-weight: 700;
    font-size: 13px;
    line-height: 1.3;
}

.item-row__store {
    font-size: 13px;
    color: var(--color-text-muted);
}

.item-row__price {
    font-weight: 800;
    color: var(--color-primary);
}

.filter-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.filter-chip {
    padding: 9px 18px;
    border-radius: var(--radius-pill);
    border: 1.5px solid var(--color-outline);
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
    background: var(--color-surface);
}

.filter-chip.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}

/* Kategori filtreleri + hover'da açılan market listesi */
.category-filter-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.category-filter {
    position: relative;
}

/* Tetikleyici ile panel arasındaki 8px boşluk hover'ı kesiyordu: fare aşağı
   inerken boşluğa gelince menü kapanıyordu (kullanıcı geri bildirimi). Bu
   görünmez köprü boşluğu `.category-filter`'ın kendi alanına dahil ediyor,
   böylece `:hover` kopmuyor. */
.category-filter::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 10px;
}

.category-filter__trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 16px;
    border-radius: var(--radius-pill);
    border: 1.5px solid var(--color-outline);
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
    background: var(--color-surface);
    cursor: pointer;
}

.category-filter__trigger .chevron {
    font-size: 10px;
    color: var(--color-text-muted);
    transition: transform 0.15s ease;
}

.category-filter.active .category-filter__trigger,
.category-filter__trigger:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}

.category-filter.active .category-filter__trigger .chevron,
.category-filter__trigger:hover .chevron {
    color: rgba(255, 255, 255, 0.7);
}

.category-filter__panel {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 200px;
    background: var(--color-surface);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-2);
    padding: 8px;
    display: none;
    flex-direction: column;
    gap: 2px;
    z-index: 30;
}

.category-filter:hover .category-filter__panel,
.category-filter:focus-within .category-filter__panel,
.category-filter.open .category-filter__panel {
    display: flex;
}

.category-filter:hover .category-filter__trigger .chevron,
.category-filter.open .category-filter__trigger .chevron {
    transform: rotate(180deg);
}

.category-filter__panel a {
    padding: 9px 12px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
}

.category-filter__panel a:hover,
.category-filter__panel a.active {
    background: var(--color-primary-container);
    color: var(--color-on-primary-container);
}

/* Nasıl Çalışır */
.how-it-works {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.how-step {
    position: relative;
    background: var(--color-surface-alt);
    border-radius: var(--radius-lg);
    padding: 28px 24px 26px;
}

.how-step__number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--color-secondary);
    color: var(--color-on-secondary);
    font-weight: 800;
    font-size: 15px;
    margin-bottom: 18px;
}

.how-step__title {
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -0.01em;
    margin: 0 0 8px;
}

.how-step__desc {
    font-size: 14px;
    line-height: 1.5;
    color: var(--color-text-muted);
    margin: 0;
}

.how-step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 46px;
    right: -13px;
    width: 26px;
    height: 2px;
    background: var(--color-outline);
    display: none;
}

@media (min-width: 900px) {
    .how-step:not(:last-child)::after {
        display: block;
    }
}

@media (max-width: 720px) {
    .how-it-works {
        grid-template-columns: 1fr;
    }
}

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

    /* Başlık çubuğu telefonda taşıyordu (kullanıcı ekran görüntüsü, 2026-07-27):
       masaüstü ölçüleriyle logo 231px + "Ürün Analiz Et" butonu 183px + yatay
       boşluklar = 478px yer istiyor, telefon ekranı ise 360-430px. Buton
       ekranın dışında kalıyordu. Menü zaten bu genişlikte gizli olduğu için
       çubuğu tümden küçültüyoruz: 478px -> ~310px. */
    .site-header__bar {
        height: 72px;
        gap: 12px;
    }

    .site-logo__img {
        height: 40px;
        /* Son çare: 320px gibi çok dar ekranlarda logo butonu ezmek yerine
           kendi oranını koruyarak küçülsün. */
        max-width: 100%;
    }

    .site-logo {
        min-width: 0;
    }

    .site-header__bar .btn-primary {
        font-size: 14px;
        padding: 10px 16px;
        flex-shrink: 0;
    }

    .hero {
        padding: 32px 20px;
    }

    .detail-header__cover {
        width: 100%;
    }

    .brochure-panel {
        grid-template-columns: 1fr;
        padding: 18px;
        gap: 20px;
    }

    .brochure-panel__cover {
        max-width: 160px;
    }

    .viewer-nav {
        width: 34px;
        height: 34px;
    }

    .viewer-nav svg {
        width: 16px;
        height: 16px;
    }
}

/* =========================================================
   Etiket bulutu — /ai-karsilastirma
   =========================================================
   `.market-chip` + `.chip-row` market LOGOLARI için yatay sürüklenen bir şerit;
   metin rozetleri için uygun değil (logo boyutlandırması ve drag-scroll davranışı
   metinde bozuk duruyor). Metin rozetleri kendi sarmalayıcısını kullanıyor. */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-pill {
    display: inline-flex;
    align-items: center;
    background: var(--color-surface);
    border: 1px solid var(--color-outline);
    color: var(--color-text);
    border-radius: var(--radius-pill);
    padding: 7px 14px;
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}

/* Ürün kartları (fiyat geçmişi listesi). Etiket bulutunun yerini aldı:
   fotoğraf + ad + fiyat, tıklanabilir tek satırlık kart. */
.mini-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.mini-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px;
    border-radius: var(--radius-md);
    background: var(--color-surface);
    border: 1px solid var(--color-outline);
    transition: box-shadow 0.15s ease, border-color 0.15s ease;
    min-width: 0;
}

.mini-card:hover {
    box-shadow: var(--shadow-2);
    border-color: #C9C9C9;
}

.mini-card__img {
    width: 56px;
    height: 56px;
    flex: none;
    border-radius: 12px;
    object-fit: contain;
    background: #fff;
    border: 1px solid var(--color-outline);
    padding: 4px;
}

.mini-card__img--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 22px;
    color: var(--color-text-muted);
    background: var(--color-surface-alt);
}

.mini-card__body {
    min-width: 0;
}

.mini-card__title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-weight: 700;
    font-size: 14px;
    line-height: 1.3;
}

.mini-card__meta {
    display: block;
    font-size: 12.5px;
    color: var(--color-text-muted);
    margin-top: 3px;
}

/* Pazar yeri listesi varsayılan olarak kapalı: 32 kutucuk sayfayı boğuyordu. */
.marketplace-details {
    margin-top: 14px;
}

.marketplace-details > summary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 700;
    font-size: 14px;
    color: var(--color-text);
    list-style: none;
    padding: 9px 16px;
    border: 1.5px solid #C9C9C9;
    border-radius: var(--radius-pill);
}

.marketplace-details > summary::-webkit-details-marker {
    display: none;
}

.marketplace-details > summary:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-on-primary);
}

.marketplace-details[open] > summary {
    margin-bottom: 14px;
}

a.tag-pill:hover {
    background: var(--color-primary);
    color: var(--color-on-primary);
}

/* Ürün fotoğrafları pazar yerlerinden geliyor ve beyaz zeminli, kenarları boşluklu
   stüdyo çekimleri - `object-fit: cover` ile kırpmak ürünün kenarlarını kesiyordu. */
.card__image--product {
    aspect-ratio: 1;
    background: #FFFFFF;
}

.card__image--product img {
    object-fit: contain;
    padding: 14px;
}

/* Görseli olmayan ürün kartları için nötr yer tutucu - ürün adının baş harfi.
   Mono kimlikle uyumlu: renkli avatar değil, açık gri zemin + ink harf. */
.card__image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-surface-alt);
    color: var(--color-primary);
    font-size: 40px;
    font-weight: 800;
    letter-spacing: -0.03em;
    opacity: 0.32;
}

/* Paylaş butonu — kullanıcı isteğiyle (2026-07-27) alt satırdaki metin linkinin
   yerini aldı: "daha global ve belirgin". Turuncu değil çünkü sayfadaki asıl
   eylem "Mağazaya Git"; paylaş onunla yarışmadan görünür olmalı. */
.btn-share {
    background: var(--color-primary-container);
    color: var(--color-on-primary-container);
    border: none;
}

.btn-share:hover {
    background: var(--color-secondary-container);
}

.btn-share.is-shared {
    background: var(--color-success-container);
    color: var(--color-success);
}

.btn-share svg {
    flex: none;
}

/* Koyu kartların (EN İYİ FİYAT) üzerinde duran paylaş butonu. */
.btn-share--on-dark {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
}

.btn-share--on-dark:hover {
    background: rgba(255, 255, 255, 0.26);
}

/* "Fiyatlar ne zaman okundu" satırı. Tarih yazılmazsa okuyucu rakamı anlık
   sanıyor ve mağazada farklı fiyat görünce siteye güveni sarsılıyor. */
.freshness {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 24px;
    padding: 12px 14px;
    border-radius: 12px;
    background: var(--color-surface-alt);
    color: var(--color-text-muted);
    font-size: 13px;
    line-height: 1.45;
}

.freshness strong {
    color: var(--color-text);
}

/* Sayfa başlığı + paylaş butonu aynı satırda; dar ekranda buton alta iner. */
.page-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.page-head h1 {
    margin: 0;
    flex: 1 1 240px;
}

/* Android'den siteye girildiğinde alttan çıkan "uygulamayı indir" şeridi.
   Yalnızca JS ile (user-agent Android ise ve daha önce kapatılmamışsa)
   görünür kılınıyor - varsayılan gizli, layout'ta yer kaplamasın diye
   `display:none`, JS `.is-visible` ekleyince `flex` oluyor. */
.app-download-banner {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    background: var(--color-primary);
    box-shadow: var(--shadow-2);
}

.app-download-banner.is-visible {
    display: flex;
}

.app-download-banner__icon {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    background: var(--color-on-primary);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 16px;
}

.app-download-banner__text {
    flex: 1;
    min-width: 0;
    color: var(--color-on-primary);
    font-size: 12.5px;
    line-height: 1.35;
}

.app-download-banner__text strong {
    display: block;
    font-size: 14px;
}

.app-download-banner__cta {
    flex-shrink: 0;
    padding: 9px 16px;
    font-size: 13px;
    white-space: nowrap;
}

.app-download-banner__close {
    flex-shrink: 0;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.65);
    font-size: 22px;
    line-height: 1;
    padding: 4px 8px;
    cursor: pointer;
}

@media (max-width: 380px) {
    .app-download-banner__text {
        font-size: 11.5px;
    }
}
