:root {
  --bg: #f6f6f4;
  --card: #ffffff;
  --text: #1a1a1a;
  --muted: #6b6b6b;
  --line: #e6e4df;
  --accent: #1a1a1a;
  --wa: #25d366;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 8px 24px rgba(0, 0, 0, .06);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

.wrap {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(246, 246, 244, .85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 72px;
}

.logo {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -.02em;
}

.back-link {
  font-size: 16px;
  color: var(--muted);
  font-weight: 500;
}

.back-link:hover { color: var(--text); }

/* ---------- Hero ---------- */

.hero {
  padding: 72px 0 40px;
  text-align: center;
}

.hero h1 {
  margin: 0 0 12px;
  font-size: 44px;
  line-height: 1.15;
  letter-spacing: -.03em;
  font-weight: 700;
}

.hero p {
  margin: 0;
  font-size: 19px;
  color: var(--muted);
}

/* ---------- Ürün listesi ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
  padding-bottom: 80px;
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, .05), 0 16px 36px rgba(0, 0, 0, .10);
}

.card-img {
  aspect-ratio: 4 / 3;
  background: #efeeea;
  overflow: hidden;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.card-body h2 {
  margin: 0;
  font-size: 24px;
  letter-spacing: -.02em;
  font-weight: 650;
}

.card-body p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.price {
  margin-top: auto;
  padding-top: 8px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.02em;
}

/* ---------- Detay sayfası ---------- */

.detail {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  padding: 56px 0 96px;
  align-items: start;
}

.gallery {
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: sticky;
  top: 96px;
}

.gallery-main {
  aspect-ratio: 1 / 1;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumbs {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.thumb {
  width: 84px;
  height: 84px;
  border-radius: 12px;
  border: 2px solid var(--line);
  overflow: hidden;
  cursor: pointer;
  background: var(--card);
  padding: 0;
}

.thumb img { width: 100%; height: 100%; object-fit: cover; }

.thumb.active { border-color: var(--accent); }

.detail-info h1 {
  margin: 0 0 14px;
  font-size: 40px;
  line-height: 1.15;
  letter-spacing: -.03em;
  font-weight: 700;
}

.detail-price {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -.02em;
  margin-bottom: 26px;
}

.price s,
.detail-price s {
  color: var(--muted);
  font-weight: 500;
  font-size: .7em;
  margin-left: 6px;
}

.detail-info h3 {
  margin: 36px 0 12px;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  font-weight: 600;
}

.detail-info .desc {
  margin: 0;
  font-size: 18px;
  color: #3a3a3a;
}

.specs {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.specs li {
  padding: 16px 4px;
  border-bottom: 1px solid var(--line);
  font-size: 17px;
}

/* ---------- Butonlar ---------- */

.btn-wa {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  margin-top: 32px;
  padding: 20px 28px;
  background: var(--wa);
  color: #fff;
  font-size: 19px;
  font-weight: 650;
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(37, 211, 102, .30);
  transition: filter .15s ease, transform .15s ease;
}

.btn-wa:hover { filter: brightness(.95); transform: translateY(-2px); }

.btn-wa svg { width: 26px; height: 26px; fill: currentColor; }

.btn-amazon {
  display: block;
  text-align: center;
  margin-top: 14px;
  padding: 18px 28px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  font-size: 17px;
  font-weight: 600;
  color: var(--muted);
  transition: border-color .15s ease, color .15s ease;
}

.btn-amazon:hover { border-color: var(--text); color: var(--text); }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px 0;
  text-align: center;
  color: var(--muted);
  font-size: 15px;
}

.empty {
  padding: 80px 0;
  text-align: center;
  color: var(--muted);
  font-size: 19px;
}

/* ---------- Mobil ---------- */

@media (max-width: 880px) {
  .detail {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 32px 0 72px;
  }

  .gallery { position: static; }

  .hero { padding: 48px 0 32px; }
  .hero h1 { font-size: 34px; }
  .detail-info h1 { font-size: 30px; }
  .detail-price { font-size: 26px; }

  .grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .wrap { padding: 0 18px; }
}
