/* Pehnava — one stylesheet, no build step. */
:root {
  --brand: #8e1f55;
  --brand-d: #6d1641;
  --brand-l: #f7e6ee;
  --gold: #c9973a;
  --gold-l: #f6ecd9;
  --bg: #fbf7f2;
  --card: #ffffff;
  --ink: #2a1d24;
  --muted: #7a6a72;
  --line: #eadfd8;
  --ok: #2f7d4f;
  --ok-l: #e3f3e9;
  --info: #3b5c9a;
  --info-l: #e6edf8;
  --warn: #a36a00;
  --warn-l: #fbf0d6;
  --bad: #b3261e;
  --bad-l: #fbe7e5;
  --r: 14px;
  --shadow: 0 1px 2px rgba(60, 20, 40, .06), 0 6px 20px rgba(60, 20, 40, .06);
  --serif: "Playfair Display", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 var(--sans); min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; outline: none; width: 100%; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.2; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
h2 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); }
h3 { font-size: 1.2rem; }
h4 { margin: 1em 0 .4em; font-size: 1rem; }
p { margin: 0 0 .8em; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.row { display: flex; align-items: center; }
.row.wrap, .wrap.row { flex-wrap: wrap; padding: 0; margin: 0; max-width: none; }
.gap { gap: 10px; }
.grow { flex: 1; }
.ok-text { color: var(--ok); }
.loading { padding: 60px 0; text-align: center; color: var(--muted); }
.stack > * + * { margin-top: 18px; }

/* ---------- top bar */
.topbar { position: sticky; top: 0; z-index: 20; background: rgba(251, 247, 242, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.topbar-in { display: flex; align-items: center; gap: 16px; min-height: 64px; flex-wrap: wrap; padding-top: 6px; padding-bottom: 6px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand-name { font-family: var(--serif); font-size: 1.45rem; font-weight: 700; color: var(--brand); display: flex; flex-direction: column; line-height: 1; }
.brand-name small { font-family: var(--sans); font-size: .7rem; color: var(--gold); font-weight: 600; letter-spacing: .08em; margin-top: 3px; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.nav-link { color: var(--ink); padding: 8px 12px; border-radius: 999px; font-weight: 500; font-size: .95rem; display: inline-flex; align-items: center; gap: 6px; }
.nav-link:hover { background: var(--brand-l); text-decoration: none; }
.nav-link.active { color: var(--brand); background: var(--brand-l); }
.dot { background: var(--brand); color: #fff; border-radius: 999px; font-size: .72rem; min-width: 20px; height: 20px; padding: 0 6px; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; }
.nav .btn { margin-left: 6px; }

/* ---------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1.5px solid var(--brand); background: var(--brand); color: #fff; font: 600 .95rem/1 var(--sans); padding: 11px 18px; border-radius: 999px; cursor: pointer; text-decoration: none; white-space: nowrap; transition: background .15s, transform .05s; }
.btn:hover { background: var(--brand-d); border-color: var(--brand-d); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .6; cursor: default; }
.btn.small { padding: 8px 14px; font-size: .875rem; }
.btn.tiny { padding: 5px 10px; font-size: .78rem; }
.btn.big { padding: 14px 24px; font-size: 1.02rem; }
.btn.wide { width: 100%; }
.btn.gold { background: var(--gold); border-color: var(--gold); color: #fff; }
.btn.gold:hover { background: #b0822c; border-color: #b0822c; }
.btn.outline { background: transparent; color: var(--brand); }
.btn.outline:hover { background: var(--brand-l); }
.btn.ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn.ghost:hover { background: #fff; border-color: var(--muted); }
.btn.danger { color: var(--bad); }
.upload { position: relative; overflow: hidden; }
.upload .file { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

/* ---------- hero */
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 30px; align-items: center; padding: 48px 0 24px; }
.eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: .8rem; font-weight: 700; color: var(--gold); margin-bottom: 10px; }
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
.hero h1 em { color: var(--brand); font-style: italic; }
.lead { font-size: 1.12rem; color: #54434b; max-width: 36em; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.hero-art { position: relative; min-height: 300px; display: flex; align-items: center; justify-content: center; }
.hero-blob { position: absolute; inset: 6% 8%; border-radius: 46% 54% 40% 60% / 55% 45% 55% 45%; background: radial-gradient(circle at 30% 30%, var(--gold-l), var(--brand-l)); }
.hero-img { position: relative; width: 100%; max-width: 440px; }

/* ---------- sections, chips, filters */
.section { padding: 26px 0; }
.section-head { display: flex; align-items: baseline; gap: 14px; justify-content: space-between; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 10px; scrollbar-width: thin; }
.chip { border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 999px; padding: 7px 14px; font: 500 .9rem var(--sans); cursor: pointer; white-space: nowrap; }
.chip:hover { border-color: var(--brand); text-decoration: none; }
.chip.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 20px; }
.filters input, .filters select { min-width: 0; }
.filters .grow { flex: 1 1 220px; }
.filters .city { width: 130px; }
input, select, textarea { font: inherit; color: inherit; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; width: 100%; }
.filters input, .filters select { width: auto; }
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(142, 31, 85, .25); border-color: var(--brand); }
input:disabled { background: #f4efea; color: var(--muted); }
textarea { resize: vertical; }

/* ---------- cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.card { background: var(--card); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); color: var(--ink); display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; }
a.card:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(60, 20, 40, .12); text-decoration: none; }
.card-img { position: relative; aspect-ratio: 4 / 5; background: var(--gold-l); display: block; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.tag { position: absolute; top: 10px; left: 10px; background: rgba(255, 255, 255, .92); color: var(--brand); font-size: .72rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; letter-spacing: .03em; }
.tag.bad { color: var(--bad); }
.noimg { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: .9rem; background: repeating-linear-gradient(45deg, var(--gold-l), var(--gold-l) 10px, #fbf4e6 10px, #fbf4e6 20px); }
.noimg.big { aspect-ratio: 4 / 5; border-radius: var(--r); }
.card-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; }
.card-title { font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.price { margin-top: 4px; }
.price strong { font-size: 1.1rem; color: var(--brand); }
.mrp { margin-left: 8px; font-size: .8rem; color: var(--muted); text-decoration: line-through; white-space: nowrap; }
.card.mine .card-body .row { margin-top: 8px; }
.pager { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 26px; }
.empty { text-align: center; padding: 50px 20px; background: #fff; border-radius: var(--r); border: 1px dashed var(--line); }

/* ---------- how it works */
.how { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.how-col { background: #fff; border-radius: var(--r); padding: 24px; box-shadow: var(--shadow); }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.steps li { display: flex; gap: 14px; align-items: flex-start; }
.steps p { margin: 2px 0 0; font-size: .92rem; }
.step-n { flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--brand-l); color: var(--brand); display: flex; align-items: center; justify-content: center; font-weight: 700; }
.plain { padding-left: 1.1em; margin: 0; }
.plain li { margin: 4px 0; }

/* ---------- panels, forms */
.panel { background: #fff; border-radius: var(--r); padding: 22px; box-shadow: var(--shadow); margin-bottom: 18px; }
.narrow { max-width: 720px; margin-left: auto; margin-right: auto; }
.narrow-sm { max-width: 440px; margin: 0 auto; }
.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; min-width: 0; }
.field-label { font-weight: 600; font-size: .9rem; }
.hint { font-size: .8rem; color: var(--muted); display: block; margin: -6px 0 12px; }
.field .hint { margin: 0; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 14px; }
.auth h1 { text-align: center; }
.roles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 10px 0 18px; }
.role-card { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left; border: 2px solid var(--line); background: #fff; border-radius: var(--r); padding: 16px; cursor: pointer; font: inherit; color: inherit; }
.role-card:hover { border-color: var(--gold); }
.role-card.on { border-color: var(--brand); background: var(--brand-l); }
.role-icon { font-size: 1.7rem; }
.checks { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 4px 0 16px; }
.check { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.check input { width: auto; accent-color: var(--brand); }

/* ---------- item page */
.item-page { display: grid; grid-template-columns: 1.05fr 1fr; gap: 32px; padding: 26px 0; align-items: start; }
.gallery { position: sticky; top: 84px; }
.gallery-main { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r); background: var(--gold-l); box-shadow: var(--shadow); }
.thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
.thumb { flex: none; width: 70px; height: 86px; border: 2px solid transparent; border-radius: 10px; padding: 0; overflow: hidden; cursor: pointer; background: none; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.on { border-color: var(--brand); }
.crumbs { margin-bottom: 8px; }
.item-title { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.item-price { font-size: 1.05rem; margin: 10px 0 4px; }
.item-price strong { font-size: 1.7rem; color: var(--brand); font-family: var(--serif); }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; margin: 14px 0; }
.facts dt { color: var(--muted); font-size: .92rem; }
.facts dd { margin: 0; font-weight: 500; }
.facts .total { font-weight: 700; color: var(--ink); border-top: 1px solid var(--line); padding-top: 6px; font-size: 1.05rem; }
.desc { white-space: pre-line; }
.book { margin-top: 20px; border: 2px solid var(--brand-l); }
.quote { background: var(--bg); border-radius: 10px; padding: 12px 14px; margin-bottom: 12px; }
.quote table { width: 100%; border-collapse: collapse; }
.quote td { padding: 3px 0; }
.quote td:last-child { text-align: right; }
.quote .total td { font-weight: 700; border-top: 1px solid var(--line); padding-top: 7px; font-size: 1.05rem; }
.quote.bad { background: var(--bad-l); color: var(--bad); }

/* ---------- badges, notices, stats */
.badge { display: inline-block; font-size: .78rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--info-l); color: var(--info); }
.badge.ok { background: var(--ok-l); color: var(--ok); }
.badge.warn { background: var(--warn-l); color: var(--warn); }
.badge.bad { background: var(--bad-l); color: var(--bad); }
.notice { background: var(--warn-l); border: 1px solid #f0d9a2; border-radius: var(--r); padding: 14px 18px; margin: 8px 0 18px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; padding: 26px 0 8px; }
.page-head p { margin: 0; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 10px 0 8px; }
.stat { background: #fff; border-radius: var(--r); padding: 14px 16px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 2px; }
.stat-v { font-family: var(--serif); font-size: 1.6rem; font-weight: 700; color: var(--brand); }
.stat.warn { background: var(--warn-l); }
.stat.warn .stat-v { color: var(--warn); }

/* ---------- booking rows */
.list { display: grid; gap: 12px; }
.brow { display: flex; gap: 14px; align-items: center; background: #fff; border-radius: var(--r); padding: 12px; box-shadow: var(--shadow); }
.brow-img { flex: none; width: 68px; height: 84px; border-radius: 10px; overflow: hidden; background: var(--gold-l); }
.brow-img img { width: 100%; height: 100%; object-fit: cover; }
.brow-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.brow-title { font-weight: 600; color: var(--ink); }
.brow-acts { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
details summary { cursor: pointer; font-weight: 600; margin-bottom: 12px; }

/* ---------- booking page */
.booking-head { display: flex; gap: 22px; align-items: flex-start; margin: 10px 0 20px; }
.bh-img { width: 130px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r); box-shadow: var(--shadow); }
.next { margin-top: 12px; max-width: 40em; }
.progress { list-style: none; display: flex; padding: 0; margin: 0 0 22px; overflow-x: auto; background: #fff; border-radius: var(--r); padding: 16px 10px; box-shadow: var(--shadow); }
.progress li { flex: 1 0 84px; display: flex; flex-direction: column; align-items: center; gap: 6px; position: relative; font-size: .78rem; color: var(--muted); text-align: center; }
.progress li::before { content: ""; position: absolute; top: 7px; left: -50%; width: 100%; height: 2px; background: var(--line); }
.progress li:first-child::before { display: none; }
.pdot { width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 2px solid var(--line); position: relative; z-index: 1; }
.progress li.done { color: var(--ink); }
.progress li.done .pdot, .progress li.done::before, .progress li.now::before { background: var(--brand); border-color: var(--brand); }
.progress li.now { color: var(--brand); font-weight: 700; }
.progress li.now .pdot { background: var(--gold); border-color: var(--gold); box-shadow: 0 0 0 4px var(--gold-l); }
.progress.stopped { display: block; text-align: center; }
.booking-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { border-left: 2px solid var(--brand-l); padding: 0 0 14px 14px; position: relative; }
.timeline li::before { content: ""; position: absolute; left: -6px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--brand); }
.ops-panel { border: 2px solid var(--gold-l); }

/* ---------- wardrobe editor */
.editor-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; align-items: start; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; margin-bottom: 12px; }
.photo { position: relative; border-radius: 10px; overflow: hidden; background: var(--gold-l); }
.photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.photo-acts { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; padding: 6px 4px; background: linear-gradient(transparent, rgba(0, 0, 0, .45)); }
.photo-acts .btn.tiny { padding: 4px 8px; font-size: .72rem; }
.photo-acts .btn.ghost { background: #fff; }
.danger-zone { margin: 10px 0 30px; }

/* ---------- ops */
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin: 20px 0 14px; }
.tab { padding: 10px 16px; color: var(--muted); font-weight: 600; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.tab:hover { color: var(--ink); text-decoration: none; }
.tab.on { color: var(--brand); border-bottom-color: var(--brand); }
.table-wrap { overflow-x: auto; background: #fff; border-radius: var(--r); box-shadow: var(--shadow); }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th, .table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.table th { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: #fdfaf7; }
.table .num { text-align: right; }
.table tr.dim td { opacity: .55; }
.tthumb { width: 44px; height: 54px; object-fit: cover; border-radius: 6px; }

/* ---------- footer, toast */
.footer { border-top: 1px solid var(--line); margin-top: 40px; background: #fff; }
.footer-in { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 22px; padding-bottom: 22px; font-size: .92rem; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 30px); background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 12px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; max-width: calc(100% - 32px); z-index: 50; box-shadow: 0 10px 30px rgba(0, 0, 0, .2); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.ok { background: #24382c; }
.toast.err { background: var(--bad); }

/* ---------- small screens */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 28px; }
  .hero-art { min-height: 220px; order: -1; }
  .hero-img { max-width: 320px; }
  .item-page, .editor-layout, .booking-cols, .how { grid-template-columns: 1fr; }
  .gallery { position: static; }
  .three { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 14px; }
  .topbar-in { gap: 8px; }
  .nav { margin-left: 0; width: 100%; justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; }
  .nav-link { padding: 6px 10px; font-size: .9rem; white-space: nowrap; }
  .two, .three, .roles { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .card-body { padding: 10px; }
  .card .mrp { display: none; }
  .filters input, .filters select, .filters .city { width: 100%; flex: 1 1 45%; }
  .filters .grow { flex-basis: 100%; }
  .brow { flex-wrap: wrap; }
  .brow-acts { width: 100%; justify-content: flex-start; }
  .booking-head { flex-direction: column; }
  .bh-img { width: 110px; }
  .panel { padding: 16px; }
}
