/* ===================================================================
   Melisa Gold · Yönetim Paneli
   Sol menülü düzen. Palet: kadife bordo, antika altın, kum beji.
   =================================================================== */

:root {
  --ink:         #16110f;
  --ink-2:       #241c19;
  --ink-soft:    #3a2f29;
  --velvet:      #4e1620;
  --velvet-deep: #340e15;
  --gold:        #b08a3e;
  --gold-soft:   #d9be86;
  --sand:        #eeeae2;
  --paper:       #ffffff;
  --line:        #e2dbcd;
  --line-soft:   #efe9dd;
  --muted:       #7c7067;
  --danger:      #9b2c1f;
  --ok:          #3f6b46;

  --side-w: 258px;
  --head-h: 68px;
  --radius: 4px;
  --shadow: 0 1px 2px rgba(22, 17, 15, .05), 0 10px 30px rgba(22, 17, 15, .06);

  --display: "Cormorant Garamond", Georgia, serif;
  --ui: "Jost", "Segoe UI", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--ui);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--sand);
}

a { color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.ico { width: 19px; height: 19px; flex: none; }

.skip {
  position: absolute; left: -9999px;
  background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 60;
}
.skip:focus { left: 1rem; top: 1rem; }

.eyebrow {
  display: block;
  font-size: 11px; font-weight: 500; letter-spacing: .22em;
  text-transform: uppercase; color: var(--gold); margin-bottom: .3rem;
}
.muted { color: var(--muted); }
.ta-right { text-align: right; }
.nowrap { white-space: nowrap; }
code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: .88em; background: var(--line-soft);
  padding: .1rem .35rem; border-radius: 3px;
}

/* ===================================================================
   SOL MENÜ
   =================================================================== */
.shell { min-height: 100vh; }

.side {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--side-w);
  display: flex;
  flex-direction: column;
  background: var(--ink);
  border-right: 1px solid rgba(217, 190, 134, .16);
  z-index: 40;
}

.side__top {
  height: var(--head-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.1rem;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.side__brand img {
  height: 26px; width: auto; display: block;
  filter: invert(1) brightness(1.7);
}
.side__close {
  display: none;
  background: none; border: 0; padding: .3rem;
  color: rgba(255, 255, 255, .7); cursor: pointer;
}

.side__nav {
  flex: 1;
  overflow-y: auto;
  padding: 1rem .75rem 1.5rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.18) transparent;
}
.side__nav::-webkit-scrollbar { width: 6px; }
.side__nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,.16); border-radius: 3px; }

.side__label {
  margin: 1.4rem .75rem .5rem;
  font-size: 10px; font-weight: 500; letter-spacing: .2em;
  text-transform: uppercase; color: rgba(217, 190, 134, .55);
}
.side__list { list-style: none; margin: 0; padding: 0; }

.side__link {
  display: flex; align-items: center; gap: .7rem;
  padding: .58rem .75rem;
  margin-bottom: 1px;
  font-size: 14px;
  text-decoration: none;
  color: rgba(255, 255, 255, .72);
  border-radius: var(--radius);
  border-left: 2px solid transparent;
  transition: background .15s ease, color .15s ease;
}
.side__link:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.side__link .ico { color: rgba(217, 190, 134, .65); }
.side__link:hover .ico { color: var(--gold-soft); }

.side__link.is-active {
  background: rgba(176, 138, 62, .16);
  border-left-color: var(--gold);
  color: #fff;
  font-weight: 500;
}
.side__link.is-active .ico { color: var(--gold-soft); }

.side__foot {
  display: flex; align-items: center; gap: .5rem;
  padding: .75rem;
  border-top: 1px solid rgba(255, 255, 255, .07);
}
.mini {
  flex: 1; min-width: 0;
  display: flex; align-items: center; gap: .6rem;
  padding: .4rem; border-radius: var(--radius);
  text-decoration: none; color: #fff;
}
.mini:hover { background: rgba(255, 255, 255, .06); }
.mini__avatar {
  width: 34px; height: 34px; flex: none;
  display: grid; place-items: center;
  font-size: 12px; font-weight: 500; letter-spacing: .04em;
  color: var(--gold-soft);
  background: rgba(176, 138, 62, .18);
  border: 1px solid rgba(217, 190, 134, .3);
  border-radius: 50%;
}
.mini__text { min-width: 0; line-height: 1.2; }
.mini__text strong {
  display: block; font-size: 13px; font-weight: 500;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.mini__text small {
  font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold);
}
.mini__out {
  display: grid; place-items: center;
  width: 34px; height: 34px; flex: none;
  color: rgba(255, 255, 255, .6);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--radius);
}
.mini__out:hover { color: #fff; background: rgba(255, 255, 255, .08); }

.backdrop {
  position: fixed; inset: 0; z-index: 35;
  background: rgba(22, 17, 15, .45);
}

/* ===================================================================
   ÜST BAR + İÇERİK
   =================================================================== */
.main {
  margin-left: var(--side-w);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.head {
  position: sticky; top: 0; z-index: 30;
  height: var(--head-h);
  display: flex; align-items: center; gap: 1rem;
  padding: 0 1.75rem;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.head__burger {
  display: none;
  background: none; border: 1px solid var(--line); border-radius: var(--radius);
  padding: .4rem; color: var(--ink); cursor: pointer;
}
.head__titles { min-width: 0; }
.head__title {
  font-family: var(--display);
  font-size: 1.5rem; font-weight: 600; line-height: 1.15;
  margin: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.crumbs {
  display: flex; flex-wrap: wrap; gap: .35rem;
  font-size: 12px; color: var(--muted);
}
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--gold); }

.head__right {
  margin-left: auto;
  display: flex; align-items: center; gap: .75rem;
}
.head__date {
  font-size: 12px; letter-spacing: .1em; color: var(--muted);
  padding-left: .75rem; border-left: 1px solid var(--line);
}

.content { flex: 1; padding: 1.75rem; }

.foot {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: 1.1rem 1.75rem;
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

@media (max-width: 1024px) {
  .side {
    transform: translateX(-100%);
    transition: transform .22s ease;
  }
  body.menu-open .side { transform: none; }
  .side__close { display: block; }
  .main { margin-left: 0; }
  .head__burger { display: grid; place-items: center; }
  .content { padding: 1.25rem; }
  .head { padding: 0 1.25rem; }
  .head__date { display: none; }
}

/* ===================================================================
   İÇERİK BİLEŞENLERİ
   =================================================================== */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 1.25rem;
  overflow: hidden;
}
.card--pad { padding: 1.4rem; }

.card__head {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem 1.4rem;
  border-bottom: 1px solid var(--line-soft);
}
.card__head--flat { padding: 0 0 .9rem; border-bottom: 1px solid var(--line-soft); margin-bottom: 1rem; }
.card__head h2 {
  font-family: var(--display);
  font-size: 1.25rem; font-weight: 600; margin: 0;
}
.card__title { font-family: var(--display); font-size: 1.25rem; font-weight: 600; margin: 0 0 1rem; }

.sectiontitle { display: flex; align-items: baseline; gap: .75rem; margin: 0 0 .9rem; }
.sectiontitle h2 { font-family: var(--display); font-size: 1.3rem; margin: 0; }
.sectiontitle span { font-size: 12px; color: var(--muted); }

.lead { max-width: 62ch; color: var(--ink-soft); margin: 0 0 1.25rem; }

/* karşılama bandı */
.welcome {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  flex-wrap: wrap;
  padding: 1.4rem 1.6rem;
  margin-bottom: 1.25rem;
  color: #fff;
  border-radius: var(--radius);
  background:
    radial-gradient(120% 140% at 12% 0%, rgba(255, 226, 176, .18), transparent 55%),
    linear-gradient(120deg, var(--velvet) 0%, var(--velvet-deep) 100%);
  box-shadow: inset 0 0 0 1px rgba(217, 190, 134, .25);
}
.welcome .eyebrow { color: var(--gold-soft); }
.welcome__title { font-family: var(--display); font-size: 2rem; margin: 0 0 .3rem; }
.welcome__text { margin: 0; max-width: 56ch; font-size: 14px; color: rgba(255, 255, 255, .8); }
.welcome__meta { text-align: right; font-size: 13px; }
.welcome__meta span { display: block; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-soft); }

/* istatistik kartları */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}
.statcard {
  position: relative;
  padding: 1.25rem 1.35rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.statcard__icon {
  position: absolute; top: 1.1rem; right: 1.1rem;
  display: grid; place-items: center;
  width: 34px; height: 34px;
  color: var(--gold);
  background: rgba(176, 138, 62, .1);
  border-radius: 50%;
}
.statcard__label {
  display: block; font-size: 11px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--muted); margin-bottom: .5rem;
}
.statcard__value { display: block; font-family: var(--display); font-size: 2.3rem; line-height: 1; font-weight: 600; }
.statcard__of { font-size: 1.1rem; color: var(--muted); }
.statcard__foot { display: block; margin-top: .5rem; font-size: 12px; color: var(--muted); }

/* iki kolon */
.cols { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 1.25rem; }
@media (max-width: 980px) { .cols { grid-template-columns: 1fr; } }

/* çubuk grafik */
.bars { list-style: none; margin: 0; padding: 0; }
.bar { display: grid; grid-template-columns: 6.5rem 1fr 1.75rem; align-items: center; gap: .6rem; margin-bottom: .6rem; font-size: 13px; }
.bar__track { height: 7px; background: var(--line-soft); border-radius: 4px; overflow: hidden; }
.bar__fill { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--velvet)); }
.bar__value { text-align: right; color: var(--muted); font-size: 12px; }

/* etiket rozetleri */
.chips { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1rem; }
.chip {
  display: inline-block; padding: .35rem .75rem;
  font-size: 13px; text-decoration: none;
  border: 1px solid var(--line); border-radius: 999px;
  transition: background .15s ease, border-color .15s ease;
}
.chip:hover { background: var(--ink); border-color: var(--ink); color: #fff; }

/* zaman çizelgesi */
.timeline { list-style: none; margin: 0 0 .9rem; padding: 0; }
.timeline__item {
  display: flex; gap: .9rem; padding: .5rem 0;
  border-bottom: 1px dotted var(--line); font-size: 13.5px;
}
.timeline__item:last-child { border-bottom: 0; }
.timeline__time { color: var(--muted); font-size: 12px; white-space: nowrap; min-width: 96px; }

/* boş durum */
.empty { text-align: center; padding: 3rem 1.5rem; }
.empty__icon {
  display: grid; place-items: center;
  width: 56px; height: 56px; margin: 0 auto 1rem;
  color: var(--gold);
  background: rgba(176, 138, 62, .1);
  border-radius: 50%;
}
.empty__icon .ico { width: 26px; height: 26px; }
.empty__title { font-family: var(--display); font-size: 1.5rem; margin: 0 0 .5rem; }
.empty__text { max-width: 52ch; margin: 0 auto 1rem; color: var(--ink-soft); }
.empty__hint { font-size: 13px; color: var(--muted); }

/* ===================================================================
   TABLO
   =================================================================== */
.tablewrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th {
  text-align: left; padding: .75rem 1.4rem;
  font-size: 11px; font-weight: 500; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted);
  background: #faf7f1; border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.table td { padding: .8rem 1.4rem; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: #fdfbf7; }
.table .sub { display: block; font-size: 12px; color: var(--muted); }

.tag {
  display: inline-block; padding: .16rem .5rem;
  font-size: 11px; letter-spacing: .07em; text-transform: uppercase;
  color: var(--ink-soft); background: var(--line-soft); border-radius: 999px;
}
.tag--gold { color: #5c4415; background: rgba(176, 138, 62, .18); }

.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: .4rem; vertical-align: middle; }
.dot--on { background: var(--ok); }
.dot--off { background: #c3b9ab; }

.pager { display: flex; flex-wrap: wrap; gap: .35rem; }
.pager__link {
  padding: .35rem .7rem; font-size: 13px; text-decoration: none;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
}
.pager__link.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ===================================================================
   FORM
   =================================================================== */
.field { display: block; margin-bottom: 1rem; }
.field__label {
  display: block; font-size: 12px; font-weight: 500; letter-spacing: .09em;
  text-transform: uppercase; color: var(--ink-soft); margin-bottom: .35rem;
}
.input {
  width: 100%; padding: .65rem .8rem;
  font-family: var(--ui); font-size: 15px; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.input:hover { border-color: #cdc2ae; }
.input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(176, 138, 62, .14); outline: none; }
select.input { appearance: none; padding-right: 2rem; }

.check { display: flex; align-items: center; gap: .55rem; margin-bottom: .45rem; font-size: 14px; cursor: pointer; }
.check input { accent-color: var(--velvet); width: 16px; height: 16px; }
.check input:disabled + span { color: var(--muted); }

.form--grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1.25rem; }
.field--full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form--grid { grid-template-columns: 1fr; } }

.btn {
  display: inline-block; padding: .58rem 1.1rem;
  font-family: var(--ui); font-size: 12px; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase; text-decoration: none;
  color: var(--ink); background: transparent;
  border: 1px solid var(--ink); border-radius: var(--radius); cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.btn:hover { background: var(--ink); color: #fff; }
.btn--primary { background: var(--velvet); border-color: var(--velvet); color: #fff; box-shadow: inset 0 0 0 1px rgba(217, 190, 134, .25); }
.btn--primary:hover { background: var(--velvet-deep); border-color: var(--velvet-deep); }
.btn--ghost { border-color: var(--line); color: var(--ink-soft); }
.btn--ghost:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn--danger { border-color: rgba(155, 44, 31, .4); color: var(--danger); }
.btn--danger:hover { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn--sm { padding: .35rem .7rem; font-size: 11px; }
.btn--block { display: block; width: 100%; padding: .8rem; }
.inline { display: inline-block; margin: 0; }

/* roller ekranı */
.role__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.notice {
  padding: .6rem .85rem; font-size: 13px; color: #5c4415;
  background: rgba(176, 138, 62, .12); border-left: 2px solid var(--gold); margin: 0 0 1rem;
}
.permgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); gap: 1rem; margin: 1rem 0 1.25rem; }
.permgroup { border: 1px solid var(--line); border-radius: var(--radius); padding: .8rem 1rem 1rem; margin: 0; }
.permgroup legend {
  padding: 0 .4rem; font-size: 10px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--gold);
}

/* bildirimler */
.alert {
  padding: .7rem 1rem; margin-bottom: 1.1rem; font-size: 14px;
  background: var(--paper); border: 1px solid var(--line);
  border-left-width: 3px; border-radius: var(--radius);
}
.alert--success { border-left-color: var(--ok); }
.alert--error { border-left-color: var(--danger); color: #6d2018; background: #fdf3f1; }
.alert--info { border-left-color: var(--gold); }

/* ===================================================================
   GİRİŞ EKRANI
   =================================================================== */
body.login { background: var(--paper); }
.login__grid { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; }

.login__velvet {
  position: relative;
  display: grid; place-items: center; padding: 3rem;
  background:
    radial-gradient(120% 80% at 25% 15%, rgba(255, 226, 176, .16), transparent 60%),
    repeating-linear-gradient(102deg, rgba(0,0,0,.14) 0 2px, rgba(255,255,255,.02) 2px 5px),
    linear-gradient(160deg, var(--velvet) 0%, var(--velvet-deep) 100%);
}
.velvet__frame {
  position: relative; text-align: center;
  padding: 4rem 3.5rem; color: var(--gold-soft);
  border: 1px solid rgba(217, 190, 134, .45);
}
.velvet__frame::before, .velvet__frame::after {
  content: ""; position: absolute; inset: 8px;
  border: 1px solid rgba(217, 190, 134, .18); pointer-events: none;
}
.velvet__frame::after { inset: 14px; border-color: rgba(217, 190, 134, .08); }
.velvet__mark {
  font-family: var(--display); font-size: clamp(3.5rem, 7vw, 6rem);
  line-height: .9; margin: 0 0 1.25rem; letter-spacing: -.02em;
}
.velvet__mark span { font-style: italic; opacity: .75; }
.velvet__line { font-family: var(--display); font-size: 1.6rem; margin: 0; letter-spacing: .04em; }
.velvet__sub { margin: .35rem 0 0; font-size: 11px; letter-spacing: .3em; text-transform: uppercase; opacity: .7; }

.login__panel { display: grid; place-items: center; padding: 3rem 1.5rem; background: var(--paper); }
.login__box { width: min(380px, 100%); }
.login__logo { display: block; width: 190px; max-width: 70%; height: auto; margin: 0 0 2.5rem; }
.login__title { font-family: var(--display); font-weight: 600; font-size: 2.1rem; line-height: 1.15; margin: 0 0 1.6rem; }
.login__note { margin-top: 1.4rem; font-size: 13px; color: var(--muted); }

@media (max-width: 880px) {
  .login__grid { grid-template-columns: 1fr; }
  .login__velvet { padding: 2rem 1.5rem; min-height: 180px; }
  .velvet__frame { padding: 1.6rem 2.4rem; }
  .velvet__mark { font-size: 2.6rem; margin-bottom: .5rem; }
  .velvet__line { font-size: 1.15rem; }
  .login__logo { margin-bottom: 1.75rem; }
}

/* kurulum / güncelleme gibi tek kutulu sayfalar */
body.plain { display: grid; place-items: start center; padding: 3rem 1.25rem; }
.plain__box { width: min(560px, 100%); }
.plain__title { font-family: var(--display); font-size: 2rem; font-weight: 600; margin: 0 0 1rem; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* ===================================================================
   MAĞAZA MENÜSÜ (açılır bölüm)
   =================================================================== */
.group { margin: 1.1rem 0 .3rem; }
.group[open] .group__chev { transform: rotate(90deg); }

.group__head {
  display: flex; align-items: center; gap: .55rem;
  padding: .45rem .75rem;
  list-style: none; cursor: pointer;
  font-size: 11px; font-weight: 500; letter-spacing: .14em;
  text-transform: uppercase; color: rgba(217, 190, 134, .78);
  border-radius: var(--radius);
}
.group__head::-webkit-details-marker { display: none; }
.group__head:hover { background: rgba(255, 255, 255, .05); color: var(--gold-soft); }
.group__dot {
  width: 5px; height: 5px; flex: none; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 0 3px rgba(176, 138, 62, .18);
}
.group__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.group__chev { display: flex; transition: transform .18s ease; }
.group__chev .ico { width: 13px; height: 13px; }

.side__list--sub { margin: .2rem 0 .2rem .35rem; padding-left: .55rem; border-left: 1px solid rgba(255, 255, 255, .09); }
.side__list--sub .side__link { font-size: 13px; padding: .48rem .65rem; }

/* ===================================================================
   MAĞAZA ÇUBUĞU VE FİLTRE
   =================================================================== */
.shopbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
  padding: .85rem 1.1rem; margin-bottom: 1.1rem;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
}
.shopbar__id { display: flex; align-items: center; gap: .7rem; }
.shopbar__id strong { display: block; font-size: 14px; }
.shopbar__id small { color: var(--muted); font-size: 12px; }
.shopbar__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 0 4px rgba(176, 138, 62, .16);
}

.segmented { display: flex; flex-wrap: wrap; gap: 2px; padding: 3px; background: var(--line-soft); border-radius: var(--radius); }
.segmented__item {
  padding: .35rem .8rem; font-size: 13px; text-decoration: none;
  color: var(--ink-soft); border-radius: 3px;
}
.segmented__item b { font-weight: 500; color: var(--muted); font-size: 11px; }
.segmented__item:hover { background: rgba(255, 255, 255, .7); }
.segmented__item.is-on { background: var(--ink); color: #fff; }
.segmented__item.is-on b { color: var(--gold-soft); }

.searchbar { display: flex; gap: .5rem; align-items: center; margin-bottom: 1.1rem; position: relative; }
.searchbar .input { padding-left: 2.3rem; }
.searchbar__ico {
  position: absolute; left: .7rem; top: 50%; transform: translateY(-50%);
  color: var(--muted); pointer-events: none; display: flex;
}

/* ===================================================================
   ÜRÜN KARTLARI
   =================================================================== */
.prodgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 1.1rem; }

.prod {
  display: flex; flex-direction: column;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  transition: border-color .15s ease, transform .15s ease;
}
.prod:hover { border-color: var(--gold); transform: translateY(-2px); }

.prod__media { position: relative; display: block; aspect-ratio: 1; background: #f6f2ea; }
.prod__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.prod__noimg { position: absolute; inset: 0; display: grid; place-items: center; color: #c9bda9; }
.prod__noimg .ico { width: 30px; height: 30px; }

.pill {
  position: absolute; top: .55rem; left: .55rem;
  padding: .15rem .5rem; font-size: 10px; letter-spacing: .1em;
  text-transform: uppercase; border-radius: 999px;
  background: rgba(255, 255, 255, .94); color: var(--ink-soft);
}
.pill--active { color: #2c5233; box-shadow: inset 0 0 0 1px rgba(63, 107, 70, .35); }
.pill--draft { color: #7a5c12; box-shadow: inset 0 0 0 1px rgba(176, 138, 62, .4); }
.pill--archived { color: #6b625a; box-shadow: inset 0 0 0 1px rgba(124, 112, 103, .3); }

.prod__body { display: flex; flex-direction: column; gap: .35rem; padding: .8rem .9rem 1rem; flex: 1; }
.prod__title { font-size: 14px; font-weight: 500; text-decoration: none; line-height: 1.35; }
.prod__title:hover { color: var(--velvet); }
.prod__meta { margin: 0; font-size: 12px; color: var(--muted); }
.prod__row { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; margin-top: auto; padding-top: .4rem; }
.prod__price { font-family: var(--display); font-size: 1.25rem; font-weight: 600; }
.prod__price small { font-family: var(--ui); font-size: 11px; color: var(--muted); margin-left: .25rem; }
.prod__stock { font-size: 12px; color: var(--muted); }
.prod__stock.is-out { color: var(--danger); }
.prod__actions { display: flex; gap: .35rem; flex-wrap: wrap; margin-top: .6rem; }

.loadmore { display: flex; justify-content: center; gap: .5rem; margin: 1.5rem 0; }

/* ===================================================================
   ÜRÜN DÜZENLEME
   =================================================================== */
.editor { display: grid; grid-template-columns: minmax(0, 1.85fr) minmax(0, 1fr); gap: 1.25rem; align-items: start; }
@media (max-width: 1050px) { .editor { grid-template-columns: 1fr; } }
.editor__side { position: sticky; top: calc(var(--head-h) + 1rem); }
@media (max-width: 1050px) { .editor__side { position: static; } }

.input--tall { font-family: ui-monospace, Menlo, monospace; font-size: 13px; line-height: 1.6; resize: vertical; }
.input--sm { padding: .4rem .5rem; font-size: 13px; }
.input--num { text-align: right; font-variant-numeric: tabular-nums; }
.table--tight th, .table--tight td { padding: .5rem .7rem; }
.mono { font-family: ui-monospace, Menlo, monospace; font-size: .92em; }
.strong { font-weight: 500; }

.facts { margin: 1.25rem 0 0; padding-top: 1rem; border-top: 1px solid var(--line-soft); font-size: 13px; }
.facts > div { display: flex; justify-content: space-between; gap: 1rem; padding: .28rem 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; text-align: right; }

.media { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: .6rem; margin-bottom: 1rem; }
.media__item { position: relative; margin: 0; aspect-ratio: 1; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.media__item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.media__del {
  position: absolute; top: 4px; right: 4px;
  display: grid; place-items: center; width: 26px; height: 26px;
  background: rgba(255, 255, 255, .92); border: 1px solid var(--line);
  border-radius: var(--radius); color: var(--danger); cursor: pointer;
}
.media__del:hover { background: var(--danger); color: #fff; border-color: var(--danger); }
.media__del .ico { width: 14px; height: 14px; }

.mediaadd { display: grid; grid-template-columns: 2fr 1.4fr auto; gap: .5rem; }
@media (max-width: 720px) { .mediaadd { grid-template-columns: 1fr; } }

.collections { max-height: 260px; overflow-y: auto; padding-right: .4rem; }
.hint { margin: .7rem 0 0; font-size: 12px; color: var(--muted); }

/* ===================================================================
   TOPLU FİYAT
   =================================================================== */
.fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: .8rem 1rem 1rem; margin: 0 0 1.1rem; }
.fieldset legend { padding: 0 .4rem; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.pickrow { display: flex; flex-wrap: wrap; gap: .5rem; }
.pick { display: flex; align-items: center; gap: .45rem; padding: .4rem .75rem; font-size: 13px; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; }
.pick:hover { border-color: var(--gold); }
.pick input { accent-color: var(--velvet); }
.pick b { font-weight: 500; color: var(--muted); font-size: 11px; }

.btnrow { display: flex; gap: .5rem; flex-wrap: wrap; }
.notes { margin: 0; padding-left: 1.1rem; font-size: 13px; color: var(--ink-soft); }
.notes li { margin-bottom: .45rem; }

.progress { margin-bottom: 1rem; }
.progress__bar { height: 6px; background: var(--line-soft); border-radius: 4px; overflow: hidden; }
.progress__bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold), var(--velvet)); transition: width .3s ease; }
.progress__text { margin: .5rem 0 0; font-size: 13px; color: var(--muted); }

/* bildirim baloncuğu */
.toast {
  position: sticky; top: calc(var(--head-h) + .5rem); z-index: 25;
  margin-bottom: 1rem; padding: .7rem 1rem;
  font-size: 14px; background: var(--paper);
  border: 1px solid var(--line); border-left-width: 3px; border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.toast--ok { border-left-color: var(--ok); }
.toast--error { border-left-color: var(--danger); color: #6d2018; }

.shoplist { display: grid; gap: .6rem; }
.shopline {
  display: flex; align-items: center; gap: .75rem; flex-wrap: wrap;
  padding: .75rem .9rem; border: 1px solid var(--line); border-radius: var(--radius);
}
.shopline__dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.shopline__dot.is-on { background: var(--ok); box-shadow: 0 0 0 4px rgba(63, 107, 70, .14); }
.shopline__dot.is-off { background: #c3b9ab; box-shadow: 0 0 0 4px rgba(124, 112, 103, .12); }
.shopline__id { flex: 1; min-width: 140px; }
.shopline__id strong { display: block; font-size: 14px; }
.shopline__id small { color: var(--muted); font-size: 12px; }
.shopline__go { display: flex; gap: .3rem; flex-wrap: wrap; }

/* ===================================================================
   METİN EDİTÖRÜ
   =================================================================== */
.rte { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; }
.rte:focus-within { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(176, 138, 62, .14); }

.rte__bar {
  display: flex; align-items: center; gap: 2px; flex-wrap: wrap;
  padding: .35rem .4rem; background: #faf7f1; border-bottom: 1px solid var(--line-soft);
}
.rte__btn {
  min-width: 30px; height: 28px; padding: 0 .45rem;
  font: inherit; font-size: 13px; line-height: 1;
  color: var(--ink-soft); background: transparent;
  border: 1px solid transparent; border-radius: 3px; cursor: pointer;
}
.rte__btn:hover { background: #fff; border-color: var(--line); color: var(--ink); }
.rte__btn--code { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.rte__btn--code.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }
.rte__sep { width: 1px; height: 18px; margin: 0 .25rem; background: var(--line); }
.rte__spacer { flex: 1; }

.rte__area { min-height: 220px; padding: .9rem 1rem; font-size: 15px; line-height: 1.7; outline: none; }
.rte__area:empty::before { content: "Ürün açıklamasını buraya yaz…"; color: var(--muted); }
.rte__area h2 { font-family: var(--display); font-size: 1.35rem; margin: 1rem 0 .5rem; }
.rte__area h3 { font-family: var(--display); font-size: 1.15rem; margin: .9rem 0 .4rem; }
.rte__area p { margin: 0 0 .8rem; }
.rte__area ul, .rte__area ol { margin: 0 0 .8rem; padding-left: 1.3rem; }
.rte__area a { color: var(--velvet); }
.rte__source { border: 0 !important; border-radius: 0 !important; min-height: 220px; }
.rte__source:focus { box-shadow: none !important; }

/* ===================================================================
   SEO ÖNİZLEME
   =================================================================== */
.serp {
  display: block; padding: .8rem .9rem; margin-bottom: 1rem;
  background: #faf8f3; border: 1px solid var(--line-soft); border-radius: var(--radius);
}
.serp__url { display: block; font-size: 12px; color: #5f6368; margin-bottom: .15rem; word-break: break-all; }
.serp__title { display: block; font-size: 17px; line-height: 1.3; color: #1a0dab; margin-bottom: .15rem; }
.serp__desc { display: block; font-size: 13px; line-height: 1.5; color: #4d5156; }
.seoauto { margin-bottom: .9rem; }

.counter { font-size: 10px; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--muted); float: right; }
.counter.is-over { color: var(--danger); }

/* ===================================================================
   ÇOKLU KATEGORİ
   =================================================================== */
.chipbox { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: .8rem; font-size: 13px; }
.chiptag {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .2rem .3rem .2rem .6rem; font-size: 12px;
  background: rgba(176, 138, 62, .14); border-radius: 999px;
}
.chiptag button {
  width: 17px; height: 17px; display: grid; place-items: center;
  font-size: 13px; line-height: 1; color: var(--ink-soft);
  background: rgba(255, 255, 255, .7); border: 0; border-radius: 50%; cursor: pointer;
}
.chiptag button:hover { background: var(--danger); color: #fff; }

.collsearch { position: relative; margin-bottom: .5rem; }
.collsearch .input { padding-left: 2rem; }
.collsearch__ico { position: absolute; left: .55rem; top: 50%; transform: translateY(-50%); color: var(--muted); display: flex; }
.collsearch__ico .ico { width: 15px; height: 15px; }

/* ===================================================================
   YENİ ÜRÜN EKLEME
   =================================================================== */
.newmeta { display: flex; flex-wrap: wrap; gap: 1rem; font-size: 12px; color: var(--muted); }
.newmeta b { display: block; font-size: 13px; font-weight: 500; color: var(--ink); }

.newrow {
  position: relative; display: flex; gap: 1rem; align-items: stretch;
  padding: 1rem; margin-bottom: .9rem;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
}
.newrow__media { width: 190px; flex: none; }
.newrow__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .5rem; }
.newrow__code { font-family: ui-monospace, Menlo, monospace; font-size: 15px; font-weight: 500; color: var(--gold); }
.newrow__code .tag { margin-left: .4rem; vertical-align: 2px; }
.newrow__seo { margin: 0; font-size: 12px; color: var(--muted); min-height: 1em; }
.newrow__state { margin: auto 0 0; font-size: 13px; color: var(--muted); }
.newrow__state.is-busy { color: #1565c0; }
.newrow__state.is-ok { color: var(--ok); }
.newrow__state.is-err { color: var(--danger); }
.newrow__rm {
  position: absolute; top: .5rem; right: .6rem;
  font-size: 20px; line-height: 1; color: var(--muted);
  background: none; border: 0; cursor: pointer;
}
.newrow__rm:hover { color: var(--danger); }
@media (max-width: 620px) { .newrow { flex-direction: column; } .newrow__media { width: 100%; } }

.drop {
  display: block; padding: 1.1rem .6rem; text-align: center; cursor: pointer;
  background: #fffdf8; border: 1px dashed var(--gold); border-radius: var(--radius);
  transition: background .15s ease;
}
.drop:hover, .drop.is-over { background: #fdf6e7; }
.drop__ico { display: block; color: var(--gold); margin-bottom: .3rem; }
.drop__ico .ico { width: 22px; height: 22px; }
.drop strong { display: block; font-size: 13px; font-weight: 500; }
.drop small { display: block; font-size: 11px; color: var(--muted); }

.thumbs { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .5rem; }
.thumb { position: relative; width: 54px; height: 54px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb__bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: #1565c0; transition: width .15s ease; }
.thumb.is-done .thumb__bar { width: 100%; background: var(--ok); }
.thumb.is-fail { outline: 2px solid var(--danger); }
.thumb__pct {
  position: absolute; inset: auto 0 6px; text-align: center;
  font-size: 10px; font-weight: 500; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .75);
}
.thumb__rm {
  position: absolute; top: 2px; right: 2px; width: 16px; height: 16px;
  display: grid; place-items: center; font-size: 11px; line-height: 1;
  color: #fff; background: rgba(22, 17, 15, .6); border: 0; border-radius: 50%; cursor: pointer;
}
.thumb__rm:hover { background: var(--danger); }

.summary { margin: .8rem 0 0; font-size: 13px; color: var(--muted); text-align: center; min-height: 1.2em; }

/* ===================================================================
   TOPLU YÜKLEME KAYDI
   =================================================================== */
.drop--wide { padding: 2.2rem 1.5rem; }
.drop--wide .drop__ico .ico { width: 28px; height: 28px; }
.drop--wide strong { font-size: 15px; }

.collections--wide { max-height: 210px; columns: 2; column-gap: 1.5rem; }
@media (max-width: 720px) { .collections--wide { columns: 1; } }

.tally {
  display: flex; flex-wrap: wrap; gap: 1.25rem;
  margin: .75rem 0 1rem;
  font-family: ui-monospace, Menlo, monospace; font-size: 12.5px; color: var(--muted);
}
.tally b { color: var(--ink); font-weight: 500; }
.tally .is-ok b { color: var(--ok); }
.tally .is-err b { color: var(--danger); }

.joblog {
  background: #fdfbf7; border: 1px solid var(--line); border-radius: var(--radius);
  max-height: 460px; overflow: auto;
  font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; line-height: 1.6;
}
.joblog__empty { padding: 1.6rem; margin: 0; text-align: center; color: var(--muted); }

.jobrow {
  display: grid; grid-template-columns: 74px minmax(0, 1fr) auto; gap: .75rem;
  align-items: baseline; padding: .5rem .9rem; border-top: 1px solid var(--line-soft);
}
.jobrow:first-child { border-top: 0; }
.jobrow__no { color: #a99f92; font-size: 12px; }
.jobrow__name { overflow-wrap: anywhere; }
.jobrow__name small { color: var(--muted); }
.jobrow__state { white-space: nowrap; font-size: 12.5px; color: var(--muted); }
.jobrow__note { grid-column: 2 / -1; font-size: 12.5px; margin-top: .1rem; }
.jobrow__note a { color: var(--velvet); margin-right: .6rem; }
.jobrow__note small { color: var(--muted); }
.jobrow__note em { color: var(--danger); font-style: normal; }

.jobrow.is-bekliyor .jobrow__name { color: var(--muted); }
.jobrow.is-yukleniyor { background: #fdf6e7; }
.jobrow.is-yukleniyor .jobrow__state { color: var(--gold); }
.jobrow.is-tamam .jobrow__state { color: var(--ok); }
.jobrow.is-hatali { background: #fdf1ef; }
.jobrow.is-hatali .jobrow__state { color: var(--danger); }
.jobrow.is-hatali .jobrow__note { color: #6d2018; }

.dots::after { content: ''; animation: dots 1.1s steps(4, end) infinite; }
@keyframes dots { 0% { content: ''; } 25% { content: '.'; } 50% { content: '..'; } 75% { content: '...'; } }
@media (prefers-reduced-motion: reduce) { .dots::after { content: '...'; animation: none; } }
