/* YOGNETIC — temel stil dosyası. Harici bir framework kullanılmadan elle yazılmıştır. */

:root {
  /* Sade, sıcak / "yaşam tarzı" paleti — koyu ink rengi vurgu, ölçülü terracotta aksan */
  --color-ink: #201b16;
  --color-primary: #b5502e;
  --color-primary-dark: #8f3d21;
  --color-primary-light: #f1e4d8;
  /* --color-secondary ve --color-text-muted, 2026-09-02 denetim raporunda (B19) beyaz/
     krem zemin üzerinde WCAG AA (4.5:1) eşiğinin altında kaldığı için biraz koyultuldu;
     ton aynı kaldı, yalnızca okunabilirlik için koyuluk artırıldı. */
  --color-secondary: #637b5e;
  --color-secondary-light: #e9eee6;
  --color-bg: #f7f3ec;
  --color-surface: #ffffff;
  --color-text: #241f1a;
  --color-text-muted: #6e665c;
  --color-border: #e7e0d4;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(32, 27, 22, 0.06), 0 1px 1px rgba(32, 27, 22, 0.04);
  --shadow-md: 0 8px 24px rgba(32, 27, 22, 0.08);
  --shadow-lg: 0 16px 40px rgba(32, 27, 22, 0.14);
  --container-w: 1220px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  /* Güvenlik önlemi: bir alt öğe (örn. yatay kaydırmalı galeri şeridi) beklenmedik
     şekilde ekrandan taşarsa tüm sayfanın sağa doğru kayabilmesini engeller. */
  overflow-x: hidden;
}

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

/* Klavye kullanıcıları için "içeriğe geç" bağlantısı (bkz. lib/layout.js page()) —
   ekran okuyucu/klavye kullanıcısının her sayfada tekrar eden header/nav menüsünü
   atlayıp doğrudan asıl içeriğe geçebilmesi için. Normalde görünmez, yalnızca
   klavyeyle (Tab) odaklanınca görünür hale gelir (2026-09-02 denetim raporu, B20). */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  background: var(--color-ink);
  color: #fff;
  padding: 10px 18px;
  border-radius: 0 0 var(--radius-sm) 0;
  font-size: 14px;
  font-weight: 600;
}
.skip-link:focus {
  left: 0;
}

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

/* ---------- Üst bar (duyuru) ---------- */
/* Aynı anda tek mesaj gösterilir; JS (cart.js initAnnounceRotator) birkaç saniyede bir
   yumuşak fade ile bir sonraki mesaja geçer. Kesintisiz akan bir marquee değildir. */
.announce {
  background: var(--color-primary-dark);
  color: #fff;
  padding: 10px 0;
  overflow: hidden;
}
.announce-rotator {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 19px;
  text-align: center;
}
.announce-msg {
  position: absolute;
  left: 0;
  right: 0;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 0 18px;
  opacity: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: opacity 0.5s ease;
  pointer-events: none;
}
.announce-msg.is-active { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .announce-msg { transition: none; }
}

/* ---------- Header ---------- */
.site-header {
  background: rgba(251, 247, 242, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 40;
}

.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--container-w);
  margin: 0 auto;
  gap: 20px;
}

.logo {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--color-ink);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo .logo-mark {
  width: 30px; height: 30px;
  border-radius: 9px;
  background: var(--color-ink);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}
.logo span { color: var(--color-text-muted); font-weight: 500; }
.logo-img { height: 22px; width: auto; display: block; }

.main-nav {
  display: flex;
  gap: 22px;
  white-space: nowrap;
}
.main-nav a {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.main-nav a:hover, .main-nav a.active {
  color: var(--color-primary-dark);
  border-bottom-color: var(--color-ink);
}

/* ---------- "Kategoriler" açılır mega-menü ---------- */
.nav-mega { position: relative; }
.nav-mega-trigger {
  display: flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.nav-mega-trigger:hover, .nav-mega-trigger.active, .nav-mega-trigger[aria-expanded="true"] {
  color: var(--color-primary-dark);
  border-bottom-color: var(--color-ink);
}
.nav-mega-chevron { transition: transform 0.15s ease; flex-shrink: 0; }
.nav-mega-trigger[aria-expanded="true"] .nav-mega-chevron { transform: rotate(180deg); }
.nav-mega-panel {
  position: absolute;
  top: calc(100% + 14px);
  left: 0;
  min-width: 640px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 22px 24px 16px;
  z-index: 45;
}
.nav-mega-groups { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.nav-mega-group-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 800;
  color: var(--color-ink);
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--color-border);
}
.nav-mega-group-title svg { color: var(--color-primary); flex-shrink: 0; }
.nav-mega-group ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.nav-mega-group ul a { font-size: 13px; color: var(--color-text-muted); }
.nav-mega-group ul a:hover { color: var(--color-primary-dark); }
.nav-mega-all {
  display: block;
  text-align: center;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--color-border);
  font-size: 13px;
  font-weight: 700;
  color: var(--color-primary);
}

/* ---------- Mobil menü: tam yükseklik drawer (bkz. lib/layout.js mobileDrawer,
   cart.js initMobileNav/initMobileDrawerAccordion). Yalnızca ≤980px genişlikte
   #mobile-nav-toggle görünür olduğu için JS bu öğeleri yalnızca o genişliklerde
   açar; yine de masaüstünde yanlışlıkla açılmaya karşı ek bir güvenlik olarak
   980px üzerinde gizlenir. ---------- */
.mobile-drawer-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(20, 16, 12, 0.55);
  z-index: 90;
}
.mobile-drawer-backdrop.open { display: block; }

.mobile-drawer {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(86vw, 360px);
  background: var(--color-surface);
  z-index: 91;
  box-shadow: var(--shadow-md);
  transform: translateX(-100%);
  visibility: hidden;
  /* visibility kasıtlı olarak animasyon listesinde DEĞİL — geçiş süresi boyunca
     tarayıcının "visible" durumunu ne zaman uygulayacağı belirsiz olduğundan
     (bkz. cart.js initMobileNav — açılışta kapatma düğmesine odaklanma), yalnızca
     transform yumuşak geçer; visibility class değişince ANINDA (gecikmesiz) atlar. */
  transition: transform 0.25s ease;
}
.mobile-drawer.open { transform: translateX(0); visibility: visible; }
@media (prefers-reduced-motion: reduce) {
  .mobile-drawer { transition: none; }
}
body.mobile-drawer-open { overflow: hidden; }

.mobile-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 12px 14px 16px;
  border-bottom: 1px solid var(--color-border);
  flex-shrink: 0;
}
.mobile-drawer-close {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: none;
  background: var(--color-primary-light);
  color: var(--color-ink);
  font-size: 18px;
  cursor: pointer;
  transition: background 0.15s ease;
}
.mobile-drawer-close:hover { background: var(--color-border); }

.mobile-drawer-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 10px 10px 28px;
}

.mobile-drawer-nav { display: flex; flex-direction: column; }
.mobile-drawer-link {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 12px 10px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text);
}
.mobile-drawer-link:hover { background: var(--color-primary-light); color: var(--color-primary-dark); }
.mobile-drawer-link-primary { font-size: 16px; font-weight: 700; }

.mobile-drawer-accordion-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 44px;
  padding: 12px 10px;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text);
  background: none;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.mobile-drawer-accordion-trigger:hover,
.mobile-drawer-accordion-trigger[aria-expanded="true"] { background: var(--color-primary-light); color: var(--color-primary-dark); }
.mobile-drawer-accordion-trigger[aria-expanded="true"] .nav-mega-chevron { transform: rotate(180deg); }
.mobile-drawer-accordion-panel {
  display: flex;
  flex-direction: column;
  padding: 2px 4px 10px 16px;
}
.mobile-drawer-subitem {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px;
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--color-text-muted);
}
.mobile-drawer-subitem svg { color: var(--color-primary); flex-shrink: 0; }
.mobile-drawer-subitem:hover { background: var(--color-primary-light); color: var(--color-primary-dark); }

.mobile-drawer-divider { height: 1px; background: var(--color-border); margin: 12px 8px; }

.mobile-drawer-nav-secondary .mobile-drawer-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-muted);
}
.mobile-drawer-nav-secondary .mobile-drawer-link:hover { color: var(--color-primary-dark); }

/* Tüm etkileşimli satırlarda görünür klavye odağı. */
.mobile-drawer a:focus-visible,
.mobile-drawer button:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

@media (min-width: 981px) {
  .mobile-drawer, .mobile-drawer-backdrop { display: none !important; }
}

.header-search {
  flex: 1;
  max-width: 420px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--color-bg);
  border: 1.5px solid var(--color-border);
  border-radius: 999px;
  padding: 9px 16px;
  color: var(--color-text-muted);
}
.header-search input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 13.5px;
  font-family: inherit;
  color: var(--color-text);
  width: 100%;
}
.header-search button { background: none; border: none; cursor: pointer; color: var(--color-text-muted); font-size: 14px; padding: 0; }
.header-search-icon { display: flex; align-items: center; flex-shrink: 0; color: inherit; }

.header-search-input-wrap { position: relative; flex: 1; min-width: 0; }
.header-search-marquee {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  overflow: hidden;
  pointer-events: none;
  background: var(--color-bg);
  transition: opacity 0.15s ease;
}
.header-search-marquee.is-hidden { opacity: 0; }

/* ---------- Arama öneri kutusu (header-search-suggest) ---------- */
.header-search-suggest {
  position: absolute;
  top: calc(100% + 8px);
  left: -16px;
  right: -16px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  z-index: 20;
  max-height: 420px;
  overflow-y: auto;
  padding: 6px;
}
.hss-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  border-radius: var(--radius-sm);
  color: var(--color-text);
}
.hss-item:hover { background: var(--color-bg); }
.hss-thumb {
  width: 46px; height: 46px;
  flex-shrink: 0;
  border-radius: 8px;
  background: var(--color-primary-light);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.hss-thumb img { width: 100%; height: 100%; object-fit: contain; }
.hss-info { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.hss-name { font-size: 13.5px; font-weight: 600; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hss-meta { display: flex; align-items: center; gap: 8px; font-size: 12.5px; }
.hss-price { font-weight: 700; color: var(--color-primary-dark); }
.hss-out { color: #a3392d; font-weight: 600; }
.hss-more {
  display: block;
  text-align: center;
  padding: 10px 8px 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-primary);
  border-top: 1px solid var(--color-border);
  margin-top: 4px;
}
.hss-empty { padding: 16px 10px; text-align: center; }
.hss-empty p { margin: 0 0 10px; font-size: 13.5px; color: var(--color-text-muted); }
.hss-empty-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.hss-empty-links a {
  font-size: 12.5px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1.5px solid var(--color-border);
  color: var(--color-text-muted);
}
.hss-empty-links a:hover { border-color: var(--color-primary); color: var(--color-primary-dark); }
.header-search-marquee-text {
  font-size: 13.5px;
  color: var(--color-text-muted);
  white-space: nowrap;
  overflow: hidden;
}
.header-search-caret {
  color: var(--color-primary);
  font-weight: 600;
  margin-left: 1px;
  animation: header-search-caret-blink 0.9s step-end infinite;
}
@keyframes header-search-caret-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .header-search-caret { animation: none; }
}

.header-actions { display: flex; align-items: center; gap: 10px; }

.account-link {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--color-text);
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 13.5px;
  border: 1.5px solid var(--color-border);
  white-space: nowrap;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.account-link:hover { border-color: var(--color-primary-dark); color: var(--color-primary-dark); }

.account-menu { display: flex; flex-direction: column; gap: 14px; }
.account-menu-card {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--color-surface, #fff);
  border: 1.5px solid var(--color-border);
  border-radius: 14px;
  padding: 20px 22px;
  color: var(--color-text);
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.account-menu-card:hover {
  border-color: var(--color-primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm, 0 2px 10px rgba(0,0,0,0.08));
}
.account-menu-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--color-bg-alt, #f6f1ea);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}
.account-menu-text { flex: 1; }
.account-menu-text h3 { margin: 0 0 4px; font-size: 16.5px; font-weight: 700; }
.account-menu-text p { margin: 0; font-size: 13.5px; color: var(--color-text-muted); }
.account-menu-arrow { font-size: 20px; color: var(--color-text-muted); flex-shrink: 0; }

/* ---------- YOGNETIC Club ---------- */
.club-title-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.club-pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--color-primary-light); color: var(--color-primary-dark);
  font-size: 12.5px; font-weight: 700; padding: 5px 12px; border-radius: 999px;
}
.club-tagline { color: var(--color-text-muted); font-size: 14.5px; font-style: italic; margin: 2px 0 22px; }

.club-balance-card {
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 28px 30px;
  margin-bottom: 22px;
  position: relative;
  overflow: hidden;
}
.club-balance-icon { position: absolute; right: 24px; top: 24px; font-size: 36px; opacity: 0.3; }
.club-balance-label { font-size: 13px; opacity: 0.88; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; }
.club-balance-amount { font-size: 38px; font-weight: 800; margin: 8px 0 18px; }
.club-balance-subgrid { display: flex; gap: 28px; flex-wrap: wrap; border-top: 1px solid rgba(255, 255, 255, 0.25); padding-top: 14px; }
.club-balance-subitem { font-size: 12.5px; opacity: 0.92; }
.club-balance-subitem strong { display: block; font-size: 15.5px; margin-top: 3px; font-weight: 800; }

.club-how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 16px 0 22px; }
.club-how-step { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 18px; text-align: center; }
.club-how-step .num {
  width: 30px; height: 30px; border-radius: 50%; background: var(--color-primary-light); color: var(--color-primary-dark);
  font-weight: 800; display: flex; align-items: center; justify-content: center; margin: 0 auto 10px;
}
.club-how-step h4 { margin: 0 0 6px; font-size: 14.5px; }
.club-how-step p { margin: 0; font-size: 13px; color: var(--color-text-muted); }

@media (max-width: 700px) {
  .club-how-grid { grid-template-columns: 1fr; }
  .club-balance-amount { font-size: 30px; }
  .club-balance-subgrid { gap: 18px; }
}

.cart-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  background: var(--color-ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 13.5px;
  transition: background 0.15s ease, transform 0.15s ease;
}
.cart-link:hover { background: var(--color-primary-dark); transform: translateY(-1px); }
.cart-count {
  background: rgba(255,255,255,0.25);
  border-radius: 999px;
  padding: 1px 8px;
  font-size: 12px;
  display: inline-block;
}
.cart-count.bump { animation: cartCountBump 0.4s ease; }
@keyframes cartCountBump {
  0% { transform: scale(1); }
  35% { transform: scale(1.45); }
  60% { transform: scale(0.92); }
  100% { transform: scale(1); }
}

/* ---------- Sepete eklendi mini önizleme (header'daki sepet ikonunun altında açılır) ---------- */
.cart-link-wrap { position: relative; }

.cart-dropdown {
  /* Konumu (top/left) JS tarafından, header'daki sepet ikonunun gerçek ekran
     konumuna göre hesaplanıp satır-içi stil olarak atanır (bkz. cart.js
     showCartToast) — böylece mobil düzende header iki satıra bölünse veya
     ikon ekranın sağ kenarına tam yaslı olmasa bile önizleme her zaman
     ikonun hemen altında ve ekran içinde kalır. Header'ın backdrop-filter'ı
     yeni bir "containing block" oluşturduğu için (bkz. mobil menü ile ilgili
     benzer not) bu öğe header'ın İÇİNE değil, document.body'ye eklenir;
     aksi halde position:fixed gerçek görüntü alanına göre değil, header'a
     göre hesaplanırdı. */
  position: fixed;
  z-index: 60;
  width: 300px;
  max-width: calc(100vw - 24px);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(20, 15, 10, 0.18);
  padding: 16px;
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
}
.cart-dropdown.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.cart-dropdown::before {
  content: '';
  position: absolute;
  top: -6px;
  right: var(--arrow-offset, 22px);
  width: 12px;
  height: 12px;
  background: var(--color-surface);
  border-left: 1px solid var(--color-border);
  border-top: 1px solid var(--color-border);
  transform: rotate(45deg);
}
.cart-dropdown-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--color-border);
}
.cart-dropdown-check {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}
.cart-dropdown-headline {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--color-text);
  flex: 1;
}
.cart-dropdown-close {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--color-text-muted);
  font-size: 15px;
  line-height: 1;
}
.cart-dropdown-close:hover { background: var(--color-bg); color: var(--color-text); }
.cart-dropdown-product {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
}
.cart-dropdown-thumb {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 10px;
  object-fit: cover;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
}
.cart-dropdown-info { min-width: 0; }
.cart-dropdown-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 4px;
}
.cart-dropdown-price { font-size: 13px; font-weight: 700; color: var(--color-primary); }
.cart-dropdown-goto {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 11px 14px;
  border-radius: 999px;
  background: var(--color-ink);
  color: #fff;
  font-size: 13.5px;
  font-weight: 700;
  transition: background 0.15s ease;
}
.cart-dropdown-goto:hover { background: var(--color-primary-dark); color: #fff; }
.cart-dropdown-goto svg { flex-shrink: 0; }

@media (max-width: 560px) {
  .cart-dropdown { width: 260px; }
}

.mobile-nav-toggle {
  display: none;
  background: none;
  border: 1.5px solid var(--color-border);
  border-radius: 10px;
  width: 40px;
  height: 40px;
  font-size: 18px;
  cursor: pointer;
  color: var(--color-text);
  order: -1;
}

/* ---------- Hero / Banner ---------- */
/* Banner artık masaüstü dahil her ekran boyutunda kenardan kenara (full-bleed)
   yayılıyor — .container'ın sitedeki diğer her yerde uyguladığı 24px yan boşluk ve
   1220px genişlik sınırı sadece .hero bölümünde iptal edilir. */
.hero { background: var(--color-bg); padding: 28px 0 0; }
.hero .container { max-width: none; padding: 0; }

.hero-slider {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1600 / 700;
  background: #ece5d8;
}
.hero-slider-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.45, 0, 0.2, 1);
}
.hero-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
}
.hero-slide a, .hero-slide img {
  display: block;
  width: 100%;
  height: 100%;
}
.hero-slide img { object-fit: cover; }
.hero-slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(20, 15, 10, 0.45);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}
.hero-slider-arrow:hover { background: rgba(20, 15, 10, 0.75); }
.hero-slider-arrow.prev { left: 16px; }
.hero-slider-arrow.next { right: 16px; }
.hero-slider-dots {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 3;
}
.hero-slider-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: all 0.2s ease;
}
.hero-slider-dot.active { background: #fff; width: 22px; border-radius: 5px; }
@media (max-width: 768px) {
  .hero-slider-arrow { width: 32px; height: 32px; font-size: 16px; }
  .hero-slider-arrow.prev { left: 10px; }
  .hero-slider-arrow.next { right: 10px; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--color-primary-dark);
  margin-bottom: 14px;
}
.banner-content .eyebrow { color: #f1e4d8; }

.hero-banner h1 {
  font-size: 30px;
  line-height: 1.22;
  margin: 0 0 12px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #fff;
}
.hero-banner p.lead {
  font-size: 15px;
  color: rgba(255,255,255,0.85);
  margin: 0 0 26px;
  max-width: 42ch;
}
.hero-actions { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.hero-banner .btn-primary { background: #fff; color: var(--color-ink); }
.hero-banner .btn-primary:hover { background: #f1e4d8; }
.hero-banner .text-link { color: #fff; border-color: rgba(255,255,255,0.6); }
.hero-banner .text-link:hover { color: #f1e4d8; border-color: #f1e4d8; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14.5px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.btn-primary { background: var(--color-ink); color: #fff; }
.btn-primary:hover { background: #000; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; border-color: var(--color-text); color: var(--color-text); }
.btn-outline:hover { background: var(--color-text); color: #fff; }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-danger { background: #b3352b; color: #fff; }
.btn-danger:hover { background: #8f2921; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }

.text-link {
  font-weight: 700;
  font-size: 14.5px;
  color: var(--color-ink);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1.5px solid var(--color-ink);
  padding-bottom: 2px;
}
.text-link:hover { color: var(--color-primary-dark); border-color: var(--color-primary-dark); }

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding: 28px;
  margin-top: 28px;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--color-text);
}
.trust-item .sub { display: block; font-weight: 500; color: var(--color-text-muted); font-size: 12.5px; margin-top: 2px; }
.trust-item .ic {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--color-bg);
  color: var(--color-primary);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.trust-item .ic svg { width: 19px; height: 19px; }

/* ---------- Marka hikayesi ---------- */
.brand-story {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
  padding: 88px 0;
}
.brand-story.reverse { grid-template-columns: 1.1fr 0.9fr; }
.brand-story.reverse .brand-story-visual { order: 2; }
.brand-story-visual {
  aspect-ratio: 5/4;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: linear-gradient(160deg, #e7d9c8 0%, #c79f7a 55%, #8f5f3d 100%);
  position: relative;
}
.brand-story-visual img { width: 100%; height: 100%; object-fit: cover; }
.brand-story h2 { font-size: 30px; font-weight: 800; color: var(--color-ink); margin: 0 0 18px; line-height: 1.25; }
.brand-story p { font-size: 15.5px; color: var(--color-text-muted); margin: 0 0 16px; max-width: 48ch; }
.brand-story-stats { display: flex; gap: 36px; margin: 28px 0 30px; }
.brand-story-stats .stat b { display: block; font-size: 26px; font-weight: 800; color: var(--color-ink); }
.brand-story-stats .stat span { font-size: 12.5px; color: var(--color-text-muted); font-weight: 600; }

/* ---------- Section ---------- */
/* ÖNEMLİ: yatay (sol/sağ) dolgu burada KASITLI OLARAK belirtilmiyor (padding-top/
   padding-bottom ile sınırlı, kısayol "padding: 64px 0" DEĞİL). Anasayfadaki kategori
   blokları gibi bazı yerlerde bu class, .container ile AYNI elemanda birlikte
   kullanılıyor (<section class="section container">); ikisi de tam "padding" kısayolu
   tanımlarsa, CSS'te sonra gelen kural (bu kural) diğerini TAMAMEN geçersiz kılar ve
   .container'ın sağladığı 24px yatay boşluk sıfırlanır — mobilde metnin ekran kenarına
   yapışmasına neden olan gerçek bir üretim hatasıydı (2026-09-08). .section tek başına
   (bir .container'ın İÇİNDE, ör. Benzer Ürünler bloğu) kullanıldığında zaten yatay
   boşluğa ihtiyacı yok, bu yüzden bu değişiklik o kullanımı etkilemez. */
.section { padding-top: 64px; padding-bottom: 64px; }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 32px;
  gap: 20px;
  flex-wrap: wrap;
}
.section-head h2 { font-size: 28px; margin: 0 0 6px; font-weight: 800; }
.section-head p { margin: 0; color: var(--color-text-muted); font-size: 15px; }
.section-link { font-weight: 700; color: var(--color-primary); font-size: 14px; white-space: nowrap; }
.section-link:hover { color: var(--color-primary-dark); }

/* ---------- Category cards (ana kategori kartları) ---------- */
.category-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}
.category-card {
  border-radius: var(--radius-lg);
  padding: 24px;
  min-height: 170px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  color: var(--color-ink);
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.category-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--color-primary); }
.category-card-ic {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--color-bg);
  color: var(--color-primary);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
  flex-shrink: 0;
}
.category-card h3 { margin: 0 0 6px; font-size: 16px; font-weight: 800; line-height: 1.25; color: var(--color-ink); }
.category-card p { margin: 0 0 16px; font-size: 13px; color: var(--color-text-muted); line-height: 1.4; }
.category-card-link { margin-top: auto; font-size: 13px; font-weight: 700; color: var(--color-primary); }
.category-card-count { font-weight: 500; color: var(--color-text-muted); }

/* ---------- Product grid ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.product-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  display: flex;
  flex-direction: column;
}
.product-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.product-thumb {
  aspect-ratio: 2/3;
  background: var(--color-primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary-dark);
  font-weight: 800;
  font-size: 15px;
  text-align: center;
  padding: 16px;
  position: relative;
  overflow: hidden;
}
/* Kutu, kataloğun tamamının kaynağı olan Trendyol görsellerinin standart oranıyla
   (1200x1800 = 2:3, dikey) birebir aynı — bu yüzden `cover` normal şartlarda hiç
   kırpma yapmaz, görsel olduğu gibi (boşluksuz, bulanıklaştırmasız, kırpmasız) kutuyu
   doldurur. Yükleme artık sunucuda kareye ZORLAMIYOR (bkz. lib/upload.js) — nadiren
   2:3 dışında bir oranda bir görsel yüklenirse `cover` sadece o görseli tarayıcıda
   (dosyayı bozmadan) kırpar. */
.product-thumb img { width: 100%; height: 100%; object-fit: cover; }
.badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--color-secondary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.badge.out { background: #a3392d; }
.badge.discount { background: var(--color-primary-dark); }
.fav-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.85);
  box-shadow: var(--shadow-sm, 0 2px 6px rgba(0,0,0,0.12));
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}
.fav-btn:hover { transform: scale(1.08); background: #fff; }
.fav-btn.active { background: #fff; }
.fav-btn-static { position: static; flex-shrink: 0; width: 40px; height: 40px; font-size: 19px; box-shadow: none; border: 1.5px solid var(--color-border); }
.product-info { padding: 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-cat { font-size: 11.5px; font-weight: 700; color: var(--color-text-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.product-name { font-size: 15.5px; font-weight: 700; margin: 0; line-height: 1.35; }
.product-price-row { margin-top: auto; display: flex; align-items: baseline; gap: 8px; padding-top: 8px; }
/* Ürün kartındaki "Sepete Ekle" düğmesi — karta tıklanınca ürün sayfasına gitmesin diye
   (bkz. public/js/cart.js initCardAddToCartButtons) tıklamada preventDefault/stopPropagation
   uygulanır; kart hâlâ bir <a> olduğu için görsel/isim tıklaması normal şekilde çalışır. */
.card-add-btn { margin-top: 4px; }
.price { font-size: 17px; font-weight: 800; color: var(--color-primary-dark); }
.price-compare { font-size: 13px; color: var(--color-text-muted); text-decoration: line-through; }

.filter-pills { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; }
.pill {
  padding: 9px 18px;
  border-radius: 999px;
  border: 1.5px solid var(--color-border);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--color-text-muted);
  background: var(--color-surface);
}
.pill.active, .pill:hover { border-color: var(--color-primary); color: var(--color-primary-dark); background: var(--color-primary-light); }

/* ---------- Ürün kataloğu: filtre/sıralama çubuğu ---------- */
.filter-toggle-mobile { display: none; }
.filter-bar {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  margin-bottom: 24px;
}
.filter-bar-row { display: flex; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.filter-field { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--color-text-muted); }
.filter-field select {
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--color-border);
  background: var(--color-bg);
  font-size: 13.5px;
  font-family: inherit;
  color: var(--color-text);
  min-width: 170px;
}
.filter-price-inputs { display: flex; align-items: center; gap: 8px; color: var(--color-text-muted); }
.filter-price-inputs input {
  width: 90px;
  padding: 9px 10px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--color-border);
  background: var(--color-bg);
  font-size: 13.5px;
  font-family: inherit;
  color: var(--color-text);
}
.filter-field-checkbox { flex-direction: row; align-items: center; gap: 8px; font-size: 13.5px; color: var(--color-text); padding-bottom: 9px; }
.filter-field-checkbox input { width: 17px; height: 17px; accent-color: var(--color-primary); }
.filter-apply { padding: 10px 20px; font-size: 13.5px; }
.filter-clear { font-size: 12.5px; font-weight: 700; color: var(--color-text-muted); text-decoration: underline; padding-bottom: 10px; }
.filter-clear:hover { color: var(--color-primary-dark); }
.result-count { font-size: 13.5px; color: var(--color-text-muted); margin: -10px 0 18px; }

.pagination { display: flex; justify-content: center; align-items: center; gap: 6px; margin: 40px 0 20px; flex-wrap: wrap; }
.page-link {
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--color-border);
  display: flex; align-items: center; justify-content: center;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--color-text-muted);
}
.page-link.active { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }
.page-link:hover:not(.active) { border-color: var(--color-primary); color: var(--color-primary-dark); }
.page-ellipsis { color: var(--color-text-muted); padding: 0 4px; }

/* ---------- Product detail ---------- */
.breadcrumb {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  font-size: 12.5px; color: var(--color-text-muted); padding-top: 20px;
}
.breadcrumb a { color: var(--color-text-muted); }
.breadcrumb a:hover { color: var(--color-primary-dark); }
.breadcrumb-sep { color: var(--color-border); }
.breadcrumb-current { color: var(--color-text); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 320px; }
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
  padding: 24px 0 64px;
}
.pd-gallery-wrap {
  /* Grid hücreleri varsayılan olarak içeriğinin (bkz. .pd-thumbs) doğal genişliğine göre
     büyüyebilir — çok sayıda galeri görseli olduğunda küçük resim şeridi ekrandan geniş
     olabiliyor ve bu da tüm sayfayı sağa doğru itip mobilde yatay kaymaya sebep oluyordu.
     min-width: 0 bu hücreyi gerçek grid genişliğine sabitler; şerit kendi içinde
     (overflow-x: auto ile) kaydırılabilir kalır, sayfa artık kaymaz. */
  min-width: 0;
}
.pd-gallery {
  position: relative;
  aspect-ratio: 2/3;
  border-radius: var(--radius-lg);
  background: var(--color-primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
/* Kutu, kataloğun tamamının kaynağı olan Trendyol görsellerinin standart oranıyla
   (1200x1800 = 2:3, dikey) birebir aynı — bu yüzden `cover` normal şartlarda hiç
   kırpma yapmaz, görsel olduğu gibi (boşluksuz, bulanıklaştırmasız, kırpmasız) kutuyu
   doldurur. Yükleme artık sunucuda kareye ZORLAMIYOR (bkz. lib/upload.js) — nadiren
   2:3 dışında bir oranda bir görsel yüklenirse `cover` sadece o görseli tarayıcıda
   (dosyayı bozmadan) kırpar. */
.pd-gallery img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
/* Masaüstünde fareyle görsel üzerine gelince yakınlaştırma (bkz. cart.js
   initProductGallery) — imlecin konumuna göre transform-origin güncellenir ve
   görsel `scale(2)` ile büyütülür; kutunun `overflow:hidden` olması sayesinde
   büyüyen görsel kutunun dışına taşmadan kırpılır. Yalnızca gerçek fare/imleç
   desteği olan cihazlarda etkinleştirilir (dokunmatik cihazlarda emülasyon
   sorunlarından kaçınmak için — bkz. initProductThumbGallery'deki aynı desen). */
#pd-main-image { transition: transform 0.2s ease; will-change: transform; }
#pd-main-image.is-zoomed { transform: scale(2); }
.pd-gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: rgba(20, 15, 10, 0.45);
  color: #fff;
  font-size: 19px;
  line-height: 1;
  cursor: pointer;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}
.pd-gallery-arrow:hover { background: rgba(20, 15, 10, 0.75); }
.pd-gallery-prev { left: 12px; }
.pd-gallery-next { right: 12px; }
.pd-gallery-counter {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 3;
  background: rgba(20, 15, 10, 0.55);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.01em;
}
.pd-gallery-zoom-btn {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 3;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(20, 15, 10, 0.45);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}
.pd-gallery-zoom-btn:hover { background: rgba(20, 15, 10, 0.75); }
.pd-gallery-zoom-btn svg { width: 17px; height: 17px; }
/* Ürün kartlarında birden fazla görsel varsa altta küçük noktalar gösterilir (bkz.
   public/js/cart.js initProductThumbGallery) — fare kart üzerinde soldan sağa
   gezdirildikçe aktif nokta değişir, hangi görselde olunduğunu belli eder. */
.thumb-dots {
  position: absolute;
  bottom: 10px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 5px;
  pointer-events: none;
}
.thumb-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15);
  transition: background 0.15s ease, transform 0.15s ease;
}
.thumb-dot.active { background: #fff; transform: scale(1.3); }
.pd-thumbs-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
}
.pd-thumbs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 2px;
  scroll-behavior: smooth;
  /* Tarayıcının varsayılan yatay kaydırma çubuğu yerine, aşağıdaki
     .pd-thumbs-arrow düğmeleriyle tasarıma uygun bir gezinme sunulur. */
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.pd-thumbs::-webkit-scrollbar { display: none; }
.pd-thumbs-arrow {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}
.pd-thumbs-arrow:hover { background: var(--color-primary-light); }
.pd-thumbs-arrow:disabled { opacity: 0.35; cursor: default; background: var(--color-surface); }
.pd-thumbs-arrow[hidden] { display: none; }
.pd-thumb {
  flex: 0 0 auto;
  width: 64px;
  aspect-ratio: 2/3;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  border: 3px solid transparent;
  background: var(--color-primary-light);
  padding: 0;
  display: block;
  font: inherit;
}
.pd-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pd-thumb.active { border-color: var(--color-primary); box-shadow: 0 0 0 1px var(--color-primary); }

/* Görsel büyütme (lightbox): tam ekran karartılmış katman, ok tuşlarıyla ve
   dokunmatikte kaydırarak gezinme, ESC/arka plana tıklayarak kapatma (bkz.
   cart.js initProductGallery). */
.pd-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(20, 16, 12, 0.94);
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.pd-lightbox.is-open { display: flex; }
body.pd-lightbox-open { overflow: hidden; }
.pd-lightbox-stage { max-width: 92vw; max-height: 82vh; display: flex; align-items: center; justify-content: center; }
.pd-lightbox-stage img { max-width: 92vw; max-height: 82vh; object-fit: contain; border-radius: var(--radius-md); }
.pd-lightbox-close {
  position: absolute;
  top: 18px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease;
}
.pd-lightbox-close:hover { background: rgba(255, 255, 255, 0.22); }
.pd-lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease;
}
.pd-lightbox-arrow:hover { background: rgba(255, 255, 255, 0.22); }
.pd-lightbox-prev { left: 16px; }
.pd-lightbox-next { right: 16px; }
.pd-lightbox-counter {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.12);
  padding: 4px 12px;
  border-radius: 999px;
}
@media (max-width: 640px) {
  .pd-lightbox-arrow { width: 38px; height: 38px; font-size: 22px; }
  .pd-lightbox-close { width: 34px; height: 34px; font-size: 16px; }
}
.pd-info .product-cat { margin-bottom: 10px; }
.pd-info h1.pd-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 20px; font-weight: 700; line-height: 1.35; letter-spacing: -0.01em; margin: 4px 0 14px; }
.pd-price-row { display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.pd-price-row .price { font-size: 28px; }
.pd-club-estimate {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  background: var(--color-primary-light); border: 1px solid var(--color-border);
  border-radius: var(--radius-sm); padding: 10px 14px; margin: 0 0 18px;
  font-size: 13.5px; color: var(--color-text);
}
.pd-desc { color: var(--color-text-muted); font-size: 15px; margin: 22px 0 0; white-space: pre-line; }
.stock-line { font-size: 13.5px; font-weight: 700; margin-bottom: 4px; }
.stock-line.ok { color: var(--color-secondary); }
.stock-line.out { color: #a3392d; }
.pd-shipping-estimate { font-size: 13.5px; font-weight: 600; color: var(--color-secondary); margin: 0 0 22px; }
.qty-row { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.pd-add-btn { margin-bottom: 4px; }
.qty-control { display: flex; align-items: center; border: 1.5px solid var(--color-border); border-radius: 999px; overflow: hidden; }
.qty-control button { width: 38px; height: 38px; border: none; background: var(--color-bg); font-size: 18px; cursor: pointer; }
.qty-control input { width: 46px; text-align: center; border: none; background: transparent; font-size: 15px; font-weight: 700; }
.pd-features { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 10px; }
.pd-features li { font-size: 13.5px; color: var(--color-text-muted); display: flex; gap: 8px; align-items: flex-start; }
.pd-features li::before { content: "✓"; color: var(--color-secondary); font-weight: 800; }

/* ---------- Cart / checkout ---------- */
.page-title { font-size: 30px; font-weight: 800; margin: 44px 0 30px; }
.cart-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; padding-bottom: 70px; align-items: start; }
.cart-table { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); overflow: hidden; }
.cart-row { display: grid; grid-template-columns: 72px 1fr auto auto; gap: 16px; align-items: center; padding: 16px; border-bottom: 1px solid var(--color-border); }
.cart-row:last-child { border-bottom: none; }
.cart-thumb { width: 72px; height: 72px; border-radius: var(--radius-sm); background: var(--color-primary-light); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-name { font-weight: 700; font-size: 14.5px; margin-bottom: 4px; }
.cart-item-price { color: var(--color-text-muted); font-size: 13px; }
.cart-remove { color: #a3392d; font-size: 12.5px; font-weight: 700; margin-top: 6px; cursor: pointer; background: none; border: none; padding: 0; }
.summary-box { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 24px; position: sticky; top: 100px; }
.summary-box h3 { margin: 0 0 18px; font-size: 17px; font-weight: 800; }
.summary-line { display: flex; justify-content: space-between; font-size: 14.5px; margin-bottom: 12px; color: var(--color-text-muted); }
.summary-line.total { color: var(--color-text); font-weight: 800; font-size: 17px; border-top: 1px solid var(--color-border); padding-top: 14px; margin-top: 6px; }
.empty-state { text-align: center; padding: 70px 20px; color: var(--color-text-muted); }
.empty-state .big { font-size: 46px; margin-bottom: 12px; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 16px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; color: var(--color-text); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--color-border);
  font-size: 14.5px;
  font-family: inherit;
  background: var(--color-surface);
  color: var(--color-text);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}
.payment-options { display: grid; gap: 10px; margin-bottom: 22px; }
.payment-option { display: flex; align-items: center; gap: 10px; border: 1.5px solid var(--color-border); border-radius: var(--radius-sm); padding: 13px 16px; font-size: 14px; font-weight: 600; cursor: pointer; }
.payment-option.selected { border-color: var(--color-primary); background: var(--color-primary-light); }
/* Kredi kartı seçeneğinde iyzico'nun resmi "iyzico ile Öde" logosu — iyzico
   işyeri kriterlerinden biri (bkz. footer'daki kart markası rozetleriyle
   birlikte, lib/layout.js footer()). */
.payment-option-cc { display: flex; align-items: center; justify-content: space-between; flex: 1; gap: 12px; flex-wrap: wrap; }
.payment-option-iyzico-logo { height: 16px; width: auto; flex-shrink: 0; }

/* ---------- Footer ---------- */
.site-footer { background: #241b16; color: #d8cfc6; padding: 56px 0 26px; margin-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 1fr 1.15fr 1.15fr; gap: 32px; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-grid h4,
.footer-col-toggle,
.footer-brand > .logo {
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin: 0 0 18px;
  display: block;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 13px; }
.footer-grid a { font-size: 14px; line-height: 1.5; color: #cdc2b6; }
.footer-grid a:hover { color: #fff; }
.footer-grid a svg, .footer-contact-static svg { vertical-align: -3px; margin-right: 3px; flex-shrink: 0; }
.footer-contact-static { display: inline-flex; align-items: flex-start; gap: 0; font-size: 14px; line-height: 1.5; color: #cdc2b6; }
.footer-brand p { font-size: 14px; line-height: 1.6; color: #cdc2b6; max-width: 34ch; margin: 10px 0 18px; }
/* Kabul edilen ödeme yöntemleri (iyzico + kart markaları) — iyzico'nun resmi
   logo paketinden, koyu footer zemine uygun "White" varyant (bkz. lib/layout.js
   footer()). iyzico işyeri kriterlerinden "Visa/MasterCard logoları" ve "iyzico
   ile Öde logosu" bu tek görselle karşılanır. */
.footer-payment-badges {
  display: flex;
  justify-content: center;
  padding-top: 26px;
}
.footer-payment-badges img { height: 28px; width: auto; max-width: 100%; }
.footer-bottom { display: flex; justify-content: space-between; padding-top: 22px; font-size: 12.5px; color: #a89c90; flex-wrap: wrap; gap: 10px; }

/* Sosyal medya ikonları (marka sütunu) */
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: background 0.15s ease, transform 0.15s ease;
}
.footer-social a:hover { background: rgba(255,255,255,0.18); transform: translateY(-1px); }

/* Bize Ulaşın: telefon + WhatsApp ikonu yan yana */
.footer-phone-row { display: flex; align-items: center; gap: 10px; }
.footer-wa-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(37,211,102,0.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}

/* Sütun başlıkları düğme olarak işaretlenir: masaüstünde tıklanamaz, sade bir başlık gibi
   görünür; mobilde akordeon olarak açılıp kapanır (bkz. 560px medya sorgusu + cart.js). */
.footer-col { border: none; }
.footer-col-toggle {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  cursor: default;
  pointer-events: none;
}
.footer-col-body { display: block; }

/* ---------- Misc pages ---------- */
.static-page { padding: 50px 24px 80px; max-width: 780px; margin: 0 auto; }
.static-page h1 { font-size: 32px; margin-bottom: 18px; }
.static-page p { color: var(--color-text-muted); font-size: 15.5px; margin-bottom: 16px; }
.static-page-cta { margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--color-border); }
.static-page-cta-note { margin-bottom: 14px; }
.static-page-cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.info-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 30px 0; }
.info-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 22px; }
.info-card .ic { font-size: 24px; margin-bottom: 10px; }
.info-card h4 { margin: 0 0 6px; font-size: 15px; }
.info-card p { font-size: 13.5px; margin: 0; }

.static-page h3 { font-size: 17px; margin: 26px 0 8px; color: var(--color-ink); }

.faq-list { display: grid; gap: 12px; margin-top: 26px; }
.faq-item {
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  background: var(--color-surface);
}
.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 15px;
  color: var(--color-ink);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::marker { content: ''; }
.faq-item summary::after { content: '+'; font-size: 18px; color: var(--color-text-muted); flex-shrink: 0; }
.faq-item[open] summary::after { content: '−'; }
.faq-item p { margin: 12px 0 0; font-size: 14px; }

.alert { padding: 14px 18px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 600; margin-bottom: 20px; }
.alert-error { background: #fbe4e0; color: #9c3d22; border: 1px solid #f0c3b8; }
.alert-success { background: var(--color-secondary-light); color: #3f5a44; border: 1px solid #c7dbc9; }

.confirm-box { text-align: center; padding: 56px 20px; max-width: 560px; margin: 0 auto; }
.confirm-box .check { width: 74px; height: 74px; border-radius: 50%; background: var(--color-secondary-light); color: var(--color-secondary); display: flex; align-items: center; justify-content: center; font-size: 34px; margin: 0 auto 22px; }
.confirm-box h1 { font-size: 26px; margin-bottom: 10px; }
.confirm-box p { color: var(--color-text-muted); margin-bottom: 26px; }
.order-no-tag { display: inline-block; background: var(--color-primary-light); color: var(--color-primary-dark); font-weight: 800; padding: 8px 18px; border-radius: 999px; margin-bottom: 26px; }
.confirm-box .check.check-fail { background: #fdecea; color: #c0392b; }
.confirm-contact { font-weight: 600; margin-top: -14px; }
.oc-inline-note { font-size: 14px; color: var(--color-text); margin-bottom: 14px; }

/* ---------- Sipariş onay ekranı (requirement: sade, güven veren, aşırı boşluksuz) ---------- */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.oc-wrap { max-width: 880px; padding: 40px 20px 64px; margin: 0 auto; }
.oc-success { text-align: center; margin-bottom: 28px; }
.oc-check {
  width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 16px;
  background: var(--color-secondary-light); color: var(--color-secondary);
  display: flex; align-items: center; justify-content: center; font-size: 30px; font-weight: 800;
}
@media (prefers-reduced-motion: no-preference) {
  .oc-check { animation: oc-pop 0.35s ease-out; }
}
@keyframes oc-pop { from { transform: scale(0.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.oc-success h1 { font-size: 24px; margin: 0 0 8px; color: var(--color-ink); }
.oc-success p { color: var(--color-text-muted); margin: 0 0 14px; font-size: 15px; }

/* Sipariş süreci göstergesi — masaüstünde yatay + bağlayıcı çizgi, mobilde dikey liste
   (yatay taşma oluşturmaması için); yalnızca renkle değil rakam/✓ ikonu ve görünür
   metinle de durum bildirir (bkz. requirement 4 ve 12). */
.oc-steps {
  list-style: none; margin: 0 0 28px; padding: 0;
  display: flex; align-items: flex-start; gap: 6px;
}
.oc-step { flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; position: relative; }
.oc-step:not(:last-child)::after {
  content: ""; position: absolute; top: 15px; left: 55%; width: 90%; height: 2px;
  background: var(--color-border); z-index: 0;
}
.oc-step-done:not(:last-child)::after { background: var(--color-secondary); }
.oc-step-ic {
  width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 13.5px; font-weight: 800; background: var(--color-surface); border: 2px solid var(--color-border);
  color: var(--color-text-muted); position: relative; z-index: 1;
}
.oc-step-done .oc-step-ic { background: var(--color-secondary); border-color: var(--color-secondary); color: #fff; }
.oc-step-current .oc-step-ic { background: var(--color-primary-light); border-color: var(--color-primary); color: var(--color-primary-dark); }
.oc-step-label { font-size: 12.5px; font-weight: 700; color: var(--color-text-muted); }
.oc-step-done .oc-step-label, .oc-step-current .oc-step-label { color: var(--color-ink); }
@media (max-width: 640px) {
  .oc-steps { flex-direction: column; align-items: stretch; gap: 16px; }
  .oc-step { flex-direction: row; text-align: left; gap: 12px; }
  .oc-step:not(:last-child)::after {
    top: 32px; left: 15px; width: 2px; height: calc(100% + 4px);
  }
  .oc-step-label { font-size: 13.5px; }
}

.oc-cancelled { text-align: center; margin-bottom: 28px; }
.oc-cancelled .status-tag { display: inline-block; margin-bottom: 8px; }
.oc-cancelled p { color: var(--color-text-muted); font-size: 14px; margin: 0; }

.oc-shipping-estimate {
  background: var(--color-primary-light); border-radius: var(--radius-md); padding: 16px 20px;
  margin-bottom: 26px; text-align: center;
}
.oc-shipping-estimate p { margin: 0; color: var(--color-primary-dark); font-size: 14.5px; }
.oc-shipping-sub { margin-top: 4px !important; font-size: 13px !important; color: var(--color-text-muted) !important; }

.oc-columns { display: grid; grid-template-columns: 1.4fr 1fr; gap: 22px; align-items: start; margin-bottom: 30px; }
.oc-side { display: flex; flex-direction: column; gap: 22px; }
.oc-card {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-md); padding: 22px;
}
.oc-card h3 { margin: 0 0 16px; font-size: 15.5px; font-weight: 800; }
.oc-card p { margin: 0 0 4px; font-size: 14px; }

.oc-item-row { display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; align-items: start; padding: 12px 0; border-bottom: 1px solid var(--color-border); }
.oc-item-row:last-of-type { border-bottom: none; }
.oc-item-thumb { width: 56px; aspect-ratio: 2/3; border-radius: var(--radius-sm); background: var(--color-primary-light); overflow: hidden; }
.oc-item-thumb img { width: 100%; height: 100%; object-fit: cover; }
.oc-item-name { font-weight: 700; font-size: 14px; margin-bottom: 2px; }
.oc-item-meta { font-size: 12.5px; color: var(--color-text-muted); }
.oc-item-note { font-size: 12px; color: var(--color-primary-dark); margin: 4px 0 0; background: var(--color-primary-light); border-radius: 6px; padding: 4px 8px; display: inline-block; }
.oc-item-total { font-weight: 800; font-size: 14px; white-space: nowrap; }

.oc-totals { margin-top: 6px; }
.oc-discount-line { color: #3f5a44 !important; }
.oc-vat-note { font-size: 12px; color: var(--color-text-muted); margin-top: 12px; }
.oc-payment-method { font-size: 13.5px; margin-top: 10px; }

.oc-delivery-sub { color: var(--color-text-muted); font-size: 13px; }

.oc-club-card { background: var(--color-primary-light); border: 1px solid var(--color-primary); }
.oc-club-badge {
  display: inline-block; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--color-primary-dark); border: 1px solid var(--color-primary); border-radius: 999px; padding: 3px 10px; margin-bottom: 10px;
}
.oc-club-amount { font-weight: 800; font-size: 16px; color: var(--color-ink); margin-bottom: 8px; }
.oc-club-note { font-size: 13px; color: var(--color-text-muted); margin-bottom: 12px; }

.oc-actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.oc-support { text-align: center; margin: 0; }

@media (max-width: 760px) {
  .oc-columns { grid-template-columns: 1fr; }
  .oc-wrap { padding: 28px 16px 48px; }
}

/* ---------- Admin ---------- */
.admin-shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.admin-sidebar { background: #241b16; color: #d8cfc6; padding: 26px 18px; }
.admin-sidebar .logo { color: #fff; font-size: 18px; margin-bottom: 30px; display: flex; align-items: center; gap: 10px; }
.admin-sidebar .logo span { color: #b9ada2; }
.admin-sidebar nav { display: grid; gap: 4px; }
.admin-sidebar a { padding: 11px 14px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 600; color: #d8cfc6; }
.admin-sidebar a:hover, .admin-sidebar a.active { background: rgba(255,255,255,0.08); color: #fff; }
.admin-sidebar .logout { margin-top: 24px; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 18px; }
.admin-main { padding: 34px 40px; background: var(--color-bg); }
.admin-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; flex-wrap: wrap; gap: 14px; }
.admin-header h1 { font-size: 24px; margin: 0; font-weight: 800; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 32px; }
.stat-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 20px; }
.stat-card .num { font-size: 26px; font-weight: 800; color: var(--color-primary-dark); }
.stat-card .label { font-size: 13px; color: var(--color-text-muted); font-weight: 600; margin-top: 4px; }
.admin-table { width: 100%; border-collapse: collapse; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); overflow: hidden; }
.admin-table th, .admin-table td { padding: 13px 16px; text-align: left; font-size: 13.5px; border-bottom: 1px solid var(--color-border); }
.admin-table th { background: var(--color-bg); font-weight: 700; color: var(--color-text-muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.03em; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table .thumb-sm { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; background: var(--color-primary-light); }
.status-tag { font-size: 11.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.02em; }
.status-tag.yeni { background: var(--color-primary-light); color: var(--color-primary-dark); }
.status-tag.hazirlaniyor { background: #fdf1d3; color: #8a6a10; }
.status-tag.kargoda { background: #dbe8f5; color: #2c5a86; }
.status-tag.tamamlandi { background: var(--color-secondary-light); color: #3f5a44; }
.status-tag.iptal { background: #fbe4e0; color: #9c3d22; }
.status-tag.kargoya_hazir { background: #ece3fb; color: #5b3aa0; }
.status-tag.iade_talebi { background: #fdf1d3; color: #9c5a10; }
.status-tag.iade_edildi { background: #fbe4e0; color: #a3392d; }
.row-actions { display: flex; gap: 10px; }
.row-actions a, .row-actions button { font-size: 12.5px; font-weight: 700; color: var(--color-primary); background: none; border: none; cursor: pointer; padding: 0; }
.row-actions .danger { color: #a3392d; }

.admin-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 28px; max-width: 760px; }
.image-upload { border: 2px dashed var(--color-border); border-radius: var(--radius-md); padding: 24px; text-align: center; margin-bottom: 20px; }
.image-upload img { max-width: 180px; border-radius: var(--radius-sm); margin: 0 auto 14px; }
.checkbox-row { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.checkbox-row input { width: auto; }

/* Sipariş durum geçmişi (Faz 1) */
.admin-timeline { list-style: none; margin: 0; padding: 0; }
.admin-timeline-item { position: relative; padding: 0 0 20px 22px; border-left: 2px solid var(--color-border); }
.admin-timeline-item:last-child { border-left-color: transparent; padding-bottom: 0; }
.admin-timeline-item::before { content: ''; position: absolute; left: -6px; top: 2px; width: 10px; height: 10px; border-radius: 50%; background: var(--color-primary); }
.admin-timeline-item .tl-status { font-weight: 700; font-size: 14px; }
.admin-timeline-item .tl-date { font-size: 12.5px; color: var(--color-text-muted); margin-top: 2px; }
.admin-timeline-item .tl-note { font-size: 13px; color: var(--color-text-muted); margin-top: 4px; }

/* Kargo bilgisi modalı (Faz 1) — mevcut ürün formundaki inline-JS deseniyle aynı tarzda */
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(20,16,13,0.45); z-index: 100; align-items: center; justify-content: center; padding: 16px; }
.modal-overlay.open { display: flex; }
.modal-box { background: var(--color-surface); border-radius: var(--radius-md); padding: 26px; max-width: 420px; width: 100%; }
.modal-box h3 { margin-top: 0; }
.modal-box .form-group { margin-bottom: 14px; }
.modal-box .modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; }

.login-shell { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(160deg, var(--color-primary-light), var(--color-bg)); }
.login-box { background: var(--color-surface); border-radius: var(--radius-lg); padding: 40px; width: 100%; max-width: 380px; box-shadow: var(--shadow-lg); }
.login-box .logo { display: block; text-align: center; margin-bottom: 6px; font-size: 22px; }
.login-box p.hint { text-align: center; color: var(--color-text-muted); font-size: 13.5px; margin-bottom: 26px; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) and (min-width: 981px) {
  .category-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 980px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-strip { grid-template-columns: repeat(2, 1fr); }
  /* Filtre/sıralama çubuğu mobilde varsayılan olarak kapalıdır; "Filtrele ve Sırala"
     düğmesiyle açılıp kapanan bir panel (drawer) gibi davranır (bkz. cart.js). */
  .filter-toggle-mobile {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 16px;
    margin-bottom: 14px;
    border-radius: var(--radius-md);
    border: 1.5px solid var(--color-border);
    background: var(--color-surface);
    color: var(--color-text);
    font-size: 13.5px;
    font-weight: 700;
  }
  .filter-bar { display: none; }
  .filter-bar.open { display: block; }
  .filter-bar-row { flex-direction: column; align-items: stretch; }
  .filter-field select { min-width: 0; width: 100%; }
  .filter-price-inputs input { flex: 1; width: auto; }
  .filter-apply { width: 100%; }
  .product-detail { grid-template-columns: 1fr; }
  .cart-layout { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .mobile-nav-toggle { display: flex; align-items: center; justify-content: center; }
  /* Masaüstü yatay menü (.main-nav — Kategoriler mega-menü + Club) mobilde hiç
     gösterilmez; yerine sayfayı aşağı itmeyen, tam yükseklikte açılan
     #mobile-drawer kullanılır (bkz. lib/layout.js mobileDrawer, aşağıdaki
     ".mobile-drawer" kuralları ve cart.js initMobileNav). */
  .main-nav { display: none; }
  .site-header .inner { position: relative; flex-wrap: wrap; }
  .header-search { order: 3; max-width: none; width: 100%; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-sidebar { display: none; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .info-cards { grid-template-columns: 1fr; }
  .trust-strip { grid-template-columns: 1fr; margin-top: 32px; }
  .brand-story, .brand-story.reverse { grid-template-columns: 1fr; gap: 28px; padding: 56px 0; }
  .brand-story.reverse .brand-story-visual { order: -1; }
  .brand-story-visual { aspect-ratio: 16/10; }
}
@media (max-width: 560px) {
  .account-link { padding: 8px 10px; gap: 0; }
  .account-link .account-label { display: none; }
  .hero h1 { font-size: 32px; }
  .category-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .cart-row { grid-template-columns: 56px 1fr; }
  .cart-row .price, .cart-row .qty-control { grid-column: 2; }
  .brand-story h2 { font-size: 24px; }

  /* Footer: mobilde sütunlar akordeon gibi açılıp kapanır, footer'ın fazla uzamasını engeller. */
  .footer-grid { grid-template-columns: 1fr; gap: 0; }
  .footer-col {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 16px 0;
  }
  .footer-col-toggle {
    cursor: pointer;
    pointer-events: auto;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .footer-col-toggle::after {
    content: '+';
    font-size: 18px;
    color: #cdc2b6;
    flex-shrink: 0;
  }
  .footer-col-toggle[aria-expanded="true"]::after { content: '−'; }
  .footer-col-body { display: none; padding-top: 14px; }
  .footer-col-body.open { display: block; }
  .footer-brand { padding-bottom: 20px; }
}

/* ==========================================================================
   Checkout akışı: "Ödemeye Geçmeden Önce" (misafir/üye seçim) ekranı ve sade
   checkout header/ilerleme göstergesi. Yalnızca lib/layout.js page({layout:'checkout'})
   ile render edilen sayfalarda kullanılır — normal site header/footer'ı YOK.
   ========================================================================== */
:root {
  /* Yalnızca YOGNETIC Club kartında "sınırlı altın" detay için — sayfanın geri kalanında
     kullanılmaz, marka paletine (krem/koyu kahverengi) ölçülü bir vurgu eklemek içindir.
     Orijinal ton (#b8973f) beyaz zemin/metin ile WCAG AA eşiğinin (4.5:1) oldukça altında
     kalıyordu (~2.8:1) — 2026-09-02 denetim raporu, B19. Aynı "altın" hissi korunarak
     koyultuldu (~4.7:1). */
  --color-gold: #7d672b;
  --color-gold-light: #f7edd7;
}

body.checkout-layout { background: var(--color-bg); }

.checkout-header {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 40;
}
.checkout-header-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 14px 20px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
}
.checkout-header-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-text);
  font-weight: 600;
  font-size: 14px;
  min-height: 44px;
  justify-self: start;
}
.checkout-header-back:hover { color: var(--color-primary-dark); }
.checkout-header-logo { justify-self: center; display: flex; align-items: center; min-height: 44px; }
.checkout-header-logo img { height: 22px; width: auto; display: block; }
.checkout-header-secure {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-secondary);
  font-weight: 600;
  font-size: 13px;
  justify-self: end;
  text-align: right;
}
.checkout-header-back:focus-visible,
.checkout-header-logo:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: 4px;
}

.checkout-progress { background: var(--color-surface); border-bottom: 1px solid var(--color-border); }
.checkout-progress ol {
  list-style: none;
  margin: 0 auto;
  padding: 14px 20px;
  max-width: 720px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.checkout-progress-step {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-muted);
  white-space: nowrap;
}
.checkout-progress-step:not(:last-child)::after {
  content: '';
  width: 20px;
  height: 1.5px;
  background: var(--color-border);
  margin: 0 4px;
  flex-shrink: 0;
}
.checkout-progress-icon {
  width: 20px; height: 20px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--color-border);
  color: var(--color-text-muted);
  flex-shrink: 0;
}
.checkout-progress-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.checkout-progress-step.is-done { color: var(--color-secondary); }
.checkout-progress-step.is-done .checkout-progress-icon { border-color: var(--color-secondary); color: var(--color-secondary); }
.checkout-progress-step.is-active { color: var(--color-ink); }
.checkout-progress-step.is-active .checkout-progress-icon { border-color: var(--color-ink); background: var(--color-ink); color: #fff; }
.checkout-progress-step.is-pending { color: var(--color-text-muted); }

.checkout-guest-wrap { max-width: 560px; margin: 0 auto; padding: 36px 20px 64px; }
.checkout-guest-wrap .page-title { margin: 0 0 4px; font-size: 25px; }
.checkout-guest-subtitle { color: var(--color-text-muted); margin: 0 0 26px; font-size: 14.5px; }

.checkout-summary-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.checkout-summary-card-info h3 { margin: 0 0 4px; font-size: 14px; color: var(--color-text-muted); font-weight: 600; }
.checkout-summary-card-line { font-size: 14px; color: var(--color-text); margin: 2px 0; }
.checkout-summary-card-total { font-size: 19px; font-weight: 800; color: var(--color-ink); }
.checkout-summary-card-shipping { color: var(--color-secondary); font-weight: 700; font-size: 13px; }
.checkout-summary-card-link { font-size: 13.5px; font-weight: 600; white-space: nowrap; }

.checkout-option-card {
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px 22px;
  margin-bottom: 16px;
}
.checkout-option-card.is-primary { border-color: var(--color-ink); box-shadow: var(--shadow-sm); }
.checkout-option-card h2 {
  margin: 0 0 6px;
  font-size: 17px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.checkout-option-card p { margin: 0 0 16px; color: var(--color-text-muted); font-size: 14px; line-height: 1.5; }
.checkout-option-icon {
  width: 30px; height: 30px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--color-primary-light); color: var(--color-primary-dark);
  flex-shrink: 0;
}
.checkout-login-row { display: flex; gap: 10px; }
.checkout-login-row .btn { flex: 1; }

.checkout-club-card {
  background: var(--color-gold-light);
  border: 1.5px solid var(--color-gold);
  border-radius: var(--radius-md);
  padding: 24px 22px;
}
.checkout-club-card h2 { color: var(--color-ink); }
.checkout-club-card .checkout-option-icon { background: #fff; color: var(--color-gold); border: 1px solid var(--color-gold); }
.checkout-club-card .btn-primary { background: var(--color-gold); }
.checkout-club-card .btn-primary:hover { background: #9c7f30; }
.checkout-club-estimate { font-weight: 800; color: var(--color-gold); }
.checkout-club-note { font-size: 12.5px; color: var(--color-text-muted); margin: 10px 0 0; }

.checkout-option-card a.btn,
.checkout-option-card button.btn { min-height: 44px; }

@media (max-width: 640px) {
  .checkout-header-inner { padding: 12px 14px; gap: 8px; }
  .checkout-header-back span { display: none; } /* ikon yeterli, metin dar ekranda taşmayı önlemek için gizlenir */
  .checkout-header-secure span { display: none; }
  .checkout-progress ol { padding: 10px 14px; gap: 3px; }
  .checkout-progress-step { gap: 0; }
  /* Dar ekranda yalnızca ikon görünür kalır; adım adı ekrandan kaldırılmaz, sadece
     sr-only tekniğiyle (clip) görsel olarak gizlenir — ekran okuyucular hâlâ okur. */
  .checkout-progress-label {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
  }
  .checkout-progress-step:not(:last-child)::after { width: 12px; margin: 0 2px; }
  .checkout-guest-wrap { padding: 22px 14px 48px; }
  .checkout-option-card, .checkout-club-card { padding: 18px 16px; }
  .checkout-summary-card { padding: 14px 16px; }
  .checkout-login-row { flex-direction: column; }
}

