/* W&E Fancy USA - Retail & Wholesale Platform Stylesheet */
:root {
  --primary: #0f2b48;
  --primary-light: #1e3a5f;
  --primary-dark: #0a1c30;
  --accent: #d97706;
  --accent-light: #fef3c7;
  --accent-hover: #b45309;
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --radius: 10px;
  --shadow: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -1px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Container */
.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Top Announcement Bar */
.top-bar {
  background: var(--primary-dark);
  color: #e2e8f0;
  font-size: 12.5px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.top-bar-links a {
  color: #cbd5e1;
  text-decoration: none;
  margin-left: 16px;
  transition: color 0.2s;
}
.top-bar-links a:hover { color: #ffffff; }

/* Main Header */
.main-header {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 4px rgba(0,0,0,0.03);
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  gap: 20px;
}
.logo-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--primary);
}
.logo-icon {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  font-weight: 800;
  font-size: 20px;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(15,43,72,0.25);
}
.logo-text h1 {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--primary);
  line-height: 1.1;
}
.logo-text span {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 700;
  color: var(--accent);
}

/* Header Search */
.header-search {
  flex: 1;
  max-width: 520px;
  position: relative;
}
.search-input-wrap {
  display: flex;
  align-items: center;
  border: 2px solid var(--border);
  border-radius: 30px;
  background: #f8fafc;
  padding: 4px 14px;
  transition: all 0.2s ease;
}
.search-input-wrap:focus-within {
  border-color: var(--primary-light);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(30,58,95,0.1);
}
.search-input-wrap input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 8px 10px;
  font-size: 14px;
  outline: none;
}
.search-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 4px;
}
.search-autocomplete {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-top: 6px;
  box-shadow: var(--shadow-lg);
  max-height: 400px;
  overflow-y: auto;
  display: none;
  z-index: 100;
}
.search-autocomplete.active { display: block; }
.autocomplete-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid #f1f5f9;
  cursor: pointer;
  text-decoration: none;
  color: var(--text-main);
  transition: background 0.15s;
}
.autocomplete-item:hover { background: #f8fafc; }
.autocomplete-item img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 6px;
  background: #f8fafc;
}
.autocomplete-info { flex: 1; font-size: 13px; }
.autocomplete-info .ac-title { font-weight: 600; color: var(--primary); }
.autocomplete-info .ac-meta { font-size: 11.5px; color: var(--text-muted); }

/* Mode Switcher */
.mode-toggle {
  display: flex;
  background: #f1f5f9;
  padding: 3px;
  border-radius: 25px;
  border: 1px solid var(--border);
}
.mode-btn {
  border: none;
  background: transparent;
  padding: 6px 14px;
  font-size: 12.5px;
  font-weight: 700;
  border-radius: 20px;
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 5px;
}
.mode-btn.active {
  background: #ffffff;
  color: var(--primary);
  box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}
.mode-btn.wholesale.active {
  background: var(--accent);
  color: #fff;
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.action-btn {
  background: transparent;
  border: 1px solid var(--border);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s;
}
.action-btn:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}
.action-btn.cart-btn {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  position: relative;
}
.action-btn.cart-btn:hover {
  background: var(--primary-light);
}
.cart-badge {
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 12px;
  margin-left: 4px;
}

/* Category Navigation Pills */
.category-nav-bar {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
  overflow-x: auto;
  white-space: nowrap;
}
.category-pills {
  display: flex;
  gap: 8px;
  list-style: none;
}
.cat-pill-btn {
  background: #f8fafc;
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  gap: 6px;
}
.cat-pill-btn:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}
.cat-pill-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.cat-count {
  font-size: 11px;
  opacity: 0.8;
}

/* Hero Vendor Profile Banner */
.vendor-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 60%, #172554 100%);
  color: #ffffff;
  border-radius: 16px;
  padding: 32px 36px;
  margin: 24px auto;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.vendor-hero::after {
  content: '';
  position: absolute;
  right: -50px;
  bottom: -50px;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(217,119,6,0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.vendor-hero-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  align-items: center;
}
.vendor-hero-info h2 {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 6px;
}
.vendor-tagline {
  color: #fde68a;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 14px;
}
.vendor-desc {
  font-size: 13.5px;
  color: #e2e8f0;
  max-width: 780px;
  line-height: 1.6;
  margin-bottom: 18px;
}
.vendor-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.vendor-badge {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  color: #ffffff;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}
.vendor-hero-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 220px;
}
.btn-gold {
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: #fff;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  box-shadow: 0 4px 10px rgba(217,119,6,0.3);
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn-gold:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(217,119,6,0.4);
}
.btn-outline-white {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.4);
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: all 0.15s;
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.1);
  border-color: #fff;
}

/* Main Catalog Layout */
.catalog-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  margin-bottom: 50px;
}

/* Filter Sidebar */
.filters-sidebar {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  align-self: start;
  position: sticky;
  top: 90px;
}
.filter-group {
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}
.filter-group:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}
.filter-title {
  font-size: 13.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-main);
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.filter-list {
  list-style: none;
  max-height: 220px;
  overflow-y: auto;
  padding-right: 4px;
}
.filter-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-main);
  padding: 4px 0;
  cursor: pointer;
}
.filter-item input[type='checkbox'] {
  accent-color: var(--primary);
  width: 15px;
  height: 15px;
  cursor: pointer;
}
.filter-item:hover { color: var(--primary); }
.filter-item .count {
  margin-left: auto;
  font-size: 11px;
  color: var(--text-muted);
}
.btn-clear-filters {
  width: 100%;
  background: #f1f5f9;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 12.5px;
  font-weight: 600;
  padding: 8px;
  border-radius: 6px;
  cursor: pointer;
  margin-top: 10px;
  transition: all 0.15s;
}
.btn-clear-filters:hover {
  background: #e2e8f0;
  color: var(--text-main);
}

/* Catalog Toolbar */
.catalog-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 18px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}
.toolbar-results {
  font-size: 13.5px;
  color: var(--text-muted);
}
.toolbar-results strong {
  color: var(--text-main);
}
.toolbar-sort {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}
.toolbar-sort select {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 13px;
  background: #fff;
  outline: none;
  cursor: pointer;
}

/* Product Cards Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 20px;
}

/* Product Card */
.product-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  position: relative;
}
.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: #cbd5e1;
}
.card-image-wrap {
  position: relative;
  width: 100%;
  padding-top: 85%;
  background: #ffffff;
  overflow: hidden;
  border-bottom: 1px solid #f1f5f9;
  cursor: pointer;
}
.card-image-wrap img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  transition: transform 0.3s ease;
}
.product-card:hover .card-image-wrap img {
  transform: translate(-50%, -50%) scale(1.05);
}
.card-badges {
  position: absolute;
  top: 8px;
  left: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 2;
}
.badge {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.3px;
}
.badge-halal {
  background: #10b981;
  color: #ffffff;
}
.badge-wholesale {
  background: var(--primary);
  color: #ffffff;
}
.badge-out-of-stock {
  background: #ef4444;
  color: #ffffff;
}
.card-quick-view {
  position: absolute;
  right: 8px;
  bottom: 8px;
  background: rgba(255,255,255,0.9);
  border: 1px solid var(--border);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  cursor: pointer;
  opacity: 0;
  transform: translateY(6px);
  transition: all 0.2s;
  box-shadow: var(--shadow);
}
.product-card:hover .card-quick-view {
  opacity: 1;
  transform: translateY(0);
}
.card-quick-view:hover {
  background: var(--primary);
  color: #fff;
}

/* Card Body */
.card-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11.5px;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.35;
  height: 38px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin-bottom: 10px;
  cursor: pointer;
}
.card-title:hover { color: var(--primary); }

/* Card Pricing */
.card-pricing {
  margin-top: auto;
  margin-bottom: 12px;
  padding-top: 8px;
  border-top: 1px solid #f1f5f9;
}
.price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.main-price {
  font-size: 18px;
  font-weight: 800;
  color: var(--primary);
}
.wholesale-badge-text {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-light);
  padding: 2px 6px;
  border-radius: 4px;
}
.retail-msrp {
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: line-through;
}
.moq-text {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Card Actions */
.card-actions {
  display: flex;
  gap: 8px;
}
.qty-stepper {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  width: 84px;
}
.qty-btn {
  background: #f8fafc;
  border: none;
  width: 26px;
  height: 32px;
  font-size: 14px;
  cursor: pointer;
  color: var(--text-main);
  transition: background 0.15s;
}
.qty-btn:hover { background: #e2e8f0; }
.qty-input {
  width: 32px;
  border: none;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  outline: none;
  background: transparent;
}
.btn-add-cart {
  flex: 1;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 32px;
}
.btn-add-cart:hover {
  background: var(--primary-light);
}

/* Pagination */
.pagination-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 36px;
}
.page-btn {
  background: #ffffff;
  border: 1px solid var(--border);
  color: var(--text-main);
  padding: 7px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}
.page-btn:hover:not(:disabled) {
  background: #f1f5f9;
  border-color: #cbd5e1;
}
.page-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Modal Framework */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15,23,42,0.65);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 400;
  padding: 16px;
}
.modal-overlay.active { display: flex; }
.modal-box {
  background: #ffffff;
  border-radius: 14px;
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
  position: relative;
  animation: modalFadeIn 0.2s ease-out;
}
@keyframes modalFadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: #f1f5f9;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all 0.15s;
  z-index: 10;
}
.modal-close:hover {
  background: #e2e8f0;
  color: var(--text-main);
}
.modal-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
}
.modal-header h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--primary);
}
.modal-body {
  padding: 24px;
}

/* Quick View Modal Grid */
.qv-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 28px;
}
.qv-gallery {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.qv-main-img {
  width: 100%;
  height: 280px;
  object-fit: contain;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  background: #fff;
}
.qv-thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
}
.qv-thumb {
  width: 60px;
  height: 60px;
  border: 2px solid var(--border);
  border-radius: 6px;
  object-fit: contain;
  cursor: pointer;
  padding: 4px;
  background: #fff;
  transition: border-color 0.15s;
}
.qv-thumb.active {
  border-color: var(--primary);
}
.qv-info h3 {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 8px;
}
.qv-meta {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.qv-pricing-box {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 16px;
}
.qv-wholesale-tiers {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
  margin-top: 10px;
}
.qv-wholesale-tiers th, .qv-wholesale-tiers td {
  padding: 6px 10px;
  border: 1px solid var(--border);
  text-align: left;
}
.qv-wholesale-tiers th {
  background: #f1f5f9;
  font-weight: 700;
}

/* Cart Drawer */
.cart-drawer-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(15,23,42,0.5);
  backdrop-filter: blur(2px);
  z-index: 300;
  display: none;
}
.cart-drawer-overlay.active { display: block; }
.cart-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 420px;
  max-width: 100vw;
  background: #ffffff;
  box-shadow: -5px 0 25px rgba(0,0,0,0.15);
  z-index: 301;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.cart-drawer.active {
  transform: translateX(0);
}
.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
}
.drawer-header h3 {
  font-size: 17px;
  font-weight: 800;
  color: var(--primary);
}
.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
}
.free-shipping-meter {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 16px;
  font-size: 12.5px;
}
.meter-bar {
  height: 6px;
  background: #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  margin-top: 6px;
}
.meter-fill {
  height: 100%;
  background: var(--success);
  border-radius: 10px;
  transition: width 0.3s;
}
.cart-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #f1f5f9;
}
.cart-item img {
  width: 55px;
  height: 55px;
  object-fit: contain;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2px;
}
.cart-item-details { flex: 1; }
.cart-item-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
}
.cart-item-price {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--primary);
  margin: 4px 0;
}
.drawer-footer {
  padding: 20px;
  border-top: 1px solid var(--border);
  background: #f8fafc;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 13.5px;
  margin-bottom: 8px;
}
.summary-row.grand-total {
  font-size: 18px;
  font-weight: 800;
  color: var(--primary);
  border-top: 1px dashed var(--border);
  padding-top: 10px;
  margin-top: 10px;
}
.btn-checkout {
  width: 100%;
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 14px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  margin-top: 12px;
  transition: background 0.15s;
}
.btn-checkout:hover {
  background: var(--primary-light);
}
.btn-quote-rfq {
  width: 100%;
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 12px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 13.5px;
  cursor: pointer;
  margin-top: 8px;
  transition: background 0.15s;
}
.btn-quote-rfq:hover {
  background: var(--accent-hover);
}

/* Footer */
.site-footer {
  background: var(--primary-dark);
  color: #94a3b8;
  padding: 48px 0 24px;
  font-size: 13.5px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 36px;
  margin-bottom: 36px;
}
.footer-col h4 {
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 14px;
}
.footer-col ul {
  list-style: none;
}
.footer-col ul li {
  margin-bottom: 8px;
}
.footer-col ul li a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.15s;
}
.footer-col ul li a:hover {
  color: #ffffff;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  text-align: center;
  font-size: 12.5px;
}

/* Responsive */
@media (max-width: 1024px) {
  .catalog-layout {
    grid-template-columns: 1fr;
  }
  .filters-sidebar {
    display: none;
  }
  .vendor-hero-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 640px) {
  .header-row {
    flex-wrap: wrap;
  }
  .header-search {
    order: 3;
    max-width: 100%;
    width: 100%;
  }
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .qv-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* Wholesale Customer Authentication Modal */
.auth-modal-box {
  max-width: 620px;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.35);
  background: #ffffff;
}
.auth-modal-header {
  background: linear-gradient(135deg, #0f2b48 0%, #1a365d 100%);
  padding: 22px 28px;
  border-bottom: none;
  position: relative;
}
.auth-header-badge {
  font-size: 11px;
  font-weight: 800;
  color: #f59e0b;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 4px;
}
.auth-header-title h3 {
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.auth-modal-box .modal-close {
  top: 18px;
  right: 18px;
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  width: 34px;
  height: 34px;
  font-size: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}
.auth-modal-box .modal-close:hover {
  background: rgba(255, 255, 255, 0.3);
  color: #ffffff;
  transform: rotate(90deg);
}
.auth-modal-body {
  padding: 26px 28px;
  max-height: calc(90vh - 90px);
  overflow-y: auto;
}
.auth-tabs-segmented {
  display: flex;
  background: #f1f5f9;
  padding: 5px;
  border-radius: 10px;
  margin-bottom: 22px;
  gap: 6px;
  border: 1px solid #e2e8f0;
}
.auth-tab-btn {
  flex: 1;
  padding: 10px 14px;
  border: none;
  background: transparent;
  font-size: 13.5px;
  font-weight: 700;
  color: #64748b;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.auth-tab-btn:hover {
  color: #0f2b48;
}
.auth-tab-btn.active {
  background: #ffffff;
  color: #0f2b48;
  box-shadow: 0 2px 8px rgba(15, 43, 72, 0.1);
}
.auth-tab-intro {
  margin-bottom: 18px;
}
.auth-tab-intro h4 {
  font-size: 16px;
  font-weight: 800;
  color: #0f2b48;
  margin-bottom: 4px;
}
.auth-tab-intro p {
  font-size: 13px;
  color: #64748b;
  line-height: 1.5;
  margin: 0;
}
.auth-alert {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 13.5px;
  margin-bottom: 18px;
  line-height: 1.5;
}
.form-group {
  margin-bottom: 15px;
}
.form-label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: #334155;
  margin-bottom: 6px;
}
.form-label .required {
  color: #ef4444;
  margin-left: 2px;
}
.form-input {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  font-size: 13.5px;
  color: #0f172a;
  background: #ffffff;
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
  font-family: inherit;
}
.form-input:focus {
  border-color: #0f2b48;
  box-shadow: 0 0 0 3px rgba(15, 43, 72, 0.1);
}
.input-with-icon {
  position: relative;
}
.input-with-icon .input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  color: #94a3b8;
  pointer-events: none;
}
.input-with-icon .form-input {
  padding-left: 40px;
}
.auth-form-section-title {
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #0f2b48;
  background: #f8fafc;
  padding: 7px 12px;
  border-radius: 6px;
  margin: 18px 0 12px 0;
  border-left: 3px solid #d97706;
}
.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.form-grid-3 {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 10px;
}
.auth-compliance-note {
  font-size: 11.5px;
  color: #475569;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px 14px;
  margin: 16px 0 18px 0;
  line-height: 1.5;
}
.auth-submit-btn {
  width: 100%;
  padding: 13px;
  font-size: 15px;
  font-weight: 800;
  border-radius: 8px;
  margin-top: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.auth-switch-prompt {
  text-align: center;
  margin-top: 18px;
  font-size: 13px;
  color: #64748b;
  line-height: 1.6;
}
.auth-link-btn {
  background: none;
  border: none;
  color: #0f2b48;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
  font-size: 13px;
}
.auth-link-btn:hover {
  color: #d97706;
}
@media (max-width: 600px) {
  .auth-modal-body {
    padding: 20px 16px;
  }
  .form-grid-2, .form-grid-3 {
    grid-template-columns: 1fr;
    gap: 0;
  }
}
