/* Tanıtım sitesi — endüstriyel, sade, hızlı. Harici font/kütüphane yok. */
:root {
  --navy: #0f2a44;
  --navy-2: #173a5c;
  --ink: #14202b;
  --ink-2: #4a5866;
  --muted: #6b7783;
  --line: #e2e6ea;
  --bg: #f6f7f9;
  --surface: #ffffff;
  --accent: #f28c28;
  --accent-soft: #fff3e6;
  --ok: #1d7a3e;
  --ok-soft: #e7f5ec;
  --wa: #1a8f4c;
  --danger: #b42318;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.06), 0 4px 16px rgba(16, 24, 40, 0.06);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 15px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  display: flex; flex-direction: column; min-height: 100vh;
}
main { flex: 1; }
a { color: var(--navy-2); }
a:hover { color: var(--navy); }
h1, h2, h3 { line-height: 1.2; color: var(--ink); }
h1 { font-size: clamp(24px, 3.4vw, 34px); margin: 0 0 8px; letter-spacing: -0.01em; }
h2 { font-size: 21px; margin: 0 0 14px; }
img, svg { max-width: 100%; }
input, textarea, select, button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.page { padding-top: 20px; padding-bottom: 48px; }
.narrow { max-width: 820px; }
.section { padding-top: 40px; padding-bottom: 40px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.plain { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }

.setup-bar { background: #fff4d6; color: #6b4b00; text-align: center; font-size: 13px; padding: 6px 12px; border-bottom: 1px solid #f1d38a; }

/* ---------- Üst bar ---------- */
.top { background: var(--navy); color: #fff; position: sticky; top: 0; z-index: 20; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15); }
.top-inner { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 750; font-size: 18px; letter-spacing: 0.01em; white-space: nowrap; }
.logo:hover { color: #fff; }
.logo-mark { width: 28px; height: 28px; border-radius: 50%; border: 5px solid var(--accent); box-shadow: inset 0 0 0 4px var(--navy), inset 0 0 0 9px var(--accent); flex-shrink: 0; }
.top-search { flex: 1; display: flex; max-width: 520px; margin-left: auto; background: #fff; border-radius: 8px; overflow: hidden; }
.top-search input { flex: 1; border: 0; padding: 10px 12px; min-width: 0; color: var(--ink); background: transparent; }
.top-search input:focus { outline: none; }
.top-search:focus-within { outline: 3px solid var(--accent); }
.top-search button { border: 0; background: var(--accent); color: var(--ink); padding: 0 14px; cursor: pointer; }
.cart-link { position: relative; display: inline-flex; align-items: center; gap: 6px; color: #fff; text-decoration: none; font-weight: 600; padding: 8px 10px; border-radius: 8px; }
.cart-link:hover { background: var(--navy-2); color: #fff; }
.cart-count { position: absolute; top: 0; left: 18px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: var(--ink); font-size: 11px; font-weight: 800; line-height: 18px; text-align: center; }

.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; width: 40px; height: 40px; display: grid; place-content: center; gap: 5px; border-radius: 8px; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary:hover { background: var(--navy-2); }
.menu summary span { display: block; width: 20px; height: 2px; background: #fff; border-radius: 2px; }
.menu-panel { position: absolute; right: 0; top: calc(100% + 8px); background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 6px; min-width: 200px; display: grid; }
.menu-panel a { color: var(--ink); text-decoration: none; padding: 10px 12px; border-radius: 6px; font-weight: 500; }
.menu-panel a:hover, .menu-panel a.active { background: var(--bg); color: var(--navy); }

@media (min-width: 900px) {
  .menu summary { display: none; }
  .menu-panel { position: static; display: flex; background: none; box-shadow: none; padding: 0; min-width: 0; gap: 2px; }
  .menu-panel a { color: #dfe7ef; padding: 8px 10px; }
  .menu-panel a:hover, .menu-panel a.active { background: var(--navy-2); color: #fff; }
  .menu > .menu-panel { display: flex !important; }
  .top-inner { gap: 20px; }
}
@media (max-width: 899px) {
  .menu:not([open]) .menu-panel { display: none; }
  .top-inner { flex-wrap: wrap; padding: 8px 0; }
  .top-search { order: 5; flex-basis: 100%; max-width: none; margin: 0 0 4px; }
  .cart-link { margin-left: auto; }
  .cart-link > span:not(.cart-count) { display: none; }
}

/* ---------- Ana sayfa ---------- */
.hero { background: linear-gradient(135deg, var(--navy) 0%, #1d4a73 100%); color: #fff; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; padding-top: 56px; padding-bottom: 64px; }
.hero h1 { color: #fff; font-size: clamp(28px, 4.4vw, 46px); }
.eyebrow { text-transform: uppercase; letter-spacing: 0.12em; font-size: 12px; font-weight: 700; color: var(--accent); margin: 0 0 10px; }
.lead { font-size: 17px; color: #d6e1ec; max-width: 620px; }
.hero-search { display: flex; gap: 8px; max-width: 620px; margin: 22px 0 10px; }
.hero-search input { flex: 1; min-width: 0; border: 0; border-radius: 10px; padding: 14px 16px; font-size: 16px; color: var(--ink); }
.hero-search button { border: 0; border-radius: 10px; padding: 0 22px; background: var(--accent); color: var(--ink); font-weight: 750; cursor: pointer; }
.hero-search button:hover { filter: brightness(1.05); }
.hero-hint { color: #b8c7d6; font-size: 13px; max-width: 620px; }
.hero-art { color: rgba(255, 255, 255, 0.14); justify-self: center; width: min(340px, 100%); }
.hero-art svg { width: 100%; height: auto; stroke-width: 2; }
.page .hero-search input { border: 1px solid var(--line); }

.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 16px; }
.section-head h2 { margin: 0; }
.section-head a { font-weight: 600; text-decoration: none; }
.section-title { margin-top: 36px; }

.groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.group { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 16px; text-decoration: none; color: var(--ink); display: grid; gap: 4px; transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s; }
.group:hover { border-color: var(--accent); box-shadow: var(--shadow); transform: translateY(-2px); color: var(--ink); }
.group-icon { width: 44px; height: 44px; color: var(--navy-2); margin-bottom: 6px; }
.group-name { font-weight: 650; }
.group-count { color: var(--muted); font-size: 13px; }

.band { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.brands { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.brand { border: 1px solid var(--line); border-radius: 8px; padding: 14px; text-decoration: none; text-align: center; display: grid; gap: 2px; background: var(--surface); }
.brand:hover { border-color: var(--navy-2); }
.brand-name { font-weight: 800; letter-spacing: 0.04em; color: var(--navy); font-size: 16px; }
.brand-count { color: var(--muted); font-size: 12px; }
.brands.big { margin-bottom: 8px; }

.why { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.why li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: flex; gap: 10px; align-items: flex-start; }
.why-check { flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); display: grid; place-content: center; font-weight: 800; font-size: 13px; }

.cta { background: var(--navy); color: #fff; border-radius: 14px; padding: 28px; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.cta h2 { color: #fff; margin-bottom: 6px; }
.cta p { margin: 0; color: #d6e1ec; }
.cta-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.small-cta { padding: 20px; }
.small-cta h2 { font-size: 18px; }

/* ---------- Butonlar ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 18px; border-radius: 9px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-weight: 650; text-decoration: none; cursor: pointer; }
.btn:hover { border-color: var(--navy-2); color: var(--navy); }
.btn-primary { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-2); color: #fff; }
.btn-wa { background: var(--wa); border-color: var(--wa); color: #fff; }
.btn-wa:hover { filter: brightness(1.08); color: #fff; border-color: var(--wa); }
.btn-light { background: #fff; color: var(--navy); }
.btn.wide { width: 100%; }

/* ---------- Ürün listesi ---------- */
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.crumbs a { color: var(--muted); }
.list-head { margin-bottom: 18px; }
.list-head p { margin: 0; }
.list-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 24px; align-items: start; }
.filters { position: sticky; top: 84px; display: grid; gap: 12px; max-height: calc(100vh - 100px); overflow-y: auto; padding-right: 4px; }
.filter-search { display: flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--surface); }
.filter-search input { flex: 1; min-width: 0; border: 0; padding: 9px 10px; }
.filter-search input:focus { outline: none; }
.filter-search:focus-within { outline: 2px solid var(--accent); }
.filter-search button { border: 0; background: var(--navy); color: #fff; padding: 0 12px; cursor: pointer; font-weight: 600; }
.toggle { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); font-weight: 550; font-size: 14px; }
.toggle-box { width: 18px; height: 18px; border: 2px solid var(--ink-2); border-radius: 4px; display: inline-block; }
.toggle.on .toggle-box { background: var(--navy); border-color: var(--navy); box-shadow: inset 0 0 0 3px #fff; }
.clear { color: var(--danger); font-size: 13px; font-weight: 600; text-decoration: none; }
.facet { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; }
.facet summary { font-weight: 700; cursor: pointer; font-size: 14px; }
.facet ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 1px; }
.facet ul.scroll { max-height: 320px; overflow-y: auto; }
.facet a { display: flex; justify-content: space-between; gap: 8px; text-decoration: none; color: var(--ink-2); font-size: 13.5px; padding: 4px 6px; border-radius: 5px; }
.facet a span { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.facet a:hover { background: var(--bg); color: var(--ink); }
.facet a.on { background: var(--accent-soft); color: var(--ink); font-weight: 700; }

.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.card-p { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; overflow: hidden; transition: box-shadow 0.15s, border-color 0.15s; }
.card-p:hover { box-shadow: var(--shadow); border-color: #cfd6dd; }
.card-p-link { text-decoration: none; color: inherit; display: flex; flex-direction: column; flex: 1; }
.card-p-link:hover { color: inherit; }
.card-p-icon { position: relative; background: linear-gradient(180deg, #f1f4f7, #e9eef3); color: #9aabbb; height: 120px; display: grid; place-content: center; }
.card-p-icon svg { width: 72px; height: 72px; }
.brand-tag { position: absolute; left: 10px; top: 10px; background: var(--navy); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: 0.06em; padding: 3px 8px; border-radius: 5px; }
.card-p-body { padding: 12px 14px 6px; display: grid; gap: 3px; }
.card-p-code { font-size: 12px; color: var(--muted); font-family: ui-monospace, Consolas, monospace; }
.card-p-name { font-size: 15px; margin: 0; font-weight: 650; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-p-desc { font-size: 13.5px; color: var(--ink-2); font-weight: 600; }
.card-p-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 14px 12px; }
.stock { font-size: 12.5px; font-weight: 650; }
.stock.in { color: var(--ok); }
.stock.ask { color: var(--muted); font-weight: 550; }
.stock.big { font-size: 14.5px; }
.btn-add { border: 1px solid var(--navy); background: #fff; color: var(--navy); border-radius: 7px; padding: 6px 10px; font-weight: 700; font-size: 13px; cursor: pointer; white-space: nowrap; transition: background 0.15s; }
.btn-add:hover, .btn-add.added { background: var(--navy); color: #fff; }

.pager { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 24px; }
.pager a, .pager .current { min-width: 40px; height: 40px; padding: 0 12px; display: inline-grid; place-content: center; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; font-weight: 600; }
.pager .current { background: var(--navy); color: #fff; border-color: var(--navy); }
.empty { background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); padding: 36px; text-align: center; }
.empty h2 { margin-bottom: 6px; }

@media (max-width: 899px) {
  .list-layout { grid-template-columns: minmax(0, 1fr); }
  .filters { position: static; max-height: none; overflow: visible; }
  .facet:not(:first-of-type) { }
  .hero-inner { grid-template-columns: minmax(0, 1fr); padding-top: 32px; padding-bottom: 40px; }
  .hero-art { display: none; }
}
@media (max-width: 520px) {
  .products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card-p-icon { height: 90px; }
  .card-p-icon svg { width: 54px; height: 54px; }
  .card-p-foot { flex-direction: column; align-items: stretch; }
  .btn-add { padding: 8px; }
  .hero-search { flex-direction: column; }
  .hero-search button { min-height: 46px; }
}

/* ---------- Ürün detayı ---------- */
.product { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 32px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 24px; }
.product-visual { background: linear-gradient(180deg, #f1f4f7, #e3e9ef); border-radius: 12px; display: grid; place-content: center; justify-items: center; gap: 14px; min-height: 300px; color: #93a5b7; }
.product-icon svg { width: 160px; height: 160px; stroke-width: 2.2; }
.product-brand { background: var(--navy); color: #fff; font-weight: 800; letter-spacing: 0.08em; padding: 6px 14px; border-radius: 6px; }
.product-code { font-family: ui-monospace, Consolas, monospace; color: var(--muted); font-size: 14px; margin-bottom: 4px; }
.product-desc { font-size: 18px; font-weight: 650; color: var(--ink-2); margin: 0 0 12px; }
.product-stock { margin: 10px 0 14px; }
.price-note { display: grid; gap: 2px; background: var(--accent-soft); border: 1px solid #f7d2ab; border-radius: 10px; padding: 12px 14px; font-size: 14px; margin-bottom: 16px; }
.product-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; }
.specs { margin: 0; display: grid; border-top: 1px solid var(--line); }
.specs div { display: grid; grid-template-columns: 170px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; font-weight: 550; overflow-wrap: anywhere; }
.detail { margin-top: 22px; }
.detail p { white-space: pre-line; color: var(--ink-2); }
@media (max-width: 760px) {
  .product { grid-template-columns: minmax(0, 1fr); padding: 16px; gap: 18px; }
  .product-visual { min-height: 180px; }
  .product-icon svg { width: 110px; height: 110px; }
  .specs div { grid-template-columns: 120px 1fr; }
  .product-actions .btn { flex: 1 1 100%; }
}

/* ---------- Markalar A-Z ---------- */
.az { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; }
.az-group h3 { font-size: 15px; color: var(--accent); border-bottom: 2px solid var(--accent-soft); padding-bottom: 4px; margin: 0 0 8px; }
.az-group a { text-decoration: none; font-weight: 600; }

/* ---------- Hakkımızda ---------- */
.prose p { font-size: 16.5px; color: var(--ink-2); max-width: 70ch; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 28px 0; }
.stats div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: grid; text-align: center; }
.stats strong { font-size: 28px; color: var(--navy); }
.stats span { color: var(--muted); font-size: 14px; }

/* ---------- İletişim ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 24px; align-items: start; }
.contact-cards { display: grid; gap: 12px; }
.contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; display: grid; gap: 2px; text-decoration: none; color: var(--ink); }
a.contact-card:hover { border-color: var(--navy-2); color: var(--ink); }
.contact-card.wa strong { color: var(--wa); }
.contact-label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 700; }
.contact-side { display: grid; gap: 16px; }
.map { width: 100%; height: 340px; border: 0; border-radius: var(--radius); background: #e9eef3; }
@media (max-width: 760px) { .contact { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Teklif ---------- */
.quote { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 24px; align-items: start; margin-top: 18px; }
.quote-items, .quote-form { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.quote-form { display: grid; gap: 12px; position: sticky; top: 84px; }
.quote-form h2 { margin: 0; }
.quote-form label { display: grid; gap: 4px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.quote-form input:not([type=checkbox]), .quote-form textarea { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; font-weight: 400; color: var(--ink); background: #fff; }
.quote-form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 13px; }
.quote-form .check input { margin-top: 3px; width: 18px; height: 18px; flex-shrink: 0; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.cart { width: 100%; border-collapse: collapse; }
.cart th { text-align: left; font-size: 13px; color: var(--muted); font-weight: 600; padding: 8px; border-bottom: 1px solid var(--line); }
.cart td { padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.cart td a { font-weight: 650; text-decoration: none; }
.num { text-align: right; }
input.qty { width: 90px; text-align: right; border: 1px solid var(--line); border-radius: 7px; padding: 7px 8px; }
.link-del { border: 0; background: none; color: var(--danger); cursor: pointer; font-size: 13px; font-weight: 600; }
.cart-empty { text-align: center; padding: 28px 10px; line-height: 1.8; }
.cart-empty .btn { margin-top: 10px; }
.alert { background: #fdecea; color: var(--danger); border: 1px solid #f5c2bc; border-radius: 8px; padding: 10px 14px; font-size: 14px; }
.alert:empty, .validation-summary-valid { display: none; }
.alert ul { margin: 0; padding-left: 18px; }
.success { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 36px; text-align: center; max-width: 640px; margin: 20px auto; }
.success h1 { color: var(--ok); }
@media (max-width: 860px) {
  .quote { grid-template-columns: minmax(0, 1fr); }
  .quote-form { position: static; }
}

/* ---------- Alt bilgi ---------- */
.foot { background: #0b1f33; color: #c9d5e1; margin-top: 40px; }
.foot a { color: #e3ebf3; text-decoration: none; }
.foot a:hover { color: #fff; text-decoration: underline; }
.foot h3 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: 0.08em; margin: 0 0 10px; }
.foot .muted { color: #8fa2b5; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; padding-top: 36px; padding-bottom: 24px; }
.foot-logo { margin-bottom: 10px; }
.foot-bottom { border-top: 1px solid #1d3550; padding-top: 14px; padding-bottom: 18px; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Yüzen öğeler ---------- */
.wa-float { position: fixed; right: 18px; bottom: 18px; width: 56px; height: 56px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-content: center; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25); z-index: 30; }
.wa-float:hover { color: #fff; transform: scale(1.05); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 10px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25); z-index: 40; font-size: 14px; max-width: calc(100vw - 32px); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
@media print { .top, .foot, .wa-float, .filters, .btn-add, .product-actions { display: none !important; } }

/* ---------- Yapay zekâ içerikleri ---------- */
.product-text { font-size: 15.5px; color: var(--ink-2); margin: 0 0 12px; max-width: 70ch; }
.vehicles { margin-top: 22px; }
.vehicles h2 { font-size: 18px; margin-bottom: 10px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; }
.vehicles table { width: 100%; border-collapse: collapse; font-size: 14px; }
.vehicles th { text-align: left; background: var(--bg); color: var(--ink-2); font-weight: 650; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.vehicles td { padding: 8px 10px; border-bottom: 1px solid var(--line); }
.vehicles tr:last-child td { border-bottom: 0; }

/* ---------- Ana sayfa CTA ---------- */
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 4px 0 12px; }
.btn-accent { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.btn-accent:hover { filter: brightness(1.05); color: var(--ink); border-color: var(--accent); }
.btn-outline { background: transparent; border-color: rgba(255, 255, 255, 0.55); color: #fff; }
.btn-outline:hover { background: rgba(255, 255, 255, 0.1); border-color: #fff; color: #fff; }
@media (max-width: 520px) { .hero-actions .btn { flex: 1 1 100%; } }

/* ---------- Logo görseli ---------- */
.logo-img { height: 40px; width: auto; max-width: 200px; display: block; }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding-top: 40px; }
.notfound-code { font-size: clamp(64px, 14vw, 120px); font-weight: 850; line-height: 1; color: var(--accent); letter-spacing: -0.04em; margin-bottom: 8px; }
.notfound .hero-search { margin: 20px auto 8px; }
.notfound-h2 { font-size: 17px; margin-top: 28px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.chip { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; text-decoration: none; font-weight: 600; font-size: 14px; }
.chip:hover { border-color: var(--accent); }
.notfound-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }

/* ---------- Teşekkürler ---------- */
.success-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); display: grid; place-content: center; margin: 0 auto 12px; }
.steps { text-align: left; max-width: 460px; margin: 18px auto; padding-left: 22px; display: grid; gap: 6px; color: var(--ink-2); }
.success-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }

/* ---------- Yasal sayfalar ---------- */
.legal h2 { font-size: 19px; margin: 26px 0 8px; }
.legal h3 { font-size: 16px; margin: 18px 0 6px; }
.legal ul { padding-left: 20px; color: var(--ink-2); display: grid; gap: 4px; max-width: 70ch; }
.legal p { font-size: 15.5px; }
.legal-links { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; }
.foot-bottom { display: flex; justify-content: space-between; gap: 10px 20px; flex-wrap: wrap; }
.foot-legal { display: flex; gap: 6px 16px; flex-wrap: wrap; }
.link-btn { border: 0; background: none; padding: 0; color: #e3ebf3; cursor: pointer; font-size: inherit; }
.link-btn:hover { text-decoration: underline; color: #fff; }

/* ---------- Yükleniyor durumları ---------- */
.nav-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--accent); z-index: 100; opacity: 0; pointer-events: none; }
.yukleniyor .nav-progress { opacity: 1; animation: ilerle 8s cubic-bezier(.1, .7, .2, 1) forwards; }
@keyframes ilerle { 0% { width: 0; } 20% { width: 45%; } 100% { width: 92%; } }
.btn.is-loading, button.is-loading { position: relative; pointer-events: none; opacity: 0.85; }
.btn.is-loading::before, .hero-search button.is-loading::before, .top-search button.is-loading::before {
  content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent;
  display: inline-block; animation: don 0.7s linear infinite; margin-right: 8px; vertical-align: -3px;
}
.top-search button.is-loading svg { display: none; }
.top-search button.is-loading::before { margin: 0; }
@keyframes don { to { transform: rotate(360deg); } }
.skel-list { display: grid; gap: 10px; }
.skel-list span { height: 46px; border-radius: 8px; background: linear-gradient(90deg, #eef1f4 25%, #f6f8fa 50%, #eef1f4 75%); background-size: 200% 100%; animation: parla 1.2s ease-in-out infinite; }
@keyframes parla { to { background-position: -200% 0; } }

/* ---------- Mobil sabit CTA ---------- */
.mcta { display: none; }
@media (max-width: 760px) {
  body.has-mcta { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .has-mcta .wa-float { display: none; }
  .mcta {
    display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 35;
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); background: var(--surface);
    border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgba(16, 24, 40, 0.08);
  }
  .mcta a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 50px; border-radius: 10px; text-decoration: none; color: var(--navy); font-size: 12.5px; font-weight: 700; }
  .mcta a:active { background: var(--bg); }
  .mcta .mcta-wa { color: var(--wa); }
  .mcta .mcta-main { background: var(--navy); color: #fff; }
  .mcta .cart-count { top: 4px; left: calc(50% + 6px); }
  .has-mcta .toast { bottom: calc(80px + env(safe-area-inset-bottom)); }
  .has-mcta .cookie { bottom: calc(70px + env(safe-area-inset-bottom)); }
}

/* ---------- Çerez bildirimi ---------- */
.cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 45; max-width: 720px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 10px 40px rgba(16, 24, 40, 0.18); padding: 16px 18px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; font-size: 14px; }
.cookie[hidden] { display: none; }
.cookie p { margin: 0; flex: 1 1 320px; color: var(--ink-2); }
.cookie-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.cookie-actions .btn { min-height: 40px; }
@media (max-width: 520px) { .cookie-actions { width: 100%; } .cookie-actions .btn { flex: 1; } }
@media print { .mcta, .cookie, .nav-progress { display: none !important; } }

/* ---------- Ürün fotoğrafları ---------- */
.card-p-img { position: relative; background: #fff; height: 180px; display: grid; place-items: center; padding: 10px; border-bottom: 1px solid var(--line); }
.card-p-img img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.product-gallery { display: grid; gap: 10px; align-content: start; }
.product-photo { position: relative; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); border-radius: 12px; aspect-ratio: 1 / 1; padding: 14px; cursor: zoom-in; overflow: hidden; }
.product-photo img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.product-thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.thumb { width: 64px; height: 64px; padding: 4px; border: 2px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer; display: grid; place-items: center; }
.thumb img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.thumb.on, .thumb:hover { border-color: var(--accent); }
@media (max-width: 520px) { .card-p-img { height: 130px; padding: 6px; } }
@media (max-width: 760px) { .product-photo { aspect-ratio: 4 / 3; } }

/* =================================================================
   Kırmızı-beyaz tema (logoya uygun). Renkler /tema.css'ten gelir:
   --marka (panelde seçilen ana renk), --marka-koyu, --marka-acik, --marka-cizgi
   ================================================================= */
:root { --marka: #C9080C; --marka-koyu: #910609; --marka-cok-koyu: #5A0405; --marka-acik: #FAE6E7; --marka-cizgi: #EFB5B6; --koyu-zemin: #1c1c1f; }
a { color: var(--marka-koyu); }
a:hover { color: var(--marka); }

/* Üst bar: beyaz zemin, logo kendi renginde, altta ince marka çizgisi */
.top { background: #fff; color: var(--ink); border-bottom: 3px solid var(--marka); box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06); }
.top-inner { min-height: 72px; }
.logo, .logo:hover { color: var(--ink); }
.logo-text { color: var(--marka); font-weight: 800; }
.logo-mark { border-color: var(--marka); box-shadow: inset 0 0 0 4px #fff, inset 0 0 0 9px var(--marka); }
.logo-img { height: 48px; max-width: 230px; }
.top-search { border: 1.5px solid var(--line); }
.top-search:focus-within { outline: 3px solid var(--marka-cizgi); border-color: var(--marka); }
.top-search button { background: var(--marka); color: #fff; }
.top-search button:hover { background: var(--marka-koyu); }
.cart-link { color: var(--ink); }
.cart-link:hover { background: var(--marka-acik); color: var(--marka-koyu); }
.cart-count { background: var(--marka); color: #fff; }
.menu summary span { background: var(--ink); }
.menu summary:hover { background: var(--marka-acik); }
@media (min-width: 900px) {
  .menu-panel a { color: var(--ink-2); font-weight: 600; }
  .menu-panel a:hover { background: var(--marka-acik); color: var(--marka-koyu); }
  .menu-panel a.active { background: var(--marka); color: #fff; }
}
@media (max-width: 899px) {
  .logo-img { height: 40px; max-width: 170px; }
  .menu-panel a.active { background: var(--marka-acik); color: var(--marka-koyu); }
}

/* Ana sayfa başlığı: marka renginde, beyaz yazı */
.hero { background: linear-gradient(135deg, var(--marka) 0%, var(--marka-koyu) 100%); }
.eyebrow { color: var(--marka); }
.hero .eyebrow { color: rgba(255, 255, 255, 0.85); }
.hero .lead { color: rgba(255, 255, 255, 0.92); }
.hero-hint { color: rgba(255, 255, 255, 0.78); }
.hero-search button { background: var(--koyu-zemin); color: #fff; }
.hero-search button:hover { filter: none; background: #000; }
.page .hero-search button, .notfound .hero-search button { background: var(--marka); }
.hero .btn-accent { background: #fff; border-color: #fff; color: var(--marka-koyu); }
.hero .btn-accent:hover { background: var(--marka-acik); color: var(--marka-koyu); }
.hero-art { color: rgba(255, 255, 255, 0.16); }

/* Kartlar ve vurgular */
.group-icon { color: var(--marka); }
.group:hover { border-color: var(--marka); }
.card-p:hover { border-color: var(--marka-cizgi); }
.card-p-icon { color: #c4a3a4; background: linear-gradient(180deg, #fbf6f6, #f3eaea); }
.product-visual { color: #c4a3a4; background: linear-gradient(180deg, #fbf6f6, #f1e6e6); }
.btn-add { border-color: var(--marka); color: var(--marka); }
.btn-add:hover, .btn-add.added { background: var(--marka); color: #fff; }
.btn:hover { border-color: var(--marka); color: var(--marka-koyu); }
.btn-primary:hover { background: var(--marka-koyu); color: #fff; }
.price-note { border-color: var(--marka-cizgi); }
.brand:hover { border-color: var(--marka); }
.brand-name { color: var(--ink); }
.facet a.on { background: var(--marka-acik); color: var(--marka-koyu); }
.cta { background: var(--marka); }
.cta p { color: rgba(255, 255, 255, 0.9); }
.cta .btn-light { color: var(--marka-koyu); }
.chip:hover { border-color: var(--marka); color: var(--marka-koyu); }
:focus-visible { outline-color: var(--marka-cizgi); }

/* Alt bilgi: koyu nötr zemin, marka çizgisi */
.foot { background: var(--koyu-zemin); color: #cfcfd2; border-top: 4px solid var(--marka); }
.foot .muted { color: #9a9aa0; }
.foot-bottom { border-top-color: #333338; }
.foot .logo-text { color: #fff; }
.foot .logo-mark { box-shadow: inset 0 0 0 4px var(--koyu-zemin), inset 0 0 0 9px var(--marka); }
.link-btn { color: #e8e8ea; }

/* Telefonda alt çubuk */
@media (max-width: 760px) {
  .mcta a { color: var(--marka-koyu); }
  .mcta .mcta-main { background: var(--marka); color: #fff; }
  .mcta .mcta-main .cart-count { background: #fff; color: var(--marka); }
}
@media (max-width: 899px) {
  .top-inner { padding: 8px 16px; }
  .logo-img { height: 44px; }
}

/* Masaüstü menüsü (ayrı öğe); telefonda yalnız açılır menü */
.menu-masa { display: none; }
@media (min-width: 900px) {
  .menu { display: none; }
  .menu-masa { display: flex; gap: 2px; order: 2; }
  .menu-masa a { color: var(--ink-2); font-weight: 600; text-decoration: none; padding: 8px 10px; border-radius: 8px; white-space: nowrap; }
  .menu-masa a:hover { background: var(--marka-acik); color: var(--marka-koyu); }
  .menu-masa a.active { background: var(--marka); color: #fff; }
  .top-search { order: 3; }
  .cart-link { order: 4; }
}
@media (min-width: 900px) and (max-width: 1180px) {
  .menu-masa a { padding: 8px 7px; font-size: 14px; }
  .top-search { max-width: 300px; }
}
