/* ==========================================================
   netbadel.com — main stylesheet
   palette: warm beige + deep terracotta accent
   typography: Cormorant Garamond + Inter
   ========================================================== */

:root {
  /* Colors */
  --bg: #F7F2E8;
  --bg-elevated: #FCFAF4;
  --bg-card: #FFFFFF;
  --ink: #1A1A1A;
  --ink-soft: #4A4540;
  --ink-faint: #8A857F;
  --rule: #E8E0D2;
  --rule-soft: #F0EBDF;
  --accent: #C0392B;
  --accent-deep: #962A1F;
  --accent-soft: #FDF1EF;
  --gold: #C4973A;
  --green: #2D5F3F;
  --shadow-sm: 0 1px 2px rgba(40, 30, 20, 0.04);
  --shadow-md: 0 4px 16px rgba(40, 30, 20, 0.06);
  --shadow-lg: 0 12px 40px rgba(40, 30, 20, 0.10);

  /* Typography */
  --font-display: 'Cormorant Garamond', 'Source Serif 4', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: ui-monospace, 'SF Mono', 'Cascadia Mono', monospace;

  /* Layout */
  --max-w: 1280px;
  --gap: 1.5rem;
  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 14px;

  /* Motion */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ===== reset ===== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font: inherit; }

/* ===== layout ===== */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ===== header ===== */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(180%) blur(8px);
  -webkit-backdrop-filter: saturate(180%) blur(8px);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 1.5rem;
}
.logo {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  white-space: nowrap;
}
.logo .logo-mark {
  width: 32px;
  height: 22px;
  display: inline-block;
  flex-shrink: 0;
  border-radius: 4px;
  vertical-align: middle;
}
.logo .tag {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-left: 0.5rem;
  display: none;
}
@media (min-width: 720px) {
  .logo .tag { display: inline; }
}

.nav-search {
  flex: 1;
  max-width: 480px;
  position: relative;
}
.nav-search input {
  width: 100%;
  padding: 0.7rem 1rem 0.7rem 2.5rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--bg-elevated);
  font-size: 0.92rem;
  transition: all 0.18s var(--ease);
}
.nav-search input:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--bg-card);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.nav-search::before {
  content: '';
  position: absolute;
  left: 1rem;
  top: 50%;
  width: 16px; height: 16px;
  transform: translateY(-50%);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238A857F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E") center/contain no-repeat;
  pointer-events: none;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.nav-toggle {
  display: inline-flex;
  background: var(--bg-elevated);
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 4px;
  font-size: 0.82rem;
  font-weight: 500;
}
.nav-toggle a {
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  color: var(--ink-soft);
  transition: all 0.15s var(--ease);
}
.nav-toggle a.active {
  background: var(--ink);
  color: var(--bg);
}

/* ===== hero (homepage) ===== */
.hero {
  padding: 3.5rem 0 2rem;
  border-bottom: 1px solid var(--rule);
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  right: -100px; top: -100px;
  width: 360px; height: 360px;
  background: radial-gradient(circle, var(--accent-soft) 0%, transparent 70%);
  pointer-events: none;
  opacity: 0.7;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.05;
  max-width: none;
  margin-bottom: 1rem;
}
.hero h1 em {
  font-style: italic;
  color: var(--accent);
}
.hero p {
  font-size: 1.05rem;
  color: var(--ink-soft);
  max-width: none;
}
@media (min-width: 720px) {
  .hero h1, .hero p { white-space: nowrap; }
  .hero p { font-size: 1.05rem; }
}

/* ===== filter bar ===== */
.filter-bar {
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
  position: sticky;
  top: 72px;
  z-index: 40;
  padding: 0.85rem 0;
}
.filter-bar .container { padding: 0 1.25rem; }

.filter-row {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  flex-wrap: wrap;
}

/* Categories (left) — wrap freely */
.filter-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  flex: 1 1 auto;
  min-width: 0;
  align-items: center;
}

/* Controls (right) — kept together */
.filter-controls {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
  flex-wrap: wrap;
}

/* Pill-shaped Filter/Sort controls — match Available/Sold toggle look */
.control-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  background: var(--bg-elevated);
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 0;
  height: 38px;
  transition: border-color 0.15s var(--ease);
  font-family: var(--font-body);
}
.control-pill:hover { border-color: var(--ink-faint); }
.control-pill:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.control-pill-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--ink-faint);
  padding: 0 0.5rem 0 1rem;
  pointer-events: none;
  white-space: nowrap;
}
.control-pill-select {
  appearance: none;
  -webkit-appearance: none;
  border: none;
  background: transparent;
  padding: 0 2.1rem 0 0;
  height: 100%;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  outline: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%231A1A1A' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  padding-right: 2.1rem;
}
/* Trim native select padding on Firefox/Chrome */
.control-pill-select::-ms-expand { display: none; }

/* Clear-all link styled like Available/Sold pill (subtle but tappable) */
.control-clear {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 1rem;
  border-radius: 999px;
  background: transparent;
  border: 1px solid var(--rule);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink-soft);
  white-space: nowrap;
  transition: all 0.15s var(--ease);
}
.control-clear::before {
  content: '×';
  margin-right: 0.4rem;
  font-size: 1.15em;
  line-height: 1;
  font-weight: 600;
}
.control-clear:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

/* Chips (categories) */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  height: 38px;
  padding: 0 1rem;
  border: 1px solid var(--rule);
  background: var(--bg-elevated);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink-soft);
  white-space: nowrap;
  transition: all 0.15s var(--ease);
  cursor: pointer;
  flex-shrink: 0;
}
.chip:hover { border-color: var(--ink-faint); color: var(--ink); }
.chip.active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}

/* === Responsive: tablet & below — controls drop to second line === */
@media (max-width: 900px) {
  .filter-row {
    flex-direction: column;
    align-items: stretch;
    gap: 0.7rem;
  }
  .filter-controls {
    padding-top: 0.5rem;
    border-top: 1px dashed var(--rule);
    width: 100%;
  }
}
@media (max-width: 480px) {
  .control-pill,
  .control-clear,
  .chip { height: 36px; }
  .control-pill-label { padding-left: 0.85rem; }
  .control-pill-select { font-size: 0.85rem; }
}

/* ===== listings grid ===== */
.listings {
  padding: 2rem 0 4rem;
}
.listings-meta {
  font-size: 0.85rem;
  color: var(--ink-faint);
  margin-bottom: 1.5rem;
  font-variant-numeric: tabular-nums;
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}
@media (min-width: 640px)  { .grid { grid-template-columns: repeat(4, 1fr); gap: 1rem; } }
@media (min-width: 960px)  { .grid { grid-template-columns: repeat(5, 1fr); gap: 1rem; } }
@media (min-width: 1200px) { .grid { grid-template-columns: repeat(6, 1fr); gap: 1rem; } }

.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  border: 1px solid transparent;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--rule);
}
.card-photo {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--rule-soft);
  overflow: hidden;
}
.card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out), opacity 0.18s var(--ease-out);
}
.card:hover .card-photo img { transform: scale(1.04); }

.card-photo-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%; height: 100%;
  color: var(--ink-faint);
  font-size: 0.85rem;
}

/* === Card photo navigation arrows (homepage cards) === */
.card-photo-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--ink);
  box-shadow: 0 2px 8px rgba(20, 15, 10, 0.18);
  transition: opacity 0.18s var(--ease), transform 0.15s var(--ease), background 0.15s var(--ease);
  z-index: 5;
  opacity: 0;
  border: none;
  padding: 0;
}
.card:hover .card-photo-nav,
.card-photo-nav:focus-visible {
  opacity: 1;
}
.card-photo-nav:hover {
  background: white;
  transform: translateY(-50%) scale(1.08);
}
.card-photo-nav:active { transform: translateY(-50%) scale(0.95); }
.card-photo-nav svg { width: 16px; height: 16px; }
.card-photo-prev { left: 0.5rem; }
.card-photo-next { right: 0.5rem; }

/* Dot indicators */
.card-photo-dots {
  position: absolute;
  bottom: 0.55rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 4px;
  padding: 4px 7px;
  background: rgba(20, 15, 10, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 999px;
  z-index: 4;
  opacity: 0;
  transition: opacity 0.18s var(--ease);
  pointer-events: none;
}
.card:hover .card-photo-dots { opacity: 1; }
.card-photo-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  transition: background 0.15s var(--ease), transform 0.15s var(--ease);
}
.card-photo-dot.active {
  background: white;
  transform: scale(1.3);
}

/* On touch devices, dots and arrows always visible (no hover state) */
@media (hover: none) {
  .card-photo-nav,
  .card-photo-dots { opacity: 1; }
  .card-photo-nav { width: 30px; height: 30px; }
}

/* On very small screens, hide arrows on cards (swipe still works) but keep dots */
@media (max-width: 480px) {
  .card-photo-nav { display: none; }
}

.badges {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}
.badge {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.3rem 0.55rem;
  border-radius: 4px;
  background: var(--bg-card);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.badge.new { background: var(--accent); color: white; }
.badge.pending { background: var(--gold); color: white; }
.badge.sold { background: var(--ink); color: var(--bg); }
.badge.price-drop {
  background: var(--green);
  color: white;
  animation: pulse-drop 2s ease-in-out infinite;
}
@keyframes pulse-drop {
  0%, 100% { box-shadow: 0 0 0 0 rgba(45, 95, 63, 0.4); }
  50% { box-shadow: 0 0 0 6px rgba(45, 95, 63, 0); }
}

.card-body {
  padding: 0.6rem 0.7rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.card-title {
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.3em;
}
.card-price {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  display: block;
}
.card-price-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  min-width: 0;
}
.card-price-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}
.card-price-old {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--ink-faint);
  text-decoration: line-through;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  font-variant-numeric: tabular-nums;
}
.card-price-pct {
  display: inline-flex;
  align-items: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--green);
  background: #EAF7EE;
  padding: 0.12rem 0.4rem;
  border-radius: 3px;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}
.card-open-to {
  display: inline-flex;
  align-items: center;
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 0.02em;
  margin-top: 0.15rem;
}
.card-condition {
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-faint);
  align-self: flex-start;
  flex-shrink: 0;
  padding-top: 0.4rem;
}

.card-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-top: 0.25rem;
  gap: 0.3rem;
  flex-wrap: wrap;
}

/* sold cards desaturate */
.card.is-sold .card-photo img {
  filter: grayscale(0.6) brightness(0.95);
}
.card.is-sold .card-price {
  color: var(--ink-faint);
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}

/* ===== empty state ===== */
.empty {
  text-align: center;
  padding: 4rem 1rem;
  color: var(--ink-faint);
}
.empty h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--ink-soft);
  margin-bottom: 0.5rem;
}

/* ===== detail page ===== */
.detail {
  padding: 2rem 0 5rem;
}
.detail-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin-bottom: 1.5rem;
  transition: color 0.15s var(--ease);
}
.detail-back:hover { color: var(--accent); }
.detail-back::before { content: '←'; font-size: 1.1em; }

.detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
@media (min-width: 900px) {
  .detail-grid {
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
    align-items: start;
  }
}

.gallery {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.gallery-main {
  aspect-ratio: 1 / 1;
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  cursor: zoom-in;
}
.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 0.4rem;
}
@media (max-width: 600px) {
  .gallery-thumbs { grid-template-columns: repeat(4, 1fr); }
}
.gallery-thumb {
  aspect-ratio: 1 / 1;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.15s var(--ease);
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb.active { border-color: var(--accent); }

/* === Gallery navigation arrows (detail page) === */
.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--ink);
  box-shadow: 0 4px 14px rgba(20, 15, 10, 0.15);
  transition: transform 0.18s var(--ease), background 0.15s var(--ease), opacity 0.18s var(--ease);
  z-index: 5;
  opacity: 0;
}
.gallery-main:hover .gallery-nav,
.gallery-nav:focus-visible {
  opacity: 1;
}
.gallery-nav:hover {
  background: white;
  transform: translateY(-50%) scale(1.06);
}
.gallery-nav:active { transform: translateY(-50%) scale(0.96); }
.gallery-nav svg { width: 20px; height: 20px; }
.gallery-nav-prev { left: 0.85rem; }
.gallery-nav-next { right: 0.85rem; }

.gallery-counter {
  position: absolute;
  bottom: 0.85rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(20, 15, 10, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: white;
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
  z-index: 5;
  letter-spacing: 0.02em;
}

/* On touch devices (mobile/tablet), arrows are always visible */
@media (hover: none) {
  .gallery-nav { opacity: 1; }
  .gallery-nav-prev { left: 0.5rem; }
  .gallery-nav-next { right: 0.5rem; }
}

@media (min-width: 900px) {
  .detail-info-wrap {
    position: sticky;
    top: 100px;
  }
}

.detail-status-row {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.detail-status-row .badge { font-size: 0.7rem; }

.detail h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 0.85rem;
}
.detail-price {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 3.6rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1;
  margin-bottom: 1rem;
  font-variant-numeric: tabular-nums;
}
.detail-price-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
}
.detail-price-wrap .detail-price { margin-bottom: 0; }
.detail-price-old {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.detail-price-old .strike {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--ink-faint);
  text-decoration: line-through;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  font-variant-numeric: tabular-nums;
}
.detail-price-old .savings {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: #EAF7EE;
  padding: 0.25rem 0.55rem;
  border-radius: 4px;
}
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.75rem;
  padding: 1rem 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin: 1.5rem 0;
}
.meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.meta-item dt {
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--ink-faint);
}
.meta-item dd {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
}

.detail-description {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink-soft);
  white-space: pre-wrap;
  margin-bottom: 1.5rem;
}

/* === Detail page actions (under photos on desktop, under info on mobile) === */
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
  align-items: stretch;
}
.detail-actions .btn,
.detail-actions .share-menu {
  flex: 1 1 calc(50% - 0.3rem);
  min-width: 140px;
}
.detail-actions .action-buy {
  flex: 1 1 100%;
  min-height: 56px;
  font-size: 1rem;
}
.detail-actions .share-menu { display: flex; }
.detail-actions .share-menu .btn { flex: 1; }
@media (min-width: 720px) {
  .detail-actions .action-buy { flex: 1 1 100%; }
  .detail-actions .action-offer,
  .detail-actions .action-exchange { flex: 1 1 calc(50% - 0.3rem); }
  .detail-actions .action-whatsapp,
  .detail-actions .share-menu { flex: 1 1 calc(50% - 0.3rem); }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  transition: all 0.18s var(--ease);
  cursor: pointer;
  border: 1px solid transparent;
  text-align: center;
  text-decoration: none;
}
.btn-primary {
  background: var(--accent);
  color: white;
}
.btn-primary:hover {
  background: var(--accent-deep);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(192, 57, 43, 0.25);
}
.btn-offer {
  background: var(--gold);
  color: white;
}
.btn-offer:hover {
  background: #A37D2A;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(196, 151, 58, 0.25);
}
.btn-exchange {
  background: var(--green);
  color: white;
}
.btn-exchange:hover {
  background: #224A30;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(45, 95, 63, 0.25);
}
.btn-whatsapp {
  background: #25D366;
  color: white;
}
.btn-whatsapp:hover {
  background: #1FBA59;
  transform: translateY(-1px);
}
.btn-secondary {
  background: var(--bg-card);
  border-color: var(--rule);
  color: var(--ink);
}
.btn-secondary:hover {
  border-color: var(--ink);
}
.btn-ghost {
  background: transparent;
  color: var(--ink-soft);
  font-weight: 500;
}
.btn-ghost:hover { color: var(--accent); }
.btn-block { width: 100%; }
.btn-icon { width: 16px; height: 16px; flex-shrink: 0; }

/* "Listed for friend" badge */
.badge.friend {
  background: var(--bg-card);
  color: var(--ink-soft);
  border: 1px solid var(--rule);
}

/* "Open to" note under price */
.detail-flex-note {
  margin: 0.5rem 0 1rem;
  padding: 0.65rem 0.85rem;
  background: var(--bg-elevated);
  border-left: 3px solid var(--accent);
  border-radius: 4px;
  font-size: 0.88rem;
  color: var(--ink-soft);
  line-height: 1.5;
}
.detail-flex-note strong {
  color: var(--ink);
  font-weight: 500;
}

/* Detail-left wraps gallery + actions */
.detail-left {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ===== contact form modal ===== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(20, 15, 10, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 1rem;
  animation: fadeIn 0.2s var(--ease-out);
}
.modal-backdrop.open { display: flex; }
.modal {
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  max-width: 480px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2rem;
  position: relative;
  animation: slideUp 0.3s var(--ease-out);
}
.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--ink-faint);
  transition: all 0.15s var(--ease);
}
.modal-close:hover { background: var(--rule); color: var(--ink); }
.modal h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 500;
  margin-bottom: 0.3rem;
}
.modal-subtitle {
  font-size: 0.9rem;
  color: var(--ink-faint);
  margin-bottom: 1.5rem;
}

/* ===== inquiry option cards (in contact modal) ===== */
.inquiry-options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.inquiry-option {
  cursor: pointer;
  display: block;
  position: relative;
}
.inquiry-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.inquiry-option-card {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.75rem 0.95rem;
  border: 1.5px solid var(--rule);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  transition: all 0.15s var(--ease);
}
.inquiry-option:hover .inquiry-option-card {
  border-color: var(--ink-faint);
}
.inquiry-option input[type="radio"]:checked + .inquiry-option-card {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.inquiry-option input[type="radio"]:focus-visible + .inquiry-option-card {
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.inquiry-option-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
}
.inquiry-option-desc {
  font-size: 0.82rem;
  color: var(--ink-faint);
}
.inquiry-option input[type="radio"]:checked + .inquiry-option-card .inquiry-option-title {
  color: var(--accent-deep);
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* ===== forms ===== */
.field {
  margin-bottom: 1rem;
}
.field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink-soft);
  margin-bottom: 0.4rem;
  letter-spacing: -0.005em;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  font-size: 0.95rem;
  color: var(--ink);
  transition: all 0.15s var(--ease);
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.field textarea { resize: vertical; min-height: 100px; font-family: inherit; }
.field-error {
  font-size: 0.8rem;
  color: var(--accent);
  margin-top: 0.3rem;
}
.honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.alert {
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}
.alert-success { background: #EAF7EE; color: #1F5C2E; border: 1px solid #C8E6CF; }
.alert-error   { background: var(--accent-soft); color: var(--accent-deep); border: 1px solid #F4C7C2; }
.alert-info    { background: #FDF6E3; color: #7C5A18; border: 1px solid #F0E1B8; }

/* ===== footer ===== */
.site-footer {
  border-top: 1px solid var(--rule);
  padding: 2.5rem 0 2rem;
  background: var(--bg-elevated);
  margin-top: 4rem;
}
.site-footer .container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
  text-align: center;
}
.site-footer .footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.site-footer .logo { font-size: 1.4rem; }
.site-footer .logo .logo-mark { width: 18px; height: 18px; border-radius: 3px; }
.site-footer .footer-text {
  font-size: 0.88rem;
  color: var(--ink-soft);
  max-width: 50ch;
  line-height: 1.55;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
}
.footer-links a {
  font-size: 0.85rem;
  color: var(--ink-soft);
  font-weight: 500;
  transition: color 0.15s var(--ease);
}
.footer-links a:hover { color: var(--accent); }
.footer-copy {
  font-size: 0.8rem;
  color: var(--ink-faint);
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  width: 100%;
  max-width: 240px;
}

@media (min-width: 720px) {
  .site-footer .container {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .site-footer .footer-brand { align-items: flex-start; }
  .site-footer .footer-copy {
    border-top: none;
    padding-top: 0;
    width: auto;
    text-align: right;
  }
}

/* ===== share menu ===== */
.share-menu {
  position: relative;
  display: inline-block;
}
.share-popover {
  position: absolute;
  bottom: calc(100% + 0.5rem);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 0.4rem;
  box-shadow: var(--shadow-lg);
  display: none;
  flex-direction: column;
  min-width: 180px;
  z-index: 30;
  opacity: 0;
  transition: all 0.2s var(--ease-out);
}
.share-popover.open {
  display: flex;
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.share-popover button {
  text-align: left;
  padding: 0.55rem 0.75rem;
  font-size: 0.88rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.share-popover button:hover { background: var(--rule-soft); }

/* ===== back to top button ===== */
.back-to-top {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(20, 15, 10, 0.18);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: all 0.22s var(--ease-out);
  z-index: 60;
}
.back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.back-to-top:hover {
  background: var(--accent);
  transform: translateY(-2px);
}
@media (max-width: 600px) {
  .back-to-top { width: 40px; height: 40px; bottom: 1rem; right: 1rem; }
}

/* ===== utilities ===== */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
.text-faint { color: var(--ink-faint); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-4 { margin-top: 2rem; }

/* page reveal animation */
.fade-in {
  animation: fadeInUp 0.5s var(--ease-out) backwards;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15, 12, 8, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 1rem;
  cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.lightbox-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  color: white;
  font-size: 1.5rem;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  z-index: 10;
}
.lightbox-close:hover { background: rgba(255,255,255,0.2); }

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s var(--ease), transform 0.15s var(--ease);
  z-index: 10;
}
.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-50%) scale(1.06);
}
.lightbox-nav svg { width: 24px; height: 24px; }
.lightbox-nav-prev { left: 1.5rem; }
.lightbox-nav-next { right: 1.5rem; }
.lightbox-counter {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  background: rgba(255,255,255,0.1);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
}
@media (max-width: 600px) {
  .lightbox-nav { width: 42px; height: 42px; }
  .lightbox-nav-prev { left: 0.75rem; }
  .lightbox-nav-next { right: 0.75rem; }
}


/* =====================================================
   GRID — card sizes
   ===================================================== */

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}
@media (min-width: 640px)  { .grid { grid-template-columns: repeat(4, 1fr); gap: 1rem; } }
@media (min-width: 960px)  { .grid { grid-template-columns: repeat(5, 1fr); gap: 1rem; } }
@media (min-width: 1200px) { .grid { grid-template-columns: repeat(6, 1fr); gap: 1rem; } }

.card-body {
  padding: 0.6rem 0.7rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.card-title {
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.3em;
}
.card-price {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  display: block;
}

/* =====================================================
   SHOWCASE HOMEPAGE
   ===================================================== */

.showcase {
  padding: 2rem 0 3rem;
}
.showcase-row { margin-bottom: 3rem; }
.showcase-row:last-child { margin-bottom: 0; }

.showcase-header {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--rule);
}
.showcase-title {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.5vw, 1.7rem);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.showcase-count {
  font-size: 0.8rem;
  color: var(--ink-faint);
  font-weight: 500;
}
.showcase-see-all {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
  transition: gap 0.15s var(--ease);
}
.showcase-see-all:hover { gap: 0.5rem; }
.showcase-see-all svg { width: 14px; height: 14px; }

.showcase-track-wrap {
  position: relative;
  padding: 0 28px;
}
.showcase-track {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 1rem;
  overflow-x: auto;
  overflow-y: visible;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 0.75rem;
  align-items: stretch;
}
.showcase-track::-webkit-scrollbar { display: none; }

.showcase-track > * {
  flex: 0 0 160px !important;
  width: 160px !important;
  max-width: 160px !important;
  min-width: 0;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
}
@media (min-width: 480px) {
  .showcase-track > * { flex: 0 0 190px !important; width: 190px !important; max-width: 190px !important; }
}
@media (min-width: 640px) {
  .showcase-track > * { flex: 0 0 220px !important; width: 220px !important; max-width: 220px !important; }
}
@media (min-width: 1024px) {
  .showcase-track > * { flex: 0 0 250px !important; width: 250px !important; max-width: 250px !important; }
}

.showcase-more-card {
  display: flex !important;
  align-items: center;
  justify-content: center;
  background: var(--bg-elevated);
  border: 2px dashed var(--rule);
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: border-color 0.15s var(--ease), background 0.15s var(--ease);
  min-height: 200px;
}
.showcase-more-card:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.showcase-more-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  text-align: center;
}
.showcase-more-count {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}
.showcase-more-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.4;
}
.showcase-more-card svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
  margin-top: 0.25rem;
}

.showcase-track .card-body { padding: 0.6rem 0.7rem 0.75rem; }
.showcase-track .card-title { font-size: 0.8rem; -webkit-line-clamp: 2; display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.3; }
.showcase-track .card-price { font-size: 1.2rem; }
.showcase-track .card-condition { font-size: 0.7rem; }
.showcase-track .card-open-to { display: none; }

/* Track arrows */
.track-nav {
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1.5px solid var(--rule);
  box-shadow: var(--shadow-md);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s var(--ease), opacity 0.2s;
  z-index: 2;
}
.track-nav:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.track-nav svg { width: 15px; height: 15px; flex-shrink: 0; }
.track-prev { left: 0; }
.track-next { right: 0; }

/* Hide arrows on touch devices */
@media (hover: none) {
  .track-nav { display: none !important; }
  .showcase-track-wrap { padding: 0 0.25rem; }
}

/* =====================================================
   PAGINATION
   ===================================================== */

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 3rem 0 1rem;
  flex-wrap: wrap;
}
.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 0.75rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--font-body);
  text-decoration: none;
  border: 2px solid var(--rule);
  background: var(--bg-card);
  color: var(--ink);
  transition: all 0.15s var(--ease);
  box-shadow: var(--shadow-sm);
}
.page-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
  transform: translateY(-1px);
}
.page-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
  box-shadow: 0 4px 12px rgba(192,57,43,0.35);
  transform: translateY(-1px);
}
.page-btn-prev, .page-btn-next {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}
.page-btn-prev:hover, .page-btn-next:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}
.page-btn-prev svg, .page-btn-next svg { width: 16px; height: 16px; }

/* =====================================================
   REJECTION STATUS
   ===================================================== */

.admin-status-pill.s-rejected {
  background: rgba(192,57,43,0.12);
  color: var(--accent);
  border: 1px solid rgba(192,57,43,0.3);
}
.admin-status-pill.s-pending_review {
  background: rgba(196,151,58,0.12);
  color: var(--gold);
  border: 1px solid rgba(196,151,58,0.3);
}
.pinned-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold);
  background: rgba(196,151,58,0.1);
  border: 1px solid rgba(196,151,58,0.3);
  border-radius: 4px;
  padding: 0.15rem 0.4rem;
  margin-left: 0.5rem;
  vertical-align: middle;
}
.showcase-row.is-pinned .showcase-title::before { content: '📌 '; font-size: 0.9em; }

/* =====================================================
   ADMIN SIDEBAR LAYOUT
   ===================================================== */

.admin-sidebar-layout { display: block; }

.admin-topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 56px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--rule);
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0 1.25rem;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}
.admin-topbar .logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
  text-decoration: none;
  margin-right: auto;
}
.admin-topbar .logo-mark { width: 28px; height: 28px; flex-shrink: 0; }
.admin-badge-tag {
  background: var(--accent);
  color: white;
  padding: 0.12rem 0.45rem;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.admin-topbar-right { display: flex; align-items: center; gap: 0.75rem; }
.admin-topbar-link {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-sm);
  transition: all 0.15s var(--ease);
}
.admin-topbar-link:hover { color: var(--ink); background: var(--rule-soft); }
.admin-topbar-link.admin-logout:hover { color: var(--accent); }
.admin-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ink);
  padding: 0.35rem;
  border-radius: var(--radius-sm);
}

.admin-sidebar {
  position: fixed;
  top: 56px; left: 0; bottom: 0;
  width: 220px;
  background: var(--bg-card);
  border-right: 1px solid var(--rule);
  overflow-y: auto;
  z-index: 90;
  padding: 1rem 0 2rem;
}
.admin-sidenav { display: flex; flex-direction: column; }
.admin-sidenav-section {
  padding: 0.25rem 0.75rem 0.75rem;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 0.25rem;
}
.admin-sidenav-section:last-child { border-bottom: none; }
.admin-sidenav-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
  padding: 0.5rem 0.5rem 0.35rem;
}
.admin-sidenav-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.65rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  transition: all 0.12s var(--ease);
  position: relative;
}
.admin-sidenav-item:hover { color: var(--ink); background: var(--rule-soft); }
.admin-sidenav-item.active { color: var(--ink); background: var(--rule-soft); font-weight: 600; }
.admin-sidenav-item.active::before {
  content: '';
  position: absolute;
  left: 0; top: 20%; bottom: 20%;
  width: 3px;
  background: var(--accent);
  border-radius: 0 2px 2px 0;
}
.admin-sidenav-item svg { flex-shrink: 0; opacity: 0.7; }
.admin-sidenav-item.active svg { opacity: 1; }
.admin-sidenav-badge {
  margin-left: auto;
  background: var(--accent);
  color: white;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.1rem 0.4rem;
  border-radius: 10px;
  min-width: 18px;
  text-align: center;
}

.admin-content { margin-left: 220px; padding-top: 56px; min-height: 100vh; }
.admin-content-inner { padding: 2rem 2.5rem 4rem; max-width: 1100px; }
.admin-sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 85;
}

@media (max-width: 768px) {
  .admin-sidebar { transform: translateX(-100%); transition: transform 0.25s var(--ease); }
  .sidebar-open .admin-sidebar { transform: translateX(0); box-shadow: var(--shadow-xl); }
  .sidebar-open .admin-sidebar-backdrop { display: block; }
  .admin-content { margin-left: 0; }
  .admin-content-inner { padding: 1.25rem 1rem 3rem; }
  .admin-menu-toggle { display: flex; }
  .admin-topbar-right .admin-topbar-link:first-child { display: none; }
}

/* =====================================================
   AUTH PAGES
   ===================================================== */

.auth-page {
  min-height: calc(100vh - 120px);
  display: flex;
  align-items: center;
  padding: 3rem 0;
}
.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  max-width: 480px;
  width: 100%;
  margin: 0 auto;
  box-shadow: var(--shadow-md);
}
.auth-card h1 {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
}
.auth-form { margin-top: 1.5rem; }
.auth-form .field { margin-bottom: 1.1rem; }
.auth-terms { font-size: 0.82rem; color: var(--ink-faint); margin-bottom: 1rem; }
.auth-terms a { color: var(--accent); }
.auth-switch { text-align: center; margin-top: 1.25rem; font-size: 0.88rem; color: var(--ink-soft); }
.auth-switch a { color: var(--accent); font-weight: 500; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
@media (max-width: 480px) {
  .field-row { grid-template-columns: 1fr; }
  .auth-card { padding: 1.75rem 1.25rem; }
}
.btn-block { width: 100%; justify-content: center; }

/* =====================================================
   SELLER PUBLIC PROFILE
   ===================================================== */

.seller-profile-hero {
  padding: 2.5rem 0 2rem;
  border-bottom: 1px solid var(--rule);
  background: var(--bg-card);
}
.seller-profile-info { display: flex; align-items: flex-start; gap: 1.25rem; }
.seller-avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 700;
  font-family: var(--font-display);
  flex-shrink: 0;
}
.seller-profile-info h1 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 500;
  margin: 0;
}
@media (max-width: 480px) {
  .seller-profile-info { gap: 0.75rem; }
  .seller-avatar { width: 48px; height: 48px; font-size: 1.2rem; }
}

/* =====================================================
   HEADER AUTH LINKS
   ===================================================== */

.header-auth {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}
.header-auth-link {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-sm);
  transition: color 0.15s var(--ease);
  white-space: nowrap;
}
.header-auth-link:hover { color: var(--ink); }
.header-auth-out:hover { color: var(--accent); }
.header-auth-btn {
  font-size: 0.85rem;
  font-weight: 600;
  color: white;
  background: var(--accent);
  text-decoration: none;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius);
  transition: opacity 0.15s var(--ease);
  white-space: nowrap;
}
.header-auth-btn:hover { opacity: 0.88; }

/* =====================================================
   HERO CTA
   ===================================================== */

.hero-cta {
  display: flex;
  align-items: center;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}
.hero-invite {
  font-size: 0.9rem;
  color: var(--ink-soft);
  font-style: italic;
  white-space: nowrap;
}
.hero-btn {
  font-size: 0.88rem;
  padding: 0.5rem 1.2rem;
  border-radius: var(--radius);
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

/* =====================================================
   MOBILE — single clean block, no conflicts
   ===================================================== */

@media (max-width: 640px) {

  /* ── Header: CSS grid, two rows ── */
  .site-header .container {
    display: grid !important;
    grid-template-columns: 1fr auto !important;
    grid-template-rows: auto auto !important;
    height: auto !important;
    padding: 0 !important;
    gap: 0 !important;
    align-items: center;
  }
  .logo {
    grid-column: 1;
    grid-row: 1;
    font-size: 1.6rem;
    padding: 0.55rem 0 0.55rem 1rem;
  }
  .logo .logo-mark { width: 22px; height: 22px; }
  .logo .tag { display: inline !important; font-size: 0.72rem; letter-spacing: 0.06em; }
  .nav-hamburger { display: flex !important; }
  /* Hamburger sits at col 2 row 1, vertically centred */
  .nav-actions {
    grid-column: 2;
    grid-row: 1;
    display: flex !important;
    align-items: center;
    padding-right: 0.75rem;
  }
  .nav-actions .nav-link,
  .nav-actions .nav-seller-name,
  .nav-actions .nav-signout,
  .nav-actions .nav-cta,
  .nav-actions .nav-toggle { display: none; }
  .header-auth {
    grid-column: 2;
    grid-row: 1;
    padding: 0.6rem 1rem 0.6rem 0;
    gap: 0.3rem;
    margin-left: 0;
  }
  .header-auth-link {
    font-size: 0.72rem;
    padding: 0.25rem 0.4rem;
  }
  .header-auth-btn {
    font-size: 0.72rem;
    padding: 0.3rem 0.65rem;
  }
  .nav-search {
    grid-column: 1 / -1;
    grid-row: 2;
    flex: none !important;
    max-width: 100% !important;
    width: 100%;
    padding: 0 1rem 0.5rem;
    box-sizing: border-box;
  }
  .nav-search input {
    padding: 0.5rem 0.75rem 0.5rem 2.2rem;
    font-size: 0.85rem;
  }

  /* ── Hero ── */
  .hero { padding: 1.5rem 0 1.25rem; }
  .hero h1 { font-size: clamp(1.4rem, 6vw, 1.9rem); white-space: normal; }
  .hero p  { font-size: 0.85rem; white-space: normal; }
  .hero-cta {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 0.5rem;
    margin-top: 0.9rem;
  }
  .hero-invite { font-size: 0.75rem; }
  .hero-btn    { font-size: 0.75rem; padding: 0.35rem 0.75rem; }

  /* ── Categories: wrap to multiple lines on mobile ── */
  .filter-categories {
    flex-wrap: wrap;
    overflow-x: visible;
    gap: 0.35rem;
    padding-bottom: 0;
  }
  .chip {
    font-size: 0.72rem;
    padding: 0.28rem 0.55rem;
    flex-shrink: 0;
    height: auto;
  }

  /* ── Filter controls ── */
  .filter-controls { flex-wrap: wrap; gap: 0.4rem; }
  .control-pill { font-size: 0.78rem; flex: 1; min-width: 110px; }

  /* ── Cards: 2 columns on mobile ── */
  .grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.6rem !important;
  }
  .card-title    { font-size: 0.75rem; min-height: 0; }
  .card-price    { font-size: 0.95rem !important; }
  .card-condition { font-size: 0.65rem; }
  .card-body     { padding: 0.45rem 0.5rem 0.55rem; }
  .card-open-to  { display: none; }

  /* ── Showcase ── */
  .showcase { padding: 1rem 0 2rem; }
  .showcase-row { margin-bottom: 2rem; }
  .showcase-title { font-size: 1.1rem; }
  .showcase-count { display: none; }
  .showcase-see-all { font-size: 0.78rem; }
  .showcase-track > * {
    flex: 0 0 130px !important;
    width: 130px !important;
    max-width: 130px !important;
  }
  .showcase-more-card { min-height: 160px; }
  .showcase-more-count { font-size: 1.5rem; }

  /* ── Pagination ── */
  .pagination { gap: 0.35rem; margin: 2rem 0 0.5rem; }
  .page-btn { min-width: 36px; height: 36px; font-size: 0.82rem; }
}

@media (max-width: 380px) {
  .grid { grid-template-columns: repeat(2, 1fr) !important; gap: 0.5rem !important; }
  .hero h1 { font-size: 1.3rem; }
  .hero-invite { display: none; } /* very small: just show button */
}

/* =====================================================
   FOOTER — fully centered, single column
   ===================================================== */

.site-footer {
  background: var(--bg-card);
  border-top: 1px solid var(--rule);
  padding: 3rem 0 2rem;
  margin-top: 4rem;
}
.footer-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1.5rem;
  box-sizing: border-box;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
}
.footer-logo .logo-mark { width: 26px; height: 26px; }
.footer-tagline {
  font-size: 0.88rem;
  color: var(--ink-soft);
  line-height: 1.5;
  margin: 0;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.1rem 0;
}
.footer-nav a {
  font-size: 0.85rem;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 0.15rem 0.6rem;
  transition: color 0.12s var(--ease);
  white-space: nowrap;
}
.footer-nav a:hover { color: var(--accent); }
.footer-sep {
  color: var(--rule);
  font-size: 0.85rem;
  user-select: none;
}
.footer-copy {
  font-size: 0.78rem;
  color: var(--ink-faint);
  margin: 0;
}
@media (max-width: 640px) {
  .footer-logo { font-size: 1.35rem; }
  .footer-nav a { font-size: 0.78rem; padding: 0.15rem 0.45rem; }
  .site-footer { padding: 2rem 0 1.5rem; }
}

/* =====================================================
   STATIC PAGES (About, FAQ, How it works, Privacy)
   ===================================================== */

.static-page { padding: 3rem 0 5rem; }
.static-container { max-width: 720px; }
.static-page h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 500;
  margin-bottom: 0.5rem;
}
.static-lead {
  font-size: 1.05rem;
  color: var(--ink-soft);
  margin-bottom: 2rem;
  line-height: 1.6;
}
.static-body { line-height: 1.8; }
.static-body h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 500;
  margin: 2rem 0 0.5rem;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 0.4rem;
}
.static-body p { margin-bottom: 1rem; }

/* How it works steps */
.howto-steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin: 2.5rem 0;
}
.howto-step {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  position: relative;
}
.howto-icon {
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.howto-num {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--rule);
  line-height: 1;
}
.howto-step h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.howto-step p { font-size: 0.88rem; color: var(--ink-soft); margin: 0; line-height: 1.6; }
.howto-cta {
  display: flex;
  gap: 1rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}
@media (max-width: 640px) {
  .howto-steps { grid-template-columns: 1fr; }
}

/* FAQ accordion */
.faq-list { margin: 2rem 0; }
.faq-item {
  border-bottom: 1px solid var(--rule);
}
.faq-item:first-child { border-top: 1px solid var(--rule); }
.faq-q {
  font-size: 0.97rem;
  font-weight: 600;
  padding: 1.1rem 0;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--ink);
  user-select: none;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q::after {
  content: '+';
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--ink-faint);
  flex-shrink: 0;
  margin-left: 1rem;
  transition: transform 0.2s var(--ease);
}
details[open] .faq-q::after {
  content: '−';
}
.faq-a {
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.7;
  padding-bottom: 1.1rem;
}
.faq-footer {
  margin-top: 2rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.faq-footer a { color: var(--accent); }

/* =====================================================
   SAFE MEETUP TIPS — item page callout
   ===================================================== */

.meetup-tips {
  border: 1px solid rgba(192,57,43,0.2);
  border-radius: var(--radius);
  background: rgba(192,57,43,0.04);
  margin: 1.25rem 0;
  overflow: hidden;
}
.meetup-tips-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  font-size: 0.87rem;
  font-weight: 600;
  color: var(--accent);
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.meetup-tips-header::-webkit-details-marker { display: none; }
.meetup-tips-header svg { flex-shrink: 0; }
.meetup-tips-toggle {
  margin-left: auto;
  font-size: 1.2rem;
  font-weight: 300;
  color: var(--accent);
  transition: transform 0.2s var(--ease);
}
details[open] .meetup-tips-toggle {
  content: '−';
  transform: rotate(45deg);
}
.meetup-tips-list {
  margin: 0;
  padding: 0 1rem 0.9rem 1rem;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.meetup-tips-list li {
  font-size: 0.83rem;
  color: var(--ink-soft);
  line-height: 1.5;
  padding-left: 1.1rem;
  position: relative;
}
.meetup-tips-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.75rem;
  top: 0.1rem;
  font-weight: 700;
}

/* =====================================================
   SWAP AI EVALUATOR — item page
   ===================================================== */

/* Swap hints — always visible, fading */
.swap-hint {
  font-size: 0.78rem;
  color: rgba(100, 90, 80, 0.45);
  margin-top: 0.35rem;
  line-height: 1.5;
  font-style: italic;
}
.swap-hint-inline {
  font-size: 0.78rem;
  color: rgba(100, 90, 80, 0.4);
  font-weight: 400;
  font-style: italic;
}

/* Photo upload area */
.swap-photo-upload {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 1rem;
  border: 1.5px dashed rgba(196,151,58,0.4);
  border-radius: var(--radius);
  background: rgba(196,151,58,0.03);
  cursor: pointer;
  text-align: center;
  transition: border-color 0.15s var(--ease);
}
.swap-photo-upload:hover { border-color: #C4973A; }
.swap-photo-upload svg { color: rgba(196,151,58,0.6); }
.swap-photo-upload-text {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.swap-photo-upload-sub {
  font-size: 0.75rem;
  color: var(--ink-faint);
}
.swap-photo-tip {
  font-size: 0.72rem;
  font-weight: 600;
  color: #C4973A;
  background: rgba(196,151,58,0.1);
  border: 1px solid rgba(196,151,58,0.25);
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  margin-top: 0.25rem;
}
.swap-photo-name {
  font-size: 0.78rem;
  color: #C4973A;
  margin-top: 0.35rem;
  font-style: italic;
}

.swap-eval-wrap {
  margin-top: 0.75rem;
}
.swap-eval-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #C4973A;
  background: rgba(196,151,58,0.08);
  border: 1px solid rgba(196,151,58,0.3);
  border-radius: var(--radius);
  padding: 0.4rem 0.85rem;
  cursor: pointer;
  transition: background 0.15s var(--ease);
}
.swap-eval-btn:hover { background: rgba(196,151,58,0.15); }
.swap-eval-btn:disabled { opacity: 0.6; cursor: wait; }

.swap-eval-result {
  margin-top: 0.65rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  font-size: 0.83rem;
  line-height: 1.5;
}
.swap-eval-ok {
  background: rgba(196,151,58,0.06);
  border: 1px solid rgba(196,151,58,0.25);
}
.swap-eval-error {
  background: rgba(192,57,43,0.06);
  border: 1px solid rgba(192,57,43,0.2);
  color: var(--accent);
}
.swap-eval-range {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}
.swap-eval-label {
  font-size: 0.75rem;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.swap-eval-price {
  font-size: 1.15rem;
  font-weight: 700;
  color: #C4973A;
  font-family: var(--font-display);
}
.swap-eval-conf {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
}
.conf-high   { background: rgba(39,174,96,0.12);  color: #27ae60; border: 1px solid rgba(39,174,96,0.3); }
.conf-medium { background: rgba(196,151,58,0.12); color: #C4973A; border: 1px solid rgba(196,151,58,0.3); }
.conf-low    { background: rgba(192,57,43,0.1);   color: var(--accent); border: 1px solid rgba(192,57,43,0.25); }
.swap-eval-notes {
  color: var(--ink-soft);
  margin: 0 0 0.5rem;
  font-size: 0.82rem;
}
.swap-eval-disclaimer {
  color: var(--ink-faint);
  font-size: 0.73rem;
  font-style: italic;
  margin: 0;
  line-height: 1.4;
}

/* =====================================================
   NAV — logged-in state
   ===================================================== */

.nav-link {
  font-size: 0.88rem;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 0.3rem 0.5rem;
  border-radius: var(--radius);
  transition: color 0.12s var(--ease);
  white-space: nowrap;
}
.nav-link:hover { color: var(--ink); }
.nav-signout { color: var(--ink-faint); font-size: 0.82rem; }
.nav-signout:hover { color: var(--accent); }
.nav-seller-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  padding: 0.3rem 0.5rem;
  border-radius: var(--radius);
  white-space: nowrap;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline-block;
}
.nav-seller-name:hover { color: var(--accent); }
.nav-cta { white-space: nowrap; }

/* =====================================================
   EXPIRY BADGES — seller dashboard
   ===================================================== */

.expiry-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  white-space: nowrap;
}
.expiry-active {
  color: #27ae60;
  background: rgba(39,174,96,0.1);
  border: 1px solid rgba(39,174,96,0.25);
}
.expiry-soon {
  color: #e67e22;
  background: rgba(230,126,34,0.1);
  border: 1px solid rgba(230,126,34,0.3);
}
.expiry-expired {
  color: var(--accent);
  background: rgba(192,57,43,0.08);
  border: 1px solid rgba(192,57,43,0.25);
}

/* =====================================================
   PAGE LAYOUT — side nav + main content
   ===================================================== */

.page-body {
  display: flex;
  min-height: calc(100vh - 72px);
  max-width: 1400px;
  margin: 0 auto;
}

/* ── SIDE NAV ── */
.side-nav {
  width: 180px;
  flex-shrink: 0;
  border-right: 1px solid var(--rule);
  padding: 1.25rem 0;
  position: sticky;
  top: 72px;
  height: calc(100vh - 72px);
  overflow-y: auto;
}
.side-nav-title {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding: 0 1rem 0.65rem;
}
.side-nav-item {
  display: block;
  padding: 0.5rem 1rem;
  font-size: 0.83rem;
  color: var(--ink-soft);
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: color 0.12s var(--ease), background 0.12s var(--ease);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.side-nav-item:hover { color: var(--ink); background: rgba(0,0,0,0.02); }
.side-nav-item.active {
  color: var(--accent);
  font-weight: 600;
  border-left-color: var(--accent);
  background: rgba(192,57,43,0.04);
}

/* ── MAIN CONTENT ── */
.main-content {
  flex: 1;
  min-width: 0;
  padding: 0 1.5rem;
}

/* ── HERO ── */
.hero-section {
  padding: 1.75rem 0 1.4rem;
}
.hero-line {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 400;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 0.55rem;
  white-space: nowrap;
  display: block;
}
.rword-outer {
  display: inline-block;
  overflow: hidden;
  height: 1.2em;
  line-height: 1.2em;
  vertical-align: bottom;
  position: relative;
}
.rword-inner {
  position: absolute;
  left: 0; top: 0;
  display: flex;
  flex-direction: column;
  will-change: transform;
}
.rword {
  height: 1.2em;
  line-height: 1.2em;
  color: var(--accent);
  font-style: italic;
  white-space: nowrap;
  display: block;
}
.hero-static { color: var(--ink); }
.hero-sub {
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.65;
  max-width: 100%;
  margin-bottom: 1.1rem;
  white-space: normal;
}
.hero-cta { display: flex; align-items: center; gap: 0.9rem; }
.hero-invite { font-size: 0.85rem; color: var(--ink-soft); font-style: italic; }

/* ── TRUST STRIP ── */
.trust-strip {
  overflow: hidden;
  position: relative;
  padding: 0.45rem 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin: 0 -1.5rem;
}
.trust-track {
  display: flex;
  gap: 2rem;
  width: max-content;
  animation: trustScroll 24s linear infinite;
}
.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--ink-soft);
  white-space: nowrap;
}
.trust-icon { display: flex; align-items: center; color: var(--accent); flex-shrink: 0; }
.trust-strip::before,
.trust-strip::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 48px;
  z-index: 2;
  pointer-events: none;
}
.trust-strip::before { left: 0; background: linear-gradient(to right, var(--bg), transparent); }
.trust-strip::after  { right: 0; background: linear-gradient(to left, var(--bg), transparent); }

@keyframes trustScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── FILTER ROW ── */
.filter-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--rule);
}
.filter-controls { display: flex; align-items: center; gap: 0.5rem; margin-left: auto; }

/* ── MOBILE CATEGORY DROPDOWN ── */
.mobile-cat-wrap { display: none; position: relative; }
.mobile-cat-btn {
  background: var(--bg-elevated);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 0.45rem 0.85rem;
  font-size: 0.83rem;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  font-family: var(--font-body);
}
.mobile-cat-btn.open { border-color: var(--accent); color: var(--accent); }
.mob-cat-arrow { font-size: 0.7rem; color: var(--ink-faint); transition: transform 0.2s; }
.mobile-cat-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  z-index: 100;
  width: 220px;
  max-height: 360px;
  overflow-y: auto;
}
.mobile-cat-dropdown.open { display: block; }
.mob-cat-item {
  display: block;
  padding: 0.6rem 1rem;
  font-size: 0.83rem;
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  transition: background 0.1s;
}
.mob-cat-item:last-child { border-bottom: none; }
.mob-cat-item:hover { background: var(--bg-elevated); color: var(--ink); }
.mob-cat-item.active { color: var(--accent); font-weight: 600; background: rgba(192,57,43,0.04); }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .side-nav { display: none; }
  .mobile-cat-wrap { display: block; }
  .main-content { padding: 0 1rem; }
  .hero-line { font-size: clamp(1.5rem, 6vw, 2rem); white-space: normal; }
  .trust-strip { margin: 0 -1rem; }
  .filter-controls { margin-left: 0; flex-wrap: wrap; }
  .filter-row { flex-wrap: wrap; gap: 0.5rem; padding: 0.65rem 0; }
  .page-body { display: block; }
  .mob-cat-item { display: block; text-align: left; }
  .mobile-cat-dropdown { left: 0; right: auto; }
}

/* =====================================================
   MOBILE HAMBURGER + DRAWER
   ===================================================== */

.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-shrink: 0;
}
.nav-hamburger span {
  display: block;
  height: 1.5px;
  background: var(--ink);
  border-radius: 1px;
  transition: all 0.2s var(--ease);
}

/* Overlay */
.drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 200;
  opacity: 0;
  transition: opacity 0.25s var(--ease);
}
.drawer-overlay.open {
  display: block;
  opacity: 1;
}

/* Drawer */
.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 280px;
  background: var(--bg-card);
  z-index: 201;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
  overflow-y: auto;
  box-shadow: -4px 0 24px rgba(0,0,0,0.12);
}
.drawer.open {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid var(--rule);
}
.drawer-logo {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--ink);
}
.drawer-close {
  background: none;
  border: none;
  font-size: 1rem;
  color: var(--ink-soft);
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
}

.drawer-section {
  border-bottom: 1px solid var(--rule);
  padding: 0.5rem 0;
}
.drawer-section-title {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding: 0.5rem 1.25rem 0.25rem;
}
.drawer-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.7rem 1.25rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
  text-decoration: none;
  transition: background 0.1s var(--ease), color 0.1s var(--ease);
}
.drawer-item:hover {
  background: var(--bg-elevated);
  color: var(--ink);
}
.drawer-item-accent {
  color: var(--accent);
  font-weight: 500;
}
.drawer-item-muted {
  color: var(--ink-faint);
  font-size: 0.85rem;
}

/* === Seller Store Tag === */
.store-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 2px 0 4px;
  background: var(--accent-soft);
  border: 0.5px solid #e8c8c0;
  border-radius: 20px;
  padding: 2px 8px 2px 3px;
  text-decoration: none;
  transition: background 0.1s;
  max-width: 100%;
  overflow: hidden;
}
.store-tag:hover { background: #fce8e5; }
.store-tag-logo {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 8px; color: #fff; font-weight: 600;
  flex-shrink: 0; overflow: hidden;
}
.store-tag-name {
  font-size: 13px;
  color: var(--accent-deep);
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
