@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
  --bg: #F1F4EC; --panel: #FFFFFF; --ink: #1B211A; --ink-soft: #63705A;
  --olive: #556B3F; --olive-deep: #2D3921; --olive-pale: #DFE7D3; --olive-mid: #87A067;
  --line: #D3DCC5; --amber: #C98A2E; --amber-pale: #F3E3C6; --rust: #A65231; --red: #B3452F;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { background: var(--bg); color: var(--ink); font-family: 'Space Grotesk', sans-serif; font-size: 13.5px; }

header { display: flex; align-items: center; justify-content: space-between; padding: 16px 48px; background: var(--panel); border-bottom: 2px solid var(--olive-deep); position: relative; }

.head-search-form { position: relative; display: inline-flex; align-items: center; }
.head-search-icon { position: absolute; left: 13px; width: 15px; height: 15px; color: var(--ink-soft); pointer-events: none; transition: color 0.2s ease; }
.search-box {
  background: var(--bg); border: 1.5px solid var(--line); border-radius: 22px;
  padding: 9px 14px 9px 36px; font-family: 'Space Grotesk', sans-serif; font-size: 12.5px;
  color: var(--ink); width: 190px; transition: all 0.25s ease;
}
.search-box::placeholder { color: var(--ink-soft); }
.search-box:focus { outline: none; border-color: var(--olive); background: var(--panel); width: 230px; box-shadow: 0 0 0 4px rgba(85,107,63,0.1); }
.head-search-form:focus-within .head-search-icon { color: var(--olive); }
.logo { display: flex; align-items: center; gap: 12px; }
.logo-mark { width: 32px; height: 32px; background: var(--olive-deep); display: flex; align-items: center; justify-content: center; color: var(--panel); font-family: 'JetBrains Mono'; font-size: 12px; font-weight: 700; clip-path: polygon(0 0,100% 0,100% 75%,75% 100%,0 100%); }
.logo-text { font-size: 18px; font-weight: 700; }
nav { display: flex; gap: 2px; }
nav a { color: var(--ink-soft); text-decoration: none; font-size: 12px; font-weight: 500; padding: 8px 14px; }
.btn-mini { background: var(--olive-deep); color: var(--panel); border: none; padding: 8px 16px; font-size: 11.5px; font-weight: 600; cursor: pointer; text-decoration: none; }
.head-avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--olive); display: flex; align-items: center; justify-content: center; color: var(--panel); font-family: 'JetBrains Mono'; font-size: 11px; font-weight: 700; text-decoration: none; }
.head-user { display: flex; align-items: center; gap: 10px; }

.flash { padding: 12px 48px; font-size: 13px; }
.flash-success { background: var(--olive-pale); color: var(--olive-deep); }
.flash-error { background: #F5DCD4; color: var(--red); }

footer { padding: 24px 48px; display: flex; justify-content: space-between; font-family: 'JetBrains Mono'; font-size: 10px; color: var(--ink-soft); background: var(--panel); border-top: 1px solid var(--line); margin-top: 40px; }

/* Auth sayfaları (kayıt ol / giriş) */
.auth-wrap { max-width: 420px; margin: 50px auto; padding: 0 20px; }
.form-card, .notice-card { background: var(--panel); border: 1px solid var(--line); padding: 32px; }
.form-card h1 { font-size: 20px; font-weight: 700; margin-bottom: 6px; }
.sub { font-size: 12.5px; color: var(--ink-soft); margin-bottom: 24px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-family: 'JetBrains Mono'; font-size: 10px; letter-spacing: 0.5px; color: var(--ink-soft); margin-bottom: 6px; }
.field input, .field textarea { width: 100%; border: 1px solid var(--line); background: var(--bg); padding: 10px 12px; font-family: 'Space Grotesk'; font-size: 13px; color: var(--ink); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--olive); }
.consent-box { display: flex; align-items: flex-start; gap: 10px; margin: 20px 0; padding: 14px; background: var(--bg); border: 1px solid var(--line); font-size: 12px; color: var(--ink-soft); }
.consent-box a { color: var(--olive-deep); font-weight: 600; }
.btn-p { width: 100%; background: var(--olive-deep); color: var(--panel); border: none; padding: 12px; font-size: 13px; font-weight: 600; cursor: pointer; text-align: center; text-decoration: none; display: block; }
.login-link { text-align: center; font-size: 12.5px; color: var(--ink-soft); margin-top: 18px; }
.login-link a { color: var(--olive-deep); font-weight: 600; text-decoration: none; }

.notice-card { text-align: center; }
.notice-icon { width: 56px; height: 56px; margin: 8px auto 20px; border-radius: 50%; background: var(--olive-pale); display: flex; align-items: center; justify-content: center; font-family: 'JetBrains Mono'; font-size: 22px; font-weight: 700; color: var(--olive-deep); }
.notice-meta { display: inline-flex; align-items: center; gap: 8px; font-family: 'JetBrains Mono'; font-size: 10.5px; color: var(--olive-deep); background: var(--olive-pale); padding: 7px 14px; margin-bottom: 26px; }
.notice-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--olive); }

/* --- Envanter (ürün kataloğu) --- */
.crumb-inner { padding: 12px 48px; font-family: 'JetBrains Mono'; font-size: 11px; color: var(--ink-soft); }
.crumb-inner b { color: var(--olive-deep); }

.search-band { background: var(--panel); border-bottom: 1px solid var(--line); padding: 26px 48px; }
.search-band h1 { font-size: 22px; font-weight: 700; margin-bottom: 12px; }
.search-box-lg { display: flex; align-items: center; gap: 10px; max-width: 560px; border: 2px solid var(--olive-deep); padding: 4px; }
.search-box-lg input { flex: 1; border: none; outline: none; font-family: 'Space Grotesk'; font-size: 14px; padding: 9px 0 9px 12px; background: transparent; color: var(--ink); }
.search-box-lg button { background: var(--olive-deep); color: var(--panel); border: none; padding: 10px 20px; font-size: 12px; font-weight: 600; cursor: pointer; }

.layout { display: grid; grid-template-columns: 220px 1fr; gap: 2px; background: var(--line); }
.layout > aside { background: var(--panel); padding: 26px 20px; position: sticky; top: 0; align-self: start; max-height: 100vh; overflow-y: auto; }
.layout > main { background: var(--bg); min-width: 0; }
.side-widget { margin-bottom: 28px; }
.side-link { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px; font-size: 12.5px; color: var(--ink); text-decoration: none; margin-bottom: 2px; }
.side-link.on { background: var(--olive-pale); color: var(--olive-deep); font-weight: 600; }
.side-link span { font-family: 'JetBrains Mono'; font-size: 10px; color: var(--ink-soft); }
.side-title { font-family: 'JetBrains Mono'; font-size: 10px; letter-spacing: 1px; color: var(--ink-soft); margin-bottom: 12px; }
.filter-item { display: flex; align-items: center; gap: 8px; padding: 7px 0; font-size: 12.5px; cursor: pointer; }

.compare-bar { background: var(--olive-deep); color: var(--panel); padding: 14px 16px; margin-bottom: 20px; }
.compare-bar h4 { font-size: 12.5px; font-weight: 700; margin-bottom: 4px; }
.compare-bar p { font-size: 11px; opacity: 0.75; margin-bottom: 12px; }
.compare-slot { display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.08); padding: 7px 9px; margin-bottom: 6px; font-size: 11px; }
.compare-slot.empty { opacity: 0.5; font-family: 'JetBrains Mono'; font-size: 10px; }
.btn-compare { width: 100%; background: var(--amber); color: var(--olive-deep); border: none; padding: 9px; font-size: 11.5px; font-weight: 700; cursor: pointer; margin-top: 8px; }

.toolbar { margin-bottom: 18px; }
.toolbar .count { font-size: 13px; color: var(--ink-soft); }
.toolbar .count b { color: var(--olive-deep); }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--line); border: 1px solid var(--line); }
.card { background: var(--panel); padding: 18px; display: flex; flex-direction: column; }
.thumb { height: 120px; background: linear-gradient(135deg, var(--olive-pale), var(--olive-mid)); margin-bottom: 12px; position: relative; }
.thumb-tag { position: absolute; top: 8px; left: 8px; background: var(--olive-deep); color: var(--panel); font-family: 'JetBrains Mono'; font-size: 9px; padding: 3px 8px; }
.p-brand { font-family: 'JetBrains Mono'; font-size: 10px; color: var(--ink-soft); margin-bottom: 4px; }
.card h3 { font-size: 14.5px; font-weight: 700; line-height: 1.35; margin-bottom: 8px; }
.price { font-family: 'JetBrains Mono'; font-size: 12.5px; color: var(--olive-deep); font-weight: 700; margin-bottom: 10px; }
.card-actions { display: flex; gap: 6px; margin-top: auto; }
.btn-detail { flex: 1; background: var(--olive-deep); color: var(--panel); border: none; padding: 8px; font-size: 11px; font-weight: 600; cursor: pointer; text-align: center; text-decoration: none; }
.btn-add-compare { border: 1px solid var(--olive); color: var(--olive-deep); background: var(--panel); padding: 8px 10px; font-size: 11px; cursor: pointer; }

/* Ürün detay sayfası */
.wrap { max-width: 1180px; margin: 0 auto; padding: 28px 48px 60px; }
.top-section { display: grid; grid-template-columns: 1fr 400px; gap: 40px; margin-bottom: 40px; }
.gallery-main { height: 380px; background: linear-gradient(140deg, var(--olive-pale), var(--olive-mid) 65%, var(--olive-deep)); margin-bottom: 10px; position: relative; }
.gallery-main .type-badge { position: absolute; top: 14px; left: 14px; background: var(--olive-deep); color: var(--panel); font-family: 'JetBrains Mono'; font-size: 10.5px; padding: 5px 12px; }
.thumb-strip { display: flex; gap: 8px; }
.thumb-strip div { width: 68px; height: 68px; background: var(--olive-pale); cursor: pointer; }

.buy-box { background: var(--panel); border: 1px solid var(--line); padding: 24px; height: fit-content; }
.buy-box h1 { font-size: 21px; font-weight: 700; line-height: 1.3; margin-bottom: 10px; }
.rating-row { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.stars { color: var(--amber); font-size: 14px; }
.rating-row span:last-child { font-family: 'JetBrains Mono'; font-size: 11px; color: var(--ink-soft); }
.price-box { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 16px 0; margin-bottom: 16px; }
.price-label { font-family: 'JetBrains Mono'; font-size: 9.5px; color: var(--ink-soft); margin-bottom: 4px; }
.price-val { font-size: 24px; font-weight: 700; color: var(--olive-deep); }
.buy-links { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.buy-link { display: flex; justify-content: space-between; align-items: center; border: 1px solid var(--line); padding: 11px 14px; text-decoration: none; color: var(--ink); font-size: 12.5px; }
.buy-link.primary { background: var(--olive-deep); color: var(--panel); border-color: var(--olive-deep); font-weight: 600; }
.buy-link.primary span { color: var(--amber-pale); }
.buy-link span { font-family: 'JetBrains Mono'; font-size: 10px; color: var(--ink-soft); }
.affiliate-note { font-family: 'JetBrains Mono'; font-size: 9px; color: var(--ink-soft); margin-bottom: 16px; line-height: 1.5; }
.btn-compare-add { width: 100%; background: var(--panel); border: 1px solid var(--olive); color: var(--olive-deep); padding: 11px; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.desc-box { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--ink-soft); line-height: 1.65; }

.section-title { font-size: 19px; font-weight: 700; margin-bottom: 18px; }
.specs-table { width: 100%; border-collapse: collapse; background: var(--panel); border: 1px solid var(--line); margin-bottom: 40px; }
.specs-table td { padding: 13px 18px; border-top: 1px solid var(--line); font-size: 13px; }
.specs-table tr:first-child td { border-top: none; }
.spec-key { font-family: 'JetBrains Mono'; font-size: 11px; color: var(--ink-soft); background: var(--olive-pale); width: 240px; font-weight: 600; }

.related-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; background: var(--line); border: 1px solid var(--line); margin-bottom: 40px; }
.rel-card { background: var(--panel); padding: 16px; }
.rel-thumb { height: 90px; background: var(--olive-pale); margin-bottom: 10px; }
.p-brand-sm { font-family: 'JetBrains Mono'; font-size: 9px; color: var(--ink-soft); margin-bottom: 3px; }
.rel-card h4 { font-size: 12.5px; font-weight: 700; margin-bottom: 6px; line-height: 1.35; }
.price-sm { font-family: 'JetBrains Mono'; font-size: 11px; color: var(--olive-deep); font-weight: 700; }

/* Karşılaştırma sayfası */
.compare-table { width: 100%; border-collapse: collapse; background: var(--panel); border: 1px solid var(--line); }
.compare-table th, .compare-table td { padding: 14px 18px; border: 1px solid var(--line); vertical-align: top; }
.product-head { width: 260px; }
.product-head h3 { font-size: 15px; font-weight: 700; margin: 8px 0; }
.remove-btn { font-family: 'JetBrains Mono'; font-size: 10px; color: var(--rust); background: none; border: 1px solid var(--rust); padding: 5px 10px; cursor: pointer; }
.spec-val.best { background: var(--amber-pale); font-weight: 700; color: var(--olive-deep); }
.spec-val.diff::before { content: '●'; color: var(--amber); font-size: 8px; margin-right: 6px; }
.legend { margin-top: 16px; font-size: 11.5px; color: var(--ink-soft); }

@media (max-width: 860px) {
  .layout { grid-template-columns: 1fr; padding: 20px; }
  .layout > aside { position: static; max-height: none; }
  .grid { grid-template-columns: 1fr; }
  .top-section { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
  .wrap { padding: 20px; }
}

/* --- Mobil header / hamburger menü --- */
.hamburger-btn { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 32px; height: 32px; background: none; border: none; cursor: pointer; padding: 0; }
.hamburger-btn span { display: block; width: 100%; height: 2px; background: var(--olive-deep); transition: transform 0.2s ease, opacity 0.2s ease; }
.hamburger-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger-btn.open span:nth-child(2) { opacity: 0; }
.hamburger-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-mobile-user, .nav-mobile-search { display: none; }

@media (max-width: 720px) {
  header { padding: 14px 20px; flex-wrap: wrap; }
  .hamburger-btn { display: flex; }
  header .head-user, header > a.btn-mini { display: none; }
  nav {
    display: none; flex-direction: column; width: 100%; gap: 0;
    order: 3; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line);
  }
  nav.open { display: flex; }
  nav a { padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .nav-mobile-search { display: block; margin: 10px 0; }
  .nav-mobile-search .search-box { width: 100%; padding: 11px 14px 11px 36px; }
  .nav-mobile-user { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
  footer { padding: 20px; flex-direction: column; gap: 8px; text-align: center; }
  .compare-table { display: block; overflow-x: auto; white-space: nowrap; }
  .related-grid { grid-template-columns: 1fr 1fr; }
  .grid { grid-template-columns: 1fr; }
  .row-grid-4, .row-grid { grid-template-columns: 1fr !important; }
}

@media (max-width: 480px) {
  .related-grid { grid-template-columns: 1fr; }
}

/* --- Hover geçiş animasyonları (menü/link öğeleri) --- */
/* Not: .art-body içindeki linkler (makale içeriği) kasıtlı olarak hariç tutuldu */
nav a,
.side-link,
.head-avatar,
.cat-pill,
.footer-col a,
.buy-link,
.rel-card,
.result-card,
.btn-detail,
.btn-add-compare,
.login-link a,
a.btn-mini {
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.15s ease;
}

nav a:hover { background: var(--olive-pale); color: var(--olive-deep); }
.side-link:hover:not(.on) { background: var(--olive-pale); color: var(--olive-deep); }
.head-avatar:hover { transform: scale(1.08); }
.cat-pill:hover:not(.hi) { background: var(--olive-pale); }
.footer-col a:hover { color: var(--olive); padding-left: 3px; }
.buy-link:not(.primary):hover { background: var(--olive-pale); border-color: var(--olive); }
.rel-card:hover { background: var(--olive-pale); }
.result-card:hover { background: var(--olive-pale); border-color: var(--olive); }
.btn-detail:hover { background: var(--olive); }
.btn-add-compare:hover { background: var(--olive-pale); }
.login-link a:hover { text-decoration: underline; }
a.btn-mini:hover { filter: brightness(1.1); }

/* Makale içeriğindeki linkler orijinal (sade) stilinde kalsın */
.art-body a { transition: none; }
.art-body a:hover { background: none; }
.btn-row { margin-bottom: 20px; }

/* --- Yüzen karşılaştırma widget'ı (tüm sayfalarda) --- */
.compare-float {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
  z-index: 999; max-width: 92vw;
}
.compare-float-inner {
  background: var(--olive-deep); color: var(--panel); display: flex; align-items: center;
  gap: 14px; padding: 10px 16px; box-shadow: 0 8px 24px rgba(0,0,0,0.25); flex-wrap: wrap;
}
.compare-float-label { font-family: 'JetBrains Mono'; font-size: 10px; letter-spacing: 0.5px; opacity: 0.8; flex-shrink: 0; }
.compare-float-items { display: flex; gap: 8px; flex-wrap: wrap; }
.compare-float-chip { display: flex; align-items: center; gap: 6px; background: rgba(255,255,255,0.1); padding: 5px 10px; font-size: 11.5px; max-width: 160px; }
.compare-float-chip span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.compare-float-chip button { background: none; border: none; color: inherit; opacity: 0.6; cursor: pointer; font-size: 12px; flex-shrink: 0; }
.compare-float-chip button:hover { opacity: 1; }
.compare-float-btn { background: var(--amber); color: var(--olive-deep); font-weight: 700; font-size: 11.5px; padding: 8px 16px; text-decoration: none; flex-shrink: 0; white-space: nowrap; }
.compare-float-hint { font-size: 10.5px; opacity: 0.6; flex-shrink: 0; white-space: nowrap; }

@media (max-width: 720px) {
  .compare-float { left: 12px; right: 12px; transform: none; max-width: none; bottom: 12px; }
  .compare-float-inner { flex-direction: column; align-items: stretch; }
  .compare-float-btn { text-align: center; }
}

/* --- 18+ yaş onay modalı --- */
.age-gate-overlay {
  position: fixed; inset: 0; z-index: 9999; background: rgba(20,22,15,0.94);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.age-gate-box {
  background: var(--panel); max-width: 460px; width: 100%; padding: 40px 32px;
  text-align: center; border-top: 4px solid var(--amber);
}
.age-gate-icon {
  width: 64px; height: 64px; background: var(--olive-deep); color: var(--panel);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-family: 'JetBrains Mono'; font-weight: 700; font-size: 18px; margin: 0 auto 20px;
}
.age-gate-box h2 { font-size: 19px; font-weight: 700; margin-bottom: 14px; line-height: 1.35; }
.age-gate-box p { font-size: 13px; color: var(--ink-soft); line-height: 1.6; margin-bottom: 26px; }
.age-gate-buttons { display: flex; flex-direction: column; gap: 10px; }
.age-gate-btn-accept { background: var(--olive-deep); color: var(--panel); border: none; padding: 13px; font-size: 13px; font-weight: 700; cursor: pointer; }
.age-gate-btn-accept:hover { background: var(--olive); }
.age-gate-btn-reject { background: none; color: var(--ink-soft); border: 1px solid var(--line); padding: 13px; font-size: 13px; font-weight: 600; cursor: pointer; }
.age-gate-btn-reject:hover { background: var(--bg); }
