/* raks.com.tr ile aynı dil: Inter, siyah-beyaz, yumuşak köşeler */
:root {
  --ink: #09090b;
  --ink-2: #3f3f46;
  --muted: #71717a;
  --line: #e4e4e7;
  --soft: #f4f4f5;
  --bg: #ffffff;
  --ok: #15803d;
  --warn: #b45309;
  --danger: #b91c1c;
  --r: 14px;
  --r-sm: 10px;
  --wrap: 1200px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 15px/1.5 Inter, -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3 { letter-spacing: -0.02em; line-height: 1.15; margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
[hidden] { display: none !important; }

/* Üst bar */
.top { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.top-in { height: 64px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 26px; width: auto; }
.brand-sub { font-weight: 600; font-size: 14px; padding-left: 12px; border-left: 1px solid var(--line); color: var(--ink-2); }
.top-link { font-size: 14px; font-weight: 500; text-decoration: none; color: var(--ink-2); }
.top-link:hover { color: var(--ink); }

/* Hero + arama */
.hero { padding: 56px 0 28px; text-align: center; }
.hero h1 { font-size: clamp(30px, 5vw, 48px); font-weight: 700; }
.lead { margin: 12px auto 28px; max-width: 560px; color: var(--ink-2); font-size: 17px; }
.search { position: relative; max-width: 640px; margin: 0 auto; }
.search input {
  width: 100%; height: 60px; padding: 0 52px 0 54px; font: inherit; font-size: 17px;
  border: 1.5px solid var(--line); border-radius: 999px; background: var(--bg); color: var(--ink);
  outline: none; transition: border-color .15s, box-shadow .15s;
  box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.05);
}
.search input:focus { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(9,9,11,.08); }
.search input::-webkit-search-cancel-button { display: none; }
.search-ic { position: absolute; left: 20px; top: 50%; width: 22px; height: 22px; transform: translateY(-50%); fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; }
.search-clear { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--soft); color: var(--ink-2); font-size: 22px; line-height: 1; cursor: pointer; }
.hint { font-size: 13px; color: var(--muted); margin: 14px 0 0; }

/* Kategori çipleri */
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 8px 0 4px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; height: 38px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); font: inherit; font-size: 14px; font-weight: 500; color: var(--ink-2); cursor: pointer; white-space: nowrap; }
.chip span { color: var(--muted); font-weight: 400; margin-left: 2px; }
.chip:hover { border-color: #a1a1aa; }
.chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip.on span { color: #a1a1aa; }
.count { font-size: 13px; margin: 14px 0 12px; min-height: 20px; }

/* Ürün kartları */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; padding-bottom: 64px; }
.card { display: flex; flex-direction: column; text-decoration: none; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--bg); transition: border-color .15s, box-shadow .15s, transform .15s; }
.card:hover { border-color: #d4d4d8; box-shadow: 0 10px 30px rgba(0,0,0,.07); transform: translateY(-2px); }
.card-img { aspect-ratio: 1; background: var(--bg); display: grid; place-items: center; padding: 14px; border-bottom: 1px solid var(--soft); }
.card-img img { width: 100%; height: 100%; object-fit: contain; }
.card-pdf span, .doc-ic { font-weight: 700; font-size: 13px; letter-spacing: .06em; color: var(--ink); border: 1.5px solid var(--ink); border-radius: 6px; padding: 5px 8px; }
.card-pdf { background: var(--soft); }
.card-b { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card h3 { font-size: 14px; font-weight: 600; line-height: 1.35; }
.eyebrow { margin: 0; font-size: 12px; color: var(--muted); font-weight: 500; }
.sku { align-self: flex-start; font-size: 12px; font-weight: 600; background: var(--soft); border-radius: 6px; padding: 2px 8px; color: var(--ink-2); }
.card-cta { margin-top: auto; padding-top: 8px; font-size: 13px; font-weight: 600; }
.card-none { opacity: .6; }
.card-none .card-cta { font-weight: 500; color: var(--muted); }

.empty { text-align: center; padding: 48px 0 80px; }
.empty-t { font-size: 18px; font-weight: 600; margin: 0 0 6px; }

/* Ürün sayfası */
.page { padding-top: 24px; padding-bottom: 64px; }
.crumbs { display: flex; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 20px; flex-wrap: wrap; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.product { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px; align-items: start; }
.product-media { border: 1px solid var(--line); border-radius: var(--r); padding: 24px; aspect-ratio: 1; display: grid; place-items: center; }
.product-media img { width: 100%; height: 100%; object-fit: contain; }
.noimg { width: 100%; height: 100%; background: var(--soft); border-radius: var(--r-sm); }
.product-info h1 { font-size: clamp(24px, 3vw, 34px); font-weight: 700; margin: 6px 0 18px; }
.specs { margin: 0 0 28px; display: flex; flex-wrap: wrap; gap: 10px 28px; }
.specs div { display: flex; flex-direction: column; }
.specs dt { font-size: 12px; color: var(--muted); }
.specs dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.h-sm { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; margin-bottom: 10px; }
.docs { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; }
.doc { display: flex; align-items: center; gap: 14px; padding: 14px; border: 1px solid var(--line); border-radius: var(--r); }
.doc-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.doc-t b { font-weight: 600; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 42px; padding: 0 18px; border-radius: 999px; background: var(--ink); color: #fff; font: inherit; font-size: 14px; font-weight: 600; text-decoration: none; border: 1px solid var(--ink); cursor: pointer; white-space: nowrap; }
.btn:hover { background: #27272a; }
.btn-ghost { background: var(--bg); color: var(--ink); border-color: var(--line); padding: 0 12px; }
.btn-ghost:hover { background: var(--soft); }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.notice { padding: 14px 16px; border-radius: var(--r); background: var(--soft); color: var(--ink-2); margin-bottom: 24px; }
.store-link { font-size: 14px; font-weight: 500; color: var(--ink-2); }
.viewer { margin-top: 40px; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--soft); }
.viewer iframe { display: block; width: 100%; height: 88vh; border: 0; }

/* Alt bilgi */
.foot { border-top: 1px solid var(--line); background: #fafafa; }
.foot-in { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-top: 28px; padding-bottom: 28px; flex-wrap: wrap; }
.foot p { margin: 8px 0 0; font-size: 13px; }
.foot-contact { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; font-size: 13px; }
.foot-phone { font-size: 20px; font-weight: 700; text-decoration: none; }

@media (max-width: 760px) {
  .hero { padding: 36px 0 20px; }
  .lead { font-size: 15px; margin-bottom: 20px; }
  .search input { height: 54px; font-size: 16px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card-b { padding: 10px 12px 12px; }
  .card h3 { font-size: 13px; }
  .product { grid-template-columns: 1fr; gap: 20px; }
  .product-media { max-width: 360px; width: 100%; margin: 0 auto; }
  .doc { flex-wrap: wrap; }
  .doc .btn:not(.btn-ghost) { flex: 1; }
  .viewer { display: none; } /* mobil tarayıcılar PDF'i gömülü göstermiyor; Görüntüle butonu yeterli */
  .foot-contact { align-items: flex-start; }
}

/* ---------- Panel ---------- */
.admin .top { position: static; }
.adm { padding: 28px 16px 64px; }
.adm h1 { font-size: 26px; margin-bottom: 18px; }
.adm h2 { font-size: 17px; margin: 28px 0 12px; }
.adm-bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 20px; }
.adm-bar .sp { flex: 1; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-bottom: 24px; }
.stat { border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; text-decoration: none; }
.stat b { display: block; font-size: 26px; letter-spacing: -0.02em; }
.stat span { font-size: 13px; color: var(--muted); }
.stat.on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.tbl td { padding: 10px; border-bottom: 1px solid var(--soft); vertical-align: middle; }
.tbl tr:hover td { background: #fafafa; }
.tbl img { width: 44px; height: 44px; object-fit: contain; }
.tbl a { text-decoration: none; font-weight: 500; }
.tbl-wrap { overflow-x: auto; }
.tag { display: inline-block; font-size: 12px; font-weight: 600; border-radius: 6px; padding: 2px 8px; background: var(--soft); color: var(--ink-2); }
.tag.ok { background: #dcfce7; color: var(--ok); }
.tag.warn { background: #fef3c7; color: var(--warn); }
.form { display: grid; gap: 14px; max-width: 640px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 13px; font-weight: 600; }
.field small { color: var(--muted); font-size: 12px; }
.inp, select.inp, textarea.inp { width: 100%; font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--bg); color: var(--ink); }
.inp:focus { outline: none; border-color: var(--ink); }
.btn-danger { background: var(--bg); color: var(--danger); border-color: #fecaca; }
.btn-danger:hover { background: #fef2f2; }
.btn-sm { height: 34px; padding: 0 12px; font-size: 13px; }
.flash { padding: 12px 14px; border-radius: var(--r-sm); margin-bottom: 18px; font-size: 14px; background: #dcfce7; color: var(--ok); }
.flash.err { background: #fef2f2; color: var(--danger); }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.box { border: 1px solid var(--line); border-radius: var(--r); padding: 18px; margin-bottom: 18px; }
.login { max-width: 360px; margin: 80px auto; }
.inline { display: inline; }
