/*
Theme Name: Moped Parts
Theme URI: https://partingstone.com
Author: Terry
Description: A multi-vendor marketplace theme for WooCommerce + MarketKing, inspired by The Radavist Bazaar aesthetic. Editorial, photography-forward design with a clean grid layout.
Version: 1.0.0
Requires at least: 6.3
Tested up to: 6.6
Requires PHP: 8.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: moped-parts
Tags: woocommerce, marketplace, multivendor, e-commerce, grid-layout
*/

/* =========================================================
   CSS CUSTOM PROPERTIES
   ========================================================= */
:root {
  --color-bg:           #f7f7f9;
  --color-sidebar-bg:   #b0b0b8;
  --color-surface:      #ffffff;
  --color-card-bg:      #ffffff;
  --color-text:         #1a1a1e;
  --color-text-muted:   #6b6b78;
  --color-border:       #c0c0c8;
  --color-accent:       #8b7fc7;
  --color-accent-hover: #7268b5;
  --color-accent-light: rgba(139,127,199,0.12);

  --font-sans:    'Inter', 'Helvetica Neue', Arial, sans-serif;
  --font-display: 'Boogaloo', 'Arial Rounded MT Bold', sans-serif;

  --sidebar-width: 280px;
  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-full: 100px;

  --shadow-card:  0 1px 4px rgba(0,0,0,0.08);
  --shadow-hover: 0 4px 16px rgba(0,0,0,0.13);
  --transition:   0.18s ease;
}

/* =========================================================
   RESET & BASE
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }

/* =========================================================
   PAGE SHELL — fixed sidebar + scrollable main
   ========================================================= */
.page-shell {
  display: flex;
  min-height: 100vh;
}

/* =========================================================
   SIDEBAR — fixed, never scrolls with the page
   ========================================================= */
.site-sidebar {
  width: var(--sidebar-width);
  min-width: var(--sidebar-width);
  background: var(--color-sidebar-bg);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(0,0,0,0.12) transparent;
  border-right: 1px solid var(--color-border);
  z-index: 200;
  overflow: hidden;
}
.site-sidebar::-webkit-scrollbar { width: 4px; }
.site-sidebar::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.12); border-radius: 2px; }

/* Push main area right to account for fixed sidebar */
.site-main-area {
  margin-left: var(--sidebar-width);
}

.sidebar-inner {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 28px 28px 24px;
}

/* Logo */
.sidebar-logo {
  display: block;
  margin-bottom: 24px;
  max-width: 100%;
  overflow: hidden;
  text-align: center;
  position: relative; /* contains the absolute wheel */
}

/* Moped wheel — sits behind the title text */
.sidebar-wheel {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 105%;
  max-width: 260px;
  opacity: 0.22;
  pointer-events: none;
  z-index: 0;
  display: block;
}

/* Title lines sit on top of the wheel */
.sidebar-logo .logo-line {
  position: relative;
  z-index: 1;
}
.sidebar-logo .logo-line {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1;
  color: var(--color-accent);
  letter-spacing: 0.02em;
  font-style: normal;
  text-transform: uppercase;
  display: block;
  white-space: nowrap;
  /* JS sets font-size dynamically per line */
  font-size: 2rem;
  -webkit-text-stroke: 3px #1a1a1e;
  paint-order: stroke fill;
}
.sidebar-logo img { max-width: 180px; }

/* CTA button */
.sidebar-cta {
  display: block;
  border: 2px solid var(--color-accent);
  color: var(--color-accent);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-align: center;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 28px;
  transition: all var(--transition);
}
.sidebar-cta:hover { background: var(--color-accent); color: #fff; }

/* Category nav */
.sidebar-nav { flex: 1; }

.sidebar-nav .nav-all {
  display: flex;
  align-items: center;
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 6px 0;
  margin-bottom: 4px;
  color: var(--color-text);
  position: relative;
}

.sidebar-nav ul { display: flex; flex-direction: column; }
.sidebar-nav ul li a {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  font-size: 0.9375rem;
  color: var(--color-text);
  padding: 8px 0;
  transition: color var(--transition);
}
.sidebar-nav ul li a:hover,
.sidebar-nav ul li a.active { color: var(--color-accent); }
.sidebar-nav ul li a .arrow { font-size: 0.8rem; color: var(--color-text-muted); }

/* Double-chevron active indicator — points at the current category */
.sidebar-nav .nav-all::before,
.sidebar-nav ul li a::before {
  content: '';
  display: inline-block;
  width: 1.1em;
  flex-shrink: 0;
}
.sidebar-nav .nav-all.active::before,
.sidebar-nav ul li a.active::before {
  content: '»';
  color: var(--color-accent);
  font-weight: 700;
  font-size: 1em;
}

/* Sidebar footer */
.sidebar-footer { margin-top: auto; padding-top: 24px; }

.sidebar-footer .brand-lockup {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--color-accent);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.1;
  -webkit-text-stroke: 1.5px #1a1a1e;
  paint-order: stroke fill;
}
.sidebar-footer .brand-tagline {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-top: 2px;
  margin-bottom: 12px;
}

/* Collapsible footer nav */
.sidebar-footer-nav { margin-top: 14px; border-top: 1px solid var(--color-border); padding-top: 12px; }

.sidebar-footer-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  font-family: var(--font-sans);
  font-size: 1.25rem;
  color: var(--color-text-muted);
  padding: 4px 0;
  cursor: pointer;
  transition: color var(--transition);
}
.sidebar-footer-toggle:hover { color: var(--color-accent); }

.footer-arrow {
  font-size: 1rem;
  transition: transform var(--transition);
  display: inline-block;
}
.sidebar-footer-toggle[aria-expanded="true"] .footer-arrow {
  transform: rotate(90deg);
}

.sidebar-footer-links {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 8px;
}
.sidebar-footer-links[hidden] { display: none; }

.sidebar-footer-links li a {
  display: block;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  padding: 5px 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  transition: color var(--transition);
}
.sidebar-footer-links li a:hover { color: var(--color-accent); }

.sidebar-footer-links .footer-copy {
  font-size: 0.6875rem;
  color: var(--color-text-muted);
  padding: 8px 0 2px;
  opacity: 0.7;
}

/* Mobile toggle */
.sidebar-toggle {
  display: none;
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 500;
  background: var(--color-accent);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 20px;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

/* =========================================================
   MAIN CONTENT AREA
   ========================================================= */
.site-main-area {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  /* margin-left set above alongside sidebar declaration */
}

/* =========================================================
   TOP BAR (search + login)
   ========================================================= */
.topbar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 28px;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.search-form { flex: 1; position: relative; }
.search-form .search-icon {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-muted);
  pointer-events: none;
}
.search-form input[type="search"],
.search-form input[type="text"] {
  width: 100%;
  height: 42px;
  padding: 0 16px 0 40px;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  color: var(--color-text);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.search-form input:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-light);
}
.search-form input::placeholder { color: var(--color-text-muted); }

.topbar-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.topbar-actions .login-link {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-accent);
  transition: color var(--transition);
}
.topbar-actions .login-link:hover { color: var(--color-accent-hover); }
.topbar-actions .user-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid var(--color-text-muted);
  color: var(--color-text-muted);
  transition: all var(--transition);
}
.topbar-actions .user-icon:hover { border-color: var(--color-accent); color: var(--color-accent); }

/* =========================================================
   PRODUCTS TOOLBAR
   ========================================================= */
.products-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px 10px;
  gap: 12px;
}

.results-count { font-size: 0.9375rem; font-weight: 600; }

.toolbar-controls { display: flex; align-items: center; gap: 8px; }

.sort-select {
  appearance: none;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 7px 30px 7px 10px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b6258' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  cursor: pointer;
  outline: none;
  transition: border-color var(--transition);
}
.sort-select:focus { border-color: var(--color-accent); }

.filter-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 7px 14px;
  transition: all var(--transition);
}
.filter-btn:hover { border-color: var(--color-accent); color: var(--color-accent); }

/* =========================================================
   PRODUCT GRID
   ========================================================= */
.products-content { padding: 0 28px 48px; }

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
@media (max-width: 1200px) { .products-grid { grid-template-columns: repeat(2,1fr); } }

/* =========================================================
   PRODUCT CARD  (Radavist-style)
   ========================================================= */
.product-card {
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

/* Image */
.product-image {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--color-bg);
}
.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.product-card:hover .product-image img { transform: scale(1.04); }
.product-image .no-image {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Sold overlay */
.product-card.is-sold .product-image::after {
  content: 'SOLD';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.42);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: 0.15em;
}

/* Card body */
.product-card-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 5px; }

/* Seller row */
.seller-row { display: flex; align-items: center; gap: 8px; }
.seller-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--color-sidebar-bg);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6875rem;
  font-weight: 800;
  color: var(--color-text-muted);
  flex-shrink: 0;
  overflow: hidden;
}
.seller-avatar img { width: 100%; height: 100%; object-fit: cover; }
.seller-meta { min-width: 0; }
.seller-name {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}
.seller-location {
  font-size: 0.6875rem;
  color: var(--color-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

/* Title + price */
.product-title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.product-title-row .title {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text);
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
}
.product-title-row .title a:hover { color: var(--color-accent); }
.product-title-row .price {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--color-text);
  flex-shrink: 0;
  white-space: nowrap;
}

.condition-tag {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--color-text-muted);
  background: rgba(0,0,0,0.07);
  padding: 2px 7px;
  border-radius: var(--radius-full);
  display: inline-block;
  align-self: flex-start;
}

/* =========================================================
   SINGLE PRODUCT
   ========================================================= */
.single-product-layout {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 40px;
  padding: 32px 28px;
  align-items: start;
}
@media (max-width: 900px) { .single-product-layout { grid-template-columns: 1fr; padding: 20px 16px; } }

.gallery-main { aspect-ratio: 4/3; border-radius: var(--radius-md); overflow: hidden; background: var(--color-bg); margin-bottom: 10px; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(5,1fr); gap: 6px; }
.gallery-thumb { aspect-ratio: 1; border-radius: var(--radius-sm); overflow: hidden; cursor: pointer; border: 2px solid transparent; transition: border-color var(--transition); }
.gallery-thumb.active, .gallery-thumb:hover { border-color: var(--color-accent); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

.product-sidebar { position: sticky; top: 72px; }
.product-sidebar h1 { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 10px; line-height: 1.2; }
.product-price-large { font-size: 1.75rem; font-weight: 900; margin-bottom: 20px; letter-spacing: -0.03em; }

.product-details-list { border: 1px solid var(--color-border); border-radius: var(--radius-md); overflow: hidden; margin-bottom: 20px; }
.product-details-list li { display: flex; justify-content: space-between; align-items: center; font-size: 0.875rem; padding: 9px 14px; border-bottom: 1px solid var(--color-border); background: var(--color-card-bg); }
.product-details-list li:last-child { border-bottom: none; }
.product-details-list li .label { font-weight: 600; color: var(--color-text-muted); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; }

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-sans); font-size: 0.875rem; font-weight: 700;
  padding: 11px 22px; border-radius: var(--radius-sm);
  border: 2px solid transparent; cursor: pointer;
  transition: all var(--transition); text-transform: uppercase; letter-spacing: 0.05em;
}
.btn-primary  { background: var(--color-text); color: #fff; border-color: var(--color-text); }
.btn-primary:hover { background: #333; }
.btn-accent   { background: var(--color-accent); color: #fff; border-color: var(--color-accent); }
.btn-accent:hover { background: var(--color-accent-hover); }
.btn-outline  { background: transparent; color: var(--color-text); border-color: var(--color-border); }
.btn-outline:hover { border-color: var(--color-text); }
.btn-block    { width: 100%; }

/* =========================================================
   VENDOR INFO BOX
   ========================================================= */
.vendor-info-box { background: var(--color-bg); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 16px; margin-top: 20px; }
.vendor-info-box-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.vendor-info-box-header img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.vendor-rating { display: flex; align-items: center; gap: 5px; font-size: 0.8125rem; margin-bottom: 12px; }
.stars { color: var(--color-accent); letter-spacing: 1px; }

/* =========================================================
   VENDOR STOREFRONT
   ========================================================= */
.vendor-storefront-header { padding: 32px 28px; background: var(--color-sidebar-bg); border-bottom: 1px solid var(--color-border); }
.vendor-storefront-header .inner { display: flex; align-items: center; gap: 20px; }
.vendor-storefront-header h1 { font-size: 1.75rem; font-weight: 900; letter-spacing: -0.03em; }
.vendor-store-meta { display: flex; gap: 16px; font-size: 0.8125rem; color: var(--color-text-muted); flex-wrap: wrap; margin-top: 6px; }

/* =========================================================
   PAGINATION
   ========================================================= */
.pagination { display: flex; align-items: center; justify-content: center; gap: 4px; margin-top: 40px; padding-bottom: 32px; }
.pagination a, .pagination span { display: flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; padding: 0 8px; border-radius: var(--radius-sm); font-size: 0.875rem; font-weight: 600; border: 1px solid var(--color-border); color: var(--color-text); background: var(--color-card-bg); transition: all var(--transition); }
.pagination a:hover { background: var(--color-text); color: #fff; border-color: var(--color-text); }
.pagination .current { background: var(--color-text); color: #fff; border-color: var(--color-text); }
.pagination .dots { border-color: transparent; background: none; }

/* =========================================================
   VENDOR DASHBOARD
   ========================================================= */
.vendor-dashboard { padding: 28px; }
.dashboard-grid { display: grid; grid-template-columns: 200px 1fr; gap: 28px; align-items: start; }
@media (max-width: 800px) { .dashboard-grid { grid-template-columns: 1fr; } }
.dashboard-nav { background: var(--color-card-bg); border: 1px solid var(--color-border); border-radius: var(--radius-md); overflow: hidden; position: sticky; top: 72px; }
.dashboard-nav a { display: flex; align-items: center; gap: 10px; font-size: 0.875rem; font-weight: 500; color: var(--color-text); padding: 11px 16px; border-bottom: 1px solid var(--color-border); transition: background var(--transition); }
.dashboard-nav a:last-child { border-bottom: none; }
.dashboard-nav a:hover, .dashboard-nav a.active { background: var(--color-bg); }
.dashboard-nav a.active { font-weight: 700; color: var(--color-accent); }
.dashboard-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; margin-bottom: 28px; }
@media (max-width: 700px) { .dashboard-stats { grid-template-columns: repeat(2,1fr); } }
.stat-card { background: var(--color-card-bg); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 18px; }
.stat-card .stat-value { font-size: 1.75rem; font-weight: 900; letter-spacing: -0.03em; margin-bottom: 4px; }
.stat-card .stat-label { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-text-muted); }

/* Footer removed — links live in sidebar */

/* =========================================================
   LIGHTBOX
   ========================================================= */
.rb-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  cursor: zoom-out;
  opacity: 0;
  pointer-events: none;   /* invisible = unclickable */
  transition: opacity 0.2s ease;
}
.rb-lightbox.open {
  opacity: 1;
  pointer-events: auto;   /* visible = clickable */
}

.rb-lightbox img {
  width: auto;
  height: auto;
  max-width: calc(100vw - 48px);
  max-height: 90vh;
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 48px rgba(0,0,0,0.6);
  cursor: default;
  display: block;
}

.rb-lightbox-close {
  position: fixed;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.15s;
  z-index: 10000;
}
.rb-lightbox-close:hover { opacity: 1; }

.rb-lightbox-prev,
.rb-lightbox-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  font-size: 1.5rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s;
  z-index: 10000;
}
.rb-lightbox-prev { left: 16px; }
.rb-lightbox-next { right: 16px; }
.rb-lightbox-prev:hover,
.rb-lightbox-next:hover { background: rgba(255,255,255,0.25); }

/* =========================================================
   MISC
   ========================================================= */
.empty-state { text-align: center; padding: 56px 24px; color: var(--color-text-muted); }
.empty-state h3 { font-size: 1.25rem; color: var(--color-text); margin-bottom: 8px; }
.empty-state p { margin-bottom: 20px; }

.woocommerce-message  { background: #f0faf0; border-left: 3px solid #2d7a2d; color: #1a4a1a; padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 16px; font-size: 0.875rem; }
.woocommerce-error    { background: #fff0f0; border-left: 3px solid #8b0000; color: #5a1a1a; padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 16px; font-size: 0.875rem; }
.woocommerce-info     { background: #f0f4ff; border-left: 3px solid #3a5ab5; color: #1a2a5a; padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 16px; font-size: 0.875rem; }

.rb-breadcrumbs { font-size: 0.8125rem; color: var(--color-text-muted); margin-bottom: 20px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.rb-breadcrumbs .sep { color: var(--color-border); }
.rb-breadcrumbs a:hover { color: var(--color-accent); }

.vendor-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; }
@media (max-width: 900px) { .vendor-grid { grid-template-columns: repeat(2,1fr); } }
.vendor-card { background: var(--color-card-bg); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 20px; text-align: center; transition: box-shadow var(--transition), transform var(--transition); }
.vendor-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.vendor-avatar { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; margin: 0 auto 10px; border: 2px solid var(--color-border); }
.vendor-avatar-placeholder { width: 60px; height: 60px; border-radius: 50%; background: var(--color-bg); margin: 0 auto 10px; display: flex; align-items: center; justify-content: center; font-size: 1.375rem; font-weight: 800; color: var(--color-text-muted); border: 2px solid var(--color-border); }
.vendor-name { font-size: 0.9375rem; font-weight: 700; margin-bottom: 4px; }
.vendor-location { font-size: 0.75rem; color: var(--color-text-muted); margin-bottom: 8px; display: flex; align-items: center; justify-content: center; gap: 3px; }
.vendor-stats { display: flex; justify-content: center; gap: 14px; font-size: 0.75rem; color: var(--color-text-muted); }
.vendor-stats span strong { display: block; font-size: 0.875rem; color: var(--color-text); font-weight: 700; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 960px) {
  .site-sidebar { left: -100%; transition: left 0.3s ease; }
  .site-sidebar.open { left: 0; }
  .site-main-area { margin-left: 0; }
  .sidebar-toggle { display: flex; }
  .topbar, .products-toolbar, .products-content { padding-left: 16px; padding-right: 16px; }
  .vendor-dashboard { padding: 16px; }
  .site-footer { padding: 28px 16px 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .products-grid { grid-template-columns: repeat(2,1fr); gap: 10px; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 380px) {
  .products-grid { grid-template-columns: 1fr; }
}
