/* ============================================
   THE MODEL EXCHANGE - Main Stylesheet
   ============================================ */

/* --- CSS Variables / Design System --- */
:root {
  --bg-primary: #f5f6f8;
  --bg-secondary: #ebeef2;
  --bg-card: #ffffff;
  --bg-card-hover: #f8f9fb;
  --bg-overlay: rgba(0, 0, 0, 0.5);
  --bg-ribbon: rgba(26, 35, 50, 0.97);
  --text-primary: #1e293b;
  --text-secondary: #4b5563;
  --text-muted: #94a3b8;
  --accent: #2c6fbb;
  --accent-hover: #1d5fa0;
  --accent-dark: #174a85;
  --border-color: rgba(44, 111, 187, 0.2);
  --border-light: rgba(0, 0, 0, 0.1);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Georgia', 'Times New Roman', serif;
  --max-width: 1200px;
  --header-height: 70px;
  --transition: 0.3s ease;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--accent-hover);
}

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

ul, ol {
  list-style: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
}

button {
  cursor: pointer;
}

/* --- Utility Classes --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================
   HEADER / NAVIGATION
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: var(--bg-ribbon);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 1000;
  display: flex;
  align-items: center;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-size: 1.35rem;
  letter-spacing: 0.5px;
}

.site-logo .logo-icon {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.site-logo .logo-icon img {
  width: 100%;
  height: 100%;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.3px;
  transition: color var(--transition);
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* Mobile menu toggle */
.mobile-menu-btn {
  display: none;
  background: none;
  color: #ffffff;
  font-size: 1.5rem;
  padding: 8px;
}

/* --- Dark-context overrides (header/footer sit on dark ribbon) --- */
.site-header .site-logo { color: #ffffff; }
.site-header .nav-links a { color: rgba(255, 255, 255, 0.7); }
.site-header .nav-links a:hover,
.site-header .nav-links a.active { color: #ffffff; }
.site-header .nav-links a::after { background: #ffffff; }
.site-header .nav-basket { color: rgba(255, 255, 255, 0.7); }
.site-header .nav-basket:hover { color: #ffffff; }
.site-header .nav-basket .basket-count { color: #ffffff; }
.footer-ribbon a { color: rgba(255, 255, 255, 0.5); }
.footer-ribbon a:hover { color: #ffffff; }
.footer-ribbon .separator { color: rgba(255, 255, 255, 0.2); }

/* ============================================
   SPLIT-SCREEN LANDING PAGE
   ============================================ */
.split-hero {
  position: relative;
  display: flex;
  min-height: 100vh;
  padding-top: var(--header-height);
  padding-bottom: 48px;
}

.split-panel {
  position: relative;
  flex: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 60px 40px;
  text-decoration: none;
  color: #ffffff;
  overflow: hidden;
  cursor: pointer;
}

.split-left {
  background: linear-gradient(135deg, #0d1b2a 0%, #1b2a40 100%);
}

.split-right {
  background: linear-gradient(135deg, #132238 0%, #0f1923 100%);
}

.split-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 25, 35, 0.15);
  transition: background 0.4s ease;
}

.split-panel:hover .split-overlay {
  background: rgba(44, 111, 187, 0.1);
}

.split-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.split-title {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 400;
  letter-spacing: 2px;
  margin-bottom: 10px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
  transition: color 0.3s ease;
}

.split-panel:hover .split-title {
  color: #6db3f0;
}

.split-desc {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  max-width: 280px;
  line-height: 1.5;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}

/* Vertical divider line between panels */
.split-hero::after {
  content: '';
  position: absolute;
  top: var(--header-height);
  bottom: 48px;
  left: 50%;
  width: 1px;
  background: rgba(255, 255, 255, 0.1);
  z-index: 5;
  pointer-events: none;
}

/* Center branding floating over the split */
.split-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -60%);
  z-index: 10;
  text-align: center;
  pointer-events: none;
}

.split-center .login-box {
  pointer-events: auto;
}

.split-brand {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 400;
  letter-spacing: 3px;
  line-height: 1.15;
  color: #ffffff;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
  margin-bottom: 20px;
}

.split-brand span {
  color: #6db3f0;
}

.split-tagline {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.5px;
  margin-bottom: 20px;
  font-style: italic;
}

.login-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 180px;
  height: 50px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-xl);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all var(--transition);
  margin: 20px auto 0;
  text-decoration: none;
}

.login-box:hover {
  background: #ffffff;
  color: #1e293b;
  border-color: #ffffff;
}

/* ============================================
   FOOTER RIBBON
   ============================================ */
.footer-ribbon {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-ribbon);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 14px 0;
  z-index: 1000;
}

/* Non-fixed footer for inner pages */
.footer-ribbon.static {
  position: relative;
  margin-top: auto;
}

.footer-ribbon .container {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 32px;
}

.footer-ribbon a {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.5px;
  transition: color var(--transition);
}

.footer-ribbon a:hover {
  color: var(--accent);
}

.footer-ribbon .separator {
  color: var(--text-muted);
  opacity: 0.3;
  font-size: 0.75rem;
}

/* ============================================
   PAGE LAYOUT (inner pages)
   ============================================ */
.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-top: var(--header-height);
}

.page-content {
  flex: 1;
  padding: 48px 0;
}

.page-title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  text-align: center;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.page-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 40px;
}

/* ============================================
   CATEGORY CARDS
   ============================================ */
.category-grid {
  display: flex;
  gap: 32px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.category-card {
  position: relative;
  width: 320px;
  height: 220px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: var(--shadow-md);
  text-decoration: none;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
}

.category-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

.category-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform var(--transition);
}

.category-card:hover .category-card-bg {
  transform: scale(1.05);
}

.category-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 25, 35, 0.3) 0%, rgba(15, 25, 35, 0.85) 100%);
}

.category-card-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 24px;
}

.category-card-icon {
  font-size: 2.5rem;
  margin-bottom: 8px;
}

.category-card-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: #ffffff;
  margin-bottom: 4px;
}

.category-card-count {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

/* Search box on category pages */
.search-section {
  max-width: 600px;
  margin: 0 auto;
}

.search-box {
  display: flex;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: border-color var(--transition);
}

.search-box:focus-within {
  border-color: var(--accent);
}

.search-box input {
  flex: 1;
  padding: 14px 20px;
  background: transparent;
  color: var(--text-primary);
  font-size: 0.95rem;
}

.search-box input::placeholder {
  color: var(--text-muted);
}

.search-box button {
  padding: 14px 24px;
  background: var(--accent);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  transition: background var(--transition);
}

.search-box button:hover {
  background: var(--accent-hover);
}

/* ============================================
   FILTER BAR
   ============================================ */
.filter-bar {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-bottom: 32px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: flex-end;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 160px;
}

.filter-group-search {
  flex: 2;
  min-width: 240px;
}

.filter-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.filter-group select,
.filter-group input {
  padding: 10px 14px;
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  transition: border-color var(--transition);
  appearance: auto;
}

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

.filter-btn {
  padding: 10px 24px;
  background: var(--accent);
  color: #ffffff;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  transition: background var(--transition);
  white-space: nowrap;
  align-self: flex-end;
}

.filter-btn:hover {
  background: var(--accent-hover);
}

.filter-btn.secondary {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
}

.filter-btn.secondary:hover {
  border-color: var(--text-secondary);
  color: var(--text-primary);
}

/* ============================================
   PRODUCT GRID
   ============================================ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition);
  cursor: pointer;
  text-decoration: none;
  color: var(--text-primary);
}

.product-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.product-card-image {
  width: 100%;
  height: 200px;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--text-muted);
  overflow: hidden;
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card-body {
  padding: 16px;
}

.product-card-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 6px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
}

.product-card-price {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent);
}

.product-card-seller {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.product-card-tags {
  display: flex;
  gap: 6px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.tag {
  font-size: 0.72rem;
  padding: 3px 8px;
  background: rgba(44, 111, 187, 0.1);
  color: var(--accent);
  border-radius: 100px;
  letter-spacing: 0.3px;
}

/* ============================================
   PRODUCT DETAIL PAGE
   ============================================ */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-bottom: 60px;
}

.product-gallery {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
}

.product-main-image {
  width: 100%;
  height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
  font-size: 5rem;
  color: var(--text-muted);
  overflow: hidden;
}

.product-main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-thumbnails {
  display: flex;
  gap: 8px;
  padding: 12px;
}

.product-thumbnails .thumb {
  width: 72px;
  height: 54px;
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--text-muted);
  transition: border-color var(--transition);
}

.product-thumbnails .thumb:hover,
.product-thumbnails .thumb.active {
  border-color: var(--accent);
}

.product-info {
  display: flex;
  flex-direction: column;
}

.product-info .breadcrumb {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.product-info .breadcrumb a {
  color: var(--text-muted);
}

.product-info .breadcrumb a:hover {
  color: var(--accent);
}

.product-info h1 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 400;
  margin-bottom: 8px;
  line-height: 1.3;
}

.product-price-tag {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 20px;
}

.product-details-table {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 8px 16px;
  margin-bottom: 24px;
  padding: 20px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}

.product-details-table dt {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.product-details-table dd {
  font-size: 0.95rem;
  color: var(--text-primary);
}

.product-description {
  margin-bottom: 24px;
  line-height: 1.7;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Action buttons */
.product-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.btn {
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  transition: all var(--transition);
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

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

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

.btn-secondary {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--accent);
}

.btn-secondary:hover {
  background: rgba(44, 111, 187, 0.08);
  border-color: var(--accent);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
}

.btn-outline:hover {
  border-color: var(--text-secondary);
  color: var(--text-primary);
}

/* Seller info */
.seller-panel {
  padding: 20px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 14px;
}

.seller-avatar {
  width: 48px;
  height: 48px;
  background: var(--bg-secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
}

.seller-info .seller-name {
  font-weight: 600;
  font-size: 0.95rem;
}

.seller-info .seller-rating {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ============================================
   RELATED ITEMS
   ============================================ */
.related-section {
  margin-top: 20px;
}

.related-section h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: 24px;
}

/* ============================================
   LOGIN / AUTH PAGE
   ============================================ */
.auth-container {
  max-width: 440px;
  margin: 0 auto;
}

.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.auth-tabs {
  display: flex;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--border-light);
}

.auth-tab {
  flex: 1;
  padding: 12px;
  text-align: center;
  font-weight: 600;
  color: var(--text-muted);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  font-size: 0.95rem;
}

.auth-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.auth-tab:hover {
  color: var(--text-primary);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
  letter-spacing: 0.3px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--accent);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-link {
  font-size: 0.85rem;
  color: var(--accent);
  display: inline-block;
  margin-top: 4px;
}

.form-submit {
  width: 100%;
  padding: 14px;
  background: var(--accent);
  color: #ffffff;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.5px;
  transition: background var(--transition);
  margin-top: 8px;
}

.form-submit:hover {
  background: var(--accent-hover);
}

.membership-upsell {
  margin-top: 24px;
  padding: 20px;
  background: rgba(44, 111, 187, 0.06);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  text-align: center;
}

.membership-upsell h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--accent);
  margin-bottom: 8px;
}

.membership-upsell p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.membership-upsell .price {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent);
  margin: 8px 0;
}

/* ============================================
   INFO PAGES (About, Contact, Terms)
   ============================================ */
.info-content {
  max-width: 720px;
  margin: 0 auto;
}

.info-content h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin: 32px 0 12px;
  color: var(--text-primary);
}

.info-content h2:first-child {
  margin-top: 0;
}

.info-content p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 16px;
  font-size: 0.95rem;
}

.info-content ul {
  margin-bottom: 16px;
  padding-left: 0;
}

.info-content ul li {
  color: var(--text-secondary);
  padding: 6px 0 6px 20px;
  position: relative;
  font-size: 0.95rem;
}

.info-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

.how-it-works {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 32px 0;
}

.step-card {
  text-align: center;
  padding: 32px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
}

.step-card .step-number {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-weight: 700;
  color: #ffffff;
  font-size: 1.1rem;
}

.step-card h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.step-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Contact form */
.contact-form {
  max-width: 560px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 40px;
}

/* ============================================
   MODAL
   ============================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-overlay.active {
  display: flex;
}

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  max-width: 480px;
  width: 100%;
  padding: 32px;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  padding: 4px;
  line-height: 1;
  transition: color var(--transition);
}

.modal-close:hover {
  color: var(--text-primary);
}

.modal h2 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  margin-bottom: 16px;
}

.modal p {
  color: var(--text-secondary);
  margin-bottom: 20px;
  font-size: 0.95rem;
}

/* ============================================
   PAGINATION
   ============================================ */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.pagination button,
.pagination a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: all var(--transition);
  text-decoration: none;
}

.pagination button:hover,
.pagination a:hover,
.pagination .active {
  border-color: var(--accent);
  color: var(--accent);
}

.pagination .active {
  background: rgba(44, 111, 187, 0.1);
  font-weight: 700;
}

/* ============================================
   BASKET ICON (nav)
   ============================================ */
.nav-basket {
  position: relative;
  color: var(--text-secondary);
  font-size: 1.15rem;
  transition: color var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-basket:hover {
  color: var(--accent);
}

.nav-basket .basket-count {
  position: absolute;
  top: -6px;
  right: -10px;
  width: 18px;
  height: 18px;
  background: var(--accent);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============================================
   STORE-SPECIFIC STYLES
   ============================================ */

/* Official Partner badge on store cards */
.badge-official {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 10px;
  background: rgba(46, 125, 50, 0.08);
  color: #2e7d32;
  border-radius: 100px;
  letter-spacing: 0.3px;
}

.badge-official::before {
  content: '\2713';
  font-weight: 700;
}

/* Stock availability labels */
.stock-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.stock-label.in-stock {
  color: #2e7d32;
}

.stock-label.pre-order {
  color: #2563eb;
}

.stock-label.low-stock {
  color: #d97706;
}

/* Store product card variant */
.product-card.store-card {
  border-color: rgba(46, 125, 50, 0.06);
}

.product-card.store-card:hover {
  border-color: #2e7d32;
}

.product-card-partner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}

/* Store product detail - simpler action area */
.store-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
  align-items: center;
}

.store-actions .btn-primary {
  flex: 1;
  min-width: 200px;
}

.store-partner-panel {
  padding: 16px 20px;
  background: rgba(46, 125, 50, 0.05);
  border: 1px solid rgba(46, 125, 50, 0.15);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 12px;
}

.store-partner-panel .partner-logo {
  width: 44px;
  height: 44px;
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.75rem;
  color: var(--accent);
  flex-shrink: 0;
}

.store-partner-panel .partner-name {
  font-weight: 600;
  font-size: 0.95rem;
}

.store-partner-panel .partner-label {
  font-size: 0.8rem;
  color: #2e7d32;
}

/* Quantity selector */
.qty-selector {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.qty-selector button {
  width: 36px;
  height: 36px;
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.qty-selector button:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
}

.qty-selector .qty-value {
  width: 40px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.9rem;
}

/* ============================================
   WANTED BOARD
   ============================================ */
.wanted-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 32px;
}

.wanted-header .btn {
  white-space: nowrap;
}

.wanted-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.wanted-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: border-color var(--transition);
}

.wanted-card:hover {
  border-color: var(--accent);
}

.wanted-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.wanted-card-title {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.35;
}

.wanted-status {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 100px;
  letter-spacing: 0.3px;
  white-space: nowrap;
  flex-shrink: 0;
}

.wanted-status.looking {
  background: rgba(44, 111, 187, 0.1);
  color: var(--accent);
}

.wanted-status.matched {
  background: rgba(46, 125, 50, 0.08);
  color: #2e7d32;
}

.wanted-card-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.wanted-spec {
  font-size: 0.75rem;
  padding: 4px 10px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: 100px;
  color: var(--text-secondary);
}

.wanted-card-note {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 16px;
}

.wanted-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border-light);
}

.wanted-card-user {
  display: flex;
  align-items: center;
  gap: 8px;
}

.wanted-card-user .user-avatar {
  width: 28px;
  height: 28px;
  background: var(--bg-secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent);
}

.wanted-card-user .user-name {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.wanted-card-budget {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent);
}

.wanted-card-date {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.i-have-this-btn {
  margin-top: 8px;
}

/* Post Request form */
.request-form-container {
  max-width: 580px;
  margin: 0 auto;
}

.request-form {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.request-info {
  margin-top: 24px;
  padding: 16px 20px;
  background: rgba(44, 111, 187, 0.05);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

.request-info p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.request-info strong {
  color: var(--text-primary);
}

/* ============================================
   MEMBERSHIP PAGE
   ============================================ */
.coming-soon {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 8px;
  background: rgba(44, 111, 187, 0.1);
  color: var(--accent);
  border-radius: 100px;
  letter-spacing: 0.3px;
  vertical-align: middle;
  margin-left: 6px;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 968px) {
  .product-detail {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .how-it-works {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 60px;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--bg-ribbon);
    flex-direction: column;
    padding: 20px 24px;
    gap: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav-links.open {
    display: flex;
  }

  .mobile-menu-btn {
    display: block;
  }

  /* Split hero stacks vertically on mobile */
  .split-hero {
    flex-direction: column;
    min-height: auto;
  }

  .split-hero::after {
    display: none;
  }

  .split-panel {
    padding: 48px 24px;
    min-height: 200px;
  }

  .split-left {
    order: 0;
  }

  .split-center {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    order: 1;
    width: 100%;
    padding: 40px 24px;
    background: linear-gradient(135deg, #0d1b2a 0%, #132238 100%);
    pointer-events: auto;
  }

  .split-right {
    order: 2;
  }

  .split-brand {
    font-size: 2rem;
  }

  .split-title {
    font-size: 1.8rem;
  }

  .login-box {
    width: 220px;
    height: 54px;
    font-size: 1rem;
  }

  .wanted-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .wanted-header {
    flex-direction: column;
    align-items: stretch;
  }

  .request-form {
    padding: 24px;
  }

  .category-grid {
    flex-direction: column;
    align-items: center;
  }

  .category-card {
    width: 100%;
    max-width: 360px;
  }

  .filter-bar {
    flex-direction: column;
  }

  .filter-group {
    min-width: 100%;
  }

  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
  }

  .product-actions {
    flex-direction: column;
  }

  .product-actions .btn {
    width: 100%;
  }

  .page-title {
    font-size: 1.7rem;
  }

  .auth-card {
    padding: 24px;
  }

  .contact-form {
    padding: 24px;
  }

  .footer-ribbon .container {
    flex-wrap: wrap;
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .split-brand {
    font-size: 1.4rem;
  }

  .split-title {
    font-size: 1.4rem;
  }

  .split-desc {
    font-size: 0.85rem;
  }

  .split-center {
    padding: 32px 20px;
  }

  .login-box {
    width: 100%;
    max-width: 280px;
    height: 52px;
  }

  .hero-subtitle {
    font-size: 0.9rem;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .product-main-image {
    height: 280px;
  }

  .product-details-table {
    grid-template-columns: 1fr;
    gap: 4px 0;
  }

  .product-details-table dt {
    margin-top: 8px;
  }
}

/* ============================================
   OFFERS - Tabs & Cards
   ============================================ */
.offer-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--border-light);
}

.offer-tab {
  flex: 1;
  max-width: 200px;
  padding: 12px 20px;
  text-align: center;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-muted);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
}

.offer-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.offer-tab:hover {
  color: var(--text-primary);
}

.offer-tab-content {
  display: none;
}

.offer-tab-content.active {
  display: block;
}

.offer-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 680px;
}

.offer-empty {
  text-align: center;
  color: var(--text-muted);
  padding: 48px 0;
  font-size: 0.95rem;
}

.offer-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: border-color var(--transition);
}

.offer-card:hover {
  border-color: var(--border-color);
}

.offer-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.offer-listing-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.offer-listing-title:hover {
  color: var(--accent);
}

.offer-status {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 100px;
  letter-spacing: 0.3px;
  white-space: nowrap;
  flex-shrink: 0;
}

.status-pending {
  background: rgba(44, 111, 187, 0.1);
  color: var(--accent);
}

.status-accepted {
  background: rgba(46, 125, 50, 0.08);
  color: #2e7d32;
}

.status-declined {
  background: rgba(220, 38, 38, 0.08);
  color: #dc2626;
}

.status-countered {
  background: rgba(217, 119, 6, 0.1);
  color: #d97706;
}

.offer-card-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 24px;
}

.offer-detail {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.offer-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.offer-value {
  font-size: 0.95rem;
  color: var(--text-primary);
}

.offer-amount {
  font-weight: 700;
  color: var(--accent);
}

.offer-card-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.85rem;
}

/* ============================================
   LISTING CARDS (Items Listed tab)
   ============================================ */
.listing-card {
  display: flex;
  gap: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: border-color var(--transition);
}

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

.listing-card-left {
  flex-shrink: 0;
}

.listing-thumb {
  width: 80px;
  height: 60px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.listing-thumb-placeholder {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.listing-card-body {
  flex: 1;
  min-width: 0;
}

.listing-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.listing-card-details {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 4px;
}

.listing-price {
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
}

.listing-date {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.listing-status {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 100px;
  letter-spacing: 0.3px;
  white-space: nowrap;
  flex-shrink: 0;
}

.listing-status-active {
  background: rgba(46, 125, 50, 0.08);
  color: #2e7d32;
}

.listing-status-sold {
  background: rgba(44, 111, 187, 0.1);
  color: var(--accent);
}

.listing-card-actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
}

/* ============================================
   PURCHASE CARDS (Purchase History tab)
   ============================================ */
.purchase-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: border-color var(--transition);
}

.purchase-card:hover {
  border-color: var(--border-color);
}

.purchase-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.purchase-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}

/* ============================================
   PAYMENT & ORDER STATUS BADGES
   ============================================ */
.status-paid {
  background: rgba(46, 125, 50, 0.1);
  color: #2e7d32;
}

.status-pending-payment {
  background: rgba(237, 137, 54, 0.1);
  color: #c27803;
}

.status-shipped {
  background: rgba(37, 99, 235, 0.1);
  color: #2563eb;
}

.status-delivered {
  background: rgba(46, 125, 50, 0.08);
  color: #2e7d32;
}

.status-funds-released {
  background: rgba(46, 125, 50, 0.12);
  color: #1b5e20;
}

.status-disputed {
  background: rgba(220, 38, 38, 0.08);
  color: #dc2626;
}

/* ============================================
   CHECKOUT SUCCESS PAGE
   ============================================ */
.checkout-success-box {
  max-width: 520px;
  margin: 60px auto;
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 48px 36px;
  box-shadow: var(--shadow-sm);
}

.checkout-success-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 24px;
  background: rgba(46, 125, 50, 0.1);
  color: #2e7d32;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
}

.checkout-success-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.checkout-success-message {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 32px;
  line-height: 1.5;
}

.checkout-success-details {
  background: var(--bg-primary);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 32px;
  text-align: left;
}

.checkout-success-details .offer-detail {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
}

.checkout-success-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 600px) {
  .offer-card-body {
    grid-template-columns: 1fr;
  }

  .offer-card-actions {
    flex-direction: column;
  }

  .offer-card-actions .btn {
    width: 100%;
  }

  .offer-tabs {
    gap: 0;
  }

  .offer-tab {
    max-width: none;
    flex: 1;
    padding: 10px 12px;
    font-size: 0.88rem;
  }

  .listing-card {
    flex-direction: column;
    gap: 12px;
  }

  .listing-thumb {
    width: 100%;
    height: 120px;
  }

  .listing-card-actions {
    flex-direction: column;
  }

  .listing-card-actions .btn {
    width: 100%;
  }
}

/* ============================================
   FORUM STYLES
   ============================================ */

.forum-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.forum-thread-card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  text-decoration: none;
  color: inherit;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.forum-thread-card:hover {
  border-color: var(--border-color);
  box-shadow: var(--shadow-sm);
}

.forum-thread-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.forum-thread-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.forum-thread-card:hover .forum-thread-title {
  color: var(--accent);
}

.forum-reply-count {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
  background: var(--bg-secondary);
  padding: 3px 10px;
  border-radius: 100px;
}

.forum-thread-preview {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 10px;
}

.forum-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.82rem;
}

.forum-author {
  font-weight: 600;
  color: var(--accent);
}

.forum-time {
  color: var(--text-muted);
}

/* New Thread Form */
.forum-new-thread {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 24px;
}

.forum-new-thread h2 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  margin-bottom: 16px;
  color: var(--text-primary);
}

/* Thread Detail Page */
.forum-back-link {
  display: inline-block;
  font-size: 0.88rem;
  color: var(--accent);
  text-decoration: none;
  margin-bottom: 20px;
  font-weight: 500;
}

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

.forum-post {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 28px;
  margin-bottom: 32px;
}

.forum-post-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.forum-post-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-bottom: 12px;
  line-height: 1.3;
}

.forum-delete-btn {
  background: none;
  border: 1px solid rgba(220, 38, 38, 0.3);
  color: #dc2626;
  font-size: 1.1rem;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition);
}

.forum-delete-btn:hover {
  background: rgba(220, 38, 38, 0.08);
  border-color: #dc2626;
}

.forum-delete-reply {
  margin-left: auto;
  width: 24px;
  height: 24px;
  font-size: 0.9rem;
}

.forum-post .forum-meta {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-light);
}

.forum-post-body {
  font-size: 0.95rem;
  color: var(--text-primary);
  line-height: 1.7;
}

/* Replies */
.forum-replies-section {
  margin-bottom: 32px;
}

.forum-replies-heading {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.forum-reply {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-bottom: 10px;
}

.forum-reply .forum-meta {
  margin-bottom: 10px;
}

.forum-reply-body {
  font-size: 0.93rem;
  color: var(--text-primary);
  line-height: 1.6;
}

/* Reply Form */
.forum-reply-form {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 24px;
}

.forum-reply-form h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: 16px;
}

/* Responsive */
@media (max-width: 600px) {
  .forum-thread-card {
    padding: 16px;
  }

  .forum-thread-card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .forum-post {
    padding: 20px;
  }

  .forum-post-title {
    font-size: 1.2rem;
  }
}

/* ============================================
   BASKET / CART PAGE
   ============================================ */

.basket-title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--text-primary);
  margin-bottom: 32px;
}

/* Empty state */
.basket-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.basket-empty .btn {
  margin-top: 20px;
}

/* Loading */
.basket-loading {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

/* Basket content layout */
.basket-content {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}

.basket-items {
  flex: 1;
  min-width: 0;
}

/* Individual basket item */
.basket-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  position: relative;
}

.basket-item-image {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.basket-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.basket-item-placeholder {
  font-size: 2rem;
  opacity: 0.4;
}

.basket-item-details {
  flex: 1;
  min-width: 0;
}

.basket-item-title {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 4px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.basket-item-seller {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.basket-item-delivery {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.basket-item-warning {
  font-size: 0.82rem;
  color: #dc2626;
  margin-top: 4px;
}

.basket-item-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  margin-right: 32px;
}

.basket-item-remove {
  position: absolute;
  top: 8px;
  right: 8px;
  background: none;
  border: none;
  font-size: 1.3rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
  border-radius: 4px;
  transition: color 0.15s, background 0.15s;
}

.basket-item-remove:hover {
  color: #dc2626;
  background: rgba(220, 38, 38, 0.06);
}

/* Basket summary sidebar */
.basket-summary {
  width: 320px;
  flex-shrink: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 24px;
  position: sticky;
  top: 100px;
}

.basket-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.basket-summary-total {
  border-top: 2px solid var(--border-light);
  margin-top: 8px;
  padding-top: 16px;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
}

.basket-checkout-btn {
  width: 100%;
  margin-top: 20px;
  padding: 14px 24px;
  font-size: 1rem;
}

.basket-checkout-note {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 10px;
}

/* Toast notification */
.basket-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--bg-ribbon);
  color: #fff;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  z-index: 10000;
  pointer-events: none;
  box-shadow: var(--shadow-lg);
}

.basket-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Responsive basket */
@media (max-width: 768px) {
  .basket-content {
    flex-direction: column;
  }

  .basket-summary {
    width: 100%;
    position: static;
  }

  .basket-item {
    flex-wrap: wrap;
    gap: 12px;
  }

  .basket-item-price {
    margin-right: 24px;
  }

  .basket-item-image {
    width: 64px;
    height: 64px;
  }
}

/* ============================================
   LISTING TYPE TOGGLE (Sell Page)
   ============================================ */
.listing-type-toggle {
  display: flex;
  gap: 0;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  overflow: hidden;
  width: fit-content;
}

.listing-type-option {
  position: relative;
  cursor: pointer;
  margin: 0;
}

.listing-type-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.listing-type-pill {
  display: block;
  padding: 10px 24px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all var(--transition);
  user-select: none;
}

.listing-type-option input[type="radio"]:checked + .listing-type-pill {
  background: var(--accent);
  color: #ffffff;
}

.listing-type-option:hover .listing-type-pill {
  background: rgba(44, 111, 187, 0.08);
}

.listing-type-option input[type="radio"]:checked + .listing-type-pill:hover {
  background: var(--accent-hover);
}

/* ============================================
   SELL PAGE FEE CALCULATOR
   ============================================ */
.sell-fee-calculator {
  background: rgba(44, 111, 187, 0.04);
  border: 1px solid rgba(44, 111, 187, 0.12);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin-bottom: 20px;
}

.fee-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  color: var(--text-secondary);
  padding: 4px 0;
}

.fee-row-total {
  border-top: 1px solid rgba(44, 111, 187, 0.15);
  margin-top: 6px;
  padding-top: 8px;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.fee-row-total strong {
  color: var(--accent);
  font-weight: 700;
  font-size: 1.05rem;
}

.fee-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 8px;
}

/* --- Price Guide Box (Sell Page) --- */
.price-guide-box {
  background: rgba(44, 111, 187, 0.05);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin-bottom: 20px;
}

.price-guide-header {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--accent);
  margin-bottom: 8px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.price-guide-range {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.price-guide-avg {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.price-guide-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
}

/* --- Admin Price Reference Form --- */
.price-ref-form-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: flex-end;
  margin-bottom: 16px;
}

.price-ref-form-row .form-group {
  flex: 1;
  min-width: 120px;
  margin-bottom: 0;
}

.price-ref-form-row .form-group label {
  font-size: 0.78rem;
  margin-bottom: 4px;
}

.price-ref-form-row input,
.price-ref-form-row select {
  font-size: 0.85rem;
  padding: 8px 10px;
}

.price-ref-upload-row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
  padding: 12px 16px;
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
}

.price-ref-upload-row input[type="file"] {
  font-size: 0.85rem;
}

.price-ref-csv-status {
  font-size: 0.85rem;
  font-weight: 600;
}

/* ============================================
   AUCTION INFO PANEL (Product Detail Page)
   ============================================ */
.auction-info-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 20px;
}

.auction-info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
}

.auction-info-row + .auction-info-row {
  border-top: 1px solid var(--border-light);
}

.auction-info-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.auction-countdown {
  font-size: 0.95rem;
  font-weight: 700;
  color: #d97706;
  font-variant-numeric: tabular-nums;
}

.auction-highest-bid {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* ============================================
   AUCTION BADGE (Listing Cards)
   ============================================ */
.auction-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  background: #d97706;
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.product-card-image {
  position: relative;
}

/* ============================================
   AUCTION COUNTDOWN (Listing Cards)
   ============================================ */
.product-card-meta .auction-countdown {
  font-size: 0.78rem;
  font-weight: 600;
  color: #d97706;
}

.product-card-meta .auction-countdown.auction-ended {
  color: var(--text-muted);
}

/* ============================================
   AUCTION ENDED STATE
   ============================================ */
.auction-ended {
  color: var(--text-muted) !important;
  font-weight: 600;
}

/* ============================================
   SELLER RATINGS
   ============================================ */
.rating-stars-input {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 24px 0;
}

.rating-star-btn {
  font-size: 2.4rem;
  color: var(--border-light);
  cursor: pointer;
  transition: color 0.15s ease, transform 0.15s ease;
  user-select: none;
}

.rating-star-btn:hover,
.rating-star-btn.active {
  color: #f59e0b;
}

.rating-star-btn:hover {
  transform: scale(1.15);
}

.seller-rating-display {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.seller-rating-stars {
  color: #f59e0b;
  font-size: 0.95rem;
  letter-spacing: 1px;
}

.seller-rating-count {
  color: var(--text-muted);
  font-size: 0.82rem;
}

.rate-seller-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
}

.rate-seller-btn:hover {
  background: rgba(245, 158, 11, 0.15);
}

.rating-display-inline {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.82rem;
  color: #f59e0b;
  font-weight: 600;
}

/* ============================================
   ADMIN DASHBOARD
   ============================================ */

/* Summary stats grid */
.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.admin-stats-grid-small {
  margin-bottom: 20px;
}

.admin-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.admin-stat-card:hover {
  border-color: var(--border-color);
  box-shadow: var(--shadow-sm);
}

.admin-stat-card-sm {
  padding: 16px;
}

.admin-stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 4px;
}

.admin-stat-card-sm .admin-stat-number {
  font-size: 1.5rem;
}

.admin-stat-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.admin-stat-revenue .admin-stat-number {
  color: #2e7d32;
}

/* Sections */
.admin-section {
  margin-bottom: 40px;
}

.admin-section-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--text-primary);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border-light);
}

/* Tables */
.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.admin-table thead th {
  text-align: left;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  padding: 10px 12px;
  border-bottom: 2px solid var(--border-light);
  white-space: nowrap;
}

.admin-table tbody td {
  padding: 10px 12px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-light);
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-table tbody tr:hover {
  background: rgba(44, 111, 187, 0.03);
}

/* Breakdown grid */
.admin-breakdown-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.admin-breakdown-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 20px;
}

.admin-breakdown-heading {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.admin-breakdown-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-breakdown-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
}

.admin-breakdown-label {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.admin-breakdown-count {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* Responsive */
@media (max-width: 900px) {
  .admin-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

  .admin-breakdown-grid {
    grid-template-columns: 1fr;
  }

  .admin-table {
    font-size: 0.82rem;
  }

  .admin-table thead th,
  .admin-table tbody td {
    padding: 8px 8px;
  }
}
