/* ==========================================================================
   Otomarket (wcx2) — WCX1 üzerine DERİ (skin) katmanı
   - wcx1/style.css'ten SONRA yüklenir; tüm kurallar body.tema-wcx2 altında kapsamlıdır.
   - Markup, sepet/arama/ödeme JS'i ve görünüm düzenleyici WCX1 ile ORTAKTIR; burada yalnız görünüm var.
   - Vurgu rengi: --accent (mağaza ayarı; varsayılan #c8102e, TemaKatalog.VurguRengi).
   ========================================================================== */

body.tema-wcx2 {
  --ink: #15171c;
  --ink-soft: #5b616e;
  --line: #e3e5e9;
  --bg-soft: #f4f5f7;
  --bg-soft-2: #eceef1;
  --sale: var(--accent);
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 10px 28px rgba(21, 23, 28, .10);
  --shadow-soft: 0 4px 14px rgba(21, 23, 28, .07);
  --w2-koyu: #15171c;
  --w2-koyu-2: #23262e;
  --w2-acik-metin: #c9ccd3;
  --w2-baslik: "Barlow Condensed", "Arial Narrow", var(--font);
  /* Koyu zemin üstünde okunur, vurgunun açık tonu */
  --w2-vurgu-acik: color-mix(in srgb, var(--accent) 55%, #ffffff);
}

/* ---------- Başlık tipografisi (koyu, dar, büyük harf) ---------- */
body.tema-wcx2 h1,
body.tema-wcx2 h2,
body.tema-wcx2 .products-head h2,
body.tema-wcx2 .section-head h2,
body.tema-wcx2 .page-hero h1,
body.tema-wcx2 .bento .cell h3,
body.tema-wcx2 .banner h3,
body.tema-wcx2 .newsletter h2,
body.tema-wcx2 .spec-strip h2 {
  font-family: var(--w2-baslik);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .005em;
  line-height: 1.02;
}
body.tema-wcx2 .products-head h2,
body.tema-wcx2 .section-head h2 { font-size: 32px; }

/* ---------- Butonlar ---------- */
body.tema-wcx2 .btn {
  border-radius: var(--radius-sm);
  font-weight: 700;
  letter-spacing: 0;
  min-height: 48px;
  display: inline-flex; align-items: center; justify-content: center;
}
body.tema-wcx2 .btn-dark { background: var(--w2-koyu); }

/* ---------- Üst şerit (mağaza üst barı) ---------- */
body.tema-wcx2 .store-topbar { background: var(--w2-koyu); color: #e8e9ec; border-bottom: 0; }
body.tema-wcx2 .store-topbar a { color: #e8e9ec; }
body.tema-wcx2 .store-topbar a:hover { color: #ffffff; }
body.tema-wcx2 .topbar { background: var(--w2-koyu); color: #e8e9ec; border-bottom: 0; }

/* ---------- Header ---------- */
body.tema-wcx2 .site-header { border-bottom: 1px solid var(--line); }
body.tema-wcx2 .header-main { gap: 28px; }
body.tema-wcx2 .search {
  background: #ffffff;
  border: 2px solid var(--w2-koyu);
  border-radius: var(--radius-sm);
  padding: 0 0 0 16px;
  max-width: 600px;
  height: 48px;
  overflow: hidden;
}
body.tema-wcx2 .search input { font-size: 15px; height: 100%; }
body.tema-wcx2 .search button {
  width: 56px; height: 100%; border-radius: 0;
  background: var(--w2-koyu);
}
body.tema-wcx2 .search button:hover { background: var(--accent); }

/* Sepet bağlantısı: vurgu renkli dolu buton */
body.tema-wcx2 .header-actions .icon-link[href="/sepet"] {
  background: var(--accent); color: #ffffff;
  padding: 8px 14px; border-radius: var(--radius-sm); min-height: 44px;
}
body.tema-wcx2 .header-actions .icon-link[href="/sepet"]:hover { filter: brightness(.92); color: #ffffff; }
body.tema-wcx2 .header-actions .icon-link[href="/sepet"] small { color: rgba(255, 255, 255, .8); }
body.tema-wcx2 .header-actions .icon-link[href="/sepet"] .count {
  background: #ffffff; color: var(--accent); border-color: var(--accent);
}
body.tema-wcx2 .icon-link:hover { color: var(--accent); }

/* ---------- Menü çubuğu ---------- */
body.tema-wcx2 .nav-bar { border-top: 1px solid var(--line); }
body.tema-wcx2 .nav a { font-weight: 600; font-size: 15px; }
body.tema-wcx2 .nav a.active::after { height: 3px; }
body.tema-wcx2 .nav-takip { color: var(--ink); }
body.tema-wcx2 .nav-takip:hover { color: var(--accent); }

/* ---------- Sayfa yolu ---------- */
body.tema-wcx2 .crumbs { background: var(--bg-soft); }

/* ---------- Hero: koyu panel ---------- */
body.tema-wcx2 .hero { background: transparent; padding: 28px 0 0; overflow: visible; }
body.tema-wcx2 .hero-wave { display: none; }
body.tema-wcx2 .slide-inner {
  background: var(--w2-koyu); color: #ffffff;
  border-radius: var(--radius);
  padding: 48px 56px;
}
body.tema-wcx2 .slide-copy .kicker { color: var(--w2-vurgu-acik); font-weight: 700; letter-spacing: .18em; }
body.tema-wcx2 .slide-copy h1 {
  color: #ffffff; font-size: 64px; line-height: .95; margin: 14px 0 16px; letter-spacing: 0;
}
body.tema-wcx2 .slide-copy p { color: var(--w2-acik-metin); font-size: 18px; }
body.tema-wcx2 .slide-cta .btn { background: var(--accent); color: #ffffff; border: 0; }
body.tema-wcx2 .slide-cta .btn:hover { filter: brightness(.92); }
body.tema-wcx2 .slide-cta .btn-ghost { background: transparent; color: #ffffff; border: 2px solid #ffffff; }
body.tema-wcx2 .slide-cta .btn-ghost:hover { background: #ffffff; color: var(--w2-koyu); filter: none; }
body.tema-wcx2 .slide-art .glow { display: none; }
body.tema-wcx2 .slide-art .photo { filter: drop-shadow(0 24px 40px rgba(0, 0, 0, .45)); }
body.tema-wcx2 .hero-arrow { background: var(--w2-koyu-2); color: #ffffff; border-color: var(--w2-koyu-2); }
body.tema-wcx2 .slide-dots { padding: 14px 0 0; }
body.tema-wcx2 .slide-dots button { border-radius: 2px; height: 4px; width: 14px; background: #c9ccd3; }
body.tema-wcx2 .slide-dots button.on { width: 30px; border-radius: 2px; background: var(--accent); }

/* ---------- Güven şeridi (features) ---------- */
body.tema-wcx2 .features { padding: 24px 0 0; }
body.tema-wcx2 .features .grid {
  border: 1px solid var(--line); border-radius: var(--radius);
  max-width: none !important;
}
body.tema-wcx2 .feature { padding: 20px 22px; }
body.tema-wcx2 .feature .ic {
  width: 48px; height: 48px; border-radius: 50%; background: var(--bg-soft);
  display: grid; place-items: center; color: var(--accent);
}
body.tema-wcx2 .feature .ic svg { width: 24px; height: 24px; }
body.tema-wcx2 .feature h4 { font-size: 15px; text-transform: none; letter-spacing: 0; }
body.tema-wcx2 .feature p { font-size: 13px; }

/* ---------- Kategoriler: yuvarlak görsel + ad ---------- */
body.tema-wcx2 .cat-section { padding: 40px 0 8px; }
body.tema-wcx2 .cat-strip { gap: 18px; }
body.tema-wcx2 .cat-tile { text-align: center; }
body.tema-wcx2 .cat-tile .imgwrap { border-radius: 50%; background: var(--bg-soft); }
body.tema-wcx2 .cat-tile .img { aspect-ratio: 1 / 1; background-color: var(--bg-soft); }
body.tema-wcx2 .cat-tile .cap { padding: 12px 2px 4px; }
body.tema-wcx2 .cat-tile h4 {
  font-family: var(--font); font-size: 15px; font-weight: 600;
  text-transform: none; letter-spacing: 0;
}
body.tema-wcx2 .cat-tile .cnt { font-size: 12px; }

/* ---------- Sekmeler ---------- */
body.tema-wcx2 .products-head { border-bottom: 2px solid var(--line); }
body.tema-wcx2 .tabs button {
  text-transform: none; letter-spacing: 0; font-size: 15px; font-weight: 700;
  border-radius: 0; min-height: 44px;
}
body.tema-wcx2 .tabs button.on::after { height: 3px; bottom: -20px; }
body.tema-wcx2 .tabs.center button.on { border-radius: var(--radius-sm); }

/* ---------- Ürün kartı ---------- */
body.tema-wcx2 .product { border-radius: var(--radius); border-color: var(--line); }
body.tema-wcx2 .product:hover { transform: none; border-color: var(--w2-koyu); box-shadow: var(--shadow-soft); }
body.tema-wcx2 .p-media, body.tema-wcx2 .p-photo { background-color: var(--bg-soft); }
body.tema-wcx2 .p-badge { background: var(--accent); border-radius: 4px; font-size: 12px; padding: 4px 8px; }
body.tema-wcx2 .p-badge.new { background: var(--w2-koyu); }
body.tema-wcx2 .p-cat { color: var(--ink-soft); letter-spacing: .08em; }
body.tema-wcx2 .p-title { font-weight: 600; line-height: 1.35; }
body.tema-wcx2 .p-title a:hover { color: var(--accent); }
body.tema-wcx2 .p-price { font-size: 20px; }
body.tema-wcx2 .p-price .old { font-size: 14px; }
body.tema-wcx2 .add-cart {
  background: var(--w2-koyu); color: #ffffff; border: 0;
  border-radius: var(--radius-sm); min-height: 44px; padding: 0 16px; font-size: 14px; font-weight: 700;
}
body.tema-wcx2 .add-cart:hover { background: var(--accent); color: #ffffff; }
body.tema-wcx2 .p-actions button:hover { background: var(--w2-koyu); border-color: var(--w2-koyu); }

/* ---------- Bento / promo kutuları: düz zemin ---------- */
body.tema-wcx2 .bento .cell { border-radius: var(--radius); }
body.tema-wcx2 .bento .cell.g1,
body.tema-wcx2 .bento .cell.g2,
body.tema-wcx2 .bento .cell.g3 { background: var(--bg-soft); border-color: transparent; }
body.tema-wcx2 .bento .cell.dark { background: var(--w2-koyu); }
body.tema-wcx2 .bento .cell small { color: var(--accent); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
body.tema-wcx2 .bento .cell.dark small { color: var(--w2-vurgu-acik); }
body.tema-wcx2 .bento .cell h3 { font-size: 30px; }
body.tema-wcx2 .bento .cell .more {
  color: var(--ink); border-bottom: 2px solid currentColor; padding-bottom: 2px;
  align-self: flex-start; text-transform: none; letter-spacing: 0; font-size: 14px;
}
body.tema-wcx2 .bento .cell.dark .more { color: #ffffff; }

body.tema-wcx2 .banner.b1 { background: var(--w2-koyu); }
body.tema-wcx2 .banner.b2 { background: var(--accent); }
body.tema-wcx2 .banner.b3 { background: var(--w2-koyu-2); }

/* ---------- Koyu bloklar ---------- */
body.tema-wcx2 .spec-strip { background: var(--w2-koyu); border-radius: var(--radius); }
body.tema-wcx2 .spec-list .ic { color: var(--w2-vurgu-acik); }
body.tema-wcx2 .newsletter { background: var(--w2-koyu); border-radius: var(--radius); }
body.tema-wcx2 .nl-form input { border-radius: var(--radius-sm); min-height: 48px; }
body.tema-wcx2 .nl-form .btn, body.tema-wcx2 .nl-form button { border-radius: var(--radius-sm); background: var(--accent); color: #fff; }

/* ---------- Liste sayfası ---------- */
body.tema-wcx2 .page-hero { background: var(--bg-soft); }
body.tema-wcx2 .shop-toolbar select,
body.tema-wcx2 .sidebar input[type="text"],
body.tema-wcx2 .sidebar input[type="number"] { border-radius: var(--radius-sm); min-height: 44px; }
body.tema-wcx2 .filter h4, body.tema-wcx2 .sidebar h4 { text-transform: uppercase; letter-spacing: .06em; font-size: 15px; }
body.tema-wcx2 .chip, body.tema-wcx2 .chips a { border-radius: 20px; }
body.tema-wcx2 .pagination a,
body.tema-wcx2 .pagination span { border-radius: var(--radius-sm); min-width: 44px; min-height: 44px; }
body.tema-wcx2 .pagination .on,
body.tema-wcx2 .pagination .active { background: var(--w2-koyu); border-color: var(--w2-koyu); color: #fff; }

/* ---------- Ürün detayı ---------- */
body.tema-wcx2 .pd-info h1 { font-family: var(--font); text-transform: none; font-weight: 700; font-size: 32px; line-height: 1.2; }
body.tema-wcx2 .pd-price { font-size: 40px; font-weight: 700; color: var(--ink); }
body.tema-wcx2 .pd-gallery .main { border-radius: var(--radius); background: var(--bg-soft); }
body.tema-wcx2 .pd-thumbs > * { border-radius: 8px; }
body.tema-wcx2 .qty { border-radius: var(--radius-sm); min-height: 52px; }
body.tema-wcx2 .pd-buy .btn, body.tema-wcx2 .pd-buy .add-cart { min-height: 52px; border-radius: var(--radius-sm); }
body.tema-wcx2 .pd-buy .btn:not(.btn-ghost):not(.btn-dark) { background: var(--accent); color: #fff; }
body.tema-wcx2 .pd-tabnav button,
body.tema-wcx2 .pd-tabnav a { font-weight: 700; text-transform: none; letter-spacing: 0; min-height: 48px; }
body.tema-wcx2 .pd-vary-opt { border-radius: var(--radius-sm); min-height: 44px; }

/* ---------- Sepet / ödeme ---------- */
body.tema-wcx2 .cart-summary, body.tema-wcx2 .form-card, body.tema-wcx2 .auth-card { border-radius: var(--radius); }
body.tema-wcx2 .field input, body.tema-wcx2 .field select, body.tema-wcx2 .field textarea { border-radius: var(--radius-sm); }

/* ---------- Footer ---------- */
body.tema-wcx2 .site-footer { background: var(--w2-koyu); color: var(--w2-acik-metin); border-top: 0; }
body.tema-wcx2 .footer-col h4 { color: #ffffff; font-size: 15px; letter-spacing: .02em; text-transform: none; }
body.tema-wcx2 .footer-col a { color: var(--w2-acik-metin); }
body.tema-wcx2 .footer-col a:hover { color: #ffffff; }
body.tema-wcx2 .socials a { background: var(--w2-koyu-2); }
body.tema-wcx2 .socials a:hover { background: var(--accent); }

/* ---------- Mobil alt gezinme (_Wcx2AltNav) ---------- */
body.tema-wcx2 .w2-altnav { display: none; }

@media (max-width: 768px) {
  body.tema-wcx2 { padding-bottom: calc(66px + env(safe-area-inset-bottom, 0px)); }
  body.tema-wcx2 .w2-altnav {
    display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 300;
    background: #ffffff; border-top: 1px solid var(--line);
    box-shadow: 0 -6px 20px rgba(21, 23, 28, .06);
    padding: 4px 4px calc(6px + env(safe-area-inset-bottom, 0px));
  }
  body.tema-wcx2 .w2-altnav a {
    min-height: 56px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    font-size: 11px; font-weight: 600; color: var(--ink-soft); text-decoration: none;
    -webkit-tap-highlight-color: transparent; transition: color .15s, transform .1s;
  }
  body.tema-wcx2 .w2-altnav a:active { transform: scale(.94); }
  body.tema-wcx2 .w2-altnav a.on { color: var(--accent); }
  body.tema-wcx2 .w2-altnav-ic { position: relative; display: inline-flex; }
  body.tema-wcx2 .w2-altnav-sayac {
    position: absolute; top: -6px; right: -10px; min-width: 18px; height: 18px; padding: 0 4px; box-sizing: border-box;
    border-radius: 9px; background: var(--accent); color: #ffffff; font-size: 10px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
  }
  /* Çerez bandı alt gezinmenin ÜSTÜNDE dursun */
  body.tema-wcx2 .wcx-cerez { bottom: calc(66px + env(safe-area-inset-bottom, 0px)); }

  /* Header sadeleşir: sepet zaten alt barda */
  body.tema-wcx2 .header-actions .icon-link[href="/sepet"] { background: transparent; color: var(--ink); padding: 0; min-height: 0; }
  body.tema-wcx2 .header-actions .icon-link[href="/sepet"] .count { background: var(--accent); color: #fff; border-color: #fff; }
  body.tema-wcx2 .search { height: 46px; }

  /* Hero mobil */
  body.tema-wcx2 .hero { padding: 14px 0 0; }
  body.tema-wcx2 .hero .container.slide-inner { margin: 0 14px; width: auto; border-radius: 12px; }
  body.tema-wcx2 .hero .slide-copy h1 { font-size: 38px !important; }
  body.tema-wcx2 .products-head h2, body.tema-wcx2 .section-head h2 { font-size: 26px; }

  /* Yığın kartlar: dokunma dostu */
  body.tema-wcx2 .p-body { padding: 10px 10px 12px; }
  body.tema-wcx2 .p-title { font-size: 14px; }
  body.tema-wcx2 .p-price { font-size: 17px; }
  body.tema-wcx2 .p-foot { flex-direction: column; align-items: stretch; gap: 8px; }
  body.tema-wcx2 .p-foot .add-cart { width: 100%; }
  body.tema-wcx2 .feature { padding: 14px 12px; }
}

@media (prefers-reduced-motion: reduce) {
  body.tema-wcx2 .w2-altnav a { transition: none; }
}
