/* =====================================================================
   ALIDEDE — TASARIM SİSTEMİ ÇEKİRDEĞİ
   Tokenlar, reset, tipografi, form ve yardımcı sınıflar.
   ===================================================================== */

/* ---------------------------------------------------------------------
   1. TOKENLAR
   --------------------------------------------------------------------- */
:root {
  /* Marka — Alidede kırmızısı */
  --brand-50:  #fff1f3;
  --brand-100: #ffe0e6;
  --brand-200: #ffc6d0;
  --brand-300: #ff9dae;
  --brand-400: #ff5c7c;
  --brand-500: #f5154a;
  --brand-600: #dc0032;
  --brand-700: #b80029;
  --brand-800: #950022;
  --brand-900: #7a0020;

  /* Premium altın vurgu */
  --gold-300: #ecd898;
  --gold-400: #ddbe5c;
  --gold-500: #c9a227;
  --gold-600: #a8851c;

  /* Nötr — mürekkep */
  --ink-950: #07080b;
  --ink-900: #0c0e12;
  --ink-800: #14171d;
  --ink-700: #1e222b;
  --ink-600: #2c313c;
  --ink-500: #4a5160;
  --ink-400: #6b7280;
  --ink-300: #9ca3af;
  --ink-200: #d5d9e0;
  --ink-150: #e2e5ea;
  --ink-100: #eceef2;
  --ink-50:  #f6f7f9;
  --white:   #ffffff;

  /* Anlamsal */
  --success: #0e9f6e;
  --success-bg: #e8f8f1;
  --warning: #d97706;
  --warning-bg: #fef4e6;
  --danger:  #dc2626;
  --danger-bg: #fdeaea;
  --info:    #2563eb;
  --info-bg: #eaf0fe;

  /* Yüzeyler */
  --surface: var(--white);
  --surface-muted: var(--ink-50);
  --surface-inverse: var(--ink-900);
  --border: var(--ink-150);
  --border-strong: var(--ink-200);
  --text: var(--ink-900);
  --text-muted: var(--ink-400);
  --text-soft: var(--ink-500);

  /* Tipografi */
  --font-sans: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-mono: ui-monospace, SFMono-Regular, 'JetBrains Mono', Menlo, Consolas, monospace;

  --fs-2xs: 0.6875rem;   /* 11 */
  --fs-xs:  0.75rem;     /* 12 */
  --fs-sm:  0.8125rem;   /* 13 */
  --fs-base:0.9375rem;   /* 15 */
  --fs-md:  1rem;        /* 16 */
  --fs-lg:  1.125rem;    /* 18 */
  --fs-xl:  1.375rem;    /* 22 */
  --fs-2xl: 1.75rem;     /* 28 */
  --fs-3xl: 2.25rem;     /* 36 */
  --fs-4xl: 3rem;        /* 48 */
  --fs-5xl: 4rem;        /* 64 */

  /* Ölçek */
  --sp-1: 0.25rem;  --sp-2: 0.5rem;   --sp-3: 0.75rem;  --sp-4: 1rem;
  --sp-5: 1.25rem;  --sp-6: 1.5rem;   --sp-8: 2rem;     --sp-10: 2.5rem;
  --sp-12: 3rem;    --sp-16: 4rem;    --sp-20: 5rem;    --sp-24: 6rem;

  /* Köşe yarıçapı */
  --r-xs: 6px;  --r-sm: 10px; --r-md: 14px; --r-lg: 20px;
  --r-xl: 28px; --r-2xl: 36px; --r-full: 999px;

  /* Gölge — katmanlı, yumuşak */
  --sh-xs: 0 1px 2px rgba(12, 14, 18, .05);
  --sh-sm: 0 1px 3px rgba(12, 14, 18, .07), 0 1px 2px rgba(12, 14, 18, .04);
  --sh-md: 0 4px 12px rgba(12, 14, 18, .07), 0 2px 4px rgba(12, 14, 18, .04);
  --sh-lg: 0 12px 32px rgba(12, 14, 18, .10), 0 4px 10px rgba(12, 14, 18, .05);
  --sh-xl: 0 24px 60px rgba(12, 14, 18, .14), 0 8px 20px rgba(12, 14, 18, .06);
  --sh-brand: 0 10px 28px rgba(220, 0, 50, .28);
  --sh-brand-lg: 0 18px 44px rgba(220, 0, 50, .34);
  --sh-inset: inset 0 1px 0 rgba(255, 255, 255, .08);

  /* Hareket */
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --ease-spring: cubic-bezier(.34, 1.46, .64, 1);
  --t-fast: 140ms;
  --t-base: 240ms;
  --t-slow: 420ms;

  /* Yerleşim */
  --container: 1360px;
  --container-narrow: 1080px;
  --header-h: 88px;
  --topbar-h: 38px;
  --z-topbar: 40;
  --z-header: 50;
  --z-drawer: 80;
  --z-modal: 90;
  --z-toast: 100;

  /* Degradeler */
  --grad-brand: linear-gradient(135deg, var(--brand-500) 0%, var(--brand-700) 100%);
  --grad-brand-soft: linear-gradient(135deg, #ff3d63 0%, var(--brand-600) 55%, var(--brand-800) 100%);
  --grad-gold: linear-gradient(135deg, var(--gold-300), var(--gold-500));
  --grad-dark: linear-gradient(160deg, var(--ink-800) 0%, var(--ink-950) 100%);
  --grad-sheen: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.42) 50%, transparent 65%);
}

/* ---------------------------------------------------------------------
   2. RESET
   --------------------------------------------------------------------- */
*, *::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;
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--text);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-variant-numeric: tabular-nums;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--ink-900);
}

p { margin: 0 0 var(--sp-4); }
p:last-child { margin-bottom: 0; }

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

img, svg, video { max-width: 100%; height: auto; display: block; }

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }

ul, ol { margin: 0; padding: 0; list-style: none; }

table { border-collapse: collapse; width: 100%; }

hr { border: 0; border-top: 1px solid var(--border); margin: var(--sp-6) 0; }

:focus-visible {
  outline: 2px solid var(--brand-500);
  outline-offset: 2px;
  border-radius: var(--r-xs);
}

::selection { background: var(--brand-600); color: #fff; }

/* İnce kaydırma çubuğu */
* { scrollbar-width: thin; scrollbar-color: var(--ink-200) transparent; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: var(--ink-200); border-radius: 999px; border: 3px solid transparent; background-clip: content-box; }
*::-webkit-scrollbar-thumb:hover { background: var(--ink-300); background-clip: content-box; }

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

/* ---------------------------------------------------------------------
   3. YERLEŞİM
   --------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--sp-5);
}
.container--narrow { max-width: var(--container-narrow); }
.container--wide { max-width: 1560px; }

.section { padding-block: var(--sp-16); }
.section--tight { padding-block: var(--sp-10); }
.section--muted { background: var(--surface-muted); }
.section--dark { background: var(--grad-dark); color: #fff; }
.section--dark h1, .section--dark h2, .section--dark h3 { color: #fff; }

.stack > * + * { margin-top: var(--gap, var(--sp-4)); }

.row { display: flex; align-items: center; gap: var(--sp-3); }
.row--between { justify-content: space-between; }
.row--wrap { flex-wrap: wrap; }
.row--top { align-items: flex-start; }

.grid { display: grid; gap: var(--sp-5); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--auto { grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); }

.spacer { flex: 1 1 auto; }

/* ---------------------------------------------------------------------
   4. TİPOGRAFİ YARDIMCILARI
   --------------------------------------------------------------------- */
.display { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.015em; }
.display--italic { font-style: italic; }

.h1 { font-size: clamp(2rem, 4.4vw, var(--fs-4xl)); }
.h2 { font-size: clamp(1.6rem, 3.2vw, var(--fs-3xl)); }
.h3 { font-size: clamp(1.3rem, 2.2vw, var(--fs-2xl)); }
.h4 { font-size: var(--fs-xl); }
.h5 { font-size: var(--fs-lg); }

.text-xs { font-size: var(--fs-xs); }
.text-sm { font-size: var(--fs-sm); }
.text-md { font-size: var(--fs-md); }
.text-lg { font-size: var(--fs-lg); }

.muted { color: var(--text-muted); }
.soft { color: var(--text-soft); }
.brand { color: var(--brand-600); }
.gold { color: var(--gold-500); }
.success-text { color: var(--success); }
.danger-text { color: var(--danger); }

.fw-500 { font-weight: 500; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.fw-800 { font-weight: 800; }

.uppercase { text-transform: uppercase; letter-spacing: .1em; }
.center { text-align: center; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }

.clamp-1, .clamp-2, .clamp-3 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.clamp-1 { -webkit-line-clamp: 1; }
.clamp-2 { -webkit-line-clamp: 2; }
.clamp-3 { -webkit-line-clamp: 3; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-xs);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--brand-600);
}
.eyebrow::before {
  content: '';
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

/* Bölüm başlığı */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-6);
  margin-bottom: var(--sp-8);
  flex-wrap: wrap;
}
.section-head__title { font-size: clamp(1.5rem, 2.8vw, var(--fs-3xl)); }
.section-head__sub { color: var(--text-muted); margin-top: var(--sp-2); max-width: 58ch; }

/* Altı vurgulu başlık */
.underline-brand {
  position: relative;
  display: inline-block;
}
.underline-brand::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 10px;
  background: var(--brand-100);
  border-radius: 999px;
  z-index: -1;
}

/* ---------------------------------------------------------------------
   5. BUTONLAR
   --------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--ink-900);
  --btn-fg: #fff;
  --btn-border: transparent;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 0.75rem 1.4rem;
  min-height: 46px;
  border-radius: var(--r-full);
  border: 1.5px solid var(--btn-border);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: var(--fs-base);
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
  cursor: pointer;
  overflow: hidden;
  transition: transform var(--t-fast) var(--ease-out),
              box-shadow var(--t-base) var(--ease-out),
              background-color var(--t-base) var(--ease-out),
              color var(--t-base) var(--ease-out),
              border-color var(--t-base) var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.985); }
.btn:disabled, .btn.is-disabled {
  opacity: .5;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* Parlama efekti */
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad-sheen);
  transform: translateX(-120%);
  transition: transform var(--t-slow) var(--ease-out);
  pointer-events: none;
}
.btn:hover::after { transform: translateX(120%); }

.btn--brand {
  --btn-bg: var(--brand-600);
  background: var(--grad-brand-soft);
  box-shadow: var(--sh-brand);
}
.btn--brand:hover { box-shadow: var(--sh-brand-lg); }

.btn--dark { --btn-bg: var(--ink-900); box-shadow: var(--sh-md); }
.btn--gold { --btn-bg: var(--gold-500); --btn-fg: var(--ink-900); background: var(--grad-gold); }

.btn--light {
  --btn-bg: #fff;
  --btn-fg: var(--ink-900);
  --btn-border: var(--border-strong);
  box-shadow: var(--sh-xs);
}
.btn--light:hover { --btn-border: var(--ink-900); }

.btn--outline {
  --btn-bg: transparent;
  --btn-fg: var(--brand-600);
  --btn-border: var(--brand-600);
}
.btn--outline:hover { --btn-bg: var(--brand-600); --btn-fg: #fff; }

.btn--outline-light {
  --btn-bg: transparent;
  --btn-fg: #fff;
  --btn-border: rgba(255,255,255,.45);
}
.btn--outline-light:hover { --btn-bg: #fff; --btn-fg: var(--ink-900); --btn-border: #fff; }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink-700);
}
.btn--ghost:hover { --btn-bg: var(--ink-100); }
.btn--ghost::after { display: none; }

.btn--danger { --btn-bg: var(--danger); }
.btn--success { --btn-bg: var(--success); }

.btn--sm { min-height: 38px; padding: .5rem 1rem; font-size: var(--fs-sm); }
.btn--xs { min-height: 32px; padding: .35rem .8rem; font-size: var(--fs-xs); }
.btn--lg { min-height: 56px; padding: 1rem 2rem; font-size: var(--fs-md); }
.btn--block { width: 100%; }
.btn--square { padding: 0; width: 46px; }
.btn--square.btn--sm { width: 38px; }

.btn__icon { flex: 0 0 auto; width: 18px; height: 18px; }

/* Yükleniyor durumu */
.btn.is-loading { color: transparent !important; pointer-events: none; }
.btn.is-loading::before {
  content: '';
  position: absolute;
  width: 18px; height: 18px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  color: var(--btn-fg);
  animation: spin .7s linear infinite;
}

/* İkon butonu */
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: var(--r-full);
  color: var(--ink-700);
  background: transparent;
  transition: background-color var(--t-fast), color var(--t-fast), transform var(--t-fast) var(--ease-spring);
}
.icon-btn:hover { background: var(--ink-100); color: var(--ink-900); transform: scale(1.06); }
.icon-btn--brand:hover { background: var(--brand-50); color: var(--brand-600); }

/* ---------------------------------------------------------------------
   6. FORMLAR
   --------------------------------------------------------------------- */
.field { display: block; margin-bottom: var(--sp-4); }
.field__label {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--ink-700);
  margin-bottom: 6px;
}
.field__label .req { color: var(--brand-600); }
.field__hint { font-size: var(--fs-xs); color: var(--text-muted); margin-top: 5px; }
.field__error {
  display: flex; align-items: center; gap: 6px;
  font-size: var(--fs-xs); font-weight: 600; color: var(--danger); margin-top: 5px;
}

.input, .select, .textarea {
  width: 100%;
  min-height: 46px;
  padding: .65rem .9rem;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--r-sm);
  background: #fff;
  color: var(--ink-900);
  font-size: var(--fs-base);
  transition: border-color var(--t-fast), box-shadow var(--t-fast), background-color var(--t-fast);
  appearance: none;
}
.input::placeholder, .textarea::placeholder { color: var(--ink-300); }
.input:hover, .select:hover, .textarea:hover { border-color: var(--ink-300); }
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--brand-500);
  box-shadow: 0 0 0 4px rgba(245, 21, 74, .12);
}
.input:disabled, .select:disabled, .textarea:disabled {
  background: var(--ink-50);
  color: var(--ink-400);
  cursor: not-allowed;
}
.input.is-invalid, .select.is-invalid, .textarea.is-invalid {
  border-color: var(--danger);
  box-shadow: 0 0 0 4px rgba(220, 38, 38, .1);
}
.textarea { min-height: 120px; resize: vertical; line-height: 1.6; }

.select {
  padding-right: 2.4rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .85rem center;
}

/* İkonlu girdi */
.input-group { position: relative; display: flex; align-items: center; }
.input-group .input { padding-left: 2.7rem; }
.input-group__icon {
  position: absolute;
  left: .9rem;
  width: 18px; height: 18px;
  color: var(--ink-400);
  pointer-events: none;
}
.input-group__suffix {
  position: absolute;
  right: .9rem;
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--ink-400);
}
.input-group--suffixed .input { padding-right: 3rem; }

/* Onay kutusu / radyo */
.check {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  cursor: pointer;
  user-select: none;
}
.check input { position: absolute; opacity: 0; pointer-events: none; }
.check__box {
  flex: 0 0 auto;
  width: 22px; height: 22px;
  margin-top: 1px;
  border: 2px solid var(--border-strong);
  border-radius: var(--r-xs);
  background: #fff;
  display: grid;
  place-items: center;
  transition: all var(--t-fast) var(--ease-out);
}
.check__box svg { width: 14px; height: 14px; color: #fff; opacity: 0; transform: scale(.5); transition: all var(--t-fast) var(--ease-spring); }
.check:hover .check__box { border-color: var(--brand-400); }
.check input:checked + .check__box { background: var(--brand-600); border-color: var(--brand-600); }
.check input:checked + .check__box svg { opacity: 1; transform: scale(1); }
.check input:focus-visible + .check__box { box-shadow: 0 0 0 4px rgba(245, 21, 74, .16); }
.check--radio .check__box { border-radius: 50%; }
.check__text { font-size: var(--fs-sm); line-height: 1.5; color: var(--ink-700); }

/* Anahtar (switch) */
.switch { display: inline-flex; align-items: center; gap: var(--sp-3); cursor: pointer; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch__track {
  position: relative;
  width: 46px; height: 26px;
  border-radius: 999px;
  background: var(--ink-200);
  transition: background-color var(--t-base) var(--ease-out);
  flex: 0 0 auto;
}
.switch__track::after {
  content: '';
  position: absolute;
  top: 3px; left: 3px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--sh-sm);
  transition: transform var(--t-base) var(--ease-spring);
}
.switch input:checked + .switch__track { background: var(--brand-600); }
.switch input:checked + .switch__track::after { transform: translateX(20px); }
.switch input:focus-visible + .switch__track { box-shadow: 0 0 0 4px rgba(245, 21, 74, .16); }

/* Adet seçici */
.qty {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--r-full);
  background: #fff;
  overflow: hidden;
  height: 46px;
}
.qty__btn {
  width: 42px; height: 100%;
  display: grid; place-items: center;
  color: var(--ink-600);
  transition: background-color var(--t-fast), color var(--t-fast);
}
.qty__btn:hover:not(:disabled) { background: var(--brand-50); color: var(--brand-600); }
.qty__btn:disabled { opacity: .35; cursor: not-allowed; }
.qty__input {
  width: 46px;
  height: 100%;
  border: 0;
  text-align: center;
  font-weight: 800;
  font-size: var(--fs-base);
  background: transparent;
  -moz-appearance: textfield;
}
.qty__input::-webkit-outer-spin-button,
.qty__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty__input:focus { outline: none; }
.qty--sm { height: 36px; }
.qty--sm .qty__btn { width: 32px; }
.qty--sm .qty__input { width: 36px; font-size: var(--fs-sm); }

/* ---------------------------------------------------------------------
   7. ROZETLER / ETİKETLER
   --------------------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: .25rem .6rem;
  border-radius: var(--r-full);
  font-size: var(--fs-2xs);
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  line-height: 1.5;
  white-space: nowrap;
}
.badge--brand { background: var(--brand-600); color: #fff; }
.badge--brand-soft { background: var(--brand-50); color: var(--brand-700); }
.badge--gold { background: var(--grad-gold); color: var(--ink-900); }
.badge--dark { background: var(--ink-900); color: #fff; }
.badge--light { background: #fff; color: var(--ink-900); box-shadow: var(--sh-sm); }
.badge--success { background: var(--success-bg); color: var(--success); }
.badge--warning { background: var(--warning-bg); color: var(--warning); }
.badge--danger { background: var(--danger-bg); color: var(--danger); }
.badge--info { background: var(--info-bg); color: var(--info); }
.badge--outline { background: transparent; border: 1.5px solid var(--border-strong); color: var(--ink-600); }

/* Sipariş / işlem durumu paleti — order_status_label() ton adlarıyla eşleşir */
.badge--amber   { background: #fef3c7; color: #92400e; }
.badge--emerald { background: #d1fae5; color: #065f46; }
.badge--sky     { background: #e0f2fe; color: #075985; }
.badge--indigo  { background: #e0e7ff; color: #3730a3; }
.badge--violet  { background: #ede9fe; color: #5b21b6; }
.badge--rose    { background: #ffe4e6; color: #9f1239; }
.badge--slate   { background: #e2e8f0; color: #334155; }
.badge--teal    { background: #ccfbf1; color: #115e59; }

.badge-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge-dot--pulse { position: relative; }
.badge-dot--pulse::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid currentColor;
  animation: pulse-ring 1.8s var(--ease-out) infinite;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: .4rem .85rem;
  border-radius: var(--r-full);
  border: 1.5px solid var(--border);
  background: #fff;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--ink-600);
  transition: all var(--t-fast) var(--ease-out);
}
.chip:hover { border-color: var(--ink-900); color: var(--ink-900); }
.chip.is-active { background: var(--ink-900); border-color: var(--ink-900); color: #fff; }
.chip__x { display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; }
.chip__x:hover { background: rgba(0,0,0,.08); }

/* ---------------------------------------------------------------------
   8. KARTLAR / YÜZEYLER
   --------------------------------------------------------------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.card--pad { padding: var(--sp-6); }
.card--shadow { border-color: transparent; box-shadow: var(--sh-md); }
.card--hover { transition: transform var(--t-base) var(--ease-out), box-shadow var(--t-base) var(--ease-out); }
.card--hover:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); }

.panel {
  background: #fff;
  border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
  border: 1px solid var(--border);
}
.panel__head {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4);
  padding: var(--sp-5) var(--sp-6);
  border-bottom: 1px solid var(--border);
}
.panel__title { font-size: var(--fs-md); font-weight: 800; }
.panel__body { padding: var(--sp-6); }
.panel__foot { padding: var(--sp-4) var(--sp-6); border-top: 1px solid var(--border); background: var(--ink-50); }

/* Cam efekti */
.glass {
  background: rgba(255, 255, 255, .72);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
}
.glass--dark {
  background: rgba(12, 14, 18, .62);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
}

/* ---------------------------------------------------------------------
   9. UYARI KUTULARI
   --------------------------------------------------------------------- */
.alert {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-5);
  border-radius: var(--r-md);
  border: 1px solid transparent;
  font-size: var(--fs-sm);
  line-height: 1.55;
}
.alert__icon { flex: 0 0 auto; width: 20px; height: 20px; margin-top: 1px; }
.alert__title { font-weight: 800; margin-bottom: 2px; }
.alert--success { background: var(--success-bg); border-color: #b7ebd6; color: #06603f; }
.alert--warning { background: var(--warning-bg); border-color: #fbdba7; color: #8a4d05; }
.alert--danger  { background: var(--danger-bg); border-color: #f7c4c4; color: #981818; }
.alert--info    { background: var(--info-bg); border-color: #c2d4fb; color: #1a3f9e; }
.alert--brand   { background: var(--brand-50); border-color: var(--brand-200); color: var(--brand-800); }

/* ---------------------------------------------------------------------
   10. İSKELET / YÜKLENİYOR
   --------------------------------------------------------------------- */
.skeleton {
  position: relative;
  overflow: hidden;
  background: var(--ink-100);
  border-radius: var(--r-sm);
}
.skeleton::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.75), transparent);
  transform: translateX(-100%);
  animation: shimmer 1.4s infinite;
}
.skeleton--text { height: 12px; margin-bottom: 8px; }
.skeleton--title { height: 20px; width: 60%; }
.skeleton--img { aspect-ratio: 1; border-radius: var(--r-md); }

.spinner {
  width: 20px; height: 20px;
  border: 2px solid var(--ink-200);
  border-top-color: var(--brand-600);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
.spinner--lg { width: 34px; height: 34px; border-width: 3px; }

/* ---------------------------------------------------------------------
   11. ANİMASYONLAR
   --------------------------------------------------------------------- */
@keyframes spin { to { transform: rotate(360deg); } }

@keyframes shimmer { 100% { transform: translateX(100%); } }

@keyframes pulse-ring {
  0%   { transform: scale(.7); opacity: .9; }
  70%  { transform: scale(1.5); opacity: 0; }
  100% { transform: scale(1.5); opacity: 0; }
}

@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

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

@keyframes fade-down {
  from { opacity: 0; transform: translateY(-14px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes zoom-in {
  from { opacity: 0; transform: scale(.94); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes slide-in-right {
  from { transform: translateX(100%); }
  to   { transform: translateX(0); }
}

@keyframes slide-in-left {
  from { transform: translateX(-100%); }
  to   { transform: translateX(0); }
}

@keyframes slide-up-modal {
  from { opacity: 0; transform: translateY(30px) scale(.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes bounce-in {
  0%   { opacity: 0; transform: scale(.6); }
  55%  { opacity: 1; transform: scale(1.06); }
  100% { transform: scale(1); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

@keyframes cart-bump {
  0%   { transform: scale(1); }
  35%  { transform: scale(1.28) rotate(-8deg); }
  70%  { transform: scale(.94) rotate(4deg); }
  100% { transform: scale(1); }
}

@keyframes heart-pop {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.45); }
  100% { transform: scale(1); }
}

@keyframes shake {
  10%, 90% { transform: translateX(-1px); }
  20%, 80% { transform: translateX(2px); }
  30%, 50%, 70% { transform: translateX(-4px); }
  40%, 60% { transform: translateX(4px); }
}

.anim-fade-up { animation: fade-up var(--t-slow) var(--ease-out) both; }
.anim-fade-in { animation: fade-in var(--t-base) var(--ease-out) both; }
.anim-zoom-in { animation: zoom-in var(--t-base) var(--ease-spring) both; }
.anim-bounce-in { animation: bounce-in 520ms var(--ease-spring) both; }
.anim-float { animation: float 5s var(--ease-in-out) infinite; }
.anim-shake { animation: shake 500ms var(--ease-out); }

.d-1 { animation-delay: 60ms; }
.d-2 { animation-delay: 120ms; }
.d-3 { animation-delay: 180ms; }
.d-4 { animation-delay: 240ms; }
.d-5 { animation-delay: 300ms; }
.d-6 { animation-delay: 360ms; }

/* Kaydırınca görünür ol */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 620ms var(--ease-out), transform 620ms var(--ease-out);
  will-change: opacity, transform;
}
[data-reveal].is-visible { opacity: 1; transform: none; }
[data-reveal="left"] { transform: translateX(-32px); }
[data-reveal="right"] { transform: translateX(32px); }
[data-reveal="zoom"] { transform: scale(.94); }

/* ---------------------------------------------------------------------
   12. GENEL YARDIMCILAR
   --------------------------------------------------------------------- */
.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;
}

.hide { display: none !important; }
@media (max-width: 767px)  { .hide-mobile { display: none !important; } }
@media (min-width: 768px)  { .only-mobile { display: none !important; } }
@media (max-width: 1023px) { .hide-tablet { display: none !important; } }
@media (min-width: 1024px) { .only-tablet { display: none !important; } }

.ratio { position: relative; overflow: hidden; }
.ratio > * { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ratio--1x1 { aspect-ratio: 1 / 1; }
.ratio--4x3 { aspect-ratio: 4 / 3; }
.ratio--3x4 { aspect-ratio: 3 / 4; }
.ratio--16x9 { aspect-ratio: 16 / 9; }
.ratio--21x9 { aspect-ratio: 21 / 9; }

.divider { height: 1px; background: var(--border); }
.divider--vert { width: 1px; height: 100%; background: var(--border); }
.divider-text {
  display: flex; align-items: center; gap: var(--sp-4);
  font-size: var(--fs-xs); font-weight: 700; color: var(--ink-400);
  text-transform: uppercase; letter-spacing: .1em;
}
.divider-text::before, .divider-text::after { content: ''; flex: 1; height: 1px; background: var(--border); }

.scroll-x {
  display: flex;
  gap: var(--sp-4);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
}
.scroll-x::-webkit-scrollbar { display: none; }
.scroll-x > * { scroll-snap-align: start; flex: 0 0 auto; }

.rounded { border-radius: var(--r-md); }
.rounded-lg { border-radius: var(--r-lg); }
.rounded-full { border-radius: var(--r-full); }
.shadow-md { box-shadow: var(--sh-md); }
.shadow-lg { box-shadow: var(--sh-lg); }
.relative { position: relative; }
.overflow-hidden { overflow: hidden; }
.w-full { width: 100%; }

/* İlerleme çubuğu */
.progress {
  height: 8px;
  border-radius: 999px;
  background: var(--ink-100);
  overflow: hidden;
}
.progress__bar {
  height: 100%;
  border-radius: 999px;
  background: var(--grad-brand);
  transition: width 620ms var(--ease-out);
  position: relative;
  overflow: hidden;
}
.progress__bar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.45), transparent);
  animation: shimmer 1.8s infinite;
}
.progress--success .progress__bar { background: linear-gradient(90deg, #0e9f6e, #16c088); }

/* Yıldız puanı */
.stars { display: inline-flex; align-items: center; gap: 2px; color: var(--gold-500); }
.stars svg { width: 15px; height: 15px; }
.stars--sm svg { width: 12px; height: 12px; }
.stars--lg svg { width: 20px; height: 20px; }
.stars__empty { color: var(--ink-200); }

/* Yazdırma */
@media print {
  .no-print, .site-header, .site-footer, .topbar, .cart-drawer, .popup-layer { display: none !important; }
  body { background: #fff; }
  .container { max-width: none; padding: 0; }
}
