/* =========================================================
   Bileşenler: buton, form, rozet, toast, modal, tablo, kart...
   ========================================================= */

/* ---------- Butonlar ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  height: 48px;
  padding: 0 28px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  transition: background var(--dur) var(--ease), color var(--dur), border-color var(--dur);
}
.btn .icon { flex-shrink: 0; }
.btn-primary { background: var(--color-ink); color: var(--color-surface); border-color: var(--color-ink); }
.btn-primary:hover { background: #000; color: var(--color-surface); border-color: #000; }
.btn-outline { background: transparent; color: var(--color-ink); border-color: var(--color-ink); }
.btn-outline:hover { background: var(--color-ink); color: var(--color-surface); }
.btn-ghost {
  height: auto;
  padding: var(--sp-1) 0;
  background: transparent;
  color: var(--color-ink);
  border: 0;
  border-bottom: 1px solid currentColor;
  border-radius: 0;
}
.btn-ghost:hover { color: var(--color-accent); }
.btn-light { background: var(--color-surface); color: var(--color-ink); border-color: var(--color-surface); }
.btn-light:hover { background: var(--color-soft); color: var(--color-ink); border-color: var(--color-soft); }
.btn-danger { background: var(--color-danger); color: var(--color-surface); border-color: var(--color-danger); }
.btn-danger:hover { background: #7f241e; color: var(--color-surface); border-color: #7f241e; }
.btn-sm { height: 36px; padding: 0 var(--sp-4); font-size: 12px; }
.btn-block { display: flex; width: 100%; }
.btn[disabled], .btn.is-disabled { opacity: .45; pointer-events: none; }
.btn.is-loading { color: transparent !important; pointer-events: none; }
.btn.is-loading > * { visibility: hidden; }
.btn.is-loading::after {
  content: '';
  position: absolute;
  inset: 0;
  width: 18px;
  height: 18px;
  margin: auto;
  border: 1.5px solid currentColor;
  border-color: var(--color-surface) var(--color-surface) transparent transparent;
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}
.btn-outline.is-loading::after,
.btn-light.is-loading::after,
.btn-ghost.is-loading::after { border-color: var(--color-ink) var(--color-ink) transparent transparent; }
@keyframes spin { to { transform: rotate(360deg); } }

.link-button {
  background: none;
  border: 0;
  padding: 0;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

/* İkon buton (header, kapatma vb.) */
.icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--color-ink);
  border-radius: var(--radius-sm);
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.icon-btn:hover { color: var(--color-accent); }
.counter {
  position: absolute;
  top: 3px;
  right: 1px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 9px;
  background: var(--color-ink);
  color: var(--color-surface);
  font-size: 10px;
  font-weight: 600;
  line-height: 17px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

/* ---------- Formlar ---------- */
.field { display: flex; flex-direction: column; gap: var(--sp-2); margin-bottom: var(--sp-5); }
.field > label,
.field-label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-ink);
}
.field .req { color: var(--color-danger); margin-left: 2px; }
.input,
.field input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.field select,
.field textarea {
  width: 100%;
  height: 48px;
  padding: 0 var(--sp-4);
  background: var(--color-surface);
  border: 1px solid var(--color-line-strong);
  border-radius: var(--radius-sm);
  color: var(--color-ink);
  font-size: var(--fs-base);
  box-shadow: none;
  transition: border-color var(--dur) var(--ease);
  appearance: none;
}
.field textarea { height: auto; min-height: 120px; padding: var(--sp-3) var(--sp-4); line-height: 1.6; resize: vertical; }
.field select {
  padding-right: 40px;
  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='%23141414' stroke-width='1.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}
.input:hover,
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--color-muted); }
.input:focus,
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--color-ink); outline: none; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 1px solid var(--color-ink); outline-offset: 0; }
.field ::placeholder { color: var(--color-muted); opacity: 1; }
.field input:disabled, .field select:disabled, .field textarea:disabled,
.field input[readonly] { background: var(--color-soft); color: var(--color-muted-strong); cursor: not-allowed; }
.field [aria-invalid="true"] { border-color: var(--color-danger) !important; }
.field-hint { font-size: 12px; color: var(--color-muted-strong); line-height: 1.5; }
.field-error { font-size: 13px; color: var(--color-danger); line-height: 1.4; }
.field-row { display: grid; gap: var(--sp-4); }
@media (min-width: 600px) { .field-row { grid-template-columns: 1fr 1fr; } }

/* Ön/son ek (örn. ₺) ve şifre göster/gizle */
.input-group { position: relative; display: flex; align-items: center; }
.input-group > input { flex: 1; }
.input-group-addon {
  position: absolute;
  right: var(--sp-4);
  color: var(--color-muted-strong);
  pointer-events: none;
}
.input-group > input:has(+ .input-group-addon),
.input-group > input:has(+ .input-group-btn) { padding-right: 48px; }
.input-group-btn {
  position: absolute;
  right: 4px;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-muted-strong);
}
.input-group-btn:hover { color: var(--color-ink); }

/* Özel checkbox / radio (gerçek input erişilebilir kalır) */
.check {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  font-size: var(--fs-sm);
  line-height: 1.5;
  color: var(--color-ink-2);
  cursor: pointer;
}
.check + .check { margin-top: var(--sp-3); }
.check input[type="checkbox"],
.check input[type="radio"] {
  flex-shrink: 0;
  appearance: none;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border: 1px solid var(--color-line-strong);
  background: var(--color-surface);
  border-radius: var(--radius-sm);
  display: grid;
  place-content: center;
  cursor: pointer;
  transition: border-color var(--dur), background var(--dur);
}
.check input[type="radio"] { border-radius: 50%; }
.check input[type="checkbox"]::before {
  content: '';
  width: 10px;
  height: 6px;
  border-left: 1.5px solid var(--color-surface);
  border-bottom: 1.5px solid var(--color-surface);
  transform: translateY(-1px) rotate(-45deg) scale(0);
  transition: transform 120ms var(--ease);
}
.check input[type="radio"]::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-surface);
  transform: scale(0);
  transition: transform 120ms var(--ease);
}
.check input:checked { background: var(--color-ink); border-color: var(--color-ink); }
.check input:checked::before { transform: translateY(-1px) rotate(-45deg) scale(1); }
.check input[type="radio"]:checked::before { transform: scale(1); }
.check input:hover { border-color: var(--color-ink); }
.check input:focus-visible { outline: 2px solid var(--color-ink); outline-offset: 2px; }
.check input[aria-invalid="true"] { border-color: var(--color-danger); }

/* Aç/kapa anahtarı (admin) */
.switch { display: inline-flex; align-items: center; gap: var(--sp-3); cursor: pointer; font-size: var(--fs-sm); color: var(--color-ink); }
.switch input {
  appearance: none;
  position: relative;
  flex-shrink: 0;
  width: 36px;
  height: 20px;
  border-radius: 10px;
  background: var(--color-line-strong);
  cursor: pointer;
  transition: background var(--dur) var(--ease);
}
.switch input::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease);
}
.switch input:checked { background: var(--color-success); }
.switch input:checked::before { transform: translateX(16px); }
.switch input:disabled { opacity: .5; cursor: not-allowed; }
.switch input:focus-visible { outline: 2px solid var(--color-ink); outline-offset: 2px; }

/* Form üstü hata / bilgi kutusu */
.alert {
  display: flex;
  gap: var(--sp-3);
  padding: var(--sp-4);
  border: 1px solid var(--color-line);
  border-left-width: 2px;
  background: var(--color-surface);
  font-size: var(--fs-sm);
  line-height: 1.5;
  color: var(--color-ink-2);
  margin-bottom: var(--sp-5);
}
.alert .icon { flex-shrink: 0; margin-top: 1px; }
.alert-error { border-left-color: var(--color-danger); }
.alert-error .icon { color: var(--color-danger); }
.alert-success { border-left-color: var(--color-success); }
.alert-success .icon { color: var(--color-success); }
.alert-warning { border-left-color: var(--color-warning); background: #FBF6EC; }
.alert-warning .icon { color: var(--color-warning); }
.alert-info { border-left-color: var(--color-info); }
.alert-info .icon { color: var(--color-info); }

/* ---------- Rozetler ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: .08em;
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}
.badge-sale { background: var(--color-sale); color: var(--color-surface); }
.badge-new { background: var(--color-surface); color: var(--color-ink); border-color: var(--color-ink); }
.badge-incart { background: var(--color-soft); color: var(--color-ink); }
.badge-soldout { background: var(--color-surface); color: var(--color-muted-strong); border-color: var(--color-line-strong); }
.badge-neutral { background: var(--color-soft); color: var(--color-ink-2); }
.badge-admin { background: var(--color-surface); color: var(--color-ink); border-color: var(--color-accent); }

/* Sipariş durum rozetleri */
.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}
.status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-pending { background: var(--color-warning-soft); color: #7A5410; }
.status-paid { background: var(--color-success-soft); color: var(--color-success); }
.status-preparing { background: var(--color-info-soft); color: var(--color-info); }
.status-shipped { background: #E1E6EE; color: #22324A; }
.status-delivered { background: #DCE9E1; color: #1F4D37; }
.status-cancelled { background: var(--color-soft); color: var(--color-muted-strong); text-decoration: line-through; }
.status-failed { background: var(--color-danger-soft, #F6E3E1); color: var(--color-danger); }

/* Stok noktası */
.stock-dot { display: inline-flex; align-items: center; gap: var(--sp-2); font-size: var(--fs-sm); }
.stock-dot::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.stock-in { color: var(--color-success); }
.stock-low { color: var(--color-warning); }
.stock-out { color: var(--color-muted-strong); }

/* ---------- Fiyat ---------- */
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px var(--sp-2); }
.price-current { color: var(--color-ink); font-weight: 500; font-variant-numeric: tabular-nums; }
.price-old { color: var(--color-muted-strong); text-decoration: line-through; font-variant-numeric: tabular-nums; }
.price.is-sale .price-current { color: var(--color-sale); }
.price-vat { flex-basis: 100%; font-size: 11px; color: var(--color-muted-strong); letter-spacing: .04em; }
.price-sm .price-current { font-size: 15px; }
.price-sm .price-old { font-size: 13px; }
.price-lg .price-current { font-size: var(--fs-xl); font-family: var(--font-body); font-weight: 500; }
.price-lg .price-old { font-size: var(--fs-md); }
.price-lg .price-vat { font-size: 12px; margin-top: 2px; }

/* ---------- Ürün kartı ---------- */
.product-card { position: relative; display: flex; flex-direction: column; min-width: 0; }
.product-card-media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--color-surface);
}
.product-card-image { position: absolute; inset: 0; display: block; }
.product-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 3%; /* ürün görselleri yüklenirken zaten 4:5 ve kenar paylı hazırlanır */
  object-fit: contain;
  transition: opacity 400ms var(--ease), transform 800ms var(--ease);
}
.product-card-img-hover { opacity: 0; }
@media (hover: hover) {
  .product-card:hover .product-card-img-hover { opacity: 1; }
  .product-card:hover .product-card-img:not(.product-card-img-hover):has(+ .product-card-img-hover) { opacity: 0; }
}
.product-card.is-soldout .product-card-img { opacity: .55; }

.product-card-badges {
  position: absolute;
  top: var(--sp-3);
  left: var(--sp-3);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  pointer-events: none;
}
.product-card-fav { position: absolute; top: var(--sp-2); right: var(--sp-2); z-index: 3; }
.fav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--color-ink);
  border-radius: 50%;
  transition: color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.fav-btn:hover { color: var(--color-sale); }
.fav-btn .fav-icon-full { display: none; }
.fav-btn.is-active { color: var(--color-sale); }
.fav-btn.is-active .fav-icon-full { display: inline-flex; }
.fav-btn.is-active .fav-icon-empty { display: none; }
.fav-btn.is-popping { transform: scale(1.18); }

.product-card-cart { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; }
.product-card-cart-bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 44px;
  background: var(--color-ink);
  color: var(--color-surface);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  transform: translateY(100%);
  transition: transform var(--dur) var(--ease), background var(--dur);
}
.product-card-cart-bar:hover { background: #000; }
.product-card-cart-bar:disabled { background: var(--color-line-strong); color: var(--color-ink-2); }
.product-card-cart-bar.is-loading .btn-label { visibility: hidden; }
.product-card-cart-bar.is-loading::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  border: 1.5px solid var(--color-surface);
  border-color: var(--color-surface) var(--color-surface) transparent transparent;
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}
.product-card-cart-icon { display: none; }
@media (hover: hover) {
  .product-card:hover .product-card-cart-bar,
  .product-card:focus-within .product-card-cart-bar { transform: translateY(0); }
}
@media (hover: none) {
  .product-card-cart { left: auto; right: var(--sp-2); bottom: var(--sp-2); }
  .product-card-cart-bar { display: none; }
  .product-card-cart-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--color-ink);
    color: var(--color-surface);
  }
  .product-card-cart-icon.is-loading { opacity: .6; }
}
.product-card-info { display: flex; flex-direction: column; gap: 6px; padding-top: var(--sp-4); }
.product-card-brand {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-muted-strong);
}
.product-card-name {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0;
  color: var(--color-ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-card-name a:hover { color: var(--color-ink-2); }

/* ---------- Bölüm başlığı ---------- */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-4);
  margin-bottom: var(--sp-6);
}
.section-head .eyebrow { margin-bottom: var(--sp-2); }
.section-head h2 { font-size: var(--fs-xl); }
@media (min-width: 768px) { .section-head h2 { font-size: var(--fs-2xl); } }
.section-link {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-ink);
}
.section-link:hover { color: var(--color-accent); }

/* ---------- Toast ---------- */
.toast-region {
  position: fixed;
  z-index: 900;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  padding: var(--sp-3);
  pointer-events: none;
}
@media (min-width: 600px) {
  .toast-region { left: auto; right: var(--sp-5); bottom: var(--sp-5); width: 380px; padding: 0; }
}
.toast {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  padding: var(--sp-4);
  background: var(--color-ink);
  color: var(--color-surface);
  font-size: var(--fs-sm);
  line-height: 1.5;
  box-shadow: var(--shadow-md);
  border-left: 2px solid var(--color-surface);
  pointer-events: auto;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.toast.is-visible { opacity: 1; transform: translateY(0); }
.toast .icon { flex-shrink: 0; margin-top: 1px; }
.toast-success { border-left-color: #7FB79A; }
.toast-error { border-left-color: #E08A82; }
.toast-info { border-left-color: var(--color-on-ink); }
.toast-message { flex: 1; }
.toast-action {
  flex-shrink: 0;
  color: var(--color-surface);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.toast-action:hover { color: var(--color-on-ink); }
.toast-close { flex-shrink: 0; color: var(--color-on-ink); }
.toast-close:hover { color: var(--color-surface); }
.flash-fallback { max-width: var(--container); margin: var(--sp-4) auto; padding: 0 var(--sp-5); }
.flash-fallback li { padding: var(--sp-3) var(--sp-4); background: var(--color-surface); border-left: 2px solid var(--color-ink); margin-bottom: var(--sp-2); }

/* ---------- Modal ---------- */
.modal {
  width: min(480px, calc(100% - 32px));
  max-height: calc(100vh - 64px);
  padding: 0;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  color: var(--color-ink-2);
  box-shadow: var(--shadow-md);
}
.modal::backdrop { background: var(--color-overlay); }
.modal[open] { animation: modal-in var(--dur) var(--ease); }
@keyframes modal-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.modal-box { padding: var(--sp-6); }
.modal-title { font-size: var(--fs-xl); margin-bottom: var(--sp-3); }
.modal-text { font-size: var(--fs-sm); line-height: 1.6; white-space: pre-line; }
.modal-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-6); }
.modal-close { position: absolute; top: var(--sp-3); right: var(--sp-3); }

/* ---------- Tablo ---------- */
.table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; font-size: var(--fs-sm); }
.table th {
  padding: var(--sp-3) var(--sp-4);
  text-align: left;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--color-muted-strong);
  border-bottom: 1px solid var(--color-line);
  white-space: nowrap;
}
.table td {
  padding: var(--sp-3) var(--sp-4);
  border-bottom: 1px solid var(--color-line);
  vertical-align: middle;
  color: var(--color-ink);
}
.table tbody tr { transition: background var(--dur) var(--ease); }
.table tbody tr:hover { background: var(--color-soft); }
.table .num, .table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.table tfoot td { font-weight: 600; border-top: 1px solid var(--color-ink); border-bottom: 0; }
.table-sub { display: block; font-size: 12px; color: var(--color-muted-strong); }
.table-thumb { width: 48px; height: 48px; object-fit: contain; background: var(--color-surface); border: 1px solid var(--color-line); }

/* ---------- Skeleton ---------- */
.skeleton {
  display: block;
  background: var(--color-soft);
  border-radius: var(--radius-sm);
  animation: pulse 1.4s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .5; } }

/* ---------- Boş durum ---------- */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--sp-4);
  padding: var(--sp-9) var(--sp-5);
}
.empty-state-icon {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  border: 1px solid var(--color-line);
  border-radius: 50%;
  color: var(--color-muted-strong);
  background: var(--color-surface);
}
.empty-state-title { font-size: var(--fs-xl); }
.empty-state-text { max-width: 420px; color: var(--color-ink-2); }
.empty-state .btn { margin-top: var(--sp-3); }

/* ---------- Breadcrumb ---------- */
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); font-size: 12px; color: var(--color-muted-strong); }
.breadcrumb li { display: inline-flex; align-items: center; gap: var(--sp-2); }
.breadcrumb li + li::before { content: '/'; color: var(--color-line-strong); }
.breadcrumb a:hover { color: var(--color-ink); }
.breadcrumb [aria-current="page"] { color: var(--color-ink); }

/* ---------- Sayfalama ---------- */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-top: var(--sp-8);
  font-size: var(--fs-sm);
}
.pagination-pages { display: flex; align-items: center; gap: var(--sp-1); }
.pagination-page,
.pagination-gap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 var(--sp-2);
  color: var(--color-ink-2);
  font-variant-numeric: tabular-nums;
  border-bottom: 1px solid transparent;
}
.pagination-page:hover { color: var(--color-ink); border-bottom-color: var(--color-line-strong); }
.pagination-page.is-current { color: var(--color-ink); border-bottom-color: var(--color-ink); font-weight: 500; }
.pagination-prev, .pagination-next {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  height: 40px;
  padding: 0 var(--sp-3);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-ink);
}
.pagination .is-disabled { color: var(--color-line-strong); pointer-events: none; }
@media (max-width: 599px) {
  .pagination-prev span, .pagination-next span { display: none; }
}

/* ---------- Sekmeler ---------- */
.tabs { display: flex; gap: var(--sp-5); border-bottom: 1px solid var(--color-line); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-3) 0;
  margin-bottom: -1px;
  border-bottom: 1px solid transparent;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-muted-strong);
  white-space: nowrap;
}
.tab:hover { color: var(--color-ink); }
.tab.is-active, .tab[aria-current="page"], .tab[aria-selected="true"] { color: var(--color-ink); border-bottom-color: var(--color-ink); }
.tab-count {
  min-width: 20px;
  padding: 1px 6px;
  border-radius: 10px;
  background: var(--color-soft);
  color: var(--color-ink-2);
  font-size: 11px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

/* ---------- Çip ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  height: 32px;
  padding: 0 var(--sp-3);
  border: 1px solid var(--color-line-strong);
  border-radius: 16px;
  background: var(--color-surface);
  font-size: 13px;
  color: var(--color-ink);
  transition: border-color var(--dur), background var(--dur);
}
.chip:hover { border-color: var(--color-ink); }
.chip.is-active { background: var(--color-ink); border-color: var(--color-ink); color: var(--color-surface); }

/* ---------- Akordeon ---------- */
.accordion { border-top: 1px solid var(--color-line); }
.accordion > details { border-bottom: 1px solid var(--color-line); }
.accordion summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-4) 0;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-ink);
  cursor: pointer;
  list-style: none;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary .icon { transition: transform var(--dur) var(--ease); }
.accordion details[open] summary .icon { transform: rotate(180deg); }
.accordion-body { padding: 0 0 var(--sp-5); font-size: var(--fs-sm); }

/* ---------- Adet seçici ---------- */
.qty {
  display: inline-flex;
  align-items: center;
  height: 48px;
  border: 1px solid var(--color-line-strong);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
}
.qty button { width: 44px; height: 100%; display: grid; place-items: center; color: var(--color-ink); }
.qty button:hover { background: var(--color-soft); }
.qty button:disabled { color: var(--color-line-strong); background: none; }
.qty input {
  width: 44px;
  height: 100%;
  border: 0;
  text-align: center;
  font-variant-numeric: tabular-nums;
  background: transparent;
  -moz-appearance: textfield;
  appearance: textfield;
}
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-sm { height: 36px; }
.qty-sm button, .qty-sm input { width: 34px; }

/* ---------- Kart / panel (vitrin) ---------- */
.card { background: var(--color-surface); border: 1px solid var(--color-line); padding: var(--sp-5); }
.card-title { font-size: 12px; font-weight: 500; letter-spacing: var(--tracking-wide); text-transform: uppercase; color: var(--color-ink); margin-bottom: var(--sp-4); }

/* ---------- Görsel yer tutucu (görsel yoksa şık gradyan) ---------- */
.img-fallback { background: var(--gradient-placeholder); }

/* ---------- Hata sayfaları ---------- */
.error-page { padding: var(--sp-10) var(--sp-5); text-align: center; max-width: 720px; }
.error-code {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(5rem, 16vw, 9rem);
  line-height: 1;
  color: var(--color-ink);
  letter-spacing: -0.02em;
}
.error-title { margin-top: var(--sp-4); font-size: var(--fs-xl); }
@media (min-width: 768px) { .error-title { font-size: var(--fs-2xl); } }
.error-text { margin: var(--sp-4) auto 0; max-width: 480px; }
.error-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-7); }

/* ---------- Sipariş özeti satırları (sepet, ödeme, başarı sayfası) ---------- */
.summary-rows { font-size: var(--fs-sm); }
.summary-rows > div { display: flex; justify-content: space-between; gap: var(--sp-4); padding: var(--sp-2) 0; }
.summary-rows dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.summary-total { margin-top: var(--sp-2); padding-top: var(--sp-4) !important; border-top: 1px solid var(--color-ink); align-items: baseline; }
.summary-total dt { font-weight: 500; color: var(--color-ink); }
.summary-total dd { font-family: var(--font-display); font-size: var(--fs-xl); color: var(--color-ink); line-height: 1.1; }
.summary-total small { display: block; font-family: var(--font-body); font-size: 11px; color: var(--color-muted-strong); }

/* ---------- Ödeme bilgisi (sonuç sayfası) ---------- */
.payment-bank { display: grid; gap: var(--sp-3); margin: var(--sp-4) 0 var(--sp-3); }
.payment-bank dt { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--color-muted-strong); }
.payment-bank dd { margin: 2px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3); color: var(--color-ink); }
