/* Luckybid.et — Bespoke Editorial Ethiopian Auction House Design System */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,700&family=JetBrains+Mono:wght@500;600&family=Noto+Sans+Ethiopic:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  --bg-canvas: #F6F2EA;
  --bg-surface: #FFFDF9;
  --bg-subtle: #EFE9DC;
  --bg-ink: #171512;
  --text-primary: #171512;
  --text-secondary: #5D564C;
  --text-muted: #847C70;
  --brand-emerald: #0E4D3B;
  --brand-emerald-dark: #093528;
  --brand-emerald-soft: #E5F1EC;
  --brand-gold: #C49232;
  --brand-gold-soft: #FBF2DE;
  --brand-terracotta: #B9452B;
  --brand-terracotta-soft: #FCECE8;
  --border-hairline: #E3DBCD;
  --border-strong: #CEC3B0;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-card: 0 2px 10px rgba(23, 21, 18, 0.04), 0 1px 2px rgba(23, 21, 18, 0.05);
  --shadow-elevated: 0 18px 40px rgba(23, 21, 18, 0.14);
  --font-display: 'Fraunces', 'Noto Sans Ethiopic', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', 'Noto Sans Ethiopic', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg-canvas);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.55;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font-family: inherit; }

/* Subtle Tibeb-inspired geometric hairline ribbon */
.tibeb-ribbon {
  height: 4px;
  background: repeating-linear-gradient(
    90deg,
    var(--brand-emerald) 0px,
    var(--brand-emerald) 28px,
    var(--brand-gold) 28px,
    var(--brand-gold) 36px,
    var(--brand-terracotta) 36px,
    var(--brand-terracotta) 42px,
    var(--brand-gold) 42px,
    var(--brand-gold) 50px
  );
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(246, 242, 234, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-hairline);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 64px;
  padding: 6px 0;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
  min-width: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.brand-lockup img { width: 34px; height: 34px; flex-shrink: 0; }
.brand-tld { color: var(--brand-gold); }

.desktop-nav {
  display: none;
  align-items: center;
  gap: 6px;
}

.desktop-nav a {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: background 0.15s, color 0.15s;
}

.desktop-nav a:hover, .desktop-nav a.active {
  background: var(--bg-surface);
  color: var(--text-primary);
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  min-width: 0;
  flex-shrink: 1;
}

.pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid var(--border-hairline);
  background: var(--bg-surface);
  color: var(--text-primary);
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 0.15s, transform 0.12s;
}

.pill-user {
  min-width: 0;
  max-width: 132px;
}
.pill-user-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lang-pair {
  display: none;
  align-items: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: 999px;
  padding: 2px;
  gap: 2px;
}
.lang-opt {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
}
.lang-opt.active {
  background: var(--bg-ink);
  color: #FFFDF9;
}
.lang-single {
  display: inline-flex;
}
@media (min-width: 540px) {
  .lang-pair { display: inline-flex; }
  .lang-single { display: none; }
}

.pill-btn:hover { border-color: var(--border-strong); }
.pill-wallet {
  background: var(--bg-ink);
  color: #FFFDF9;
  border-color: var(--bg-ink);
  font-family: var(--font-mono);
  font-size: 0.8rem;
}
.pill-wallet .plus {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--brand-gold);
  color: var(--bg-ink);
  font-weight: 700;
}

.pill-live-count {
  background: var(--brand-emerald-soft);
  color: var(--brand-emerald);
  border-color: rgba(14, 77, 59, 0.22);
}

.dot-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-terracotta);
  display: inline-block;
  box-shadow: 0 0 0 3px rgba(185, 69, 43, 0.2);
}

/* Main Content Wrapper */
.main-shell {
  padding: 24px 0 96px;
  min-height: calc(100vh - 200px);
}

/* Alerts / Flash */
.flash-stack { margin-bottom: 18px; display: flex; flex-direction: column; gap: 8px; }
.flash {
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 500;
  border: 1px solid transparent;
}
.flash-success { background: var(--brand-emerald-soft); color: var(--brand-emerald-dark); border-color: rgba(14,77,59,0.22); }
.flash-error   { background: var(--brand-terracotta-soft); color: #8A2B16; border-color: rgba(185,69,43,0.25); }
.flash-info    { background: var(--brand-gold-soft); color: #6E4E12; border-color: rgba(196,146,50,0.3); }

/* Editorial Hero */
.hero-editorial {
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--brand-emerald);
  font-weight: 600;
  margin-bottom: 10px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.6vw, 2.85rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin: 0 0 12px;
  color: var(--text-primary);
}

.hero-sub {
  color: var(--text-secondary);
  font-size: 0.98rem;
  margin: 0 0 18px;
  max-width: 58ch;
}

.rule-box {
  background: var(--bg-ink);
  border: 1px solid #2C2924;
  border-left: 3px solid var(--brand-gold);
  border-radius: var(--radius-sm);
  padding: 13px 15px;
  font-size: 0.88rem;
  color: #FFFDF9;
  margin-bottom: 20px;
}

.rule-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.rule-pill {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  padding: 5px 10px;
  border-radius: 6px;
  background: rgba(255, 253, 249, 0.08);
  border: 1px solid rgba(255, 253, 249, 0.18);
  color: #EAE3D5;
}
.rule-pill.winner {
  background: var(--brand-emerald);
  color: #FFFDF9;
  border-color: var(--brand-emerald);
  font-weight: 600;
}

.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.92rem;
  white-space: nowrap;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.1s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand-emerald); color: #FFFDF9; }
.btn-primary:hover { background: var(--brand-emerald-dark); }
.btn-gold { background: var(--brand-gold); color: var(--bg-ink); }
.btn-gold:hover { background: #B08026; }
.btn-outline { background: var(--bg-surface); color: var(--text-primary); border-color: var(--border-strong); }
.btn-outline:hover { background: var(--bg-subtle); }
.btn-dark { background: var(--bg-ink); color: #FFFDF9; }
.btn-sm { padding: 7px 13px; font-size: 0.83rem; }
.btn-block { width: 100%; }

/* Promo Banner */
.promo-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: var(--bg-ink);
  color: #FFFDF9;
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 24px;
  border: 1px solid rgba(196, 146, 50, 0.45);
}
.promo-strip strong { color: var(--brand-gold); font-family: var(--font-display); font-size: 1.05rem; }
.promo-strip p { margin: 2px 0 0; font-size: 0.88rem; color: #DDD6C8; }

/* Filter & Sort Bar */
.catalog-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.chip-row { display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-hairline);
  background: var(--bg-surface);
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--text-secondary);
}
.chip.active {
  background: var(--bg-ink);
  color: #FFFDF9;
  border-color: var(--bg-ink);
}

.search-form { display: flex; gap: 8px; flex: 1; max-width: 360px; min-width: 0; }
.search-cat { max-width: 150px; flex-shrink: 0; }
.input {
  width: 100%;
  min-width: 0;
  padding: 10px 13px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg-surface);
  color: var(--text-primary);
  font-size: 0.93rem;
}
.input:focus { outline: 2px solid rgba(14, 77, 59, 0.25); border-color: var(--brand-emerald); }

/* Auction Cards Grid */
.auction-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(290px, 100%), 1fr));
  gap: 20px;
}

.auction-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition: transform 0.16s, box-shadow 0.16s;
}
.auction-card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(23,21,18,0.08); }

/* Dedicated top meta strip so badges NEVER overlap product imagery */
.card-top-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 10px;
  padding: 10px 14px;
  background: var(--bg-canvas);
  border-bottom: 1px solid var(--border-hairline);
  font-size: 0.76rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.badge-live { background: var(--brand-emerald-soft); color: var(--brand-emerald); }
.badge-special { background: var(--brand-gold-soft); color: #7C5811; border: 1px solid rgba(196,146,50,0.4); }
.badge-ended { background: var(--bg-ink); color: var(--brand-gold); }
.badge-upcoming { background: var(--bg-subtle); color: var(--text-secondary); }
.badge-pending { background: #FDF3DC; color: #8A5D0A; }
.badge-rejected { background: var(--brand-terracotta-soft); color: var(--brand-terracotta); }

.card-media {
  aspect-ratio: 16 / 10;
  background: var(--bg-subtle);
  overflow: hidden;
}
.card-media img { width: 100%; height: 100%; object-fit: cover; }

.card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.12rem;
  line-height: 1.28;
  margin: 0;
  color: var(--text-primary);
}

.card-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  background: var(--bg-canvas);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-hairline);
}
.metric-label { font-size: 0.72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.metric-val { font-family: var(--font-mono); font-weight: 600; font-size: 0.92rem; color: var(--text-primary); font-variant-numeric: tabular-nums; }

.countdown-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--brand-terracotta);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.card-foot-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: auto;
}

/* Detail Page Split Layout */
.detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-card);
}

.panel-dark {
  background: var(--bg-ink);
  color: #FFFDF9;
  border-color: #2C2924;
}

.section-heading {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0 0 14px;
  letter-spacing: -0.015em;
}

/* Spec Table */
.spec-list { display: grid; grid-template-columns: 1fr; gap: 8px; margin-top: 12px; }
.spec-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 12px;
  padding: 9px 12px;
  background: var(--bg-canvas);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
}
.spec-key { color: var(--text-muted); font-weight: 500; }
.spec-val { font-weight: 600; text-align: right; word-break: break-word; }

/* Bid Stepper & Multi-Bid */
.stepper {
  display: grid;
  grid-template-columns: 46px 1fr 46px;
  gap: 8px;
  align-items: center;
}
.stepper button {
  height: 44px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg-canvas);
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
}
.stepper input {
  height: 44px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 1.08rem;
  font-weight: 600;
}

.amount-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.amount-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--brand-emerald-soft);
  color: var(--brand-emerald-dark);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
}
.amount-tag button { background: none; border: none; color: inherit; cursor: pointer; font-weight: 700; padding: 0; }

/* Post-Draw Number Breakdown Bar Chart + Expandable Masked Bidders */
.kpi-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(135px, 100%), 1fr));
  gap: 12px;
  margin-bottom: 20px;
}
.kpi-box {
  background: var(--bg-canvas);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-sm);
  padding: 13px 14px;
}
.kpi-box .k-num { font-family: var(--font-mono); font-size: 1.25rem; font-weight: 700; color: var(--text-primary); }
.kpi-box .k-lbl { font-size: 0.74rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }

.bucket-list { display: flex; flex-direction: column; gap: 8px; }
.bucket-item {
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  overflow: hidden;
}
.bucket-item.is-winner {
  border-color: var(--brand-gold);
  background: var(--brand-gold-soft);
}
.bucket-row {
  display: grid;
  grid-template-columns: 96px 1fr 84px 28px;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  width: 100%;
  background: transparent;
  border: none;
  text-align: left;
  cursor: pointer;
}
.bucket-amt { font-family: var(--font-mono); font-weight: 700; font-size: 0.92rem; }
.bucket-bar-track {
  height: 10px;
  border-radius: 999px;
  background: var(--bg-subtle);
  overflow: hidden;
}
.bucket-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--brand-emerald);
}
.bucket-item.is-winner .bucket-bar-fill { background: var(--brand-gold); }
.bucket-count { font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-secondary); text-align: right; }

.bucket-bidders {
  display: none;
  padding: 10px 14px 14px;
  border-top: 1px dashed var(--border-hairline);
  background: var(--bg-canvas);
  font-size: 0.83rem;
}
.bucket-item.open .bucket-bidders { display: block; }
.bidder-line {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 10px;
  padding: 5px 0;
  border-bottom: 1px solid rgba(227,219,205,0.6);
  font-family: var(--font-mono);
  font-size: 0.79rem;
}
.bidder-line:last-child { border-bottom: none; }

/* Tables */
.data-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.data-table th, .data-table td { padding: 11px 12px; text-align: left; border-bottom: 1px solid var(--border-hairline); }
.data-table th { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); background: var(--bg-canvas); }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }

/* Wallet Account Box */
.bank-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); gap: 14px; margin: 14px 0 20px; }
.bank-card {
  background: var(--bg-canvas);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 16px;
}
.bank-card h4 { margin: 0 0 6px; font-family: var(--font-display); font-size: 1.05rem; }
.bank-acct {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  background: var(--bg-surface);
  padding: 8px 11px;
  border-radius: 6px;
  border: 1px solid var(--border-hairline);
  font-family: var(--font-mono);
  font-weight: 600;
  margin-top: 8px;
}
.bank-acct span { min-width: 0; overflow-wrap: anywhere; }
.bank-acct .btn { flex-shrink: 0; }

/* Progress Bar */
.progress-track { height: 8px; background: rgba(255,255,255,0.16); border-radius: 999px; overflow: hidden; margin-top: 8px; }
.progress-fill { height: 100%; background: var(--brand-gold); border-radius: 999px; }

/* Live Quick-Jump Drawer */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(23,21,18,0.52);
  z-index: 60;
  display: none;
  justify-content: flex-end;
}
.drawer-backdrop.open { display: flex; }
.drawer-panel {
  width: 100%;
  max-width: 400px;
  background: var(--bg-surface);
  height: 100%;
  padding: 20px;
  overflow-y: auto;
  box-shadow: var(--shadow-elevated);
}

/* Mobile 4-Tab Bottom Navigation */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 45;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-hairline);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
}
.bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
}
.bottom-nav a.active { color: var(--brand-emerald); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-hairline);
  background: var(--bg-surface);
  padding: 28px 0 92px;
  color: var(--text-secondary);
  font-size: 0.85rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

/* Form & Responsive Grid Helpers */
.form-group { margin-bottom: 14px; }
.form-label { display: block; font-size: 0.84rem; font-weight: 600; margin-bottom: 5px; color: var(--text-primary); }
.form-hint { font-size: 0.78rem; color: var(--text-muted); margin-top: 4px; }

.form-grid-2,
.form-grid-3,
.balance-grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.balance-grid-2 { gap: 16px; }

.winner-callout {
  background: rgba(196,146,50,0.14);
  border: 1px solid rgba(196,146,50,0.5);
  border-radius: 12px;
  padding: 16px 20px;
  width: 100%;
}

.bid-ledger-card {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
}
.bid-ledger-main {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1 1 240px;
  min-width: 0;
}
.bid-amount-pill {
  background: var(--bg-ink);
  color: var(--brand-gold);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.05rem;
  padding: 10px 12px;
  border-radius: 10px;
  min-width: 88px;
  text-align: center;
  flex-shrink: 0;
}
.bid-ledger-status {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

/* Responsive Breakpoints */
@media (min-width: 580px) {
  .form-grid-2,
  .balance-grid-2 { grid-template-columns: 1fr 1fr; }
  .winner-callout { width: auto; min-width: 240px; }
}

@media (min-width: 720px) {
  .form-grid-3 { grid-template-columns: 1fr 1fr 1fr; }
}

@media (max-width: 859px) {
  .catalog-toolbar { align-items: stretch; }
  .search-form { max-width: none; width: 100%; flex: 1 1 100%; }
}

@media (max-width: 600px) {
  .container { padding: 0 14px; }
  .main-shell { padding: 16px 0 92px; }
  .hero-editorial { padding: 18px 16px; border-radius: var(--radius-md); }
  .panel { padding: 16px; }
  .input, select.input, textarea.input { font-size: 16px; min-height: 44px; }
  .btn { min-height: 42px; }
  .btn-sm { min-height: 36px; }
  .header-inner { gap: 8px; min-height: 58px; }
  .brand-lockup { font-size: 1.06rem; gap: 7px; }
  .brand-lockup img { width: 28px; height: 28px; }
  .header-actions { gap: 5px; }
  .pill-btn { padding: 6px 9px; font-size: 0.76rem; }
  .pill-user { max-width: 92px; }
  .search-form { flex-wrap: wrap; }
  .search-cat { max-width: none; flex: 1 1 140px; }
  .search-form input[type="search"] { flex: 1 1 160px; }
  .bucket-row {
    grid-template-columns: 74px 1fr 56px 18px;
    gap: 8px;
    padding: 10px 10px;
  }
  .bucket-amt { font-size: 0.82rem; }
  .bucket-count { font-size: 0.73rem; }
  .bid-ledger-card { padding: 14px; }
  .bid-ledger-status {
    width: 100%;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    padding-top: 8px;
    border-top: 1px dashed var(--border-hairline);
  }
}

.hero-grid > *,
.detail-grid > *,
.auction-grid > *,
.panel,
.auction-card,
.winners-section {
  min-width: 0;
}

/* Recent Winners Carousel */
.winners-section {
  margin-top: 32px;
}
.winners-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.winners-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}
.carousel-btn {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--bg-surface);
  color: var(--text-primary);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.carousel-btn:hover {
  background: var(--bg-subtle);
  border-color: var(--bg-ink);
}
.winners-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 2px 2px 8px;
}
.winners-track::-webkit-scrollbar { display: none; }

.winner-slide {
  flex: 0 0 min(300px, 82vw);
  scroll-snap-align: start;
  min-width: 0;
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
}
.winner-slide-media {
  aspect-ratio: 16 / 9;
  background: var(--bg-subtle);
  overflow: hidden;
}
.winner-slide-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.winner-slide-body {
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.winner-slide-box {
  background: var(--bg-ink);
  color: #FFFDF9;
  border-radius: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(196, 146, 50, 0.45);
}
.winner-slide-lbl {
  font-size: 0.7rem;
  color: var(--brand-gold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.winner-slide-amt {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 700;
  color: #FFFDF9;
}
.winner-slide-who {
  font-size: 0.79rem;
  color: #CFC7B8;
  margin-top: 3px;
}
@media (max-width: 540px) {
  .carousel-btn { display: none; }
}

@media (max-width: 380px) {
  .container { padding: 0 12px; }
  .brand-lockup { font-size: 0.96rem; gap: 6px; }
  .brand-lockup img { width: 24px; height: 24px; }
  .header-actions { gap: 4px; }
  .pill-btn { padding: 5px 7px; font-size: 0.72rem; }
  .pill-live-count { display: none; }
  .header-actions .btn-sm { padding: 6px 10px; font-size: 0.74rem; min-height: 32px; }
  .pill-wallet .plus { width: 15px; height: 15px; font-size: 0.72rem; }
  .pill-user { max-width: 72px; }
}

@media (min-width: 860px) {
  .desktop-nav { display: flex; }
  .bottom-nav { display: none; }
  .site-footer { padding-bottom: 32px; }
  .main-shell { padding-bottom: 56px; }
  .hero-grid { grid-template-columns: 1.35fr 0.65fr; }
  .detail-grid { grid-template-columns: 1.15fr 0.85fr; align-items: start; }
  .detail-sticky { position: sticky; top: 86px; }
}
