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

:root {
  --bg: #f4f5f7;
  --surface: #ffffff;
  --surface-alt: #f8f9fa;
  --header-bg: #1e2328;
  --header-border: #2f363d;
  --ink: #22252a;
  --muted: #656d76;
  --line: #dfe3e8;
  --orange: #ff6600;
  --orange-hover: #e65c00;
  --orange-soft: #fff3eb;
  --green: #16803c;
  --green-bg: #e7f6ec;
  --red: #d92d20;
  --red-bg: #fef3f2;
  --blue: #0b6bcb;
  --radius: 6px;
  --shadow-sm: 0 1px 3px rgba(16, 24, 40, 0.06);
  --shadow-md: 0 6px 18px rgba(16, 24, 40, 0.09);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

h1, h2, h3, h4, p {
  margin-top: 0;
}

[hidden] {
  display: none !important;
}

.container {
  width: min(1240px, 94%);
  margin: 0 auto;
}

/* ==========================================================================
   Top Marketplace Header (mobile.de style)
   ========================================================================== */
.site-header {
  background: var(--header-bg);
  color: #ffffff;
  border-bottom: 3px solid var(--orange);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  width: min(1240px, 94%);
  margin: 0 auto;
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: -0.3px;
  color: #ffffff;
  flex-shrink: 0;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 6px;
  background: var(--orange);
  color: #ffffff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: -0.5px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text small {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.4px;
  color: #adb5bd;
  text-transform: uppercase;
  margin-top: 2px;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-header nav a {
  color: #dce1e6;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 13px;
  border-radius: 4px;
  transition: background 0.15s, color 0.15s;
}

.site-header nav a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.site-header nav a.active {
  background: rgba(255, 102, 0, 0.16);
  color: #ff8c3a;
}

.site-header nav .nav-saved {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #e9ecef;
}

.saved-badge {
  background: #343a40;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 10px;
}

.site-header nav .nav-admin {
  background: var(--orange);
  color: #ffffff;
  margin-left: 6px;
  padding: 8px 15px;
}

.site-header nav .nav-admin:hover {
  background: var(--orange-hover);
  color: #ffffff;
}

.menu-toggle {
  display: none;
  border: 1px solid #495057;
  background: transparent;
  color: #ffffff;
  font-size: 20px;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
}

/* ==========================================================================
   Buttons & Badges
   ========================================================================== */
.btn {
  border: 0;
  border-radius: 4px;
  padding: 10px 18px;
  font: 700 13px 'Inter', sans-serif;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: background 0.15s, border-color 0.15s, transform 0.1s;
}

.btn-primary {
  background: var(--orange);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--orange-hover);
}

.btn-secondary {
  background: #2b3137;
  color: #ffffff;
}

.btn-secondary:hover {
  background: #1c2024;
}

.btn-outline {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: #ffffff;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-outline-dark {
  background: #ffffff;
  border: 1px solid var(--line);
  color: var(--ink);
}

.btn-outline-dark:hover {
  border-color: #adb5bd;
  background: var(--surface-alt);
}

.btn-whatsapp {
  background: #1fa855;
  color: #ffffff !important;
}

.btn-whatsapp:hover {
  background: #198c46;
}

.btn-soft {
  background: #e9ecef;
  color: var(--ink);
}

.btn-soft:hover {
  background: #dee2e6;
}

.full-btn {
  width: 100%;
}

.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.9px;
  text-transform: uppercase;
  color: var(--orange);
  margin: 0 0 6px;
}

.muted {
  color: var(--muted);
}

/* ==========================================================================
   Breadcrumb & Page Top Strip
   ========================================================================== */
.breadcrumb-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: 11px 0;
  font-size: 12px;
  color: var(--muted);
}

.breadcrumb-inner {
  width: min(1240px, 94%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.breadcrumbs a:hover {
  color: var(--orange);
  text-decoration: underline;
}

.breadcrumbs strong {
  color: var(--ink);
  font-weight: 600;
}

/* ==========================================================================
   Homepage Search Hero (mobile.de style)
   ========================================================================== */
.market-hero {
  background: linear-gradient(100deg, rgba(20, 24, 29, 0.88) 0%, rgba(20, 24, 29, 0.68) 55%, rgba(20, 24, 29, 0.45) 100%),
              url('../images/hero-goldwing.jpg') center/cover no-repeat;
  color: #ffffff;
  padding: 46px 0 54px;
}

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

.market-hero h1 {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.8px;
  margin-bottom: 12px;
}

.market-hero h1 span {
  color: var(--orange);
}

.market-hero-lead {
  font-size: 15px;
  color: #dce1e6;
  max-width: 500px;
  margin-bottom: 20px;
}

.hero-trust-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-trust-pills span {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: #f8f9fa;
}

/* Quick Search Box Card */
.quick-search-card {
  background: var(--surface);
  color: var(--ink);
  border-radius: var(--radius);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

.search-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #eef0f3;
  border-bottom: 1px solid var(--line);
}

.search-tab {
  border: 0;
  background: transparent;
  padding: 14px 16px;
  font: 700 13px 'Inter', sans-serif;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: background 0.15s, color 0.15s;
}

.search-tab.active {
  background: var(--surface);
  color: var(--orange);
  border-bottom-color: var(--orange);
}

.quick-search-form {
  padding: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.quick-search-form .full-span {
  grid-column: 1 / -1;
}

.quick-search-form label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.quick-search-form input,
.quick-search-form select {
  width: 100%;
  margin-top: 5px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font: 500 13px 'Inter', sans-serif;
  color: var(--ink);
  background: #ffffff;
  outline: none;
}

.quick-search-form input:focus,
.quick-search-form select:focus {
  border-color: var(--orange);
}

.quick-search-submit {
  padding: 13px 18px;
  font-size: 14px;
}

/* ==========================================================================
   Homepage Sections & Category Tiles
   ========================================================================== */
.page-section {
  padding: 36px 0;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.section-header h2 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.4px;
  margin: 0;
}

.text-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--orange);
}

.text-link:hover {
  text-decoration: underline;
}

.quick-categories {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.quick-cat-tile {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.quick-cat-tile:hover {
  border-color: var(--orange);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.quick-cat-tag {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--orange);
  letter-spacing: 0.6px;
}

.quick-cat-tile h3 {
  font-size: 15px;
  font-weight: 700;
  margin: 0;
}

.quick-cat-tile p {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}

.trust-strip {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 24px 0;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.trust-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.trust-icon {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background: var(--orange-soft);
  color: var(--orange);
  display: grid;
  place-items: center;
  font-weight: 800;
  flex-shrink: 0;
}

.trust-item strong {
  display: block;
  font-size: 14px;
  margin-bottom: 2px;
}

.trust-item span {
  font-size: 12px;
  color: var(--muted);
}

/* ==========================================================================
   Marketplace Two-Column Catalog Layout (bikes.html & parts.html)
   ========================================================================== */
.market-header-banner {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}

.market-header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.market-header-banner h1 {
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 800;
  letter-spacing: -0.4px;
  margin: 0 0 4px;
}

.market-header-banner p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.catalog-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 20px;
  padding: 22px 0 48px;
  align-items: start;
}

/* Left Sidebar Filters */
.filter-sidebar {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  position: sticky;
  top: 84px;
}

.filter-head {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface-alt);
}

.filter-head h2 {
  font-size: 14px;
  font-weight: 800;
  margin: 0;
}

.filter-reset-btn {
  border: 0;
  background: none;
  color: var(--orange);
  font: 700 12px 'Inter', sans-serif;
  cursor: pointer;
  padding: 0;
}

.filter-reset-btn:hover {
  text-decoration: underline;
}

.filter-group {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.filter-group:last-of-type {
  border-bottom: 0;
}

.filter-group label.filter-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 7px;
}

.filter-group input[type="search"],
.filter-group input[type="number"],
.filter-group select {
  width: 100%;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font: 500 13px 'Inter', sans-serif;
  color: var(--ink);
  background: #ffffff;
  outline: none;
}

.filter-group input:focus,
.filter-group select:focus {
  border-color: var(--orange);
}

.filter-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.filter-pill-btn {
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--ink);
  padding: 6px 10px;
  border-radius: 4px;
  font: 600 12px 'Inter', sans-serif;
  cursor: pointer;
}

.filter-pill-btn.active {
  border-color: var(--orange);
  background: var(--orange-soft);
  color: var(--orange-hover);
}

.filter-footer {
  padding: 14px 16px;
  background: var(--surface-alt);
  border-top: 1px solid var(--line);
}

.filter-count-btn {
  width: 100%;
  padding: 11px;
  font-size: 13px;
}

.sidebar-crosslink {
  margin-top: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 15px 16px;
}

.sidebar-crosslink h3 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 5px;
}

.sidebar-crosslink p {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 12px;
}

/* Results Toolbar */
.results-toolbar {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 16px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  box-shadow: var(--shadow-sm);
}

.results-count {
  font-size: 14px;
  font-weight: 700;
}

.results-count span {
  color: var(--orange);
}

.results-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.sort-select {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font: 600 12px 'Inter', sans-serif;
  color: var(--ink);
  background: #ffffff;
}

.view-toggle {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
}

.view-btn {
  border: 0;
  background: #ffffff;
  color: var(--muted);
  padding: 6px 10px;
  font: 600 12px 'Inter', sans-serif;
  cursor: pointer;
}

.view-btn.active {
  background: var(--header-bg);
  color: #ffffff;
}

.mobile-filter-toggle {
  display: none;
}

/* ==========================================================================
   Horizontal Split Listing Card (mobile.de signature list layout)
   ========================================================================== */
.listing-feed {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.listing-feed.grid-mode {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.listing-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: 260px 1fr 195px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.listing-card:hover {
  border-color: #adb5bd;
  box-shadow: var(--shadow-md);
}

.listing-card.is-sold-out {
  background: #fcfcfd;
}

.listing-card.is-sold-out .listing-media img {
  filter: grayscale(40%) opacity(0.8);
}

.listing-media {
  position: relative;
  background: #e9ecef;
  min-height: 185px;
  height: 100%;
  overflow: hidden;
}

.listing-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.media-type-pill {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(30, 35, 40, 0.86);
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 3px;
}

.fav-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.94);
  color: #495057;
  font-size: 15px;
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 2;
  transition: transform 0.12s, color 0.12s;
}

.fav-btn:hover {
  transform: scale(1.08);
}

.fav-btn.saved {
  color: var(--red);
}

/* Bold SOLD OUT Overlay on Card Image */
.sold-out-ribbon {
  position: absolute;
  inset: auto 0 0 0;
  background: rgba(217, 45, 32, 0.94);
  color: #ffffff;
  text-align: center;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  padding: 6px 10px;
  z-index: 2;
}

.sold-out-stamp {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-10deg);
  background: rgba(217, 45, 32, 0.92);
  color: #ffffff;
  border: 2px solid #ffffff;
  padding: 6px 16px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  border-radius: 4px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  z-index: 3;
  pointer-events: none;
}

.listing-body {
  padding: 15px 18px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.listing-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.listing-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
  margin: 0;
}

.listing-card:hover .listing-title {
  color: var(--orange);
}

.listing-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  color: #343a40;
  margin-bottom: 10px;
}

.spec-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.spec-dot {
  color: #adb5bd;
}

.listing-desc {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.listing-meta-footer {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid #eef0f3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 11.5px;
  color: var(--muted);
  flex-wrap: wrap;
}

.dealer-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 600;
  color: #495057;
}

.dealer-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
}

/* Right Price & CTA Column */
.listing-aside {
  padding: 15px 16px;
  border-left: 1px solid #eef0f3;
  background: #fafbfc;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}

.price-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
}

.listing-price {
  font-size: 21px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.4px;
}

.listing-card.is-sold-out .listing-price {
  color: var(--muted);
  text-decoration: line-through;
}

.price-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 3px;
  background: var(--green-bg);
  color: var(--green);
}

.status-sold-pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 3px;
  background: var(--red-bg);
  color: var(--red);
  border: 1px solid #fecdca;
}

.status-available-pill {
  font-size: 11px;
  font-weight: 600;
  color: var(--green);
}

.aside-actions {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.aside-actions .btn {
  width: 100%;
  padding: 9px 12px;
  font-size: 12px;
}

/* Grid Mode Overrides */
.listing-feed.grid-mode .listing-card {
  grid-template-columns: 1fr;
  grid-template-rows: 210px 1fr auto;
}

.listing-feed.grid-mode .listing-media {
  height: 210px;
}

.listing-feed.grid-mode .listing-aside {
  border-left: 0;
  border-top: 1px solid #eef0f3;
  flex-direction: row;
  align-items: center;
}

.listing-feed.grid-mode .aside-actions {
  width: 140px;
  flex-shrink: 0;
}

/* Homepage Product Grid (3-column compact cards) */
.home-product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.home-product-grid .listing-card {
  grid-template-columns: 1fr;
  grid-template-rows: 200px 1fr auto;
}

.home-product-grid .listing-media {
  height: 200px;
}

.home-product-grid .listing-aside {
  border-left: 0;
  border-top: 1px solid #eef0f3;
  flex-direction: row;
  align-items: center;
}

.home-product-grid .aside-actions {
  width: 135px;
  flex-shrink: 0;
}

.empty-state {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 42px 20px;
  text-align: center;
  color: var(--muted);
  grid-column: 1 / -1;
}

/* ==========================================================================
   Modal Details Dialog
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(18, 22, 26, 0.72);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  background: var(--surface);
  width: 100%;
  max-width: 900px;
  max-height: 92vh;
  overflow-y: auto;
  border-radius: var(--radius);
  position: relative;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 20px;
  cursor: pointer;
  display: grid;
  place-items: center;
  z-index: 10;
}

.modal-close:hover {
  background: var(--header-bg);
  color: #ffffff;
}

.modal-body {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
}

.modal-media {
  position: relative;
  background: #1b2025;
  min-height: 360px;
}

.modal-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--header-bg);
  color: #ffffff;
  padding: 5px 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
  border-radius: 3px;
}

.modal-sold-banner {
  position: absolute;
  inset: auto 0 0 0;
  background: var(--red);
  color: #ffffff;
  text-align: center;
  padding: 10px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.modal-details {
  padding: 26px;
  display: flex;
  flex-direction: column;
}

.modal-details h2 {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 12px;
}

.modal-price-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}

.modal-price {
  font-size: 24px;
  font-weight: 800;
  color: var(--ink);
}

.modal-stock-badge {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  background: var(--green-bg);
  color: var(--green);
}

.modal-stock-badge.is-sold {
  background: var(--red-bg);
  color: var(--red);
  border: 1px solid #fecdca;
}

.modal-specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 10px 12px;
  margin-bottom: 14px;
  font-size: 12px;
}

.modal-specs-grid div span {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

.modal-specs-grid div strong {
  color: var(--ink);
}

.modal-description {
  font-size: 13px;
  color: #343a40;
  line-height: 1.65;
  margin-bottom: 16px;
}

.modal-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.modal-inquiry-box {
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 15px;
  margin-top: auto;
}

.modal-inquiry-box h3 {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 10px;
}

.modal-inquiry-box input,
.modal-inquiry-box textarea {
  width: 100%;
  margin-bottom: 8px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font: 12.5px 'Inter', sans-serif;
  background: #ffffff;
}

.inquiry-feedback {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--green);
  font-weight: 700;
}

/* ==========================================================================
   About & Contact Pages
   ========================================================================== */
.content-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}

.two-col-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.contact-form label,
.login-card label,
.admin-panel label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 14px;
}

.contact-form input,
.contact-form textarea,
.login-card input,
.admin-panel input,
.admin-panel select,
.admin-panel textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font: 500 13px 'Inter', sans-serif;
  color: var(--ink);
  background: #ffffff;
  outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus,
.login-card input:focus,
.admin-panel input:focus,
.admin-panel select:focus,
.admin-panel textarea:focus {
  border-color: var(--orange);
}

/* ==========================================================================
   Footer (Large Marketplace Footer)
   ========================================================================== */
.footer {
  background: var(--header-bg);
  color: #adb5bd;
  padding: 58px 0 28px;
  border-top: 3px solid var(--orange);
  margin-top: 24px;
}

.footer-grid {
  width: min(1240px, 94%);
  margin: 0 auto 42px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.1fr;
  gap: 36px;
}

.footer-brand-col p {
  margin: 14px 0 18px;
  font-size: 13.5px;
  line-height: 1.65;
  color: #ced4da;
  max-width: 340px;
}

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

.footer-col h4 {
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  margin: 0 0 14px;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  color: #ced4da;
  font-size: 13px;
  font-weight: 500;
  transition: color 0.15s;
}

.footer-col a:hover {
  color: var(--orange);
}

.footer-contact-note {
  font-size: 12.5px;
  color: #9aa3ac;
  line-height: 1.6;
}

.footer-bottom {
  width: min(1240px, 94%);
  margin: 0 auto;
  padding-top: 22px;
  border-top: 1px solid var(--header-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12.5px;
}

.footer-bottom p {
  margin: 0;
  color: #9aa3ac;
}

.footer-bottom-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: #dce1e6;
  font-weight: 600;
}

.footer-bottom-links a:hover {
  color: var(--orange);
}

@media (max-width: 960px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }
}

@media (max-width: 560px) {
  .footer {
    padding: 44px 0 24px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* ==========================================================================
   Admin Login & Dashboard
   ========================================================================== */
.admin-body {
  min-height: 100vh;
  background: var(--bg);
  display: grid;
  place-items: center;
  padding: 24px 0;
}

.login-wrap {
  width: min(430px, 92%);
}

.login-brand {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.login-brand .brand {
  color: var(--ink);
}

.login-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-md);
}

.login-card h1 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 6px;
}

.hint {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  margin: 14px 0 0;
}

.error {
  color: var(--red);
  font-size: 12px;
  font-weight: 600;
}

.dashboard-body {
  background: var(--bg);
  min-height: 100vh;
}

.admin-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 245px;
  background: var(--header-bg);
  color: #ffffff;
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-right: 1px solid var(--header-border);
}

.admin-sidebar .brand {
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--header-border);
}

.admin-sidebar .eyebrow {
  margin: 4px 0 4px 8px;
  font-size: 10px;
}

.admin-sidebar > a:not(.brand) {
  padding: 10px 12px;
  border-radius: 4px;
  color: #ced4da;
  font-size: 13px;
  font-weight: 600;
  transition: background 0.15s, color 0.15s;
}

.admin-sidebar > a:not(.brand):hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.admin-sidebar .side-active {
  background: var(--orange) !important;
  color: #ffffff !important;
}

.logout-btn {
  margin-top: auto;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  color: #f8f9fa;
  text-align: left;
  padding: 10px 12px;
  font: 600 13px 'Inter', sans-serif;
  cursor: pointer;
}

.logout-btn:hover {
  background: rgba(217, 45, 32, 0.25);
}

.admin-main {
  margin-left: 245px;
  padding: 28px 3%;
}

.admin-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.admin-top h1 {
  font-size: 26px;
  font-weight: 800;
  margin: 0;
}

.admin-top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-pill {
  font-size: 11px;
  letter-spacing: 0.8px;
  background: var(--orange-soft);
  color: var(--orange-hover);
  border: 1px solid #ffd5b8;
  padding: 6px 12px;
  border-radius: 4px;
  font-weight: 800;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
}

.stat-card span {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

.stat-card strong {
  display: block;
  font-size: 26px;
  font-weight: 800;
  margin-top: 4px;
}

.stat-card.stat-sold strong {
  color: var(--red);
}

.admin-content-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(420px, 1.35fr);
  gap: 20px;
  align-items: start;
}

.admin-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}

.admin-panel h2 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 16px;
}

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

.sold-out-checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--red-bg);
  border: 1px solid #fecdca;
  padding: 11px 12px;
  border-radius: 4px;
  margin-bottom: 14px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  color: var(--red);
}

.sold-out-checkbox-row input {
  width: 17px !important;
  height: 17px;
  margin: 0 !important;
  accent-color: var(--red);
}

.admin-img-preview {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--line);
  margin-bottom: 14px;
  background: #f1f3f5;
}

.form-actions {
  display: flex;
  gap: 10px;
}

.success {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--green);
  margin: 10px 0 0;
}

.admin-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.admin-tab-group {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.admin-tab-btn {
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--ink);
  padding: 6px 11px;
  border-radius: 4px;
  font: 600 12px 'Inter', sans-serif;
  cursor: pointer;
}

.admin-tab-btn.active {
  background: var(--header-bg);
  color: #ffffff;
  border-color: var(--header-bg);
}

.admin-search-input {
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font: 500 12.5px 'Inter', sans-serif;
  min-width: 190px;
}

.admin-listings {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.admin-list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.admin-list-item.is-sold-out {
  background: #fff9f9;
  border-color: #fecdca;
}

.admin-thumb-wrap {
  position: relative;
  width: 82px;
  height: 64px;
  flex-shrink: 0;
  border-radius: 4px;
  overflow: hidden;
  background: #e9ecef;
}

.admin-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-thumb-sold {
  position: absolute;
  inset: auto 0 0 0;
  background: var(--red);
  color: #ffffff;
  font-size: 9px;
  font-weight: 800;
  text-align: center;
  padding: 2px 0;
  letter-spacing: 0.7px;
}

.admin-list-copy {
  flex: 1;
  min-width: 0;
}

.admin-list-badges {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.admin-type-pill {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 3px;
  background: #eef0f3;
  color: #343a40;
}

.admin-list-copy strong {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.admin-list-copy small {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.item-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.item-actions button {
  border: 1px solid transparent;
  padding: 7px 10px;
  border-radius: 4px;
  font: 700 11.5px 'Inter', sans-serif;
  cursor: pointer;
}

.sold-toggle-btn {
  background: var(--red-bg);
  color: var(--red);
  border-color: #fecdca !important;
}

.sold-toggle-btn.is-sold {
  background: var(--green-bg);
  color: var(--green);
  border-color: #b7ebc9 !important;
}

.edit-btn {
  background: #edf2ff;
  color: #1d4ed8;
}

.delete-btn {
  background: #f8e5e2;
  color: #a42d22;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
  .catalog-layout {
    grid-template-columns: 250px 1fr;
  }
  .listing-card {
    grid-template-columns: 210px 1fr 170px;
  }
  .admin-content-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .menu-toggle {
    display: inline-flex;
  }
  .site-header nav {
    display: none;
    position: absolute;
    top: 66px;
    left: 0;
    right: 0;
    background: var(--header-bg);
    border-top: 1px solid var(--header-border);
    border-bottom: 2px solid var(--orange);
    padding: 14px 4%;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }
  .site-header nav.open {
    display: flex;
  }
  .site-header nav .nav-admin {
    margin-left: 0;
    text-align: center;
  }
  .market-hero-grid,
  .two-col-grid,
  .trust-grid {
    grid-template-columns: 1fr;
  }
  .quick-categories {
    grid-template-columns: repeat(2, 1fr);
  }
  .home-product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .catalog-layout {
    grid-template-columns: 1fr;
  }
  .mobile-filter-toggle {
    display: inline-flex;
  }
  .filter-sidebar {
    position: static;
    display: none;
  }
  .filter-sidebar.mobile-open {
    display: block;
  }
  .listing-card {
    grid-template-columns: 1fr;
  }
  .listing-media {
    height: 210px;
  }
  .listing-aside {
    border-left: 0;
    border-top: 1px solid #eef0f3;
    flex-direction: row;
    align-items: center;
  }
  .aside-actions {
    width: 155px;
    flex-shrink: 0;
  }
  .listing-feed.grid-mode {
    grid-template-columns: 1fr;
  }
  .modal-body {
    grid-template-columns: 1fr;
  }
  .modal-media {
    min-height: 230px;
    height: 230px;
  }
  .admin-sidebar {
    position: static;
    width: auto;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    padding: 12px 4%;
  }
  .admin-sidebar .brand {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: 0;
  }
  .admin-sidebar .eyebrow,
  .admin-sidebar > a:not(.brand) {
    display: none;
  }
  .logout-btn {
    margin: 0 0 0 auto;
  }
  .admin-main {
    margin-left: 0;
    padding: 20px 4%;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .quick-search-form,
  .quick-categories,
  .home-product-grid,
  .form-grid-2 {
    grid-template-columns: 1fr;
  }
  .listing-aside {
    flex-direction: column;
    align-items: stretch;
  }
  .aside-actions {
    width: 100%;
  }
  .admin-list-item {
    flex-wrap: wrap;
  }
  .item-actions {
    width: 100%;
    justify-content: flex-end;
  }
}

/* ==========================================================================
   Dedicated Listing Detail Page (Pictures Up, Information Down)
   ========================================================================== */
.detail-page {
  padding: 24px 0 48px;
}

.detail-gallery-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  margin-bottom: 22px;
}

.detail-main-media {
  position: relative;
  background: #1b2025;
  height: 460px;
}

.detail-main-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-thumbs {
  display: flex;
  gap: 10px;
  padding: 12px;
  background: var(--surface-alt);
  border-top: 1px solid var(--line);
  overflow-x: auto;
}

.detail-thumb-btn {
  width: 92px;
  height: 68px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  background: #1b2025;
  flex-shrink: 0;
}

.detail-thumb-btn.active {
  border-color: var(--orange);
}

.detail-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-info-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 26px;
}

.detail-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  padding-bottom: 18px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}

.detail-title {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 0;
}

.detail-price-box {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.detail-price {
  font-size: 28px;
  font-weight: 800;
  color: var(--ink);
}

.detail-specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 14px 16px;
  margin-bottom: 22px;
  font-size: 13px;
}

.detail-specs-grid div span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-bottom: 2px;
}

.detail-specs-grid div strong {
  color: var(--ink);
}

.detail-description-block {
  margin-bottom: 22px;
}

.detail-description-block h2 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

.detail-description-block p {
  font-size: 14px;
  color: #343a40;
  line-height: 1.7;
  margin-bottom: 0;
  white-space: pre-line;
}

.detail-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.detail-inquiry-box {
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 18px;
}

.detail-inquiry-box h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 12px;
}

.detail-inquiry-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.detail-inquiry-box input,
.detail-inquiry-box textarea {
  width: 100%;
  margin-bottom: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font: 13px 'Inter', sans-serif;
  background: #ffffff;
}

@media (max-width: 860px) {
  .detail-main-media {
    height: 300px;
  }
  .detail-price-box {
    align-items: flex-start;
  }
  .detail-inquiry-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Extended Admin Management Styles
   ========================================================================== */
.admin-nav-badge {
  display: inline-block;
  margin-left: auto;
  background: var(--orange);
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 10px;
  float: right;
}

.admin-shortcuts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}

.admin-shortcut-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s, transform 0.15s;
}

.admin-shortcut-card:hover {
  border-color: var(--orange);
  transform: translateY(-1px);
}

.admin-shortcut-card strong {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.admin-shortcut-card small {
  font-size: 12px;
  color: var(--muted);
}

.admin-inline-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-subhead {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 10px;
}

.admin-tool-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-alt);
  flex-wrap: wrap;
}

.admin-list-item.is-unread {
  border-left: 3px solid var(--orange);
  background: #fffcfa;
}

.item-actions a.edit-btn {
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 4px;
  font: 700 11.5px 'Inter', sans-serif;
}

@media (max-width: 1024px) {
  .admin-shortcuts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .admin-shortcuts-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Drag & Drop Multi-Image Uploader & Preview Grid
   ========================================================================== */
.image-upload-field {
  margin-bottom: 14px;
}

.image-dropzone {
  margin-top: 6px;
  border: 2px dashed #cbd2d9;
  border-radius: var(--radius);
  background: var(--surface-alt);
  padding: 22px 16px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.image-dropzone:hover,
.image-dropzone:focus-visible {
  border-color: var(--orange);
  background: var(--orange-soft);
  outline: none;
}

.image-dropzone.is-dragover {
  border-color: var(--orange);
  background: var(--orange-soft);
  box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.15);
}

.dropzone-icon {
  font-size: 26px;
  line-height: 1;
  margin-bottom: 6px;
}

.dropzone-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 4px;
}

.dropzone-title span {
  color: var(--orange);
  text-decoration: underline;
}

.dropzone-hint {
  font-size: 11.5px;
  color: var(--muted);
  margin: 0;
}

.image-preview-wrap {
  margin-top: 12px;
  padding: 12px;
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.image-preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
}

.image-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
  gap: 10px;
}

.image-preview-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 5px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.image-preview-card.is-cover {
  border-color: var(--orange);
  box-shadow: 0 0 0 1px var(--orange);
}

.image-preview-thumb {
  position: relative;
  height: 82px;
  background: #e9ecef;
}

.image-preview-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-cover-badge {
  position: absolute;
  top: 5px;
  left: 5px;
  background: var(--orange);
  color: #ffffff;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 5px;
  border-radius: 3px;
}

.preview-remove-btn {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 50%;
  background: rgba(30, 35, 40, 0.78);
  color: #ffffff;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.preview-remove-btn:hover {
  background: var(--red);
}

.preview-set-cover-btn {
  border: 0;
  border-top: 1px solid var(--line);
  background: #ffffff;
  color: var(--ink);
  font: 600 11px 'Inter', sans-serif;
  padding: 5px 6px;
  cursor: pointer;
}

.preview-set-cover-btn:hover {
  background: var(--orange-soft);
  color: var(--orange-hover);
}

.preview-cover-label {
  display: block;
  text-align: center;
  border-top: 1px solid var(--line);
  background: var(--orange-soft);
  color: var(--orange-hover);
  font-size: 10.5px;
  font-weight: 700;
  padding: 5px 6px;
}

/* ==========================================================================
   Multi-Image Gallery Controls (Listing Cards & Details Page)
   ========================================================================== */
.media-count-pill {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(20, 24, 29, 0.78);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  backdrop-filter: blur(2px);
}

.detail-img-counter {
  position: absolute;
  bottom: 14px;
  right: 14px;
  background: rgba(20, 24, 29, 0.78);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: 0.3px;
}

.detail-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(20, 24, 29, 0.68);
  color: #ffffff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.15s, transform 0.15s;
  z-index: 3;
}

.detail-nav-btn:hover {
  background: var(--orange);
  transform: translateY(-50%) scale(1.05);
}

.detail-nav-prev {
  left: 14px;
}

.detail-nav-next {
  right: 14px;
}

.admin-flash {
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 18px;
}

.admin-flash-success {
  background: var(--green-bg);
  color: var(--green);
  border: 1px solid #b7ebc9;
}

.admin-flash-error {
  background: var(--red-bg);
  color: var(--red);
  border: 1px solid #fecdca;
}
