/* Tema: fildişi zemin + lacivert detaylar (klasik butik). Cihaz karanlık modda olsa da her zaman bu görünüm. */
:root {
  color-scheme: light;
  --bg: #f6f1e7;          /* fildişi */
  --surface: #fffcf6;     /* açık fildişi kart */
  --text: #121a30;        /* koyu lacivert yazı */
  --muted: #3d4a68;       /* ikincil yazılar da lacivert tonunda (soluk gri değil) */
  --placeholder: #707a92;
  --line: #e4dbcb;
  --accent: #1b2a4a;      /* lacivert */
  --accent-ink: #fbf8f1;
  --accent-soft: #e7ebf3;
  --danger: #9b2c2c;
  --radius: 6px;
  --r-ctl: 3px;
  --shadow: 0 1px 0 rgb(20 27 45 / .04), 0 10px 30px rgb(20 27 45 / .05);
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
/* Gece versiyonu sadece ileride bir "gece modu" düğmesiyle istenirse açılır (data-theme="dark") */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0d1321; --surface: #141c2e; --text: #eee8dc; --muted: #a29d92; --line: #26314a;
  --accent: #c9d5ee; --accent-ink: #0d1321; --accent-soft: #1d2842; --danger: #e29b9b;
  --shadow: none;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text);
  font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; min-height: 100vh;
  display: flex; flex-direction: column; }
main { flex: 1; }
a { color: inherit; }
img { max-width: 100%; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 20px 16px 48px; }

/* Üst bar */
.topbar { display: flex; gap: 16px; align-items: center; padding: 12px 16px; background: var(--surface);
  border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.logo { font-weight: 800; font-size: 22px; letter-spacing: -.02em; text-decoration: none; }
.logo.big { font-size: 48px; }
.topsearch { flex: 1; display: flex; max-width: 640px; }
.topsearch input, .bigsearch input { flex: 1; min-width: 0; border: 1px solid var(--line); background: var(--bg);
  color: var(--text); border-radius: 999px 0 0 999px; padding: 10px 16px; font-size: 15px; }
.topsearch button, .bigsearch button { border: 0; background: var(--accent); color: var(--accent-ink);
  border-radius: 0 999px 999px 0; padding: 0 20px; font-weight: 600; cursor: pointer; font-size: 15px; }

/* Erkek / Kadın seçimi */
.gender-toggle { display: inline-flex; background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  padding: 3px; gap: 2px; flex: none; }
.gender-toggle label { cursor: pointer; }
.gender-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.gender-toggle span { display: block; padding: 7px 18px; border-radius: 999px; font-weight: 600; font-size: 14px;
  color: var(--muted); transition: background .15s, color .15s; }
.gender-toggle label:hover span { color: var(--text); }
.gender-toggle input:checked + span { background: var(--accent); color: var(--accent-ink); }
.gender-toggle input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.topsearch .gender-toggle { margin-right: 10px; }
.topsearch .gender-toggle span { padding: 6px 12px; font-size: 13px; }

/* Ana sayfa */
.search-form { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.search-form .bigsearch { width: 100%; }
.search-form .gender-toggle span { padding: 9px 28px; font-size: 15px; }
.hero { max-width: 720px; margin: 0 auto; padding: 18vh 16px 40px; text-align: center; }
.tagline { color: var(--muted); font-size: 17px; margin: 8px 0 28px; }
.bigsearch { display: flex; box-shadow: var(--shadow); border-radius: 999px; }
.bigsearch input { padding: 16px 22px; font-size: 17px; background: var(--surface); }
.bigsearch button { padding: 0 28px; font-size: 16px; }

/* Sonuçlar: mağaza kartları */
.page-title { font-size: 24px; margin: 8px 0 4px; letter-spacing: -.01em; }
.stores { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); margin-top: 20px; }
.store-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; text-decoration: none; display: flex; flex-direction: column; gap: 14px; box-shadow: var(--shadow);
  transition: border-color .15s; }
.store-card:hover { border-color: var(--accent); }
.store-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.store-name { font-weight: 700; font-size: 19px; }
.pill { background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 600; border-radius: 999px; padding: 3px 10px; }
.store-best { display: flex; gap: 14px; align-items: center; }
.store-best img { width: 96px; height: 96px; object-fit: contain; background: #fff; border-radius: 10px; flex: none; }
.go { color: var(--accent); font-weight: 600; font-size: 14px; }
.store-preview { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.store-preview img { width: 100%; aspect-ratio: 1; object-fit: contain; background: #fff; border-radius: 10px; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .04em; color: var(--muted); }
.title { font-weight: 600; }
.price { font-weight: 700; }

/* Ürün sayfası düzeni */
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--accent); text-decoration: none; }
.store-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 24px; align-items: start; }
.filters { position: sticky; top: 76px; max-height: calc(100vh - 92px); overflow: auto; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.filters summary { font-weight: 700; cursor: pointer; list-style: none; }
.filters summary::-webkit-details-marker { display: none; }
.filters fieldset { border: 0; border-top: 1px solid var(--line); margin: 12px 0 0; padding: 12px 0 0; }
.filters legend { font-weight: 600; font-size: 13px; padding: 0; margin-bottom: 6px; }
.opts.scroll { max-height: 190px; overflow: auto; padding-right: 4px; }
.opt-search { width: 100%; margin-bottom: 6px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--bg); color: var(--text); font-size: 13px; }
.check[hidden] { display: none; }
.check { display: flex; align-items: center; gap: 8px; font-size: 14px; padding: 3px 0; cursor: pointer; }
.check span { flex: 1; }
.check span::first-letter { text-transform: uppercase; }
.check em { font-style: normal; color: var(--muted); font-size: 12px; }
.check.solo { margin-top: 12px; }
.check input { accent-color: var(--accent); width: 16px; height: 16px; }
.range { display: flex; gap: 6px; align-items: center; }
.range input, .filters select, .sort select { width: 100%; min-width: 0; padding: 8px 10px; border: 1px solid var(--line);
  border-radius: 8px; background: var(--bg); color: var(--text); font-size: 14px; }
.filter-actions { display: flex; gap: 8px; margin-top: 16px; }
.btn { flex: 1; text-align: center; border: 0; background: var(--accent); color: var(--accent-ink); border-radius: 10px;
  padding: 9px 12px; font-weight: 600; font-size: 14px; cursor: pointer; text-decoration: none; }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }

/* "Mağazada gezin" butonu */
.crumbs-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.crumbs-row .crumbs { margin: 0; }
.browse-btn { border: 1.5px solid var(--accent); color: var(--accent); background: var(--surface); text-decoration: none;
  font-weight: 700; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; padding: 9px 16px; border-radius: 999px; }
.browse-btn:hover { background: var(--accent); color: var(--accent-ink); }

/* Katalog modu: başlık + köşedeki küçük saat */
.browse-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 8px; }
.browse-head .page-title { margin: 2px 0 0; }
.mini-card { position: relative; display: flex; gap: 12px; align-items: center; width: 320px; max-width: 100%; flex: none;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 36px 10px 10px;
  text-decoration: none; box-shadow: var(--shadow); transition: border-color .15s; }
.mini-card:hover { border-color: var(--accent); }
.mini-card img { width: 64px; height: 64px; object-fit: contain; background: #fff; border-radius: 8px; flex: none; }
.mini-card .title { font-size: 13px; line-height: 1.3; }
.mini-card .price { font-size: 14px; }
.mini-card .grow { position: absolute; top: 8px; right: 12px; color: var(--muted); font-size: 16px; }
.grid-tools { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 12px; }

/* Büyük saatin küçülerek sağ üst köşeye kayması */
@keyframes fly-to-corner {
  from { transform: translate(-45%, 55%) scale(2.1); opacity: .35; }
  to   { transform: none; opacity: 1; }
}
@keyframes fade-up {
  from { transform: translateY(24px); opacity: 0; }
  to   { transform: none; opacity: 1; }
}
.mini-card.fly-in { animation: fly-to-corner .65s cubic-bezier(.2, .8, .2, 1) both; transform-origin: top right; }
.fade-up { animation: fade-up .5s .15s ease-out both; }
@media (prefers-reduced-motion: reduce) {
  .mini-card.fly-in, .fade-up { animation: none; }
}

/* Ürün detayı */
.product { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 28px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.main-img { background: #fff; border-radius: 12px; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.main-img img { width: 100%; height: 100%; object-fit: contain; }
.thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
.thumb { flex: none; width: 68px; height: 68px; padding: 0; border: 2px solid transparent; border-radius: 10px;
  background: #fff; cursor: pointer; overflow: hidden; }
.thumb.active { border-color: var(--accent); }
.thumb img { width: 100%; height: 100%; object-fit: contain; }
.info h1 { font-size: 24px; line-height: 1.25; margin: 4px 0 10px; letter-spacing: -.01em; }
.price-row { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.price.big { font-size: 28px; }
.stock { font-size: 13px; font-weight: 600; border-radius: 999px; padding: 2px 10px; }
.stock.in { background: var(--accent-soft); color: var(--accent); }
.stock.out { color: var(--danger); border: 1px solid currentColor; }
.sold-by { margin: 8px 0 16px; font-size: 14px; color: var(--muted); }
.sold-by strong { color: var(--text); }
.specs { width: 100%; border-collapse: collapse; font-size: 14px; }
.specs th, .specs td { text-align: left; padding: 7px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs th { color: var(--muted); font-weight: 500; width: 42%; }
.specs td::first-letter { text-transform: uppercase; }
.official { display: inline-block; margin-top: 14px; color: var(--accent); font-weight: 600; font-size: 14px; }
.buy { display: block; text-align: center; margin: 22px 0 8px; background: var(--accent); color: var(--accent-ink);
  text-decoration: none; font-weight: 800; letter-spacing: .03em; padding: 16px; border-radius: 12px; font-size: 16px; }
.buy:hover { filter: brightness(1.08); }

/* Diğer saatler */
.others { margin-top: 32px; }
.others-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.others-head h2 { font-size: 20px; margin: 0; }
.sort select { width: auto; }
.chip-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 12px 0 0; font-size: 14px; }
.chip { background: var(--accent-soft); color: var(--accent); border-radius: 999px; padding: 4px 12px; font-weight: 600; }
.link { color: var(--accent); }
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); margin-top: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  text-decoration: none; display: flex; flex-direction: column; transition: border-color .15s; }
.card:hover { border-color: var(--accent); }
.card img { width: 100%; aspect-ratio: 1; object-fit: contain; background: #fff; }
.card-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
/* Saat türü etiketi (yapay zeka: Dress watch, Şık-günlük, Dalış...) */
.card { position: relative; }
.type-badge { display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: .02em; color: var(--accent);
  background: var(--accent-soft); border-radius: 999px; padding: 3px 9px; white-space: nowrap; }
.type-badge.on-card { position: absolute; top: 8px; left: 8px; background: rgb(255 252 246 / .92);
  border: 1px solid var(--line); }
.type-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; margin: 2px 0 10px; }
.ai-reason { font-size: 12px; color: var(--muted); }
.card .title { font-size: 14px; line-height: 1.35; }
.card-meta { margin-top: auto; display: flex; justify-content: space-between; align-items: baseline; }
.pager { display: flex; gap: 16px; justify-content: center; align-items: center; margin-top: 24px; font-size: 14px; }
.pager a { color: var(--accent); font-weight: 600; text-decoration: none; }

/* Favoriler */
.fav-link { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; font-weight: 600; font-size: 14px;
  padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); flex: none; }
.fav-link:hover { border-color: var(--accent); }
.fav-link svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.fav-count:not(:empty) { background: #d64545; color: #fff; border-radius: 999px; font-size: 11px; font-weight: 700;
  min-width: 18px; height: 18px; padding: 0 5px; display: inline-flex; align-items: center; justify-content: center; }
.top-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; flex: none; }
.home-top { justify-content: flex-end; padding: 12px 16px 0; }

/* Hesap (giriş / menü) */
.account { position: relative; }
.account-login { border: 0; background: var(--accent); color: var(--accent-ink); font: inherit; font-weight: 600; font-size: 14px;
  padding: 8px 14px; border-radius: 999px; cursor: pointer; }
.account-chip { width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--accent); color: var(--accent-ink);
  font: inherit; font-weight: 700; cursor: pointer; }
.account-login[hidden], .account-chip[hidden], .account-menu[hidden] { display: none; }
.account-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 20; min-width: 220px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 8px 30px rgb(0 0 0 / .12); padding: 8px; display: flex; flex-direction: column; }
.account-menu .account-email { padding: 6px 10px 8px; border-bottom: 1px solid var(--line); margin-bottom: 4px; word-break: break-all; }
.account-menu a { padding: 8px 10px; border-radius: 8px; text-decoration: none; font-size: 14px; }
.account-menu a:hover { background: var(--bg); }

/* Giriş / kayıt penceresi */
.auth-dialog { border: 0; border-radius: 16px; padding: 24px; width: min(400px, calc(100vw - 32px));
  background: var(--surface); color: var(--text); box-shadow: 0 20px 60px rgb(0 0 0 / .25); }
.auth-dialog::backdrop { background: rgb(0 0 0 / .45); }
.auth-dialog h2 { margin: 0 0 4px; font-size: 20px; }
.dialog-close { position: absolute; top: 10px; right: 12px; border: 0; background: none; color: var(--muted); font-size: 26px; cursor: pointer; }
.auth-tabs { display: flex; gap: 4px; background: var(--bg); border-radius: 10px; padding: 4px; margin: 16px 0; }
.auth-tabs button { flex: 1; border: 0; background: none; color: var(--muted); font: inherit; font-weight: 600; padding: 8px; border-radius: 8px; cursor: pointer; }
.auth-tabs button.active { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
#auth-form { display: flex; flex-direction: column; gap: 12px; }
#auth-form label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; }
#auth-form input { padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--text); font-size: 15px; }
#auth-form .btn { padding: 12px; font-size: 15px; }
.auth-error { color: var(--danger); font-size: 13px; margin: 0; min-height: 0; }
.auth-error:empty { display: none; }

.fav-btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--surface);
  color: var(--text); border-radius: 999px; cursor: pointer; padding: 6px; font: inherit; font-size: 13px; font-weight: 600; }
.fav-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform .15s; }
.fav-btn:hover svg { transform: scale(1.12); }
.fav-btn.on { color: #d64545; }
.fav-btn.on svg { fill: currentColor; }
.fav-btn.with-label { padding: 6px 12px; }
.fav-btn .fav-text-on, .fav-btn.on .fav-text-off { display: none; }
.fav-btn.on .fav-text-on { display: inline; }
.card-wrap { position: relative; display: flex; }
.card-wrap .card { flex: 1; }
.card-wrap .fav-btn { position: absolute; top: 8px; right: 8px; box-shadow: var(--shadow); }
.card-wrap.gone .card { opacity: .6; min-height: 120px; }
.empty-state { text-align: center; padding: 48px 16px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.empty-state .btn { flex: none; margin-top: 10px; padding: 10px 22px; }
.empty-state[hidden] { display: none; }

/* Tükendi + gelince haber ver */
.soldout-box { margin: 14px 0 6px; padding: 14px; border-radius: 12px; background: color-mix(in srgb, var(--danger) 7%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--danger) 25%, var(--line)); display: flex; flex-direction: column; gap: 6px; }
.alert-btn { flex: none; align-self: flex-start; margin-top: 4px; }
.alert-btn .alert-on, .alert-btn.on .alert-off { display: none; }
.alert-btn.on .alert-on { display: inline; }
.alert-btn.on { background: var(--accent-soft); color: var(--accent); }
.buy.disabled { background: var(--line); color: var(--muted); }

/* Bildirim zili */
.bell { position: static; }  /* menü, sağ kenara hizalı hesap alanına göre açılsın (telefonda taşmasın) */
.bell[hidden] { display: none; }
.bell-btn { position: relative; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface);
  color: var(--text); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.bell-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.bell-count:not(:empty) { position: absolute; top: -4px; right: -4px; background: #d64545; color: #fff; border-radius: 999px;
  font-size: 11px; font-weight: 700; min-width: 18px; height: 18px; padding: 0 4px; display: inline-flex; align-items: center; justify-content: center; }
.bell-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 20; width: min(340px, calc(100vw - 32px)); max-height: 420px; overflow: auto;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 8px 30px rgb(0 0 0 / .12); }
.bell-menu[hidden] { display: none; }
.bell-head { padding: 12px 14px; font-weight: 700; border-bottom: 1px solid var(--line); }
.bell-item { display: flex; gap: 10px; align-items: center; padding: 10px 14px; text-decoration: none; border-bottom: 1px solid var(--line); font-size: 14px; }
.bell-item:hover { background: var(--bg); }
.bell-item.unread { background: var(--accent-soft); }
.bell-item img { width: 44px; height: 44px; object-fit: contain; background: #fff; border-radius: 8px; flex: none; }
.bell-empty { padding: 14px; margin: 0; }
.account { display: flex; align-items: center; gap: 8px; }

/* Yönetici paneli */
.admin-tabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--line); margin: 12px 0 20px; }
.admin-tabs a { padding: 10px 14px; text-decoration: none; font-weight: 600; font-size: 14px; color: var(--muted);
  border-bottom: 2px solid transparent; white-space: nowrap; }
.admin-tabs a.active { color: var(--accent); border-bottom-color: var(--accent); }
.table-scroll { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; }
table.data th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 600; background: var(--bg); }
table.data th, table.data td { padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.data tr:last-child td { border-bottom: 0; }
table.data tr.zero td { background: color-mix(in srgb, var(--danger) 8%, transparent); }
table.data tr.noclick td { background: color-mix(in srgb, #c98a1b 10%, transparent); }  /* sonuç çıktı ama tıklanmadı */
table.data td.actions { white-space: nowrap; display: flex; gap: 10px; align-items: center; }
.prod-cell { display: flex; gap: 10px; align-items: center; min-width: 220px; }
.prod-cell a { color: var(--text); font-weight: 600; text-decoration: none; }
.prod-cell a:hover { color: var(--accent); }
.thumb-sm { width: 44px; height: 44px; object-fit: contain; background: #fff; border-radius: 8px; flex: none; display: inline-block; }
.seg { display: inline-flex; gap: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 4px; margin-bottom: 10px; }
.seg button { border: 0; background: none; color: var(--muted); font: inherit; font-weight: 600; font-size: 13px; padding: 7px 12px; border-radius: 8px; cursor: pointer; }
.seg button.active { background: var(--accent); color: var(--accent-ink); }
.panels { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.panel.wide { grid-column: span 2; }
.panel h3 { margin: 0 0 10px; font-size: 15px; }
ol.rank { list-style: none; margin: 0; padding: 0; counter-reset: r; }
ol.rank li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
ol.rank li:last-child { border-bottom: 0; }
.rank-n { text-align: right; font-weight: 700; font-size: 13px; white-space: nowrap; }
ul.timeline { list-style: none; margin: 0; padding: 0; max-height: 640px; overflow: auto; }
ul.timeline li { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.ev { font-size: 12px; font-weight: 700; border-radius: 999px; padding: 2px 9px; background: var(--bg); }
.ev-fav_add { background: #fde8e8; color: #b42318; }
.ev-fav_remove { background: #f2f2f2; color: #555; }
.ev-buy_click { background: var(--accent-soft); color: var(--accent); }
.ev-search { background: #e8f0fb; color: #1d4f91; }
.small-btn { flex: none; padding: 6px 10px; font-size: 12px; }
.ok-text { color: var(--accent); font-weight: 600; }
@media (max-width: 760px) { .panel.wide { grid-column: auto; } .panels { grid-template-columns: 1fr; } }

/* Durum sayfası */
.checked { color: var(--muted); font-size: 12px; }
.section-title { font-size: 18px; margin: 28px 0 10px; }
.stat-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); margin-top: 16px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.stat-value { font-size: 24px; font-weight: 700; }
.jobs { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.job { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px;
  display: flex; flex-direction: column; gap: 6px; }
.job-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 8px; }
.job-head .muted { flex-basis: 100%; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line); display: inline-block; }
.dot.ok { background: var(--accent); }
.dot.running { background: #d4a017; }
.dot.error { background: var(--danger); }
.dot.waiting, .dot.stopped { background: var(--muted); }
.err { color: var(--danger); }
.runs td, .runs th { padding: 6px 8px 6px 0; }
.runs th { width: auto; }
.runs td::first-letter { text-transform: none; }

.foot { text-align: center; color: var(--muted); font-size: 12px; padding: 20px 16px; border-top: 1px solid var(--line); }
.home .foot { border-top: 0; }

/* =====================================================================
   Premium katman — klasik butik görünümü (fildişi + lacivert).
   Yukarıdaki temel kuralların üzerine yazar: serif başlıklar, keskin köşeler, ince çizgiler.
   ===================================================================== */
body { font-family: var(--sans); font-size: 15px; letter-spacing: .005em; }
::selection { background: var(--accent); color: var(--accent-ink); }

/* Logo ve başlıklar: serif */
/* LookFoundMe: büyük/küçük harf korunur (tamamı büyük harfle "LOOKFOUNDME" okunmuyor); "Me" lacivert ve italik */
:root { --brand: #155a40; }  /* logo rengi: koyu zümrüt yeşili (site geri kalanı lacivert) */
.logo { font-family: var(--serif); font-weight: 600; font-size: 26px; letter-spacing: .01em; line-height: 1;
  color: var(--brand); white-space: nowrap; display: inline-flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.logo em { color: var(--brand); font-weight: 500; font-style: italic; }
.logo .logo-sub { font-family: var(--sans); font-size: 9.5px; font-weight: 600; letter-spacing: .22em;
  text-transform: uppercase; color: var(--muted); }
.logo.big { font-size: 62px; letter-spacing: .01em; align-items: center; gap: 10px; }
.logo.big .logo-sub { font-size: 13px; letter-spacing: .3em; }
.tagline { font-family: var(--serif); font-style: italic; font-size: 23px; font-weight: 500; color: var(--accent); }
::placeholder { color: var(--placeholder); opacity: 1; }
.gender-toggle span { color: var(--accent); }
.foot { color: var(--accent); }
.page-title, .info h1, .others-head h2, .section-title, .auth-dialog h2, .store-name, .bell-head, .panel h3 {
  font-family: var(--serif); font-weight: 600; letter-spacing: .01em; }
/* Serif yazıda rakamlar aynı hizada dursun (fiyat, model kodu) */
.logo, .page-title, .info h1, .others-head h2, .section-title, .price.big, .store-name, .account-chip, .filters summary {
  font-variant-numeric: lining-nums; }
.page-title { font-size: 34px; line-height: 1.15; }
.info h1 { font-size: 34px; line-height: 1.15; }
.others-head h2, .section-title { font-size: 26px; }
.store-name { font-size: 24px; }
.eyebrow { font-size: 11px; font-weight: 500; letter-spacing: .14em; color: var(--muted); }
.title { font-weight: 500; }
.price { font-weight: 600; font-variant-numeric: tabular-nums; }
.price.big { font-family: var(--serif); font-size: 34px; font-weight: 600; }

/* Üst bar: fildişi zemin, ince alt çizgi */
.topbar { background: var(--bg); padding: 14px 24px; }
.topsearch input, .bigsearch input { border-radius: var(--r-ctl) 0 0 var(--r-ctl); background: var(--surface); }
.topsearch button, .bigsearch button { border-radius: 0 var(--r-ctl) var(--r-ctl) 0; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase; font-size: 12px; padding: 0 22px; }
.bigsearch { border-radius: var(--r-ctl); box-shadow: var(--shadow); }
.bigsearch input { padding: 18px 22px; font-size: 16px; border-color: var(--line); }
.bigsearch input:focus, .topsearch input:focus { outline: none; border-color: var(--accent); }

/* Erkek / Kadın */
/* İki ayrı buton (aralarında boşluk, her birinin kendi çerçevesi); seçili olan dolu lacivert */
.gender-toggle { border: 0; padding: 0; gap: 8px; border-radius: 0; background: transparent; }
.gender-toggle span { border-radius: var(--r-ctl); font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  font-size: 12px; border: 1px solid var(--accent); background: var(--surface); color: var(--accent);
  transition: background .15s, color .15s; }
.gender-toggle label:hover span { background: var(--accent-soft); color: var(--accent); }
.gender-toggle input:checked + span, .gender-toggle label:hover input:checked + span {
  background: var(--accent); color: var(--accent-ink); }
.search-form .gender-toggle span { padding: 9px 30px; font-size: 12px; }
.topsearch .gender-toggle span { font-size: 11px; }

/* Ana sayfa */
.hero { padding-top: 16vh; }
.hero .logo.big::after { content: ""; display: block; width: 56px; height: 1px; background: var(--accent); margin: 18px auto 0; }

/* Butonlar, etiketler: keskin köşeler */
.btn, .account-login { border-radius: var(--r-ctl); font-weight: 500; letter-spacing: .06em; }
.btn.ghost { border-color: var(--line); }
.pill, .chip, .stock { border-radius: 2px; font-weight: 500; letter-spacing: .04em; }
.stock.in { background: var(--accent-soft); color: var(--accent); }
.fav-link, .bell-btn { border-radius: var(--r-ctl); background: transparent; }
.bell-btn { width: 38px; height: 38px; }
.account-chip { border-radius: 50%; font-family: var(--serif); font-size: 18px; font-weight: 600; }
.fav-count:not(:empty), .bell-count:not(:empty) { background: var(--accent); color: var(--accent-ink); }
.fav-btn { border-radius: var(--r-ctl); }
.fav-btn.on { color: var(--accent); }
.browse-btn { border-radius: 2px; border-width: 1px; font-weight: 500; letter-spacing: .12em; font-size: 12px; background: transparent; }
.buy { border-radius: 2px; font-weight: 500; letter-spacing: .16em; font-size: 13px; padding: 18px; }
.buy:hover { filter: none; background: color-mix(in srgb, var(--accent) 88%, var(--text)); }

/* Kartlar: ince çizgi, sakin hover */
.store-card, .card, .mini-card, .product, .filters, .panel, .stat, .job, .table-scroll { border-radius: var(--radius); }
.store-card, .card { transition: border-color .2s, transform .2s, box-shadow .2s; }
.store-card:hover, .card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.card img, .store-best img, .store-preview img, .mini-card img, .thumb, .thumb-sm, .bell-item img { border-radius: 2px; }
.card-body { padding: 14px 14px 16px; gap: 6px; }
.card .title { font-size: 14px; }
.product { padding: 28px; gap: 36px; }
.main-img { border-radius: 2px; }
.specs th { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; font-weight: 500; }
.specs th, .specs td { padding: 10px 0; }
.go { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; font-weight: 500; }

/* Fiyat karşılaştırması: en ucuz mağaza vurgusu + ürün sayfasındaki mağaza/fiyat tablosu */
.store-card { position: relative; }
.store-card.cheapest { border-color: var(--accent); box-shadow: var(--shadow); }
.best-price-badge { position: absolute; top: -10px; left: 16px; background: var(--accent); color: var(--accent-ink);
  font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px;
  border-radius: var(--r-ctl); }
.best-price-badge.inline { position: static; font-size: 10px; padding: 3px 8px; white-space: nowrap; flex: none; }
.price-diff { font-size: 12px; color: var(--danger); margin-top: 2px; }
.compare { border: 1px solid var(--line); border-radius: var(--radius); margin: 4px 0 18px; overflow: hidden;
  background: var(--surface); }
.compare-title { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
  padding: 10px 14px; border-bottom: 1px solid var(--line); }
.compare-row { display: flex; align-items: center; gap: 10px; padding: 11px 14px; text-decoration: none; color: var(--text);
  border-bottom: 1px solid var(--line); }
.compare-row:last-child { border-bottom: 0; }
.compare-row:hover { background: var(--accent-soft); }
.compare-row.here { background: color-mix(in srgb, var(--accent-soft) 60%, transparent); }
.compare-row.out { opacity: .6; }
.compare-store { flex: 1; font-weight: 600; font-size: 14px; }
.compare-store em { font-style: normal; font-weight: 400; color: var(--muted); font-size: 12px; }
.compare-price { font-weight: 600; font-size: 15px; white-space: nowrap; }
.compare-stock { font-size: 12px; color: var(--muted); width: 52px; text-align: right; }
.crumbs, .crumbs a { font-size: 12px; letter-spacing: .04em; }

/* Filtreler */
.filters summary { font-family: var(--serif); font-size: 20px; font-weight: 600; }
.filters legend { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; font-weight: 500; color: var(--muted); }
.opt-search, .range input, .filters select, .sort select { border-radius: var(--r-ctl); background: var(--surface); }

/* Pencereler ve menüler */
.auth-dialog { border-radius: var(--radius); padding: 32px 28px 28px; }
.auth-dialog h2 { font-size: 30px; }
.auth-tabs { border-radius: var(--r-ctl); }
.auth-tabs button { border-radius: 2px; font-weight: 500; letter-spacing: .06em; }
#auth-form input { border-radius: var(--r-ctl); background: var(--surface); }
.account-menu, .bell-menu { border-radius: var(--radius); }
.soldout-box { border-radius: var(--radius); }

.foot { letter-spacing: .08em; font-size: 11px; text-transform: uppercase; }
/* Kullanım amacı: kapalı açılır menü; başlığa basınca butonlar aşağı açılır */
.occasions { margin-top: 26px; text-align: center; }
.occasions-title { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; list-style: none; user-select: none;
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); font-weight: 500;
  padding: 8px 14px; border-bottom: 1px solid var(--line); }
.occasions-title::-webkit-details-marker { display: none; }
.occasions-title::after { content: ""; width: 7px; height: 7px; border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .2s; }
.occasions[open] .occasions-title::after { transform: translateY(2px) rotate(-135deg); }
.occasions-title:hover { border-bottom-color: var(--accent); }
.occasion-list { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 14px; }
.occasions[open] .occasion-list { animation: occ-open .2s ease-out; }
@keyframes occ-open { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.occasion { border: 1px solid var(--accent); background: transparent; color: var(--accent); font: inherit; font-size: 13px;
  font-weight: 500; letter-spacing: .04em; padding: 9px 16px; border-radius: 2px; cursor: pointer; }
.occasion:hover { background: var(--accent); color: var(--accent-ink); }
.ai-note { display: inline-block; font-family: var(--serif); font-style: italic; font-size: 18px; color: var(--accent); margin: 4px 0 6px; }

/* Telefon ve tablet */
@media (max-width: 860px) {
  .store-layout { grid-template-columns: 1fr; }
  .filters { position: static; max-height: none; }
  .product { grid-template-columns: 1fr; padding: 14px; }
  .browse-head { flex-direction: column-reverse; }
  .mini-card { width: 100%; }
  @keyframes fly-to-corner { from { transform: translateY(40px) scale(1.3); opacity: .35; } to { transform: none; opacity: 1; } }
}
@media (max-width: 520px) {
  /* Telefonda üst çubuk: 1. satır logo + butonlar, 2. satır arama */
  .topbar { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px 8px; }
  .topbar .logo { grid-column: 1; grid-row: 1; overflow: hidden; text-overflow: ellipsis; }
  .topbar .top-actions { grid-column: 2; grid-row: 1; margin: 0; gap: 6px; }
  .topsearch { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) auto; row-gap: 8px; max-width: none; }
  .topsearch .gender-toggle { grid-column: 1 / -1; justify-self: start; margin: 0; }
  .fav-link { padding: 7px 9px; }
  .fav-link-text { display: none; }
  .logo.big { font-size: 40px; letter-spacing: .01em; }
  .logo.big .logo-sub { font-size: 10px; letter-spacing: .22em; }
  .logo { font-size: 20px; letter-spacing: .01em; }
  .logo .logo-sub { font-size: 8px; letter-spacing: .14em; }
  .topbar { padding: 12px 16px; }
  .page-title, .info h1 { font-size: 28px; }
  .product { padding: 16px; gap: 20px; }
  .hero { padding-top: 12vh; }
  .stores { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .bigsearch button { padding: 0 18px; }
}
