/* ==========================================================================
   PRND Auto - Şanzıman Yedek Parça
   Renkler: koyu lacivert, antrasit, beyaz, turuncu vurgu
   ========================================================================== */

:root {
  --navy: #0b0b0d;
  --navy-2: #1d1d22;
  --anthracite: #141417;
  --anthracite-2: #2a2a30;
  --line: #e2e2e6;
  --bg: #f3f3f5;
  --white: #ffffff;
  --text: #1b1b1f;
  --muted: #5d5d66;
  --accent: #d71920;
  --accent-dark: #b3121a;
  --whatsapp: #1f9e55;
  --radius: 10px;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  --max: 1180px;
  --font: system-ui, -apple-system, "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: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-dark); }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; color: var(--navy); }
h1 { font-size: clamp(1.8rem, 4.5vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: #fff; padding: 8px 12px; z-index: 100;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- Butonlar ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 42px; padding: 8px 18px; font-size: .95rem;
  border: 2px solid transparent; border-radius: 8px;
  font-family: inherit; font-weight: 700; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn svg { width: 17px; height: 17px; flex: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-outline { border-color: rgba(255,255,255,.6); color: #fff; background: transparent; }
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--anthracite-2); }
.btn-whatsapp { background: var(--whatsapp); color: #fff; }
.btn-whatsapp:hover { background: #17844a; }
.btn-block { width: 100%; }
.btn-sm { min-height: 36px; padding: 6px 12px; font-size: .88rem; }

/* ---------- Üst menü ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--navy); color: #fff;
  border-bottom: 3px solid var(--accent);
}
.header-inner { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.logo { display: flex; align-items: center; text-decoration: none; margin-right: auto; }
.logo picture { display: block; }
.logo img { display: block; height: 40px; width: auto; }

.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.main-nav a {
  display: block; padding: 10px 14px; border-radius: 6px;
  color: #d9d9de; text-decoration: none; font-weight: 600;
}
.main-nav a:hover { color: #fff; background: var(--navy-2); }
.main-nav a[aria-current="page"] { color: #fff; box-shadow: inset 0 -3px 0 var(--accent); border-radius: 0; }

.header-call { white-space: nowrap; }
.nav-toggle {
  display: none; background: none; border: 0; color: #fff; cursor: pointer;
  width: 46px; height: 46px; padding: 10px;
}
.nav-toggle svg { width: 26px; height: 26px; }

@media (max-width: 860px) {
  .nav-toggle { display: block; order: 3; }
  .header-call .label-long { display: none; }
  .main-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--navy); border-bottom: 3px solid var(--accent);
    display: none;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; padding: 8px 16px 16px; }
  .main-nav a { padding: 14px 8px; border-bottom: 1px solid var(--navy-2); }
  .main-nav a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--accent); padding-left: 14px; }
}
@media (max-width: 420px) {
  .logo img { height: 34px; }
  .header-call { padding: 8px 12px; }
}

/* ---------- Karşılama alanı ---------- */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(ellipse at 80% 50%, #2a0709 0%, #0a0a0c 55%, #050506 100%);
  color: #fff;
  padding: 56px 0 64px;
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px); gap: 40px; align-items: center; }
.hero-text { min-width: 0; }
.hero-media { display: block; min-width: 0; }
.hero-media img { display: block; width: 100%; height: auto; border-radius: 12px; box-shadow: 0 20px 50px rgba(0,0,0,.6); }
@media (max-width: 860px) {
  .hero { padding: 36px 0 44px; }
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-media { order: -1; margin: 0 -4px; }
}
.hero h1 { color: #fff; max-width: 760px; }
.hero h1 em { font-style: normal; color: #ff3b42; }
.hero p { color: #c8c8cf; font-size: 1.1rem; max-width: 640px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hero-gear {
  display: flex; gap: 10px; margin-bottom: 20px; font-weight: 800; letter-spacing: .1em;
}
.hero-gear span {
  width: 38px; height: 38px; display: grid; place-items: center;
  border: 2px solid #3a3a42; border-radius: 6px; color: #8a8a94;
}
.hero-gear span.active { border-color: var(--accent); background: var(--accent); color: #fff; }

.page-hero {
  background: linear-gradient(115deg, #050506 0%, #121215 55%, #4a0d11 85%, #a3131a 100%);
  color: #fff; padding: 40px 0; border-bottom: 3px solid var(--accent);
}
.page-hero h1 { color: #fff; margin-bottom: .25em; }
.page-hero p { color: #c8c8cf; margin: 0; max-width: 680px; }
.breadcrumb { font-size: .9rem; color: #8a8a94; margin-bottom: 8px; }
.breadcrumb a { color: #c8c8cf; }

/* ---------- Bölümler ---------- */
.section { padding: 56px 0; }
.section-white { background: var(--white); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 24px; }
.section-head h2 { margin: 0; }
.section-head p { margin: 4px 0 0; color: var(--muted); }
.eyebrow { display: block; color: var(--accent-dark); font-weight: 700; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 4px; }

/* ---------- Kategori kartları ---------- */
.category-grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.category-card {
  display: flex; align-items: center; gap: 14px;
  padding: 16px; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); text-decoration: none; color: var(--text);
  transition: border-color .15s, box-shadow .15s;
}
.category-card:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.category-card .icon {
  width: 64px; height: 56px; flex: none; border-radius: 8px;
  background: var(--anthracite); display: grid; place-items: center; padding: 6px;
}
.category-card h3 { margin: 0 0 2px; font-size: 1rem; }
.category-card p { margin: 0; font-size: .88rem; color: var(--muted); }

/* ---------- Ürün kartları ---------- */
.product-grid {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}
.product-card {
  display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden;
}
.product-card .media { position: relative; aspect-ratio: 4 / 3; background: var(--anthracite); }
.product-card .media img { width: 100%; height: 100%; object-fit: cover; }
.badge {
  position: absolute; top: 10px; right: 10px;
  background: rgba(0,0,0,.8); color: #fff; font-size: .75rem; font-weight: 700;
  padding: 3px 8px; border-radius: 4px;
}
.product-card .body { display: flex; flex-direction: column; flex: 1; padding: 16px; }
.product-card .cat { font-size: .8rem; font-weight: 700; color: var(--accent-dark); text-transform: uppercase; letter-spacing: .05em; }
.product-card h3 { margin: 4px 0 10px; }
.spec { list-style: none; margin: 0 0 10px; padding: 0; font-size: .9rem; }
.spec li { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; border-top: 1px dashed var(--line); }
.spec li span:first-child { color: var(--muted); }
.spec li span:last-child { font-weight: 700; font-family: ui-monospace, Consolas, monospace; text-align: right; word-break: break-word; }
.product-card .desc { font-size: .92rem; color: var(--muted); flex: 1; }
.product-card .actions { display: grid; gap: 8px; margin-top: auto; padding-top: 8px; }
.product-card .media { display: block; }
.product-card h3 a { color: inherit; text-decoration: none; }
.product-card h3 a:hover { color: var(--accent-dark); }
.product-card:hover { border-color: #c9c9cf; box-shadow: var(--shadow); }

/* ---------- Filtreler ---------- */
.filters {
  display: grid; gap: 12px;
  grid-template-columns: 2fr 1fr 1fr;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; margin-bottom: 20px;
}
.filters label { display: block; font-size: .85rem; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.filters input, .filters select {
  width: 100%; min-height: 46px; padding: 10px 12px;
  font: inherit; color: var(--text); background: #fff;
  border: 1px solid #c6c6cc; border-radius: 8px;
}
.filters input:focus, .filters select:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; margin-bottom: 16px; color: var(--muted); }
.link-btn { background: none; border: 0; color: var(--accent-dark); font: inherit; font-weight: 700; cursor: pointer; padding: 6px 0; }
.filters.no-model { grid-template-columns: 2fr 1fr; }
@media (max-width: 760px) { .filters, .filters.no-model { grid-template-columns: 1fr; } }

.empty-state {
  text-align: center; background: var(--white); border: 1px dashed #c6c6cc;
  border-radius: var(--radius); padding: 40px 16px;
}

/* ---------- Tanıtım ve özellikler ---------- */
.split { display: grid; gap: 32px; grid-template-columns: 1.1fr .9fr; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.feature-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.feature-list li {
  background: var(--bg); border-left: 4px solid var(--accent);
  padding: 14px 16px; border-radius: 0 8px 8px 0;
}
.feature-list strong { display: block; color: var(--navy); }

.note {
  background: #fdf2f2; border: 1px solid #f2b8ba; color: #7d1116;
  border-radius: 8px; padding: 12px 14px; font-size: .92rem;
}

/* ---------- Çağrı bandı ---------- */
.cta-band { background: var(--accent); color: #fff; padding: 40px 0; }
.cta-band .container { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.cta-band h2 { color: #fff; margin: 0; font-size: clamp(1.2rem, 2.6vw, 1.6rem); max-width: 720px; }
.cta-band .btn-dark { min-width: 200px; }

/* ---------- İletişim ---------- */
.contact-grid { display: grid; gap: 20px; grid-template-columns: 1fr 1fr; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.contact-item { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-item:last-child { border-bottom: 0; }
.contact-item .ic { width: 42px; height: 42px; flex: none; border-radius: 8px; background: var(--navy); color: #fff; display: grid; place-items: center; }
.contact-item .ic svg { width: 20px; height: 20px; }
.contact-item h3 { margin: 0 0 2px; font-size: .95rem; color: var(--muted); }
.contact-item p, .contact-item a.big { margin: 0; font-weight: 700; color: var(--navy); font-size: 1.1rem; text-decoration: none; }
.hours { width: 100%; border-collapse: collapse; }
.hours td { padding: 4px 0; }
.hours td:last-child { text-align: right; font-weight: 700; }
.map-frame { width: 100%; min-height: 320px; height: 100%; border: 0; border-radius: var(--radius); background: var(--line); }

/* ---------- Alt bilgi ---------- */
.site-footer { background: var(--navy); color: #a6a6ae; padding: 40px 0 24px; font-size: .95rem; }
.footer-grid { display: grid; gap: 24px; grid-template-columns: 1.4fr 1fr 1fr; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h2 { color: #fff; font-size: 1rem; margin-bottom: 10px; }
.site-footer a { color: #d9d9de; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer-bottom { border-top: 1px solid var(--navy-2); margin-top: 28px; padding-top: 16px; font-size: .85rem; }

/* ---------- Mobil sabit arama çubuğu ---------- */
.mobile-callbar { display: none; }
@media (max-width: 760px) {
  .mobile-callbar {
    display: flex; gap: 8px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
    background: var(--navy); border-top: 3px solid var(--accent);
  }
  .mobile-callbar .btn { flex: 1; min-height: 40px; padding: 6px 12px; font-size: .9rem; }
  body.has-callbar { padding-bottom: 62px; }
}

[hidden] { display: none !important; }
.grow { flex: 1; }
.mt-12 { margin-top: 12px; }
.mt-24 { margin-top: 24px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ---------- Klavye odağı ---------- */
a:focus-visible, button:focus-visible, select:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--accent); outline-offset: 2px;
}

/* ---------- Yükleniyor / hata / boş durumları ---------- */
.load-state { grid-column: 1 / -1; text-align: center; padding: 36px 16px; color: #555; background: #fff; border: 1px dashed #d6d6d6; border-radius: 10px; }
.load-state p { margin: 0 0 12px; }
.load-state p:last-child { margin-bottom: 0; }
.load-error { border-color: var(--accent); color: #333; }
.spinner { display: inline-block; width: 28px; height: 28px; margin-bottom: 10px; border: 3px solid #ddd; border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation: none; } }
.more-btn { display: block; margin: 24px auto 0; }

/* ---------- Ürün detay sayfası ---------- */
.page-hero-sm { padding: 16px 0; }
.page-hero-sm .breadcrumb { margin: 0; }
.page-hero-sm .breadcrumb a { color: #d9d9de; }
.detail { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 36px; align-items: start; }
@media (max-width: 860px) { .detail { grid-template-columns: 1fr; gap: 20px; } }
.detail-media img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--line); background: var(--anthracite); }
.detail-media .note { margin-top: 8px; }
.detail-info { min-width: 0; }
.detail-info h1 { margin: 4px 0 16px; text-wrap: balance; }
.detail-specs { width: 100%; border-collapse: collapse; margin-bottom: 16px; font-size: .95rem; }
.detail-specs th, .detail-specs td { text-align: left; padding: 10px 0; border-top: 1px solid var(--line); vertical-align: top; }
.detail-specs tr:last-child th, .detail-specs tr:last-child td { border-bottom: 1px solid var(--line); }
.detail-specs th { color: var(--muted); font-weight: 600; width: 42%; padding-right: 12px; }
.detail-specs td { font-weight: 700; font-family: ui-monospace, Consolas, monospace; word-break: break-word; }
.detail-specs td a { color: var(--accent-dark); font-family: var(--font); }
.detail-desc { color: var(--text); margin: 0 0 20px; }
.detail-ask { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 14px; }
.detail-ask h2 { font-size: 1.1rem; margin: 0 0 6px; }
.detail-ask p { margin: 0 0 12px; color: var(--muted); font-size: .92rem; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.detail-phone { margin: 12px 0 0 !important; color: var(--text) !important; }
