/* ============================================================
   CARIBRE — açık zemin, flat tasarım
   Logo paleti: mavi (#2f7cc4) + kırmızı (#e03a34) + koyu lacivert
   Font: Manrope (tek aile, profesyonel)
   ============================================================ */

:root {
  --bg: #f6f7f9;
  --panel: #ffffff;
  --line: #e3e7ed;
  --text: #171a20;
  --muted: #5f6774;
  --blue: #2f7cc4;
  --blue-dark: #22629e;
  --blue-tint: #eaf2fa;
  --red: #e03a34;
  --navy: #12151b;
  --green: #1e9e4a;
  --radius: 10px;
  --font: 'Manrope', system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Çapa hedefleri yapışkan header'ın altında kalmasın */
#urunler, #iletisim, #iletisim-footer { scroll-margin-top: 78px; }

/* ---------- Gösterge çizgisi (logodaki mavi→kırmızı kadran) ---------- */
.hazard-line {
  height: 3px;
  background: linear-gradient(90deg, var(--blue) 0 55%, var(--red) 55% 100%);
}

/* ---------- Duyuru barı ---------- */
.announce {
  background: var(--navy);
  color: #fff;
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  text-align: center;
  padding: 7px 16px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 66px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.35rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.logo-mark { width: 28px; height: 28px; flex: none; }
.logo-img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none; }

.site-nav { display: flex; gap: 26px; align-items: center; }

.site-nav a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--muted);
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}

.site-nav a:hover { color: var(--blue); border-bottom-color: var(--blue); }

/* Mobil menü — checkbox hilesi, JS yok */
.nav-toggle { display: none; }
.nav-burger { display: none; cursor: pointer; flex-direction: column; gap: 5px; padding: 8px; }
.nav-burger span { width: 24px; height: 2px; background: var(--text); transition: 0.2s; }

@media (max-width: 860px) {
  .nav-burger { display: flex; }
  .site-nav {
    position: absolute;
    inset: 100% 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .site-nav a { padding: 14px 20px; border-bottom: 1px solid var(--line); }
  .nav-toggle:checked ~ .site-nav { max-height: 60vh; overflow: auto; }
  .nav-toggle:checked ~ .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle:checked ~ .nav-burger span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked ~ .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: #fff;
  border-bottom: 1px solid var(--line);
  /* hafif nokta dokusu — flat, gradient hissi yok */
  background-image: radial-gradient(#e7edf3 1.2px, transparent 1.2px);
  background-size: 24px 24px;
}

/* Logodaki kadran halkaları: sol üstte mavi, sağ altta kırmızı */
.hero::before,
.hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hero::before {
  width: 620px;
  height: 620px;
  border: 56px solid rgba(47, 124, 196, 0.07);
  outline: 2px solid rgba(47, 124, 196, 0.14);
  outline-offset: -28px;
  top: -280px;
  left: -220px;
}

.hero::after {
  width: 520px;
  height: 520px;
  border: 48px solid rgba(224, 58, 52, 0.06);
  outline: 2px solid rgba(224, 58, 52, 0.12);
  outline-offset: -24px;
  bottom: -240px;
  right: -180px;
}

@media (max-width: 720px) {
  .hero::before { width: 380px; height: 380px; border-width: 36px; top: -180px; left: -160px; }
  .hero::after { width: 320px; height: 320px; border-width: 30px; bottom: -160px; right: -130px; }
}

.hero-inner {
  position: relative;
  padding: 80px 20px 88px;
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
}

.hero-kicker {
  display: inline-flex;
  background: var(--blue-tint);
  color: var(--blue-dark);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.74rem;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
  animation: rise 0.5s ease both;
}

.hero-title {
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  animation: rise 0.5s 0.08s ease both;
}

.hero-title em, .section-title em {
  font-style: normal;
  color: var(--blue);
}

.hero-sub {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 54ch;
  margin: 18px auto 32px;
  animation: rise 0.5s 0.16s ease both;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  animation: rise 0.5s 0.24s ease both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Butonlar (flat: gölge ve gradient yok) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 11px 20px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.btn-buy { background: var(--blue); color: #fff; }
.btn-buy:hover { background: var(--blue-dark); }

.btn-ghost { border-color: var(--line); color: var(--muted); background: #fff; }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }

.btn-lg { padding: 14px 28px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-disabled { background: var(--bg); color: var(--muted); cursor: not-allowed; border-color: var(--line); }

/* ---------- USP şeridi ---------- */
.usps { border-bottom: 1px solid var(--line); background: #fff; }

.usps-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 0;
}

.usp {
  display: flex;
  gap: 14px;
  padding: 22px 20px;
  border-left: 1px solid var(--line);
  align-items: flex-start;
}

.usp:first-child { border-left: none; }

.usp-num {
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--blue);
  line-height: 1.4;
}

.usp h2 { font-size: 1rem; font-weight: 700; }
.usp p { color: var(--muted); font-size: 0.92rem; }

@media (max-width: 720px) {
  .usp { border-left: none; border-top: 1px solid var(--line); }
  .usp:first-child { border-top: none; }
}

/* ---------- Bölümler ---------- */
.section { padding: 56px 20px; }
.page-top { padding-top: 32px; }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
}

.section-title {
  font-weight: 800;
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  letter-spacing: -0.015em;
}

.section-title-sm { font-size: 1.3rem; margin-bottom: 12px; }

.section-count {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.88rem;
  white-space: nowrap;
}

.empty { color: var(--muted); padding: 32px 0; }

/* ---------- Kategori chipleri ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }

.chip {
  font-weight: 600;
  font-size: 0.88rem;
  padding: 7px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  transition: 0.15s;
}

.chip small { color: var(--blue); font-size: 0.85em; font-weight: 700; }
.chip:hover { border-color: var(--blue); color: var(--text); }
.chip-active { background: var(--blue); border-color: var(--blue); color: #fff; }
.chip-active small { color: #cfe4f6; }

/* Chip daraltma — kapalıyken ilk 12 chip görünür (VISIBLE_CHIPS ile eşleşmeli) */
.chips-state { display: none; }
.chips-state:not(:checked) + .chips .chip:nth-child(n+13):not(.chip-more) { display: none; }
.chip-more { border-style: dashed; color: var(--blue); cursor: pointer; user-select: none; }
.chip-more:hover { border-color: var(--blue); }
.chip-more .less { display: none; }
.chips-state:checked + .chips .chip-more .more { display: none; }
.chips-state:checked + .chips .chip-more .less { display: inline; }

/* ---------- Sayfalama ---------- */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 36px;
}

.page-btn {
  min-width: 42px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.92rem;
  text-align: center;
  transition: border-color 0.15s, color 0.15s;
}

a.page-btn:hover { border-color: var(--blue); color: var(--blue); }
.page-current { background: var(--blue); border-color: var(--blue); color: #fff; }
.page-dots { color: var(--muted); padding: 0 2px; }

/* ---------- Konum / harita ---------- */
.map-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.map-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 18px;
}

.map-card h3 {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--blue);
  margin-bottom: 4px;
}

.map-card p { color: var(--text); font-size: 0.95rem; }
.map-card a:hover { color: var(--blue); }

.map-box {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #eef1f5;
}

.map-box iframe { display: block; width: 100%; height: 440px; border: 0; }

@media (max-width: 720px) { .map-box iframe { height: 320px; } }

/* ---------- Ürün kartları ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(235px, 1fr));
  gap: 18px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.18s;
  animation: rise 0.45s calc(var(--i, 0) * 0.04s) ease both;
}

.card:hover { border-color: var(--blue); }

.card-media {
  position: relative;
  aspect-ratio: 1;
  background: #eef1f5;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.card:hover .card-media img { transform: scale(1.04); }

.card-noimg {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  font-size: 4rem;
  font-weight: 800;
  color: #c3cad4;
}

.card-out .card-media { filter: grayscale(0.9); opacity: 0.75; }

.tag {
  position: absolute;
  top: 10px;
  left: 10px;
  font-weight: 700;
  font-size: 0.78rem;
  padding: 3px 9px;
  border-radius: 5px;
}

.tag-discount { background: var(--red); color: #fff; }
.tag-out { background: var(--navy); color: #fff; top: auto; bottom: 10px; }

.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }

.card-cat {
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.72rem;
  font-weight: 700;
}

.card-title { font-size: 0.95rem; font-weight: 600; line-height: 1.4; flex: 1; }

.card-title a { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-title a:hover { color: var(--blue); }

.card-actions { display: flex; gap: 8px; margin-top: 4px; }
.card-actions .btn { flex: 1; font-size: 0.86rem; padding: 8px 10px; }

/* ---------- Fiyat ---------- */
.price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }

.price-now { font-weight: 800; font-size: 1.2rem; color: var(--text); letter-spacing: -0.01em; }
.price-old { color: var(--muted); font-size: 0.9rem; }
.price-badge { background: var(--red); color: #fff; font-weight: 700; font-size: 0.75rem; padding: 2px 7px; border-radius: 5px; }
.price-big .price-now { font-size: 1.9rem; }
.price-big .price-old { font-size: 1.05rem; }

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 22px;
}

.breadcrumb a:hover { color: var(--blue); }

/* ---------- Ürün detay ---------- */
.product-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

@media (max-width: 860px) { .product-layout { grid-template-columns: 1fr; gap: 26px; } }

/* Galeri — radio hilesi, JS yok */
.gallery input { display: none; }

.gallery-main {
  position: relative;
  aspect-ratio: 1;
  background: #eef1f5;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}

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

#gal-1:checked ~ .gallery-main .g-1,
#gal-2:checked ~ .gallery-main .g-2,
#gal-3:checked ~ .gallery-main .g-3,
#gal-4:checked ~ .gallery-main .g-4,
#gal-5:checked ~ .gallery-main .g-5 { display: block; }

.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; }

.gallery-thumbs label {
  width: 72px;
  height: 72px;
  border-radius: 6px;
  overflow: hidden;
  border: 2px solid var(--line);
  cursor: pointer;
  transition: border-color 0.15s;
  background: #eef1f5;
}

.gallery-thumbs label:hover { border-color: var(--blue); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }

#gal-1:checked ~ .gallery-thumbs label[for='gal-1'],
#gal-2:checked ~ .gallery-thumbs label[for='gal-2'],
#gal-3:checked ~ .gallery-thumbs label[for='gal-3'],
#gal-4:checked ~ .gallery-thumbs label[for='gal-4'],
#gal-5:checked ~ .gallery-thumbs label[for='gal-5'] { border-color: var(--blue); }

.product-info { display: flex; flex-direction: column; gap: 16px; }

.product-title {
  font-weight: 800;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.product-meta {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--muted);
  font-size: 0.95rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  background: #fff;
}

.meta-ok { color: var(--green); font-weight: 600; }
.meta-out { color: var(--red); font-weight: 600; }

.secure-note { color: var(--muted); font-size: 0.82rem; line-height: 1.5; }

.product-desc { margin-top: 48px; max-width: 76ch; }
.product-desc p { color: #3d434d; margin-bottom: 12px; }

/* ---------- 404 ---------- */
.nf { text-align: center; padding: 90px 20px; }

.nf-code {
  font-weight: 800;
  font-size: clamp(4rem, 15vw, 8rem);
  line-height: 1;
  color: var(--blue);
}

.nf .hero-sub { margin-inline: auto; }

/* ---------- Footer (logo gibi koyu zemin) ---------- */
.site-footer { margin-top: 40px; background: var(--navy); color: #d6dae1; }

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding: 48px 20px 32px;
}

@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: #fff;
  margin-bottom: 10px;
}

.footer-desc { color: #9aa1ac; font-size: 0.92rem; max-width: 44ch; }

.footer-head {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #7db4e0;
  margin-bottom: 12px;
}

.footer-link { display: block; color: #9aa1ac; padding: 4px 0; font-size: 0.94rem; }
.footer-link:hover { color: #7db4e0; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 18px 20px;
  border-top: 1px solid #232833;
  color: #9aa1ac;
  font-size: 0.84rem;
}

.footer-bottom strong { color: #fff; }

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