/* ==========================================================================
   KODAK TEKSTİL — KATALOG, SEPET VE YÖNETİM PANELİ STİLLERİ
   Mevcut marka dili (greige + altın + Playfair/Inter) korunmuştur.
   ========================================================================== */

:root {
  --ok: #15803D;
  --warn: #B45309;
  --danger: #B91C1C;
  --danger-soft: #FEF2F2;
  --ink-soft: #4A4845;
  --line-strong: #CFC6B6;
  --focus: #6D5B33;
}

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

/* HATA DÜZELTMESİ: tarayıcının varsayılan [hidden] kuralı çok zayıftır ve
   display:flex / display:grid tanımlı sınıflar tarafından eziliyor.
   Bu yüzden hidden verilen kutular ekranda kalabiliyordu. */
[hidden] { display: none !important; }

/* ==========================================================================
   1. ORTAK BİLEŞENLER
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .75rem 1.25rem;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: .93rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover:not(:disabled) { background: var(--gold-hover); transform: translateY(-1px); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover:not(:disabled) { background: #333; transform: translateY(-1px); }
.btn-wa { background: var(--whatsapp); color: #fff; }
.btn-wa:hover:not(:disabled) { background: var(--whatsapp-hover); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--greige-border); }
.btn-ghost:hover:not(:disabled) { border-color: var(--gold); color: var(--gold); }
.btn-danger { background: var(--danger-soft); color: var(--danger); border-color: #FECACA; }
.btn-danger:hover:not(:disabled) { background: var(--danger); color: #fff; }
.btn-sm { padding: .5rem .85rem; font-size: .84rem; }
.btn-block { width: 100%; }

.field { margin-bottom: 1rem; }
.field label {
  display: block;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--metal);
  margin-bottom: .4rem;
}
.field .hint { font-size: .78rem; color: var(--metal); margin-top: .35rem; line-height: 1.45; }
.input, .select, .textarea {
  width: 100%;
  padding: .7rem .85rem;
  border: 1px solid var(--greige-border);
  border-radius: var(--radius-sm);
  background: #fff;
  font-family: var(--font-body);
  font-size: .95rem;
  color: var(--ink);
  transition: var(--transition);
}
.input:focus, .select:focus, .textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(196,167,114,.18);
  outline: none;
}
.textarea { resize: vertical; min-height: 100px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.notice {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  padding: .9rem 1.1rem;
  border-radius: var(--radius-sm);
  font-size: .88rem;
  line-height: 1.5;
  border: 1px solid;
  margin-bottom: 1.25rem;
}
.notice i { margin-top: .15rem; }
.notice-warn { background: #FFFBEB; border-color: #FDE68A; color: #92400E; }
.notice-info { background: #F0F7FF; border-color: #BFDBFE; color: #1E40AF; }
.notice-ok { background: #F0FDF4; border-color: #BBF7D0; color: #166534; }
.notice-danger { background: var(--danger-soft); border-color: #FECACA; color: var(--danger); }

.spinner {
  width: 1em; height: 1em;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  display: inline-block;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.toast-stack {
  position: fixed; bottom: 24px; left: 50%;
  transform: translateX(-50%);
  z-index: 12000;
  display: flex; flex-direction: column; gap: .6rem;
  width: min(420px, calc(100vw - 32px));
  pointer-events: none;
}
.toast {
  background: var(--ink); color: #fff;
  padding: .85rem 1.1rem; border-radius: var(--radius-md);
  font-size: .9rem; box-shadow: var(--shadow-lg);
  display: flex; gap: .6rem; align-items: center;
  animation: toastIn .3s cubic-bezier(.2,.9,.3,1.3);
}
.toast.err { background: var(--danger); }
.toast.ok { background: var(--ok); }
@keyframes toastIn { from { opacity: 0; transform: translateY(14px); } }

/* ==========================================================================
   2. MENÜDEKİ SEPET DÜĞMESİ
   ========================================================================== */
.nav-actions { display: flex; align-items: center; gap: .5rem; margin-left: auto; }

.cart-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem .9rem;
  border: 1px solid var(--greige-border);
  border-radius: 50px;
  background: #fff;
  font-weight: 600;
  font-size: .88rem;
  color: var(--ink);
  cursor: pointer;
  transition: var(--transition);
}
.cart-pill:hover { border-color: var(--gold); color: var(--gold); }
.cart-pill .badge {
  min-width: 20px; height: 20px;
  padding: 0 6px;
  background: var(--gold); color: #fff;
  border-radius: 20px;
  font-size: .72rem; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
}
.cart-pill .badge.is-empty { background: var(--line-strong); }

/* ==========================================================================
   3. KATALOG BAŞLIĞI VE FİLTRELER
   ========================================================================== */
.catalog-head {
  padding: clamp(32px, 5vw, 52px) 0 clamp(20px, 3vw, 28px);
  background: radial-gradient(circle at 50% 0%, #FAF8F5 0%, #EFEBE3 100%);
  border-bottom: 1px solid var(--greige-border);
  text-align: center;
}
.catalog-head h1 { font-size: clamp(26px, 4vw, 38px); margin: .5rem 0 .35rem; }
.catalog-head p { color: var(--metal); max-width: 560px; margin: 0 auto; font-size: .96rem; }

.announcement-bar {
  background: var(--ink); color: var(--gold);
  text-align: center; padding: .6rem 1rem;
  font-size: .87rem; font-weight: 500;
}

.filter-bar {
  position: sticky;
  top: 75px;
  z-index: 900;
  background: rgba(244,241,235,.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--greige-border);
  padding: .85rem 0;
}
.filter-inner { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; }
.search-wrap { position: relative; flex: 1 1 240px; min-width: 200px; }
.search-wrap i {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  color: var(--metal); font-size: .9rem; pointer-events: none;
}
.search-wrap .input { padding-left: 36px; }
.filter-bar .select { width: auto; min-width: 150px; flex: 0 0 auto; }

.chip-row { display: flex; gap: .5rem; overflow-x: auto; padding: .15rem 0 .3rem; scrollbar-width: none; }
.chip-row::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto;
  padding: .45rem .95rem;
  border: 1px solid var(--greige-border);
  background: #fff;
  border-radius: 50px;
  font-size: .84rem; font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
  transition: var(--transition);
}
.chip:hover { border-color: var(--gold); color: var(--gold); }
.chip.active { background: var(--ink); border-color: var(--ink); color: #fff; }

.result-line {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.25rem 0 .75rem;
  font-size: .86rem; color: var(--metal);
}

/* ==========================================================================
   4. ÜRÜN KARTLARI  —  "kartela" görünümü
   ========================================================================== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.35rem;
  padding-bottom: 3.5rem;
}

.product-card {
  background: var(--greige-card);
  border: 1px solid var(--greige-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: var(--transition);
  position: relative;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold);
}

.pc-media {
  position: relative;
  aspect-ratio: 4 / 5;
  background: #ECE7DE;
  overflow: hidden;
  cursor: pointer;
}
.pc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.product-card:hover .pc-media img { transform: scale(1.04); }
.pc-media .placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: var(--line-strong); font-size: 2.2rem;
}

.pc-code {
  position: absolute; top: 10px; left: 10px;
  background: rgba(26,25,24,.82);
  color: #E8DCC2;
  font-size: .68rem; font-weight: 700;
  letter-spacing: .1em;
  padding: 4px 9px;
  border-radius: 4px;
  backdrop-filter: blur(4px);
}
.pc-flag {
  position: absolute; top: 10px; right: 10px;
  font-size: .68rem; font-weight: 700; letter-spacing: .05em;
  padding: 4px 9px; border-radius: 4px;
  text-transform: uppercase;
}
.pc-flag.out { background: rgba(185,28,28,.92); color: #fff; }
.pc-flag.low { background: rgba(180,83,9,.92); color: #fff; }
.pc-flag.new { background: rgba(196,167,114,.95); color: #fff; }

.pc-body { padding: .9rem 1rem 1rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.pc-cat {
  font-size: .7rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--gold);
}
.pc-name {
  font-family: var(--font-heading);
  font-size: 1.05rem; font-weight: 600; line-height: 1.3;
  color: var(--ink); margin: 0;
}
.pc-meta { font-size: .8rem; color: var(--metal); line-height: 1.5; }

/* Renk kartelası — kumaş numune kartından ilham */
.pc-swatches { display: flex; gap: 5px; align-items: center; flex-wrap: wrap; }
.swatch {
  width: 17px; height: 17px;
  border-radius: 3px;
  border: 1px solid rgba(26,25,24,.16);
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.6);
}
.swatch-more { font-size: .72rem; color: var(--metal); font-weight: 600; }

.pc-foot {
  margin-top: auto;
  padding-top: .75rem;
  border-top: 1px dashed var(--greige-border);
  display: flex; align-items: flex-end; justify-content: space-between; gap: .5rem;
}
.pc-price { font-family: var(--font-heading); font-size: 1.25rem; font-weight: 700; color: var(--ink); line-height: 1.1; }
.pc-price small { display: block; font-family: var(--font-body); font-size: .72rem; font-weight: 500; color: var(--metal); letter-spacing: .02em; }
.pc-price.ask { font-size: .95rem; color: var(--gold); }

.pc-add {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--ink); color: #fff;
  font-size: 1rem; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: var(--transition);
  flex: 0 0 auto;
}
.pc-add:hover:not(:disabled) { background: var(--gold); transform: scale(1.08); }
.pc-add:disabled { background: var(--line-strong); cursor: not-allowed; }

/* Boş durum */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: clamp(3rem, 8vw, 5rem) 1rem;
  color: var(--metal);
}
.empty-state i { font-size: 2.6rem; color: var(--line-strong); margin-bottom: 1rem; display: block; }
.empty-state h3 { margin-bottom: .5rem; }

.skeleton-card { background: var(--greige-card); border: 1px solid var(--greige-border); border-radius: var(--radius-md); overflow: hidden; }
.skeleton-card .sk { background: linear-gradient(90deg, #ECE7DE 25%, #F5F1EA 50%, #ECE7DE 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
.skeleton-card .sk-media { aspect-ratio: 4/5; }
.skeleton-card .sk-line { height: 12px; margin: 12px 16px; border-radius: 4px; }
.skeleton-card .sk-line.short { width: 45%; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ==========================================================================
   5. ÜRÜN DETAY PENCERESİ
   ========================================================================== */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(26,25,24,.55);
  backdrop-filter: blur(3px);
  z-index: 10000;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
}
.modal-backdrop.open { opacity: 1; visibility: visible; }

.modal {
  background: var(--greige-card);
  border-radius: var(--radius-lg);
  width: min(920px, 100%);
  max-height: min(88vh, 780px);
  overflow: auto;
  box-shadow: var(--shadow-lg);
  transform: translateY(16px) scale(.98);
  transition: transform .25s cubic-bezier(.2,.9,.3,1.1);
  position: relative;
}
.modal-backdrop.open .modal { transform: none; }
.modal-narrow { width: min(520px, 100%); }

.modal-close {
  position: absolute; top: 14px; right: 14px;
  width: 36px; height: 36px; border-radius: 50%;
  border: none; background: rgba(255,255,255,.92);
  color: var(--ink); font-size: 1rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm); z-index: 3;
  transition: var(--transition);
}
.modal-close:hover { background: var(--ink); color: #fff; }

.pd-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
.pd-gallery { background: #ECE7DE; padding: 1rem; display: flex; flex-direction: column; gap: .6rem; }
.pd-main {
  aspect-ratio: 4/5; border-radius: var(--radius-sm); overflow: hidden;
  background: #fff; display: flex; align-items: center; justify-content: center;
}
.pd-main img { width: 100%; height: 100%; object-fit: cover; }
.pd-thumbs { display: flex; gap: .5rem; flex-wrap: wrap; }
.pd-thumbs img {
  width: 56px; height: 56px; object-fit: cover;
  border-radius: 4px; cursor: pointer;
  border: 2px solid transparent; opacity: .65; transition: var(--transition);
}
.pd-thumbs img.active, .pd-thumbs img:hover { border-color: var(--gold); opacity: 1; }

.pd-info { padding: clamp(1.25rem, 3vw, 2rem); display: flex; flex-direction: column; gap: .9rem; }
.pd-info h2 { font-size: clamp(1.3rem, 2.6vw, 1.7rem); margin: 0; }
.pd-specs { display: grid; grid-template-columns: auto 1fr; gap: .5rem 1rem; font-size: .88rem; }
.pd-specs dt { color: var(--metal); font-weight: 600; }
.pd-specs dd { margin: 0; color: var(--ink); }
.pd-desc { font-size: .92rem; color: var(--ink-soft); line-height: 1.65; white-space: pre-line; }

.color-picker { display: flex; gap: .5rem; flex-wrap: wrap; }
.color-opt {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .35rem .7rem .35rem .4rem;
  border: 1px solid var(--greige-border); border-radius: 50px;
  background: #fff; cursor: pointer; font-size: .82rem; font-weight: 600;
  transition: var(--transition);
}
.color-opt:hover { border-color: var(--gold); }
.color-opt.active { border-color: var(--ink); background: var(--ink); color: #fff; }
.color-opt .dot { width: 15px; height: 15px; border-radius: 50%; border: 1px solid rgba(0,0,0,.15); }

.size-tags { display: flex; gap: .4rem; flex-wrap: wrap; }
.size-tag {
  padding: .3rem .6rem; border: 1px solid var(--greige-border);
  border-radius: 4px; font-size: .78rem; font-weight: 600; color: var(--ink-soft);
  background: #FAF8F4;
}

.qty-box { display: inline-flex; align-items: center; border: 1px solid var(--greige-border); border-radius: var(--radius-sm); overflow: hidden; background: #fff; }
.qty-box button {
  width: 40px; height: 42px; border: none; background: transparent;
  font-size: 1rem; cursor: pointer; color: var(--ink); transition: var(--transition);
}
.qty-box button:hover:not(:disabled) { background: #F0EBE2; color: var(--gold); }
.qty-box button:disabled { opacity: .3; cursor: not-allowed; }
.qty-box input {
  width: 62px; height: 42px; border: none; text-align: center;
  font-size: .95rem; font-weight: 700; font-variant-numeric: tabular-nums;
  background: transparent; color: var(--ink);
  -moz-appearance: textfield;
}
.qty-box input::-webkit-outer-spin-button,
.qty-box input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.pd-price-row {
  display: flex; align-items: baseline; gap: .6rem;
  padding: .9rem 0; border-top: 1px solid var(--greige-border); border-bottom: 1px solid var(--greige-border);
}
.pd-price { font-family: var(--font-heading); font-size: 1.9rem; font-weight: 700; }
.pd-price-unit { font-size: .85rem; color: var(--metal); }

/* ==========================================================================
   6. SEPET ÇEKMECESİ  —  "sipariş fişi" görünümü
   ========================================================================== */
.drawer-backdrop {
  position: fixed; inset: 0;
  background: rgba(26,25,24,.5);
  z-index: 10500;
  opacity: 0; visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
}
.drawer-backdrop.open { opacity: 1; visibility: visible; }

.drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(430px, 100%);
  background: var(--greige-bg);
  z-index: 10600;
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform .32s cubic-bezier(.32,.72,0,1);
  box-shadow: -8px 0 32px rgba(0,0,0,.16);
}
.drawer.open { transform: none; }

.drawer-head {
  padding: 1.15rem 1.25rem;
  border-bottom: 1px solid var(--greige-border);
  display: flex; align-items: center; justify-content: space-between;
  background: var(--ink); color: #fff;
}
.drawer-head h2 { color: #fff; font-size: 1.15rem; margin: 0; }
.drawer-head .sub { font-size: .76rem; color: #9E9A92; margin-top: 2px; }
.drawer-head button { background: none; border: none; color: #fff; font-size: 1.2rem; cursor: pointer; padding: 4px 8px; }
.drawer-head button:hover { color: var(--gold); }

.drawer-body { flex: 1; overflow-y: auto; padding: 1rem 1.25rem; }

.cart-line {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: .85rem;
  padding: .9rem 0;
  border-bottom: 1px dashed var(--greige-border);
}
.cart-line-img {
  width: 62px; height: 78px; border-radius: 4px; object-fit: cover;
  background: #ECE7DE; border: 1px solid var(--greige-border);
}
.cart-line-img.ph { display: flex; align-items: center; justify-content: center; color: var(--line-strong); }
.cart-line h4 { font-family: var(--font-body); font-size: .9rem; font-weight: 600; margin: 0 0 .2rem; line-height: 1.35; }
.cart-line .cl-meta { font-size: .75rem; color: var(--metal); margin-bottom: .5rem; }
.cart-line .cl-controls { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.cart-line .qty-box button { width: 30px; height: 30px; font-size: .8rem; }
.cart-line .qty-box input { width: 42px; height: 30px; font-size: .85rem; }
.cl-price { font-weight: 700; font-size: .92rem; font-variant-numeric: tabular-nums; }
.cl-remove { background: none; border: none; color: var(--metal); cursor: pointer; font-size: .78rem; padding: 2px; }
.cl-remove:hover { color: var(--danger); }
.cl-warn { font-size: .74rem; color: var(--warn); margin-top: .3rem; }

.drawer-foot { border-top: 1px solid var(--greige-border); background: #fff; padding: 1.15rem 1.25rem 1.35rem; }
.sum-row { display: flex; justify-content: space-between; font-size: .87rem; color: var(--ink-soft); margin-bottom: .45rem; font-variant-numeric: tabular-nums; }
.sum-row.grand {
  font-family: var(--font-heading); font-size: 1.3rem; font-weight: 700; color: var(--ink);
  padding-top: .65rem; margin-top: .3rem; border-top: 1px solid var(--greige-border);
}
.drawer-foot .btn { margin-top: .85rem; }
.drawer-note { font-size: .74rem; color: var(--metal); text-align: center; margin-top: .7rem; line-height: 1.5; }

/* Mobil sabit sepet çubuğu */
.mobile-cart-bar {
  position: fixed; left: 12px; right: 12px; bottom: 12px;
  z-index: 8000;
  background: var(--ink); color: #fff;
  border-radius: var(--radius-md);
  padding: .8rem 1.1rem;
  display: none; align-items: center; justify-content: space-between;
  box-shadow: var(--shadow-lg); cursor: pointer;
  animation: barUp .3s cubic-bezier(.2,.9,.3,1.2);
}
@keyframes barUp { from { transform: translateY(80px); opacity: 0; } }
.mobile-cart-bar.show { display: flex; }
.mobile-cart-bar strong { font-size: 1rem; font-variant-numeric: tabular-nums; }
.mobile-cart-bar span { font-size: .8rem; color: #B8B3A9; display: block; }

/* ==========================================================================
   7. SİPARİŞ FORMU
   ========================================================================== */
.checkout-body { padding: clamp(1.35rem, 3vw, 2rem); }
.checkout-body h2 { font-size: 1.4rem; margin-bottom: .35rem; }
.checkout-body > p.lead { color: var(--metal); font-size: .89rem; margin-bottom: 1.4rem; }

.order-slip {
  background: #FAF8F4;
  border: 1px solid var(--greige-border);
  border-radius: var(--radius-sm);
  padding: .9rem 1rem;
  margin-bottom: 1.35rem;
  max-height: 190px; overflow-y: auto;
  font-size: .84rem;
}
.order-slip .slip-row { display: flex; justify-content: space-between; gap: 1rem; padding: .25rem 0; font-variant-numeric: tabular-nums; }
.order-slip .slip-row span:first-child { color: var(--ink-soft); }
.order-slip .slip-total {
  border-top: 1px dashed var(--line-strong); margin-top: .5rem; padding-top: .5rem;
  font-weight: 700; color: var(--ink);
}

.radio-row { display: flex; gap: .5rem; flex-wrap: wrap; }
.radio-opt {
  flex: 1 1 auto; text-align: center;
  padding: .6rem .8rem; border: 1px solid var(--greige-border);
  border-radius: var(--radius-sm); background: #fff;
  font-size: .85rem; font-weight: 600; cursor: pointer; transition: var(--transition);
}
.radio-opt:hover { border-color: var(--gold); }
.radio-opt.active { background: var(--ink); border-color: var(--ink); color: #fff; }

.err-text { color: var(--danger); font-size: .78rem; margin-top: .3rem; display: none; }
.field.invalid .input { border-color: var(--danger); }
.field.invalid .err-text { display: block; }

/* ==========================================================================
   8. YÖNETİM PANELİ
   ========================================================================== */
.admin-body { background: #F0EBE2; min-height: 100vh; }

.admin-bar {
  background: var(--ink); color: #fff;
  padding: .9rem 0; position: sticky; top: 0; z-index: 900;
  border-bottom: 3px solid var(--gold);
}
.admin-bar .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.admin-brand { display: flex; align-items: center; gap: .7rem; font-family: var(--font-heading); font-weight: 700; font-size: 1.1rem; }
.admin-brand .tag {
  background: var(--gold); color: var(--ink);
  font-family: var(--font-body); font-size: .64rem; font-weight: 700;
  letter-spacing: .1em; padding: 3px 7px; border-radius: 3px;
}
.admin-bar-right { display: flex; align-items: center; gap: .6rem; font-size: .83rem; color: #A8A39A; }

.login-wrap { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 20px; }
.login-card {
  background: #fff; border: 1px solid var(--greige-border);
  border-radius: var(--radius-lg); padding: clamp(1.75rem, 4vw, 2.5rem);
  width: min(420px, 100%); box-shadow: var(--shadow-md);
}
.login-card h1 { font-size: 1.5rem; margin-bottom: .35rem; text-align: center; }
.login-card .sub { text-align: center; color: var(--metal); font-size: .88rem; margin-bottom: 1.75rem; }

.tabs { display: flex; gap: .3rem; border-bottom: 1px solid var(--greige-border); margin: 1.5rem 0 1.5rem; overflow-x: auto; }
.tab {
  padding: .7rem 1.1rem; border: none; background: none;
  font-family: var(--font-body); font-size: .9rem; font-weight: 600;
  color: var(--metal); cursor: pointer; white-space: nowrap;
  border-bottom: 2px solid transparent; transition: var(--transition);
}
.tab:hover { color: var(--ink); }
.tab.active { color: var(--ink); border-bottom-color: var(--gold); }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.stat {
  background: #fff; border: 1px solid var(--greige-border);
  border-radius: var(--radius-md); padding: 1.1rem 1.25rem;
}
.stat .num { font-family: var(--font-heading); font-size: 1.75rem; font-weight: 700; line-height: 1; }
.stat .lbl { font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--metal); margin-top: .4rem; }
.stat.alert .num { color: var(--danger); }

.panel {
  background: #fff; border: 1px solid var(--greige-border);
  border-radius: var(--radius-md); padding: clamp(1.1rem, 2.5vw, 1.65rem);
  margin-bottom: 1.5rem;
}
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.15rem; }
.panel-head h2 { font-size: 1.2rem; margin: 0; }

.admin-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.admin-table th {
  text-align: left; padding: .65rem .6rem;
  font-size: .7rem; text-transform: uppercase; letter-spacing: .07em;
  color: var(--metal); border-bottom: 1px solid var(--greige-border); font-weight: 700;
}
.admin-table td { padding: .7rem .6rem; border-bottom: 1px solid #F0EBE2; vertical-align: middle; }
.admin-table tr:hover td { background: #FAF8F4; }
.admin-table .thumb {
  width: 46px; height: 58px; border-radius: 4px; object-fit: cover;
  background: #ECE7DE; border: 1px solid var(--greige-border);
}
.admin-table .thumb.ph { display: flex; align-items: center; justify-content: center; color: var(--line-strong); }
.t-name { font-weight: 600; }
.t-code { font-size: .74rem; color: var(--metal); letter-spacing: .05em; }
.t-actions { display: flex; gap: .35rem; justify-content: flex-end; }

.pill {
  display: inline-block; padding: 3px 9px; border-radius: 20px;
  font-size: .72rem; font-weight: 700;
}
.pill-ok { background: #DCFCE7; color: #166534; }
.pill-off { background: #F1EFEA; color: var(--metal); }
.pill-low { background: #FEF3C7; color: #92400E; }
.pill-out { background: #FEE2E2; color: var(--danger); }
.pill-new { background: #DBEAFE; color: #1E40AF; }

.stock-input {
  width: 72px; padding: .35rem .5rem; text-align: center;
  border: 1px solid var(--greige-border); border-radius: 4px;
  font-variant-numeric: tabular-nums; font-weight: 600; font-size: .85rem;
}
.stock-input:focus { border-color: var(--gold); outline: none; }

/* Fotoğraf yükleme alanı */
.drop-zone {
  border: 2px dashed var(--line-strong);
  border-radius: var(--radius-md);
  padding: 1.75rem 1rem;
  text-align: center;
  background: #FAF8F4;
  cursor: pointer;
  transition: var(--transition);
}
.drop-zone:hover, .drop-zone.dragging { border-color: var(--gold); background: #FFFBF2; }
.drop-zone i { font-size: 1.8rem; color: var(--gold); display: block; margin-bottom: .6rem; }
.drop-zone strong { display: block; font-size: .93rem; margin-bottom: .25rem; }
.drop-zone small { color: var(--metal); font-size: .8rem; }

.thumb-grid { display: flex; gap: .65rem; flex-wrap: wrap; margin-top: .9rem; }
.thumb-item { position: relative; width: 84px; }
.thumb-item img {
  width: 84px; height: 105px; object-fit: cover;
  border-radius: var(--radius-sm); border: 1px solid var(--greige-border);
}
.thumb-item .cover-tag {
  position: absolute; bottom: 4px; left: 4px;
  background: var(--gold); color: #fff;
  font-size: .58rem; font-weight: 700; letter-spacing: .06em;
  padding: 2px 5px; border-radius: 3px;
}
.thumb-item .rm {
  position: absolute; top: -7px; right: -7px;
  width: 23px; height: 23px; border-radius: 50%;
  background: var(--danger); color: #fff; border: 2px solid #fff;
  font-size: .68rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.thumb-item.uploading { display: flex; align-items: center; justify-content: center; height: 105px; background: #ECE7DE; border-radius: var(--radius-sm); color: var(--metal); }

/* Renk ekleyici */
.color-editor { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.color-tag {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .3rem .6rem .3rem .35rem;
  background: #F5F1EA; border: 1px solid var(--greige-border);
  border-radius: 50px; font-size: .8rem; font-weight: 600;
}
.color-tag .dot { width: 15px; height: 15px; border-radius: 50%; border: 1px solid rgba(0,0,0,.15); }
.color-tag button { background: none; border: none; cursor: pointer; color: var(--metal); font-size: .72rem; padding: 0 2px; }
.color-tag button:hover { color: var(--danger); }

.checkbox-line { display: flex; align-items: center; gap: .6rem; font-size: .9rem; cursor: pointer; padding: .35rem 0; }
.checkbox-line input { width: 17px; height: 17px; accent-color: var(--gold); cursor: pointer; }

.form-actions {
  display: flex; gap: .75rem; justify-content: flex-end;
  padding-top: 1.25rem; margin-top: 1.25rem;
  border-top: 1px solid var(--greige-border); flex-wrap: wrap;
}

.order-card {
  border: 1px solid var(--greige-border); border-radius: var(--radius-sm);
  padding: 1rem; margin-bottom: .85rem; background: #FAF8F4;
}
.order-card-head { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; flex-wrap: wrap; margin-bottom: .6rem; }
.order-card-head strong { font-size: .95rem; }
.order-card .oc-meta { font-size: .8rem; color: var(--metal); }
.order-card ul { list-style: none; font-size: .84rem; margin: .5rem 0; }
.order-card li { padding: .2rem 0; color: var(--ink-soft); }

/* ==========================================================================
   9. MOBİL
   ========================================================================== */
@media (max-width: 900px) {
  .pd-grid { grid-template-columns: 1fr; }
  .pd-main { aspect-ratio: 1/1; }
}

@media (max-width: 768px) {
  .filter-bar { top: 75px; }
  .filter-inner { flex-direction: column; align-items: stretch; }
  .filter-bar .select { width: 100%; }
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); gap: .85rem; }
  .pc-body { padding: .7rem .75rem .8rem; }
  .pc-name { font-size: .92rem; }
  .pc-price { font-size: 1.05rem; }
  .pc-add { width: 36px; height: 36px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .drawer { width: 100%; }
  .whatsapp-float-btn { bottom: 88px; }
  /* Bildirim, mobil sepet çubuğunun üstünde kalsın (üst üste biniyordu) */
  .toast-stack { bottom: 84px; }
  .admin-table thead { display: none; }
  .admin-table tr { display: block; border: 1px solid var(--greige-border); border-radius: var(--radius-sm); margin-bottom: .75rem; padding: .5rem; }
  .admin-table td { display: flex; justify-content: space-between; align-items: center; gap: 1rem; border: none; padding: .4rem .3rem; }
  .admin-table td::before { content: attr(data-label); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--metal); font-weight: 700; }
  .admin-table td:first-child::before { display: none; }
  .t-actions { justify-content: flex-end; }
  .form-actions .btn { flex: 1; }
}

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

/* ==========================================================================
   10. DURUM ROZETLERİ  (config.js > catalog.statuses ile yönetilir)
   ========================================================================== */
.pc-badge {
  position: absolute;
  top: 10px; left: 10px;
  z-index: 2;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: #fff;
  line-height: 1.25;
  box-shadow: 0 2px 8px rgba(26,25,24,.22);
  backdrop-filter: blur(4px);
}
.pc-badge em {
  font-style: normal;
  font-size: .58rem;
  font-weight: 600;
  letter-spacing: .03em;
  opacity: .85;
  text-transform: none;
}
.pc-badge.tone-green { background: rgba(21,128,61,.94); }
.pc-badge.tone-blue  { background: rgba(30,64,175,.94); }
.pc-badge.tone-gold  { background: rgba(158,123,59,.95); }
.pc-badge.tone-out   { background: rgba(185,28,28,.94); }

/* Rozet varken model kodu sağ alta kayar, üst üste binmesin */
.pc-badge ~ .pc-code {
  top: auto; left: 10px; bottom: 10px;
}

.pill-green { background: #DCFCE7; color: #166534; }
.pill-blue  { background: #DBEAFE; color: #1E40AF; }
.pill-gold  { background: #F5EAD5; color: #7A5C24; }

.status-preview {
  display: flex; align-items: center; gap: .6rem;
  margin-top: .75rem; flex-wrap: wrap;
}
.status-preview:empty { display: none; }

/* ==========================================================================
   11. SAĞ ALT KÖŞE — TEKLİF LİSTESİ DÜĞMESİ
   ========================================================================== */
.teklif-fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 8500;
  display: none;
  align-items: center;
  gap: .6rem;
  padding: .85rem 1.35rem .85rem 1.15rem;
  background: var(--ink);
  color: #fff;
  border: 1px solid rgba(196,167,114,.35);
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: .92rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 26px rgba(26,25,24,.3);
  transition: var(--transition);
}
.teklif-fab.show { display: inline-flex; }
.teklif-fab:hover { background: #2A2826; transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.teklif-fab i { color: var(--gold); font-size: 1.05rem; }
.teklif-fab .fab-count {
  min-width: 24px; height: 24px; padding: 0 7px;
  background: var(--line-strong); color: var(--ink);
  border-radius: 20px;
  font-size: .76rem; font-weight: 700;
  font-variant-numeric: tabular-nums;
  display: inline-flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.teklif-fab.has-items .fab-count { background: var(--gold); color: #fff; }
.teklif-fab.has-items { animation: fabPulse .4s ease; }
@keyframes fabPulse { 50% { transform: scale(1.05); } }

/* Teklif düğmesi varken WhatsApp balonu yukarı çıksın */
body:has(.teklif-fab.show) .whatsapp-float-btn { bottom: 92px; }

/* ==========================================================================
   12. FOTOĞRAF YÜKLEME İLERLEME ÇUBUĞU
   ========================================================================== */
.upload-progress {
  margin-top: .9rem;
  padding: .8rem 1rem;
  background: #FAF8F4;
  border: 1px solid var(--greige-border);
  border-radius: var(--radius-sm);
}
.up-head {
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; margin-bottom: .55rem;
  font-size: .82rem; font-weight: 600; color: var(--ink-soft);
}
.up-head span:last-child {
  font-variant-numeric: tabular-nums;
  color: var(--gold); font-weight: 700;
}
.up-track {
  height: 7px; background: #E6DFD2;
  border-radius: 10px; overflow: hidden;
}
.up-fill {
  height: 100%; width: 0;
  background: linear-gradient(90deg, #DFCA9E, var(--gold));
  border-radius: 10px;
  transition: width .25s ease;
}

.drop-zone.busy { pointer-events: none; opacity: .6; }

.thumb-item.is-pending img { filter: grayscale(.5) brightness(.85); }
.thumb-item .pending-veil {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(244,241,235,.55);
  border-radius: var(--radius-sm);
  color: var(--gold); font-size: 1.2rem;
}

/* ==========================================================================
   13. PWA — "UYGULAMA OLARAK YÜKLE" ŞERİDİ
   ========================================================================== */
.pwa-prompt {
  position: fixed;
  left: 12px; right: 12px; bottom: 12px;
  z-index: 9500;
  display: none;
  align-items: center;
  gap: .85rem;
  padding: .85rem 1rem;
  background: var(--greige-card);
  border: 1px solid var(--greige-border);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  max-width: 460px;
  margin: 0 auto;
  animation: barUp .35s cubic-bezier(.2,.9,.3,1.2);
}
.pwa-prompt.show { display: flex; }
.pwa-prompt img { width: 40px; height: 40px; border-radius: 9px; flex: 0 0 auto; }
.pwa-prompt .pp-text { flex: 1; min-width: 0; }
.pwa-prompt strong { display: block; font-size: .89rem; }
.pwa-prompt small { color: var(--metal); font-size: .77rem; line-height: 1.4; }
.pwa-prompt .pp-close {
  background: none; border: none; color: var(--metal);
  cursor: pointer; font-size: .95rem; padding: 6px; flex: 0 0 auto;
}
.pwa-prompt .pp-close:hover { color: var(--ink); }

@media (max-width: 768px) {
  .teklif-fab { bottom: 16px; right: 16px; padding: .75rem 1.1rem .75rem 1rem; font-size: .86rem; }
  .teklif-fab .fab-label { display: none; }
  body:has(.teklif-fab.show) .whatsapp-float-btn { bottom: 82px; }
}
