/* Alışveriş — ürün ızgarası + detay, site paleti.
   Damgalı dosya adıyla yayınlanır (alisveris.<hash>.css). */

body.alisveris-sayfa {
  background: var(--paper);
  color: var(--ink);
}
body.alisveris-sayfa .site-header {
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
}

.af-ust {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: calc(var(--header-h) + 1.1rem) 1.25rem .85rem;
}
.af-inner { max-width: 1180px; margin: 0 auto; }
.af-kicker {
  font-family: var(--font-mono);
  font-size: .7rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent); font-weight: 400; margin: 0 0 .25rem;
}
.af-baslik {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
}
.af-baslik h1 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 500;
  margin: 0; color: var(--ink); letter-spacing: -.02em;
}
.af-alt { color: var(--muted); font-size: .85rem; margin: .2rem 0 0; }
.af-alt b { color: var(--ink); font-weight: 600; }

.af-filtreler { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .9rem; }
.af-filtre {
  font-size: .8rem; padding: .3rem .75rem; border-radius: 999px;
  border: 1px solid var(--line); background: var(--paper); color: var(--ink);
}
.af-filtre.etkin {
  background: var(--ink); color: var(--paper); border-color: var(--ink);
}

.af-sira {
  display: flex; align-items: center; justify-content: space-between;
  gap: .6rem; margin: 0 0 .7rem; font-size: .82rem; color: var(--muted);
}
.af-sira b { color: var(--ink); font-weight: 600; }

.af-bolum { background: var(--paper-2); padding: 1rem 1.25rem 3.5rem; }

/* ---- ürün ızgarası (liste düzeni, site rengi) ---- */
.ty-izgara {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .65rem;
}

.ty-kart {
  display: flex; flex-direction: column;
  background: var(--paper); border: 1px solid var(--line); border-radius: 12px;
  overflow: hidden; color: var(--ink); text-decoration: none;
  min-height: 100%;
  transition: box-shadow .2s, border-color .2s;
}
.ty-kart:hover {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  box-shadow: 0 8px 24px color-mix(in srgb, var(--ink) 8%, transparent);
}
.ty-kart[data-gizli] { display: none; }

.ty-gorsel {
  position: relative; aspect-ratio: 1 / 1;
  display: flex; align-items: center; justify-content: center;
  background: #fff; padding: .75rem;
}
.ty-gorsel img {
  width: auto; height: auto; max-width: 100%; max-height: 100%;
  object-fit: contain; display: block;
}
.ty-gorsel-yok { font-size: .75rem; color: var(--muted); }
.ty-indirim {
  position: absolute; top: .5rem; left: .5rem;
  background: var(--accent-warm); color: #fff; font-weight: 700; font-size: .72rem;
  padding: .2rem .45rem; border-radius: 6px; line-height: 1.2;
}

.ty-govde {
  padding: .65rem .8rem .85rem;
  display: flex; flex-direction: column; gap: .28rem; flex: 1;
}
.ty-kart h3 {
  font-family: var(--font-sans);
  font-size: .84rem; font-weight: 400; line-height: 1.35; color: var(--ink);
  margin: 0; display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em;
}
.ty-marka { font-weight: 700; }
.ty-puan { display: flex; align-items: center; gap: .3rem; font-size: .72rem; color: var(--muted); }
.af-yildiz { position: relative; display: inline-block; font-size: .8rem; line-height: 1; }
.af-yildiz i, .af-yildiz b { font-style: normal; font-weight: 400; letter-spacing: 0; white-space: nowrap; }
.af-yildiz i { color: var(--line); }
.af-yildiz b { position: absolute; left: 0; top: 0; overflow: hidden; color: var(--accent-warm); }

.ty-fiyat { display: flex; align-items: baseline; gap: .4rem; flex-wrap: wrap; margin-top: .1rem; }
.ty-fiyat strong {
  font-size: 1.15rem; font-weight: 700; color: var(--accent); letter-spacing: -.02em;
}
.ty-fiyat s { color: var(--muted); font-size: .78rem; }
.ty-fiyat-buyuk strong { font-size: 1.85rem; }
.ty-kazanc { color: var(--accent); font-size: .75rem; font-weight: 600; }

.ty-rozetler { display: flex; flex-wrap: wrap; gap: .25rem; margin-top: auto; padding-top: .4rem; }
.ty-rozetler span {
  font-size: .66rem; background: var(--paper-2); color: var(--ink); font-weight: 600;
  padding: .15rem .4rem; border-radius: 4px;
}
.ty-rozetler span.ty-yesil {
  background: color-mix(in srgb, var(--accent-bright) 18%, var(--paper));
  color: var(--accent);
}

.ty-incele {
  display: block; margin-top: .55rem; text-align: center;
  background: var(--ink); color: var(--paper); font-size: .8rem; font-weight: 600;
  padding: .55rem 0; border-radius: 8px;
}
.ty-kart:hover .ty-incele { background: var(--accent); color: #fff; }

/* ---- detay ---- */
.ty-detay { max-width: 1100px; margin: 0 auto; padding: calc(var(--header-h) + 1.4rem) 1.25rem 3.5rem; }
.ty-kirinti {
  display: flex; flex-wrap: wrap; gap: .35rem; font-size: .8rem;
  color: var(--muted); margin-bottom: 1.2rem;
}
.ty-kirinti a { color: var(--ink); border-bottom: 1px solid var(--line); }
.ty-detay-ust {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2rem;
  background: var(--paper); border: 1px solid var(--line); border-radius: 16px;
  padding: 1.3rem;
}
.ty-detay-gorsel {
  position: relative; min-height: 320px;
  display: flex; align-items: center; justify-content: center;
  background: #fff; border-radius: 12px;
}
.ty-detay-gorsel img { max-width: 100%; max-height: 420px; object-fit: contain; }
.ty-detay-bilgi h1 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.4vw, 1.75rem); font-weight: 500;
  line-height: 1.3; margin: .35rem 0 .6rem;
}
.ty-kicker {
  font-family: var(--font-mono);
  font-size: .7rem; text-transform: uppercase; letter-spacing: .16em;
  color: var(--accent); font-weight: 400; margin: 0;
}
.ty-cta {
  display: inline-block; margin-top: 1rem; padding: .9rem 1.4rem;
  background: var(--accent-bright); color: var(--ink); font-weight: 700;
  border-radius: 10px; font-size: .95rem;
}
.ty-cta:hover { background: var(--paper); outline: 1px solid var(--ink); }
.ty-kargo { font-size: .78rem; color: var(--muted); margin-top: .7rem; }

.ty-blok {
  margin-top: 1.4rem; background: var(--paper);
  border: 1px solid var(--line); border-radius: 16px; padding: 1.15rem 1.25rem;
}
.ty-blok h2 {
  font-family: var(--font-display); font-weight: 500;
  font-size: 1.25rem; margin: 0 0 .8rem;
}
.ty-yazi p { font-size: 1rem; line-height: 1.7; margin: 0 0 .85rem; color: var(--ink); }
.ty-yazi ul { margin: 0 0 .9rem 1.15rem; color: var(--ink); }
.ty-yazi li { margin: .2rem 0; font-size: .95rem; }

.af-serit { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .45rem; }
.af-hucre {
  display: flex; flex-direction: column; gap: .15rem;
  padding: .55rem .45rem; border: 1px solid var(--line); border-radius: 10px;
  background: var(--paper-2); text-decoration: none; min-height: 3.5rem;
}
.af-hucre b { font-size: .66rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.af-hucre strong { font-size: .84rem; font-weight: 700; color: var(--ink); }
.af-hucre em { font-style: normal; font-size: .62rem; color: var(--accent); font-weight: 700; text-transform: uppercase; }
.af-hucre-ucuz {
  background: color-mix(in srgb, var(--accent-bright) 16%, var(--paper));
  border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
}
.af-hucre-ucuz strong { color: var(--accent); }
.af-yok { opacity: .45; }
.af-yok i { font-style: normal; font-size: .78rem; color: var(--muted); }

.af-tablo-sar { margin-top: .85rem; }
.af-tablo-sar h4 {
  font-family: var(--font-mono); font-size: .68rem; text-transform: uppercase;
  letter-spacing: .12em; color: var(--muted); margin-bottom: .35rem;
}
.af-tablo { width: 100%; border-collapse: collapse; font-size: .9rem; }
.af-tablo th, .af-tablo td { padding: .45rem 0; border-bottom: 1px solid var(--line); text-align: left; }
.af-tablo td { text-align: right; }
.af-ucuz th, .af-ucuz td { color: var(--accent); font-weight: 700; }
.af-tutar { font-variant-numeric: tabular-nums; }
.af-tablo em { font-style: normal; font-size: .68rem; margin-left: .4rem; color: var(--accent); }

.af-grafik svg { width: 100%; height: auto; background: var(--paper-2); border-radius: 10px; }
.af-grafik figcaption, .af-grafik-yok, .af-yorum-yok, .af-yorum-kaynak {
  font-size: .78rem; color: var(--muted); margin-top: .35rem;
}
.af-puan-liste { list-style: none; padding: 0; display: grid; gap: .25rem; font-size: .9rem; }
.af-uyari { font-size: .78rem; color: var(--muted); margin: 1.5rem 0 1rem; max-width: 46rem; }
.af-bolum .ozet-box {
  font-size: .9rem; background: var(--paper); border: 1px solid var(--line);
}
.af-arsiv { margin-top: 1.3rem; }
.af-arsiv h2 { font-family: var(--font-display); font-weight: 500; font-size: 1.2rem; }
.af-arsiv ul { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; }
.af-arsiv a {
  font-size: .8rem; padding: .28rem .7rem; background: var(--paper);
  border: 1px solid var(--line); border-radius: 999px;
}
.af-bos { padding: 1.4rem; background: var(--paper); }

@media (max-width: 1100px) {
  .ty-izgara { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 800px) {
  .ty-izgara { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ty-detay-ust { grid-template-columns: 1fr; }
  .af-serit { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 480px) {
  .ty-izgara { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .45rem; }
  .ty-govde { padding: .5rem .55rem .7rem; }
  .ty-kart h3 { font-size: .76rem; }
  .ty-fiyat strong { font-size: 1rem; }
}
