/* ==========================================================================
   LisansX — Tasarım Sistemi
   Renkler --accent / --accent-rgb değişkenleri sunucu tarafından enjekte edilir.
   Tema geçişi <html data-theme="dark|light"> özniteliğiyle yapılır.
   ========================================================================== */

/* --- Tokenler ------------------------------------------------------------ */
:root {
  color-scheme: light;

  --bg:            #f5f7fc;
  --bg-elevated:   #ffffff;
  --surface:       #ffffff;
  --surface-2:     #eef1f8;
  --surface-3:     #e5e9f3;
  --border:        #e2e6f0;
  --border-strong: #ced4e4;

  --text:          #0e1220;
  --text-2:        #495168;
  --text-3:        #7d8599;
  --text-inverse:  #ffffff;

  --success:       #12a150;
  --success-bg:    rgba(18, 161, 80, .1);
  --danger:        #e5484d;
  --danger-bg:     rgba(229, 72, 77, .1);
  --warning:       #d97706;
  --warning-bg:    rgba(217, 119, 6, .1);

  --shadow-sm:  0 1px 2px rgba(16, 22, 44, .06), 0 1px 3px rgba(16, 22, 44, .04);
  --shadow:     0 2px 4px rgba(16, 22, 44, .04), 0 8px 24px rgba(16, 22, 44, .07);
  --shadow-lg:  0 4px 8px rgba(16, 22, 44, .05), 0 16px 48px rgba(16, 22, 44, .12);
  --shadow-accent: 0 8px 28px rgba(var(--accent-rgb), .32);

  --radius-sm: 10px;
  --radius:    14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 999px;

  --container: 1280px;
  --header-h: 72px;

  --ease: cubic-bezier(.4, 0, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  /* Tipografi ölçeği — tabanı 16px, önceki tasarımdan belirgin biçimde büyük */
  --fs-xs:   .8125rem; /* 13 */
  --fs-sm:   .9375rem; /* 15 */
  --fs-base: 1rem;     /* 16 */
  --fs-md:   1.0625rem;/* 17 */
  --fs-lg:   1.1875rem;/* 19 */
  --fs-xl:   1.375rem; /* 22 */
  --fs-2xl:  1.75rem;  /* 28 */
  --fs-3xl:  2.25rem;  /* 36 */
  --fs-4xl:  3rem;     /* 48 */
}

html[data-theme="dark"] {
  color-scheme: dark;

  --bg:            #080a10;
  --bg-elevated:   #10131d;
  --surface:       #12151f;
  --surface-2:     #1a1e2b;
  --surface-3:     #232839;
  --border:        #232839;
  --border-strong: #333a4f;

  --text:          #eef1f8;
  --text-2:        #a3acc2;
  --text-3:        #737d95;

  --success:       #3dd68c;
  --success-bg:    rgba(61, 214, 140, .12);
  --danger:        #ff6369;
  --danger-bg:     rgba(255, 99, 105, .12);
  --warning:       #f5a524;
  --warning-bg:    rgba(245, 165, 36, .12);

  --shadow-sm:  0 1px 2px rgba(0, 0, 0, .3);
  --shadow:     0 4px 16px rgba(0, 0, 0, .4);
  --shadow-lg:  0 16px 48px rgba(0, 0, 0, .55);
}

/* --- Temel --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: var(--fs-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
/* flex-shrink: 0 ZORUNLU — bkz. assets/css/panel.css'teki aynı satırın notu:
   `display:block` bir svg'yi flex konteynerde tek/son çocuk yaptığında,
   flex-shrink'in varsayılanı (1) ikonu 0 genişliğe kadar küçültüp yok edebiliyor. */
img, svg { max-width: 100%; display: block; flex-shrink: 0; }
button { font: inherit; }

h1, h2, h3, h4 {
  margin: 0;
  line-height: 1.25;
  letter-spacing: -.02em;
  font-weight: 700;
}
h1 { font-size: var(--fs-3xl); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-xl); }
p  { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

::selection { background: rgba(var(--accent-rgb), .25); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.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;
}

/* --- Scroll reveal -------------------------------------------------------
   ÖNEMLİ: Gizleme yalnızca <html class="js"> varken uygulanır. Bu sınıfı
   <head> içindeki satır içi betik ekler. JavaScript devre dışıysa ya da
   app.js yüklenemezse içerik gizlenmez — sayfa boş görünmez. */
html.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
html.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* --- Butonlar ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #fff;
  font-size: var(--fs-sm);
  font-weight: 650;
  line-height: 1.2;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease), border-color .18s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-accent); }
.btn:active { transform: translateY(0); }

.btn--ghost {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text);
}
.btn--ghost:hover { background: var(--surface-2); box-shadow: none; border-color: var(--accent); }

.btn--soft {
  background: rgba(var(--accent-rgb), .12);
  color: var(--accent);
}
.btn--soft:hover { background: rgba(var(--accent-rgb), .2); box-shadow: none; }

.btn--danger { background: var(--danger); }
.btn--danger:hover { box-shadow: 0 8px 24px rgba(229, 72, 77, .3); }

.btn--sm { padding: 9px 16px; font-size: var(--fs-xs); border-radius: 9px; }
.btn--lg { padding: 16px 32px; font-size: var(--fs-md); }
.btn--block { width: 100%; }
.btn[disabled], .btn--disabled { opacity: .5; pointer-events: none; }

/* --- Form ---------------------------------------------------------------- */
.field { margin-bottom: 18px; }
.field:last-child { margin-bottom: 0; }

.label {
  display: block;
  margin-bottom: 8px;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text-2);
}

.input, .select, .textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  color: var(--text);
  font-family: inherit;
  font-size: var(--fs-base);
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.input::placeholder, .textarea::placeholder { color: var(--text-3); }
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(var(--accent-rgb), .14);
}
.textarea { resize: vertical; min-height: 110px; line-height: 1.6; }
.select {
  appearance: none;
  padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%237d8599' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  cursor: pointer;
}
.input:disabled, .select:disabled { background: var(--surface-2); color: var(--text-3); cursor: not-allowed; }

.checkbox {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: var(--fs-sm);
  color: var(--text-2);
  cursor: pointer;
  user-select: none;
}
.checkbox input { width: 18px; height: 18px; accent-color: var(--accent); cursor: pointer; }

/* --- Kart ---------------------------------------------------------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.card--pad { padding: 28px; }
.card--flat { box-shadow: none; }

/* --- Rozet --------------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 11px;
  border-radius: var(--radius-full);
  font-size: var(--fs-xs);
  font-weight: 650;
  line-height: 1.5;
  white-space: nowrap;
}
.badge--accent  { background: rgba(var(--accent-rgb), .13); color: var(--accent); }
.badge--success { background: var(--success-bg); color: var(--success); }
.badge--danger  { background: var(--danger-bg);  color: var(--danger); }
.badge--warning { background: var(--warning-bg); color: var(--warning); }
.badge--muted   { background: var(--surface-2);  color: var(--text-3); }

/* --- Uyarı --------------------------------------------------------------- */
.alert {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 15px 18px;
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm);
  line-height: 1.55;
  margin-bottom: 16px;
  border: 1px solid transparent;
}
.alert--success { background: var(--success-bg); color: var(--success); border-color: rgba(18,161,80,.22); }
.alert--error   { background: var(--danger-bg);  color: var(--danger);  border-color: rgba(229,72,77,.22); }
.alert--info    { background: rgba(var(--accent-rgb), .1); color: var(--accent); border-color: rgba(var(--accent-rgb), .22); }

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-elevated); /* color-mix desteklemeyen tarayıcılar için */
  background: color-mix(in srgb, var(--bg-elevated) 88%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}
@supports not (backdrop-filter: blur(1px)) {
  .site-header { background: var(--bg-elevated); }
}

.topbar {
  border-bottom: 1px solid var(--border);
  font-size: var(--fs-xs);
  color: var(--text-3);
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 40px;
}
.topbar__note { display: flex; align-items: center; gap: 7px; }
.topbar__tools { display: flex; align-items: center; gap: 6px; }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: var(--text-2);
  cursor: pointer;
  transition: background .18s var(--ease), color .18s var(--ease);
}
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.icon-btn--wide { width: auto; padding: 0 11px; font-size: var(--fs-xs); font-weight: 600; }

.lang-switch { display: flex; gap: 2px; padding: 3px; background: var(--surface-2); border-radius: 8px; }
.lang-switch a {
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--text-3);
  transition: background .18s var(--ease), color .18s var(--ease);
}
.lang-switch a:hover { color: var(--text); }
.lang-switch a.is-active { background: var(--bg-elevated); color: var(--accent); box-shadow: var(--shadow-sm); }

.header-main {
  display: flex;
  align-items: center;
  gap: 28px;
  height: var(--header-h);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: var(--fs-xl);
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--text);
  flex-shrink: 0;
}
.logo__mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--accent);
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 55%, #000));
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  box-shadow: var(--shadow-accent);
}
.logo img { height: 36px; width: auto; }

/* Arama — header'ın merkezinde, en geniş öğe */
.search {
  position: relative;
  flex: 1;
  max-width: 620px;
}
.search__input {
  width: 100%;
  height: 46px;
  padding: 0 52px 0 46px;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  background: var(--surface-2);
  color: var(--text);
  font-size: var(--fs-sm);
  transition: background .18s var(--ease), border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.search__input::placeholder { color: var(--text-3); }
.search__input:focus {
  outline: none;
  background: var(--bg-elevated);
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(var(--accent-rgb), .14);
}
.search__icon {
  position: absolute;
  left: 17px; top: 50%;
  transform: translateY(-50%);
  color: var(--text-3);
  pointer-events: none;
}
.search__submit {
  position: absolute;
  right: 5px; top: 5px;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  transition: transform .18s var(--ease);
}
.search__submit:hover { transform: scale(1.06); }

/* --- Canlı arama öneri paneli --------------------------------------------- */
.search-suggest {
  position: absolute;
  top: calc(100% + 8px); left: 0; right: 0;
  z-index: 120;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: var(--radius, 14px);
  background: var(--bg-elevated);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .28);
  max-height: 70vh;
  overflow-y: auto;
}
.search-suggest[hidden] { display: none; }
.search-suggest__item {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 10px;
  border-radius: var(--radius-sm, 10px);
  color: var(--text);
  transition: background .14s var(--ease);
}
.search-suggest__item:hover,
.search-suggest__item.is-active { background: var(--surface-2); }
.search-suggest__thumb {
  flex: none;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 9px;
  background: var(--surface-2);
  overflow: hidden;
}
.search-suggest__thumb img { width: 100%; height: 100%; object-fit: cover; }
.search-suggest__ph { width: 18px; height: 18px; border-radius: 5px; background: var(--border); }
.search-suggest__body { flex: 1; min-width: 0; }
.search-suggest__name {
  display: block;
  font-size: var(--fs-sm); font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.search-suggest__cat { display: block; font-size: var(--fs-xs); color: var(--text-3); margin-top: 2px; }
.search-suggest__price { flex: none; font-size: var(--fs-sm); font-weight: 700; color: var(--accent); }
.search-suggest__all {
  display: block;
  margin-top: 4px; padding: 11px 10px;
  border-top: 1px solid var(--border);
  font-size: var(--fs-xs); font-weight: 650;
  color: var(--accent);
  text-align: center;
}
.search-suggest__all:hover { background: var(--surface-2); border-radius: var(--radius-sm, 10px); }

.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; flex-shrink: 0; }

.cart-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--text);
  transition: background .18s var(--ease), transform .18s var(--ease);
}
.cart-link:hover { background: var(--surface-3); transform: translateY(-1px); }
.cart-link__count {
  position: absolute;
  top: -5px; right: -5px;
  min-width: 21px; height: 21px;
  display: grid; place-items: center;
  padding: 0 6px;
  border-radius: var(--radius-full);
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  border: 2px solid var(--bg-elevated);
}

.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 44px;
  padding: 0 16px 0 8px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  font-size: var(--fs-sm);
  font-weight: 600;
  transition: background .18s var(--ease);
}
.user-chip:hover { background: var(--surface-3); }
.user-chip__avatar {
  display: grid; place-items: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--accent);
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 50%, #000));
  color: #fff;
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
}

.nav-toggle { display: none; }

/* Kategori çubuğu */
.catbar { border-top: 1px solid var(--border); }
.catbar__inner {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 50px;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
}
.catbar__inner::-webkit-scrollbar { display: none; }
.catbar a {
  padding: 8px 15px;
  border-radius: 9px;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text-2);
  white-space: nowrap;
  scroll-snap-align: start;
  transition: background .18s var(--ease), color .18s var(--ease);
}
.catbar a:hover { background: var(--surface-2); color: var(--text); }
.catbar a.is-active { background: rgba(var(--accent-rgb), .12); color: var(--accent); }
.catbar__spacer { margin-left: auto; }

@media (min-width: 1024px) {
  .catbar__inner {
    display: grid;
    grid-template-columns: repeat(var(--catbar-columns, 5), minmax(0, 1fr));
    align-items: stretch;
    height: auto;
    gap: 5px 8px;
    padding-top: 8px;
    padding-bottom: 8px;
    overflow: visible;
  }
  .catbar a {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 42px;
    padding: 8px;
    white-space: normal;
    text-align: center;
    line-height: 1.35;
    overflow-wrap: anywhere;
  }
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  margin-top: 32px;
  padding: 72px 48px;
  border-radius: var(--radius-xl);
  background: var(--accent); /* color-mix desteklemeyen tarayıcılar için */
  background:
    radial-gradient(1000px 420px at 82% -10%, rgba(var(--accent-rgb), .5), transparent 62%),
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 92%, #000) 0%, color-mix(in srgb, var(--accent) 45%, #12102b) 100%);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 12% 78%, rgba(255,255,255,.14) 0, transparent 42%),
    radial-gradient(circle at 92% 22%, rgba(255,255,255,.1) 0, transparent 38%);
  pointer-events: none;
  z-index: -1;
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  margin-bottom: 22px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,.16);
  backdrop-filter: blur(6px);
  font-size: var(--fs-xs);
  font-weight: 650;
}
.hero h1, .hero .hero__title {
  font-size: clamp(2rem, 4.6vw, var(--fs-4xl));
  max-width: 16ch;
  margin-bottom: 18px;
  color: #fff;
}
.hero__text {
  max-width: 56ch;
  margin-bottom: 32px;
  font-size: var(--fs-lg);
  line-height: 1.6;
  color: rgba(255,255,255,.86);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .btn { background: #fff; color: #12142b; }
.hero .btn:hover { box-shadow: 0 10px 32px rgba(0,0,0,.28); }
.hero .btn--ghost { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.34); color: #fff; }
.hero .btn--ghost:hover { background: rgba(255,255,255,.22); }

/* --- Hero kaydırmalı (2+ banner varsa) --------------------------------- */
/* Slaytlar yatay şeritte yan yana durur (scroll-snap): mobilde parmakla kaydırınca slayt parmağı
   takip eder, bırakınca yerine oturur; telefonun kendi akıcı kaydırması kullanılır. Oklar/noktalar
   ve otomatik geçiş şeridi JS ile kaydırır. Flex satırında tüm slaytlar en uzunun boyunu alır. */
.hero-slider { position: relative; margin-top: 32px; }
.hero-slider__track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  border-radius: var(--radius-xl);
}
.hero-slider__track::-webkit-scrollbar { display: none; }
.hero-slider__track > .hero {
  flex: 0 0 100%;
  margin-top: 0;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}
.hero-slider__dots {
  position: absolute;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}
.hero-slider__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  border: 0;
  background: rgba(255,255,255,.4);
  cursor: pointer;
  padding: 0;
  transition: background .16s var(--ease, ease), width .16s var(--ease, ease);
}
.hero-slider__dot:hover { background: rgba(255,255,255,.7); }
.hero-slider__dot.is-active { background: #fff; width: 22px; border-radius: var(--radius-full); }
.hero-slider__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.3);
  background: rgba(10,10,25,.35);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  z-index: 2;
  opacity: 0;
  transition: opacity .16s var(--ease, ease), background .16s var(--ease, ease);
}
.hero-slider:hover .hero-slider__nav { opacity: 1; }
.hero-slider__nav:hover { background: rgba(10,10,25,.6); }
.hero-slider__nav--prev { left: 18px; }
.hero-slider__nav--prev svg { transform: rotate(180deg); }
.hero-slider__nav--next { right: 18px; }
@media (max-width: 720px) {
  .hero-slider__nav { display: none; } /* dar ekranda dokunmatik kaydırma/nokta yeterli */
}

/* ==========================================================================
   BÖLÜM BAŞLIKLARI
   ========================================================================== */
.section { margin-top: 68px; }
.section:first-of-type { margin-top: 44px; }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}
.section-head__title { display: flex; flex-direction: column; gap: 5px; }
.section-head h2 { font-size: var(--fs-2xl); }
.section-head p { margin: 0; font-size: var(--fs-sm); color: var(--text-3); }
.section-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-sm);
  font-weight: 650;
  color: var(--accent);
  white-space: nowrap;
  transition: gap .18s var(--ease);
}
.section-link:hover { gap: 11px; }

/* ==========================================================================
   KATEGORİ KARTLARI
   ========================================================================== */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
.cat-rail { position: relative; }
.cat-grid--rail {
  grid-template-columns: repeat(var(--category-columns, 4), minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  grid-auto-flow: column;
  grid-auto-columns: minmax(200px, 1fr);
  gap: 16px;
  overflow-x: auto;
  padding: 2px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) transparent;
}
.cat-grid--rail .cat-card {
  min-width: 0;
  min-height: 164px;
  scroll-snap-align: start;
}
.cat-rail__nav {
  position: absolute;
  top: 50%; z-index: 2;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  background: color-mix(in srgb, var(--bg-elevated) 92%, transparent);
  color: var(--text);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transform: translateY(-50%);
  transition: background .18s var(--ease), color .18s var(--ease), transform .18s var(--ease);
}
.cat-rail__nav:hover { background: var(--accent); color: #fff; transform: translateY(-50%) scale(1.06); }
.cat-rail__nav--prev { left: -20px; }
.cat-rail__nav--prev svg { transform: rotate(180deg); }
.cat-rail__nav--next { right: -20px; }
.cat-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow: hidden;
  transition: transform .28s var(--ease-out), border-color .28s var(--ease), box-shadow .28s var(--ease);
}
.cat-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(150deg, rgba(var(--accent-rgb), .13), transparent 58%);
  opacity: 0;
  transition: opacity .28s var(--ease);
}
.cat-card:hover { transform: translateY(-5px); border-color: rgba(var(--accent-rgb), .45); box-shadow: var(--shadow); }
.cat-card:hover::before { opacity: 1; }
.cat-card > * { position: relative; }

.cat-card__icon {
  display: grid;
  place-items: center;
  width: 54px; height: 54px;
  border-radius: 15px;
  background: rgba(var(--accent-rgb), .12);
  color: var(--accent);
  font-size: 26px;
  transition: transform .28s var(--ease-out);
}
.cat-card:hover .cat-card__icon { transform: scale(1.08) rotate(-4deg); }
.cat-card__icon img { width: 30px; height: 30px; object-fit: contain; }

.cat-card__name {
  font-size: var(--fs-md);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -.01em;
}
.cat-card__meta { font-size: var(--fs-xs); color: var(--text-3); }
.cat-card__arrow {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-xs);
  font-weight: 650;
  color: var(--accent);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity .28s var(--ease), transform .28s var(--ease);
}
.cat-card:hover .cat-card__arrow { opacity: 1; transform: none; }

/* ==========================================================================
   ÜRÜN KARTLARI
   ========================================================================== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(248px, 1fr));
  gap: 20px;
}

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow: hidden;
  transition: transform .28s var(--ease-out), box-shadow .28s var(--ease), border-color .28s var(--ease);
}
.product-card:hover {
  transform: translateY(-6px);
  border-color: rgba(var(--accent-rgb), .4);
  box-shadow: var(--shadow-lg);
}

.product-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(145deg, var(--surface-2), var(--surface-3));
  overflow: hidden;
}
.product-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease-out);
}
.product-card:hover .product-card__media img { transform: scale(1.06); }
.product-card__placeholder {
  width: 100%; height: 100%;
  display: grid; place-items: center;
  font-size: 40px;
  color: var(--text-3);
  opacity: .5;
}
.product-card__flags {
  position: absolute;
  top: 12px; left: 12px;
  display: flex; flex-direction: column; gap: 6px;
  align-items: flex-start;
}
.product-card__flags .badge {
  background: rgba(0,0,0,.62);
  color: #fff;
  backdrop-filter: blur(6px);
  font-size: 11px;
}
.product-card__flags .badge--sale { background: var(--danger); }
.product-card__flags .badge--out  { background: rgba(20,20,26,.82); }

.product-card__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 18px 20px;
  flex: 1;
}
.product-card__cat {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--accent);
}
.product-card__title {
  font-size: var(--fs-md);
  font-weight: 650;
  line-height: 1.4;
  letter-spacing: -.01em;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.8em;
}
.product-card__foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 6px;
}
.product-card__price { display: flex; flex-direction: column; gap: 1px; }
.product-card__price-old {
  font-size: var(--fs-xs);
  color: var(--text-3);
  text-decoration: line-through;
}
.product-card__price-now {
  font-size: var(--fs-lg);
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--text);
}
.product-card__stock { font-size: var(--fs-xs); color: var(--text-3); }
.product-card__stock--ok  { color: var(--success); }
.product-card__stock--low { color: var(--warning); }

.product-card__add {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  flex-shrink: 0;
  border: 0;
  border-radius: 12px;
  background: rgba(var(--accent-rgb), .12);
  color: var(--accent);
  cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.product-card__add:hover { background: var(--accent); color: #fff; transform: scale(1.06); }
.product-card__add:disabled { opacity: .4; pointer-events: none; }

/* Kartın tamamı tıklanabilir; sepete ekle butonu bağlantının üstünde kalır */
.product-card__link { position: absolute; inset: 0; z-index: 1; }
.product-card__add, .product-card__flags { position: relative; z-index: 2; }

/* ==========================================================================
   GÜVEN ŞERİDİ
   ========================================================================== */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(228px, 1fr));
  gap: 16px;
}
.trust-item {
  display: flex;
  gap: 15px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color .25s var(--ease), transform .25s var(--ease-out);
}
.trust-item:hover { border-color: rgba(var(--accent-rgb), .4); transform: translateY(-3px); }
.trust-item__icon {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  flex-shrink: 0;
  border-radius: 12px;
  background: rgba(var(--accent-rgb), .12);
  color: var(--accent);
}
.trust-item__title { font-size: var(--fs-sm); font-weight: 700; margin-bottom: 3px; }
.trust-item__text  { font-size: var(--fs-xs); color: var(--text-3); line-height: 1.55; }

/* ==========================================================================
   ÜRÜN DETAY
   ========================================================================== */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 26px 0 22px;
  font-size: var(--fs-sm);
  color: var(--text-3);
}
.breadcrumb a { transition: color .18s var(--ease); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb__sep { opacity: .5; }
.breadcrumb__current { color: var(--text-2); }

.product-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}
.product-gallery-wrap {
  position: sticky;
  top: calc(var(--header-h) + 24px);
}
.product-gallery {
  aspect-ratio: 4 / 3;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, var(--surface-2), var(--surface-3));
  overflow: hidden;
  display: grid;
  place-items: center;
}
.product-gallery__main { width: 100%; height: 100%; object-fit: contain; padding: 18px; }
.product-gallery__placeholder { font-size: 72px; opacity: .35; }
.product-gallery__nav {
  position: absolute;
  top: 50%; z-index: 1;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  background: color-mix(in srgb, var(--bg-elevated) 88%, transparent);
  color: var(--text);
  box-shadow: var(--shadow-sm);
  font: 400 32px/1 sans-serif;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background .18s var(--ease), color .18s var(--ease), transform .18s var(--ease);
}
.product-gallery__nav:hover { background: var(--accent); color: #fff; transform: translateY(-50%) scale(1.06); }
.product-gallery__nav--prev { left: 14px; }
.product-gallery__nav--next { right: 14px; }
.product-gallery__thumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  overflow-x: auto;
  padding: 2px;
  scrollbar-width: thin;
}
.product-gallery__thumb {
  flex: 0 0 82px;
  aspect-ratio: 4 / 3;
  padding: 3px;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 10px;
  background: var(--surface-2);
  cursor: pointer;
  transition: border-color .18s var(--ease), transform .18s var(--ease);
}
.product-gallery__thumb:hover { transform: translateY(-2px); border-color: var(--border-strong); }
.product-gallery__thumb.is-active { border-color: var(--accent); }
.product-gallery__thumb img { width: 100%; height: 100%; object-fit: contain; border-radius: 6px; }

.product-info h1 { font-size: clamp(1.6rem, 3vw, var(--fs-3xl)); margin-bottom: 14px; }
.product-info__lead { font-size: var(--fs-md); color: var(--text-2); line-height: 1.65; margin-bottom: 24px; }

.price-block {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}
.price-block__now {
  font-size: var(--fs-3xl);
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--text);
}
.price-block__old { font-size: var(--fs-lg); color: var(--text-3); text-decoration: line-through; }

/* Varyasyon grubu ürün sayfası — süre/paket seçici (bkz. site/product_group.php). */
.variant-picker { display: flex; flex-wrap: wrap; gap: 8px; }
.variant-picker__opt {
  padding: 9px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font-size: var(--fs-sm);
  font-weight: 600;
  cursor: pointer;
  transition: border-color .16s var(--ease), background .16s var(--ease), color .16s var(--ease);
}
.variant-picker__opt:hover { border-color: var(--accent); }
.variant-picker__opt.is-active { border-color: var(--accent); background: var(--accent); color: #fff; }
.variant-picker__opt.is-out { opacity: .5; text-decoration: line-through; }

.buy-box {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.buy-row { display: flex; gap: 14px; align-items: flex-end; }

.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  overflow: hidden;
  flex-shrink: 0;
}
.qty button {
  width: 44px; height: 50px;
  border: 0;
  background: transparent;
  color: var(--text-2);
  font-size: var(--fs-lg);
  cursor: pointer;
  transition: background .18s var(--ease), color .18s var(--ease);
}
.qty button:hover { background: var(--surface-2); color: var(--accent); }
.qty input {
  width: 54px; height: 50px;
  border: 0;
  border-inline: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  text-align: center;
  font-size: var(--fs-base);
  font-weight: 650;
  -moz-appearance: textfield;
}
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.meta-list { display: flex; flex-direction: column; gap: 12px; margin-top: 22px; }
.meta-item {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: var(--fs-sm);
  color: var(--text-2);
}
.meta-item svg { color: var(--success); flex-shrink: 0; }

.prose { font-size: var(--fs-base); line-height: 1.8; color: var(--text-2); }
.prose h3, .prose h4 { color: var(--text); margin: 1.4em 0 .5em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: .4em; }
.prose a { color: var(--accent); text-decoration: underline; }

/* Yönetici/tedarikçi kaynaklı serbest HTML — genişliği bizim denetimimizde DEĞİL.
   Tedarikçi ürün açıklamaları <table> içerebiliyor (ProductImporter::ALLOWED_TAGS),
   KVKK/gizlilik sayfaları da öyle. Bunlar telefonda sayfayı yatay kaydırmasın:
   geniş içerik kendi kabında kayar, gövde asla kaymaz. */
.prose table {
  display: block;          /* overflow-x'in tabloda çalışması için gerekli */
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-collapse: collapse;
  margin: 0 0 1em;
  font-size: var(--fs-sm);
}
.prose th, .prose td { padding: 8px 12px; border: 1px solid var(--border); text-align: left; }
.prose th { background: var(--surface-2); color: var(--text); font-weight: 650; }
.prose img { max-width: 100%; height: auto; }
.prose pre, .prose code { overflow-x: auto; max-width: 100%; }
/* Boşluksuz uzun dizeler (lisans anahtarı, URL) taşırmasın. */
.prose { overflow-wrap: anywhere; }

/* ==========================================================================
   LİSTE / FİLTRE ARAÇ ÇUBUĞU
   ========================================================================== */
.page-head { margin: 30px 0 26px; }
.page-head h1 { font-size: var(--fs-3xl); margin-bottom: 8px; }
.page-head p { color: var(--text-3); font-size: var(--fs-md); max-width: 72ch; }

.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 26px;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.toolbar__count { font-size: var(--fs-sm); color: var(--text-3); }
.toolbar__sort { display: flex; align-items: center; gap: 10px; }
.toolbar__sort .label { margin: 0; white-space: nowrap; }
.toolbar__sort .select { width: auto; min-width: 200px; padding-block: 9px; }

.chip-row { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 26px; }
.chip {
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  background: var(--surface);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text-2);
  transition: all .18s var(--ease);
}
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }

.empty-state {
  padding: 80px 24px;
  text-align: center;
}
.empty-state__icon { font-size: 56px; margin-bottom: 16px; opacity: .45; }
.empty-state h3 { margin-bottom: 8px; }
.empty-state p { color: var(--text-3); margin-bottom: 24px; }

/* Sayfalama */
.pager { display: flex; justify-content: center; gap: 8px; margin: 44px 0; flex-wrap: wrap; }
.pager a, .pager span {
  min-width: 44px;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-size: var(--fs-sm);
  font-weight: 600;
  text-align: center;
  transition: all .18s var(--ease);
}
.pager a:hover { border-color: var(--accent); color: var(--accent); }
.pager .is-active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ==========================================================================
   TABLO
   ========================================================================== */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.table th, .table td { padding: 15px 18px; text-align: left; }
.table th {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--text-3);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.table td { border-bottom: 1px solid var(--border); color: var(--text-2); }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background .15s var(--ease); }
.table tbody tr:hover { background: var(--surface-2); }
.table td strong, .table td b { color: var(--text); font-weight: 650; }

.code-block {
  display: block;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: var(--fs-sm);
  color: var(--text);
  word-break: break-all;
  user-select: all;
}

.code-row { display: flex; align-items: stretch; gap: 8px; }
.code-row .code-block { flex: 1; }
.code-copy-btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px;
  padding: 0 16px;
  flex-shrink: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text-2);
  font-size: var(--fs-xs);
  font-weight: 650;
  cursor: pointer;
  transition: all .18s var(--ease);
}
.code-copy-btn:hover { border-color: var(--accent); color: var(--accent); }
.code-copy-btn.is-done { border-color: var(--success); color: var(--success); }

/* ==========================================================================
   SEPET / ÖDEME
   ========================================================================== */
.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 28px;
  align-items: start;
}
.summary-card {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 0;
  font-size: var(--fs-sm);
  color: var(--text-2);
}
.summary-row strong { color: var(--text); font-weight: 650; }
.summary-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin: 16px 0 22px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  font-size: var(--fs-md);
  font-weight: 650;
}
.summary-total b { font-size: var(--fs-2xl); font-weight: 800; letter-spacing: -.02em; color: var(--accent); }

.cart-item {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px;
  border-bottom: 1px solid var(--border);
}
.cart-item:last-child { border-bottom: 0; }
.cart-item__thumb {
  width: 84px; height: 64px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  background: linear-gradient(145deg, var(--surface-2), var(--surface-3));
  overflow: hidden;
  display: grid; place-items: center;
  font-size: 22px;
  opacity: .9;
}
.cart-item__thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-item__info { flex: 1; min-width: 0; }
.cart-item__name { font-size: var(--fs-base); font-weight: 650; color: var(--text); margin-bottom: 3px; }
.cart-item__name:hover { color: var(--accent); }
.cart-item__price { font-size: var(--fs-sm); color: var(--text-3); }
.cart-item__total { font-size: var(--fs-md); font-weight: 700; white-space: nowrap; }

.pay-option {
  display: flex;
  gap: 16px;
  padding: 20px;
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  background: rgba(var(--accent-rgb), .06);
}
.pay-option__icon {
  display: grid; place-items: center;
  width: 46px; height: 46px;
  flex-shrink: 0;
  border-radius: 12px;
  background: rgba(var(--accent-rgb), .14);
  color: var(--accent);
}

/* ==========================================================================
   HESAP PANELİ
   ========================================================================== */
.account-layout {
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  margin: 30px 0 60px;
}
.account-nav {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.account-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text-2);
  transition: background .18s var(--ease), color .18s var(--ease);
}
.account-nav a:hover { background: var(--surface-2); color: var(--text); }
.account-nav a.is-active { background: var(--accent); color: #fff; box-shadow: var(--shadow-accent); }
.account-nav a.is-active svg { color: #fff; }
.account-nav svg { color: var(--text-3); flex-shrink: 0; }
.account-nav__sep { height: 1px; background: var(--border); margin: 10px 6px; }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px;
  margin-bottom: 30px;
}
.stat {
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.stat__label { font-size: var(--fs-xs); font-weight: 650; letter-spacing: .04em; text-transform: uppercase; color: var(--text-3); margin-bottom: 8px; }
.stat__value { font-size: var(--fs-2xl); font-weight: 800; letter-spacing: -.02em; }
.stat__value--accent { color: var(--accent); }

.bank-card {
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  margin-bottom: 12px;
}
.bank-card__name { font-size: var(--fs-sm); font-weight: 700; margin-bottom: 2px; }
.bank-card__holder { font-size: var(--fs-xs); color: var(--text-3); margin-bottom: 9px; }

.thread { display: flex; flex-direction: column; gap: 14px; margin-bottom: 26px; }
.msg {
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.msg--staff { border-color: rgba(var(--accent-rgb), .4); background: rgba(var(--accent-rgb), .05); }
.msg__meta { display: flex; align-items: center; gap: 9px; font-size: var(--fs-xs); color: var(--text-3); margin-bottom: 9px; }
.msg__body { font-size: var(--fs-sm); line-height: 1.7; color: var(--text-2); white-space: pre-wrap; }

/* ==========================================================================
   AUTH
   ========================================================================== */
.auth-wrap {
  display: grid;
  place-items: center;
  min-height: calc(100vh - var(--header-h) - 200px);
  padding: 48px 0;
}
.auth-card {
  width: 100%;
  max-width: 460px;
  padding: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.auth-card__head { text-align: center; margin-bottom: 30px; }
.auth-card__head h1 { font-size: var(--fs-2xl); margin-bottom: 8px; }
.auth-card__head p { color: var(--text-3); font-size: var(--fs-sm); margin: 0; }
.auth-card__foot {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: var(--fs-sm);
  color: var(--text-3);
}
.auth-card__foot a { color: var(--accent); font-weight: 650; }
.form-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 22px; flex-wrap: wrap; }
.form-row a { font-size: var(--fs-sm); color: var(--accent); font-weight: 600; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  margin-top: 90px;
  padding: 56px 0 28px;
  border-top: 1px solid var(--border);
  background: var(--bg-elevated);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 26px;
}
.footer-brand__logo { margin-bottom: 16px; }
.footer-brand p { font-size: var(--fs-sm); color: var(--text-3); max-width: 40ch; line-height: 1.7; }
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-social a {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border: 1px solid var(--border);
  border-radius: 11px;
  color: var(--text-3);
  transition: all .2s var(--ease);
}
.footer-social a:hover { background: var(--accent); border-color: var(--accent); color: #fff; transform: translateY(-2px); }

.footer-col h4 { font-size: var(--fs-sm); font-weight: 700; margin-bottom: 16px; }
.footer-col a, .footer-col span {
  display: block;
  padding: 5px 0;
  font-size: var(--fs-sm);
  color: var(--text-3);
  transition: color .18s var(--ease);
}
.footer-col a:hover { color: var(--accent); }
.footer-col a[title] { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Güven şeridi + ödeme markaları — tek satırda, kompakt */
.footer-trust {
  display: flex; align-items: center; gap: 22px;
  flex-wrap: wrap;
  padding: 16px 0;
  border-top: 1px solid var(--border);
}
.footer-trust__item { display: flex; align-items: center; gap: 9px; flex: 1 1 168px; min-width: 0; }
.footer-trust__icon {
  display: grid; place-items: center; flex: none;
  width: 30px; height: 30px;
  border-radius: 9px;
  background: rgba(var(--accent-rgb), .12);
  color: var(--accent);
}
.footer-trust__text { min-width: 0; }
.footer-trust__text strong {
  display: block;
  font-size: 12px; font-weight: 700; line-height: 1.3;
  color: var(--text-2);
}
.footer-trust__text small {
  display: block;
  font-size: 10.5px; line-height: 1.35; color: var(--text-3);
  /* Açıklamalar iki satırı geçmesin — footer yüksekliği kontrol altında kalsın */
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.footer-pay { display: flex; align-items: center; gap: 7px; flex: none; margin-left: auto; }
.pay-mark {
  display: inline-grid; place-items: center;
  height: 26px; padding: 0 9px;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: #fff;
  font-size: 9.5px; font-weight: 800; letter-spacing: .04em;
  color: #1a1f36;
  white-space: nowrap;
}
.pay-mark--visa { color: #1a1f71; }
.pay-mark--mastercard { color: #cc4b20; }
.pay-mark--troy { color: #00a1a6; }
.pay-mark--3d { color: #16794a; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  font-size: var(--fs-xs);
  color: var(--text-3);
}
.footer-bottom__links { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-bottom__links a { color: var(--text-3); transition: color .18s var(--ease); }
.footer-bottom__links a:hover { color: var(--accent); }

/* --- Bayilik programı sayfaları -------------------------------------------- */
.rp-benefits { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 20px; }
.rp-benefit {
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius, 14px);
  background: var(--bg-elevated);
}
.rp-benefit__icon {
  display: grid; place-items: center;
  width: 46px; height: 46px;
  margin-bottom: 16px;
  border-radius: 13px;
  background: rgba(var(--accent-rgb), .12);
  color: var(--accent);
}
.rp-benefit h3 { font-size: var(--fs-md); margin-bottom: 8px; }
.rp-benefit p { margin: 0; font-size: var(--fs-sm); color: var(--text-3); line-height: 1.7; }

.rp-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 22px; align-items: start; }
.rp-plan {
  position: relative;
  display: flex; flex-direction: column;
  padding: 30px 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg, 18px);
  background: var(--bg-elevated);
}
.rp-plan--featured { border-color: var(--accent); box-shadow: 0 14px 40px rgba(var(--accent-rgb), .16); }
.rp-plan__tag {
  position: absolute; top: -12px; left: 26px;
  padding: 5px 13px;
  border-radius: 999px;
  background: var(--accent); color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: .03em;
}
.rp-plan h3 { font-size: var(--fs-lg); margin-bottom: 6px; }
.rp-plan__tagline { margin: 0 0 20px; font-size: var(--fs-sm); color: var(--text-3); }
.rp-plan__price { padding: 18px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.rp-plan__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.rp-plan__price strong { font-size: var(--fs-2xl); color: var(--accent); }
.rp-plan__price span { font-size: var(--fs-xs); color: var(--text-3); }
/* Aylık abonelik, başlangıç bakiyesinden ayrı bir satır olarak belirtilir. */
.rp-plan__fee {
  display: block; margin-top: 6px;
  font-weight: 650; color: var(--text-2) !important;
}
.rp-plan__features { list-style: none; margin: 20px 0; padding: 0; flex: 1; }
.rp-plan__features li {
  display: flex; align-items: flex-start; gap: 9px;
  padding: 7px 0;
  font-size: var(--fs-sm); color: var(--text-2); line-height: 1.6;
}
.rp-plan__features svg { color: var(--accent); flex: none; margin-top: 3px; }

.rp-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 20px; }
.rp-step { padding: 24px; border: 1px solid var(--border); border-radius: var(--radius, 14px); }
.rp-step__num {
  display: grid; place-items: center;
  width: 34px; height: 34px; margin-bottom: 14px;
  border-radius: 50%;
  background: var(--accent); color: #fff;
  font-weight: 700; font-size: var(--fs-sm);
}
.rp-step h3 { font-size: var(--fs-sm); margin-bottom: 7px; }
.rp-step p { margin: 0; font-size: var(--fs-xs); color: var(--text-3); line-height: 1.7; }

.rp-cta { display: flex; align-items: center; justify-content: space-between; gap: 22px; flex-wrap: wrap; }
.rp-cta h2 { margin-bottom: 5px; }
.rp-cta p { margin: 0; font-size: var(--fs-sm); }

/* Başvuru formu */
.rp-apply { max-width: 680px; margin: 34px auto 0; }
.rp-apply__intro { margin-bottom: 24px; }
.rp-apply__intro h1 { margin-bottom: 10px; }
.rp-apply__intro p { font-size: var(--fs-sm); line-height: 1.75; }

.rp-plan-picker { display: grid; gap: 10px; }
.rp-plan-opt { display: block; cursor: pointer; }
.rp-plan-opt input { position: absolute; opacity: 0; pointer-events: none; }
.rp-plan-opt__box {
  display: block;
  padding: 15px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm, 11px);
  background: var(--surface-2);
  transition: all .16s var(--ease);
}
.rp-plan-opt__box strong { display: block; font-size: var(--fs-sm); }
.rp-plan-opt__sub { display: block; margin-top: 3px; font-size: var(--fs-xs); color: var(--text-3); }
.rp-plan-opt__min { display: block; margin-top: 7px; font-size: var(--fs-xs); font-weight: 700; color: var(--accent); }
.rp-plan-opt input:checked + .rp-plan-opt__box {
  border-color: var(--accent);
  background: rgba(var(--accent-rgb), .07);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .12);
}
.rp-plan-opt input:focus-visible + .rp-plan-opt__box { outline: 2px solid var(--accent); outline-offset: 2px; }

.rp-consent {
  display: flex; align-items: flex-start; gap: 11px;
  margin-top: 22px; padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm, 11px);
  background: var(--surface-2);
  font-size: var(--fs-sm); line-height: 1.65; color: var(--text-2);
  cursor: pointer;
}
.rp-consent input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--accent); flex: none; }
.rp-consent a { color: var(--accent); text-decoration: underline; }

/* Onay metni modalı (KVKK / gizlilik) — başvurucuyu formdan koparmaz */
.consent-overlay {
  position: fixed; inset: 0; z-index: 300;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  background: rgba(6, 8, 14, .68);
  animation: chat-in .18s var(--ease);
}
.consent-overlay[hidden] { display: none; }
.consent-modal {
  display: flex; flex-direction: column;
  width: 100%; max-width: 680px; max-height: 86vh;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg, 18px);
  background: var(--bg-elevated);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .38);
  overflow: hidden;
}
.consent-modal__head {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
}
.consent-modal__head h3 { margin: 0; font-size: var(--fs-md); }
.consent-modal__close {
  border: 0; background: transparent; color: var(--text-3);
  font-size: 26px; line-height: 1; cursor: pointer; padding: 0 4px;
}
.consent-modal__close:hover { color: var(--text); }
.consent-modal__body {
  padding: 22px;
  overflow-y: auto;
  font-size: var(--fs-sm); line-height: 1.75; color: var(--text-2);
}
.consent-modal__body h2, .consent-modal__body h3 { font-size: var(--fs-sm); margin: 18px 0 8px; color: var(--text); }
.consent-modal__body h2:first-child, .consent-modal__body h3:first-child { margin-top: 0; }
.consent-modal__body p { margin: 0 0 12px; }
.consent-modal__foot {
  padding: 16px 22px;
  border-top: 1px solid var(--border);
  background: var(--surface-2);
  text-align: right;
}

/* Başvuru sonucu / doğrulama sayfaları */
.rp-result { max-width: 560px; margin: 60px auto; text-align: center; }
.rp-result__icon {
  display: grid; place-items: center;
  width: 76px; height: 76px; margin: 0 auto 22px;
  border-radius: 50%;
}
.rp-result__icon--ok { background: rgba(var(--accent-rgb), .12); color: var(--accent); }
.rp-result__icon--err { background: var(--danger-bg, rgba(229,72,77,.12)); color: var(--danger, #e5484d); }
.rp-result h1 { margin-bottom: 12px; }
.rp-result > p { font-size: var(--fs-sm); line-height: 1.75; }
.rp-result__steps { margin-top: 26px; text-align: left; display: grid; gap: 14px; }
.rp-result__step { display: flex; align-items: center; gap: 13px; font-size: var(--fs-sm); color: var(--text-2); }
.rp-result__step span {
  display: grid; place-items: center; flex: none;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--surface-2); color: var(--accent);
  font-weight: 700; font-size: var(--fs-xs);
}
.rp-result__resend { margin-top: 18px; }

@media (max-width: 640px) {
  .rp-cta { flex-direction: column; align-items: stretch; text-align: center; }
}

/* Yukarı çık */
.to-top {
  position: fixed;
  right: 24px; bottom: 24px;
  z-index: 90;
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text-2);
  box-shadow: var(--shadow);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: all .3s var(--ease);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

/* --- Pasif ürün önizleme şeridi (yalnızca admin görür) --------------------- */
.preview-bar {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
  margin: 22px 0 -6px;
  padding: 12px 16px;
  border: 1px solid var(--warning, #f5a524);
  border-radius: var(--radius-sm, 11px);
  background: rgba(245, 165, 36, .1);
  font-size: var(--fs-sm); color: var(--text-2);
}
.preview-bar__tag {
  padding: 3px 10px; border-radius: 999px;
  background: var(--warning, #f5a524); color: #12141a;
  font-size: 11px; font-weight: 750; letter-spacing: .03em; text-transform: uppercase;
}
.preview-bar__link { margin-left: auto; font-weight: 650; color: var(--accent); }

/* --- Yüzen hızlı destek balonları (WhatsApp / Telegram) --------------------
   Ara panel yok: balona tıklayan doğrudan sohbete gider. Etiket yalnızca
   fareyle üzerine gelince açılır, mobilde hiç görünmez. */
.chat-dock {
  position: fixed;
  /* "Yukarı çık" düğmesinin üstünde durur, çakışmaz */
  right: 24px; bottom: 84px;
  z-index: 95;
  display: flex; flex-direction: column; align-items: flex-end; gap: 12px;
}
.chat-bubble {
  display: flex; align-items: center; gap: 0;
  height: 54px; width: 54px;
  padding: 0; overflow: hidden;
  border-radius: 27px;
  color: #fff;
  font-size: var(--fs-sm); font-weight: 650; white-space: nowrap;
  text-decoration: none;
  transition: width .22s var(--ease), gap .22s var(--ease),
              padding .22s var(--ease), transform .2s var(--ease);
}
.chat-bubble svg { flex: none; width: 54px; }
.chat-bubble__label {
  opacity: 0; max-width: 0;
  transition: opacity .18s var(--ease), max-width .22s var(--ease);
}
.chat-bubble:hover,
.chat-bubble:focus-visible {
  width: auto; padding-right: 20px; transform: translateY(-2px);
}
.chat-bubble:hover .chat-bubble__label,
.chat-bubble:focus-visible .chat-bubble__label { opacity: 1; max-width: 220px; }

.chat-bubble--wa { background: #25d366; box-shadow: 0 10px 26px rgba(37, 211, 102, .42); }
.chat-bubble--tg { background: #229ed9; box-shadow: 0 10px 26px rgba(34, 158, 217, .42); }

/* Dokunmatik cihazda hover yok; balonlar sade yuvarlak kalsın. */
@media (hover: none) {
  .chat-bubble__label { display: none; }
}

/* Toast bildirimi */
.toast-host {
  position: fixed;
  right: 24px; bottom: 88px;
  z-index: 120;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 14px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-lg);
  font-size: var(--fs-sm);
  font-weight: 600;
  animation: toast-in .35s var(--ease-out);
}
.toast--success { border-left: 3px solid var(--success); }
.toast--error   { border-left: 3px solid var(--danger); }
.toast.is-out { animation: toast-out .3s var(--ease) forwards; }
@keyframes toast-in  { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: none; } }
@keyframes toast-out { to { opacity: 0; transform: translateX(30px); } }

/* ==========================================================================
   DUYARLI (RESPONSIVE)
   ========================================================================== */
@media (max-width: 1080px) {
  .product-detail { grid-template-columns: 1fr; gap: 32px; }
  .product-gallery-wrap { position: static; max-width: 560px; }
  .split-layout { grid-template-columns: 1fr; }
  .summary-card { position: static; }
  .account-layout { grid-template-columns: 1fr; }
  .account-nav { position: static; display: flex; overflow-x: auto; gap: 4px; }
  .account-nav a { white-space: nowrap; }
  .account-nav__sep { display: none; }
  .account-nav form { flex-shrink: 0; }
}

@media (max-width: 860px) {
  :root { --header-h: 64px; }

  .container { padding-inline: 18px; }

  .header-main { gap: 14px; flex-wrap: wrap; height: auto; padding: 12px 0; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .header-actions { gap: 8px; }
  .topbar__note { display: none; }
  .topbar__inner { justify-content: flex-end; }

  .user-chip span { display: none; }
  .user-chip { padding: 0 8px; }

  .hero { padding: 44px 26px; margin-top: 22px; border-radius: var(--radius-lg); }
  .hero__text { font-size: var(--fs-base); }

  .section { margin-top: 48px; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 10px; }

  .product-grid { grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 14px; }
  .product-card__body { padding: 14px; gap: 8px; }
  .product-card__title { font-size: var(--fs-sm); min-height: 2.7em; }
  .product-card__price-now { font-size: var(--fs-md); }
  .product-card__add { width: 38px; height: 38px; }

  .cat-grid:not(.cat-grid--rail) { grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 12px; }
  /* Mobil kategoriler: iki sıralı, yana kayan kompakt şerit (ikon solda, ad + ürün sayısı sağda);
     ekranda 2 sütun + bir sonrakinin ucu görünür, böylece kaydırılabildiği anlaşılır. */
  .cat-grid--rail {
    grid-template-columns: none;
    grid-template-rows: repeat(2, auto);
    grid-auto-columns: clamp(150px, 43vw, 240px);
    gap: 10px;
    margin-inline: -18px;
    padding: 2px 18px 6px;
    scroll-padding-inline: 18px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .cat-grid--rail::-webkit-scrollbar { display: none; }
  .cat-grid--rail .cat-card { flex-direction: row; align-items: center; gap: 10px; min-height: 0; padding: 12px; border-radius: var(--radius); }
  .cat-grid--rail .cat-card__icon { flex: none; width: 40px; height: 40px; border-radius: 12px; font-size: 19px; }
  .cat-grid--rail .cat-card__icon img { width: 22px; height: 22px; }
  .cat-grid--rail .cat-card__name { font-size: var(--fs-sm); line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .cat-grid--rail .cat-card__arrow { display: none; }
  .cat-rail__nav { display: none; }
  .cat-card { padding: 18px; gap: 11px; }
  .cat-card__icon { width: 46px; height: 46px; font-size: 22px; }

  .auth-card { padding: 28px 22px; }
  .card--pad { padding: 20px; }

  .toolbar { padding: 12px 14px; }
  .toolbar__sort { width: 100%; }
  .toolbar__sort .select { flex: 1; min-width: 0; }

  .cart-item { flex-wrap: wrap; gap: 14px; padding: 16px; }
  .cart-item__thumb { width: 60px; height: 48px; }
  .cart-item__total { width: 100%; text-align: right; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-grid > .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { justify-content: center; text-align: center; }
  .footer-bottom__links { justify-content: center; }
  /* Dar ekranda güven maddeleri 2'şerli sarar, ödeme markaları alta geçer */
  .footer-trust { gap: 16px; }
  .footer-trust__item { flex: 1 1 45%; }
  .footer-pay { margin-left: 0; width: 100%; justify-content: center; padding-top: 4px; }

  .to-top { right: 16px; bottom: 16px; width: 44px; height: 44px; }
  .chat-dock { right: 16px; bottom: 72px; }
  .toast-host { right: 16px; left: 16px; bottom: 74px; }
}

@media (max-width: 480px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  /* Kategori şeridi (.cat-grid--rail) bu kuraldan hariç — aksi halde ilk iki sütun ekrana sıkışıyordu */
  .cat-grid:not(.cat-grid--rail) { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .buy-row { flex-direction: column; align-items: stretch; }
  .product-gallery__main { padding: 10px; }
  .product-gallery__nav { width: 36px; height: 36px; font-size: 27px; }
  .product-gallery__nav--prev { left: 9px; }
  .product-gallery__nav--next { right: 9px; }
  .qty { width: 100%; justify-content: space-between; }
  .qty input { flex: 1; }
}

/* Yazdırma */
@media print {
  .site-header, .site-footer, .to-top, .toast-host, .btn { display: none !important; }
  body { background: #fff; color: #000; }
}

/* ── Panel ile ortak bileşenler ──────────────────────────────────────────
   Müşteri hesabı sayfaları (bakiye sekmeleri, /hesap/paket, Telegram kartı,
   paket başvurusu) panel.css'teki bu sınıfları kullanıyor ama site yalnızca
   app.css yüklüyor — tanımlar olmadan sekmeler, anahtar kutuları ve kart
   başlıkları biçimsiz görünüyordu. Tanımlar panel.css'tekilerle BİREBİR aynı
   tutuldu (aynı tasarım belirteçlerini kullanır); oradan değişirse buraya da taşıyın. */
.card__head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 24px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.card__head h3 { font-size: var(--fs-md); }
.card__head p { margin: 2px 0 0; font-size: var(--fs-xs); color: var(--text-3); }
.card__body { padding: 24px; }
.card__foot { padding: 16px 24px; border-top: 1px solid var(--border); background: var(--surface-2); border-radius: 0 0 var(--radius) var(--radius); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.label .req, .req { color: var(--danger); }
.hint { margin-top: 6px; font-size: var(--fs-xs); color: var(--text-3); line-height: 1.5; }
.hint a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.alert--warning { background: var(--warning-bg); color: var(--warning); border-color: rgba(217,119,6,.24); }
.btn--danger-soft { background: var(--danger-bg); color: var(--danger); }
.btn--danger-soft:hover { background: var(--danger); color: #fff; box-shadow: none; }
.tabs { display: flex; gap: 4px; margin-bottom: 20px; border-bottom: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { padding: 11px 15px; font-size: var(--fs-sm); font-weight: 650; color: var(--text-3); border-bottom: 2px solid transparent; white-space: nowrap; transition: color .16s var(--ease), border-color .16s var(--ease); }
.tabs a:hover { color: var(--text); }
.tabs a.is-active { color: var(--accent); border-bottom-color: var(--accent); }
.key-row { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-2); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: var(--fs-xs); word-break: break-all; }
.key-row span { flex: 1; min-width: 0; }
.code-box { position: relative; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-2); overflow: hidden; }
.code-box pre { margin: 0; padding: 16px 52px 16px 16px; overflow-x: auto; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: var(--fs-xs); line-height: 1.75; color: var(--text); white-space: pre; }
.copy-btn { position: absolute; top: 8px; right: 8px; display: inline-grid; place-items: center; width: 32px; height: 32px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--text-3); cursor: pointer; transition: all .16s var(--ease); }
.copy-btn:hover { color: var(--accent); border-color: var(--accent); }
.copy-btn.is-done { color: var(--success); border-color: var(--success); }
.stack { display: flex; flex-direction: column; gap: 18px; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.row--between { justify-content: space-between; }
.divider { height: 1px; background: var(--border); margin: 20px 0; border: 0; }
.muted { color: var(--text-3); }
.small { font-size: var(--fs-xs); }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 14px; }
@media (max-width: 640px) {
  .card__head { padding: 14px 16px; }
  .card__body { padding: 16px; }
}
.icon-btn--bordered { border-color: var(--border); background: var(--surface); }
.api-errors { margin: 0; font-size: var(--fs-xs); }
.api-errors dt { margin-top: 12px; }
.api-errors dt:first-child { margin-top: 0; }
.api-errors dd { margin: 4px 0 0; color: var(--text-3); line-height: 1.5; }
/* Ödeme adımındaki sözleşme onayı (bkz. site/checkout.php). */
.checkout-consent { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 14px; font-size: var(--fs-xs); line-height: 1.55; color: var(--text-2); cursor: pointer; }
.checkout-consent input { margin-top: 3px; flex: none; width: 16px; height: 16px; accent-color: var(--accent); }
/* Shopier sabit yükleme paketleri (hesap → bakiye) */
.sp-pkgs { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.sp-pkg { position: relative; display: flex; flex-direction: column; gap: 3px; padding: 12px 12px 11px; border: 1px solid var(--border); border-radius: var(--radius, 12px); background: var(--surface); cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s; }
.sp-pkg input { position: absolute; opacity: 0; pointer-events: none; }
.sp-pkg__amt { font-size: var(--fs-md); font-weight: 750; color: var(--text); }
.sp-pkg__pay { font-size: var(--fs-xs); color: var(--text-3); white-space: nowrap; }
.sp-pkg:hover { border-color: var(--accent); }
.sp-pkg:has(input:checked) { border-color: var(--accent); background: rgba(var(--accent-rgb), .08); box-shadow: 0 0 0 1px var(--accent); }
.sp-pkg:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.sp-sum { margin-top: 14px; padding: 12px 14px; border: 1px dashed var(--border); border-radius: var(--radius, 12px); display: grid; gap: 6px; font-size: var(--fs-sm); }
.sp-sum > div { display: flex; justify-content: space-between; gap: 12px; color: var(--text-2); }
.sp-sum__total { padding-top: 6px; border-top: 1px solid var(--border); color: var(--text) !important; }
.sp-sum__total strong { color: var(--accent); font-size: var(--fs-md); }
.checkout-consent a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

/* ---------------------------------------------- Ödeme bilgisi (büyük, tek tıkla kopyala) */
.pay-field { margin-bottom: 14px; }
.pay-field__label { font-size: var(--fs-sm); font-weight: 650; color: var(--text-2); margin-bottom: 6px; }
.pay-field__row { display: flex; align-items: stretch; gap: 8px; }
.pay-field__value {
  flex: 1; min-width: 0;
  display: flex; align-items: center;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--text);
  font-size: var(--fs-lg);
  font-weight: 650;
  line-height: 1.35;
  word-break: break-all;
  user-select: all;
}
.pay-field__value--mono { font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace; letter-spacing: .01em; }
.pay-field__copy {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  flex-shrink: 0; min-width: 116px; min-height: 52px; padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: var(--accent); color: #fff;
  font-size: var(--fs-base, 1rem); font-weight: 700;
  cursor: pointer;
  transition: filter .18s var(--ease), background .18s var(--ease);
}
.pay-field__copy:hover { filter: brightness(1.08); }
.pay-field__copy.is-done { background: var(--success); }
@media (max-width: 520px) {
  .pay-field__row { flex-direction: column; }
  .pay-field__value { font-size: var(--fs-base, 1rem); }
  .pay-field__copy { width: 100%; }
}

/* Manuel kripto: her cüzdan ayrı seçilebilir kart */
.wallet-option { display: block; padding: 14px 16px; margin-bottom: 12px; border: 1px solid var(--border); border-radius: var(--radius); cursor: pointer; }
.wallet-option:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.wallet-option__head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-weight: 700; font-size: var(--fs-lg); }
.wallet-option__head input { width: 18px; height: 18px; accent-color: var(--accent); }
.wallet-option .pay-field { margin-bottom: 6px; }

/* Bakiye yükleme: Manuel / Otomatik ödeme grupları */
.deposit-groups { display: grid; gap: 12px; margin-bottom: 18px; }
.deposit-group__title { font-size: var(--fs-sm); font-weight: 700; color: var(--text); margin-bottom: 6px; }
.deposit-group__title span { font-weight: 500; color: var(--text-3); margin-left: 6px; }
.deposit-group .tabs { margin-bottom: 0; flex-wrap: wrap; }
/* Bakiye yükleme: üstte Manuel / Otomatik, altında yöntem sekmeleri */
.deposit-switch { margin-bottom: 18px; }
.deposit-switch__groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.deposit-switch__group {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  padding: 12px 14px; text-align: left; cursor: pointer;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--text);
  transition: border-color .18s var(--ease), background .18s var(--ease);
}
.deposit-switch__group strong { font-size: var(--fs-md); }
.deposit-switch__group span { font-size: var(--fs-xs); color: var(--text-3); }
.deposit-switch__group:hover { border-color: var(--accent); }
.deposit-switch__group.is-active { border-color: var(--accent); background: rgba(var(--accent-rgb), .08); box-shadow: 0 0 0 1px var(--accent); }
.deposit-switch__sub { margin-bottom: 0; flex-wrap: wrap; }
/* `hidden` özelliği her zaman gizler — .tabs gibi display:flex veren sınıflar onu ezmesin
   (ör. bakiye sayfasında seçilmeyen grubun alt sekmeleri görünür kalıyordu). */
[hidden] { display: none !important; }

/* Tema başına logo (bkz. site_logo()): data-theme hangisiyse o görünür */
.logo__img--dark { display: none; }
[data-theme="dark"] .logo__img--light { display: none; }
[data-theme="dark"] .logo__img--dark { display: inline-block; }
/* E-posta doğrulama uyarısı (hesap sayfaları + ödeme) */
.verify-banner { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; grid-column: 1 / -1; margin-bottom: 16px; }

/* Analiz çerezi bildirimi (yalnızca Analytics tanımlıysa) */
.cookie-bar { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; max-width: 720px; margin: 0 auto; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding: 12px 16px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-lg, 0 10px 30px rgba(0,0,0,.25)); font-size: var(--fs-sm); }
.cookie-bar__actions { display: flex; gap: 8px; margin-left: auto; }

/* Dokunmatik ekranda üzerine gelme efekti "takılı" kalmasın */
@media (hover: none) {
  .cat-card:hover { transform: none; box-shadow: none; }
  .cat-card:hover .cat-card__icon { transform: none; }
}

/* ==========================================================================
   EK GİRİŞ YÖNTEMLERİ (Google, Passkey) ve HESAP GÜVENLİĞİ
   ========================================================================== */
.auth-alt { margin-top: 18px; display: grid; gap: 10px; }
.auth-alt__sep { display: flex; align-items: center; gap: 12px; color: var(--text-3); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .06em; }
.auth-alt__sep::before, .auth-alt__sep::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.auth-alt__btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
.auth-alt__hata { margin: 4px 0 0; color: var(--danger); font-size: var(--fs-sm); }
.input--kod { font-size: 1.4rem; letter-spacing: .3em; text-align: center; font-variant-numeric: tabular-nums; }

.sec-card { margin-bottom: 18px; }
.sec-card h2 { font-size: var(--fs-lg); margin: 0 0 4px; }
.sec-card__head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 16px; }
.sec-card__head > div:nth-child(2) { flex: 1; min-width: 0; }
.sec-card__head p { margin: 0; font-size: var(--fs-sm); }
.sec-card__icon { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: rgba(var(--accent-rgb), .12); color: var(--accent); }
.sec-inline { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.sec-inline .input { flex: 1 1 160px; min-width: 0; }
.sec-actions { display: grid; gap: 10px; }
.sec-steps { margin: 0 0 16px; padding-left: 20px; font-size: var(--fs-sm); line-height: 1.7; }
.sec-qr { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.sec-qr__img svg { display: block; width: 200px; height: 200px; border-radius: 10px; }
.sec-qr__key { display: inline-block; margin-top: 4px; font-size: var(--fs-md); letter-spacing: .08em; word-break: break-all; }
.sec-list { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 8px; }
.sec-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius); }
.sec-recovery { margin-bottom: 16px; padding: 16px; border: 1px dashed var(--warning); border-radius: var(--radius); background: var(--warning-bg); }
.sec-recovery p { margin: 4px 0 10px; }
.sec-recovery__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 12px; margin-bottom: 10px; }
.sec-recovery__grid code { font-size: var(--fs-md); letter-spacing: .06em; }

/* Paket kartı: tür etiketi ve mağaza modülleri (✓ dahil / ✕ dahil değil) — /hesap/paket */
.rp-plan__tur { display: inline-block; align-self: flex-start; margin-bottom: 10px; padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .03em; background: var(--surface-2); color: var(--text-2, var(--text-3)); }
.rp-plan__tur--basic { background: rgba(var(--accent-rgb), .12); color: var(--accent); }
.rp-plan__tur--pro { background: var(--accent); color: #fff; }
.rp-modul__baslik { margin: 4px 0 8px; font-size: var(--fs-xs); font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--text-3); }
.rp-modul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.rp-modul li { display: flex; align-items: center; gap: 9px; font-size: var(--fs-sm); }
.rp-modul__isaret { flex: none; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; font-size: 12px; font-weight: 800; line-height: 1; }
.rp-modul .is-var .rp-modul__isaret { background: rgba(22, 163, 74, .14); color: #16a34a; }
.rp-modul .is-yok { color: var(--text-3); }
.rp-modul .is-yok .rp-modul__isaret { background: rgba(220, 38, 38, .12); color: #dc2626; }
.rp-modul__not { margin: 10px 0 0; font-size: var(--fs-xs); color: var(--text-3); }

/* ==========================================================================
   ÜRÜN SAYFASI — puan, aylık fiyat, Hemen Al, ödeme/paylaş, özet kartı,
   sekmeler (Açıklama · Teslimat · SSS · İade · Değerlendirmeler), yapışkan çubuk
   ========================================================================== */
.prose h2 { margin: 1.4em 0 .6em; font-size: var(--fs-lg); color: var(--text); }
.prose > :first-child, .prose > div:first-child > :first-child { margin-top: 0; }

/* Yıldızlar: --puan (0–5) kadarı dolu */
.stars {
  --puan: 0;
  position: relative;
  display: inline-block;
  font-size: 15px; line-height: 1; letter-spacing: 2px;
  color: var(--border-strong);
  white-space: nowrap;
}
.stars::before { content: "★★★★★"; }
.stars::after {
  content: "★★★★★";
  position: absolute; left: 0; top: 0;
  width: calc(var(--puan) / 5 * 100%);
  overflow: hidden;
  color: #f5a524;
}
.stars--lg { font-size: 20px; }

.pd-rating { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin: -4px 0 16px; font-size: var(--fs-sm); color: var(--text-2); }
.pd-rating__stars { display: inline-flex; align-items: center; gap: 8px; color: var(--text-2); }
.pd-rating__stars strong { color: var(--text); }
.pd-rating__stars:hover span:last-child { text-decoration: underline; }
.pd-rating__sold { display: inline-flex; align-items: center; gap: 6px; color: var(--success); font-weight: 600; }

.price-block:has(.price-monthly:not([hidden])) { row-gap: 4px; }
.price-monthly { flex-basis: 100%; margin-top: 0; font-size: var(--fs-sm); font-weight: 650; color: var(--success); }

/* Satın alma: Sepete Ekle + Hemen Al + toplam */
.buy-row { flex-wrap: wrap; }
.buy-row > .btn { flex: 1 1 0; width: auto; min-width: 0; }
.buy-row > .btn--buy-now { flex-basis: 100%; }
.btn--buy-now { background: var(--text); color: var(--bg); box-shadow: none; }
.btn--buy-now:hover { background: var(--text); color: var(--bg); opacity: .88; }
.buy-total { display: flex; justify-content: space-between; flex-basis: 100%; padding: 2px 2px 0; font-size: var(--fs-sm); color: var(--text-2); }
.buy-total strong { color: var(--text); font-size: var(--fs-md); }
.buy-total[hidden] { display: none; }

.pd-pay {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px;
  margin-top: 18px; padding-top: 16px;
  border-top: 1px dashed var(--border);
  font-size: var(--fs-xs); color: var(--text-3);
}
.pd-pay__note { display: inline-flex; align-items: center; gap: 6px; }
.pd-pay__list { display: flex; flex-wrap: wrap; gap: 6px; }
.pd-pay__chip { padding: 4px 10px; border: 1px solid var(--border); border-radius: 999px; background: var(--bg-elevated); color: var(--text-2); font-weight: 650; }

.pd-actions { display: flex; gap: 8px; margin-top: 14px; }
.pd-action {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; flex: 1;
  height: 42px; padding: 0 14px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--bg-elevated); color: var(--text);
  font: inherit; font-size: var(--fs-sm); font-weight: 650;
  cursor: pointer;
  transition: border-color .18s var(--ease), color .18s var(--ease);
}
.pd-action:hover { border-color: var(--accent); color: var(--accent); }
.share { position: relative; display: flex; flex: 1; }
.share .pd-action { width: 100%; }
.share__menu {
  position: absolute; right: 0; bottom: calc(100% + 8px); z-index: 50;
  display: flex; flex-direction: column;
  min-width: 220px; padding: 6px;
  border: 1px solid var(--border); border-radius: 14px;
  background: var(--bg-elevated);
  box-shadow: var(--shadow-lg);
}
.share__menu[hidden] { display: none; }
.share__menu a, .share__menu button {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  border: 0; border-radius: 10px;
  background: none; color: var(--text);
  font: inherit; font-size: var(--fs-sm); text-align: left;
  cursor: pointer;
}
.share__menu a:hover, .share__menu button:hover { background: var(--surface-2); }

/* Özet kartı */
.pd-facts {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px;
  margin: 16px 0 0;
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: var(--border);
  overflow: hidden;
}
.pd-facts__row { padding: 12px 16px; background: var(--surface); }
.pd-facts__row[hidden] { display: none; }
.pd-facts__row:last-child:nth-child(odd) { grid-column: 1 / -1; }
.pd-facts dt { display: flex; align-items: center; gap: 6px; margin-bottom: 3px; font-size: var(--fs-xs); color: var(--text-3); }
.pd-facts dt svg { color: var(--accent); }
.pd-facts dd { margin: 0; font-size: var(--fs-sm); font-weight: 650; color: var(--text); }
.pd-facts dd a { color: var(--text); text-decoration: underline; text-decoration-style: dotted; text-underline-offset: 3px; }

/* Sekmeler */
.pd-tabs__bar {
  display: flex; gap: 4px;
  margin-bottom: 14px; padding: 4px;
  border: 1px solid var(--border); border-radius: 14px;
  background: var(--surface);
  overflow-x: auto; scrollbar-width: none;
}
.pd-tabs__bar::-webkit-scrollbar { display: none; }
.pd-tabs__tab {
  flex: none;
  padding: 10px 16px;
  border: 0; border-radius: 10px;
  background: transparent; color: var(--text-2);
  font: inherit; font-size: var(--fs-sm); font-weight: 650; white-space: nowrap;
  cursor: pointer;
  transition: background .18s var(--ease), color .18s var(--ease);
}
.pd-tabs__tab:hover { background: var(--surface-2); color: var(--text); }
.pd-tabs__tab.is-active { background: var(--accent); color: #fff; box-shadow: var(--shadow-accent); }

.pd-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin: 0; padding: 0; list-style: none; }
.pd-steps__item { display: flex; align-items: flex-start; gap: 14px; }
.pd-steps__num {
  display: grid; place-items: center; flex: none;
  width: 44px; height: 44px; border-radius: 13px;
  background: rgba(var(--accent-rgb), .12); color: var(--accent);
}
.pd-steps__item strong { display: block; margin-bottom: 4px; color: var(--text); }
.pd-steps__item p { margin: 0; font-size: var(--fs-sm); line-height: 1.65; color: var(--text-2); }

.pd-faq { display: flex; flex-direction: column; gap: 10px; }
.pd-faq__item { border: 1px solid var(--border); border-radius: 12px; background: var(--bg-elevated); }
.pd-faq__item summary {
  position: relative;
  padding: 14px 46px 14px 16px;
  list-style: none;
  font-weight: 650; color: var(--text);
  cursor: pointer;
}
.pd-faq__item summary::-webkit-details-marker { display: none; }
.pd-faq__item summary::after {
  content: "+";
  position: absolute; right: 16px; top: 50%;
  transform: translateY(-50%);
  font-size: 22px; font-weight: 500; line-height: 1; color: var(--accent);
  transition: transform .2s var(--ease);
}
.pd-faq__item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.pd-faq__item p { margin: 0; padding: 0 16px 16px; font-size: var(--fs-sm); line-height: 1.7; color: var(--text-2); }

.pd-returns { display: flex; flex-direction: column; gap: 12px; margin: 0 0 18px; padding: 0; list-style: none; }
.pd-returns li { display: flex; align-items: flex-start; gap: 12px; line-height: 1.6; color: var(--text-2); }
.pd-returns svg { flex: none; margin-top: 3px; color: var(--accent); }

/* Değerlendirmeler */
.pd-reviews__summary { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 44px; margin-bottom: 22px; }
.pd-reviews__score { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.pd-reviews__score strong { font-size: 46px; font-weight: 800; line-height: 1; letter-spacing: -.03em; color: var(--text); }
.pd-reviews__score small { color: var(--text-3); }
.pd-reviews__bars { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 220px; max-width: 420px; }
.pd-reviews__bar { display: grid; grid-template-columns: 34px 1fr 28px; align-items: center; gap: 10px; font-size: var(--fs-xs); color: var(--text-3); }
.pd-reviews__track { height: 8px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.pd-reviews__track span { display: block; height: 100%; border-radius: 4px; background: #f5a524; }
.pd-reviews__empty { display: flex; align-items: center; gap: 10px; margin: 0; color: var(--text-2); }
.pd-reviews__hint {
  display: flex; align-items: center; gap: 10px;
  margin: 0 0 18px; padding: 14px 16px;
  border-radius: 12px;
  background: var(--surface-2);
  font-size: var(--fs-sm); color: var(--text-2);
}
.pd-reviews__hint a { color: var(--accent); font-weight: 650; }
.pd-review-form {
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
  margin-bottom: 22px; padding: 18px;
  border: 1px solid var(--border); border-radius: 14px;
  background: var(--bg-elevated);
}
.pd-review-form h3 { margin: 0; font-size: var(--fs-md); }
.pd-review-form textarea { width: 100%; }
.pd-review-form__note { display: flex; align-items: center; gap: 6px; margin: 0; font-size: var(--fs-sm); color: var(--warning); }
.star-input { margin: 0; padding: 0; border: 0; }
.star-input__stars { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; }
.star-input legend { margin-bottom: 4px; padding: 0; font-size: var(--fs-sm); font-weight: 650; color: var(--text-2); }
.star-input input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.star-input label { font-size: 32px; line-height: 1; color: var(--border-strong); cursor: pointer; transition: color .15s var(--ease), transform .15s var(--ease); }
.star-input label:hover { transform: scale(1.12); }
.star-input input:checked ~ label,
.star-input label:hover,
.star-input label:hover ~ label { color: #f5a524; }
.star-input input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.pd-review-list { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.pd-review { padding: 16px 0; border-top: 1px solid var(--border); }
.pd-review__head { display: flex; align-items: center; gap: 12px; }
.pd-review__avatar {
  display: grid; place-items: center; flex: none;
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(var(--accent-rgb), .14); color: var(--accent);
  font-weight: 750;
}
.pd-review__who { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.pd-review__who small { display: inline-flex; align-items: center; gap: 4px; font-size: var(--fs-xs); color: var(--success); }
.pd-review__meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.pd-review__meta small { font-size: var(--fs-xs); color: var(--text-3); }
.pd-review__body { margin: 10px 0 0 50px; line-height: 1.65; color: var(--text-2); }
.pd-review__reply {
  margin: 10px 0 0 50px; padding: 10px 14px;
  border-left: 3px solid var(--accent); border-radius: 0 10px 10px 0;
  background: var(--surface-2);
  font-size: var(--fs-sm);
}
.pd-review__reply p { margin: 4px 0 0; color: var(--text-2); }

.order-review-link { display: inline-block; margin-left: 8px; font-size: var(--fs-xs); font-weight: 700; color: #f5a524; white-space: nowrap; }

.pd-sticky { display: none; }

@media (max-width: 860px) {
  .pd-steps { grid-template-columns: 1fr; gap: 18px; }
  .pd-review__body, .pd-review__reply { margin-left: 0; }
}

@media (max-width: 480px) {
  .buy-row > .btn { flex: none; width: 100%; }
  .pd-facts__row { padding: 10px 12px; }
  .share__menu { left: auto; right: 0; }
}

/* Mobil/tablet: satın alma kutusu geçilince alt menünün üstünde fiyat + Sepete Ekle */
@media (max-width: 1023px) {
  .pd-sticky:not([hidden]) {
    display: flex; align-items: center; gap: 10px;
    position: fixed;
    left: var(--tabbar-gap); right: var(--tabbar-gap);
    bottom: calc(var(--tabbar-space) + 16px);
    z-index: 105;
    max-width: 560px;
    margin: 0 auto;
    padding: 8px 8px 8px 10px;
    border: 1px solid var(--border); border-radius: 18px;
    background: var(--bg-elevated);
    box-shadow: 0 12px 30px rgba(8, 10, 20, .25);
    animation: pd-sticky-in .25s var(--ease-out);
  }
  .pd-sticky__img { flex: none; width: 44px; height: 33px; border-radius: 8px; object-fit: cover; }
  .pd-sticky__info { display: flex; flex-direction: column; flex: 1; min-width: 0; }
  .pd-sticky__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; color: var(--text-3); }
  .pd-sticky__price { font-size: var(--fs-md); font-weight: 800; color: var(--text); }
  .pd-sticky .btn { flex: none; height: 42px; padding: 0 16px; }
  body.has-pd-sticky { padding-bottom: calc(var(--tabbar-space) + 76px); }
  body.has-pd-sticky .chat-dock { bottom: calc(var(--tabbar-space) + 86px); }
}
@keyframes pd-sticky-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ==========================================================================
   MOBİL + TABLET (≤1023px): alt gezinme çubuğu ve alttan açılan paneller
   Üstte yalnızca logo + arama kalır; sepet, hesap, kategoriler, dil/tema ve
   sayfalar alttaki çubuğa ve onun açtığı panellere taşınır. Masaüstü etkilenmez.
   ========================================================================== */
.tabbar, .sheet, .sheet-backdrop { display: none; }

@media (max-width: 1023px) {
  :root { --tabbar-h: 66px; --tabbar-gap: 10px; --tabbar-space: calc(var(--tabbar-h) + var(--tabbar-gap) * 2 + env(safe-area-inset-bottom)); }
  body { padding-bottom: var(--tabbar-space); }

  /* --- Sade üst kısım: logo + arama tek satırda --- */
  .site-header { padding-top: env(safe-area-inset-top); }
  .topbar, .catbar, .header-actions { display: none; }
  .header-main { flex-wrap: nowrap; gap: 12px; height: 64px; padding: 0; }
  .logo img { height: 30px; }
  .search { order: 0; flex: 1 1 auto; min-width: 0; max-width: none; }
  .search__input { height: 44px; padding-left: 42px; padding-right: 48px; }
  .search__icon { left: 15px; }
  .search__submit { width: 34px; height: 34px; }
  /* Öneri paneli dar arama kutusuna sıkışmasın: ekran genişliğinde açılır */
  .search-suggest {
    position: fixed;
    top: calc(64px + env(safe-area-inset-top) + 6px);
    left: 12px; right: 12px;
    max-width: 640px; margin: 0 auto;
    max-height: calc(100vh - 64px - var(--tabbar-space) - 30px);
  }

  /* Alt çubukla çakışan yüzen öğeler yukarı alınır; "yukarı çık" yerine Anasayfa sekmesi kullanılır */
  .to-top { display: none; }
  .chat-dock { right: 14px; bottom: calc(var(--tabbar-space) + 12px); gap: 10px; }
  .chat-bubble, .chat-bubble svg { width: 48px; }
  .chat-bubble { height: 48px; }
  .toast-host { bottom: calc(var(--tabbar-space) + 12px); }
  .cookie-bar { bottom: calc(var(--tabbar-space) + 8px); }

  /* --- Alt çubuk --- */
  .tabbar {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    position: fixed;
    left: var(--tabbar-gap); right: var(--tabbar-gap);
    bottom: calc(var(--tabbar-gap) + env(safe-area-inset-bottom));
    z-index: 110;
    max-width: 560px;
    height: var(--tabbar-h);
    margin: 0 auto;
    padding: 0 4px 9px;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: var(--bg-elevated);
    background: color-mix(in srgb, var(--bg-elevated) 84%, transparent);
    backdrop-filter: saturate(180%) blur(18px);
    -webkit-backdrop-filter: saturate(180%) blur(18px);
    box-shadow: 0 14px 36px rgba(8, 10, 20, .22), 0 2px 8px rgba(8, 10, 20, .1);
  }
  .tabbar__item {
    display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px;
    min-width: 0; height: 100%;
    padding: 0; border: 0; background: none;
    color: var(--text-3);
    font: inherit; text-decoration: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: color .2s var(--ease);
  }
  .tabbar__icon {
    display: grid; place-items: center;
    width: 48px; height: 30px;
    border-radius: 15px;
    transition: background .22s var(--ease), transform .18s var(--ease);
  }
  .tabbar__label {
    max-width: 100%;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    font-size: 10.5px; font-weight: 650; line-height: 1.1; letter-spacing: .01em;
  }
  .tabbar__item.is-active { color: var(--accent); }
  .tabbar__item.is-active .tabbar__icon { background: rgba(var(--accent-rgb), .14); }
  .tabbar__item:active .tabbar__icon,
  .tabbar__item:active .tabbar__fab { transform: scale(.9); }
  .tabbar__avatar {
    display: grid; place-items: center;
    width: 26px; height: 26px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 50%, #000));
    color: #fff; font-size: 10.5px; font-weight: 750; text-transform: uppercase;
  }
  /* Ortadaki sepet: çubuktan taşan yuvarlak vurgu düğmesi */
  .tabbar__fab {
    position: relative;
    display: grid; place-items: center;
    width: 54px; height: 54px;
    margin-top: -30px;
    border-radius: 50%;
    background: var(--accent);
    background: linear-gradient(140deg, color-mix(in srgb, var(--accent) 82%, #fff), var(--accent) 45%, color-mix(in srgb, var(--accent) 62%, #000));
    color: #fff;
    box-shadow: 0 0 0 5px var(--bg), 0 10px 24px rgba(var(--accent-rgb), .5);
    transition: transform .18s var(--ease);
  }
  .tabbar__item--cart .tabbar__label { margin-top: 1px; }
  .tabbar__badge {
    position: absolute; top: -3px; right: -3px;
    display: grid; place-items: center;
    min-width: 21px; height: 21px; padding: 0 5px;
    border: 2px solid var(--bg-elevated);
    border-radius: 11px;
    background: #ff4d5e; color: #fff;
    font-size: 11px; font-weight: 750; line-height: 1;
  }
  .tabbar__badge[hidden] { display: none; }
  .tabbar__badge.is-bump { animation: tabbar-bump .45s var(--ease-out); }

  /* --- Alttan açılan paneller --- */
  .sheet-backdrop {
    display: block;
    position: fixed; inset: 0; z-index: 200;
    background: rgba(6, 8, 14, .55);
    -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
    opacity: 0;
    transition: opacity .28s var(--ease);
  }
  .sheet-backdrop.is-open { opacity: 1; }
  .sheet-backdrop[hidden] { display: none; }
  .sheet {
    display: flex; flex-direction: column;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 210;
    max-width: 640px; max-height: 86vh; max-height: 86dvh;
    margin: 0 auto;
    padding-bottom: env(safe-area-inset-bottom);
    border: 1px solid var(--border); border-bottom: 0;
    border-radius: 26px 26px 0 0;
    background: var(--bg-elevated);
    box-shadow: 0 -18px 50px rgba(0, 0, 0, .3);
    transform: translateY(100%);
    transition: transform .34s cubic-bezier(.22, 1, .36, 1);
  }
  .sheet.is-open { transform: none; }
  .sheet:focus { outline: none; }
  .sheet.is-dragging { transition: none; }
  .sheet[hidden] { display: none; }
  .sheet__grip { display: grid; place-items: center; padding: 10px 0 2px; touch-action: none; cursor: grab; }
  .sheet__grip span { width: 42px; height: 5px; border-radius: 3px; background: var(--border-strong); }
  .sheet__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 20px 14px; touch-action: none; }
  .sheet__title { margin: 0; font-size: var(--fs-lg); font-weight: 800; letter-spacing: -.02em; }
  .sheet__close {
    display: grid; place-items: center;
    width: 36px; height: 36px;
    border: 0; border-radius: 50%;
    background: var(--surface-2); color: var(--text-2);
    cursor: pointer;
  }
  .sheet__body { overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 0 16px 22px; }
  html.has-sheet, html.has-sheet body { overflow: hidden; }

  /* Kategoriler paneli */
  .sheet-all {
    display: flex; align-items: center; gap: 12px;
    margin-bottom: 12px; padding: 12px 16px 12px 12px;
    border: 1px solid rgba(var(--accent-rgb), .28);
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(var(--accent-rgb), .18), rgba(var(--accent-rgb), .05));
    color: var(--text);
  }
  .sheet-all__icon {
    display: grid; place-items: center; flex: none;
    width: 42px; height: 42px; border-radius: 13px;
    background: var(--accent); color: #fff;
    box-shadow: var(--shadow-accent);
  }
  .sheet-all__text { flex: 1; font-size: var(--fs-base); }
  .sheet-all > svg { color: var(--accent); }
  .sheet-cats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .sheet-cat {
    display: flex; align-items: center; gap: 10px;
    min-height: 64px; padding: 10px 12px;
    border: 1px solid var(--border); border-radius: 15px;
    background: var(--surface);
    color: var(--text);
    font-size: var(--fs-sm); font-weight: 650; line-height: 1.25;
    transition: transform .15s var(--ease), border-color .2s var(--ease);
  }
  .sheet-cat:active { transform: scale(.97); }
  .sheet-cat.is-active { border-color: var(--accent); background: rgba(var(--accent-rgb), .1); }
  .sheet-cat__icon {
    display: grid; place-items: center; flex: none;
    width: 40px; height: 40px; border-radius: 12px;
    background: var(--surface-2);
    font-size: 20px; line-height: 1;
  }
  .sheet-cat__name { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

  /* Menü paneli */
  .sheet-user {
    display: flex; align-items: center; gap: 12px;
    margin-bottom: 10px; padding: 12px 16px 12px 12px;
    border: 1px solid var(--border); border-radius: 16px;
    background: var(--surface); color: var(--text);
  }
  .sheet-user__avatar {
    display: grid; place-items: center; flex: none;
    width: 46px; height: 46px; border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 50%, #000));
    color: #fff; font-weight: 750; text-transform: uppercase;
  }
  .sheet-user__text { display: flex; flex-direction: column; flex: 1; min-width: 0; }
  .sheet-user__text small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-3); font-size: var(--fs-xs); }
  .sheet-user > svg { color: var(--text-3); }
  .sheet-auth { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
  .sheet-prefs { display: flex; gap: 10px; margin: 0 0 12px; }
  .sheet-pref {
    display: flex; align-items: center; gap: 10px; flex: 1;
    height: 48px; padding: 0 14px;
    border: 1px solid var(--border); border-radius: 14px;
    background: var(--surface); color: var(--text);
    font: inherit; font-size: var(--fs-sm); font-weight: 650;
    cursor: pointer;
  }
  .sheet-pref [data-icon] { color: var(--accent); line-height: 0; }
  html[data-theme="dark"] .sheet-pref__light,
  html:not([data-theme="dark"]) .sheet-pref__dark { display: none; }
  .sheet-lang { align-items: center; padding: 4px; border-radius: 14px; border: 1px solid var(--border); }
  .sheet-lang a { padding: 11px 14px; border-radius: 10px; font-size: 12px; }
  .sheet-list {
    display: flex; flex-direction: column;
    margin-bottom: 12px; padding: 4px;
    border: 1px solid var(--border); border-radius: 16px;
    background: var(--surface);
  }
  .sheet-list a {
    position: relative;
    display: flex; align-items: center; gap: 12px;
    padding: 12px;
    border-radius: 12px;
    color: var(--text); font-size: var(--fs-sm); font-weight: 600;
  }
  .sheet-list a + a::before { content: ""; position: absolute; top: 0; left: 42px; right: 12px; height: 1px; background: var(--border); }
  .sheet-list a > svg { flex: none; color: var(--text-3); }
  .sheet-list a.is-active,
  .sheet-list a.is-active > svg { color: var(--accent); }
  .sheet-list a:active { background: var(--surface-2); }
  .sheet-support { display: flex; gap: 10px; margin-bottom: 12px; }
  .sheet-support__btn {
    display: flex; align-items: center; justify-content: center; gap: 8px; flex: 1;
    height: 48px; border-radius: 14px;
    color: #fff; font-size: var(--fs-sm); font-weight: 700;
  }
  .sheet-support__btn--wa { background: #25d366; }
  .sheet-support__btn--tg { background: #229ed9; }
}

/* Tablette panel kategorileri 3 sütun */
@media (min-width: 600px) and (max-width: 1023px) {
  .sheet-cats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@keyframes tabbar-bump { 0% { transform: scale(1); } 35% { transform: scale(1.35); } 100% { transform: scale(1); } }

@media (prefers-reduced-motion: reduce) {
  .sheet, .sheet-backdrop { transition: none; }
}

@media print {
  .tabbar, .sheet, .sheet-backdrop { display: none !important; }
}
