/* Used counter — the small amount that is genuinely its own.
 *
 * Everything structural comes from the shop's main.css: same tokens, same
 * rounded cards, same buttons, same light ground. Only what the shop has no
 * component for lives here, so the two cannot drift apart.
 */

/* ── hero ─────────────────────────────────────────────────
   One dark band at the top rather than a dark page. It carries the same
   machine plate the counter door uses, which is what ties this to the gateway. */
.u-hero {
  position: relative; overflow: hidden;
  padding: 74px 0 66px; text-align: center; color: #F3EEE2;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}
.u-hero .plate {
  position: absolute; inset: 0;
  background: url('https://mecivi.com/assets/img/doors/used.jpg') 50% 50% / cover no-repeat;
  filter: brightness(.38) contrast(1.02); transform: scale(1.06);
}
.u-hero .scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,12,.82) 0%, rgba(10,10,12,.52) 45%, rgba(10,10,12,.90) 100%);
}
.u-hero-in { position: relative; display: flex; flex-direction: column; align-items: center; gap: 15px; }
.u-mark { height: 46px; width: auto; }
.u-rule { display: flex; align-items: center; gap: 12px; width: 210px; }
.u-rule i { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--accent)); }
.u-rule i + i { background: linear-gradient(90deg, var(--accent), transparent); }
.u-rule svg { flex: none; color: var(--accent); }
.u-hero h1 {
  font-family: var(--font-serif, 'Playfair Display', Georgia, serif); font-weight: 500; margin: 0;
  font-size: clamp(30px, 5vw, 52px); line-height: 1.05;
  letter-spacing: .13em; text-indent: .13em; text-transform: uppercase; color: #F3EEE2;
}
.u-tag {
  font-size: 9.5px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  color: var(--accent-light); border: 1px solid rgba(196,114,58,.55);
  border-radius: 20px; padding: 5px 13px;
}
.u-lead { margin: 0; color: rgba(243,238,226,.78); font-size: 15.5px; line-height: 1.75; max-width: 580px; }
.u-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 6px; }

/* ── sections ─────────────────────────────────────────────── */
.u-section { padding: 58px 0; }
.u-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  margin-bottom: 24px; flex-wrap: wrap; }
.u-title { font-family: var(--font-serif, 'Playfair Display', Georgia, serif); font-weight: 500;
  font-size: clamp(22px, 3vw, 32px); margin: 0; color: var(--text); }
.u-title em { font-style: italic; color: var(--accent); }
.u-note { color: var(--muted); font-size: 13px; }

.u-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); }

/* Listing cards borrow the shop's card shell so a used machine and a new one
   feel like they came from the same company. */
.u-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; display: flex; flex-direction: column; text-decoration: none;
  box-shadow: var(--shadow-sm); transition: box-shadow .25s, transform .25s, border-color .2s;
}
.u-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: var(--accent-border); }
.u-card-img { position: relative; height: 200px; background: #fff; }
.u-card-img img { position: absolute; inset: 10px; width: auto; height: auto;
  max-width: calc(100% - 20px); max-height: calc(100% - 20px); margin: auto; object-fit: contain; }
.u-card-img .none { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: var(--muted2); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; background: var(--sand); }
.u-card-body { padding: 16px 17px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.u-mfr { font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.u-card-title { font-family: var(--font-serif, 'Playfair Display', Georgia, serif);
  font-size: 17.5px; line-height: 1.3; margin: 0; color: var(--text); }
.u-facts { display: flex; flex-wrap: wrap; gap: 6px; }
.u-fact { font-size: 11.5px; color: var(--text2); background: var(--sand);
  border-radius: var(--radius-sm); padding: 3px 9px; }
.u-card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between;
  gap: 10px; padding-top: 10px; }
.u-price { font-size: 19px; font-weight: 600; color: var(--text); }
.u-pill { font-size: 9.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 20px; background: var(--sand); color: var(--muted); }
.u-pill.sold { background: rgba(197,48,48,.10); color: #c53030; }
.u-pill.reserved { background: var(--accent-dim); color: var(--accent); }

.u-empty { border: 1px dashed var(--border2); border-radius: var(--radius-lg);
  padding: 48px 24px; text-align: center; color: var(--muted); background: var(--white); }
.u-empty strong { display: block; color: var(--text); font-size: 18px; margin-bottom: 8px;
  font-family: var(--font-serif, 'Playfair Display', Georgia, serif); font-weight: 500; }

/* ── sell ─────────────────────────────────────────────────── */
.u-sell { background: var(--sand); }
.u-sell-grid { display: grid; gap: 36px; grid-template-columns: 1fr 1fr; align-items: start; }
.u-steps { display: flex; flex-direction: column; gap: 18px; margin: 22px 0 0; padding: 0; list-style: none; }
.u-steps li { display: flex; gap: 14px; align-items: flex-start; }
.u-steps b { flex: none; width: 27px; height: 27px; border-radius: 50%; display: flex;
  align-items: center; justify-content: center; font-size: 12px;
  background: var(--accent-dim); color: var(--accent); border: 1px solid var(--accent-border); }
.u-steps span { color: var(--text2); font-size: 14px; line-height: 1.65; }
.u-steps span i { display: block; color: var(--text); font-style: normal; font-weight: 600; margin-bottom: 2px; }

.u-form { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 24px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 14px; }
.u-row { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
.u-form label { display: block; font-size: 11px; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.u-form input, .u-form textarea, .u-form select {
  width: 100%; background: var(--white); border: 1px solid var(--border2);
  border-radius: var(--radius-sm); color: var(--text); padding: 11px 13px;
  font-family: inherit; font-size: 14px; }
.u-form input:focus, .u-form textarea:focus, .u-form select:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-dim); }
.u-hint { font-size: 12.5px; color: var(--muted); line-height: 1.6; }
.u-ok { display: none; border: 1px solid var(--accent-border); background: var(--accent-dim);
  border-radius: var(--radius-lg); padding: 26px; text-align: center; }
.u-ok h3 { font-family: var(--font-serif, 'Playfair Display', Georgia, serif); font-weight: 500;
  margin: 0 0 8px; font-size: 21px; color: var(--text); }
.u-ok p { margin: 0; color: var(--text2); font-size: 14px; line-height: 1.7; }
.u-err { display: none; color: #c53030; font-size: 13px; }

/* ── inner pages ──────────────────────────────────────────── */
.u-page { padding: 46px 0 10px; }
.u-page h1 { font-family: var(--font-serif, 'Playfair Display', Georgia, serif); font-weight: 500;
  font-size: clamp(26px, 4.2vw, 42px); margin: 0; color: var(--text); }
.u-prose { max-width: 690px; margin-top: 22px; display: flex; flex-direction: column; gap: 15px; }
.u-prose h2 { font-family: var(--font-serif, 'Playfair Display', Georgia, serif); font-weight: 500;
  font-size: 21px; margin: 16px 0 0; color: var(--text); }
.u-prose p { margin: 0; color: var(--text2); font-size: 15.5px; line-height: 1.8; }
.u-prose strong { color: var(--text); font-weight: 600; }

/* ── footer ───────────────────────────────────────────────── */
.np-foot { border-top: 1px solid var(--border); margin-top: 40px; padding: 34px 0 0; background: var(--white); }
.np-foot-in { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: flex-start; }
.np-foot-note { color: var(--muted); font-size: 13px; margin: 10px 0 0; max-width: 320px; }
.np-foot-links { display: flex; flex-wrap: wrap; gap: 18px; }
.np-foot-links a { color: var(--text2); text-decoration: none; font-size: 13.5px; }
.np-foot-links a:hover { color: var(--accent); }
.np-foot-legal { border-top: 1px solid var(--border); margin-top: 26px; padding: 16px 0 26px;
  color: var(--muted); font-size: 12px; }
.np-foot-legal a { color: var(--muted); }

@media (max-width: 860px) {
  .u-sell-grid { grid-template-columns: 1fr; }
  .u-row { grid-template-columns: 1fr; }
  .u-hero { padding: 56px 0 50px; }
  .u-mark { height: 38px; }
}
