/* Parçan.net — logo renkleri: kırmızı #A5121C, sarı #FAAD00 */
:root {
  --red: #A5121C;
  --red-dark: #7E0D15;
  --red-soft: #FBEBEC;
  --yellow: #FAAD00;
  --yellow-soft: #FFF4D6;
  --bg: #FFFFFF;
  --surface: #FFFFFF;
  --surface-2: #F6F6F7;
  --line: #E6E6E8;
  --text: #1C1C1E;
  --muted: #6B6B72;
  --ok: #18794E;
  --ok-soft: #E7F6EE;
  --warn-soft: #FFF4D6;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(0,0,0,.06), 0 4px 14px rgba(0,0,0,.05);
  --hero-bg: linear-gradient(120deg, #A5121C 0%, #7E0D15 100%);
  --hero-text: #fff;
  --nav-bg: #A5121C;
  --nav-text: #fff;
}
/* Sarı-kırmızı tema (THEME=sari) */
[data-theme="sari"] {
  --bg: #FFF8E6;
  --surface-2: #FFF1CC;
  --line: #F2DFA8;
  --hero-bg: linear-gradient(120deg, #FAAD00 0%, #F59A00 100%);
  --hero-text: #3A0508;
  --nav-bg: #FAAD00;
  --nav-text: #3A0508;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 15px/1.5 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .6em; }
h1 { font-size: 26px; } h2 { font-size: 20px; } h3 { font-size: 16px; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 18px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- üst bant ---------- */
.topbar { background: var(--red-dark); color: #fff; font-size: 13px; }
.topbar .wrap { display: flex; gap: 22px; justify-content: space-between; padding-top: 7px; padding-bottom: 7px; flex-wrap: wrap; }
.topbar a { color: #fff; }
.topbar b { color: var(--yellow); }

/* ---------- başlık ---------- */
.header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.header .wrap { display: flex; align-items: center; gap: 22px; padding-top: 14px; padding-bottom: 14px; }
.logo img { height: 40px; width: auto; }
.search { flex: 1; display: flex; border: 2px solid var(--red); border-radius: var(--radius); overflow: hidden; background: #fff; }
.search input { flex: 1; border: 0; padding: 12px 14px; font-size: 15px; outline: none; min-width: 0; }
.search button { border: 0; background: var(--red); color: #fff; padding: 0 22px; font-weight: 700; cursor: pointer; font-size: 15px; }
.search button:hover { background: var(--red-dark); }
.head-actions { display: flex; gap: 8px; align-items: center; }
.head-btn { display: flex; align-items: center; gap: 8px; color: var(--text); padding: 8px 10px; border-radius: 8px; font-weight: 600; white-space: nowrap; }
.head-btn:hover { background: var(--surface-2); text-decoration: none; }
.cart-badge { background: var(--yellow); color: #3A0508; border-radius: 999px; font-size: 12px; font-weight: 800; padding: 1px 7px; }

/* ---------- kategori menüsü ---------- */
.catnav { background: var(--nav-bg); }
.catnav .wrap { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.catnav a { color: var(--nav-text); padding: 11px 14px; font-weight: 600; font-size: 14px; white-space: nowrap; }
.catnav a:hover { background: rgba(0,0,0,.12); text-decoration: none; }

/* ---------- seçili araç şeridi ---------- */
.mycar { background: var(--yellow-soft); border-bottom: 1px solid var(--line); font-size: 14px; }
.mycar .wrap { display: flex; align-items: center; gap: 12px; padding-top: 9px; padding-bottom: 9px; flex-wrap: wrap; }
.mycar strong { color: var(--red-dark); }
.linkbtn { background: none; border: 0; color: var(--red); cursor: pointer; font: inherit; font-weight: 600; padding: 0; }
.linkbtn:hover { text-decoration: underline; }

/* ---------- butonlar ve formlar ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--red); color: #fff;
  border: 0; border-radius: var(--radius); padding: 12px 20px; font-weight: 700; font-size: 15px; cursor: pointer; text-decoration: none; }
.btn:hover { background: var(--red-dark); text-decoration: none; }
.btn:disabled { background: #bbb; cursor: not-allowed; }
.btn.yellow { background: var(--yellow); color: #3A0508; }
.btn.yellow:hover { background: #E89F00; }
.btn.ghost { background: transparent; color: var(--red); border: 1.5px solid var(--red); }
.btn.ghost:hover { background: var(--red-soft); }
.btn.sm { padding: 7px 12px; font-size: 13px; }
.btn.block { width: 100%; }
label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 5px; }
input:not([type]), input[type=text], input[type=email], input[type=search], input[type=tel], input[type=password], input[type=number], select, textarea {
  width: 100%; padding: 11px 12px; border: 1px solid #CFCFD4; border-radius: 8px; font: inherit; background: #fff; color: var(--text); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--yellow); border-color: var(--red); }
select:disabled { background: #F1F1F3; color: #999; }
.field { margin-bottom: 14px; }
.field .err { color: var(--red); font-size: 13px; margin-top: 4px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }

.flash { padding: 12px 16px; border-radius: var(--radius); margin: 16px 0; font-weight: 600; }
.flash.ok { background: var(--ok-soft); color: var(--ok); }
.flash.err { background: var(--red-soft); color: var(--red-dark); }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 20px; box-shadow: var(--shadow); }

/* ---------- hero + araç seçici ---------- */
.hero { background: var(--hero-bg); color: var(--hero-text); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 36px; align-items: center; padding-top: 40px; padding-bottom: 44px; }
.hero h1 { font-size: 36px; letter-spacing: -.5px; margin-bottom: 12px; }
.hero p { font-size: 17px; opacity: .92; margin: 0 0 20px; }
.hero .chips { display: flex; gap: 10px; flex-wrap: wrap; }
.hero .chip { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25); border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 600; }
[data-theme="sari"] .hero .chip { background: rgba(255,255,255,.5); border-color: rgba(58,5,8,.15); }
.selector { background: #fff; color: var(--text); border-radius: 16px; padding: 22px; box-shadow: 0 10px 30px rgba(0,0,0,.18); }
.selector h2 { display: flex; align-items: center; gap: 10px; font-size: 19px; }
.selector h2 .step { background: var(--yellow); color: #3A0508; border-radius: 8px; padding: 2px 8px; font-size: 13px; }
.selector .row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.selector .or { text-align: center; color: var(--muted); font-size: 13px; margin: 14px 0 10px; position: relative; }
.selector .or:before, .selector .or:after { content: ""; position: absolute; top: 50%; width: 38%; height: 1px; background: var(--line); }
.selector .or:before { left: 0; } .selector .or:after { right: 0; }
.oem-form { display: flex; gap: 8px; }
.oem-form input { flex: 1; }
.oem-form input { font-family: ui-monospace, Menlo, Consolas, monospace; letter-spacing: .5px; }

/* ---------- güven şeridi ---------- */
.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 26px 0; }
.trust div { display: flex; gap: 12px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px; font-size: 14px; }
.trust svg { flex: none; color: var(--red); }
.trust b { display: block; }

/* ---------- kategori kutuları ---------- */
.section { margin: 34px 0; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.cats { display: grid; grid-template-columns: repeat(8, 1fr); gap: 12px; }
.cat { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; background: var(--surface);
  border: 1px solid var(--line); border-radius: 12px; padding: 18px 8px; color: var(--text); font-weight: 600; font-size: 13.5px; }
.cat:hover { border-color: var(--red); text-decoration: none; box-shadow: var(--shadow); }
.cat .ico { width: 54px; height: 54px; border-radius: 14px; background: var(--yellow-soft); color: var(--red); display: grid; place-items: center; }

/* ---------- ürün kartı ---------- */
.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.pcard { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; position: relative; }
.pcard:hover { box-shadow: var(--shadow); border-color: #d5d5da; }
.pcard .thumb { aspect-ratio: 4/3; background: var(--surface-2); display: grid; place-items: center; color: #B9B9C0; }
.pcard .thumb img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.pcard .body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.pcard .brand { font-size: 12px; font-weight: 800; letter-spacing: .4px; text-transform: uppercase; color: var(--muted); }
.pcard .name { color: var(--text); font-weight: 600; line-height: 1.35; }
.pcard .oem { font: 12px ui-monospace, Menlo, Consolas, monospace; color: var(--muted); }
.pcard .bottom { margin-top: auto; display: flex; align-items: end; justify-content: space-between; gap: 8px; padding-top: 6px; }
.price { font-size: 19px; font-weight: 800; color: var(--text); }
.old { color: var(--muted); text-decoration: line-through; font-size: 13px; display: block; }
.badges { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; align-items: flex-start; gap: 5px; z-index: 1; }
.badge { font-size: 11.5px; font-weight: 800; border-radius: 6px; padding: 3px 8px; display: inline-block; }
.badge.fit { background: var(--ok); color: #fff; }
.badge.sale { background: var(--yellow); color: #3A0508; }
.badge.oem { background: var(--red); color: #fff; }
.badge.out { background: #555; color: #fff; }
.addbtn { background: var(--red); color: #fff; border: 0; border-radius: 9px; width: 40px; height: 40px; display: grid; place-items: center; cursor: pointer; flex: none; }
.addbtn:hover { background: var(--red-dark); }
.addbtn.done { background: var(--ok); }

/* ---------- listeleme ---------- */
.crumbs { font-size: 13px; color: var(--muted); margin: 18px 0 8px; }
.crumbs a { color: var(--muted); }
.list-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.list-bar select { width: auto; padding: 8px 10px; }
.notice { background: var(--yellow-soft); border: 1px solid #F2D27A; border-radius: 12px; padding: 12px 16px; margin-bottom: 16px; font-size: 14px; }
.empty { text-align: center; padding: 50px 20px; }
.pager { display: flex; gap: 6px; justify-content: center; margin: 26px 0; }
.pager a, .pager span { padding: 8px 13px; border: 1px solid var(--line); border-radius: 8px; color: var(--text); background: var(--surface); }
.pager span { background: var(--red); color: #fff; border-color: var(--red); }

/* ---------- ürün detay ---------- */
.pdetail { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; margin: 10px 0 30px; }
.pdetail .gallery { background: var(--surface-2); border-radius: 16px; aspect-ratio: 1; display: grid; place-items: center; color: #B9B9C0; border: 1px solid var(--line); overflow: hidden; }
.pdetail .gallery img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.pdetail h1 { font-size: 25px; }
.meta { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13.5px; color: var(--muted); margin-bottom: 14px; }
.meta b { color: var(--text); }
.fitbox { border-radius: 12px; padding: 12px 14px; margin: 14px 0; font-weight: 600; display: flex; gap: 10px; align-items: center; }
.fitbox.yes { background: var(--ok-soft); color: var(--ok); }
.fitbox.no { background: var(--red-soft); color: var(--red-dark); }
.fitbox.ask { background: var(--yellow-soft); color: #6B4A00; }
.buy { display: flex; gap: 10px; align-items: center; margin: 16px 0; }
.qty { width: 84px !important; text-align: center; }
.big-price { font-size: 32px; font-weight: 800; }
.stock-ok { color: var(--ok); font-weight: 700; }
.stock-low { color: #B26A00; font-weight: 700; }
.stock-no { color: var(--red); font-weight: 700; }
.tabs h2 { margin-top: 26px; }
table.data { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; font-size: 14px; }
table.data th, table.data td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data th { background: var(--surface-2); font-size: 12.5px; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); }
table.data tr:last-child td { border-bottom: 0; }
table.data tr.me td { background: var(--ok-soft); }
.mono { font-family: ui-monospace, Menlo, Consolas, monospace; }

/* ---------- sepet / ödeme ---------- */
.two-col { display: grid; grid-template-columns: 1fr 360px; gap: 26px; align-items: start; margin: 10px 0 40px; }
.summary { position: sticky; top: 90px; }
.summary .line { display: flex; justify-content: space-between; padding: 6px 0; }
.summary .total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 12px; font-size: 19px; font-weight: 800; }
.free-ship { background: var(--yellow-soft); border-radius: 10px; padding: 10px 12px; font-size: 13.5px; margin-bottom: 12px; }
.cart-item { display: grid; grid-template-columns: 74px 1fr auto auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-item .mini { width: 74px; height: 64px; background: var(--surface-2); border-radius: 10px; display: grid; place-items: center; color: #B9B9C0; overflow: hidden; }
.paymethod { display: flex; gap: 12px; align-items: flex-start; border: 1.5px solid var(--line); border-radius: 12px; padding: 13px 14px; margin-bottom: 10px; cursor: pointer; font-weight: 400; }
.paymethod:has(input:checked) { border-color: var(--red); background: var(--red-soft); }
.paymethod.disabled { opacity: .55; cursor: not-allowed; }
.paymethod b { display: block; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.check input { margin-top: 4px; }
.iban { background: var(--surface-2); border-radius: 12px; padding: 14px 16px; margin: 14px 0; }

/* ---------- WhatsApp sipariş ---------- */
.btn-wa { background: #1FA855; color: #fff; }
.btn-wa:hover { background: #178C46; }
.wa-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 18px; }
.wa-steps div { display: flex; gap: 10px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font-size: 14px; }
.wa-steps p { margin: 0; }
.wa-steps span { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--yellow); color: #3A0508; font-weight: 800; display: grid; place-items: center; }
.wa-info { display: flex; gap: 14px; align-items: flex-start; background: #EAF7EF; border-color: #BFE5CC; }
.wa-info svg { color: #178C46; flex: none; }
.wa-hero { text-align: center; padding: 10px 0 18px; }
.wa-hero svg { color: #1FA855; margin: 0 auto 10px; }
.wa-hero h1 { font-size: 24px; }
@media (max-width: 640px) { .wa-steps { grid-template-columns: 1fr; } }

/* ---------- alt bilgi ---------- */
.footer { background: #1D0306; color: #E9D9DA; margin-top: 50px; font-size: 14px; }
.footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; padding-top: 38px; padding-bottom: 30px; }
.footer a { color: #E9D9DA; display: block; padding: 3px 0; }
.footer h3 { color: var(--yellow); font-size: 14px; text-transform: uppercase; letter-spacing: .6px; }
.footer .legal { border-top: 1px solid rgba(255,255,255,.1); font-size: 12.5px; color: #B9A3A5; }
.footer .legal .wrap { display: block; padding-top: 14px; padding-bottom: 14px; }
.wa { position: fixed; right: 18px; bottom: 18px; background: #1FA855; color: #fff; border-radius: 999px; padding: 12px 16px; font-weight: 700; box-shadow: 0 6px 18px rgba(0,0,0,.2); display: flex; gap: 8px; align-items: center; z-index: 40; }
.wa:hover { text-decoration: none; background: #178C46; }

.prose { max-width: 820px; margin: 10px 0 40px; }
.prose .todo { background: var(--yellow-soft); border: 1px dashed #D9A400; border-radius: 10px; padding: 10px 14px; font-size: 14px; }

/* ---------- mobil ---------- */
@media (max-width: 980px) {
  .hero .wrap, .pdetail, .two-col { grid-template-columns: 1fr; }
  .cats { grid-template-columns: repeat(4, 1fr); }
  .products { grid-template-columns: repeat(2, 1fr); }
  .trust { grid-template-columns: repeat(2, 1fr); }
  .footer .wrap { grid-template-columns: 1fr 1fr; }
  .summary { position: static; }
}
@media (max-width: 640px) {
  .header .wrap { flex-wrap: wrap; gap: 10px; }
  .search { order: 3; flex-basis: 100%; }
  .logo img { height: 32px; }
  .head-btn .lbl { display: none; }
  .hero h1 { font-size: 27px; }
  .selector .row, .grid2 { grid-template-columns: 1fr; }
  .products { gap: 10px; }
  .pcard .body { padding: 10px; }
  .price { font-size: 16px; }
  .cats { grid-template-columns: repeat(3, 1fr); }
  .topbar .hide-m { display: none; }
  .cart-item { grid-template-columns: 56px 1fr; }
  .wa span { display: none; }
}

/* ---------- yönetim paneli ---------- */
.admin { display: grid; grid-template-columns: 220px 1fr; min-height: 100vh; background: #F6F6F7; }
.admin aside { background: #1D0306; color: #fff; padding: 18px 12px; }
.admin aside img { height: 30px; margin: 0 6px 22px; }
.admin aside a { display: block; color: #E9D9DA; padding: 9px 12px; border-radius: 8px; font-weight: 600; font-size: 14px; }
.admin aside a:hover, .admin aside a.on { background: rgba(250,173,0,.16); color: var(--yellow); text-decoration: none; }
.admin main { padding: 26px 30px; min-width: 0; }
.stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-bottom: 24px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.stat b { display: block; font-size: 24px; }
.stat span { color: var(--muted); font-size: 13px; }
.status { font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 6px; background: #EEE; white-space: nowrap; }
.status.whatsapp { background: #EAF7EF; color: #178C46; }
.status.yeni, .status.odeme_bekliyor { background: var(--yellow-soft); color: #6B4A00; }
.status.hazirlaniyor { background: #E8F0FE; color: #1A4FB0; }
.status.kargoda { background: #EDE7FB; color: #5B2DB0; }
.status.teslim { background: var(--ok-soft); color: var(--ok); }
.status.iptal, .status.iade { background: var(--red-soft); color: var(--red-dark); }
.vehicle-pick { max-height: 340px; overflow: auto; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; background: #fff; }
.vehicle-pick label { font-weight: 400; display: flex; gap: 8px; padding: 4px 0; margin: 0; }
.vehicle-pick .grp { font-weight: 800; margin-top: 8px; font-size: 13px; color: var(--red-dark); }
@media (max-width: 900px) { .admin { grid-template-columns: 1fr; } .stats { grid-template-columns: repeat(2, 1fr); } }
