:root {
  --red: #d8281f;
  --red-dark: #a81610;
  --red-soft: #fdecea;
  --ink: #1f2125;
  --ink-2: #3a3d43;
  --muted: #6b7078;
  --line: #e7e8ea;
  --bg: #f6f6f7;
  --card: #ffffff;
  --green: #1e9e5a;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(20, 22, 26, 0.06), 0 8px 24px rgba(20, 22, 26, 0.06);
  --shadow-lg: 0 2px 4px rgba(20, 22, 26, 0.08), 0 18px 40px rgba(20, 22, 26, 0.14);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Outfit", system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
.container { width: min(1200px, 92%); margin: 0 auto; }

/* ---------- Header ---------- */
.topbar {
  background: var(--ink);
  color: #d9dbe0;
  font-size: 0.85rem;
}
.topbar .container { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; flex-wrap: wrap; }
.topbar a:hover { color: #fff; }
.topbar span + span { margin-left: 18px; }

.header {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 20;
}
.header .container { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; gap: 16px; }
.logo { display: block; height: 62px; width: auto; }
.header .logo { height: 100px; width: auto; }
.header .nav { flex-shrink: 0; }
.nav { display: flex; gap: 8px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 600; cursor: pointer; transition: all 0.2s ease; font-size: 0.95rem;
}
.btn-red { background: var(--red); color: #fff; box-shadow: 0 6px 16px rgba(216, 40, 31, 0.3); }
.btn-red:hover { background: var(--red-dark); transform: translateY(-2px); }
.btn-ghost { border-color: var(--line); background: #fff; }
.btn-ghost:hover { border-color: var(--ink); }
.btn-wa { background: #25d366; color: #fff; }
.btn-wa:hover { background: #1fb457; transform: translateY(-2px); }
.btn-sm { padding: 7px 14px; font-size: 0.85rem; }
.btn-danger { background: #fff; border-color: #f2c4c1; color: var(--red); }
.btn-danger:hover { background: var(--red-soft); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #1b1d21 0%, #2b2e34 55%, #3a1512 100%);
  color: #fff; padding: 64px 0 80px;
}
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.55;
}
.hero::before { width: 420px; height: 420px; background: var(--red); right: -120px; top: -140px; animation: float 9s ease-in-out infinite; }
.hero::after { width: 300px; height: 300px; background: #7d1a14; left: -100px; bottom: -160px; animation: float 11s ease-in-out infinite reverse; }
@keyframes float { 50% { transform: translate(-30px, 30px) scale(1.08); } }
.hero .container { position: relative; z-index: 1; }
.hero .tag {
  display: inline-block; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 6px 14px; border-radius: 999px; font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase;
}
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); line-height: 1.08; margin: 18px 0 14px; font-weight: 800; letter-spacing: -0.02em; }
.hero h1 em { font-style: normal; color: #ff6a5f; }
.hero p { color: #c9ccd2; max-width: 560px; font-size: 1.08rem; }
.search {
  display: flex; margin-top: 30px; max-width: 560px; background: #fff; border-radius: 999px; padding: 6px;
  box-shadow: var(--shadow-lg);
}
.search input { flex: 1; border: 0; outline: 0; padding: 0 20px; background: transparent; color: var(--ink); min-width: 0; }

/* ---------- Categories ---------- */
.cats { margin-top: -34px; position: relative; z-index: 5; }
.cat-row { display: flex; gap: 14px; overflow-x: auto; padding: 6px 4px 14px; scrollbar-width: none; }
.cat-row::-webkit-scrollbar { display: none; }
.cat-chip {
  flex: 0 0 auto; display: flex; align-items: center; gap: 12px; background: var(--card);
  padding: 14px 22px; border-radius: var(--radius); box-shadow: var(--shadow); font-weight: 600;
  border: 2px solid transparent; transition: all 0.2s;
}
.cat-chip .ico { font-size: 1.6rem; width: 56px; height: 56px; display: grid; place-items: center; flex-shrink: 0; }
.cat-chip .ico img { display: block; width: 100%; height: 100%; object-fit: contain; }
.cat-chip .ico img[src*="pinar-kuruyemis"] {
  width: 50px; height: 50px; border-radius: 9px;
  box-shadow: 0 2px 8px rgba(17, 24, 39, 0.16);
  outline: 1px solid rgba(17, 24, 39, 0.08); outline-offset: 1px;
}
.cat-chip small { display: block; font-weight: 400; color: var(--muted); font-size: 0.78rem; }
.cat-chip:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.cat-chip.active { border-color: var(--red); background: var(--red-soft); }

/* ---------- Product grid ---------- */
.section { padding: 36px 0 12px; }
.section-title { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 20px; }
.section-title h2 { font-size: 1.6rem; font-weight: 700; letter-spacing: -0.01em; }
.section-title h2::before { content: ""; display: inline-block; width: 6px; height: 1.1em; background: var(--red); border-radius: 4px; margin-right: 12px; vertical-align: -0.15em; }
.section-title span { color: var(--muted); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 22px; }
.card {
  background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  display: flex; flex-direction: column; transition: transform 0.25s, box-shadow 0.25s; position: relative;
  animation: rise 0.5s ease both;
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card .img {
  aspect-ratio: 1 / 1; background: linear-gradient(145deg, #fafafa, #efeff1);
  display: flex; align-items: center; justify-content: center; overflow: hidden; position: relative;
}
.card .img img { width: 100%; height: 100%; object-fit: contain; padding: 14px; transition: transform 0.4s; }
.card:hover .img img { transform: scale(1.06); }
.card .img .ph { font-size: 3.4rem; opacity: 0.35; }
.product-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 24px; text-align: center; }
.product-placeholder span { color: var(--red); font-weight: 700; }
.product-placeholder strong { font-size: 1.15rem; }
.product-placeholder small { color: var(--muted); }
.badges { position: absolute; top: 12px; left: 12px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; z-index: 2; }
.badge { padding: 4px 11px; border-radius: 999px; font-size: 0.75rem; font-weight: 700; background: var(--red); color: #fff; }
.badge.dark { background: var(--ink); }
.badge.out { background: #fff; color: var(--muted); border: 1px solid var(--line); }
.card .body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card .brand { font-size: 0.78rem; color: var(--red); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
.card h3 { font-size: 1.08rem; line-height: 1.3; font-weight: 600; }
.card .pack { color: var(--muted); font-size: 0.88rem; }
.card .desc { color: var(--ink-2); font-size: 0.88rem; }
.card .foot { margin-top: auto; padding-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.price { font-size: 1.25rem; font-weight: 800; }
.price small { font-weight: 500; color: var(--muted); font-size: 0.8rem; }
.card.soldout .img img { filter: grayscale(1); opacity: 0.6; }
.empty { text-align: center; padding: 70px 20px; color: var(--muted); background: #fff; border-radius: var(--radius); }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #c4c7cd; margin-top: 70px; padding: 44px 0 26px; }
.footer .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 30px; }
.footer h4 { color: #fff; margin-bottom: 10px; font-weight: 600; }
.footer p { font-size: 0.92rem; }
.footer .copy { border-top: 1px solid #34373d; margin-top: 30px; padding-top: 18px; font-size: 0.82rem; text-align: center; }
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 30; width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.7rem;
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.5); transition: transform 0.2s;
}
.wa-float:hover { transform: scale(1.1) rotate(-6deg); }

/* ---------- Admin ---------- */
.admin-wrap { min-height: 100vh; background: var(--bg); }
.admin-head { background: var(--ink); color: #fff; }
.admin-head .container { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; flex-wrap: wrap; gap: 10px; }
.admin-head .logo { height: 46px; background: #fff; border-radius: 10px; padding: 4px 10px; }
.admin-nav { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.admin-nav a, .admin-nav button {
  padding: 8px 16px; border-radius: 999px; background: transparent; border: 0; color: #d9dbe0; cursor: pointer; font-weight: 500;
}
.admin-nav a:hover, .admin-nav button:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
.admin-nav a.on { background: var(--red); color: #fff; }
.panel { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; margin: 28px 0; }
.panel h1, .panel h2 { margin-bottom: 16px; font-size: 1.4rem; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); padding: 10px 12px; border-bottom: 2px solid var(--line); }
td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:hover td { background: #fafafa; }
.thumb { width: 52px; height: 52px; border-radius: 10px; object-fit: contain; background: #f0f0f2; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; }
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.pill { padding: 3px 10px; border-radius: 999px; font-size: 0.78rem; font-weight: 600; }
.pill.ok { background: #e3f6ec; color: var(--green); }
.pill.no { background: var(--red-soft); color: var(--red); }
.table-wrap { overflow-x: auto; }

.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
label.f { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 0.9rem; }
label.f input, label.f select, label.f textarea {
  padding: 11px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; font-weight: 400; outline: 0; transition: border-color 0.15s, box-shadow 0.15s;
}
label.f input:focus, label.f select:focus, label.f textarea:focus { border-color: var(--red); box-shadow: 0 0 0 4px var(--red-soft); }
.check { display: flex; align-items: center; gap: 10px; font-weight: 500; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--red); }
.hint { color: var(--muted); font-weight: 400; font-size: 0.8rem; }

.login {
  min-height: 100vh; display: grid; place-items: center; padding: 20px;
  background: linear-gradient(135deg, #1b1d21, #3a1512);
}
.login form { background: #fff; padding: 36px; border-radius: 24px; width: min(400px, 100%); display: flex; flex-direction: column; gap: 18px; box-shadow: var(--shadow-lg); }
.login .logo { height: 70px; margin: 0 auto; }
.login h1 { text-align: center; font-size: 1.3rem; }
.err { background: var(--red-soft); color: var(--red-dark); padding: 10px 14px; border-radius: 10px; font-size: 0.9rem; }
.notice { padding: 12px 16px; border-radius: 12px; margin: 24px 0 -8px; font-weight: 600; }
.notice.ok { background: #e3f6ec; color: #187643; }
.notice.err { margin: 24px 0 -8px; }
.inline-form { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.admin-nav form { display: inline-flex; }
.admin-buttons { display: flex; gap: 10px; margin-top: 24px; }
.admin-save { margin-top: 22px; }
.image-row { display: flex; align-items: center; gap: 14px; }

@media (max-width: 720px) {
  .form-grid { grid-template-columns: 1fr; }
  .logo { height: 48px; }
  .header .container { padding: 14px 0; gap: 12px; }
  .header .logo { width: clamp(160px, 52vw, 240px); height: auto; }
  .header .nav .btn { padding: 10px 14px; }
  .hero { padding: 44px 0 64px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .card .body { padding: 12px; }
  .card .foot .btn { padding: 7px 12px; font-size: 0.8rem; }
  .nav .btn-ghost { display: none; }
}

.topbar a + a { margin-left: 14px; }
