/* =========================================================
   Deribu Gebze - site.css
   design.css'in ustune yuklenir. design.css degistirilmedi
   (README: ortak tasarim sistemi); tum gecersiz kilmalar bu dosyada,
   sonra yuklendikleri icin ayni ozgulluk ile gecerler.
   Kirilimlar: 480 (dar telefon), 640 (sm), 960 (masaustu menu), 1200 (lg)
   ========================================================= */

[hidden] { display: none !important; }

/* Bolum etiketleri: kalin, buyuk harf, harf araliklı */
.eyebrow,
.section-label {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--color-ink);
}
/* Yer isareti: baslık kaydırıldığında sabit üst çubuğun altında kalmasın */
[id] { scroll-margin-top: 96px; }

main:focus { outline: none; }

/* ---------- 1. UST BILGI ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-line);
}
.site-header__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: var(--space-2);
  min-height: 64px;
  padding-block: var(--space-1);
}
.site-header__start,
.site-header__end {
  display: flex;
  align-items: center;
  min-width: 0;
}
.site-header__start { justify-self: start; }
.site-header__end { justify-self: end; justify-content: flex-end; gap: var(--space-2); }

.site-header .brand {
  justify-self: center;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: var(--color-ink);
}
.brand-logo { height: 28px; width: auto; display: block; }
/* "Gebze" yazısı logonun altında, her ekranda görünür */
.site-header .brand span {
  display: block;
  margin: 0;
  padding-left: 0.32em; /* harf aralığının sağda bıraktığı boşluğu dengeler, yazı tam ortada durur */
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.32em;
}
@media (min-width: 480px) {
  .brand-logo { height: 36px; }
  .site-header .brand span { font-size: 11px; }
}

/* Mobil menü düğmesi (yalnızca JS açıkken; JS yoksa çekmece satır içi listelenir) */
.menu-toggle { display: none; }
.js .menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: none;
  border: 0;
  color: var(--color-ink);
  cursor: pointer;
}

/* Yardımcı ikonlar (arama, hesap, sepet) */
.utility { display: flex; align-items: center; }
.icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: none;
  border: 0;
  color: var(--color-ink);
  cursor: pointer;
  text-decoration: none;
}
.icon-btn:disabled { color: var(--color-muted); cursor: not-allowed; }
.icon-btn svg,
.menu-toggle svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cart-count {
  position: absolute;
  top: 4px;
  right: 0;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 9px;
  background: var(--color-btn-bg);
  color: var(--color-btn-fg);
  font-size: 11px;
  font-weight: 600;
  line-height: 18px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

/* Masaüstü birincil menü (960px ve üzeri) */
.primary-nav { display: none; }

/* Mobil çekmece (JS açıkken kayarak açılır, JS yokken akışta listelenir) */
.drawer {
  border-bottom: 1px solid var(--color-line);
  background: var(--color-bg);
}
.drawer__head { display: none; }
.drawer__panel ul { display: grid; }
.drawer__panel a {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 0 var(--gutter);
  border-bottom: 1px solid var(--color-line);
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  text-decoration: none;
}
.drawer__panel a:hover { text-decoration: underline; text-underline-offset: 6px; }

.js .drawer {
  position: fixed;
  inset: 0;
  z-index: 70;
  border: 0;
  background: none;
  visibility: hidden;
  pointer-events: none;
}
.js .drawer.is-open { visibility: visible; pointer-events: auto; }
.js .drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 17, 17, 0.35);
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
}
.js .drawer.is-open .drawer__backdrop { opacity: 1; }
.js .drawer__panel {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: min(88vw, 360px);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--color-bg);
  border-right: 1px solid var(--color-line);
  transform: translateX(-100%);
  transition: transform 240ms var(--ease);
}
.js .drawer.is-open .drawer__panel { transform: translateX(0); }
.js .drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 0 var(--gutter);
  border-bottom: 1px solid var(--color-line);
}
.drawer__title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.drawer__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  padding: 0;
  background: none;
  border: 0;
  color: var(--color-ink);
  cursor: pointer;
}
.drawer__close svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
}

@media (min-width: 960px) {
  .menu-toggle,
  .drawer,
  .js .drawer { display: none !important; }

  .primary-nav {
    display: flex;
    align-items: center;
    gap: var(--space-5);
  }
  .primary-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-size: var(--fs-sm);
    font-weight: 500;
    letter-spacing: 0.04em;
    text-decoration: none;
  }
  .primary-nav a:hover { text-decoration: underline; text-underline-offset: 6px; }
  .site-header__start,
  .site-header__end { gap: var(--space-5); }
  .site-header__end .utility { gap: var(--space-2); }
  .site-header .brand-logo { height: 44px; }
  .site-header__inner { min-height: 80px; gap: var(--space-5); }
}

/* ---------- 2. URUN IZGARASI VE KARTI ---------- */

/* 2 kolon telefon, 3 kolon tablet, 4 kolon masaustu; yatay ve dikey boşluk eşit */
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
}
@media (min-width: 640px) {
  .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-5);
  }
}
@media (min-width: 1200px) {
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.product-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  color: var(--color-ink);
  text-decoration: none;
}
.product-card .ph--img {
  background: transparent;
  box-shadow: none;
  border-radius: 0;
}
/* Kutusuz, çerçevesiz: fotoğraf sütunu tam doldurur, zemini sayfayla aynı */
.product-card .ph--img img,
.gallery .ph--img img {
  object-fit: contain;
  padding: 0;
}
.product-card__body { display: grid; gap: 2px; }
.product-card__name { font-size: 16px; font-weight: 600; line-height: 1.3; }
.product-card__color { font-size: var(--fs-sm); color: var(--color-muted); }
.product-card__price { margin-top: 4px; font-size: 14px; font-weight: 500; font-variant-numeric: tabular-nums; }
.product-card__price--note { font-weight: 400; color: var(--color-muted); line-height: 1.4; }
.product-card:hover .product-card__name { text-decoration: underline; text-underline-offset: 3px; }
.product-card__badge { position: absolute; top: var(--space-3); left: var(--space-3); }

/* ---------- 3. ANA SAYFA ---------- */

.home { display: grid; gap: var(--space-8); padding-block: var(--space-6) var(--space-8); }
.hero { display: grid; gap: var(--space-6); }
.hero__media { width: 100%; aspect-ratio: 16 / 10; }
.hero__body { display: grid; gap: var(--space-4); max-width: 640px; }
.hero__body .eyebrow { margin-bottom: 0; }
.hero h1 { max-width: 18ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-2); }
.hero .lead { color: var(--color-ink-soft); }
@media (min-width: 960px) {
  .hero__media { aspect-ratio: 21 / 8; }
}

.home-section {
  display: grid;
  gap: var(--space-5);
  padding-top: var(--space-7);
  border-top: 1px solid var(--color-line);
}
.home-section p { max-width: 60ch; color: var(--color-ink-soft); }
.map-frame {
  width: 100%;
  height: 320px;
  border: 0;
  border-radius: var(--radius);
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-6);
}
.contact-grid > div { display: grid; gap: var(--space-2); align-content: start; }
.contact-grid a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  overflow-wrap: anywhere;
}
.contact-grid a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Karşılama penceresi (ana sayfa) */
.welcome {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(17, 17, 17, 0.35);
  padding: 20px;
  z-index: 1000;
}
.welcome.open { display: flex; }
.welcome-card {
  position: relative;
  width: 100%;
  max-width: 440px;
  padding: 40px 36px 32px;
  background: var(--color-bg);
  border: 1px solid var(--color-line);
  border-radius: 6px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}
.welcome-close {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: none;
  border: 0;
  font-size: 26px;
  line-height: 1;
  color: var(--color-muted);
  cursor: pointer;
}
.welcome-close:hover { color: var(--color-ink); }
.welcome h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--fs-xl);
  margin-bottom: var(--space-4);
}
.welcome p { color: var(--color-muted); font-size: 15px; margin-bottom: var(--space-6); }
.welcome-actions { display: flex; gap: var(--space-3); justify-content: center; flex-wrap: wrap; }

/* ---------- 4. KOLEKSIYON VE URUN SAYFASI ---------- */

.breadcrumb ol { align-items: center; }
.breadcrumb a { display: inline-flex; align-items: center; min-height: 44px; }
.breadcrumb li { display: inline-flex; align-items: center; min-height: 44px; }
.filters-row { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-6); }
.filter-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 var(--space-3);
  border: 1px solid var(--color-line-strong);
  border-radius: var(--radius);
  background: var(--color-surface);
  color: var(--color-ink);
  font-size: var(--fs-sm);
  text-decoration: none;
}
.filter-link:hover { border-color: var(--color-ink); }
.filter-link[aria-current="true"] {
  background: var(--color-btn-bg);
  border-color: var(--color-btn-bg);
  color: var(--color-btn-fg);
}
.listing-intro { display: grid; gap: var(--space-3); padding-block: var(--space-6) var(--space-5); }
.listing-grid { padding-bottom: var(--space-8); }
.notice-block { margin-bottom: var(--space-6); }
.pdp-spacer { padding-top: var(--space-5); }

.sales-note {
  padding-block: var(--space-4);
  border-block: 1px solid var(--color-line);
  font-size: var(--fs-md);
  color: var(--color-ink-soft);
}
/* ---------- Ürün sayfası: görsel zemini ile sayfa zemini aynı, altta beyaz bilgi alanı ---------- */
:root { --pdp-top-bg: #ffffff; --pdp-info-bg: #ffffff; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --pdp-top-bg: #ffffff; --pdp-info-bg: #ffffff; }
}
body[data-page="urun"] { background: var(--pdp-top-bg); }

/* ---------- Ürün galerisi: tam genişlik, sağa kaydırmalı ---------- */
.gallery { position: relative; margin-inline: calc(var(--gutter) * -1); }
@media (min-width: 960px) { .gallery { margin-inline: 0; } }
.gallery__track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  background: transparent;
}
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__track:focus-visible { outline: 2px solid var(--color-focus); outline-offset: -2px; }
.gallery__slide { flex: 0 0 100%; scroll-snap-align: center; scroll-snap-stop: always; aspect-ratio: 1 / 1; }
.gallery__slide img { display: block; width: 100%; height: 100%; object-fit: contain; user-select: none; }
/* Üst kenarda çizgi göstergesi: etkin olan koyu */
.gallery__bar { position: absolute; top: 8px; left: var(--gutter); right: var(--gutter); display: flex; gap: 4px; z-index: 2; }
.gallery__seg { position: relative; flex: 1; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; }
.gallery__seg::before { content: ""; position: absolute; left: 0; right: 0; top: 11px; height: 2px; background: rgba(17, 17, 17, 0.22); }
.gallery__seg[aria-current="true"]::before { background: #111; }
.gallery__seg:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.gallery__nav {
  position: absolute;
  top: calc(50% - 22px);
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  color: var(--color-ink);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  display: none;
}
.gallery__nav:disabled { opacity: 0.35; cursor: default; }
.gallery__nav--prev { left: 12px; }
.gallery__nav--next { right: 12px; }
@media (hover: hover) and (pointer: fine) { .gallery__nav { display: block; } }

/* Mobil: fotoğraf altında tam genişlikte beyaz bilgi alanı, altta sabit geniş düğme */
@media (max-width: 959px) {
  body[data-page="urun"] .site-footer { margin-top: 0; }
  .pdp { gap: 0; padding-bottom: 0; }
  .pdp__info {
    background: var(--pdp-info-bg);
    margin-inline: calc(var(--gutter) * -1);
    padding: var(--space-5) var(--gutter) 104px;
  }
  .buybar {
    background: transparent;
    border-top: 0;
    padding: var(--space-3) var(--gutter);
    padding-bottom: calc(var(--space-3) + env(safe-area-inset-bottom, 0px));
  }
  .buybar .btn { flex: 1; min-height: 52px; border-radius: 0; }
}
.pdp.pdp--no-bar { padding-bottom: 0; }
.pdp__desc p + p { margin-top: var(--space-3); }

/* Yasal ve bilgi sayfaları */
.plain-page { display: grid; gap: var(--space-5); max-width: 680px; padding-block: var(--space-8); }
.plain-page p { color: var(--color-ink-soft); }
.plain-page .btn-row { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-3); }

/* KVKK ve benzeri uzun metin sayfası (içerik yapısı korunur) */
.plain-doc { max-width: 760px; padding-block: var(--space-8) var(--space-9); }
.plain-doc .meta { color: var(--color-muted); font-size: 14px; margin: var(--space-3) 0 var(--space-7); }
.plain-doc h2 { font-size: 22px; margin: var(--space-7) 0 var(--space-4); }
.plain-doc p,
.plain-doc li { font-size: 15px; line-height: 1.7; color: var(--color-ink-soft); margin-bottom: 12px; }
.plain-doc ul { list-style: disc; padding-left: 22px; margin-bottom: 12px; }
.plain-doc li { margin-bottom: 8px; }
/* Sarı işaretli alanlar: koyu metin, her temada okunur */
.plain-doc .placeholder { background: #fff3c4; color: #111111; padding: 0 4px; }
.plain-doc .note {
  margin-top: var(--space-7);
  padding: var(--space-4) var(--space-5);
  border: 1px solid var(--color-line);
  color: var(--color-muted);
  font-size: 14px;
}

/* ---------- 5. ALT BILGI ---------- */

.site-footer {
  margin-top: var(--space-6);
  padding-block: var(--space-7) var(--space-5);
  background: var(--color-surface);
  border-top: 1px solid var(--color-line);
  font-size: var(--fs-sm);
}
.newsletter {
  display: grid;
  gap: var(--space-4);
  padding-bottom: var(--space-6);
  margin-bottom: var(--space-6);
  border-bottom: 1px solid var(--color-line);
}
.newsletter__form { display: grid; gap: var(--space-3); max-width: 480px; }
.newsletter__form .input { min-height: 48px; }
.newsletter__form .btn { width: 100%; }
@media (min-width: 640px) {
  .newsletter__form { grid-template-columns: minmax(0, 1fr) auto; }
  .newsletter__form .btn { width: auto; min-width: 128px; }
}
@media (min-width: 960px) {
  .newsletter { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; gap: var(--space-8); }
}

.footer-groups { display: grid; gap: 0; }
.footer-group { border-bottom: 1px solid var(--color-line); }
.footer-group summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  list-style: none;
}
.footer-group summary::-webkit-details-marker { display: none; }
.footer-group summary::after { content: "+"; font-size: 20px; font-weight: 400; letter-spacing: 0; line-height: 1; }
.footer-group[open] summary::after { content: "\2212"; }
.footer-group ul { display: grid; padding-bottom: var(--space-3); }
.footer-group li a,
.footer-group li span {
  display: flex;
  align-items: center;
  min-height: 44px;
  color: var(--color-ink-soft);
  text-decoration: none;
  overflow-wrap: anywhere;
}
.footer-group li a:hover { color: var(--color-ink); text-decoration: underline; text-underline-offset: 3px; }

.social {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-5);
  padding-block: var(--space-5);
  border-bottom: 1px solid var(--color-line);
}
.social a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 500;
  color: var(--color-ink);
  text-decoration: none;
}
.social a:hover { text-decoration: underline; text-underline-offset: 3px; }

.site-footer__bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: var(--space-3);
  margin-top: 0;
  padding-top: var(--space-6);
  color: var(--color-muted);
  font-size: var(--fs-xs);
}
.site-footer__bottom .brand-logo { height: 34px; }
.social { justify-content: center; }

@media (min-width: 960px) {
  .footer-groups { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-6); }
  .footer-group { border-bottom: 0; }
  .footer-group summary {
    min-height: auto;
    margin-bottom: var(--space-3);
    pointer-events: none;
  }
  .footer-group summary::after { display: none; }
  .footer-group ul { padding-bottom: 0; }
}

/* ---------- 6. GENEL ERISILEBILIRLIK ---------- */

.skip-link { min-height: 44px; display: inline-flex; align-items: center; }

/* Koleksiyon sayfası: ürün sayfasıyla aynı zemin, böylece fotoğraflar sayfaya karışır */
body[data-page="koleksiyon"] { background: var(--pdp-top-bg); }
body[data-page="koleksiyon"] .grid { gap: var(--space-5) var(--space-3); }
@media (min-width: 640px) { body[data-page="koleksiyon"] .grid { gap: var(--space-6) var(--space-5); } }

/* Ana sayfa: beyaz zemin. Beyaz zeminli fotoğraflar sayfaya karışır. İç sayfalar krem kalır. */
.page-home { --color-bg: #ffffff; --color-surface: #ffffff; background: #ffffff; }
.page-home .ph:not(.ph--img) { background: #ffffff; }
:root[data-theme="light"] .page-home { --color-bg: #ffffff; --color-surface: #ffffff; background: #ffffff; }
:root[data-theme="light"] .page-home .ph:not(.ph--img) { background: #ffffff; }

/* Ana sayfa: üstte tam genişlikte fotoğraf, altında koleksiyon */
.hero .hero__media--photo { margin-inline: calc(var(--gutter) * -1); width: auto; aspect-ratio: 4 / 5; overflow: hidden; }
.hero .hero__media--photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
@media (min-width: 960px) {
  .hero { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); align-items: center; gap: var(--space-8); }
  .hero .hero__media--photo { margin-inline: 0; max-height: 720px; }
}
.home-collection { padding-top: var(--space-7); }
.home-collection .grid { margin-top: var(--space-5); gap: var(--space-5) var(--space-3); }
@media (min-width: 640px) { .home-collection .grid { gap: var(--space-6) var(--space-5); } }
.home-collection__more { margin-top: var(--space-6); text-align: center; }

/* İndirimli fiyat gösterimi (yalnızca test adreslerinde) */
.product-card__deal { display: grid; gap: 2px; margin-top: 4px; }
.product-card__old { font-size: var(--fs-sm); color: var(--color-muted); }
.product-card__old s { text-decoration: line-through; }
.product-card__now { font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; }
.pdp__old { display: block; font-size: var(--fs-sm); font-weight: 400; color: var(--color-muted); }
.pdp__old s { text-decoration: line-through; }
.pdp__now { display: block; font-size: var(--fs-lg); font-weight: 600; }

/* ---------- 7. ANA SAYFA: KAMPANYA (EFSANE KASIM) ---------- */

/* Web (960px ve üstü): yeni kampanya tasarımı. Daha dar ekranlarda önceki ana sayfa kalır. */
.home-web { display: none; }
.home-mobile { display: block; }
.tasarim-yeni .home-web { display: block; }
.tasarim-yeni .home-mobile { display: none; }

/* Yumuşak kaydırma: hero ve ikinci sayfa başa oturur, ama kaydırmayı kilitlemez (proximity). */
html:has(.tasarim-yeni) { scroll-snap-type: y proximity; }
.page-home.tasarim-yeni .hero-full,
.page-home.tasarim-yeni .popular { scroll-snap-align: start; }
.home-main { display: block; }

/* Üst çubuk: hero üzerinde saydam ve beyaz, aşağı kaydırınca gizlenir, yukarı kaydırınca geri gelir */
.page-home.tasarim-yeni .site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: transparent;
  border-bottom-color: transparent;
  transition: transform 260ms var(--ease), background-color 200ms var(--ease);
}
.page-home.tasarim-yeni .site-header { padding-top: env(safe-area-inset-top, 0px); }   /* viewport-fit=cover: fotoğraf ekranın tamamını kaplar, üst çubuk durum çubuğunun altına iner */
.page-home.tasarim-yeni .site-header.is-hidden { transform: translateY(-100%); }
.page-home.tasarim-yeni .site-header:not(.is-solid) .brand,
.page-home.tasarim-yeni .site-header:not(.is-solid) .icon-btn,
.page-home.tasarim-yeni .site-header:not(.is-solid) .menu-toggle,
.page-home.tasarim-yeni .site-header:not(.is-solid) .primary-nav a { color: #fff; }
.page-home.tasarim-yeni .site-header:not(.is-solid) .brand-logo { filter: brightness(0) invert(1); }
.page-home.tasarim-yeni .site-header:not(.is-solid) .brand span { color: #fff; font-weight: 600; }   /* GEBZE yazısı fotoğraf üzerinde okunur */
.page-home.tasarim-yeni .site-header:not(.is-solid) .cart-count { background: #fff; color: #111; }
.page-home.tasarim-yeni .site-header.is-solid { background: #fff; border-bottom-color: var(--color-line); }

/* Tam ekran siyah-beyaz hero */
.hero-full {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background: #111;
  color: #fff;
  text-align: center;
}
.hero-full__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: 55% 60%;
}
.hero-full__shade { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.38); }
.hero-full__content {
  position: relative;
  display: grid;
  justify-items: center;
  gap: var(--space-4);
  padding: 96px var(--gutter);
}
.hero-full__brand { width: min(46vw, 200px); height: auto; filter: brightness(0) invert(1); }
.hero-full__title {
  font-family: "Barlow Condensed", "Arial Narrow", var(--font-body);
  font-weight: 800;
  font-size: clamp(56px, 19vw, 150px);
  line-height: 0.9;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: #fff;
}
.hero-full__sub {
  font-size: clamp(14px, 3.8vw, 20px);
  font-weight: 300;
  letter-spacing: 0.04em;
  color: #fff;
}
.hero-full__btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px;
  margin-top: var(--space-3);
  padding: 0 var(--space-6);
  border: 1.5px solid #fff;
  color: #fff;
  font-size: 13px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  text-decoration: none;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.hero-full__btn:hover, .hero-full__btn:focus-visible { background: #fff; color: #111; }

/* Açılış yazısı: ekranın en altında, tek satır "deribu | GEBZE", sayfanın tam genişliğini kaplar.
   Aşağıdan açılır, ≈2 sn kalır, tekrar aşağı kapanır. Merkez yazılar baştan yerindedir. */
.intro-mark {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 2vw;   /* ortada, logo üstte GEBZE altta */
  padding: 0 5vw calc(9vh + env(safe-area-inset-bottom, 0px));
  line-height: 0;
  visibility: hidden; pointer-events: none;
  animation: intro-mark 2.9s cubic-bezier(0.65, 0, 0.35, 1) 0s 1 both;   /* sayfayla birlikte görünür */
}
.intro-mark img { width: 46vw; max-width: 420px; height: auto; flex: none; filter: brightness(0) invert(1); }
.intro-mark i { display: none; }
.intro-mark span {
  flex: none;
  font-family: var(--font-body);
  font-size: clamp(12px, 3.4vw, 22px); line-height: 1; font-weight: 600; letter-spacing: 0.5em; margin-right: -0.5em;
  color: #fff;
}
@keyframes intro-mark {
  0%   { visibility: visible; transform: translateY(0); }       /* sayfayla birlikte açık */
  70%  { visibility: visible; transform: translateY(0); }       /* ≈2 sn kalır */
  99%  { visibility: visible; transform: translateY(150%); }    /* aşağı doğru iner */
  100% { visibility: hidden; transform: translateY(150%); }
}
@media (prefers-reduced-motion: reduce) { .intro-mark { display: none; } }

/* Popüler modeller: beyaz sayfa, satırda 5 ürün */
.popular { min-height: 100vh; padding: 88px var(--gutter) var(--space-7); background: #fff; }
.popular__title {
  margin-bottom: var(--space-6);
  font-family: var(--font-body);
  font-weight: 800;
  font-size: clamp(32px, 8vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: #111;
}
.popular__grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--space-2); }
@media (min-width: 640px) { .popular__grid { gap: var(--space-4); } }
.pop-card { position: relative; display: block; color: #111; text-decoration: none; }
.pop-card__img { aspect-ratio: 4 / 3; background: #fff; }
.pop-card__img img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 54%; }
/* Bilgi yalnızca üzerine gelince görünür */
.pop-card__info {
  position: static;                 /* görselin altında yer ayrılır, görseli kapatmaz */
  display: grid; gap: 1px; align-content: start;
  min-height: 5.4em;                /* 4 satırlık yer: açılınca sayfa kaymaz */
  padding: 6px 2px 0;
  font-size: 10px; line-height: 1.3; text-align: center;
  opacity: 0; transform: translateY(-4px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
  pointer-events: none;
}
.pop-card:hover .pop-card__info,
.pop-card:focus-visible .pop-card__info,
.pop-card.is-open .pop-card__info { opacity: 1; transform: none; }
.pop-card__code { color: var(--color-muted); letter-spacing: 0.08em; }
.pop-card__name { font-weight: 600; }
.pop-card__now { font-weight: 600; font-variant-numeric: tabular-nums; }
.pop-card__old { color: var(--color-muted); font-variant-numeric: tabular-nums; }
.pop-card__old s { text-decoration: line-through; }
@media (min-width: 640px) { .pop-card__info { font-size: 13px; padding: 10px 2px 0; } }

/* İkiye bölünmüş görsel: sol botlar, sağ sneaker/günlük */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: #fff; }
.split__tile { display: block; overflow: hidden; background: #fff; color: #111; text-decoration: none; }
.split__tile img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; transition: transform 600ms var(--ease); }
.split__tile:hover img { transform: scale(1.03); }
/* Başlık görselin altında: ayakkabıları örtmez */
.split__label {
  position: relative; z-index: 1;
  display: block; padding: var(--space-4) var(--space-2) var(--space-5);
  background: #fff; text-align: center; color: #111;
  font-size: clamp(13px, 3.4vw, 20px); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
}
.split__tile:hover .split__label, .split__tile:focus-visible .split__label { text-decoration: underline; text-underline-offset: 6px; }
/* Telefon: iki görsel alt alta, her biri tam ekran bir sayfa; başlık görselin altında */
@media (max-width: 639px) {
  .split { grid-template-columns: 1fr; gap: 0; }
  .split__tile {
    display: grid; grid-template-rows: minmax(0, 1fr) auto;
    min-height: 100vh; min-height: 100svh;
    scroll-snap-align: start;
  }
  .split__tile img { height: 100%; min-height: 0; aspect-ratio: auto; }
  .split__tile:nth-child(1) img { object-position: 50% 60%; }
  .split__tile:nth-child(2) img { object-position: 50% 60%; }   /* iki ayakkabı da görünsün */
}
.home--rest { padding-top: var(--space-8); }

/* Yeni tasarım dar ekranda: 2-3 sütun, bilgi her zaman ürünün altında (üzerine gelme yok) */
@media (max-width: 959px) { .popular { min-height: 0; padding-top: 76px; } }
@media (max-width: 639px) { .popular__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 640px) and (max-width: 959px) { .popular__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (hover: none) {
  .pop-card__info { position: static; opacity: 1; transform: none; background: none; padding: 6px 0 0; font-size: 12px; text-align: center; pointer-events: auto; }
}

/* Metin seçildiğinde sarı vurgu (beyaz değil) */
.page-home ::selection { background: #ffd400; color: #111; }
.page-home ::-moz-selection { background: #ffd400; color: #111; }

/* ---------- 8. ANA SAYFA: PANELDEN YÖNETİLEN YAZILAR VE GÖRSELLER ---------- */

/* Hero, "kutu" gibi davranır: yazı boyutu ve konumu, ekran genişliğine ve yüksekliğine göre ölçeklenir. */
.hero-full { height: 100vh; height: 100lvh; min-height: 0; container-type: size; }   /* lvh: iPhone'da Safari alt çubuğunun altına kadar uzanır, altta beyaz şerit kalmaz */
.hero-full.has-blocks .hero-full__content { display: none; }   /* yazılar panel verisinden çizilir */
.hero-blocks {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  justify-content: center; align-items: center; text-align: center;
  gap: 3vw; padding: 14% 7%;
  pointer-events: none;
}
.hero-blocks > * { pointer-events: auto; }
.hero-blocks[data-valign="top"] { justify-content: flex-start; padding-top: 22%; }
.hero-blocks[data-valign="bottom"] { justify-content: flex-end; padding-bottom: 22%; }
.hero-blocks[data-align="left"] { align-items: flex-start; text-align: left; }
.hero-blocks[data-align="right"] { align-items: flex-end; text-align: right; }
@supports (width: 1cqw) {
  .hero-blocks { gap: min(3cqw, 1.7cqh); padding: min(14cqh, 14cqw) min(8cqw, 14cqh); }
  .hero-blocks[data-valign="top"] { padding-top: min(24cqh, 24cqw); }
  .hero-blocks[data-valign="bottom"] { padding-bottom: calc(min(24cqh, 24cqw) + 70px); }
}
.hblock {
  position: static;
  width: max-content;
  max-width: 100%;
  margin: 0;
  white-space: pre-line;
  font-size: calc(var(--s, 5) * 1vw);
}
@supports (width: 1cqw) {
  .hblock { font-size: calc(var(--s, 5) * min(1cqw, 0.55cqh)); }
}
.hblock--logo { width: calc(var(--s, 46) * 1vw); max-width: 94%; height: auto; filter: brightness(0) invert(1); font-size: inherit; }
@supports (width: 1cqw) {
  .hblock--logo { width: calc(var(--s, 46) * min(1cqw, 0.55cqh)); }
}
.hblock--button {
  display: inline-block;
  padding: 0.95em 2.1em;
  border: 1.5px solid currentColor;
  text-decoration: none;
  transition: background-color var(--dur) var(--ease);
}
.hblock--button:hover, .hblock--button:focus-visible { background: rgba(255, 255, 255, 0.16); }

/* Parlak görselde yazılar koyu */
.hero-full.ink-dark .hblock--text, .hero-full.ink-dark .hblock--button { color: #1a1a18 !important; }
.hero-full.ink-dark .hblock--logo { filter: none; }
/* Karışık zeminde okunurluk: yazının etrafında zıt renkli yumuşak hâle, üstte menü için ince gölge */
.hero-full.ink-auto .hero-blocks { z-index: 2; }
.hero-full.ink-auto .hblock--text { text-shadow: 0 0 6px rgba(0, 0, 0, 0.45), 0 0 24px rgba(0, 0, 0, 0.55); }
.hero-full.ink-auto .hblock--logo { filter: brightness(0) invert(1) drop-shadow(0 0 8px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 22px rgba(0, 0, 0, 0.4)); }
.hero-full.ink-auto .hblock--button { background: rgba(0, 0, 0, 0.3); backdrop-filter: blur(3px); }
.hero-full.ink-dark .hblock--text { text-shadow: 0 0 6px rgba(255, 255, 255, 0.7), 0 0 24px rgba(255, 255, 255, 0.75); }
.hero-full.ink-dark .hblock--logo { filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.7)) drop-shadow(0 0 22px rgba(255, 255, 255, 0.55)); }
.hero-full.ink-dark .hblock--button { background: rgba(255, 255, 255, 0.5); }
.hero-full.ink-auto::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 130px; z-index: 1; pointer-events: none; background: linear-gradient(to bottom, rgba(0, 0, 0, 0.38), rgba(0, 0, 0, 0)); }
body.hero-head-dark .hero-full.ink-auto::before { background: linear-gradient(to bottom, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0)); }
.page-home.tasarim-yeni.hero-head-dark .site-header:not(.is-solid) .brand,
.page-home.tasarim-yeni.hero-head-dark .site-header:not(.is-solid) .icon-btn,
.page-home.tasarim-yeni.hero-head-dark .site-header:not(.is-solid) .menu-toggle,
.page-home.tasarim-yeni.hero-head-dark .site-header:not(.is-solid) .primary-nav a,
.page-home.tasarim-yeni.hero-head-dark .site-header:not(.is-solid) .brand span { color: #1a1a18; }
.page-home.tasarim-yeni.hero-head-dark .site-header:not(.is-solid) .brand-logo { filter: none; }

/* Panel önizlemesi: seçili yazı çerçevelenir, sürüklemek için imleç değişir */
.is-preview .hblock { cursor: grab; user-select: none; touch-action: none; }
.drop-line { position: absolute; left: 8%; right: 8%; height: 3px; background: #ffd400; z-index: 6; pointer-events: none; border-radius: 2px; }
.is-preview .hblock.is-selected { outline: 1.5px dashed #ffd400; outline-offset: 6px; }
.is-preview .intro-mark { display: none; }
.is-preview .site-header { pointer-events: none; }

/* Tüm sayfalarda üst çubuk aşağı kaydırınca gizlenir (ana sayfada ayrı kural var) */
.site-header { transition: transform 260ms var(--ease); }
.site-header.is-hidden { transform: translateY(-100%); }

/* Ürün özellikleri tablosu */
.spec { margin: 0; display: grid; gap: 0; }
.spec__row { display: grid; grid-template-columns: 9.5em 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--color-line); }
.spec__row:last-child { border-bottom: 0; }
.spec dt { color: var(--color-muted); font-size: var(--fs-sm); }
.spec dd { margin: 0; font-weight: 500; }

/* Ürün sayfası kimlik satırı: MARKA · KOD · Renk */
#pdp-eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 13px; }
#pdp-eyebrow .id-sep { color: var(--color-muted); }
#pdp-eyebrow .id-link { color: var(--color-ink); text-decoration: none; border-bottom: 1px solid var(--color-line-strong); padding: 6px 0; min-height: 32px; display: inline-flex; align-items: center; }
#pdp-eyebrow .id-link:hover { border-bottom-color: var(--color-ink); }
#pdp-eyebrow .id-link--color { text-transform: none; letter-spacing: 0.04em; }


/* ---------- Ana sayfa: kayan marka logoları ---------- */
.popular { display: flex; flex-direction: column; }
.popular__grid { flex: 0 0 auto; }
.brands { margin-top: auto; padding-top: var(--space-7); }
.brands__title {
  margin: 0 0 var(--space-3);
  font-family: inherit; font-size: 12px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: #777;
}
.brands__viewport {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
}
.brands__track { display: flex; width: max-content; animation: brands-scroll 48s linear infinite; will-change: transform; }
.brands__group { display: flex; flex: 0 0 auto; align-items: center; margin: 0; padding: 0 0 0 0; list-style: none; }
.brands__group li { flex: 0 0 auto; width: 190px; padding: 0 22px; }
.brands__group a { display: block; }
.brands__group img { display: block; width: 100%; height: auto; opacity: 0.82; transition: opacity var(--dur) var(--ease); }
.brands__group a:hover img, .brands__group a:focus-visible img { opacity: 1; }
.brands__viewport:hover .brands__track, .brands__viewport:focus-within .brands__track { animation-play-state: paused; }
@keyframes brands-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (max-width: 639px) { .brands__group li { width: 140px; padding: 0 14px; } .brands__track { animation-duration: 38s; } }
/* Hareketi azaltmayı seçenlerde kayma yok: şerit elle kaydırılabilir */
@media (prefers-reduced-motion: reduce) {
  .brands__viewport { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .brands__track { animation: none; }
  .brands__group[aria-hidden="true"] { display: none; }
}


/* ---------- Sosyal medya ve iletişim: ikonlu bağlantılar ---------- */
.social a { gap: 10px; }
.social__icon { flex: 0 0 auto; display: block; }
.social a:hover .social__icon { transform: translateY(-1px); }
.contact-link { display: inline-flex; align-items: center; gap: 10px; }


/* ---------- Ürün ve koleksiyon sayfaları: beyaz zemin ---------- */
body[data-page="urun"], body[data-page="koleksiyon"] { --color-bg: #ffffff; --color-surface: #ffffff; background: #ffffff; }
body[data-page="urun"] .gallery__track, body[data-page="urun"] .gallery__slide { background: #ffffff; }


/* ---------- SEO: sunucunun eklediği yedek içerik, giriş yazısı, alt bilgi bağlantıları ---------- */
.seo-fallback { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.listing-seo { max-width: 68ch; margin: 0 0 var(--space-5); color: var(--color-ink-soft); font-size: 15px; line-height: 1.6; }
.footer-seo { padding-block: var(--space-4); border-bottom: 1px solid var(--color-line); font-size: 13px; line-height: 1.9; color: var(--color-ink-soft); text-align: center; }
.footer-seo p { margin: 0 0 6px; }
.footer-seo a { color: var(--color-ink-soft); text-decoration: none; white-space: nowrap; }
.footer-seo a:hover { color: var(--color-ink); text-decoration: underline; text-underline-offset: 3px; }


/* ---------- Arama paneli ---------- */
html.search-open { overflow: hidden; }
.search { position: fixed; inset: 0; z-index: 90; background: rgba(17, 17, 17, 0.45); display: flex; justify-content: center; align-items: flex-start; padding: 0; }
.search[hidden] { display: none; }
.search__box { width: 100%; max-width: 680px; max-height: 100%; overflow-y: auto; background: #fff; color: #111; padding: 14px var(--gutter) 20px; }
@media (min-width: 720px) { .search { padding: 8vh 16px 0; } .search__box { border-radius: 4px; max-height: 84vh; padding: 20px 24px 24px; } }
.search__form { display: flex; gap: 8px; align-items: center; }
.search__input { flex: 1; min-width: 0; height: 48px; padding: 0 14px; font: inherit; font-size: 16px; color: #111; background: #fff; border: 1px solid #8f877b; border-radius: 2px; }
.search__input:focus { outline: 2px solid #111; outline-offset: 1px; }
.search__close { height: 48px; padding: 0 14px; font: inherit; color: #111; background: none; border: 0; cursor: pointer; }
.search__note { margin: 12px 0 6px; font-size: 14px; color: #6b655c; }
.search__list { list-style: none; margin: 0; padding: 0; }
.search__item { display: flex; gap: 12px; align-items: center; padding: 8px 0; border-top: 1px solid #ece8e1; color: #111; text-decoration: none; }
.search__item:hover .search__name { text-decoration: underline; text-underline-offset: 3px; }
.search__item img, .search__noimg { width: 56px; height: 56px; flex: none; object-fit: cover; background: #f0ece5; }
.search__text { display: flex; flex-direction: column; min-width: 0; }
.search__name { font-size: 15px; font-weight: 600; }
.search__meta { font-size: 13px; color: #6b655c; }
.search__more { display: inline-block; margin-top: 12px; color: #111; font-weight: 600; text-underline-offset: 3px; }

/* İletişim: WhatsApp logosu büyük */
.contact-link--logo .social__icon { width: 44px; height: 44px; }

.pdp__sizes-note{margin:.4rem 0 0;font-size:.95rem;color:#555}

/* Koleksiyon sol süzgeç sütunu */
.fp__toggle { display: inline-block; margin: 0 0 var(--space-4); padding: 10px 18px; border: 1px solid #1a1a18; background: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.filter-panel { display: none; }
.filter-panel.is-open { display: block; position: fixed; inset: 0; z-index: 400; background: #fff; overflow-y: auto; padding: 16px 20px 90px; }
html.fp-open { overflow: hidden; }
.fp__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; font-size: 18px; }
.fp__x { background: none; border: 0; font-size: 22px; cursor: pointer; padding: 6px 10px; }
.fp__clear, .fp__more { background: none; border: 0; padding: 6px 0; font: inherit; font-size: 14px; text-decoration: underline; cursor: pointer; color: inherit; }
.fp__group { border-top: 1px solid #e6e3dc; padding: 14px 0; }
.fp__group h3 { margin: 0 0 8px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.fp__group ul { list-style: none; margin: 0; padding: 0; }
.fp__group label { display: flex; align-items: center; gap: 10px; padding: 6px 0; cursor: pointer; font-size: 15px; }
.fp__group label.is-off { opacity: .4; }
.fp__group label em { margin-left: auto; font-style: normal; color: #8a867d; font-size: 13px; }
.fp__group input { width: 18px; height: 18px; accent-color: #1a1a18; }
.fp__ok { position: fixed; left: 20px; right: 20px; bottom: 16px; padding: 14px; background: #1a1a18; color: #fff; border: 0; font: inherit; font-weight: 600; cursor: pointer; }
@media (min-width: 900px) {
  .listing-layout.has-filters { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 36px; align-items: start; }
  .fp__toggle, .fp__x, .fp__ok { display: none; }
  .filter-panel, .filter-panel.is-open { display: block; position: sticky; top: 90px; inset: auto; z-index: auto; background: none; padding: 0; max-height: calc(100vh - 110px); overflow-y: auto; }
  html.fp-open { overflow: auto; }
}
.hero-full.ink-auto .hblock--text { font-weight: 500; }
.hero-full.ink-auto .hblock--text { font-weight: 600; text-shadow: 0 0 5px rgba(0,0,0,.6), 0 1px 14px rgba(0,0,0,.7); }
.hero-full.ink-auto .hblock--button { background: rgba(0,0,0,.45); font-weight: 700; }

/* Masaüstü ana sayfa: hero yazı bloğu sola hizalı (telefon etkilenmez) */
@media (min-width: 900px) {
  .hero-blocks[data-align="center"] { align-items: flex-start; text-align: left; }
}
