/* =====================================================
   PIXELDROP — Katalog & Sipariş (herkese açık sayfa)
   style.css'teki renk/yazı değişkenlerini kullanır.
   ===================================================== */

.katalog-body {
  --nav-h: 0px;
  --ink: #14121F;
  --ink-2: #221E33;
  --pink: #FF4FA3;
  --cart-w: 380px;
  background: var(--bg-base);
  padding-bottom: 0;
}

/* ---------- Header ---------- */
.k-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(20, 18, 31, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.k-header-in {
  max-width: 1320px; margin: 0 auto;
  height: 60px; padding: 0 18px;
  display: flex; align-items: center; justify-content: space-between;
}
.k-brand { display: flex; align-items: center; gap: 11px; }
.k-logo {
  width: 30px; height: 30px; display: grid;
  grid-template-columns: 1fr 1fr; gap: 3px; padding: 5px;
  border-radius: 8px; background: rgba(255,79,163,0.14);
}
.k-logo i { display: block; border-radius: 2px; background: var(--pink); }
.k-logo i:nth-child(2) { background: #7C5CFF; }
.k-logo i:nth-child(3) { background: #22C3E6; }
.k-logo i:nth-child(4) { background: #FFC83D; }
.k-brand-text {
  color: #FFFFFF; font-weight: 800; font-size: 17px; letter-spacing: .4px;
  display: flex; flex-direction: column; line-height: 1.15;
}
.k-brand-text em {
  font-style: normal; font-weight: 600; font-size: 10.5px;
  letter-spacing: .8px; color: rgba(255,255,255,0.5);
}
.k-cart-btn {
  position: relative; width: 42px; height: 42px;
  border-radius: 12px; border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06); color: #FFFFFF;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.k-cart-btn svg { width: 21px; height: 21px; }
.k-badge {
  position: absolute; top: -6px; right: -6px;
  min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 10px; background: var(--pink); color: #FFFFFF;
  font-size: 11px; font-weight: 800; font-family: var(--font-mono);
  display: none; align-items: center; justify-content: center;
  border: 2px solid var(--ink);
}
.k-badge.show { display: flex; }

/* ---------- Hero ---------- */
.k-hero {
  background:
    radial-gradient(circle at 85% 20%, rgba(255,79,163,0.28), transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(124,92,255,0.25), transparent 45%),
    var(--ink);
  color: #FFFFFF;
  position: relative; overflow: hidden;
}
.k-hero::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 22px 22px;
  pointer-events: none;
}
.k-hero-in {
  max-width: 1320px; margin: 0 auto;
  padding: 30px 18px 34px; position: relative; z-index: 1;
}
.k-eyebrow {
  display: inline-block; font-family: var(--font-mono);
  font-size: 11px; font-weight: 700; letter-spacing: 3px;
  color: var(--pink); background: rgba(255,79,163,0.12);
  border: 1px solid rgba(255,79,163,0.3);
  padding: 4px 10px; border-radius: 20px; margin-bottom: 12px;
}
.k-hero h1 { margin: 0 0 6px; font-size: 30px; font-weight: 800; letter-spacing: -0.5px; }
.k-hero p  { margin: 0; color: rgba(255,255,255,0.68); font-size: 14.5px; max-width: 520px; line-height: 1.5; }

/* ---------- Layout ---------- */
.k-layout {
  max-width: 1320px; margin: 0 auto;
  padding: 20px 18px 110px;
  display: block;
}
@media (min-width: 1000px) {
  .k-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) var(--cart-w);
    gap: 24px; align-items: start;
    padding-bottom: 40px;
  }
}

/* ---------- Toolbar ---------- */
.k-toolbar { margin-bottom: 16px; }
.k-search {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg-surface); border: 1.5px solid var(--border);
  border-radius: var(--radius-m); padding: 0 14px; height: 48px;
  box-shadow: var(--shadow-card);
}
.k-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.k-search svg { width: 19px; height: 19px; color: var(--text-faint); flex-shrink: 0; }
.k-search input {
  flex: 1; border: none; background: transparent; font-size: 15px;
  font-family: inherit; color: var(--text); min-width: 0;
}
.k-search input:focus { outline: none; }
.k-search button {
  display: none; border: none; background: var(--bg-surface-2);
  width: 26px; height: 26px; border-radius: 50%; cursor: pointer;
  color: var(--text-muted); font-size: 12px;
}
.k-search.dolu button { display: block; }

.k-chips {
  display: flex; gap: 8px; overflow-x: auto; padding: 12px 1px 2px;
  scrollbar-width: none;
}
.k-chips::-webkit-scrollbar { display: none; }
.k-chip {
  flex-shrink: 0; border: 1px solid var(--border);
  background: var(--bg-surface); color: var(--text-muted);
  padding: 8px 13px; border-radius: 20px; cursor: pointer;
  font-family: inherit; font-size: 12.5px; font-weight: 700;
  white-space: nowrap;
}
.k-chip span {
  font-family: var(--font-mono); font-size: 10.5px; margin-left: 3px;
  color: var(--text-faint);
}
.k-chip.active { background: var(--ink); border-color: var(--ink); color: #FFFFFF; }
.k-chip.active span { color: var(--pink); }

/* ---------- Ürün kartları ---------- */
.k-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
@media (min-width: 640px)  { .k-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; } }
@media (min-width: 1000px) { .k-grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); } }

.k-card {
  background: var(--bg-surface);
  border: 1.5px solid var(--border-soft);
  border-radius: var(--radius-m);
  overflow: hidden; display: flex; flex-direction: column;
  box-shadow: var(--shadow-card);
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
@media (hover: hover) {
  .k-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-raised); }
}
.k-card.sepette { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }

.k-thumb {
  aspect-ratio: 1 / 1; position: relative; overflow: hidden;
  background: var(--bg-surface-2);
  display: flex; align-items: center; justify-content: center; color: var(--text-faint);
}
.k-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.k-thumb svg { width: 36px; height: 36px; opacity: .35; }
.k-code {
  position: absolute; top: 8px; left: 8px;
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 700; letter-spacing: .5px;
  padding: 3px 8px; border-radius: 20px;
  background: rgba(20,18,31,0.82); color: #FFFFFF;
}
.k-incart {
  position: absolute; top: 8px; right: 8px;
  font-size: 10.5px; font-weight: 800;
  padding: 3px 8px; border-radius: 20px;
  background: var(--accent); color: #FFFFFF;
  display: none;
}
.k-card.sepette .k-incart { display: block; }

.k-info { padding: 11px 12px 12px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.k-name {
  margin: 0; font-size: 13.5px; font-weight: 700; line-height: 1.3; color: var(--text);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 2.6em;
}
.k-price { font-family: var(--font-mono); font-size: 15px; font-weight: 700; color: var(--accent); margin-bottom: 4px; }

.k-add {
  margin-top: auto; width: 100%; height: 38px;
  border: none; border-radius: var(--radius-s);
  background: var(--ink); color: #FFFFFF;
  font-family: inherit; font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  cursor: pointer; transition: transform .1s ease, background .15s ease;
}
.k-add svg { width: 15px; height: 15px; }
.k-add:hover { background: var(--accent); }
.k-add:active { transform: scale(0.97); }

.k-stepper {
  margin-top: auto; height: 38px; display: none;
  align-items: center; justify-content: space-between;
  background: var(--accent-dim); border-radius: var(--radius-s); padding: 3px;
}
.k-stepper button {
  width: 32px; height: 32px; border: none; border-radius: 8px;
  background: var(--bg-surface); color: var(--accent);
  font-size: 18px; font-weight: 800; cursor: pointer;
}
.k-stepper-val { font-family: var(--font-mono); font-weight: 800; font-size: 15px; color: var(--accent); }
.k-card.sepette .k-add { display: none; }
.k-card.sepette .k-stepper { display: flex; }

.k-footer {
  display: flex; justify-content: space-between; gap: 10px;
  margin-top: 34px; padding-top: 16px; border-top: 1px solid var(--border-soft);
  font-size: 12px; color: var(--text-faint);
}
.k-footer a { color: var(--text-faint); }

/* ---------- Sepet ---------- */
.k-cart {
  background: var(--bg-surface);
  display: flex; flex-direction: column;
}
.k-cart-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 18px 14px; border-bottom: 1px solid var(--border-soft);
}
.k-cart-head h2 { margin: 0; font-size: 18px; font-weight: 800; }
.k-cart-head span { font-size: 12.5px; color: var(--text-faint); }
.k-cart-close {
  width: 34px; height: 34px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--bg-surface);
  color: var(--text-muted); cursor: pointer; font-size: 14px;
}

.k-cart-list { flex: 1; overflow-y: auto; padding: 6px 12px; }
.k-cart-empty { text-align: center; padding: 38px 20px; color: var(--text-faint); }
.k-cart-empty svg { width: 44px; height: 44px; opacity: .35; margin-bottom: 10px; }
.k-cart-empty p { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--text-muted); }

.ci {
  display: flex; gap: 11px; padding: 11px 4px;
  border-bottom: 1px solid var(--border-soft); position: relative;
}
.ci:last-child { border-bottom: none; }
.ci-thumb {
  width: 58px; height: 58px; border-radius: 10px; flex-shrink: 0;
  background: var(--bg-surface-2) center / cover no-repeat;
}
.ci-body { flex: 1; min-width: 0; }
.ci-name {
  font-size: 13px; font-weight: 700; color: var(--text); line-height: 1.3;
  padding-right: 24px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ci-meta { font-size: 11.5px; color: var(--text-faint); margin-top: 2px; }
.ci-meta b { font-family: var(--font-mono); color: var(--text-muted); font-weight: 700; }
.ci-row { display: flex; align-items: center; justify-content: space-between; margin-top: 7px; gap: 8px; }
.ci-qty {
  display: flex; align-items: center;
  border: 1.5px solid var(--border); border-radius: 9px; overflow: hidden;
}
.ci-qty button {
  width: 28px; height: 30px; border: none; background: var(--bg-surface-2);
  font-size: 15px; font-weight: 800; color: var(--text-muted); cursor: pointer;
}
.ci-qty input {
  width: 48px; height: 30px; border: none; text-align: center;
  font-family: var(--font-mono); font-size: 14px; font-weight: 700; color: var(--text);
  -moz-appearance: textfield; background: var(--bg-surface);
}
.ci-qty input::-webkit-outer-spin-button,
.ci-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.ci-qty input:focus { outline: none; background: var(--accent-dim); }
.ci-total { font-family: var(--font-mono); font-size: 14px; font-weight: 800; color: var(--text); white-space: nowrap; }
.ci-del {
  position: absolute; top: 9px; right: 2px;
  width: 24px; height: 24px; border-radius: 50%;
  border: none; background: transparent; color: var(--text-faint);
  cursor: pointer; font-size: 13px;
}
.ci-del:hover { background: var(--danger-dim); color: var(--danger); }

.k-cart-foot { padding: 14px 18px 18px; border-top: 1px solid var(--border-soft); background: var(--bg-surface); }
.k-musteri {
  border: 1px solid var(--border-soft); border-radius: var(--radius-s);
  background: var(--bg-surface-2); margin-bottom: 12px;
}
.k-musteri summary {
  cursor: pointer; padding: 10px 12px; font-size: 12.5px; font-weight: 700; color: var(--text-muted);
  list-style: none;
}
.k-musteri summary::-webkit-details-marker { display: none; }
.k-musteri summary::before { content: "+ "; color: var(--accent); font-weight: 800; }
.k-musteri[open] summary::before { content: "− "; }
.k-musteri summary small { font-weight: 500; color: var(--text-faint); }
.k-musteri-in { padding: 0 10px 10px; display: flex; flex-direction: column; gap: 7px; }
.k-musteri-in input, .k-musteri-in textarea {
  width: 100%; border: 1.5px solid var(--border); border-radius: 9px;
  padding: 9px 11px; font-family: inherit; font-size: 14px; color: var(--text);
  background: var(--bg-surface); resize: vertical;
}
.k-musteri-in input:focus, .k-musteri-in textarea:focus { outline: none; border-color: var(--accent); }

.k-sum-row { display: flex; justify-content: space-between; font-size: 13px; color: var(--text-muted); padding: 3px 2px; }
.k-sum-row b { font-family: var(--font-mono); color: var(--text); }
.k-total {
  display: flex; justify-content: space-between; align-items: baseline;
  background: var(--ink); color: #FFFFFF;
  border-radius: var(--radius-s); padding: 13px 15px; margin: 10px 0 12px;
}
.k-total span { font-size: 11.5px; font-weight: 800; letter-spacing: 1.5px; color: rgba(255,255,255,0.6); }
.k-total b { font-family: var(--font-mono); font-size: 22px; color: var(--pink); }

.k-pdf-btn {
  width: 100%; height: 50px; border: none; border-radius: var(--radius-s);
  background: var(--accent); color: #FFFFFF; cursor: pointer;
  font-family: inherit; font-size: 15px; font-weight: 800;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  box-shadow: 0 6px 18px var(--accent-glow);
  transition: transform .1s ease, opacity .15s ease;
}
.k-pdf-btn svg { width: 20px; height: 20px; }
.k-pdf-btn:active { transform: scale(0.98); }
.k-pdf-btn:disabled { opacity: .55; cursor: default; }
.k-pdf-btn.yukleniyor svg { animation: kdon 1s linear infinite; }
@keyframes kdon { to { transform: rotate(360deg); } }
.k-clear-btn {
  width: 100%; margin-top: 8px; height: 38px; border: none; background: transparent;
  color: var(--text-faint); font-family: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer;
}
.k-clear-btn:hover { color: var(--danger); }

.k-cart.bos .k-cart-foot { display: none; }
.k-cart:not(.bos) .k-cart-empty { display: none; }

/* Masaüstü: sağda yapışkan sepet */
@media (min-width: 1000px) {
  .k-cart {
    position: sticky; top: 80px;
    max-height: calc(100vh - 100px);
    border: 1px solid var(--border-soft); border-radius: var(--radius-l);
    box-shadow: var(--shadow-raised); overflow: hidden;
  }
  .k-cart-close, .k-cart-btn, .k-cartbar, .k-cart-overlay { display: none !important; }
}

/* Mobil / tablet: alttan açılan sepet */
@media (max-width: 999px) {
  .k-cart {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 91;
    max-height: 90vh; border-radius: 22px 22px 0 0;
    box-shadow: 0 -10px 34px rgba(20,18,31,0.2);
    transform: translateY(105%);
    transition: transform .25s cubic-bezier(.32,.72,0,1);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .k-cart.open { transform: translateY(0); }
  .k-cart-overlay {
    position: fixed; inset: 0; z-index: 90; background: rgba(20,18,31,0.45);
    opacity: 0; pointer-events: none; transition: opacity .2s ease;
  }
  .k-cart-overlay.open { opacity: 1; pointer-events: auto; }
  .k-cart-list { max-height: 42vh; }

  .k-cartbar {
    position: fixed; left: 12px; right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 50;
    height: 56px; border: none; border-radius: 16px;
    background: var(--ink); color: #FFFFFF; cursor: pointer;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 18px 0 10px; font-family: inherit;
    box-shadow: 0 10px 28px rgba(20,18,31,0.35);
    transform: translateY(140%); transition: transform .25s ease;
  }
  .k-cartbar.show { transform: translateY(0); }
  .k-cartbar-left { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 14px; }
  .k-cartbar-count {
    min-width: 36px; height: 36px; border-radius: 10px; padding: 0 8px;
    background: var(--pink); display: flex; align-items: center; justify-content: center;
    font-family: var(--font-mono); font-weight: 800;
  }
  .k-cartbar b { font-family: var(--font-mono); font-size: 17px; }
}

.katalog-body .toast { bottom: auto; top: calc(72px + env(safe-area-inset-top)); }
@media (min-width: 1000px) { .katalog-body .toast { top: auto; bottom: 28px; } }

/* =====================================================
   PDF ŞABLONU (ekran dışında çizilir, html2canvas ile
   görüntüye çevrilip A4 PDF'e yerleştirilir)
   ===================================================== */
#pdfAlan {
  position: fixed; left: -12000px; top: 0;
  width: 794px; pointer-events: none;
}
.pp {
  width: 794px; height: 1123px;
  background: #FFFFFF; color: #1E1B2B;
  font-family: var(--font-body);
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  margin-bottom: 20px;
}
.pp-head {
  background: #14121F; color: #FFFFFF;
  padding: 34px 48px 30px;
  display: flex; justify-content: space-between; align-items: flex-start;
  position: relative;
}
.pp-head-kucuk { padding: 20px 48px; align-items: center; }
.pp-brand { display: flex; align-items: center; gap: 14px; }
.pp-logo {
  width: 52px; height: 52px; padding: 9px; border-radius: 12px;
  background: rgba(255,79,163,0.16);
  display: flex; flex-wrap: wrap; gap: 4px; align-content: space-between;
}
.pp-logo i { width: 15px; height: 15px; border-radius: 3px; display: block; }
.pp-head-kucuk .pp-logo { width: 36px; height: 36px; padding: 6px; gap: 3px; border-radius: 9px; }
.pp-head-kucuk .pp-logo i { width: 10.5px; height: 10.5px; border-radius: 2px; }
.pp-name { font-size: 30px; font-weight: 800; letter-spacing: .3px; line-height: 1.05; }
.pp-head-kucuk .pp-name { font-size: 20px; }
.pp-sub { font-size: 12px; color: rgba(255,255,255,0.55); letter-spacing: 1px; margin-top: 4px; }
.pp-doc { text-align: right; }
.pp-doc-title {
  display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: 3px;
  color: #FF4FA3; border: 1.5px solid rgba(255,79,163,0.5);
  padding: 5px 12px; border-radius: 20px; margin-bottom: 12px;
}
.pp-meta { font-size: 12.5px; color: rgba(255,255,255,0.6); line-height: 1.75; }
.pp-meta b { color: #FFFFFF; font-family: var(--font-mono); font-weight: 700; margin-left: 6px; }
.pp-head-kucuk .pp-meta { line-height: 1.5; }

.pp-strip { display: flex; height: 6px; }
.pp-strip i { flex: 1; display: block; }

.pp-body { flex: 1; padding: 26px 48px 0; overflow: hidden; display: flex; flex-direction: column; }

.pp-info { display: flex; gap: 14px; margin-bottom: 22px; }
.pp-box {
  flex: 1; border: 1px solid #E6E3EE; border-radius: 12px; padding: 13px 16px;
  background: #FAF9FC;
}
.pp-box-lbl { font-size: 10px; font-weight: 800; letter-spacing: 2px; color: #A09BB3; margin-bottom: 6px; }
.pp-box-val { font-size: 14px; font-weight: 700; color: #1E1B2B; line-height: 1.45; }
.pp-box-val span { display: block; font-weight: 500; font-size: 12.5px; color: #5B5770; }

.pp-table { width: 100%; border-collapse: separate; border-spacing: 0; }
.pp-table th {
  background: #F3F1F8; color: #6B6680;
  font-size: 10.5px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase;
  padding: 11px 10px; text-align: left;
}
.pp-table th:first-child { border-radius: 9px 0 0 9px; padding-left: 14px; }
.pp-table th:last-child  { border-radius: 0 9px 9px 0; padding-right: 14px; }
.pp-table td {
  padding: 9px 10px; font-size: 13px; color: #1E1B2B;
  border-bottom: 1px solid #EEECF4; vertical-align: middle;
  height: 72px;
}
.pp-table td:first-child { padding-left: 14px; color: #A09BB3; font-family: var(--font-mono); font-size: 12px; }
.pp-table td:last-child  { padding-right: 14px; }
.pp-r { text-align: right !important; }
.pp-c { text-align: center !important; }
.pp-img {
  width: 54px; height: 54px; border-radius: 10px;
  background: #F1EFF6 center / cover no-repeat;
  border: 1px solid #ECEAF3;
}
.pp-code {
  display: inline-block; font-family: var(--font-mono); font-size: 11.5px; font-weight: 700;
  color: #D6247F; background: #FCE8F2; padding: 3px 8px; border-radius: 6px; letter-spacing: .3px;
}
.pp-ad { font-weight: 700; font-size: 13.5px; line-height: 1.3; }
.pp-ad span { display: block; font-weight: 500; font-size: 11px; color: #A09BB3; margin-top: 2px; }
.pp-mono { font-family: var(--font-mono); white-space: nowrap; }
.pp-adet {
  display: inline-block; min-width: 34px; font-family: var(--font-mono); font-weight: 800;
  background: #F3F1F8; border-radius: 7px; padding: 4px 8px; text-align: center;
}
.pp-tutar { font-family: var(--font-mono); font-weight: 800; white-space: nowrap; }

.pp-ozet { display: flex; gap: 20px; margin-top: 22px; align-items: flex-start; }
.pp-not {
  flex: 1; font-size: 11.5px; color: #6B6680; line-height: 1.6;
  border-left: 3px solid #FF4FA3; padding: 4px 0 4px 14px;
}
.pp-not b { color: #1E1B2B; display: block; margin-bottom: 3px; font-size: 12px; }
.pp-tot { width: 320px; }
.pp-tot-row { display: flex; justify-content: space-between; font-size: 13px; color: #5B5770; padding: 6px 4px; border-bottom: 1px dashed #E6E3EE; }
.pp-tot-row b { font-family: var(--font-mono); color: #1E1B2B; }
.pp-grand {
  margin-top: 12px; background: #14121F; border-radius: 12px; padding: 16px 18px;
  display: flex; justify-content: space-between; align-items: center;
}
.pp-grand span { white-space: nowrap; font-size: 11px; font-weight: 800; letter-spacing: 2px; color: rgba(255,255,255,0.6); }
.pp-grand b { font-family: var(--font-mono); font-size: 25px; color: #FF4FA3; white-space: nowrap; }

.pp-foot {
  padding: 16px 48px 26px; display: flex; justify-content: space-between; align-items: center;
  font-size: 11px; color: #A09BB3;
}
.pp-foot-line { height: 1px; background: #EEECF4; margin: 0 48px; }
.pp-foot b { color: #1E1B2B; }

/* ---------- PDF + Link butonları ---------- */
.k-cikti { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.k-cikti .k-pdf-btn { font-size: 14px; gap: 7px; padding: 0 8px; }
.k-cikti .k-pdf-btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.k-btn-koyu { background: var(--ink) !important; box-shadow: 0 6px 18px rgba(20,18,31,0.18) !important; }
.k-pdf-btn.yukleniyor { font-size: 12px !important; }
.k-cikti-not { margin: 7px 0 0; text-align: center; font-size: 11.5px; color: var(--text-faint); }

/* ---------- Link penceresi ---------- */
.k-modal-overlay {
  position: fixed; inset: 0; z-index: 120; background: rgba(20,18,31,0.5);
  opacity: 0; pointer-events: none; transition: opacity .2s ease;
}
.k-modal-overlay.open { opacity: 1; pointer-events: auto; }
.k-modal {
  position: fixed; z-index: 121; left: 50%; top: 50%;
  width: min(440px, calc(100% - 28px));
  background: var(--bg-surface); border-radius: 20px; padding: 24px 20px 16px;
  text-align: center; box-shadow: 0 24px 60px rgba(20,18,31,0.3);
  transform: translate(-50%, -46%); opacity: 0; pointer-events: none;
  transition: transform .2s ease, opacity .2s ease;
}
.k-modal.open { transform: translate(-50%, -50%); opacity: 1; pointer-events: auto; }
.k-modal-ikon {
  width: 54px; height: 54px; border-radius: 50%; margin: 0 auto 12px;
  background: var(--success-dim); color: var(--success);
  display: flex; align-items: center; justify-content: center;
}
.k-modal-ikon svg { width: 28px; height: 28px; }
.k-modal h3 { margin: 0 0 6px; font-size: 19px; }
.k-modal p { margin: 0 0 14px; font-size: 13px; color: var(--text-muted); line-height: 1.55; }
.k-modal p b { font-family: var(--font-mono); color: var(--text); }
.k-link-kutu {
  display: flex; border: 1.5px solid var(--border); border-radius: 12px; overflow: hidden; margin-bottom: 12px;
}
.k-link-kutu input {
  flex: 1; min-width: 0; border: none; padding: 11px 12px; font-family: var(--font-mono); font-size: 12.5px;
  color: var(--text); background: var(--bg-surface-2);
}
.k-link-kutu input:focus { outline: none; }
.k-link-kutu button {
  border: none; background: var(--ink); color: #fff; padding: 0 16px;
  font-family: inherit; font-weight: 800; font-size: 13px; cursor: pointer;
}
.k-modal-btns { display: flex; flex-direction: column; gap: 8px; }
.k-mbtn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; border-radius: 12px; border: 1.5px solid var(--border);
  background: var(--bg-surface); color: var(--text); font-family: inherit;
  font-weight: 700; font-size: 14px; cursor: pointer;
}
.k-mbtn svg { width: 20px; height: 20px; }
.k-mbtn-wp { background: #25D366; border-color: #25D366; color: #fff; }
.k-modal-kapat {
  margin-top: 8px; border: none; background: transparent; color: var(--text-faint);
  font-family: inherit; font-weight: 700; font-size: 13px; padding: 8px; cursor: pointer;
}

/* =====================================================
   SİPARİŞ LİNKİ SAYFASI (siparis.php)
   ===================================================== */
.sp-wrap { max-width: 860px; margin: 0 auto; padding: 18px 14px 40px; }
.sp-kart {
  background: #fff; border-radius: 20px; overflow: hidden;
  box-shadow: var(--shadow-raised); border: 1px solid var(--border-soft);
}
.sp-head {
  background: var(--ink); color: #fff; padding: 22px 22px 20px;
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; align-items: flex-start;
}
.sp-head .k-brand-text { font-size: 20px; }
.sp-doc { text-align: right; }
.sp-doc-title {
  display: inline-block; font-size: 10.5px; font-weight: 800; letter-spacing: 2.5px;
  color: var(--pink); border: 1.5px solid rgba(255,79,163,0.5);
  padding: 4px 10px; border-radius: 20px; margin-bottom: 8px;
}
.sp-meta { font-size: 12px; color: rgba(255,255,255,0.6); line-height: 1.7; }
.sp-meta b { color: #fff; font-family: var(--font-mono); margin-left: 5px; }
.sp-strip { display: flex; height: 5px; }
.sp-strip i { flex: 1; }
.sp-body { padding: 18px; }
.sp-info { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin-bottom: 18px; }
.sp-box { border: 1px solid #E6E3EE; border-radius: 12px; padding: 11px 14px; background: #FAF9FC; }
.sp-box small { display: block; font-size: 9.5px; font-weight: 800; letter-spacing: 2px; color: #A09BB3; margin-bottom: 4px; }
.sp-box b { font-size: 14px; display: block; }
.sp-box span { font-size: 12.5px; color: #5B5770; }

.sp-kalem {
  display: grid; grid-template-columns: 58px 1fr auto; gap: 12px; align-items: center;
  padding: 11px 2px; border-bottom: 1px solid #EEECF4;
}
.sp-img { width: 58px; height: 58px; border-radius: 11px; background: #F1EFF6 center / cover no-repeat; border: 1px solid #ECEAF3; }
.sp-ad { font-weight: 700; font-size: 14px; line-height: 1.3; }
.sp-alt { font-size: 12px; color: #6B6680; margin-top: 3px; }
.sp-alt .pp-code { font-size: 10.5px; padding: 2px 6px; margin-right: 4px; }
.sp-tutar { text-align: right; font-family: var(--font-mono); font-weight: 800; font-size: 14px; white-space: nowrap; }
.sp-tutar small { display: block; font-weight: 600; font-size: 11.5px; color: #A09BB3; margin-top: 2px; }

.sp-ozet { margin-top: 16px; display: flex; flex-direction: column; gap: 4px; }
.sp-ozet-row { display: flex; justify-content: space-between; font-size: 13px; color: #5B5770; padding: 3px 2px; }
.sp-ozet-row b { font-family: var(--font-mono); color: #1E1B2B; }
.sp-grand {
  margin-top: 8px; background: var(--ink); border-radius: 14px; padding: 15px 18px;
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
}
.sp-grand span { font-size: 11px; font-weight: 800; letter-spacing: 2px; color: rgba(255,255,255,0.6); }
.sp-grand b { font-family: var(--font-mono); font-size: 24px; color: var(--pink); white-space: nowrap; }
.sp-not {
  margin-top: 16px; font-size: 12.5px; color: #6B6680; line-height: 1.6;
  border-left: 3px solid var(--pink); padding: 4px 0 4px 12px;
}
.sp-not b { color: #1E1B2B; display: block; }
.sp-aksiyon { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
.sp-aksiyon .k-pdf-btn, .sp-aksiyon .k-mbtn { height: 50px; font-size: 14px; }
.sp-aksiyon .k-mbtn-wp { grid-column: 1 / -1; }
.sp-alt-link { text-align: center; margin-top: 16px; font-size: 13px; }
.sp-alt-link a { color: var(--accent); font-weight: 700; }
.sp-yok { text-align: center; padding: 60px 20px; }
@media (min-width: 700px) {
  .sp-wrap { padding-top: 30px; }
  .sp-head { padding: 28px 30px 24px; }
  .sp-body { padding: 24px 30px 28px; }
  .sp-aksiyon { grid-template-columns: 1fr 1fr 1.3fr; }
  .sp-aksiyon .k-mbtn-wp { grid-column: auto; }
}
