:root {
  --primary-color: #6366f1;
  --primary-gradient: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  --bg-color: #f1f5f9;
  --card-bg: #ffffff;
  --text-dark: #1e293b;
  --text-light: #64748b;
  --border-color: #e2e8f0;
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --danger-color: #ef4444;
  --header-height: 90px;
  --sidebar-width: 300px;
  --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: var(--bg-color);
  color: var(--text-dark);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Header (Copied & Adapted from POS) */
.market-header {
  height: var(--header-height);
  background: var(--card-bg);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  z-index: 10;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.brand-section {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.brand-logo {
  font-size: 1.4rem;
  font-weight: 800;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  letter-spacing: -0.5px;
}

/* Region Selector Button (Pill Style) */
.region-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s;
  height: 40px;
}

.region-trigger:hover {
  background: white;
  border-color: var(--primary-color);
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.1);
}

.region-trigger span {
  font-weight: 600;
  color: var(--text-dark);
}

/* Search Bar (Alibaba-style) */
.header-search {
  flex: 1;
  max-width: 720px;
  margin: 0 auto;
  position: relative;
}

.search-bar-main {
  display: flex;
  align-items: stretch;
  border: 2px dashed #f97316;
  border-radius: 24px;
  overflow: hidden;
  background: #fff;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.search-bar-main:focus-within {
  border-color: #ea580c;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15);
}

.search-bar-main .search-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 0.85rem 1.2rem;
  font-size: 1rem;
  background: transparent;
  color: var(--text-dark);
  min-width: 0;
}

.search-bar-main .search-input::placeholder {
  color: #a1a1aa;
  font-weight: 400;
}

.search-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 1.6rem;
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: #fff;
  border: none;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
  border-radius: 0 22px 22px 0;
}

.search-btn:hover {
  background: linear-gradient(135deg, #ea580c, #c2410c);
}

.search-btn i {
  font-size: 0.85rem;
}

.search-bar-sub {
  margin-top: 6px;
  padding-left: 4px;
}

.image-search-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}

.image-search-btn:hover {
  color: var(--primary-color);
  background: #f1f5f9;
}

.image-search-btn i {
  font-size: 0.85rem;
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.action-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-light);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all 0.2s;
  position: relative;
}

.action-btn:hover {
  background: #f8fafc;
  color: var(--primary-color);
  border-color: var(--border-color);
}

.btn-primary {
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: white;
  padding: 0 1.5rem;
  height: 40px;
  border-radius: 10px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(249, 115, 22, 0.4);
}

/* Main Layout */
.app-layout {
  display: flex;
  min-height: calc(100vh - var(--header-height) - 36px);
  flex: 1 0 auto;
  overflow: hidden;
}

/* Sidebar (Filters & Categories) */
.sidebar {
  width: var(--sidebar-width);
  background: white;
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: 0.8rem 1rem;
  flex-shrink: 0;
}

.sidebar-section {
  margin-bottom: 1rem;
}

.sidebar-title {
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--text-light);
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: 0.5px;
}

.category-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.category-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  color: var(--text-dark);
  text-decoration: none;
  transition: all 0.2s;
  font-weight: 500;
  cursor: pointer;
}

.category-item:hover, .category-item.active {
  background: #eff6ff;
  color: var(--primary-color);
}

.category-item i {
  width: 24px;
  text-align: center;
  color: var(--text-light);
  transition: color 0.2s;
}

.category-item:hover i, .category-item.active i {
  color: var(--primary-color);
}

/* Filter components */
.filter-group {
    margin-bottom: 1.5rem;
}

.filter-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.range-slider {
    width: 100%;
}

.price-inputs {
    display: flex;
    gap: 10px;
}

.price-input {
    width: 100%;
    padding: 8px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.9rem;
}

/* Content Area (Grid) */
.main-content {
  flex: 1;
  background: var(--bg-color);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.content-header {
  padding: 0.6rem 1.2rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.4rem;
}

.page-title h1 {
  font-size: 1.5rem;
  font-weight: 700;
}

.breadcrumbs {
  font-size: 0.9rem;
  color: var(--text-light);
}

.listings-grid {
  flex: 1;
  padding: 0 1.2rem 1rem;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  grid-auto-rows: min-content;
  gap: 12px;
  align-content: start;
}

/* ── Product Card (Alibaba-inspired) ── */
.ad-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #d0d0d0;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  position: relative;
}

.ad-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.12);
  border-color: #f97316;
}

.ad-image-container {
  height: 150px;
  background: #fafafa;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  border-bottom: 1px solid #f0f0f0;
}

.ad-image-emoji {
  font-size: 4rem;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.08));
  transition: transform 0.3s ease;
}

.ad-card:hover .ad-image-emoji {
  transform: scale(1.1);
}

.ad-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ad-details {
  padding: 14px 16px 8px;
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 160px;
}

.ad-title {
  font-weight: 600;
  color: #191919;
  font-size: 0.92rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s;
}

.ad-card:hover .ad-title {
  color: #f97316;
}

.ad-meta {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-light);
}

.ad-location {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.78rem;
  color: #8c8c8c;
}

/* Modal Styles for Country Selection (Reused) */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(8px);
    z-index: 10100;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-container {
    background: white;
    border-radius: 24px;
    width: 90%;
    max-width: 800px;
    height: 80vh;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
    transform: scale(0.95) translateY(20px);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.modal-overlay.active .modal-container {
    transform: scale(1) translateY(0);
}

.modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-color);
}
.modal-header h2 { margin-bottom: 0.5rem; font-size: 1.5rem; }

.country-grid {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem;
}

.country-option {
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background: #f8fafc;
}

.country-option:hover {
    background: white;
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.country-option .flag { font-size: 2.5rem; display: block; margin-bottom: 0.5rem; line-height: 1; }
.country-option .name { font-weight: 600; font-size: 0.9rem; }

/* Responsive */
@media (max-width: 1024px) {
    .sidebar { width: 240px; padding: 1rem; }
    .listings-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
    .checkout-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .app-layout { flex-direction: column; overflow: auto; height: auto; }
    .sidebar { width: 100%; height: auto; border-right: none; border-bottom: 1px solid var(--border-color); }
    .market-header { padding: 0 1rem; }
    .region-trigger span { display: none; } /* Hide text on mobile */
    .brand-logo span { display: none; }
    .header-search { margin: 0 1rem; }
    .listings-grid { padding: 1rem; }
    .cart-drawer { width: 100%; }
}

/* ── CART BADGE ── */
.cart-trigger { position: relative; }
.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--danger-color);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* ── Card Action Buttons (Alibaba-style) ── */
.ad-card-actions {
  display: flex;
  gap: 0;
  margin-top: auto;
  border-top: 1px solid #f0f0f0;
}
.ad-card-actions button {
  flex: 1;
  padding: 10px 0;
  border-radius: 0;
  font-size: 0.78rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.ad-btn-contact {
  background: #fff7ed;
  color: #ea580c;
  border-right: 1px solid #f0f0f0 !important;
  border-bottom-left-radius: 12px;
}
.ad-btn-contact:hover {
  background: #fed7aa;
  color: #c2410c;
}
.ad-btn-view {
  background: #eff6ff;
  color: var(--primary-color);
}
.ad-btn-view:hover {
  background: var(--primary-color);
  color: #fff;
}
.ad-btn-cart {
  background: #f0fdf4;
  color: var(--success-color);
}
.ad-btn-cart:hover {
  background: var(--success-color);
  color: #fff;
}

/* ── CART DRAWER ── */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,0.55);
  backdrop-filter: blur(4px);
  z-index: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.cart-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.cart-drawer {
  position: fixed;
  top: 0;
  right: -460px;
  width: 440px;
  max-width: 92vw;
  height: 100vh;
  background: #fff;
  z-index: 501;
  transition: right 0.35s cubic-bezier(0.4,0,0.2,1);
  display: flex;
  flex-direction: column;
  box-shadow: -12px 0 40px rgba(0,0,0,0.1);
}
.cart-drawer.open {
  right: 0;
}
.cart-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cart-header h3 {
  font-size: 1.1rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}
.cart-header h3 i {
  color: var(--primary-color);
}
.cart-close {
  font-size: 1.2rem;
  color: var(--text-light);
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
  transition: color 0.2s;
}
.cart-close:hover {
  color: var(--danger-color);
}
.cart-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 24px;
}
.cart-empty {
  text-align: center;
  padding: 60px 0;
  color: var(--text-light);
}
.cart-empty i {
  font-size: 3rem;
  color: var(--border-color);
  margin-bottom: 12px;
  display: block;
}
.cart-item {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-color);
}
.cart-item-img {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  flex-shrink: 0;
}
.cart-item-info {
  flex: 1;
  min-width: 0;
}
.cart-item-title {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cart-item-price {
  font-weight: 800;
  color: var(--primary-color);
  font-size: 0.95rem;
}
.cart-item-meta {
  font-size: 0.72rem;
  color: var(--text-light);
  margin-top: 2px;
}
.cart-qty {
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: 8px;
}
.cart-qty button {
  width: 28px;
  height: 28px;
  border: 1px solid var(--border-color);
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  cursor: pointer;
  transition: all 0.2s;
}
.cart-qty button:first-child {
  border-radius: 6px 0 0 6px;
}
.cart-qty button:last-child {
  border-radius: 0 6px 6px 0;
}
.cart-qty button:hover {
  background: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
}
.cart-qty input {
  width: 42px;
  height: 28px;
  border: 1px solid var(--border-color);
  border-left: none;
  border-right: none;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 600;
}
.cart-item-remove {
  color: var(--text-light);
  font-size: 0.78rem;
  cursor: pointer;
  transition: color 0.2s;
  background: none;
  border: none;
  padding: 4px;
  margin-left: auto;
  align-self: flex-start;
}
.cart-item-remove:hover {
  color: var(--danger-color);
}
.cart-footer {
  padding: 18px 24px;
  border-top: 1px solid var(--border-color);
  background: #fafbfc;
}
.cart-summary {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}
.cart-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-light);
}
.cart-row.total {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-dark);
  padding-top: 8px;
  border-top: 2px solid var(--text-dark);
}
.cart-checkout-btn {
  width: 100%;
  background: var(--primary-gradient);
  color: #fff;
  padding: 14px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
  box-shadow: 0 6px 20px rgba(99,102,241,0.3);
}
.cart-checkout-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 26px rgba(99,102,241,0.4);
}

/* ── AD DETAIL MODAL ── */
.detail-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,0.65);
  backdrop-filter: blur(6px);
  z-index: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.detail-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.detail-modal {
  background: #fff;
  border-radius: 20px;
  width: 720px;
  max-width: 94vw;
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px rgba(0,0,0,0.25);
  transform: scale(0.94) translateY(20px);
  transition: all 0.3s;
}
.detail-overlay.open .detail-modal {
  transform: scale(1) translateY(0);
}
.detail-header {
  padding: 20px 28px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.detail-header h3 {
  font-size: 1.1rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}
.detail-header h3 i {
  color: var(--primary-color);
}
.detail-body {
  padding: 28px;
}
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.detail-gallery {
  background: #f1f5f9;
  border-radius: 16px;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
}
.detail-info h2 {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 10px;
}
.detail-price-tag {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--primary-color);
  margin-bottom: 14px;
}
.detail-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}
.detail-meta-item {
  background: #f8fafc;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.82rem;
}
.detail-meta-item strong {
  display: block;
  font-size: 0.72rem;
  color: var(--text-light);
  margin-bottom: 2px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.detail-seller {
  background: #f8fafc;
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 16px;
}
.detail-seller h4 {
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.detail-seller p {
  font-size: 0.75rem;
  color: var(--text-light);
}
.detail-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}
.detail-actions button {
  flex: 1;
  padding: 12px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.88rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.da-msg {
  background: #eff6ff;
  color: var(--primary-color);
}
.da-msg:hover {
  background: var(--primary-color);
  color: #fff;
}
.da-cart {
  background: #f0fdf4;
  color: var(--success-color);
}
.da-cart:hover {
  background: var(--success-color);
  color: #fff;
}

/* ── CHECKOUT VIEW ── */
.checkout-view {
  display: none;
  padding: 28px;
  overflow-y: auto;
  height: calc(100vh - var(--header-height));
}
.checkout-view.active {
  display: block;
}
.ck-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary-color);
  cursor: pointer;
  margin-bottom: 18px;
  transition: gap 0.2s;
}
.ck-back:hover {
  gap: 10px;
}
.checkout-steps {
  display: flex;
  gap: 0;
  margin-bottom: 28px;
}
.ck-step {
  flex: 1;
  text-align: center;
  padding: 14px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-light);
  background: #f1f5f9;
  border: 1px solid var(--border-color);
  cursor: default;
  transition: all 0.2s;
}
.ck-step:first-child {
  border-radius: 12px 0 0 12px;
}
.ck-step:last-child {
  border-radius: 0 12px 12px 0;
}
.ck-step.active {
  background: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
}
.ck-step.done {
  background: var(--success-color);
  color: #fff;
  border-color: var(--success-color);
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  font-size: 0.7rem;
  font-weight: 700;
  margin-right: 6px;
}
.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 24px;
}
.ck-card {
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  padding: 24px;
  margin-bottom: 16px;
}
.ck-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.ck-card h3 i {
  color: var(--primary-color);
  font-size: 0.92rem;
}
.ck-field {
  margin-bottom: 14px;
}
.ck-field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 5px;
  color: var(--text-light);
}
.ck-field input,
.ck-field select,
.ck-field textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  font-size: 0.9rem;
  transition: all 0.2s;
}
.ck-field input:focus,
.ck-field select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.12);
}
.ck-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

/* Payment Options */
.pay-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 2px solid var(--border-color);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 8px;
}
.pay-option:hover,
.pay-option.selected {
  border-color: var(--primary-color);
  background: #f5f3ff;
}
.pay-option input[type=radio] {
  accent-color: var(--primary-color);
}
.pay-icon {
  font-size: 1.3rem;
  color: var(--primary-color);
  width: 28px;
  text-align: center;
}
.pay-label {
  font-weight: 600;
  font-size: 0.88rem;
}
.pay-desc {
  font-size: 0.72rem;
  color: var(--text-light);
}

.ck-nav {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 16px;
}
.ck-next-btn {
  background: var(--primary-gradient);
  color: #fff;
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.88rem;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
  box-shadow: 0 4px 14px rgba(99,102,241,0.3);
}
.ck-next-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(99,102,241,0.4);
}
.ck-back-btn {
  background: #f1f5f9;
  color: var(--text-dark);
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.85rem;
  border: 1px solid var(--border-color);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}
.ck-back-btn:hover {
  background: #e2e8f0;
}
.ck-place-btn {
  background: linear-gradient(135deg, var(--success-color), #059669);
  color: #fff;
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
  box-shadow: 0 6px 20px rgba(16,185,129,0.3);
}
.ck-place-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(16,185,129,0.4);
}

/* Order Summary Sidebar */
.ck-summary-card {
  position: sticky;
  top: 20px;
}
.ck-summary-item {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.82rem;
}
.ck-summary-img {
  width: 48px;
  height: 48px;
  background: #f1f5f9;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.ck-summary-info {
  flex: 1;
  min-width: 0;
}
.ck-summary-title {
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ck-summary-meta {
  font-size: 0.72rem;
  color: var(--text-light);
}
.ck-summary-price {
  font-weight: 700;
  color: var(--primary-color);
  white-space: nowrap;
}
.ck-totals {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ck-total-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-light);
}
.ck-total-row.grand {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-dark);
  padding-top: 10px;
  border-top: 2px solid var(--text-dark);
}

/* Review Items */
.ck-review-item {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-color);
}
.ck-review-img {
  width: 60px;
  height: 60px;
  background: #f1f5f9;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  flex-shrink: 0;
}
.ck-review-info {
  flex: 1;
  min-width: 0;
}
.ck-review-title {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 2px;
}
.ck-review-meta {
  font-size: 0.75rem;
  color: var(--text-light);
}
.ck-review-price {
  font-weight: 800;
  color: var(--primary-color);
  font-size: 1rem;
  white-space: nowrap;
}

/* ── ORDER SUCCESS ── */
.order-success {
  display: none;
  text-align: center;
  padding: 80px 32px;
  overflow-y: auto;
  height: calc(100vh - var(--header-height));
}
.order-success.active {
  display: block;
}
.success-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--success-color);
  color: #fff;
  font-size: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  animation: popIn 0.5s ease;
}
@keyframes popIn {
  0% { transform: scale(0); }
  60% { transform: scale(1.15); }
  100% { transform: scale(1); }
}
.order-success h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 8px;
}
.order-success p {
  color: var(--text-light);
  margin-bottom: 6px;
}
.order-id {
  font-weight: 700;
  color: var(--primary-color);
  font-size: 1.1rem;
  margin-bottom: 20px;
}

/* ── TOAST ── */
.mkt-toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: #1e293b;
  color: #fff;
  padding: 12px 24px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  z-index: 9999;
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  gap: 8px;
  animation: toastIn 0.3s ease;
}
@keyframes toastIn {
  from { opacity: 0; transform: translateX(-50%) translateY(20px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ═══════════════════════════════════════════
   RFQ – REQUEST FOR QUOTATION
   ═══════════════════════════════════════════ */

/* Header RFQ button */
.btn-rfq {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: 2px solid var(--primary-color);
  border-radius: 10px;
  background: transparent;
  color: var(--primary-color);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.btn-rfq:hover {
  background: var(--primary-color);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(99,102,241,0.25);
}
.btn-rfq i {
  font-size: 0.9rem;
}

/* RFQ View Container */
.rfq-view {
  display: none;
  overflow-y: auto;
  max-height: calc(100vh - var(--header-height));
  padding-bottom: 40px;
}
.rfq-view.active {
  display: block;
}

/* RFQ Header */
.rfq-header {
  margin-bottom: 24px;
}
.rfq-header-info h2 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}
.rfq-header-info p {
  color: var(--text-light);
  font-size: 0.88rem;
  margin-bottom: 16px;
}

/* RFQ Tabs */
.rfq-tabs {
  display: flex;
  gap: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  width: fit-content;
}
.rfq-tab {
  padding: 10px 22px;
  font-size: 0.82rem;
  font-weight: 600;
  border: none;
  background: #f8fafc;
  color: var(--text-light);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 7px;
  transition: all 0.2s;
}
.rfq-tab:not(:last-child) {
  border-right: 1px solid var(--border-color);
}
.rfq-tab.active {
  background: var(--primary-color);
  color: #fff;
}
.rfq-tab:hover:not(.active) {
  background: #e2e8f0;
}
.rfq-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  border-radius: 10px;
  background: rgba(255,255,255,0.3);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0 5px;
}
.rfq-tab.active .rfq-count {
  background: rgba(255,255,255,0.3);
  color: #fff;
}
.rfq-tab:not(.active) .rfq-count {
  background: var(--primary-color);
  color: #fff;
}

/* RFQ Required field indicator */
.rfq-req {
  color: var(--danger-color);
  font-weight: 700;
}

/* RFQ Form Grid */
.rfq-form-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
}

/* RFQ Upload area */
.rfq-upload {
  border: 2px dashed var(--border-color);
  border-radius: 12px;
  padding: 28px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  background: #fafbfc;
}
.rfq-upload:hover {
  border-color: var(--primary-color);
  background: rgba(99,102,241,0.04);
}
.rfq-upload i {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 8px;
}
.rfq-upload p {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 4px;
}
.rfq-upload span {
  font-size: 0.75rem;
  color: var(--text-light);
}

/* RFQ File list */
.rfq-file-list {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.rfq-file-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  background: #f1f5f9;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-dark);
}
.rfq-file-tag i {
  cursor: pointer;
  color: var(--danger-color);
  font-size: 0.7rem;
}

/* RFQ Submit bar */
.rfq-submit-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 16px 20px;
  flex-wrap: wrap;
}
.rfq-submit-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-light);
  flex: 1;
  min-width: 200px;
}
.rfq-submit-btn {
  padding: 12px 32px;
  background: var(--primary-gradient);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s;
  white-space: nowrap;
}
.rfq-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(99,102,241,0.35);
}

/* RFQ List controls */
.rfq-list-controls {
  display: flex;
  gap: 12px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.rfq-search {
  flex: 1;
  min-width: 220px;
  position: relative;
}
.rfq-search i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  font-size: 0.82rem;
}
.rfq-search input {
  width: 100%;
  padding: 10px 14px 10px 38px;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  font-size: 0.85rem;
  transition: border-color 0.2s;
}
.rfq-search input:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 3px rgba(99,102,241,0.1);
}
.rfq-filter-group select {
  padding: 10px 14px;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 500;
  background: #fff;
}

/* RFQ List cards */
.rfq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.rfq-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 18px 22px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 20px;
  transition: all 0.2s;
  cursor: pointer;
}
.rfq-card:hover {
  border-color: var(--primary-color);
  box-shadow: 0 4px 16px rgba(99,102,241,0.08);
  transform: translateY(-1px);
}
.rfq-card-info h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.rfq-card-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.78rem;
  color: var(--text-light);
}
.rfq-card-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}
.rfq-card-budget {
  text-align: right;
}
.rfq-card-budget .rfq-budget-label {
  font-size: 0.72rem;
  color: var(--text-light);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
}
.rfq-card-budget .rfq-budget-value {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-dark);
}

/* RFQ Status badges */
.rfq-status {
  padding: 5px 14px;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}
.rfq-status.pending {
  background: #fef3c7;
  color: #b45309;
}
.rfq-status.quoted {
  background: #dbeafe;
  color: #1d4ed8;
}
.rfq-status.accepted {
  background: #d1fae5;
  color: #047857;
}
.rfq-status.expired {
  background: #fee2e2;
  color: #b91c1c;
}
.rfq-status.cancelled {
  background: #f1f5f9;
  color: #64748b;
}

/* RFQ Empty state */
.rfq-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-light);
}
.rfq-empty i {
  font-size: 3rem;
  color: var(--border-color);
  margin-bottom: 16px;
}
.rfq-empty h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 6px;
}
.rfq-empty p {
  font-size: 0.85rem;
}

/* RFQ Detail Modal */
.rfq-detail-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  z-index: 1050;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s;
}
.rfq-detail-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.rfq-detail-modal {
  background: #fff;
  border-radius: 18px;
  width: 90%;
  max-width: 700px;
  max-height: 85vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 60px rgba(0,0,0,0.2);
  transform: translateY(20px);
  transition: transform 0.3s;
}
.rfq-detail-overlay.open .rfq-detail-modal {
  transform: translateY(0);
}
.rfq-detail-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}
.rfq-detail-section {
  margin-bottom: 20px;
}
.rfq-detail-section h4 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.rfq-detail-section h4 i {
  color: var(--primary-color);
}
.rfq-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.rfq-detail-field {
  background: #f8fafc;
  border-radius: 10px;
  padding: 10px 14px;
}
.rfq-detail-field .rdf-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.rfq-detail-field .rdf-value {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-top: 2px;
}
.rfq-detail-specs {
  background: #f8fafc;
  border-radius: 10px;
  padding: 14px;
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text-dark);
  white-space: pre-wrap;
}
.rfq-detail-footer {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding-top: 14px;
  border-top: 1px solid var(--border-color);
}
.rfq-detail-footer button {
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  border: none;
  transition: all 0.2s;
}
.rfq-cancel-btn {
  background: #fee2e2;
  color: #b91c1c;
}
.rfq-cancel-btn:hover {
  background: #fecaca;
}
.rfq-resubmit-btn {
  background: var(--primary-gradient);
  color: #fff;
}
.rfq-resubmit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(99,102,241,0.3);
}

/* RFQ Quotes badge in detail */
.rfq-quotes-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.rfq-quote-card {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.rfq-quote-seller {
  display: flex;
  align-items: center;
  gap: 10px;
}
.rfq-quote-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary-color);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
}
.rfq-quote-info h5 {
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 2px;
}
.rfq-quote-info p {
  font-size: 0.72rem;
  color: var(--text-light);
}
.rfq-quote-price {
  font-size: 1rem;
  font-weight: 800;
  color: var(--primary-color);
}
.rfq-quote-accept {
  padding: 6px 14px;
  background: var(--success-color);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}
.rfq-quote-accept:hover {
  background: #059669;
  transform: translateY(-1px);
}

/* ── RFQ Responsive ── */
@media (max-width: 1024px) {
  .rfq-form-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 768px) {
  .rfq-card {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .rfq-card-budget {
    text-align: left;
  }
  .rfq-detail-grid {
    grid-template-columns: 1fr;
  }
  .rfq-submit-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .btn-rfq span.rfq-label {
    display: none;
  }
}

/* ═══════════════════════════════════════════
   PRICE COMPARISON
   ═══════════════════════════════════════════ */

/* Header Compare Button */
.btn-compare {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: 2px solid #f59e0b;
  border-radius: 10px;
  background: transparent;
  color: #f59e0b;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  position: relative;
}
.btn-compare:hover {
  background: #f59e0b;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(245,158,11,0.25);
}
.compare-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  border-radius: 10px;
  background: #f59e0b;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0 5px;
}
.btn-compare:hover .compare-badge {
  background: #fff;
  color: #f59e0b;
}

/* Compare Checkbox on Ad Cards */
.ad-compare-check {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.85);
  width: 28px;
  height: 28px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0;
  transition: all 0.2s;
  border: 1px solid #e0e0e0;
  user-select: none;
  opacity: 0;
}
.ad-card:hover .ad-compare-check {
  opacity: 1;
}
.ad-compare-check.checked {
  opacity: 1;
  background: #fff7ed;
  border-color: #f97316;
}
.ad-compare-check:hover {
  border-color: #f97316;
  background: #fff;
}
.ad-compare-check input {
  accent-color: #f97316;
  width: 15px;
  height: 15px;
  cursor: pointer;
}

/* Compare Floating Bar */
.compare-bar {
  position: fixed;
  bottom: -100px;
  left: 50%;
  transform: translateX(-50%);
  background: #1e293b;
  border-radius: 16px;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 400;
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
  transition: bottom 0.35s cubic-bezier(0.4,0,0.2,1);
  min-width: 300px;
  max-width: 90vw;
}
.compare-bar.visible {
  bottom: 24px;
}
.compare-bar-items {
  display: flex;
  gap: 8px;
  flex: 1;
  overflow-x: auto;
}
.compare-bar-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.12);
  border-radius: 10px;
  padding: 6px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  flex-shrink: 0;
}
.compare-bar-chip .chip-emoji {
  font-size: 1.1rem;
}
.compare-bar-chip .chip-remove {
  cursor: pointer;
  color: rgba(255,255,255,0.5);
  font-size: 0.7rem;
  transition: color 0.15s;
  margin-left: 2px;
}
.compare-bar-chip .chip-remove:hover {
  color: #f87171;
}
.compare-bar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.compare-bar-count {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.6);
  font-weight: 600;
  white-space: nowrap;
}
.compare-bar-btn {
  padding: 10px 20px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
  white-space: nowrap;
}
.compare-bar-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(245,158,11,0.4);
}

/* Compare View */
.compare-view {
  display: none;
  overflow-y: auto;
  max-height: calc(100vh - var(--header-height));
  padding-bottom: 40px;
}
.compare-view.active {
  display: block;
}
.compare-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 16px;
  flex-wrap: wrap;
}
.compare-header-info h2 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}
.compare-header-info p {
  color: var(--text-light);
  font-size: 0.88rem;
}
.compare-clear-btn {
  padding: 8px 18px;
  background: #fee2e2;
  color: #b91c1c;
  border: none;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}
.compare-clear-btn:hover {
  background: #fecaca;
  transform: translateY(-1px);
}

/* Compare Table */
.compare-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 12px;
}
.compare-table {
  width: 100%;
  min-width: 600px;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
}
.compare-table th,
.compare-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.85rem;
}
.compare-table th {
  background: #f8fafc;
  font-weight: 700;
  font-size: 0.78rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  width: 140px;
  vertical-align: top;
}
.compare-table th i {
  margin-right: 5px;
  color: var(--primary-color);
  font-size: 0.72rem;
}
.compare-table td {
  font-weight: 500;
  color: var(--text-dark);
  vertical-align: top;
}
.compare-table tr:last-child th,
.compare-table tr:last-child td {
  border-bottom: none;
}

/* Compare Product Header Cell */
.cmp-product-cell {
  text-align: center;
  padding: 20px 14px !important;
  min-width: 180px;
}
.cmp-product-emoji {
  font-size: 2.8rem;
  margin-bottom: 10px;
  display: block;
}
.cmp-product-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 4px;
  line-height: 1.3;
}
.cmp-product-cat {
  font-size: 0.72rem;
  color: var(--text-light);
  font-weight: 500;
}
.cmp-remove-btn {
  margin-top: 8px;
  padding: 4px 10px;
  background: none;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 0.7rem;
  color: var(--text-light);
  cursor: pointer;
  transition: all 0.2s;
}
.cmp-remove-btn:hover {
  background: #fee2e2;
  border-color: #fecaca;
  color: #b91c1c;
}

/* Compare Price Row */
.cmp-price {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary-color);
}
.cmp-price-usd {
  font-size: 0.72rem;
  color: var(--text-light);
  font-weight: 500;
  display: block;
  margin-top: 2px;
}

/* Best Value Highlight */
.cmp-best {
  position: relative;
}
.cmp-best::after {
  content: 'Best Price';
  position: absolute;
  top: 6px;
  right: 6px;
  background: #d1fae5;
  color: #047857;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 5px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* Compare Condition Badges */
.cmp-condition {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
}
.cmp-condition.new {
  background: #d1fae5;
  color: #047857;
}
.cmp-condition.used {
  background: #fef3c7;
  color: #b45309;
}
.cmp-condition.refurbished {
  background: #dbeafe;
  color: #1d4ed8;
}
.cmp-condition.rent-mo {
  background: #f3e8ff;
  color: #7c3aed;
}

/* Compare Seller Cell */
.cmp-seller {
  display: flex;
  align-items: center;
  gap: 8px;
}
.cmp-seller-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--primary-color);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  flex-shrink: 0;
}
.cmp-seller-info {
  font-size: 0.8rem;
  font-weight: 600;
}
.cmp-seller-rating {
  font-size: 0.72rem;
  color: #f59e0b;
}

/* Compare Action Buttons */
.cmp-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cmp-actions button {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: all 0.2s;
}
.cmp-add-cart {
  background: #f0fdf4;
  color: var(--success-color);
}
.cmp-add-cart:hover {
  background: var(--success-color);
  color: #fff;
}
.cmp-view-detail {
  background: #eff6ff;
  color: var(--primary-color);
}
.cmp-view-detail:hover {
  background: var(--primary-color);
  color: #fff;
}

/* Compare Price Bar (visual) */
.cmp-price-bar-wrap {
  width: 100%;
}
.cmp-price-bar {
  height: 8px;
  border-radius: 4px;
  background: var(--primary-color);
  transition: width 0.4s ease;
}
.cmp-price-bar-label {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-light);
  margin-top: 3px;
}

/* Compare Empty State */
.compare-empty {
  text-align: center;
  padding: 80px 24px;
}
.compare-empty i {
  font-size: 3.5rem;
  color: var(--border-color);
  margin-bottom: 16px;
}
.compare-empty h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 6px;
}
.compare-empty p {
  font-size: 0.85rem;
  color: var(--text-light);
  max-width: 360px;
  margin: 0 auto 20px;
}
.compare-empty-btn {
  padding: 10px 24px;
  background: var(--primary-gradient);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}
.compare-empty-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99,102,241,0.3);
}

/* Price Diff Indicator */
.cmp-savings {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  margin-top: 4px;
}
.cmp-savings.good {
  background: #d1fae5;
  color: #047857;
}
.cmp-savings.mid {
  background: #fef3c7;
  color: #b45309;
}
.cmp-savings.high {
  background: #fee2e2;
  color: #b91c1c;
}

/* ── Compare Responsive ── */
@media (max-width: 768px) {
  .compare-bar {
    flex-direction: column;
    gap: 10px;
    padding: 14px;
    border-radius: 14px;
    min-width: 0;
    width: 92vw;
  }
  .compare-bar-items {
    width: 100%;
  }
  .compare-bar-actions {
    width: 100%;
    justify-content: space-between;
  }
  .compare-table th {
    width: 110px;
    font-size: 0.72rem;
    padding: 10px 12px;
  }
  .compare-table td {
    padding: 10px 12px;
    min-width: 140px;
  }
  .cmp-product-emoji {
    font-size: 2rem;
  }
}

/* ═══════════════════════════════════════════
   B2B ENHANCEMENTS
   ═══════════════════════════════════════════ */

/* Inquiry counter in header */
.btn-inquiry-counter {
  position: relative;
}
.inquiry-counter {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--primary-color);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* Sidebar supplier type filter badges */
.filter-badge-gold {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #78350f;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
}
.filter-badge-verified {
  background: linear-gradient(135deg, #60a5fa, #3b82f6);
  color: #fff;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
}
.filter-badge-trade {
  background: linear-gradient(135deg, #34d399, #10b981);
  color: #fff;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
}

/* ── B2B Card Styles (Alibaba-inspired) ── */
.b2b-card .ad-image-container {
  position: relative;
  background: linear-gradient(180deg, #fafafa 0%, #f5f5f5 100%);
}

/* Inline supplier badge (in supplier line) */
.supplier-badge-inline {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  flex-shrink: 0;
}
.supplier-badge-inline.supplier-badge-gold-supplier {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #78350f;
}
.supplier-badge-inline.supplier-badge-verified-mfr {
  background: linear-gradient(135deg, #60a5fa, #3b82f6);
  color: #fff;
}
.supplier-badge-inline.supplier-badge-trade-assured {
  background: linear-gradient(135deg, #34d399, #10b981);
  color: #fff;
}

/* Price range display */
.ad-price-range {
  font-size: 1.1rem;
  font-weight: 800;
  color: #e64a19;
  line-height: 1.3;
}
.ad-price-range .price-unit {
  font-size: 0.72rem;
  font-weight: 400;
  color: #8c8c8c;
}

/* MOQ & Lead time tags */
.ad-b2b-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.moq-tag, .lead-tag {
  font-size: 0.72rem;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: #595959;
  background: #f5f5f5;
}
.moq-tag i, .lead-tag i {
  color: #f97316;
  font-size: 0.65rem;
}

/* Trade info row */
.ad-trade-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
}
.incoterm-tag {
  background: #fff7ed;
  color: #ea580c;
  padding: 2px 7px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.3px;
}

/* Certification tags */
.ad-certs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.cert-tag {
  font-size: 0.64rem;
  padding: 2px 6px;
  border-radius: 3px;
  background: #f6ffed;
  color: #389e0d;
  border: 1px solid #d9f7be;
  font-weight: 500;
}

/* Supplier line */
.ad-supplier-line {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid #f0f0f0;
}
.supplier-name {
  font-size: 0.74rem;
  color: #595959;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
}
.supplier-name:hover {
  color: #f97316;
}
.supplier-years {
  font-size: 0.65rem;
  background: #fff7ed;
  color: #ea580c;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 600;
  white-space: nowrap;
  border: 1px solid #fed7aa;
}

/* B2B card actions */
.b2b-actions {
  display: flex;
}
.ad-btn-price {
  flex: 1;
  padding: 10px;
  border: none;
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s;
  border-bottom-right-radius: 12px;
}
.ad-btn-price:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* ── Detail Modal B2B ── */
.detail-supplier-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.price-unit-detail {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-light);
}

/* Tiered pricing table */
.detail-tiered-pricing {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 14px;
  margin: 12px 0;
}
.detail-tiered-pricing h4 {
  font-size: 0.85rem;
  color: var(--text-dark);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.detail-tiered-pricing h4 i {
  color: var(--primary-color);
}
.tiered-table {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.tiered-row {
  flex: 1;
  min-width: 120px;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 10px 14px;
  text-align: center;
  transition: all 0.2s;
}
.tiered-row:hover {
  border-color: var(--primary-color);
  box-shadow: 0 2px 8px rgba(99,102,241,0.12);
}
.tiered-qty {
  display: block;
  font-size: 0.75rem;
  color: var(--text-light);
  margin-bottom: 4px;
  font-weight: 500;
}
.tiered-price {
  font-size: 1rem;
  font-weight: 800;
  color: var(--danger-color);
}
.tiered-unit {
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--text-light);
}

/* B2B meta grid */
.b2b-meta-grid {
  grid-template-columns: 1fr 1fr !important;
}
.incoterm-badge {
  background: #e0f2fe;
  color: #0369a1;
  padding: 2px 8px;
  border-radius: 5px;
  font-weight: 600;
  font-size: 0.78rem;
}

/* Detail certifications */
.detail-certs {
  margin: 10px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
}
.detail-cert-badge {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* Supplier Storefront */
.detail-storefront {
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 16px;
  margin: 14px 0;
}
.storefront-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.storefront-avatar {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--primary-gradient);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.storefront-info h4 {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0 0 2px;
}
.storefront-info p {
  font-size: 0.78rem;
  color: var(--text-light);
  margin: 0;
}
.storefront-info p i {
  margin-left: 4px;
}
.storefront-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.storefront-stat {
  text-align: center;
  background: #fff;
  border-radius: 10px;
  padding: 10px 6px;
  border: 1px solid var(--border-color);
}
.stat-value {
  display: block;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--primary-color);
}
.stat-label {
  display: block;
  font-size: 0.68rem;
  color: var(--text-light);
  margin-top: 2px;
}

/* B2B Detail Actions */
.b2b-detail-actions {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 8px !important;
}
.da-contact {
  padding: 11px 16px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s;
  border: 1px solid var(--primary-color);
  background: var(--primary-gradient);
  color: #fff;
}
.da-contact:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}
.da-price {
  padding: 11px 16px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s;
  background: #fef2f2;
  color: var(--danger-color);
  border: 1px solid #fecaca;
}
.da-price:hover {
  background: #fee2e2;
  transform: translateY(-1px);
}
.da-sample {
  padding: 11px 16px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s;
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}
.da-sample:hover {
  background: #dcfce7;
  transform: translateY(-1px);
}
.da-rfq {
  padding: 11px 16px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s;
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
}
.da-rfq:hover {
  background: #fde68a;
  transform: translateY(-1px);
}

/* ── B2B Responsive ── */
@media (max-width: 768px) {
  .storefront-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .b2b-detail-actions {
    grid-template-columns: 1fr !important;
  }
  .tiered-table {
    flex-direction: column;
  }
  .tiered-row {
    min-width: auto;
  }
}

@media (max-width: 480px) {
  .ad-b2b-meta {
    flex-direction: column;
    gap: 4px;
  }
  .ad-supplier-line {
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
  }
  .supplier-name {
    max-width: 100%;
  }
}

/* ══════════════════════════════════════════
   TRADE ASSURANCE BANNER
   ══════════════════════════════════════════ */
.trust-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  background: linear-gradient(135deg, #fff7ed 0%, #fef3c7 100%);
  border-bottom: 1px solid #fde68a;
  padding: 8px 2rem;
  flex-shrink: 0;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #92400e;
  white-space: nowrap;
}
.trust-item i {
  color: #f97316;
  font-size: 0.85rem;
}

/* ══════════════════════════════════════════
   PRODUCT COUNT + PAGINATION
   ══════════════════════════════════════════ */
.product-count-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 1.2rem;
  margin-bottom: 2px;
  font-size: 0.82rem;
  color: var(--text-light);
  font-weight: 500;
}
.pagination-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 20px 0;
  margin-top: 12px;
}
.page-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--text-dark);
  transition: all 0.15s;
}
.page-btn:hover:not(:disabled) {
  border-color: #f97316;
  color: #f97316;
  background: #fff7ed;
}
.page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.page-btn.active {
  background: #f97316;
  color: white;
  border-color: #f97316;
  font-weight: 700;
}
.page-numbers {
  display: flex;
  gap: 4px;
}

/* ══════════════════════════════════════════
   CATEGORY CHIPS BAR
   ══════════════════════════════════════════ */
.category-chips {
  display: flex;
  gap: 8px;
  padding: 4px 1.2rem 2px;
  overflow-x: auto;
  scrollbar-width: none;
  flex-shrink: 0;
}
.category-chips::-webkit-scrollbar { display: none; }
.chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  background: white;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-light);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}
.chip:hover {
  border-color: #f97316;
  color: #f97316;
  background: #fff7ed;
}
.chip.active {
  background: #f97316;
  color: white;
  border-color: #f97316;
}
.chip i { font-size: 0.75rem; }

/* ══════════════════════════════════════════
   QUICK VIEW TOOLTIP
   ══════════════════════════════════════════ */
.quick-view-tooltip {
  position: absolute;
  bottom: 8px;
  left: 8px;
  right: 8px;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(6px);
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s, transform 0.25s;
  pointer-events: none;
  z-index: 5;
}
.ad-card:hover .quick-view-tooltip {
  opacity: 1;
  transform: translateY(0);
}
.qvt-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: #e2e8f0;
  white-space: nowrap;
}
.qvt-row i {
  width: 14px;
  text-align: center;
  color: #f97316;
  font-size: 0.7rem;
}
.qvt-row strong {
  color: #fff;
  font-size: 0.85rem;
}
.qvt-unit {
  color: #94a3b8;
  font-size: 0.7rem;
}

/* ══════════════════════════════════════════
   SEARCH AUTOCOMPLETE
   ══════════════════════════════════════════ */
.search-autocomplete {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid var(--border-color);
  border-top: none;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  z-index: 100;
  display: none;
  max-height: 340px;
  overflow-y: auto;
}
.ac-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  cursor: pointer;
  transition: background 0.15s;
}
.ac-item:hover {
  background: #fff7ed;
}
.ac-icon {
  width: 18px;
  text-align: center;
  color: #f97316;
  font-size: 0.85rem;
  flex-shrink: 0;
}
.ac-label {
  flex: 1;
  font-size: 0.88rem;
  color: var(--text-dark);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ac-label mark {
  background: #fed7aa;
  color: #9a3412;
  border-radius: 2px;
  padding: 0 2px;
}
.ac-type {
  font-size: 0.7rem;
  text-transform: uppercase;
  color: #a1a1aa;
  font-weight: 600;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

/* ── Trust banner responsive ── */
@media (max-width: 768px) {
  .trust-banner {
    gap: 0.75rem;
    padding: 6px 1rem;
    flex-wrap: wrap;
    justify-content: center;
  }
  .trust-item {
    font-size: 0.75rem;
    white-space: nowrap;
  }
  /* Hide geo-filter selects on small screens */
  .trust-item select { display: none; }
}
@media (max-width: 480px) {
  .trust-banner { display: none; }
}

/* ═══════════════════════════════════════════════════════════════
   MOBILE OVERRIDES — Marketplace-specific
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .rfq-form-grid {
    grid-template-columns: 1fr !important;
  }
  .rfq-card {
    grid-template-columns: 1fr !important;
    gap: 12px;
  }
}
@media (max-width: 480px) {
  .storefront-stats {
    grid-template-columns: 1fr !important;
  }
}
@media (max-width: 600px) {
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)) !important; }
  .mkt-main { padding: 12px; }
}

