/* ═══════════════════════════════════════════════════════════
   DXB DEALS — main.css
   noon.com design language + Material Design elevation
   ═══════════════════════════════════════════════════════════ */

/* ── Google Fonts ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Syne:wght@700;800&display=swap');

/* ── Reset ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-base);
  color: var(--text-primary);
  min-height: 100vh;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ════════════════════════════════════════════════════
   HEADER
   ════════════════════════════════════════════════════ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--header-bg);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-filter);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  height: 60px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.brand-icon {
  width: 36px;
  height: 36px;
  background: var(--accent);
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-family: 'Syne', sans-serif;
  font-size: 15px;
  font-weight: 800;
  color: var(--text-on-accent);
  flex-shrink: 0;
  letter-spacing: -0.5px;
}

.brand-text { display: flex; flex-direction: column; gap: 1px; }

.brand-name {
  font-family: 'Syne', sans-serif;
  font-size: 19px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.5px;
  line-height: 1;
}

.brand-tag {
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  line-height: 1;
}

.header-meta { display: flex; align-items: center; gap: 8px; margin-left: auto; }

.stat-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  background: var(--accent-bg);
  border: 1px solid var(--accent-dim);
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 12px;
  line-height: 1;
}

.stat-icon { font-size: 11px; }
.stat-label { color: var(--text-muted); }
.stat-count {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-bright);
  font-variant-numeric: tabular-nums;
}

.listing-count-badge {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 12px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}
.listing-count-badge span { font-weight: 700; color: var(--text-secondary); }

/* ════════════════════════════════════════════════════
   FILTER BAR
   ════════════════════════════════════════════════════ */
.filter-section {
  position: sticky;
  top: 60px;
  z-index: 100;
  background: var(--bg-filter);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-filter);
}

.filter-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Search */
.search-wrap { position: relative; }

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  color: var(--text-muted);
  pointer-events: none;
  line-height: 1;
}

.search-input {
  width: 100%;
  height: 42px;
  padding: 0 40px;
  background: var(--input-bg);
  border: 1.5px solid var(--input-border);
  border-radius: var(--radius-input);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}

.search-input::placeholder { color: var(--text-muted); }
.search-input:focus {
  border-color: var(--input-focus);
  box-shadow: 0 0 0 3px var(--accent-bg);
}

.clear-search {
  position: absolute;
  right: 11px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 11px;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s;
}
.clear-search.visible { opacity: 1; pointer-events: auto; }
.clear-search:hover { color: var(--text-primary); }

/* Dropdowns row */
.filters-row {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-group { display: flex; flex-direction: column; gap: 3px; }

.filter-label {
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  padding-left: 2px;
}

.filter-select {
  height: 36px;
  padding: 0 28px 0 10px;
  background: var(--input-bg);
  border: 1.5px solid var(--input-border);
  border-radius: var(--radius-btn);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  min-width: 148px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23999' stroke-width='1.5' stroke-linecap='round' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 9px center;
  background-clip: padding-box;
  transition: border-color .15s;
}
.filter-select:focus { border-color: var(--input-focus); }
.filter-select option { background: var(--bg-card); color: var(--text-primary); }

/* Warranty toggle */
.filter-group--toggle {
  height: 36px;
  padding: 0 11px;
  background: var(--input-bg);
  border: 1.5px solid var(--input-border);
  border-radius: var(--radius-btn);
  display: flex;
  align-items: center;
  cursor: pointer;
  margin-top: 12px;
  transition: border-color .15s;
}

.toggle-label { display: flex; align-items: center; gap: 7px; cursor: pointer; }
.toggle-input { display: none; }

.toggle-track {
  width: 30px; height: 17px;
  background: var(--border);
  border-radius: 100px;
  position: relative;
  flex-shrink: 0;
  transition: background .2s;
}
.toggle-thumb {
  position: absolute;
  top: 2px; left: 2px;
  width: 13px; height: 13px;
  background: #fff;
  border-radius: 50%;
  transition: transform .2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.toggle-input:checked ~ .toggle-track { background: var(--accent); }
.toggle-input:checked ~ .toggle-track .toggle-thumb { transform: translateX(13px); }

.toggle-text { font-size: 12px; font-weight: 500; color: var(--text-secondary); white-space: nowrap; }

/* Reset */
.reset-btn {
  height: 36px;
  padding: 0 14px;
  background: transparent;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-btn);
  color: var(--text-muted);
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all .15s;
  margin-left: auto;
  margin-top: 12px;
  white-space: nowrap;
}
.reset-btn:hover { border-color: var(--accent-dim); color: var(--accent-bright); }

/* Tags */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 6px; }

.tag-pill {
  padding: 5px 12px;
  background: var(--tag-bg);
  border: 1px solid var(--tag-border);
  border-radius: var(--radius-tag);
  color: var(--tag-text);
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  transition: all .12s;
  user-select: none;
  white-space: nowrap;
}
.tag-pill:hover { border-color: var(--accent-dim); color: var(--text-primary); }
.tag-pill.active {
  background: var(--tag-active-bg);
  border-color: var(--tag-active-bg);
  color: var(--tag-active-text);
}

/* Active chips */
.active-filters { display: flex; flex-wrap: wrap; gap: 5px; }

.active-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 6px 3px 10px;
  background: var(--accent-bg);
  border: 1px solid var(--accent-dim);
  border-radius: 100px;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-secondary);
}
.active-filter-chip button {
  width: 16px; height: 16px;
  background: var(--border);
  border: none;
  border-radius: 50%;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 10px;
  display: grid;
  place-items: center;
  transition: all .12s;
  padding: 0;
}
.active-filter-chip button:hover { background: var(--accent); color: var(--text-on-accent); }

/* ════════════════════════════════════════════════════
   CATEGORY NAV — noon horizontal strip
   ════════════════════════════════════════════════════ */
.category-nav {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
}
.category-nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
}
.category-nav-inner::-webkit-scrollbar { display: none; }

.cat-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 10px 14px 9px;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: all .14s;
  color: var(--text-muted);
  flex-shrink: 0;
  font-family: inherit;
  margin-bottom: -1px;
}
.cat-nav-btn:hover { color: var(--text-primary); }
.cat-nav-btn.active {
  color: var(--text-primary);
  border-bottom-color: var(--accent);
  font-weight: 600;
}
.cat-nav-icon { font-size: 20px; line-height: 1; }
.cat-nav-label { font-size: 10px; font-weight: 500; }

/* ════════════════════════════════════════════════════
   MAIN LISTINGS AREA
   ════════════════════════════════════════════════════ */
.listings-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px 20px 60px;
}

.results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.results-label { font-size: 12px; color: var(--text-muted); }
.results-label strong { color: var(--text-primary); font-weight: 600; }

/* ════════════════════════════════════════════════════
   PRODUCT GRID — noon.com 4-column
   ════════════════════════════════════════════════════ */
.listings-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

/* ════════════════════════════════════════════════════
   PRODUCT CARD — noon.com style
   ════════════════════════════════════════════════════ */
.listing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  transition: box-shadow .2s ease, transform .18s ease, border-color .15s;
  animation: fadeUp .22s ease both;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.listing-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
  border-color: var(--accent-dim);
}

/* ── Image zone — square, like noon ── */
.card-image-area {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  background: var(--bg-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid var(--border-subtle);
}

/* Category gradient background in image zone */
.card-image-area::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.06;
}

.listing-card[data-cat="Laptops & Computers"]  .card-image-area::before { background: #2563EB; }
.listing-card[data-cat="Phones & Wearables"]   .card-image-area::before { background: #7C3AED; }
.listing-card[data-cat="Monitors & Displays"]  .card-image-area::before { background: #0891B2; }
.listing-card[data-cat="Gaming & Consoles"]    .card-image-area::before { background: #059669; }
.listing-card[data-cat="Mobility & Vehicles"]  .card-image-area::before { background: #D97706; }
.listing-card[data-cat="PC Components"]        .card-image-area::before { background: #DC2626; }
.listing-card[data-cat="Musical Instruments"]  .card-image-area::before { background: #DB2777; }

/* Large category emoji as placeholder */
.card-image-icon {
  font-size: 56px;
  opacity: 0.22;
  user-select: none;
  line-height: 1;
  position: relative;
  z-index: 1;
}

/* Hover overlay */
.card-hover-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .18s;
  z-index: 2;
}
.listing-card:hover .card-hover-overlay { background: rgba(0,0,0,0.38); }

.card-hover-label {
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .18s, transform .18s;
  background: rgba(0,0,0,0.5);
  padding: 5px 12px;
  border-radius: 100px;
}
.listing-card:hover .card-hover-label { opacity: 1; transform: translateY(0); }

/* Floating badges on image */
.card-condition-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 3;
  padding: 3px 7px;
  border-radius: var(--radius-badge);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.5;
}
.card-condition-badge.is-new     { background: var(--badge-new);     color: var(--badge-new-text); }
.card-condition-badge.is-used    { background: var(--badge-used);    color: var(--badge-used-text); }
.card-condition-badge.is-urgent  { background: var(--badge-urgent);  color: var(--badge-urgent-text); }

.card-warranty-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
  padding: 3px 7px;
  background: var(--badge-warranty);
  color: var(--badge-warranty-text);
  border-radius: var(--radius-badge);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.5;
}

/* ── Card info ── */
.card-info {
  padding: 12px 12px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

/* Brand (noon: uppercase muted) */
.card-brand {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-bright);
  line-height: 1;
}

/* Title */
.card-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Spec pills */
.card-specs { display: flex; flex-wrap: wrap; gap: 4px; }

.spec-chip {
  padding: 2px 7px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  font-size: 10px;
  color: var(--text-muted);
  white-space: nowrap;
}
.spec-chip strong { color: var(--text-secondary); font-weight: 600; }

/* Tags */
.card-tags { display: flex; flex-wrap: wrap; gap: 3px; }

.card-tag {
  padding: 2px 8px;
  background: var(--tag-bg);
  border: 1px solid var(--tag-border);
  border-radius: var(--radius-tag);
  font-size: 10px;
  font-weight: 500;
  color: var(--tag-text);
  cursor: pointer;
  transition: all .12s;
  white-space: nowrap;
}
.card-tag:hover { border-color: var(--accent-dim); color: var(--text-primary); }

/* Price */
.card-price-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 2px;
}

.card-price-amount {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.3px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.card-price-currency {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}

.card-price-por {
  font-size: 12px;
  color: var(--text-muted);
  font-style: italic;
}

.card-price-neg {
  font-size: 10px;
  padding: 1px 6px;
  background: var(--accent-bg);
  border: 1px solid var(--accent-dim);
  border-radius: 3px;
  color: var(--text-secondary);
  font-weight: 600;
  align-self: center;
}

/* CTA Button — noon yellow */
.card-cta { padding: 8px 0 0; }

.card-cta-btn {
  width: 100%;
  height: 36px;
  background: var(--accent);
  border: none;
  border-radius: var(--radius-btn);
  color: var(--text-on-accent);
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: filter .12s, transform .1s;
  letter-spacing: 0.01em;
}
.card-cta-btn:hover { filter: brightness(1.07); }
.card-cta-btn:active { transform: scale(.99); }

/* Card meta row */
.card-meta-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 0 10px;
  border-top: 1px solid var(--border-subtle);
  margin-top: 6px;
}

.card-source-info {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  color: var(--text-muted);
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.card-source-dot {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--border);
  flex-shrink: 0;
}

.card-source-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-upvotes {
  font-size: 10px;
  color: var(--text-muted);
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.card-time {
  font-size: 10px;
  color: var(--text-muted);
  flex-shrink: 0;
  white-space: nowrap;
}

/* ════════════════════════════════════════════════════
   NO RESULTS
   ════════════════════════════════════════════════════ */
.no-results {
  text-align: center;
  padding: 72px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.no-results-icon { font-size: 40px; opacity: 0.2; }
.no-results p { font-size: 14px; color: var(--text-muted); }
.no-results button {
  padding: 10px 24px;
  background: var(--accent);
  border: none;
  border-radius: var(--radius-btn);
  color: var(--text-on-accent);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: filter .14s;
}
.no-results button:hover { filter: brightness(1.07); }

/* ════════════════════════════════════════════════════
   MODAL — product detail panel
   ════════════════════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  backdrop-filter: blur(4px);
  animation: fadeIn .15s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-modal);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-modal);
  animation: modalUp .2s cubic-bezier(.25,.8,.3,1);
}
@keyframes modalUp {
  from { opacity: 0; transform: translateY(12px) scale(.98); }
  to   { opacity: 1; transform: none; }
}

/* Accent bar */
.modal::before {
  content: '';
  display: block;
  height: 4px;
  background: var(--accent);
  border-radius: var(--radius-modal) var(--radius-modal) 0 0;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 28px;
  height: 28px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 12px;
  display: grid;
  place-items: center;
  transition: all .14s;
  z-index: 1;
}
.modal-close:hover { background: var(--accent); color: var(--text-on-accent); border-color: var(--accent); }

.modal-body { padding: 18px 22px 26px; }

/* Badges */
.modal-badges { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 10px; }

.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: var(--radius-badge);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.5;
}
.badge-new      { background: var(--badge-new);      color: var(--badge-new-text); }
.badge-used     { background: var(--badge-used);     color: var(--badge-used-text); }
.badge-warranty { background: var(--badge-warranty); color: var(--badge-warranty-text); }
.badge-urgent   { background: var(--badge-urgent);   color: var(--badge-urgent-text); }
.badge-type     { background: var(--accent-bg); color: var(--text-secondary); border: 1px solid var(--accent-dim); }

/* Title */
.modal-title {
  font-family: 'Syne', sans-serif;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.3px;
  color: var(--text-primary);
  padding-right: 30px;
  margin-bottom: 14px;
}

/* Price block */
.modal-price-block {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 14px 16px;
  background: var(--accent-bg);
  border: 1.5px solid var(--accent-dim);
  border-radius: 8px;
  margin-bottom: 20px;
}
.modal-price-amount {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -1px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.modal-price-currency { font-size: 14px; color: var(--text-muted); font-weight: 500; }
.modal-price-neg {
  font-size: 11px;
  font-weight: 700;
  background: var(--accent);
  color: var(--text-on-accent);
  padding: 3px 9px;
  border-radius: 4px;
}
.modal-price-por { font-size: 15px; color: var(--text-muted); font-style: italic; }

/* Sections */
.modal-section { margin-bottom: 18px; }

.modal-section-title {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.modal-section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-subtle);
}

/* Specs grid */
.modal-specs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }

.modal-spec-item {
  padding: 9px 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 7px;
}
.modal-spec-label {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 3px;
}
.modal-spec-value {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.3;
}

.modal-description {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.65;
}

.modal-tags { display: flex; flex-wrap: wrap; gap: 6px; }

/* CTA */
.modal-cta {
  display: flex;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
  margin-top: 20px;
}

.btn-primary {
  flex: 1;
  height: 44px;
  background: var(--accent);
  border: none;
  border-radius: var(--radius-btn);
  color: var(--text-on-accent);
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: filter .13s, transform .1s;
}
.btn-primary:hover { filter: brightness(1.07); }
.btn-primary:active { transform: scale(.99); }

.btn-secondary {
  height: 44px;
  padding: 0 18px;
  background: transparent;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-btn);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all .15s;
}
.btn-secondary:hover { border-color: var(--accent-dim); color: var(--text-primary); }

/* ════════════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════════════ */
.site-footer {
  background: var(--footer-bg);
  border-top: 1px solid var(--border-subtle);
  padding: 16px 20px;
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 10px;
  font-size: 12px;
  color: var(--footer-text, var(--text-muted));
}
.footer-brand {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 13px;
  color: var(--accent);
}
.footer-sep { opacity: 0.3; }
.footer-views strong {
  font-weight: 700;
  color: var(--accent-bright);
  font-variant-numeric: tabular-nums;
}

/* ════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .listings-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .header-inner { height: 52px; padding: 0 14px; }
  .brand-name { font-size: 17px; }
  .brand-tag { display: none; }
  .stat-label { display: none; }

  .filter-section { top: 52px; }
  .filter-inner { padding: 10px 14px; }
  .filter-select { min-width: 130px; }

  .listings-main { padding: 12px 14px 48px; }
  .listings-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }

  .card-image-icon { font-size: 40px; }
  .card-title { font-size: 12px; }
  .card-price-amount { font-size: 15px; }

  .modal { max-height: 96vh; }
  .modal-body { padding: 14px 16px 22px; }
  .modal-title { font-size: 16px; }
  .modal-specs-grid { grid-template-columns: 1fr 1fr; }
  .modal-price-amount { font-size: 22px; }
}

@media (max-width: 480px) {
  .listings-grid { grid-template-columns: repeat(2, 1fr); }
  .filter-select { min-width: calc(50% - 4px); flex: 1; }
  .reset-btn { margin-left: 0; }
  .modal-specs-grid { grid-template-columns: 1fr; }
}

/* ════════════════════════════════════════════════════
   SCROLLBAR + SELECTION
   ════════════════════════════════════════════════════ */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-dim); }
::selection { background: var(--accent-bg); }

/* ════════════════════════════════════════════════════
   REAL PRODUCT IMAGES
   ════════════════════════════════════════════════════ */

/* Actual photo fills the image area */
.card-real-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform .25s ease;
  z-index: 1;
}

.listing-card:hover .card-real-img { transform: scale(1.03); }

/* Fallback when image fails */
.card-img-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-surface);
}

/* Image count badge */
.card-img-count {
  position: absolute;
  bottom: 8px;
  right: 8px;
  z-index: 4;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 100px;
  backdrop-filter: blur(4px);
  letter-spacing: 0.03em;
}

/* Location chip on card */
.card-location {
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 2px;
  margin-top: -2px;
}

/* ════════════════════════════════════════════════════
   MODAL IMAGE GALLERY
   ════════════════════════════════════════════════════ */

.modal-gallery {
  background: #000;
  border-radius: var(--radius-modal) var(--radius-modal) 0 0;
  overflow: hidden;
}

.gallery-main {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  background: #111;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Prev / Next arrows */
.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  background: rgba(0,0,0,0.55);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background .15s;
  line-height: 1;
  padding: 0;
}

.gallery-arrow:hover { background: rgba(0,0,0,0.85); }
.gallery-prev { left: 10px; }
.gallery-next { right: 10px; }

/* Counter */
.gallery-counter {
  position: absolute;
  bottom: 10px;
  right: 12px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 100px;
  z-index: 10;
  font-variant-numeric: tabular-nums;
}

/* Thumbnails strip */
.gallery-thumbs {
  display: flex;
  gap: 3px;
  padding: 4px;
  background: #000;
  overflow-x: auto;
  scrollbar-width: none;
}

.gallery-thumbs::-webkit-scrollbar { display: none; }

.gallery-thumb {
  width: 60px;
  height: 50px;
  flex-shrink: 0;
  border: 2px solid transparent;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  background: #222;
  transition: border-color .13s;
  opacity: 0.65;
  transition: opacity .13s, border-color .13s;
}

.gallery-thumb.active {
  border-color: var(--accent);
  opacity: 1;
}

.gallery-thumb:hover { opacity: 1; }

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Modal content padding after gallery */
.modal-content-body {
  padding: 18px 22px 26px;
}

/* ════════════════════════════════════════════════════
   FREE / ZERO PRICE
   ════════════════════════════════════════════════════ */

.card-price-free {
  font-size: 13px;
  color: var(--badge-new-text);
  background: var(--badge-new);
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
}