/* ==========================================================================
   Katalinevii ~ ENSAR ERDEM — Dijital Hammadde Kataloğu
   Sade, Ferah, Doğal Katalin-Kehribar & Galeri Fildişi Teması
   Mobil Öncelikli (Mobile-First)
   ========================================================================== */

:root {
  --bg: #F7F5F0;
  --bg-elevated: #FFFFFF;
  --bg-soft: #EFECE5;
  --bg-glass: rgba(247, 245, 240, 0.88);

  --ink: #1C1917;
  --ink-secondary: #57524C;
  --ink-muted: #827B72;

  --accent: #A96420;
  --accent-strong: #8B4F14;
  --accent-warm: #C87E32;
  --accent-soft: rgba(169, 100, 32, 0.10);
  --accent-ring: rgba(200, 126, 50, 0.42);

  --wa: #1E9E53;
  --wa-hover: #178344;
  --danger: #B43B3B;

  --border: rgba(28, 25, 23, 0.08);
  --border-strong: rgba(28, 25, 23, 0.15);

  --shadow-xs: 0 1px 2px rgba(28, 25, 23, 0.04);
  --shadow-sm: 0 4px 14px rgba(28, 25, 23, 0.06);
  --shadow-md: 0 12px 30px rgba(28, 25, 23, 0.10);
  --shadow-lg: 0 22px 54px rgba(18, 16, 13, 0.24);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  --font-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --container-max: 1420px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.no-scroll,
body.intro-active {
  overflow: hidden;
}

body.no-scroll {
  touch-action: none;
}

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

button,
input {
  font-family: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

[hidden] {
  display: none !important;
}

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

@media (min-width: 640px) {
  .container {
    padding-inline: 24px;
  }
}

@media (min-width: 1024px) {
  .container {
    padding-inline: 36px;
  }
}

/* ==========================================================================
   Sade & Prestijli Açılış Animasyonu (Katalinevii Intro Splash)
   ========================================================================== */

.intro-splash {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: linear-gradient(160deg, #FBF9F5 0%, #F2EDE3 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow: hidden;
  cursor: pointer;
  transition: opacity 0.65s var(--ease-out), transform 0.7s var(--ease-out), visibility 0.7s;
}

.intro-splash.is-leaving {
  opacity: 0;
  transform: translateY(-18px) scale(1.02);
  visibility: hidden;
  pointer-events: none;
}

.intro-ambient {
  position: absolute;
  width: min(92vw, 520px);
  height: min(92vw, 520px);
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(200, 126, 50, 0.14) 0%,
    rgba(169, 100, 32, 0.04) 42%,
    rgba(247, 245, 240, 0) 72%
  );
  animation: introAura 2.3s var(--ease-out) forwards;
  pointer-events: none;
}

@keyframes introAura {
  0% {
    opacity: 0;
    transform: scale(0.75);
  }
  60% {
    opacity: 1;
    transform: scale(1.04);
  }
  100% {
    opacity: 0.9;
    transform: scale(1);
  }
}

.intro-center {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.intro-logo-stage {
  position: relative;
  width: 164px;
  height: 164px;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 640px) {
  .intro-logo-stage {
    width: 190px;
    height: 190px;
  }
}

.intro-halo {
  position: absolute;
  inset: -12px;
  width: calc(100% + 24px);
  height: calc(100% + 24px);
  transform: rotate(-90deg);
  pointer-events: none;
}

.halo-track {
  fill: none;
  stroke: rgba(28, 25, 23, 0.08);
  stroke-width: 1.5;
}

.halo-arc {
  fill: none;
  stroke: var(--accent-warm);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 692;
  stroke-dashoffset: 692;
  animation: drawHalo 1.75s var(--ease-out) 0.1s forwards;
}

@keyframes drawHalo {
  0% {
    stroke-dashoffset: 692;
    opacity: 0.4;
  }
  100% {
    stroke-dashoffset: 0;
    opacity: 1;
  }
}

.intro-logo-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #FFFFFF;
  box-shadow: 0 16px 40px rgba(28, 25, 23, 0.14);
  opacity: 0;
  transform: scale(0.86);
  animation: introLogoReveal 1s var(--ease-out) 0.08s forwards;
}

@keyframes introLogoReveal {
  0% {
    opacity: 0;
    transform: scale(0.86);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.intro-logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.56);
  user-select: none;
  pointer-events: none;
}

.intro-sheen {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    transparent 30%,
    rgba(255, 255, 255, 0.42) 50%,
    transparent 70%
  );
  transform: translateX(-140%);
  animation: introSheenSweep 1.15s var(--ease-out) 0.55s forwards;
  pointer-events: none;
}

@keyframes introSheenSweep {
  to {
    transform: translateX(140%);
  }
}

.intro-brand-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  opacity: 0;
  animation: introFadeUp 0.8s var(--ease-out) 0.3s forwards;
}

.intro-brand-name {
  font-family: var(--font-serif);
  font-size: 2.3rem;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.01em;
  color: var(--ink);
}

@media (min-width: 640px) {
  .intro-brand-name {
    font-size: 2.75rem;
  }
}

.intro-brand-owner {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: var(--accent-strong);
  margin-top: 2px;
}

.intro-kicker {
  margin: 8px 0 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.intro-progress-line {
  width: min(58vw, 200px);
  height: 2px;
  border-radius: var(--radius-pill);
  background: rgba(28, 25, 23, 0.10);
  overflow: hidden;
  opacity: 0;
  animation: introFadeUp 0.6s var(--ease-out) 0.4s forwards;
}

.intro-progress-fill {
  display: block;
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent-strong), var(--accent-warm));
  animation: introProgressFill 2.05s var(--ease-out) 0.15s forwards;
}

@keyframes introProgressFill {
  from { width: 0%; }
  to { width: 100%; }
}

@keyframes introFadeUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.intro-skip-btn {
  position: absolute;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  right: 20px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 15px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--border-strong);
  color: var(--ink-secondary);
  font-size: 0.78rem;
  font-weight: 600;
  box-shadow: var(--shadow-xs);
  opacity: 0;
  animation: introFadeUp 0.55s ease 0.45s forwards;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.intro-skip-btn:hover {
  background: var(--ink);
  color: #FFFFFF;
}

@media (max-width: 520px) {
  .intro-skip-btn {
    right: 50%;
    transform: translateX(50%);
  }
  @keyframes introFadeUp {
    from { opacity: 0; }
    to { opacity: 1; }
  }
}

/* ==========================================================================
   Üst Marka Çubuğu (Mobil Kadraja Tam Oturan Sade & Ferah Tasarım)
   ========================================================================== */

.site-header {
  padding-block: 11px;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  min-width: 0;
  flex: 1;
}

.brand-avatar {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1.5px solid rgba(169, 100, 32, 0.25);
  background: var(--bg-soft);
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: var(--shadow-xs);
}

@media (min-width: 640px) {
  .brand-avatar {
    width: 46px;
    height: 46px;
  }
}

.brand-logo-emblem {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.56);
  pointer-events: none;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.32rem;
  line-height: 1.05;
  letter-spacing: 0.005em;
  color: var(--ink);
  white-space: nowrap;
}

.brand-owner {
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-strong);
  margin-top: 2px;
  white-space: nowrap;
}

@media (min-width: 640px) {
  .brand-title {
    font-size: 1.52rem;
  }
  .brand-owner {
    font-size: 0.72rem;
    letter-spacing: 0.16em;
  }
}

/* Dil Seçici & SVG Bayraklar (Kompakt Mobil Uyumlu) */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px;
  border-radius: var(--radius-pill);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 30px;
  padding: 0 9px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink-secondary);
  transition: background-color 0.2s var(--ease-out), color 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}

.lang-btn:hover {
  color: var(--ink);
}

.lang-btn.is-active {
  background: var(--bg-elevated);
  color: var(--ink);
  box-shadow: 0 1px 4px rgba(28, 25, 23, 0.10);
}

.flag-svg {
  display: inline-block;
  width: 17px;
  height: 12px;
  border-radius: 2px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 0 0 0.6px rgba(0, 0, 0, 0.14);
}

.lang-name-full {
  display: none;
}

@media (min-width: 600px) {
  .lang-btn {
    height: 32px;
    padding: 0 11px;
    gap: 6px;
  }
  .lang-name-short {
    display: none;
  }
  .lang-name-full {
    display: inline;
  }
}

/* ==========================================================================
   Sade Bilgilendirme & Vitrin Kartı (Hero)
   ========================================================================== */

.hero-section {
  padding-top: 14px;
  padding-bottom: 10px;
}

.hero-card {
  position: relative;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 17px 15px;
  box-shadow: var(--shadow-xs);
  overflow: hidden;
}

.hero-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-strong) 0%, var(--accent-warm) 55%, #D9A25B 100%);
  opacity: 0.9;
}

@media (min-width: 768px) {
  .hero-section {
    padding-top: 20px;
    padding-bottom: 14px;
  }
  .hero-card {
    padding: 24px 28px 18px;
  }
}

.hero-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
}

.hero-main {
  flex: 1;
  min-width: 0;
}

.hero-showcase {
  display: none;
}

@media (min-width: 900px) {
  .hero-showcase {
    display: block;
    width: 158px;
    height: 158px;
    border-radius: 18px;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid var(--border-strong);
    box-shadow: var(--shadow-sm);
  }
  .hero-showcase-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.54);
  }
}

.hero-top-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.pill-amber {
  background: var(--accent-soft);
  border: 1px solid rgba(169, 100, 32, 0.22);
  color: var(--accent-strong);
}

.hero-greeting {
  margin: 0 0 6px;
  font-family: var(--font-serif);
  font-size: 1.72rem;
  font-weight: 700;
  line-height: 1.12;
  color: var(--ink);
}

@media (min-width: 768px) {
  .hero-greeting {
    font-size: 2.15rem;
  }
}

.hero-description {
  margin: 0;
  max-width: 70ch;
  font-size: 0.93rem;
  line-height: 1.62;
  color: var(--ink-secondary);
}

@media (min-width: 768px) {
  .hero-description {
    font-size: 0.98rem;
  }
}

/* İletişim Butonları */
.contact-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.contact-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 15px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--border-strong);
  background: var(--bg);
  color: var(--ink);
  transition: transform 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}

.contact-chip:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.contact-chip-wa {
  background: var(--wa);
  border-color: var(--wa);
  color: #FFFFFF;
}

.contact-chip-wa:hover {
  background: var(--wa-hover);
}

.contact-chip-ig {
  background: var(--ink);
  border-color: var(--ink);
  color: #FFFFFF;
}

/* Alt İpucu Şeridi */
.hero-footer-hints {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 0.76rem;
  color: var(--ink-muted);
}

.hint-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.hint-item svg {
  color: var(--accent);
  flex-shrink: 0;
}

.hint-sep {
  display: none;
  color: var(--border-strong);
}

@media (min-width: 640px) {
  .hint-sep {
    display: inline;
  }
}

/* ==========================================================================
   Yapışkan Araç Çubuğu (Numara Arama + Filtre + Görünüm)
   ========================================================================== */

.toolbar-wrap {
  position: sticky;
  top: 0;
  z-index: 40;
  padding-block: 10px;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.2s ease;
}

.toolbar-wrap.is-stuck {
  box-shadow: 0 6px 20px rgba(28, 25, 23, 0.06);
}

.toolbar-inner {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

@media (min-width: 720px) {
  .toolbar-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
  }
}

/* Hızlı Numara Arama Kutusu */
.search-box {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  height: 44px;
  padding: 0 5px 0 14px;
  box-shadow: var(--shadow-xs);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

@media (min-width: 720px) {
  .search-box {
    max-width: 340px;
  }
}

.search-box:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.search-hash {
  font-weight: 700;
  font-size: 0.96rem;
  color: var(--accent);
  margin-right: 6px;
  user-select: none;
}

.search-input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.search-input::placeholder {
  color: var(--ink-muted);
  font-weight: 400;
}

.search-clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: var(--ink-muted);
  transition: background-color 0.15s ease, color 0.15s ease;
}

.search-clear:hover {
  background: var(--bg-soft);
  color: var(--ink);
}

.search-go {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--ink);
  color: #FFFFFF;
  margin-left: 4px;
  flex-shrink: 0;
  transition: background-color 0.18s ease, transform 0.16s ease;
}

.search-go:hover {
  background: var(--accent-strong);
}

.search-go:active {
  transform: scale(0.94);
}

/* Hızlı Arama Dropdown */
.search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 6px;
  z-index: 60;
  max-height: 310px;
  overflow-y: auto;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 7px 8px;
  border-radius: 10px;
  text-align: left;
  transition: background-color 0.15s ease;
}

.search-result-item:hover {
  background: var(--bg);
}

.search-result-thumb {
  width: 40px;
  height: 52px;
  border-radius: 7px;
  object-fit: cover;
  background: var(--bg-soft);
  flex-shrink: 0;
}

.search-result-info {
  flex: 1;
  min-width: 0;
}

.search-result-code {
  display: block;
  font-weight: 700;
  font-size: 0.94rem;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

.search-result-sub {
  display: block;
  font-size: 0.74rem;
  color: var(--ink-muted);
}

.search-result-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.mini-action-btn {
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.74rem;
  font-weight: 600;
  background: var(--bg-soft);
  color: var(--ink);
  transition: background-color 0.15s ease, color 0.15s ease;
}

.mini-action-btn:hover {
  background: var(--ink);
  color: #FFFFFF;
}

.mini-action-btn.is-primary {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.mini-action-btn.is-primary:hover {
  background: var(--accent);
  color: #FFFFFF;
}

.search-empty-msg {
  padding: 12px 10px;
  font-size: 0.84rem;
  color: var(--ink-muted);
  text-align: center;
}

/* Filtre & Görünüm Kontrolleri */
.toolbar-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.segmented-control {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px;
  border-radius: var(--radius-pill);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  flex: 1;
}

@media (min-width: 720px) {
  .segmented-control {
    flex: initial;
  }
}

.seg-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  padding: 0 13px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-secondary);
  white-space: nowrap;
  transition: background-color 0.2s var(--ease-out), color 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}

.seg-btn.is-active {
  background: var(--bg-elevated);
  color: var(--ink);
  box-shadow: 0 1px 4px rgba(28, 25, 23, 0.10);
}

.seg-btn[data-filter="favorites"].has-favs svg {
  color: var(--accent);
}

.seg-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 20px;
  padding: 0 6px;
  border-radius: var(--radius-pill);
  background: rgba(28, 25, 23, 0.06);
  font-size: 0.72rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.seg-btn.is-active .seg-count {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--ink-secondary);
  flex-shrink: 0;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.icon-btn:hover {
  color: var(--ink);
  border-color: var(--border-strong);
  background: var(--bg-soft);
}

/* ==========================================================================
   Galeri Izgarası & Hammadde Kartları
   ========================================================================== */

.gallery-section {
  padding-top: 16px;
  padding-bottom: 110px;
}

@media (min-width: 768px) {
  .gallery-section {
    padding-top: 22px;
  }
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.gallery-grid.is-spacious {
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 640px) {
  .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }
  .gallery-grid.is-spacious {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
}

@media (min-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
  }
  .gallery-grid.is-spacious {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
  }
}

@media (min-width: 1360px) {
  .gallery-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 20px;
  }
  .gallery-grid.is-spacious {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
  }
}

.stone-card {
  position: relative;
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  scroll-margin-top: 96px;
  content-visibility: auto;
  contain-intrinsic-size: auto 320px;
  transition: transform 0.28s var(--ease-out), box-shadow 0.28s var(--ease-out), border-color 0.25s ease;
}

.stone-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

.stone-card.is-selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent), var(--shadow-sm);
}

.stone-card.is-spotlight {
  animation: spotlightPulse 1.8s var(--ease-out);
}

@keyframes spotlightPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(200, 126, 50, 0.85), var(--shadow-md);
    transform: scale(1.015);
  }
  45% {
    box-shadow: 0 0 0 10px rgba(200, 126, 50, 0.18), var(--shadow-md);
    transform: scale(1.01);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(200, 126, 50, 0), var(--shadow-xs);
    transform: scale(1);
  }
}

.card-media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  background: linear-gradient(110deg, #ECE8DF 25%, #F5F2EB 50%, #ECE8DF 75%);
  background-size: 200% 100%;
  animation: shimmer 1.6s infinite linear;
  overflow: hidden;
  cursor: zoom-in;
}

.card-media.is-loaded {
  animation: none;
  background: #EBE7DE;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 0.35s ease, transform 0.55s var(--ease-out);
}

.card-img.is-loaded {
  opacity: 1;
}

@media (hover: hover) {
  .stone-card:hover .card-img.is-loaded {
    transform: scale(1.035);
  }
}

.card-code {
  position: absolute;
  top: 9px;
  left: 9px;
  z-index: 2;
  padding: 4px 9px;
  border-radius: var(--radius-pill);
  background: rgba(22, 20, 18, 0.74);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #FAF8F4;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

@media (min-width: 640px) {
  .card-code {
    top: 11px;
    left: 11px;
    font-size: 0.8rem;
    padding: 5px 10px;
  }
}

.card-fav-btn {
  position: absolute;
  top: 7px;
  right: 7px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.90);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--ink);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.14);
  transition: transform 0.18s var(--ease-out), background-color 0.18s ease, color 0.18s ease;
}

@media (min-width: 640px) {
  .card-fav-btn {
    top: 9px;
    right: 9px;
    width: 40px;
    height: 40px;
  }
}

.card-fav-btn:hover {
  transform: scale(1.07);
  background: #FFFFFF;
}

.card-fav-btn:active {
  transform: scale(0.9);
}

.card-fav-btn.is-active {
  background: var(--accent);
  color: #FFFFFF;
}

.card-fav-btn.is-active svg {
  fill: currentColor;
}

.card-zoom-hint {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(22, 20, 18, 0.62);
  backdrop-filter: blur(6px);
  color: #FFFFFF;
  opacity: 0;
  transform: translateY(4px);
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s var(--ease-out);
}

@media (hover: hover) {
  .stone-card:hover .card-zoom-hint {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   Boş Durum & Kademeli Yükleme
   ========================================================================== */

.empty-state {
  text-align: center;
  max-width: 440px;
  margin: 48px auto;
  padding: 36px 24px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.empty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 14px;
}

.empty-title {
  margin: 0 0 8px;
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 600;
}

.empty-desc {
  margin: 0 0 20px;
  font-size: 0.9rem;
  color: var(--ink-secondary);
}

.load-more-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: 32px;
}

.load-progress-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 260px;
}

.load-progress-track {
  width: 100%;
  height: 4px;
  border-radius: var(--radius-pill);
  background: rgba(28, 25, 23, 0.09);
  overflow: hidden;
}

.load-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-strong), var(--accent-warm));
  border-radius: var(--radius-pill);
  transition: width 0.35s var(--ease-out);
}

.load-status-text {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ink-muted);
  font-variant-numeric: tabular-nums;
}

.scroll-sentinel {
  width: 100%;
  height: 2px;
}

/* Butonlar */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 600;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.14s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-block {
  width: 100%;
}

.btn-primary {
  background: var(--ink);
  color: #FFFFFF;
}

.btn-primary:hover {
  background: var(--accent-strong);
}

.btn-outline {
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  color: var(--ink);
}

.btn-outline:hover {
  background: var(--bg-soft);
}

.btn-wa {
  background: var(--wa);
  color: #FFFFFF;
}

.btn-wa:hover {
  background: var(--wa-hover);
}

.btn-ghost-danger {
  background: transparent;
  border: 1px solid rgba(180, 59, 59, 0.24);
  color: var(--danger);
}

.btn-ghost-danger:hover {
  background: rgba(180, 59, 59, 0.08);
}

/* ==========================================================================
   Alt Bilgi & Yukarı Çık
   ========================================================================== */

.site-footer {
  border-top: 1px solid var(--border);
  padding-block: 22px;
  background: var(--bg-elevated);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  text-align: center;
}

@media (min-width: 640px) {
  .footer-inner {
    flex-direction: row;
    text-align: left;
  }
}

.footer-brand {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 10px;
}

@media (min-width: 640px) {
  .footer-brand {
    justify-content: flex-start;
  }
}

.footer-brand-name {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
}

.footer-brand-dot {
  color: var(--border-strong);
}

.footer-note {
  font-size: 0.8rem;
  color: var(--ink-muted);
}

.footer-top-btn {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-strong);
  padding: 6px 13px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  transition: background-color 0.18s ease;
}

.footer-top-btn:hover {
  background: var(--accent-soft);
}

.fab-top {
  position: fixed;
  right: 16px;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  z-index: 45;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  color: var(--ink);
  box-shadow: var(--shadow-md);
  transition: transform 0.2s var(--ease-out), bottom 0.25s var(--ease-out), opacity 0.2s ease;
}

.fab-top.has-dock {
  bottom: calc(92px + env(safe-area-inset-bottom, 0px));
}

.fab-top:hover {
  transform: translateY(-2px);
}

/* ==========================================================================
   Yüzen Seçim Çubuğu (Selection Dock)
   ========================================================================== */

.selection-dock {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  z-index: 50;
  display: flex;
  justify-content: center;
  pointer-events: none;
  animation: dockSlideUp 0.28s var(--ease-out);
}

@keyframes dockSlideUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.selection-dock-inner {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  max-width: 620px;
  padding: 8px 8px 8px 12px;
  border-radius: var(--radius-pill);
  background: rgba(24, 22, 19, 0.94);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  color: #FAF8F4;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow-lg);
}

.dock-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
  text-align: left;
  color: #FAF8F4;
  padding-right: 4px;
}

.dock-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 30px;
  padding: 0 8px;
  border-radius: 50%;
  background: var(--accent-warm);
  color: #FFFFFF;
  font-size: 0.84rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

.dock-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.dock-label {
  font-size: 0.69rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(250, 248, 244, 0.68);
  line-height: 1.15;
}

.dock-codes {
  font-size: 0.84rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dock-chevron {
  flex-shrink: 0;
  opacity: 0.7;
}

.dock-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.dock-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 40px;
  padding: 0 13px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 700;
  transition: transform 0.14s ease, background-color 0.18s ease;
}

.dock-btn:active {
  transform: scale(0.95);
}

.dock-btn-copy {
  background: rgba(255, 255, 255, 0.13);
  color: #FFFFFF;
}

.dock-btn-copy:hover {
  background: rgba(255, 255, 255, 0.22);
}

.dock-btn-wa {
  background: var(--wa);
  color: #FFFFFF;
}

.dock-btn-wa:hover {
  background: var(--wa-hover);
}

@media (max-width: 400px) {
  .dock-btn-copy span {
    display: none;
  }
  .dock-btn-copy {
    width: 40px;
    padding: 0;
  }
}

/* ==========================================================================
   Seçilenler Çekmecesi (Drawer)
   ========================================================================== */

.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(15, 13, 10, 0.56);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: fadeIn 0.2s ease;
}

@media (min-width: 768px) {
  .drawer-backdrop {
    align-items: stretch;
    justify-content: flex-end;
  }
}

.selection-drawer {
  width: 100%;
  max-height: 84vh;
  background: var(--bg-elevated);
  border-radius: 22px 22px 0 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  animation: drawerUp 0.28s var(--ease-out);
}

@media (min-width: 768px) {
  .selection-drawer {
    max-width: 420px;
    max-height: 100vh;
    border-radius: 0;
    animation: drawerLeft 0.28s var(--ease-out);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes drawerUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

@keyframes drawerLeft {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--border);
}

.drawer-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.15;
}

.drawer-subtitle {
  margin: 2px 0 0;
  font-size: 0.8rem;
  color: var(--ink-muted);
}

.drawer-codes-box {
  padding: 12px 20px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.drawer-codes-text {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--accent-strong);
  word-break: break-word;
}

.drawer-list {
  flex: 1;
  overflow-y: auto;
  padding: 12px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.drawer-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
}

.drawer-thumb-btn {
  width: 52px;
  height: 68px;
  border-radius: 9px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-soft);
}

.drawer-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.drawer-item-info {
  flex: 1;
  min-width: 0;
}

.drawer-item-code {
  font-weight: 700;
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
}

.drawer-item-sub {
  font-size: 0.76rem;
  color: var(--ink-muted);
}

.drawer-remove-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-muted);
}

.drawer-remove-btn:hover {
  background: rgba(180, 59, 59, 0.1);
  color: var(--danger);
}

.drawer-footer {
  padding: 14px 20px calc(16px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--border);
  background: var(--bg-elevated);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.drawer-footer-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

/* ==========================================================================
   Tam Ekran İnceleme (Lightbox)
   ========================================================================== */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: #0D0C0B;
  color: #FAF8F4;
  display: flex;
  flex-direction: column;
  user-select: none;
  -webkit-user-select: none;
  animation: fadeIn 0.2s ease;
}

.lb-topbar {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: calc(10px + env(safe-area-inset-top, 0px)) 14px 10px;
  background: linear-gradient(180deg, rgba(13, 12, 11, 0.9) 0%, rgba(13, 12, 11, 0) 100%);
}

@media (min-width: 768px) {
  .lb-topbar {
    padding: 14px 24px;
  }
}

.lb-info {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.lb-code {
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: rgba(200, 126, 50, 0.22);
  border: 1px solid rgba(200, 126, 50, 0.5);
  color: #F7D4A6;
  font-size: 0.94rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}

.lb-counter {
  font-size: 0.84rem;
  font-weight: 500;
  color: rgba(250, 248, 244, 0.72);
  font-variant-numeric: tabular-nums;
}

.lb-dims {
  display: none;
  font-size: 0.75rem;
  color: rgba(250, 248, 244, 0.46);
  font-variant-numeric: tabular-nums;
}

@media (min-width: 640px) {
  .lb-dims {
    display: inline;
  }
}

.lb-top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lb-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 13px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.11);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #FAF8F4;
  font-size: 0.8rem;
  font-weight: 600;
  transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.14s ease;
}

.lb-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.lb-fav-btn.is-active {
  background: var(--accent-warm);
  border-color: var(--accent-warm);
  color: #FFFFFF;
}

.lb-fav-btn.is-active svg {
  fill: currentColor;
}

.lb-btn-wa {
  background: var(--wa);
  border-color: var(--wa);
  color: #FFFFFF;
}

.lb-btn-wa:hover {
  background: var(--wa-hover);
}

.lb-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.11);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #FAF8F4;
  transition: background-color 0.18s ease;
}

.lb-icon-btn:hover {
  background: rgba(255, 255, 255, 0.22);
}

.lb-stage {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  touch-action: none;
}

.lb-canvas {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: zoom-in;
}

.lb-canvas.is-zoomed {
  cursor: grab;
}

.lb-canvas.is-panning {
  cursor: grabbing;
}

.lb-image {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transform-origin: center center;
  will-change: transform;
  transition: opacity 0.2s ease;
}

.lb-image.is-loading {
  opacity: 0.25;
}

.lb-spinner {
  position: absolute;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, 0.16);
  border-top-color: var(--accent-warm);
  animation: spin 0.75s linear infinite;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.lb-spinner.is-visible {
  opacity: 1;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(18, 16, 14, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #FFFFFF;
  backdrop-filter: blur(8px);
  transition: background-color 0.18s ease, transform 0.16s ease;
}

.lb-nav:hover {
  background: var(--accent-warm);
}

.lb-prev {
  left: 10px;
}

.lb-next {
  right: 10px;
}

@media (min-width: 768px) {
  .lb-nav {
    width: 52px;
    height: 52px;
  }
  .lb-prev {
    left: 22px;
  }
  .lb-next {
    right: 22px;
  }
}

.lb-bottombar {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px calc(12px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(0deg, rgba(13, 12, 11, 0.94) 0%, rgba(13, 12, 11, 0) 100%);
}

@media (min-width: 768px) {
  .lb-bottombar {
    padding: 14px 24px 18px;
  }
}

.lb-zoom-controls {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.lb-zoom-level {
  min-width: 48px;
  height: 36px;
  padding: 0 8px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(250, 248, 244, 0.9);
  font-size: 0.76rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.lb-zoom-level:hover {
  background: rgba(255, 255, 255, 0.18);
}

.lb-quick-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

@media (max-width: 460px) {
  #lbCopyCodeBtn span {
    display: none;
  }
  #lbCopyCodeBtn {
    width: 38px;
    padding: 0;
    justify-content: center;
  }
  .lb-btn {
    padding: 0 11px;
    font-size: 0.76rem;
  }
}

/* ==========================================================================
   Akıllı WhatsApp Hızlı Soru Penceresi (Light Sheet Above Lightbox)
   ========================================================================== */

.wa-sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(12, 11, 9, 0.68);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  animation: fadeIn 0.18s ease;
}

@media (min-width: 600px) {
  .wa-sheet-backdrop {
    align-items: center;
    padding: 20px;
  }
}

.wa-sheet {
  width: 100%;
  max-width: 440px;
  background: var(--bg-elevated);
  color: var(--ink);
  border-radius: 22px 22px 0 0;
  padding: 18px 18px calc(20px + env(safe-area-inset-bottom, 0px));
  box-shadow: var(--shadow-lg);
  animation: drawerUp 0.25s var(--ease-out);
}

@media (min-width: 600px) {
  .wa-sheet {
    border-radius: 22px;
    padding: 22px;
  }
}

.wa-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.wa-sheet-preview {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.wa-sheet-thumb {
  width: 52px;
  height: 66px;
  border-radius: 10px;
  object-fit: cover;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.wa-sheet-code {
  display: inline-block;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 0.74rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  margin-bottom: 3px;
}

.wa-sheet-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.32rem;
  font-weight: 700;
  line-height: 1.1;
}

.wa-sheet-sub {
  display: block;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--ink-muted);
  margin-top: 2px;
}

.wa-sheet-hint {
  margin: 0 0 12px;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--ink-secondary);
}

.wa-presets {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

.wa-preset-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: var(--bg);
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 600;
  text-align: left;
  transition: background-color 0.16s ease, border-color 0.16s ease, transform 0.14s ease;
}

.wa-preset-btn:hover {
  background: rgba(30, 158, 83, 0.08);
  border-color: rgba(30, 158, 83, 0.45);
}

.wa-preset-btn:active {
  transform: scale(0.99);
}

.wa-preset-arrow {
  color: var(--wa);
  font-weight: 700;
}

.wa-custom-wrap {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.wa-custom-input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: var(--bg);
  font-size: 0.88rem;
  color: var(--ink);
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.wa-custom-input:focus {
  border-color: var(--wa);
  box-shadow: 0 0 0 3px rgba(30, 158, 83, 0.14);
  background: var(--bg-elevated);
}

/* ==========================================================================
   Toast Bildirim
   ========================================================================== */

.toast-region {
  position: fixed;
  top: calc(16px + env(safe-area-inset-top, 0px));
  left: 50%;
  transform: translateX(-50%);
  z-index: 140;
  pointer-events: none;
  width: max-content;
  max-width: calc(100vw - 28px);
}

.toast {
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  background: rgba(24, 22, 19, 0.94);
  color: #FAF8F4;
  border: 1px solid rgba(200, 126, 50, 0.45);
  font-size: 0.84rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  text-align: center;
  animation: toastIn 0.24s var(--ease-out);
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(-10px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
