/* ==========================================================================
   Depona.ch — design system
   Space Grotesk (titoli) · IBM Plex Sans (testo) · IBM Plex Mono (numeri)
   ========================================================================== */

:root {
  --ink: #161B22;
  --ink-2: #202731;
  --ink-3: #2C3440;
  --paper: #E7E9E4;
  --amber: #D99A2B;
  --amber-hover: #E6A93C;
  --teal: #2B5F5A;

  --bg: #E7E9E4;
  --surface: #FFFFFF;
  --surface-2: #F3F4F1;
  --text: #161B22;
  --muted: #5A636E;
  --line: #D6D9D2;
  --line-strong: #BFC4BA;
  --link: #2B5F5A;
  --accent-soft: #F6E7C9;
  --danger: #B3261E;
  --success: #2B5F5A;
  --focus: #D99A2B;

  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(22, 27, 34, .06);
  --shadow: 0 1px 2px rgba(22, 27, 34, .05), 0 8px 24px -8px rgba(22, 27, 34, .12);
  --shadow-lg: 0 2px 4px rgba(22, 27, 34, .06), 0 20px 40px -12px rgba(22, 27, 34, .22);

  --font-head: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', monospace;

  --container: 1240px;
  --gutter: 24px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0D1115;
    --surface: #161B22;
    --surface-2: #1C222A;
    --text: #E7E9E4;
    --muted: #9AA3AE;
    --line: #262D36;
    --line-strong: #37404B;
    --link: #74B8AF;
    --accent-soft: #3A2E17;
    --danger: #F0877F;
    --success: #74B8AF;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px -8px rgba(0, 0, 0, .5);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, .3), 0 20px 40px -12px rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}

/* ------------------------------------------------------------------ Base */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.55 var(--font-body);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
img { max-width: 100%; display: block; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 2px; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; margin: 0; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.mono { font-family: var(--font-mono); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.page { padding-top: 40px; padding-bottom: 72px; }

.eyebrow {
  font: 600 12px/1 var(--font-body);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.eyebrow-accent { color: var(--amber); }

svg.lucide { width: 18px; height: 18px; flex: none; }

/* --------------------------------------------------------------- Buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 18px;
  border: 1px solid transparent; border-radius: var(--radius-sm);
  font: 600 15px/1 var(--font-body);
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background .15s, border-color .15s, color .15s, transform .1s, box-shadow .15s;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-lg { height: 52px; padding: 0 24px; font-size: 16px; }
.btn-sm { height: 34px; padding: 0 12px; font-size: 13.5px; gap: 6px; }
.btn-sm svg.lucide { width: 15px; height: 15px; }
.btn-block { width: 100%; }

.btn-accent { background: var(--amber); color: var(--ink); }
.btn-accent:hover { background: var(--amber-hover); box-shadow: 0 6px 18px -6px rgba(217, 154, 43, .7); }
.btn-outline { background: var(--surface); border-color: var(--line-strong); color: var(--text); }
.btn-outline:hover { border-color: var(--text); }
.btn-ghost-dark { color: var(--paper); background: transparent; }
.btn-ghost-dark:hover { background: rgba(231, 233, 228, .08); }
.btn-danger-ghost { background: transparent; border-color: var(--line); color: var(--danger); }
.btn-danger-ghost:hover { border-color: var(--danger); }

.link-btn { background: none; border: 0; padding: 0; color: var(--link); cursor: pointer; font-size: 14px; text-decoration: underline; text-underline-offset: 2px; }
.link-muted { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 14px; }
.link-muted svg.lucide { width: 15px; height: 15px; }

/* ---------------------------------------------------------------- Header */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(22, 27, 34, .94);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  color: var(--paper);
  border-bottom: 1px solid rgba(231, 233, 228, .08);
}
.header-inner { display: flex; align-items: center; gap: 32px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.brand svg { width: 32px; height: 32px; }
.brand-name { font: 700 20px/1 var(--font-head); letter-spacing: -0.03em; color: var(--paper); }
.brand-name span { color: var(--amber); }
.header-nav { display: flex; gap: 4px; }
.header-nav a {
  color: rgba(231, 233, 228, .72); text-decoration: none; font-weight: 500; font-size: 15px;
  padding: 8px 12px; border-radius: 6px; transition: color .15s, background .15s;
}
.header-nav a:hover, .header-nav a[aria-current] { color: var(--paper); background: rgba(231, 233, 228, .06); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }

.lang-switch { display: flex; padding: 3px; border: 1px solid rgba(231, 233, 228, .14); border-radius: 8px; margin-right: 4px; }
.lang-switch button {
  background: none; border: 0; cursor: pointer;
  font: 600 12px/1 var(--font-mono); letter-spacing: .04em;
  color: rgba(231, 233, 228, .6); padding: 7px 8px; border-radius: 5px;
}
.lang-switch button:hover { color: var(--paper); }
.lang-switch button[aria-pressed="true"] { background: var(--paper); color: var(--ink); }

.demo-bar { background: var(--teal); color: #EAF3F1; font-size: 13.5px; }
.demo-bar .container { display: flex; align-items: center; gap: 10px; padding-top: 8px; padding-bottom: 8px; }
.demo-bar svg.lucide { width: 16px; height: 16px; }

/* ------------------------------------------------------------------ Hero */

.hero {
  position: relative; overflow: hidden;
  background: var(--ink);
  color: var(--paper);
  padding: 72px 0 0;
  isolation: isolate;
}
.hero::before { /* griglia "da capannone" */
  content: ''; position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(rgba(231, 233, 228, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(231, 233, 228, .045) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 90% at 70% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 90% at 70% 0%, #000 30%, transparent 75%);
}
.hero::after {
  content: ''; position: absolute; z-index: -1;
  width: 720px; height: 720px; right: -220px; top: -380px;
  background: radial-gradient(circle, rgba(217, 154, 43, .22), transparent 62%);
}
.hero-inner { max-width: var(--container); }
.hero h1 {
  font-size: clamp(38px, 6vw, 68px);
  font-weight: 700; letter-spacing: -0.035em; line-height: 1.02;
  max-width: 14ch;
}
.hero-sub { margin-top: 20px; max-width: 62ch; font-size: 18px; color: rgba(231, 233, 228, .72); }

.search {
  margin-top: 36px; display: flex; gap: 8px;
  background: var(--surface); padding: 8px; border-radius: 14px;
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .6);
  max-width: 880px;
}
.search-field, .search-select {
  display: flex; align-items: center; gap: 10px; padding: 0 14px;
  color: var(--muted); border-radius: 8px;
}
.search-field { flex: 1; min-width: 0; }
.search-select { border-left: 1px solid var(--line); border-radius: 0; }
.search input, .search select {
  border: 0; outline: 0; background: transparent; height: 52px; width: 100%;
  color: var(--text); font-size: 16px;
}
.search select { cursor: pointer; min-width: 170px; }
.search input::placeholder { color: var(--muted); }
.search-field:focus-within, .search-select:focus-within { color: var(--text); }

.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin: 56px 0 0; border-top: 1px solid rgba(231, 233, 228, .1);
}
.stats > div { padding: 22px 0 26px; border-right: 1px solid rgba(231, 233, 228, .1); padding-left: 24px; }
.stats > div:first-child { padding-left: 0; }
.stats > div:last-child { border-right: 0; }
.stats dd { margin: 0; font: 600 32px/1 var(--font-head); letter-spacing: -0.03em; color: var(--paper); order: -1; }
.stats dt { margin-top: 8px; font-size: 14px; color: rgba(231, 233, 228, .6); }
.stats > div { display: flex; flex-direction: column; }

/* ---------------------------------------------------------------- Browse */

.browse {
  display: grid; grid-template-columns: 272px 1fr; gap: 40px;
  padding-top: 48px; padding-bottom: 72px; align-items: start;
}

.sidebar { position: sticky; top: 92px; }
.sidebar summary {
  list-style: none; display: flex; align-items: center; gap: 10px;
  font: 600 13px/1 var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
  padding: 0 12px 14px; cursor: default;
}
.sidebar summary::-webkit-details-marker { display: none; }
.sidebar summary svg.lucide { width: 16px; height: 16px; }
.sidebar summary .chev { display: none; margin-left: auto; transition: transform .2s; }

.cat-nav { display: flex; flex-direction: column; gap: 2px; }
.cat-nav a {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 12px; border-radius: 8px;
  color: var(--text); text-decoration: none; font-size: 15px;
  transition: background .12s;
}
.cat-nav a:hover { background: var(--surface); }
.cat-nav a svg.lucide { color: var(--muted); }
.cat-nav a.active { background: var(--ink); color: var(--paper); }
.cat-nav a.active svg.lucide { color: var(--amber); }
.cat-label { flex: 1; min-width: 0; }
.cat-n { font: 500 12px/1 var(--font-mono); color: var(--muted); }
.cat-nav a.active .cat-n { color: rgba(231, 233, 228, .6); }
.cat-subs { margin: 2px 0 8px 22px; padding-left: 12px; border-left: 1px solid var(--line-strong); display: flex; flex-direction: column; gap: 1px; }
.cat-nav a.cat-sub { font-size: 14px; padding: 7px 10px; color: var(--muted); }
.cat-nav a.cat-sub:hover { color: var(--text); }
.cat-nav a.cat-sub.active { background: var(--accent-soft); color: var(--text); font-weight: 500; }
.cat-nav a.cat-sub.active .cat-n { color: var(--muted); }

.results { min-width: 0; }
.toolbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.results-count { font-size: 22px; min-height: 26px; }
.sort { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); white-space: nowrap; }

select, input:not([type="checkbox"]):not([type="file"]), textarea {
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  padding: 0 12px; height: 42px; font-size: 15px; width: 100%;
  transition: border-color .15s, box-shadow .15s;
}
select {
  appearance: none; -webkit-appearance: none; padding-right: 36px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%235A636E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
.sort select { width: auto; }
.search select { background-color: transparent; border: 0; }
textarea { padding: 12px; height: auto; resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--amber); box-shadow: 0 0 0 3px rgba(217, 154, 43, .22); }
.search-field input[type="search"], .search-select select { border: 0; padding-left: 0; background-color: transparent; }
.search input:focus, .search select:focus { box-shadow: none; }
input:disabled { background: var(--surface-2); color: var(--muted); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.chips:empty { display: none; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  height: 30px; padding: 0 8px 0 12px; border-radius: 99px;
  background: var(--surface); border: 1px solid var(--line-strong);
  font-size: 13.5px; cursor: pointer;
}
.chip svg.lucide { width: 14px; height: 14px; color: var(--muted); }
.chip:hover { border-color: var(--text); }
.chip-clear { background: none; border: 0; color: var(--muted); font-size: 13.5px; cursor: pointer; text-decoration: underline; }

/* ----------------------------------------------------------------- Grid */

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.featured { margin-bottom: 40px; }
.section-label { display: flex; align-items: center; gap: 8px; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; font-family: var(--font-body); color: var(--muted); margin-bottom: 14px; }
.section-label svg.lucide { color: var(--amber); fill: var(--amber); width: 15px; height: 15px; }

.card {
  display: flex; flex-direction: column; background: var(--surface);
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line);
  color: var(--text); text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s;
}
a.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card-featured { border-color: var(--amber); box-shadow: 0 0 0 1px var(--amber); }
.card-media { position: relative; aspect-ratio: 4 / 3; background: var(--surface-2); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
a.card:hover .card-media img { transform: scale(1.04); }
.badge-top {
  position: absolute; top: 12px; left: 12px;
  background: var(--amber); color: var(--ink);
  font: 700 11px/1 var(--font-mono); letter-spacing: .1em;
  padding: 6px 8px; border-radius: 4px;
}
.badge-inline { position: static; display: inline-block; margin-right: 8px; vertical-align: 1px; }

.ph {
  width: 100%; height: 100%; display: grid; place-items: center; color: var(--line-strong);
  background:
    repeating-linear-gradient(135deg, transparent 0 14px, rgba(22, 27, 34, .035) 14px 15px),
    var(--surface-2);
}
.ph svg.lucide { width: 44px; height: 44px; stroke-width: 1.25; color: var(--muted); opacity: .45; }
.ph-big svg.lucide { width: 88px; height: 88px; }
@media (prefers-color-scheme: dark) {
  .ph { background: repeating-linear-gradient(135deg, transparent 0 14px, rgba(231, 233, 228, .03) 14px 15px), var(--surface-2); }
}

.card-body { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 18px; flex: 1; }
.card-eyebrow { font-size: 12px; font-weight: 500; color: var(--muted); letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-title {
  font-size: 17px; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-qty { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); }
.card-qty svg.lucide { width: 15px; height: 15px; }
.card-foot { margin-top: auto; padding-top: 8px; }
.price { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 4px; }
.price-main { font: 600 20px/1.2 var(--font-head); letter-spacing: -0.02em; }
.price-unit { font-size: 13.5px; color: var(--muted); }
.price-vat { flex-basis: 100%; font-size: 12px; color: var(--muted); }
.price-request .price-main { font-size: 16px; color: var(--teal); }
@media (prefers-color-scheme: dark) { .price-request .price-main { color: var(--link); } }
.card-meta {
  display: flex; justify-content: space-between; gap: 12px;
  border-top: 1px solid var(--line); margin-top: 6px; padding-top: 12px;
  font-size: 13px; color: var(--muted);
}
.card-meta span { display: inline-flex; align-items: center; gap: 5px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-meta svg.lucide { width: 14px; height: 14px; }

.ad-slot {
  display: grid; place-items: center; min-height: 260px;
  border: 1px dashed var(--line-strong); border-radius: var(--radius);
  color: var(--muted); font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  background: repeating-linear-gradient(45deg, transparent 0 10px, rgba(127, 127, 127, .04) 10px 20px);
}
.ad-live { border: 0; background: none; min-height: 0; display: block; }

/* skeleton */
.card-skeleton { pointer-events: none; }
.sk { background: linear-gradient(90deg, var(--surface-2) 0%, var(--line) 50%, var(--surface-2) 100%); background-size: 200% 100%; animation: shimmer 1.3s infinite linear; }
.sk-line { height: 12px; border-radius: 4px; }
.w40 { width: 40%; } .w50 { width: 50%; } .w70 { width: 70%; } .w90 { width: 90%; }
@keyframes shimmer { to { background-position: -200% 0; } }

.load-more-wrap { display: flex; justify-content: center; margin-top: 32px; }

.empty {
  grid-column: 1 / -1; text-align: center; padding: 64px 24px;
  background: var(--surface); border: 1px dashed var(--line-strong); border-radius: var(--radius);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.empty svg.lucide { width: 40px; height: 40px; color: var(--muted); stroke-width: 1.4; }
.empty p { color: var(--muted); max-width: 48ch; }
.empty .btn { margin-top: 8px; }
.empty-page { max-width: 560px; margin: 40px auto; padding: 56px 32px; }
.empty-page h1 { font-size: 28px; }

/* ------------------------------------------------------------ How / CTA */

.how { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 80px 0; }
.how h2 { font-size: clamp(28px, 3.6vw, 40px); max-width: 20ch; }
.steps { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps li { position: relative; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
.steps svg.lucide { width: 28px; height: 28px; color: var(--amber); margin-bottom: 20px; }
.steps h3 { font-size: 20px; margin-bottom: 8px; }
.steps p { color: var(--muted); }
.step-n { position: absolute; top: 24px; right: 24px; font: 500 13px/1 var(--font-mono); color: var(--muted); }

.cta {
  margin: 72px 0; padding: 48px; border-radius: 20px;
  background: var(--ink); color: var(--paper);
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  position: relative; overflow: hidden; isolation: isolate;
}
.cta::after {
  content: ''; position: absolute; z-index: -1; right: -120px; bottom: -200px; width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(217, 154, 43, .28), transparent 60%);
}
.cta h2 { font-size: clamp(26px, 3vw, 36px); }
.cta p { margin-top: 10px; color: rgba(231, 233, 228, .7); max-width: 56ch; }

/* ---------------------------------------------------------------- Panels */

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.panel-title { display: flex; align-items: center; gap: 10px; font-size: 19px; margin-bottom: 16px; padding: 0; }

.notice {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
  padding: 12px 16px; margin-bottom: 20px; border-radius: var(--radius-sm);
  background: var(--accent-soft); color: var(--text); font-size: 14.5px;
}
.notice .btn { margin-left: auto; }
.notice-muted { background: var(--surface-2); border: 1px solid var(--line); }
.notice-warn { background: var(--accent-soft); font-weight: 500; }

/* --------------------------------------------------------------- Detail */

.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 24px; font-size: 14px; color: var(--muted); }
.breadcrumb a { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb svg.lucide { width: 16px; height: 16px; }

.detail { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 32px; align-items: start; }
.detail-main { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.detail-side { display: flex; flex-direction: column; gap: 16px; }

.gallery-main { aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--surface-2); border: 1px solid var(--line); }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; background: var(--surface-2); }
.thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; padding-bottom: 4px; }
.thumb { flex: none; width: 88px; height: 66px; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; cursor: pointer; background: none; opacity: .7; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.active, .thumb:hover { border-color: var(--amber); opacity: 1; }

.prose { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 16px; line-height: 1.7; }

.detail-eyebrow { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.detail-title { font-size: 26px; line-height: 1.2; overflow-wrap: anywhere; }
.detail-price { margin-top: 20px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.detail-price .price-main { font: 700 32px/1.1 var(--font-head); letter-spacing: -0.03em; }
.detail-price.price-request .price-main { font-size: 22px; color: var(--teal); }
.detail-price .price-unit { font-size: 15px; color: var(--muted); }
.detail-price .price-vat { font-size: 13px; color: var(--muted); margin-top: 4px; }

.facts { margin: 16px 0 0; display: flex; flex-direction: column; }
.facts > div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; font-size: 14.5px; }
.facts > div + div { border-top: 1px dashed var(--line); }
.facts dt { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.facts dt svg.lucide { width: 16px; height: 16px; }
.facts dd { margin: 0; font-weight: 500; text-align: right; overflow-wrap: anywhere; }

.panel-contact p { margin-bottom: 16px; font-size: 14.5px; }
.contact-card { display: flex; flex-direction: column; gap: 4px; }
.contact-name { font: 600 18px/1.3 var(--font-head); }
.contact-lines { list-style: none; margin: 12px 0 16px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.contact-lines li { display: flex; align-items: center; gap: 10px; overflow-wrap: anywhere; }
.contact-lines svg.lucide { color: var(--muted); width: 16px; height: 16px; }
.contact-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.contact-actions .btn { flex: 1; }

.contact-seller { margin: -4px 0 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.contact-form { gap: 12px; }
.contact-form textarea { min-height: 130px; font-size: 14.5px; }
.contact-form .hint { text-align: center; }
#phone-box { margin-top: 10px; }
.hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.contact-success { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 20px 8px; background: var(--surface-2); border-radius: var(--radius-sm); }
.contact-success svg.lucide { width: 32px; height: 32px; color: var(--success); }
.contact-success p { color: var(--muted); font-size: 14.5px; }
.contact-note { margin: 0; }
.contact-note svg.lucide { color: var(--teal); }

.panel-safety { background: var(--surface-2); padding: 20px 22px; }
.panel-safety h3 { display: flex; align-items: center; gap: 8px; font-size: 15px; margin-bottom: 8px; }
.panel-safety h3 svg.lucide { color: var(--amber); }
.panel-safety p { font-size: 13.5px; color: var(--muted); margin-bottom: 12px; }

/* ----------------------------------------------------------------- Forms */

.page-head { margin-bottom: 28px; }
.page-head h1 { font-size: clamp(30px, 4vw, 42px); letter-spacing: -0.03em; }
.page-head p.muted { margin-top: 8px; }
.page-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.head-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.publish-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; align-items: start; }
.form { display: flex; flex-direction: column; gap: 16px; }
fieldset.panel { margin: 0; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
fieldset legend.panel-title { float: left; width: 100%; margin-bottom: 4px; }
fieldset legend + * { clear: both; }
.step-dot {
  display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: var(--ink); color: var(--amber); font: 600 13px/1 var(--font-mono);
}
@media (prefers-color-scheme: dark) { .step-dot { background: var(--amber); color: var(--ink); } }

.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-weight: 500; font-size: 14.5px; }
.field label em { font-style: normal; font-weight: 400; color: var(--muted); font-size: 13px; }
.hint { font-size: 13px; color: var(--muted); }
.field-error { font-size: 13px; color: var(--danger); font-weight: 500; }
.has-error input, .has-error select, .has-error textarea { border-color: var(--danger); }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.row-3 { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 16px; }

.check { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--amber); flex: none; }

.dropzone {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  padding: 32px 16px; text-align: center; cursor: pointer;
  border: 1.5px dashed var(--line-strong); border-radius: var(--radius); background: var(--surface-2);
  color: var(--muted); font-size: 14.5px; transition: border-color .15s, background .15s;
}
.dropzone svg.lucide { width: 28px; height: 28px; }
.dropzone:hover, .dropzone.is-over { border-color: var(--amber); background: var(--accent-soft); color: var(--text); }
.dropzone.is-full { opacity: .5; pointer-events: none; }
.photo-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
.photo-list:empty { display: none; }
.photo { position: relative; aspect-ratio: 1; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo-cover { position: absolute; left: 6px; bottom: 6px; background: var(--ink); color: var(--paper); font-size: 11px; font-weight: 600; padding: 3px 6px; border-radius: 4px; }
.photo-remove {
  position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; border: 0; cursor: pointer;
  background: rgba(22, 27, 34, .75); color: #fff;
}
.photo-remove svg.lucide { width: 15px; height: 15px; }

.form-actions { display: flex; align-items: center; justify-content: flex-end; gap: 16px; flex-wrap: wrap; }
.form-error { color: var(--danger); font-weight: 500; font-size: 14.5px; }

.preview-sticky { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 12px; }
.preview .eyebrow { margin: 0; }
.preview .card { pointer-events: none; }

/* ------------------------------------------------------------------ Auth */

.auth { display: grid; place-items: center; padding: 24px 0 40px; }
.auth-card { width: 100%; max-width: 440px; padding: 36px; box-shadow: var(--shadow); }
.auth-head { margin-bottom: 24px; }
.auth-head h1 { font-size: 28px; margin-bottom: 6px; }
.auth-card .panel-title { margin-bottom: 6px; }
.auth-card > p.muted { margin-bottom: 20px; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; background: var(--surface-2); border-radius: 10px; margin-bottom: 24px; }
.tabs button { height: 38px; border: 0; border-radius: 7px; background: none; cursor: pointer; font-weight: 600; color: var(--muted); }
.tabs button[aria-selected="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.form-msg { font-size: 14px; }
.form-msg:empty { display: none; }
.form-msg.is-error { color: var(--danger); font-weight: 500; }
.form-msg.is-success { color: var(--success); background: var(--surface-2); padding: 12px; border-radius: 8px; }
.auth .link-btn { align-self: center; }

/* ----------------------------------------------------------- My listings */

.my-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.my-row {
  display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 20px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px;
}
.my-thumb { display: block; width: 96px; aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; background: var(--surface-2); }
.my-thumb img { width: 100%; height: 100%; object-fit: cover; }
.my-thumb .ph svg.lucide { width: 28px; height: 28px; }
.my-title { font: 600 17px/1.3 var(--font-head); color: var(--text); text-decoration: none; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.my-title:hover { text-decoration: underline; }
.my-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 6px; font-size: 13.5px; color: var(--muted); }
.my-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.status { font: 600 11.5px/1 var(--font-body); letter-spacing: .04em; text-transform: uppercase; padding: 5px 8px; border-radius: 4px; }
.status-active { background: rgba(43, 95, 90, .14); color: var(--success); }
.status-sold { background: var(--ink); color: var(--paper); }
.status-paused { background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); }
.status-expired { background: var(--accent-soft); color: var(--text); }
@media (prefers-color-scheme: dark) { .status-sold { background: var(--paper); color: var(--ink); } }

/* ----------------------------------------------------------------- Legal */

.legal { max-width: 800px; margin: 0 auto; padding: 44px; }
.legal h1 { font-size: 34px; margin-bottom: 24px; }
.legal h2 { font-size: 19px; margin: 28px 0 8px; }
.legal p, .legal li { color: var(--text); line-height: 1.7; }
.legal ul { padding-left: 20px; margin: 8px 0; }
.legal li + li { margin-top: 4px; }
.legal h3 { font-size: 16px; margin: 18px 0 6px; }
.legal h2 + p, .legal h3 + p { margin-top: 0; }
.legal p + p { margin-top: 10px; }
.legal-updated { margin-top: 36px !important; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--muted) !important; }
.legal mark.todo { background: #FFE08A; color: #161B22; padding: 1px 5px; border-radius: 4px; font-weight: 600; }

/* ---------------------------------------------------------------- Footer */

.site-footer { background: var(--ink); color: rgba(231, 233, 228, .7); font-size: 14.5px; padding-top: 56px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer-brand p { margin-top: 14px; max-width: 44ch; }
.footer-disclaimer { font-size: 13px; color: rgba(231, 233, 228, .5); }
.site-footer h4 { font: 600 12px/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--paper); margin-bottom: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.site-footer a { color: rgba(231, 233, 228, .7); text-decoration: none; }
.site-footer a:hover { color: var(--amber); }
.footer-bottom { border-top: 1px solid rgba(231, 233, 228, .08); padding-top: 20px; padding-bottom: 28px; font-size: 13px; color: rgba(231, 233, 228, .45); }

/* ------------------------------------------------------------ Misc / UI */

.loading { display: grid; place-items: center; padding: 96px 0; }
.spinner { width: 32px; height: 32px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--amber); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 100;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  max-width: min(520px, calc(100vw - 32px));
  background: var(--ink); color: var(--paper); padding: 14px 20px; border-radius: 10px;
  box-shadow: var(--shadow-lg); font-size: 15px; font-weight: 500;
  transition: opacity .2s, transform .2s;
  border-left: 4px solid var(--amber);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast-success { border-left-color: #4FA398; }
.toast-error { border-left-color: #E5534B; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ------------------------------------------------------------ Responsive */

@media (max-width: 1100px) {
  .detail { grid-template-columns: minmax(0, 1fr) 340px; }
  .publish-layout { grid-template-columns: 1fr; }
  .preview { display: none; }
}

@media (max-width: 900px) {
  :root { --gutter: 20px; }
  .header-nav { display: none; }
  .browse { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 32px; }
  .sidebar { position: static; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
  .sidebar summary { padding: 16px; cursor: pointer; }
  .sidebar summary .chev { display: block; }
  .sidebar details[open] summary .chev { transform: rotate(180deg); }
  .sidebar .cat-nav { padding: 0 8px 12px; }
  .detail { grid-template-columns: 1fr; }
  .detail-side { position: static; }
  .steps { grid-template-columns: 1fr; }
  .cta { flex-direction: column; align-items: flex-start; padding: 36px 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .my-row { grid-template-columns: 80px minmax(0, 1fr); }
  .my-thumb { width: 80px; }
  .my-actions { grid-column: 1 / -1; justify-content: flex-start; }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .header-inner { gap: 12px; height: 60px; }
  .brand-name { font-size: 18px; }
  .btn-icon-mobile span { display: none; }
  .btn-icon-mobile { padding: 0 11px; }
  .lang-switch button { padding: 7px 6px; }
  .hero { padding-top: 44px; }
  .hero-sub { font-size: 16px; }
  .search { flex-direction: column; padding: 6px; }
  .search-select { border-left: 0; border-top: 1px solid var(--line); }
  .search .btn { width: 100%; }
  .stats { grid-template-columns: 1fr 1fr; margin-top: 40px; }
  .stats > div { padding: 18px 0 18px 16px; border-bottom: 1px solid rgba(231, 233, 228, .1); }
  .stats > div:nth-child(odd) { padding-left: 0; }
  .stats > div:nth-child(2) { border-right: 0; }
  .stats > div:nth-child(n+3) { border-bottom: 0; }
  .stats dd { font-size: 26px; }
  .toolbar { flex-direction: column; }
  .grid { grid-template-columns: 1fr; }
  .panel { padding: 20px; }
  .row-2, .row-3 { grid-template-columns: 1fr; }
  .how { padding: 56px 0; }
  .cta { margin: 48px 0; }
  .legal { padding: 24px 20px; }
  .auth-card { padding: 24px 20px; }
  .form-actions .btn { width: 100%; }
}
