/* firsat: one stylesheet, mobile first. Product images do the talking; the interface is
   neutral with a single green accent. */

:root {
  color-scheme: light dark;
  --bg: #f6f5f2;
  --surface: #ffffff;
  --surface-2: #ecebe6;
  --text: #17181a;
  --muted: #5c6065;
  --line: #e2e0da;
  --accent: #0b7a5b;
  --on-accent: #ffffff;
  --accent-soft: #e0f1ea;
  --warn: #8a5300;
  --warn-soft: #fbf0d6;
  --danger: #b3261e;
  --shadow: 0 8px 30px rgb(0 0 0 / 0.12);
  --radius: 14px;
  --top-h: 56px;
  --nav-h: 58px;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-l: env(safe-area-inset-left, 0px);
  --safe-r: env(safe-area-inset-right, 0px);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1011;
    --surface: #191b1d;
    --surface-2: #232628;
    --text: #ededeb;
    --muted: #a3a7ab;
    --line: #2c2f32;
    --accent: #4adeaa;
    --on-accent: #06281d;
    --accent-soft: #12352a;
    --warn: #f0c060;
    --warn-soft: #3a2e12;
    --danger: #ff8a80;
    --shadow: 0 8px 30px rgb(0 0 0 / 0.5);
  }
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  padding-bottom: calc(var(--nav-h) + var(--safe-b));
  background: var(--bg);
  color: var(--text);
  font: 15px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  overflow-x: hidden;
}

h1, h2, h3, h4, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
img { max-width: 100%; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
main:focus { outline: none; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}

.skip-link {
  position: fixed; top: 8px; left: 8px; z-index: 100;
  padding: 10px 14px; border-radius: 10px;
  background: var(--accent); color: var(--on-accent);
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

.muted { color: var(--muted); }
.small { font-size: 13px; }
.warn-text { color: var(--warn); }

.icon {
  width: 22px; height: 22px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}

/* --- top bar and tabs --------------------------------------------------------------------- */

.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 10px;
  height: calc(var(--top-h) + var(--safe-t));
  padding: var(--safe-t) calc(8px + var(--safe-r)) 0 calc(14px + var(--safe-l));
  background: var(--bg);
  border-bottom: 1px solid transparent;
}

.wordmark {
  font-size: 22px; font-weight: 800; letter-spacing: -0.03em;
  color: var(--accent); text-decoration: none;
}

.search {
  flex: 1; min-width: 0; position: relative; display: flex; align-items: center;
}
.search .icon { position: absolute; left: 12px; width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.search input {
  width: 100%; height: 40px; padding: 0 12px 0 38px;
  border: 1px solid transparent; border-radius: 999px;
  background: var(--surface-2);
  font-size: 16px; /* below 16px iOS zooms the page on focus */
}
.search input::placeholder { color: var(--muted); }
.search input:focus-visible { outline-offset: 0; background: var(--surface); }

.icon-button {
  display: inline-grid; place-items: center; flex: none;
  width: 44px; height: 44px; padding: 0;
  border: 0; border-radius: 50%; background: none; color: inherit; text-decoration: none;
}
.icon-button:hover { background: var(--surface-2); }
.icon-button.on-dark:hover { background: rgb(255 255 255 / 0.12); }

.tabs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: grid; grid-template-columns: repeat(4, 1fr);
  height: calc(var(--nav-h) + var(--safe-b));
  padding: 0 var(--safe-r) var(--safe-b) var(--safe-l);
  background: var(--surface);
  border-top: 1px solid var(--line);
}
.tabs a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  min-width: 0; color: var(--muted); text-decoration: none; font-size: 11px; font-weight: 600;
}
.tabs a[aria-current="page"] { color: var(--accent); }
.tabs a:focus-visible { outline-offset: -4px; border-radius: 12px; }

/* --- pages --------------------------------------------------------------------------------- */

.page { max-width: 1280px; margin: 0 auto; padding: 8px calc(12px + var(--safe-r)) 28px calc(12px + var(--safe-l)); }
.page.narrow { max-width: 760px; }

.page-head { display: flex; align-items: center; gap: 4px; min-height: 48px; margin-bottom: 6px; }
.page-head h1 { font-size: 22px; letter-spacing: -0.02em; line-height: 1.2; overflow-wrap: anywhere; }
.page-head .icon-button { margin-left: -10px; }

.empty { max-width: 420px; margin: 48px auto; padding: 0 12px; text-align: center; color: var(--muted); display: grid; gap: 10px; justify-items: center; }
.empty-title { color: var(--text); font-size: 17px; font-weight: 700; }

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px;
  border: 1px solid var(--line); border-radius: 12px;
  background: var(--surface); color: var(--text);
  font-weight: 650; text-decoration: none; white-space: nowrap;
}
.button:hover { border-color: var(--muted); }
.button.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.button.danger { background: var(--danger); border-color: var(--danger); color: var(--surface); }
.button.danger-outline { color: var(--danger); }
.button.small { min-height: 36px; padding: 0 12px; font-size: 14px; }
.button-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }

/* --- opening banner: %70 %80 %90 ----------------------------------------------------------- */

.hero {
  position: relative; overflow: hidden; isolation: isolate;
  margin: 4px 0 20px; padding: 18px 14px 14px;
  border-radius: 24px; color: #fff;
  background: radial-gradient(130% 150% at 0% 0%, #15b386 0%, #0b7a5b 36%, #05382b 100%);
  box-shadow: 0 22px 44px -22px rgba(5, 56, 43, .75);
}
.hero::after { /* a slow shine sweeping across, like a shop window */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .2) 50%, transparent 62%);
  transform: translateX(-100%); animation: hero-shine 4.5s ease-in-out 1s infinite;
}
.hero-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; opacity: .85; }
.hero-title { margin-top: 2px; font-size: 22px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
.hero-foot { margin-top: 4px; font-size: 12.5px; opacity: .8; }
.tiers { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; margin-top: 14px; }
.tier {
  display: grid; justify-items: center; gap: 2px; padding: 14px 4px 12px;
  border-radius: 18px; color: inherit; text-decoration: none;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .24);
  animation: tier-pop .5s cubic-bezier(.2, .9, .3, 1.3) both;
  transition: transform .12s;
}
.tier:nth-child(2) { animation-delay: .12s; }
.tier:nth-child(3) { animation-delay: .24s; }
.tier-80 { background: rgba(255, 255, 255, .2); }
.tier-90 { background: #ffd84d; border-color: #ffd84d; color: #231a00; }
.tier:active { transform: scale(.96); }
.tier:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.tier-number { display: flex; align-items: flex-start; font-weight: 800; line-height: .95; letter-spacing: -0.05em; font-size: clamp(40px, 13vw, 76px); font-variant-numeric: tabular-nums; }
.tier-sign { font-size: .5em; margin-top: .12em; letter-spacing: 0; }
.tier-plus { font-size: 12px; font-weight: 600; opacity: .85; }
.tier-count { margin-top: 8px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: rgba(0, 0, 0, .22); white-space: nowrap; }
.tier-90 .tier-count { background: rgba(35, 26, 0, .14); }
@keyframes hero-shine { 0%, 55% { transform: translateX(-100%); } 85%, 100% { transform: translateX(100%); } }
@keyframes tier-pop { from { opacity: 0; transform: translateY(14px) scale(.9); } to { opacity: 1; transform: none; } }
@media (min-width: 860px) {
  .hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px); align-items: center; gap: 28px; padding: 26px 28px; }
  .hero-title { font-size: 34px; }
  .hero-foot { font-size: 14px; }
  .tiers { margin-top: 0; gap: 12px; }
  .tier-number { font-size: 76px; }
}

/* --- deal grid and cards ------------------------------------------------------------------ */

.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 10px; }
.grid-status:not(:empty) { padding: 24px 0 8px; text-align: center; }
.sentinel { height: 1px; }

.card { position: relative; min-width: 0; -webkit-touch-callout: none; }
.card-media, .detail-media, .mini-media, .alert-media {
  position: relative; overflow: hidden; background: var(--surface-2);
  display: grid; place-items: center;
}
.card-media { aspect-ratio: 4 / 5; border-radius: var(--radius); }
.card-media img, .detail-media img, .mini-media img, .alert-media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.packshot { background: #fff; }
.packshot img { object-fit: contain; }
.placeholder-icon { width: 28px; height: 28px; color: var(--muted); opacity: 0.6; }

.pct {
  position: absolute; top: 8px; left: 8px; z-index: 1;
  padding: 2px 8px; border-radius: 999px;
  background: var(--accent); color: var(--on-accent);
  font-size: 13px; font-weight: 750; line-height: 1.5;
}
/* Our own, lower number: drawn differently so it does not read as the store's claim. */
.pct.verified { background: var(--surface); color: var(--text); box-shadow: inset 0 0 0 1.5px var(--accent); }

.save {
  position: absolute; top: 4px; right: 4px; z-index: 2;
  display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 0; background: none; color: var(--text);
}
.save::before {
  content: ""; position: absolute; inset: 5px; border-radius: 50%;
  background: color-mix(in srgb, var(--surface) 86%, transparent);
}
.save .icon { position: relative; width: 19px; height: 19px; }
[data-save][aria-pressed="true"] .icon { fill: var(--accent); stroke: var(--accent); }

/* minmax(0, ...) keeps a long unbreakable word from widening the card past its column. */
.card-info { padding: 6px 2px 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; }
.card-top { display: flex; align-items: center; gap: 4px; min-height: 28px; }
.card-seller { flex: 1; min-width: 0; color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-seller a { text-underline-offset: 2px; }
.card-title { overflow-wrap: anywhere; font-size: 14px; font-weight: 500; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-title a { text-decoration: none; }
/* The whole card is the link; the buttons sit above it. */
.card-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: var(--radius); }
.card-title a:focus-visible { outline: none; }
.card-title a:focus-visible::after { outline: 2px solid var(--accent); outline-offset: 2px; }

.more {
  position: relative; z-index: 2; flex: none;
  display: grid; place-items: center; width: 44px; height: 32px; margin: -2px -10px -2px 0; padding: 0;
  border: 0; border-radius: 10px; background: none; color: var(--muted);
}
.more .icon { stroke-width: 2.8; }
.more:hover { background: var(--surface-2); }

.price-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; margin-top: 2px; }
.price { font-size: 16px; font-weight: 750; letter-spacing: -0.01em; }
.old-price { color: var(--muted); font-size: 13px; }

.verified-note {
  margin-top: 4px; padding: 6px 8px; border-radius: 8px;
  background: var(--warn-soft); color: var(--warn); font-size: 12px; line-height: 1.35;
}
.verified-ok { display: flex; align-items: center; gap: 4px; color: var(--accent); font-size: 13px; }
.verified-ok .icon { width: 16px; height: 16px; }

.badges { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.badge {
  display: inline-block; padding: 1px 7px; border-radius: 6px;
  background: var(--surface-2); color: var(--text);
  font-size: 11.5px; font-weight: 600; line-height: 1.6; white-space: nowrap;
}
.badge.lowest_30d, .badge.new_drop { background: var(--accent-soft); color: var(--accent); }
.badge.stock_low { background: var(--warn-soft); color: var(--warn); }
.badge.sponsored { background: none; box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); }
@media (prefers-color-scheme: light) {
  .badge.lowest_30d, .badge.new_drop { color: #075c44; }
}

.card-fresh { margin-top: 3px; color: var(--muted); font-size: 11.5px; }

.card.ended .card-media img { filter: grayscale(1); opacity: 0.55; }
.card.ended .price, .card.ended .card-title { color: var(--muted); }
.ended-tag {
  position: absolute; top: 8px; left: 8px; z-index: 1;
  padding: 2px 8px; border-radius: 999px; background: var(--text); color: var(--bg);
  font-size: 12px; font-weight: 700;
}
.card.ended .pct { display: none; }

/* --- skeletons ----------------------------------------------------------------------------- */

.skeleton .card-media, .skeleton-line, .skeleton:not(.card) {
  background: linear-gradient(90deg, var(--surface-2) 25%, var(--line) 40%, var(--surface-2) 60%);
  background-size: 300% 100%;
  animation: shimmer 1.5s linear infinite;
}
.skeleton-line { height: 12px; margin-top: 10px; border-radius: 6px; }
.skeleton-line.short { width: 55%; }
.cat-skeleton { height: 92px; border-radius: var(--radius); }
.row-skeleton { height: 60px; border-radius: 12px; margin-bottom: 8px; }
.chart-skeleton { height: 120px; border-radius: 12px; }
.detail-skeleton { height: 60vh; border-radius: var(--radius); margin-top: 8px; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -50% 0; } }

/* --- chips, filters, lists ------------------------------------------------------------------ */

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip, .chip-radio span {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 38px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface); color: var(--text);
  font-size: 14px; font-weight: 550; text-decoration: none; white-space: nowrap;
}
.chip.big { min-height: 44px; padding: 0 16px; font-size: 15px; }
.chip .icon { width: 17px; height: 17px; }
.chip-x { width: 14px; height: 14px; color: var(--muted); }
.chip-count { color: var(--muted); font-weight: 500; font-size: 12.5px; }
.chip[aria-pressed="true"], .chip-radio input:checked + span {
  background: var(--accent); border-color: var(--accent); color: var(--on-accent);
}
.chip-radio { position: relative; display: inline-flex; }
.chip-radio input { position: absolute; opacity: 0; inset: 0; margin: 0; }
.chip-radio input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.scroll-row, .filter-bar {
  display: flex; flex-wrap: nowrap; gap: 8px; overflow-x: auto; scrollbar-width: none;
  margin: 0 -12px; padding: 2px 12px 10px;
}
.scroll-row::-webkit-scrollbar, .filter-bar::-webkit-scrollbar, .strip-list::-webkit-scrollbar { display: none; }
.scroll-row li, .filter-bar > * { flex: none; }
.min-bar { align-items: center; margin-top: 12px; }
.min-label { font-size: 13px; color: var(--muted); font-weight: 600; padding-right: 2px; }

/* "Büyük indirimler": a row of the deepest cuts under the Keşfet banner. */
.lane { margin: 18px 0 6px; }
.lane-head { display: flex; align-items: baseline; gap: 10px; padding: 0 2px 8px; }
.lane-head h2 { font-size: 18px; letter-spacing: -0.01em; }
.lane-head .muted { flex: 1; min-width: 0; font-size: 13px; }
.lane-all { font-size: 14px; font-weight: 650; color: var(--accent); text-decoration: none; padding: 8px 4px; }
.lane-list {
  display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity;
  margin: 0 -12px; padding: 2px 12px 10px; list-style: none;
}
.lane-list::-webkit-scrollbar { display: none; }
.lane-list > li { flex: none; width: min(44vw, 190px); scroll-snap-align: start; }

.result-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; margin-bottom: 8px; }
.sort select, .field select, .field input[type="text"], .field input[type="number"], .alarm input, .onboard-stage input[type="search"] {
  min-height: 44px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface);
  font-size: 16px;
}
.sort select { min-height: 40px; font-size: 14px; font-weight: 600; }

.filter-form { display: grid; gap: 18px; padding-top: 4px; }
.field { display: grid; gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field > label, .field > legend, .alarm label { font-weight: 650; font-size: 14px; padding: 0; }
.field > legend { margin-bottom: 8px; }
.field select, .field input[type="text"] { width: 100%; }
.range { display: flex; align-items: center; gap: 8px; }
.range input { flex: 1; min-width: 0; width: 100%; }
.check { display: flex; align-items: flex-start; gap: 12px; min-height: 44px; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--accent); flex: none; }
.check span { display: grid; font-weight: 650; }
.check small { color: var(--muted); font-weight: 400; }

.row-link, .store-row, .cat-head, .other-row {
  display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 10px 14px;
  background: var(--surface); border-radius: var(--radius); text-decoration: none;
}
.row-link span, .store-main { flex: 1; min-width: 0; display: grid; }
.row-link small, .store-main small { color: var(--muted); font-size: 13px; }
.store-main small.warn-text { color: var(--warn); }
.row-link .icon:last-child, .store-row > .icon, .cat-head .icon, .other-row .icon { color: var(--muted); width: 18px; height: 18px; }

.cat-list { display: grid; gap: 10px; margin-top: 12px; }
.cat { background: var(--surface); border-radius: var(--radius); padding-bottom: 2px; }
.cat-head { background: none; }
.cat-head h2 { flex: 1; min-width: 0; font-size: 16px; }
.cat-head .muted { font-size: 13px; white-space: nowrap; }
.cat .chips { padding: 0 14px 12px; }
.cat .chip { background: var(--bg); border-color: transparent; min-height: 36px; }
.cat-empty { padding: 8px 2px; font-size: 13px; }

.store-list { margin-top: 12px; }
.rows { display: grid; gap: 8px; }
.store-row b { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.store-row > .muted { font-size: 13px; white-space: nowrap; }
.store-row.static { align-items: flex-start; }
.uncovered { margin-top: 28px; display: grid; gap: 8px; }
.uncovered h2 { font-size: 17px; }
.tech-note summary { min-height: 32px; display: flex; align-items: center; color: var(--muted); font-size: 13px; cursor: pointer; }
.tech-note p { color: var(--muted); font-size: 13px; }
.empty .tech-note { text-align: left; }
.store-fresh { margin: -4px 0 10px; font-size: 13.5px; }

/* --- sheets --------------------------------------------------------------------------------- */

html.sheet-open { overflow: hidden; }

dialog.sheet {
  position: fixed; inset: 0; margin: auto 0 0;
  width: 100%; max-width: 100%; max-height: 92dvh;
  padding: 0; border: 0; border-radius: 20px 20px 0 0;
  background: var(--surface); color: var(--text); box-shadow: var(--shadow);
  overflow: hidden;
}
dialog.sheet[open] { display: flex; flex-direction: column; animation: sheet-up 0.22s ease-out; }
dialog.sheet::backdrop { background: rgb(0 0 0 / 0.5); }
@keyframes sheet-up { from { transform: translateY(32px); opacity: 0; } }

.sheet-head {
  flex: none; display: flex; align-items: center; justify-content: space-between; gap: 8px;
  min-height: 56px; padding: 6px 6px 6px calc(16px + var(--safe-l));
}
.sheet-title { font-size: 17px; letter-spacing: -0.01em; }
.sheet-body {
  flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain;
  padding: 0 calc(16px + var(--safe-r)) 18px calc(16px + var(--safe-l));
}
.sheet-foot {
  flex: none; display: flex; align-items: center; gap: 10px;
  padding: 10px calc(16px + var(--safe-r)) calc(10px + var(--safe-b)) calc(16px + var(--safe-l));
  border-top: 1px solid var(--line);
}
.sheet-foot .button { flex: 1; }
.sheet-text { color: var(--muted); }

.menu-subject { color: var(--muted); font-size: 13.5px; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.menu-item {
  display: flex; align-items: center; width: 100%; min-height: 52px; padding: 0 2px;
  border: 0; border-top: 1px solid var(--line); background: none; text-align: left; font-weight: 550;
}
.why { margin-top: 4px; padding: 12px; border-radius: 12px; background: var(--surface-2); font-size: 14px; }

.settings-section { padding: 14px 0; border-top: 1px solid var(--line); }
.settings-section:first-child { border-top: 0; padding-top: 2px; }
.settings-section h3 { font-size: 15px; margin-bottom: 6px; }
.prose p { color: var(--muted); font-size: 14px; }
.prose p + p { margin-top: 8px; }
.prose a { color: var(--accent); font-weight: 600; }

.onboard-stage { display: grid; gap: 12px; min-height: 240px; align-content: start; }
.onboard-stage h3 { font-size: 20px; letter-spacing: -0.02em; }
.onboard-progress { flex: none; min-width: 40px; text-align: center; }
.onboard-sheet .sheet-foot .button { flex: 1; }

/* --- deal detail ---------------------------------------------------------------------------- */

.detail { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.detail-media-wrap { position: relative; }
.detail-media { aspect-ratio: 1 / 1; width: 100%; max-height: 44dvh; border-radius: var(--radius); }
.detail-media img { object-fit: contain; background: #fff; }
.detail-info { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; align-content: start; min-width: 0; }
.detail-info .card-seller { font-size: 13.5px; white-space: normal; }
.detail-title { overflow-wrap: anywhere; font-size: 18px; font-weight: 650; line-height: 1.3; letter-spacing: -0.01em; }
.detail-info .price { font-size: 24px; }
.detail-info .old-price { font-size: 15px; }
.detail-info .verified-note { font-size: 13.5px; padding: 8px 10px; }
.detail-fresh { color: var(--muted); font-size: 13.5px; }
.source-note { padding: 8px 10px; border-radius: 8px; background: var(--surface-2); font-size: 13.5px; }
.detail-section { margin-top: 14px; display: grid; gap: 8px; }
.detail-section h4 { font-size: 15px; }
.sizes { display: flex; flex-wrap: wrap; gap: 6px; }
.sizes li { min-width: 40px; padding: 5px 10px; border: 1px solid var(--line); border-radius: 8px; text-align: center; font-size: 13.5px; }

.chart-box { display: grid; gap: 4px; }
.chart-readout { font-size: 13.5px; color: var(--muted); }
.chart-readout b { color: var(--text); }
.chart { display: block; width: 100%; height: auto; touch-action: pan-y; cursor: crosshair; overflow: visible; }
.chart-line { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart-area { fill: var(--accent); opacity: 0.1; }
.chart-low { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 2 4; opacity: 0.7; }
.chart-cross { stroke: var(--muted); stroke-width: 1; }
.chart-dot { fill: var(--accent); stroke: var(--surface); stroke-width: 2; }
.chart-label { fill: var(--muted); font-size: 11px; }
.chart-table summary { min-height: 36px; display: flex; align-items: center; color: var(--muted); font-size: 13px; cursor: pointer; }
.chart-table table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.chart-table th, .chart-table td { padding: 6px 0; border-top: 1px solid var(--line); text-align: left; }
.chart-table td:last-child, .chart-table th:last-child { text-align: right; }

.others { display: grid; gap: 6px; }
.other-row { background: var(--surface-2); min-height: 48px; border-radius: 12px; }
.other-store { flex: 1; min-width: 0; font-weight: 600; }
.other-price { font-weight: 700; }

.alarm p { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-bottom: 8px; font-size: 14px; }
.alarm p .icon { width: 18px; height: 18px; color: var(--accent); }
.alarm-form { display: grid; gap: 8px; }
.alarm-row { display: flex; gap: 8px; }
.alarm-row input { flex: 1; min-width: 0; }

.save-wide { flex: 0 1 auto !important; }
.go .icon { width: 18px; height: 18px; }

/* --- saved ------------------------------------------------------------------------------------ */

.alerts { margin-bottom: 22px; }
.alerts h2 { font-size: 16px; margin-bottom: 8px; }
.alert-list { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.alert-row { display: flex; align-items: center; gap: 12px; padding: 8px; background: var(--surface); border-radius: var(--radius); }
.alert-row.triggered { box-shadow: inset 0 0 0 1.5px var(--accent); }
.alert-media { width: 56px; height: 70px; border-radius: 10px; flex: none; }
.alert-media .placeholder-icon { width: 20px; height: 20px; }
.alert-text { flex: 1; min-width: 0; display: grid; gap: 2px; justify-items: start; }
.alert-text a { font-weight: 600; font-size: 14px; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.alert-text small { color: var(--muted); font-size: 13px; }

/* --- toast -------------------------------------------------------------------------------- */

.toast {
  position: fixed; left: 50%; bottom: calc(var(--nav-h) + var(--safe-b) + 14px); z-index: 200;
  transform: translateX(-50%);
  display: flex; align-items: center; gap: 12px;
  max-width: min(92vw, 440px); padding: 11px 16px; border-radius: 12px;
  background: var(--text); color: var(--bg); box-shadow: var(--shadow);
  font-size: 14px; font-weight: 550;
}
.toast-action { border: 0; background: none; color: inherit; font-weight: 750; text-decoration: underline; }

.noscript { padding: 24px; text-align: center; }

/* --- İzle ------------------------------------------------------------------------------------ */

.watch {
  /* The video feed is dark in both themes; the tokens are re-pointed for everything inside. */
  --text: #ffffff; --muted: #b9bcc0; --surface: #17181a; --surface-2: #232628; --line: #2f3235;
  --accent: #4adeaa; --on-accent: #06281d;
  position: fixed; inset: 0 0 calc(var(--nav-h) + var(--safe-b)) 0; z-index: 10;
  padding-top: var(--safe-t);
  background: #000; color: var(--text);
  overflow-y: auto; scroll-snap-type: y mandatory; overscroll-behavior: contain; scrollbar-width: none;
}
.watch::-webkit-scrollbar { display: none; }
.watch:focus-visible { outline-offset: -2px; }

.slide {
  height: 100%; display: flex; flex-direction: column;
  scroll-snap-align: start; scroll-snap-stop: always; background: #000;
  container-type: size;
}
.player { position: relative; flex: none; width: 100%; background: #0c0c0d; overflow: hidden; }
.slide.landscape .player { aspect-ratio: 16 / 9; }
.slide.short .player { flex: 1; min-height: 0; }
.watch-loading .player { flex: 1; }
.player iframe, .player-target { display: block; width: 100%; height: 100%; border: 0; }

.poster { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: #0c0c0d; color: #fff; }
.poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.poster-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%;
  background: rgb(0 0 0 / 0.55);
}
.poster-play .icon { width: 30px; height: 30px; fill: currentColor; stroke-width: 1; }
.player-error { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 12px; padding: 16px; text-align: center; color: var(--muted); }

.slide-meta { flex: none; display: flex; align-items: center; gap: 8px; padding: 10px 6px 4px calc(14px + var(--safe-l)); }
.slide-text { flex: 1; min-width: 0; }
.slide-brand { font-weight: 750; font-size: 15px; }
.slide-date { color: var(--muted); font-weight: 400; font-size: 13px; }
.slide-title { font-size: 13.5px; font-weight: 400; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slide.landscape .slide-title { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

.strip { flex: none; padding: 6px 0 12px; }
.slide.landscape .strip { flex: 1; min-height: 0; padding-top: 14px; overflow: hidden; }
.strip-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 0 14px 8px; }
.strip-head h3 { font-size: 13px; font-weight: 650; color: var(--muted); }
.slide.landscape .strip-head h3 { font-size: 15px; color: var(--text); }
.strip-head a { color: var(--accent); font-size: 13.5px; font-weight: 650; text-decoration: none; padding: 6px 0; }
.strip-list { display: flex; gap: 10px; overflow-x: auto; padding: 0 14px 2px; scrollbar-width: none; overscroll-behavior-x: contain; }
.strip-list li { flex: none; }
.strip-empty { padding: 0 14px; color: var(--muted); font-size: 13.5px; }

.mini { display: grid; gap: 1px; width: 84px; text-decoration: none; }
.mini-media-wrap { position: relative; margin-bottom: 4px; }
.mini-media { aspect-ratio: 1 / 1; border-radius: 10px; }
.mini .pct { top: 4px; left: 4px; padding: 0 6px; font-size: 11.5px; }
.mini .placeholder-icon { width: 20px; height: 20px; }
.mini-price { font-size: 13.5px; font-weight: 700; white-space: nowrap; }
.mini-old { font-size: 11.5px; color: var(--muted); white-space: nowrap; }
/* Landscape videos leave the lower half free: the deal cards grow to use it. */
.slide.landscape .mini { width: clamp(148px, calc((100cqh - 56.25cqw - 200px) * 0.8), 220px); }
.slide.landscape .mini-media { aspect-ratio: 4 / 5; border-radius: 12px; }
.slide.landscape .mini-price { font-size: 15px; }
.slide.landscape .mini-old { font-size: 12.5px; }

.watch-empty {
  height: 100%; display: grid; place-content: center; justify-items: center; gap: 12px;
  padding: 24px; text-align: center; color: var(--muted);
}
.watch-empty p { max-width: 320px; }
.watch-empty-icon { width: 44px; height: 44px; color: var(--accent); }

@media (max-width: 899px) {
  html.immersive .topbar { display: none; }
  html.immersive .tabs { background: #000; border-top-color: #222; }
  html.immersive .tabs a { color: #a9acb0; }
  html.immersive .tabs a[aria-current="page"] { color: #fff; }
  html.immersive body { overflow: hidden; }
}

/* --- wider screens ---------------------------------------------------------------------------- */

@media (min-width: 560px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 14px; }
}

@media (min-width: 700px) {
  dialog.sheet { margin: auto; width: min(560px, calc(100% - 32px)); max-height: min(86dvh, 900px); border-radius: 20px; }
  dialog.sheet.sheet-small { width: min(420px, calc(100% - 32px)); }
  dialog.sheet.detail-sheet { width: min(940px, calc(100% - 32px)); }
  .detail { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 24px; align-items: start; }
  .detail-media-wrap { position: sticky; top: 0; }
  .sheet-foot { justify-content: flex-end; }
  .sheet-foot .button { flex: 0 1 auto; min-width: 140px; }
}

@media (min-width: 900px) {
  :root { --top-h: 64px; --gutter: max(24px, calc((100vw - 1280px) / 2)); }
  body { padding-bottom: 0; }
  .topbar { padding: 0 var(--gutter); gap: 14px; border-bottom-color: var(--line); }
  .wordmark { font-size: 24px; width: 96px; }
  /* The tab bar moves up into the header: reserve its room between wordmark and search. */
  .search { flex: 0 1 380px; margin-left: auto; }
  .tabs {
    top: 0; bottom: auto; left: calc(var(--gutter) + 110px); right: auto;
    height: var(--top-h); padding: 0; grid-template-columns: repeat(4, auto); gap: 4px;
    background: none; border: 0;
  }
  .tabs a { flex-direction: row; gap: 8px; padding: 0 12px; font-size: 14.5px; }
  .tabs a .icon { width: 19px; height: 19px; }
  .tabs a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--accent); }
  .page { padding: 20px 24px 48px; }
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 18px; }
  .card-title { font-size: 14.5px; }
  .cat-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page.narrow { max-width: 920px; }
  .toast { bottom: 24px; }
  .scroll-row, .filter-bar { margin: 0; padding-inline: 0; flex-wrap: wrap; }

  .watch { inset: var(--top-h) 0 0 0; background: #0b0b0c; }
  .slide {
    width: max(380px, min(480px, calc((100dvh - var(--top-h)) * 9 / 16)));
    margin: 0 auto; border-inline: 1px solid #1d1f21;
  }
}

@media (min-width: 900px) and (max-width: 1099px) {
  .tabs a .icon { display: none; }
}

@media (min-width: 1200px) {
  .grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

@media (forced-colors: active) {
  .pct, .badge, .chip { border: 1px solid; }
}
