:root {
  --navy: #2f3338; /* antrasit baz */
  --navy-2: #1f2327;
  --red: #E10600;
  --gold: #D4AF37;
  --green: #4CAF50;
  --gray-bg: #f3f4f6;
  --white: #FFFFFF;
  --text: #0d1622;
  --muted: #6B7280;
  --radius: 14px;
  --shadow: 0 6px 18px rgba(0,0,0,0.12);
  --shadow-deep: 0 14px 38px rgba(0,0,0,0.2);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  color: var(--text);
  font-family: "Space Grotesk", "Inter", system-ui, sans-serif;
  min-height: 100vh;
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: linear-gradient(120deg, var(--navy), var(--navy-2));
  background-image: linear-gradient(90deg, rgba(31,35,39,0.92), rgba(47,51,56,0.96));
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-deep);
}
.logo { height: 40px; max-width: 132px; filter: drop-shadow(0 0 12px rgba(212,175,55,0.45)); }

.banner {
  margin: 12px 16px;
  padding: 14px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(56,62,67,0.94), rgba(31,35,39,0.96));
  border: 1px solid rgba(212,175,55,0.18);
  color: #fff;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.22);
}
.banner .eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 12px;
  margin: 0;
  opacity: 0.9;
}
.banner h1 {
  margin: 4px 0 6px;
  font-size: 16px;
  letter-spacing: 0.8px;
}
.banner p {
  margin: 0;
  font-size: 13px;
  opacity: 0.9;
}
.banner-illu {
  margin-left: auto;
  width: 56px;
  height: 56px;
  position: relative;
}
.banner-illu:before,
.banner-illu:after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: #fff;
  opacity: 0.9;
}
.banner-illu:before { width: 34px; height: 34px; bottom: 0; left: 8px; }
.banner-illu:after { width: 24px; height: 24px; bottom: 24px; left: 16px; }

.categories {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 16px 16px 6px;
  background: transparent;
  position: sticky;
  top: 72px;
  z-index: 15;
  border-bottom: 1px solid rgba(212,175,55,0.2);
}
.categories::-webkit-scrollbar { height: 0; }
.cat-btn {
  border: 1px solid rgba(212,175,55,0.35);
  background: linear-gradient(145deg, #33383d, #2a2e32);
  color: var(--white);
  padding: 11px 18px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.16s ease;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 8px 16px rgba(0,0,0,0.16);
  white-space: nowrap;
}
.cat-btn:hover { border-color: var(--green); box-shadow: 0 10px 22px rgba(76,175,80,0.22); transform: translateY(-1px); }
.cat-btn.active {
  background: linear-gradient(135deg, #ff1a14, #c80000);
  border-color: transparent;
  box-shadow: 0 12px 28px rgba(225,6,0,0.25);
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 14px 18px 10px;
  background: linear-gradient(180deg, rgba(255,255,255,0.82), rgba(243,244,246,0.9));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6), 0 10px 30px rgba(0,0,0,0.08);
  border-radius: 16px;
  position: sticky;
  top: 0;
  z-index: 14;
}
.search-input {
  flex: 1 1 180px;
  min-width: 180px;
  height: 46px;
  border-radius: 12px;
  border: 1px solid rgba(212,175,55,0.3);
  padding: 0 12px;
  font-size: 14px;
  outline: none;
  background: rgba(255,255,255,0.9);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7), 0 8px 20px rgba(0,0,0,0.08);
}
.search-input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(76,175,80,0.18); }
.filter-group { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-pill {
  border: 1px solid rgba(47,51,56,0.14);
  background: rgba(255,255,255,0.92);
  color: var(--navy);
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 6px 14px rgba(0,0,0,0.06);
}
.filter-pill:hover { border-color: var(--green); color: var(--green); }
.filter-pill.active {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
  box-shadow: 0 10px 20px rgba(76,175,80,0.22);
}

.content { padding: 10px 12px 32px; }
.section { margin-top: 18px; }
.section-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.section-head h2 { margin: 0; color: #ffffff; font-size: 18px; letter-spacing: 0.8px; text-transform: uppercase; }
.section-head .line { flex: 1; height: 2px; background: linear-gradient(90deg, var(--gold), transparent); }
.section { scroll-margin-top: 96px; }
.grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(47,51,56,0.08);
  overflow: hidden;
  display: block;
  padding: 14px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card-body { display: flex; flex-direction: column; gap: 8px; }
.card:hover { box-shadow: 0 14px 32px rgba(212,175,55,0.24); transform: translateY(-1px); }
.card-title { color: var(--navy); font-weight: 700; font-size: 15px; letter-spacing: 0.3px; }
.card-desc { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.card-meta { display: flex; align-items: center; justify-content: flex-start; }
.price { color: var(--red); font-weight: 700; font-size: 15px; letter-spacing: 0.3px; }
.price::after { content: ""; margin-left: 0; }

/* Plate layout (az ürünlü kategoriler) */
.plate-block {
  display: grid;
  grid-template-columns: 1fr 0.55fr;
  background: #2f3338;
  color: #f4f4f5;
  border: 1px solid rgba(212,175,55,0.25);
  box-shadow: 0 16px 40px rgba(0,0,0,0.25);
  border-radius: 16px;
  overflow: hidden;
  margin: 12px 0 6px;
}
.plate-left {
  padding: 28px 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.plate-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  align-items: center;
  font-size: 18px;
  letter-spacing: 0.4px;
}
.plate-name { font-weight: 600; }
.plate-leader { display: none; }
.plate-price {
  font-weight: 700;
  color: #ffffff !important;
  letter-spacing: 0.3px;
}
.plate-photo {
  min-height: 360px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center right;
  position: relative;
  border-left: 1px solid rgba(212,175,55,0.25);
  padding: 12px;
}
.plate-photo::after { display: none; }

.back-to-top {
  position: fixed;
  right: 16px;
  bottom: 18px;
  width: 44px; height: 44px;
  border-radius: 12px;
  border: none;
  background: var(--red);
  color: var(--white);
  font-size: 18px;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(225,6,0,0.25);
  cursor: pointer;
  display: none;
  z-index: 30;
}
.back-to-top.show { display: inline-flex; align-items: center; justify-content: center; }

@media (max-width: 800px) {
  .plate-block {
    grid-template-columns: 1.05fr 0.95fr; /* foto sağda, aynı satırda kalsın */
    gap: 0;
  }
  .plate-left { padding: 16px 14px 10px; }
  .plate-row { font-size: 15.5px; }
  .plate-photo {
    min-height: 260px;
    background-size: contain;
    background-position: center right;
    border-left: 1px solid rgba(212,175,55,0.25);
    padding: 10px;
  }
}

@media (max-width: 640px) {
  .banner { margin: 10px 12px; padding: 12px; }
  .banner h1 { font-size: 15px; }
  .banner p { font-size: 12.5px; }
  .content { padding: 8px 10px 28px; }
  .categories { padding: 12px 12px 8px; gap: 8px; }
  .cat-btn { padding: 8px 14px; }
  /* header + kategori sekmesi için daha yüksek offset */
  .section { scroll-margin-top: 110px; }
  .toolbar { position: sticky; top: 0; z-index: 14; padding: 8px 10px 6px; }
  .search-input { flex: 1 1 100%; min-width: 100%; }
}

/* Admin */
.admin-bg {
  min-height: 100vh;
  background: radial-gradient(circle at 20% 20%, rgba(255,255,255,0.06), transparent 25%), linear-gradient(135deg, #383e43, #000);
}
.login-shell { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.login-card {
  width: min(480px, 100%);
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-deep);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
}
.admin-card { align-items: stretch; }
.admin-title { margin: 0; color: var(--navy); font-size: 18px; text-align: center; }
.admin-sub { margin: 0; color: var(--muted); font-size: 13px; text-align: center; }
.admin-table { width: 100%; display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.admin-row { display: grid; grid-template-columns: 1.2fr 1fr 0.9fr 0.6fr 0.6fr; gap: 8px; align-items: center; }
.admin-head { font-weight: 700; color: var(--navy); font-size: 13px; }
.admin-row.item { font-size: 13px; color: var(--text); padding: 10px 12px; border: 1px solid rgba(56,62,67,0.08); border-radius: 10px; background: #fafafa; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.muted { color: var(--muted); }
.input.slim { height: 38px; border-radius: 10px; }
.price-input { width: 100%; }
.toggle { width: 18px; height: 18px; }
.btn-save { height: 36px; border-radius: 10px; border: 1px solid rgba(56,62,67,0.15); background: var(--white); cursor: pointer; }
.btn-save:hover { border-color: var(--red); color: var(--red); }
.admin-actions { display: flex; justify-content: flex-end; gap: 8px; }
.input {
  width: 100%; height: 48px; border-radius: 999px;
  border: 1px solid #e5e7eb; padding: 0 16px;
  font-size: 15px; outline: none;
  transition: all 0.2s ease;
}
.input:focus { border-color: var(--red); box-shadow: 0 0 0 4px rgba(225,6,0,0.15); }
.btn-primary {
  width: 100%; height: 48px; border-radius: 999px;
  border: none; background: var(--red); color: var(--white);
  font-weight: 700; cursor: pointer;
  box-shadow: 0 12px 24px rgba(225,6,0,0.25);
  transition: transform 0.15s ease;
}
.btn-primary:hover { transform: translateY(-1px); }
