/* =========================================================
   Haydar Game Zone — design tokens
   ========================================================= */
:root {
  --charcoal:      #363F46;
  --charcoal-deep: #262D33;
  --charcoal-soft: #4A555F;
  --orange:        #FFA300;
  --orange-deep:   #D98A00;
  --paper:         #F6F4EF;
  --paper-deep:    #ECE8E0;
  --ink:           #21262B;
  --ink-soft:      #565F66;
  --mist:          #9BA6AE;
  --white:         #FFFFFF;

  --font-display: 'Archivo', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;

  --wrap: 1180px;
  --radius: 6px;
  --border-dark: 1px solid rgba(255,255,255,0.14);
  --border-light: 1px solid rgba(33,38,43,0.12);
}

/* =========================================================
   Reset & base
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

/* =========================================================
   Site-wide animation toggle (admin: Tasarım → Renkler, Logo & Menü)
   Section headings fade/slide in on scroll; buttons get a subtle hover
   lift. Turning it off in the panel adds .animations-off to <html>, which
   forces everything below to its resting state immediately.
   ========================================================= */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 650ms ease, transform 650ms ease; }
.reveal.is-visible { opacity: 1; transform: none; }
html.animations-off .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
html.animations-off .btn { transition: none !important; }
html.animations-off .btn:hover { transform: none !important; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.08;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 5vw, 4.1rem); font-weight: 900; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: 0; }

p { margin: 0 0 1em; color: inherit; }

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

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 96px 0; text-align: center; }
.section h2 { max-width: 32ch; margin-left: auto; margin-right: auto; }
.section-lede { max-width: 56ch; margin-left: auto; margin-right: auto; color: var(--ink-soft); font-size: 1.05rem; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--orange);
  color: var(--charcoal-deep);
  padding: 12px 18px;
  font-weight: 700;
  z-index: 200;
}
.skip-link:focus { left: 12px; top: 12px; }

#page-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--orange), var(--orange-deep));
  box-shadow: 0 0 8px rgba(255,163,0,0.6);
  z-index: 999;
  transition: width 300ms ease, opacity 300ms ease;
}
@media (prefers-reduced-motion: reduce) {
  #page-progress-bar { transition: none; }
}

.scroll-top-btn {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--charcoal-deep);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 22px rgba(0,0,0,0.22);
  transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease, visibility 160ms ease;
  z-index: 90;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
}
.scroll-top-btn.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.scroll-top-btn:hover { transform: scale(1.08); box-shadow: 0 10px 26px rgba(0,0,0,0.28); }
.scroll-top-btn svg { width: 24px; height: 24px; }
@media (max-width: 640px) {
  .scroll-top-btn { right: 16px; bottom: 16px; width: 48px; height: 48px; }
  .scroll-top-btn svg { width: 22px; height: 22px; }
}

.announcement-bar { background: var(--orange); color: var(--charcoal-deep); }
.announcement-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 10px 24px;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
}
.announcement-row a#announcement-link { text-decoration: underline; font-weight: 700; }

:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 12px 22px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 14px rgba(33,38,43,0.14); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn-lg { padding: 15px 28px; font-size: 1.02rem; }

.btn-solid {
  background: var(--orange);
  color: var(--charcoal-deep);
}
.btn-solid:hover { background: var(--orange-deep); }

.btn-outline {
  background: transparent;
  border-color: currentColor;
}
.btn-outline:hover { background: rgba(255,163,0,0.12); border-color: var(--orange); color: var(--orange); }

.btn-ghost {
  background: transparent;
  padding: 12px 10px;
}
.btn-ghost:hover { color: var(--orange); }

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(38,45,51,0.94);
  backdrop-filter: blur(8px);
  border-bottom: var(--border-dark);
}
.header-row {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 76px;
  color: var(--white);
}
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand-mark { height: var(--logo-size, 44px); width: auto; max-width: 220px; border-radius: 4px; object-fit: contain; }

.main-nav { flex: 1; }
.main-nav ul {
  display: flex;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-nav a {
  position: relative;
  display: inline-block;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--mist);
  padding: 4px 0;
  transition: color 150ms ease;
}
.main-nav a:hover { color: var(--white); }
.main-nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  border-radius: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 160ms ease;
}
.main-nav a:hover::after { transform: scaleX(1); }
/* Sitedeki menüde bulunduğunuz sayfayı/bölümü belirginleştirir — hangi
   sayfaya (alt sayfalarda) veya bölüme (ana sayfada, kaydırırken)
   baktığınız artık menüden de anlaşılıyor. site-overrides.js ekler. */
.main-nav a.active { color: var(--orange); }
.main-nav a.active::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 6px; color: var(--white); }

.header-icon-btn {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: none; background: none; cursor: pointer;
  color: var(--mist);
  transition: color 150ms ease, background 150ms ease;
}
.header-icon-btn:hover { color: var(--white); background: rgba(255,255,255,0.08); }
.header-icon-btn svg { width: 19px; height: 19px; }
.header-fav-badge {
  position: absolute; top: 2px; right: 2px;
  min-width: 16px; height: 16px; padding: 0 3px;
  border-radius: 999px;
  background: var(--orange); color: var(--charcoal-deep);
  font-size: 0.64rem; font-weight: 800; line-height: 16px; text-align: center;
}
.header-search-wrap { position: relative; }
.header-search-panel {
  position: absolute; top: calc(100% + 10px); right: 0;
  width: 320px; max-width: calc(100vw - 32px);
  background: var(--white); color: var(--ink);
  border-radius: var(--radius-md); border: var(--border-light);
  box-shadow: 0 18px 40px rgba(0,0,0,0.22);
  padding: 12px;
  z-index: 200;
}
.header-search-panel input {
  width: 100%; padding: 10px 12px; border: var(--border-light); border-radius: var(--radius-md);
  font-family: var(--font-body); font-size: 0.92rem; outline: none;
}
.header-search-panel input:focus { border-color: var(--orange); }
.header-search-results { margin-top: 8px; max-height: 320px; overflow-y: auto; }
.header-search-result {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 6px; border-radius: 8px; text-decoration: none; color: inherit;
}
.header-search-result:hover { background: var(--paper-deep); }
.header-search-result-tag {
  flex-shrink: 0; font-size: 0.66rem; font-weight: 800; text-transform: uppercase;
  padding: 3px 7px; border-radius: 999px; background: rgba(255,163,0,0.14); color: var(--orange-deep);
}
.header-search-result-title { font-size: 0.88rem; font-weight: 600; }
.header-search-empty { padding: 10px 6px; font-size: 0.85rem; color: var(--ink-soft); }

.header-cart-wrap { position: relative; }
.header-cart-panel { width: 340px; max-height: 70vh; overflow-y: auto; }
.header-cart-empty { padding: 10px 6px; font-size: 0.85rem; color: var(--ink-soft); }
.header-cart-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: var(--border-light); }
.header-cart-row:last-of-type { border-bottom: none; }
.header-cart-thumb {
  flex-shrink: 0; width: 46px; height: 46px; border-radius: 8px;
  background-size: cover; background-position: center; background-color: var(--paper-deep);
}
.header-cart-thumb.placeholder { background-image: repeating-linear-gradient(135deg, rgba(33,38,43,0.06) 0px, rgba(33,38,43,0.06) 8px, transparent 8px, transparent 16px); }
.header-cart-info { flex: 1; min-width: 0; }
.header-cart-title { font-size: 0.86rem; font-weight: 600; }
.header-cart-price { font-size: 0.8rem; color: var(--ink-soft); }
.header-cart-qty { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.header-cart-qty button {
  width: 22px; height: 22px; border-radius: 6px; border: var(--border-light); background: var(--white);
  cursor: pointer; font-size: 0.9rem; line-height: 1; color: var(--ink);
}
.header-cart-qty span { font-size: 0.84rem; font-weight: 600; min-width: 14px; text-align: center; }
.header-cart-remove {
  flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%; border: none; background: none;
  cursor: pointer; color: var(--ink-soft); font-size: 1rem;
}
.header-cart-remove:hover { color: var(--danger); }
.header-cart-total { margin-top: 10px; padding-top: 10px; border-top: var(--border-light); font-size: 0.92rem; text-align: right; }

/* Sepetim sayfası (sepet.html) — aynı satır/adet/kaldır mantığını header
   mini-sepetiyle paylaşır (header-extras.js renderCartInto), sadece daha
   ferah ölçülerle. */
.cart-page-wrap { max-width: 640px; text-align: left; }
.cart-page-wrap h1, .cart-page-wrap .section-lede { text-align: center; }
.cart-page-body { margin-top: 28px; text-align: left; }
.cart-page-body .header-cart-row { padding: 16px 0; gap: 16px; }
.cart-page-body .header-cart-thumb { width: 68px; height: 68px; border-radius: 10px; }
.cart-page-body .header-cart-title { font-size: 0.98rem; }
.cart-page-body .header-cart-price { font-size: 0.88rem; }
.cart-page-body .header-cart-total { font-size: 1.15rem; padding-top: 16px; margin-top: 16px; }
.cart-page-body .header-cart-empty { padding: 40px 0; text-align: center; font-size: 0.95rem; }
.cart-page-body .header-cart-empty a { color: var(--orange-deep); font-weight: 700; }

/* Sık Sorulan Sorular (sss.html) */
.faq-wrap { max-width: 720px; text-align: left; }
.faq-wrap h1, .faq-wrap .section-lede { text-align: center; }
.faq-list { margin-top: 28px; display: flex; flex-direction: column; gap: 12px; list-style: none; padding: 0; }
.faq-item { border: var(--border-light); border-radius: var(--radius); background: var(--white); overflow: hidden; transition: border-color 160ms ease; }
.faq-item.open { border-color: var(--orange); }
.faq-question {
  all: unset; box-sizing: border-box; width: 100%;
  cursor: pointer; padding: 16px 20px; font-weight: 700; font-size: 1rem; font-family: var(--font-body); color: inherit;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.faq-question::after { content: '+'; font-size: 1.3rem; color: var(--orange-deep); flex-shrink: 0; transition: transform 220ms ease; }
.faq-item.open .faq-question::after { transform: rotate(45deg); }
/* Yükseklik JS ile ölçülmeden, grid satırının 0fr↔1fr geçişiyle yumuşakça
   açılıp kapanıyor — içerik uzunluğundan bağımsız çalışır. */
.faq-answer-wrap { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 260ms ease; }
.faq-item.open .faq-answer-wrap { grid-template-rows: 1fr; }
/* .faq-answer-inner (padding'siz, overflow:hidden) grid'in gerçek öğesi —
   iç dolgu bir alt katmana taşındı, yoksa dolgu payı 0fr'nin tam 0'a
   inmesini engelliyordu (kutu, dolgusu kadar asla küçülemiyordu). */
.faq-answer-inner { overflow: hidden; min-height: 0; }
.faq-item-answer { padding: 0 20px 18px; color: var(--ink-soft); font-size: 0.95rem; line-height: 1.6; }

.product-card-fav {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.9); border: none; cursor: pointer;
  color: var(--ink-soft);
}
.product-card-fav svg { width: 17px; height: 17px; }
.product-card-fav.active { color: var(--orange-deep); }
.product-card-fav.active svg { fill: currentColor; }
.product-detail-fav {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 50%;
  border: var(--border-light); background: var(--white); cursor: pointer;
  color: var(--ink-soft); flex-shrink: 0;
}
.product-detail-fav svg { width: 20px; height: 20px; }
.product-detail-fav.active { color: var(--orange-deep); border-color: var(--orange); }
.product-detail-fav.active svg { fill: currentColor; }

.header-status {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 6px;
  color: var(--mist);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 150ms ease;
}
.header-status:hover { color: var(--white); }
.header-status.is-closed #header-status-text { color: #FF6B6B; }
.header-status.is-closed .dot {
  background: #FF6B6B;
  box-shadow: 0 0 0 4px rgba(255,107,107,0.18);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--white);
  border-radius: 1px;
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
  background:
    radial-gradient(ellipse 700px 420px at 82% 8%, rgba(255,163,0,0.16), transparent 60%),
    repeating-linear-gradient(180deg, rgba(255,255,255,0.025) 0px, rgba(255,255,255,0.025) 1px, transparent 1px, transparent 44px),
    var(--charcoal);
  color: var(--white);
  padding: 100px 0 88px;
}
.hero-row {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 56px;
  align-items: center;
  text-align: center;
}
.hero-copy p.hero-lede {
  font-size: 1.15rem;
  color: var(--mist);
  max-width: 46ch;
  margin-left: auto;
  margin-right: auto;
}
.hero-actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-top: 8px; }
.hero-actions .btn-outline { color: var(--white); }

.dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #3ECF6E;
  box-shadow: 0 0 0 4px rgba(62,207,110,0.18);
  flex-shrink: 0;
}

.hero-image-box {
  position: relative;
  width: 100%;
  aspect-ratio: var(--hero-img-ratio, 1.14);
  border-radius: var(--radius);
  border: var(--border-dark);
  overflow: hidden;
  background: rgba(255,255,255,0.05);
}
.hero-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-image-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  color: var(--mist);
  font-size: 0.9rem;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.04) 0px, rgba(255,255,255,0.04) 10px, transparent 10px, transparent 20px);
}

/* =========================================================
   About
   ========================================================= */
.about-row {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 64px;
  align-items: start;
  text-align: center;
}
.about-copy p { color: var(--ink-soft); font-size: 1.03rem; max-width: 58ch; margin-left: auto; margin-right: auto; }

.about-facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.about-facts li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 18px 12px;
  border: var(--border-light);
  border-radius: var(--radius);
}
.fact-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--charcoal);
}
.fact-label { color: var(--ink-soft); font-size: 0.95rem; text-align: center; }

/* =========================================================
   Services / card grid
   ========================================================= */
.services { background: var(--paper-deep); }
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 40px;
}
.service-card {
  background: var(--white);
  padding: 30px 28px;
  border-radius: var(--radius);
  border: var(--border-light);
  border-top: 4px solid var(--orange);
  box-shadow: 0 4px 16px rgba(33,38,43,0.05);
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 28px rgba(33,38,43,0.1);
  border-top-color: var(--charcoal);
}
.service-card h3 { color: var(--charcoal); margin: 0 0 10px; }
.service-card p { color: var(--ink-soft); margin: 0; font-size: 0.96rem; }

/* =========================================================
   Pricing
   ========================================================= */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 44px;
}
.pricing-grid-2 { grid-template-columns: repeat(2, 1fr); max-width: 640px; margin-left: auto; margin-right: auto; }
.price-card {
  border: var(--border-light);
  border-radius: var(--radius);
  padding: 28px 24px;
  background: var(--paper);
}
.price-card-featured {
  background: var(--charcoal);
  color: var(--white);
  border-color: var(--charcoal);
}
.price-card-featured h3 { color: var(--white); }
.price-amount {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 2rem;
  margin: 0 0 18px;
}
.price-amount span { font-family: var(--font-body); font-weight: 500; font-size: 0.9rem; opacity: 0.7; }
.price-card ul { list-style: none; margin: 0; padding: 0; font-size: 0.92rem; }
.price-card-featured ul { color: var(--mist); }
.price-card ul li { margin-bottom: 6px; }
.pricing-note { margin-top: 28px; font-size: 0.85rem; color: var(--ink-soft); }

/* =========================================================
   Games
   ========================================================= */
.games { background: var(--paper-deep); }
.game-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 40px 0 0;
  padding: 0;
}
.game-tags li {
  border: var(--border-light);
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 0.92rem;
  font-weight: 500;
  background: var(--paper);
  transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease;
}
.game-tags li:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--charcoal-deep);
}

/* =========================================================
   Brands
   ========================================================= */
.brands { background: var(--charcoal-deep); color: var(--white); }
.brands .section-lede { color: var(--mist); }
.brand-grid {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 44px 0 0;
  padding: 0;
}
.brand-grid li {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 1 calc(25% - 9px);
  height: 96px;
  border: var(--border-dark);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.03);
}
.brand-grid img {
  max-width: 64%;
  max-height: 44px;
  opacity: 0.72;
  transition: opacity 160ms ease;
}
.brand-grid li:hover img { opacity: 1; }

/* =========================================================
   Blog
   ========================================================= */
.blog-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 40px 0 0;
  padding: 0;
  text-align: left;
}
.blog-card {
  background: var(--paper-deep);
  border: var(--border-light);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.blog-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(33,38,43,0.12); }
.blog-card-inner { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.blog-card-cover {
  aspect-ratio: 16 / 9;
  background-size: cover;
  background-position: center;
  background-color: var(--paper-deep);
}
.blog-card-cover.placeholder {
  background-image: repeating-linear-gradient(135deg, rgba(33,38,43,0.06) 0px, rgba(33,38,43,0.06) 10px, transparent 10px, transparent 20px);
}
.blog-card-body { padding: 20px; }
.blog-card-date { font-size: 0.78rem; color: var(--ink-soft); font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; }
.blog-card-body h3 { margin: 8px 0; font-size: 1.1rem; }
.blog-card-body p { color: var(--ink-soft); font-size: 0.92rem; margin: 0 0 12px; }
.blog-card-link { color: var(--orange-deep); font-weight: 700; font-size: 0.86rem; }
.blog-more { text-align: center; margin-top: 32px; }

.blog-archive-head { padding-bottom: 40px; }
.blog-archive-back { margin: 0 0 18px; }
.blog-archive-back a { color: var(--ink-soft); font-weight: 600; font-size: 0.9rem; }
.blog-archive-back a:hover { color: var(--orange-deep); }
.blog-search {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 420px;
  margin: 28px auto 0;
  padding: 12px 18px;
  border: var(--border-light);
  border-radius: 999px;
  background: var(--white);
}
.blog-search svg { flex-shrink: 0; color: var(--ink-soft); width: 18px; height: 18px; }
.blog-search input { border: none; outline: none; background: none; font-family: var(--font-body); font-size: 0.95rem; width: 100%; color: var(--ink); }
.blog-search-count { margin: 12px 0 0; font-size: 0.82rem; color: var(--ink-soft); }
.blog-archive { padding-top: 0; }
.blog-archive .blog-grid { margin-top: 0; }
.blog-archive-empty { text-align: center; color: var(--ink-soft); padding: 40px 0; }

.post-page-wrap { max-width: 760px; text-align: left; }
.post-cover {
  aspect-ratio: 16 / 9;
  background-size: cover;
  background-position: center;
  background-color: var(--paper-deep);
  border-radius: var(--radius);
  margin-bottom: 24px;
}
.post-date { display: block; font-size: 0.8rem; color: var(--ink-soft); font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; }
#post-title { margin: 8px 0 28px; }
.about-page-image { display: block; width: 100%; max-height: 420px; object-fit: cover; border-radius: var(--radius); margin: 4px 0 28px; }
.post-content p { color: var(--ink-soft); line-height: 1.75; font-size: 1.02rem; margin: 0 0 1.1em; }
.post-content img { max-width: 100%; border-radius: var(--radius); margin: 0.6em 0; }
.post-content h2, .post-content h3 { margin: 1.2em 0 0.5em; }
.post-content blockquote { border-left: 3px solid var(--orange); margin: 1em 0; padding: 4px 0 4px 18px; color: var(--ink-soft); }
#post-not-found { text-align: center; padding: 40px 0; }

/* Alt yazılı resim / yan yana resim blokları — hem yazı sayfasında (.post-content)
   hem admin editöründe (.editor-surface) aynı görünüm için ortak kurallar. */
.post-content .post-figure, .editor-surface .post-figure { margin: 1.2em 0; }
.post-content .post-figure img, .editor-surface .post-figure img { display: block; width: 100%; margin: 0; border-radius: var(--radius); }
.post-content .post-figure figcaption, .editor-surface .post-figure figcaption { margin-top: 8px; font-size: 0.85rem; color: var(--ink-soft); text-align: center; }
.post-content .post-img-row, .editor-surface .post-img-row { display: flex; gap: 16px; margin: 1.2em 0; }
.post-content .post-img-row .post-figure, .editor-surface .post-img-row .post-figure { flex: 1 1 0; margin: 0; min-width: 0; }
@media (max-width: 640px) {
  .post-content .post-img-row, .editor-surface .post-img-row { flex-direction: column; }
}

/* =========================================================
   Ürünler (mağaza)
   ========================================================= */
.product-filters { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.product-filters .blog-search { margin: 0; }
.product-fav-toggle {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.88rem; color: var(--ink-soft); cursor: pointer;
}
.product-condition-select {
  padding: 12px 16px;
  border: var(--border-light);
  border-radius: 999px;
  background: var(--white);
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--ink);
}
.product-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 40px 0 0;
  padding: 0;
  text-align: left;
}
.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--paper-deep);
  border: var(--border-light);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.product-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(33,38,43,0.12); }
/* "Sepete Ekle" ürün fiyatlıysa .product-card-inner'ın altına ayrı bir
   kardeş eleman olarak ekleniyor — .product-card artık flex-column olduğu
   için inner'ın eski height:100% kuralı onu tüm karta yayıp butonu
   overflow:hidden ile kırpardı; flex:1 ile sadece kalan alanı kaplıyor. */
.product-card-inner { display: flex; flex-direction: column; flex: 1; color: inherit; text-decoration: none; }
.product-card-cover {
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
  background-color: var(--paper-deep);
}
.product-card-cover.placeholder {
  background-image: repeating-linear-gradient(135deg, rgba(33,38,43,0.06) 0px, rgba(33,38,43,0.06) 10px, transparent 10px, transparent 20px);
}
.product-card-body { padding: 20px; }
.product-card-condition {
  display: inline-block;
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em;
  color: var(--orange-deep); background: rgba(255,163,0,0.12);
  border-radius: 999px; padding: 4px 10px;
}
.product-card-body h3 { margin: 10px 0 6px; font-size: 1.1rem; }
.product-card-price { font-weight: 700; font-size: 1rem; }
.product-card-addcart {
  display: block; width: calc(100% - 40px); margin: 0 20px 18px; padding: 9px 0;
  border-radius: var(--radius-md); border: var(--border-light); background: var(--white);
  font-family: var(--font-body); font-weight: 700; font-size: 0.84rem; cursor: pointer;
  transition: background 150ms ease, color 150ms ease;
}
.product-card-addcart:hover { background: var(--charcoal-deep); color: var(--white); }

@media (max-width: 900px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .product-grid { grid-template-columns: 1fr; } }

.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 760px) { .product-detail { grid-template-columns: 1fr; } }
.product-main-image {
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
  background-color: var(--paper-deep);
  border-radius: var(--radius);
}
.product-main-image.placeholder {
  background-image: repeating-linear-gradient(135deg, rgba(33,38,43,0.06) 0px, rgba(33,38,43,0.06) 10px, transparent 10px, transparent 20px);
}
.product-thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.product-thumb {
  width: 56px; height: 56px; border-radius: 8px; border: var(--border-light);
  background-size: cover; background-position: center; background-color: var(--paper-deep);
  cursor: pointer; padding: 0;
}
.product-thumb.active { border-color: var(--orange-deep); border-width: 2px; }
.product-title-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.product-info #product-title { margin: 10px 0 14px; }
.product-price { font-size: 1.7rem; font-weight: 800; font-family: var(--font-display); margin: 6px 0 18px; }
.product-price-ask { font-size: 1.15rem; color: var(--ink-soft); }
.product-buy-row { display: flex; gap: 12px; flex-wrap: wrap; margin: 22px 0 14px; }
.product-buy-btn { flex-shrink: 0; }
.product-sold-note { font-weight: 700; color: var(--danger); margin-bottom: 14px; }
.product-pay-options { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 10px; }
.product-pay-option {
  background: var(--paper-deep); border: var(--border-light); border-radius: var(--radius-md);
  padding: 14px 18px; min-width: 240px;
}
.product-pay-option h4 { margin: 0 0 4px; font-size: 0.9rem; }
.product-iban-value { font-family: monospace; font-size: 1rem; font-weight: 700; letter-spacing: 0.02em; }
.product-checkout-form {
  margin-top: 18px; padding: 20px; background: var(--white); border: var(--border-light); border-radius: var(--radius-md);
  max-width: 420px;
}
.product-checkout-form h4 { margin: 0 0 14px; }
.product-checkout-form .form-field { margin-bottom: 12px; display: flex; flex-direction: column; gap: 6px; }
.product-checkout-form label { font-size: 0.84rem; font-weight: 700; }
.product-checkout-form input {
  width: 100%; padding: 10px 12px; border: var(--border-light); border-radius: var(--radius-md);
  font-family: var(--font-body); font-size: 0.92rem;
}

/* =========================================================
   Contact form
   ========================================================= */
.contact-form { margin-top: 28px; }
.contact-form .form-row { display: flex; gap: 18px; margin-bottom: 18px; }
.contact-form .form-field { flex: 1; margin-bottom: 18px; display: flex; flex-direction: column; gap: 6px; }
.contact-form .form-row .form-field { margin-bottom: 0; }
.contact-form label { font-size: 0.86rem; font-weight: 700; color: var(--ink); }
.contact-form input,
.contact-form textarea {
  font-family: var(--font-body);
  font-size: 0.96rem;
  padding: 12px 14px;
  border: var(--border-light);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  resize: vertical;
}
.contact-form input:focus,
.contact-form textarea:focus { outline: 2px solid var(--orange); outline-offset: 1px; }
.contact-status { margin-top: 14px; font-size: 0.9rem; color: var(--ink-soft); }
.contact-status.is-error { color: #C0392B; }
@media (max-width: 640px) {
  .contact-form .form-row { flex-direction: column; gap: 0; }
}

/* =========================================================
   Testimonials
   ========================================================= */
.testimonials { background: var(--charcoal); color: var(--white); }
.testimonials .section-lede { color: var(--mist); }

.testimonial {
  margin: 0;
  padding: 26px 24px;
  border-top: 3px solid var(--orange);
  background: rgba(255,255,255,0.04);
}
.testimonial p { color: var(--white); font-size: 1rem; margin-bottom: 16px; }
.testimonial footer { color: var(--mist); font-size: 0.88rem; font-weight: 500; }
.testimonial-pending { border-top-color: var(--charcoal-soft); background: rgba(255,255,255,0.02); }
.testimonial-pending p { color: var(--mist); }
.google-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--white);
  margin-top: 14px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.google-badge svg { width: 16px; height: 16px; }

.testimonial-carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 40px;
}
.testimonial-track {
  flex: 1;
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  list-style: none;
  margin: 0;
  padding: 0;
  border-radius: var(--radius);
}
.testimonial-track::-webkit-scrollbar { display: none; }
.testimonial-page {
  flex: 0 0 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  scroll-snap-align: start;
}
.testimonial-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
}
.testimonial-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: none;
  background: rgba(255,255,255,0.28);
  cursor: pointer;
  padding: 0;
  transition: background-color 160ms ease, width 160ms ease;
}
.testimonial-dot:hover { background: rgba(255,255,255,0.5); }
.testimonial-dot.active { width: 22px; background: var(--orange); }
.carousel-btn {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: var(--border-dark);
  background: rgba(255,255,255,0.05);
  color: var(--white);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease;
}
.carousel-btn:hover { background: var(--orange); border-color: var(--orange); color: var(--charcoal-deep); }

/* =========================================================
   Instagram
   ========================================================= */
.instagram-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.instagram-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(var(--ig-cols, 3), 1fr);
  gap: 14px;
  max-width: var(--ig-maxw, 640px);
  margin: 32px auto 0;
  padding: 0;
}
.instagram-grid li {
  aspect-ratio: var(--ig-tile-ratio, 1);
  border-radius: var(--radius);
  border: var(--border-light);
  overflow: hidden;
  background:
    repeating-linear-gradient(135deg, rgba(33,38,43,0.06) 0px, rgba(33,38,43,0.06) 10px, transparent 10px, transparent 20px),
    var(--paper);
}
.instagram-grid li a { display: block; width: 100%; height: 100%; }
.instagram-more { text-align: center; margin-top: 28px; }

/* =========================================================
   Location
   ========================================================= */
.location { background: var(--charcoal-deep); color: var(--white); }
.location-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
  text-align: left;
}
.location-row h2 { margin-left: 0; margin-right: 0; max-width: none; }
.location address {
  font-style: normal;
  font-size: 1.05rem;
  color: var(--mist);
  margin: 0 0 24px;
  line-height: 1.6;
}
.hours-table { width: 100%; max-width: 360px; margin: 0 0 28px; border-collapse: collapse; }
.hours-table th, .hours-table td {
  text-align: left;
  padding: 10px 0;
  border-top: var(--border-dark);
  font-weight: 500;
  font-size: 0.95rem;
}
.hours-table th { color: var(--mist); font-weight: 500; }
.hours-table td { text-align: right; color: var(--white); }
.location-actions { display: flex; justify-content: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.location-actions .btn-outline { color: var(--white); }
.location .pricing-note { color: #7A848C; }

.map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  border: var(--border-dark);
  filter: grayscale(55%) contrast(1.05);
  transition: filter 200ms ease;
}
.map-embed:hover, .map-embed:focus-within { filter: none; }
.map-embed iframe { width: 100%; height: 100%; min-height: 340px; border: 0; display: block; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer { background: var(--charcoal-deep); color: var(--mist); padding: 48px 0 0; }
.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 32px;
  border-bottom: var(--border-dark);
}
.footer-mark { height: 40px; width: auto; max-width: 200px; border-radius: 4px; object-fit: contain; }
.footer-row nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 0;
  padding: 0;
}
.footer-row nav a:hover { color: var(--white); }
.footer-social { display: flex; gap: 20px; }
.footer-social a:hover { color: var(--white); }
.footer-bottom { padding: 20px 0; font-size: 0.85rem; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 980px) {
  .hero-row, .about-row, .location-row {
    grid-template-columns: 1fr;
  }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonial-page { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .brand-grid li { flex-basis: calc(33.333% - 8px); }
}

@media (max-width: 760px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  /* Dar ekranda header-actions'a sığmıyorlar ve hamburger menüyü ekran
     dışına itiyorlardı — arama ve favoriler masaüstünde kalsın, mobilde
     ürünlere/yazılara zaten hamburger menüden ulaşılabiliyor. */
  .header-search-wrap, #header-fav-btn, .header-cart-wrap { display: none; }
  .header-row.nav-open .main-nav {
    display: block;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--charcoal-deep);
    border-bottom: var(--border-dark);
    padding: 12px 24px 24px;
  }
  .header-row.nav-open .main-nav ul { flex-direction: column; gap: 4px; }
  .header-row.nav-open .main-nav a { display: block; padding: 10px 0; }

  .about-facts { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .card-grid, .pricing-grid, .blog-grid { grid-template-columns: 1fr; }
  .instagram-grid { grid-template-columns: repeat(2, 1fr); }
  .brand-grid li { flex-basis: calc(50% - 6px); }
  .hero { padding: 64px 0; }

  .testimonial-carousel { flex-direction: column; }
  .carousel-btn { display: none; }
  .testimonial-track { flex-direction: column; overflow-x: visible; scroll-snap-type: none; width: 100%; }
  .testimonial-page { flex: 0 0 auto; grid-template-columns: 1fr; width: 100%; margin-bottom: 20px; }
  .testimonial-page:last-child { margin-bottom: 0; }
}
