/* ==========================================================================
   Priift • AE Corporate Gifts & Price List - Stylesheet
   Modern, Ultra-responsive, Dark & Light Mode Theme
   ========================================================================== */

:root {
  /* Light Theme Color Palette */
  --bg-primary: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #ffffff;
  --bg-surface-subtle: #f1f5f9;
  --bg-card: #ffffff;
  
  --border-color: #e2e8f0;
  --border-subtle: #edf2f7;
  --border-focus: #6366f1;

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-inverse: #ffffff;

  --accent-primary: #4f46e5;
  --accent-primary-hover: #4338ca;
  --accent-primary-subtle: #eef2ff;
  --accent-primary-text: #4338ca;

  --accent-success: #059669;
  --accent-success-subtle: #ecfdf5;
  --accent-success-text: #065f46;

  --accent-warning: #d97706;
  --accent-warning-subtle: #fffbeb;

  --accent-danger: #dc2626;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.03);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.04);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --header-height: 70px;
  --sidebar-width: 320px;
}

[data-theme="dark"] {
  --bg-primary: #090d16;
  --bg-surface: #111827;
  --bg-surface-elevated: #1a2234;
  --bg-surface-subtle: #1e293b;
  --bg-card: #131c2e;

  --border-color: #243247;
  --border-subtle: #1e293b;
  --border-focus: #818cf8;

  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --text-inverse: #090d16;

  --accent-primary: #6366f1;
  --accent-primary-hover: #4f46e5;
  --accent-primary-subtle: rgba(99, 102, 241, 0.15);
  --accent-primary-text: #a5b4fc;

  --accent-success: #10b981;
  --accent-success-subtle: rgba(16, 185, 129, 0.15);
  --accent-success-text: #6ee7b7;

  --accent-warning: #f59e0b;
  --accent-warning-subtle: rgba(245, 158, 11, 0.15);

  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.6);
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

button, input, select, textarea {
  font-family: inherit;
  color: inherit;
}

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

/* ==========================================================================
   Header
   ========================================================================== */
.app-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-height);
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.header-container {
  max-width: 1700px;
  margin: 0 auto;
  height: 100%;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  font-size: 28px;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15));
}

.brand-title {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.brand-title span {
  color: var(--accent-primary);
  font-weight: 600;
}

.brand-subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.city-freight-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: var(--accent-success-subtle);
  color: var(--accent-success-text);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-stat {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding-right: 12px;
  border-right: 1px solid var(--border-color);
}

.stat-num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-primary);
  line-height: 1.1;
}

.stat-lbl {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background-color: var(--bg-surface);
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.action-btn:hover {
  background-color: var(--bg-surface-subtle);
  border-color: var(--text-muted);
}

.action-btn.icon-only {
  padding: 8px 10px;
}

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

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

.action-btn.secondary-btn {
  background-color: var(--bg-surface-subtle);
  border-color: var(--border-color);
}

.action-btn.text-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 6px 8px;
}

.action-btn.text-btn:hover {
  color: var(--text-primary);
  text-decoration: underline;
}

.badge-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--accent-primary);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: var(--radius-full);
}

/* Theme Toggle Icons */
[data-theme="light"] .dark-icon { display: none; }
[data-theme="dark"] .light-icon { display: none; }

/* ==========================================================================
   Layout: Sidebar + Content
   ========================================================================== */
.main-layout {
  max-width: 1700px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex: 1;
  padding: 20px 24px 40px;
  gap: 24px;
}

/* ==========================================================================
   Sidebar / Filters
   ========================================================================== */
.filters-sidebar {
  width: var(--sidebar-width);
  flex-shrink: 0;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  height: fit-content;
  max-height: calc(100vh - var(--header-height) - 40px);
  position: sticky;
  top: calc(var(--header-height) + 20px);
  overflow-y: auto;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.filters-sidebar::-webkit-scrollbar {
  width: 5px;
}
.filters-sidebar::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.sidebar-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-primary);
}

.sidebar-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidebar-close-btn {
  display: none;
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-color);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 1.3rem;
  line-height: 1;
  color: var(--text-primary);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.sidebar-apply-mobile {
  display: none;
  margin-top: 10px;
}

.full-width {
  width: 100%;
}

.mobile-filter-btn {
  display: none;
  background: var(--bg-surface);
  color: var(--text-primary);
  border-color: var(--accent-primary);
}

.sidebar-backdrop {
  display: none;
}

.text-btn {
  background: none;
  border: none;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-primary);
  cursor: pointer;
}

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

.filter-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.filter-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.filter-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.cat-count-indicator {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Search Box */
.search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 12px;
  color: var(--text-muted);
  pointer-events: none;
}

.search-box input {
  width: 100%;
  padding: 10px 32px 10px 36px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background-color: var(--bg-surface-subtle);
  color: var(--text-primary);
  font-size: 0.85rem;
  outline: none;
  transition: all 0.2s ease;
}

.search-box input:focus {
  background-color: var(--bg-surface);
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.clear-btn {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  font-size: 1.1rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
}

/* Price Filter Box */
.price-section {
  background: var(--bg-surface-subtle);
  padding: 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.price-basis-toggle {
  display: flex;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 2px;
}

.basis-btn {
  background: none;
  border: none;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.15s ease;
}

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

/* Budget Presets */
.budget-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.preset-pill {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 5px 9px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.15s ease;
}

.preset-pill:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

.preset-pill.active {
  background: var(--accent-primary);
  color: #ffffff;
  border-color: var(--accent-primary);
}

/* Price Inputs Row */
.price-inputs-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.price-field {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1;
}

.currency-prefix {
  position: absolute;
  left: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  pointer-events: none;
}

.price-field input {
  width: 100%;
  padding: 7px 8px 7px 22px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  outline: none;
}

.price-field input:focus {
  border-color: var(--border-focus);
}

.range-sep {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Dual Range Slider */
.range-slider-wrapper {
  position: relative;
  height: 20px;
  display: flex;
  align-items: center;
}

.range-track {
  position: absolute;
  width: 100%;
  height: 6px;
  background: var(--border-color);
  border-radius: 3px;
}

.range-slider-wrapper input[type="range"] {
  position: absolute;
  width: 100%;
  height: 6px;
  background: none;
  pointer-events: none;
  -webkit-appearance: none;
  appearance: none;
  margin: 0;
}

.range-slider-wrapper input[type="range"]::-webkit-slider-thumb {
  pointer-events: auto;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-primary);
  border: 2px solid #ffffff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.3);
  cursor: pointer;
  transition: transform 0.1s ease;
}

.range-slider-wrapper input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.range-slider-wrapper input[type="range"]::-moz-range-thumb {
  pointer-events: auto;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-primary);
  border: 2px solid #ffffff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.3);
  cursor: pointer;
}

.range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

/* Category Tabs (Curated vs Catalog) */
.category-tabs {
  display: flex;
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 3px;
  gap: 3px;
  margin-bottom: 6px;
}

.cat-tab-btn {
  flex: 1;
  background: none;
  border: none;
  padding: 5px 8px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  text-align: center;
}

.cat-tab-btn.active {
  background: var(--bg-surface);
  color: var(--accent-primary);
  box-shadow: var(--shadow-sm);
}

/* Category Pills List */
.category-pills-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 290px;
  overflow-y: auto;
  padding-right: 4px;
}

.category-pills-list::-webkit-scrollbar {
  width: 4px;
}
.category-pills-list::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 2px;
}

.cat-pill-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface-subtle);
  border: 1px solid transparent;
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.cat-pill-item:hover {
  background: var(--bg-surface);
  border-color: var(--border-color);
  color: var(--text-primary);
}

.cat-pill-item.active {
  background: var(--accent-primary-subtle);
  border-color: var(--accent-primary);
  color: var(--accent-primary-text);
  font-weight: 700;
}

.cat-name-truncate {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-right: 8px;
}

.cat-pill-count {
  font-size: 0.7rem;
  font-family: var(--font-mono);
  background: var(--bg-surface);
  padding: 2px 6px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  flex-shrink: 0;
}

.cat-pill-item.active .cat-pill-count {
  background: var(--accent-primary);
  color: #ffffff;
  border-color: var(--accent-primary);
}

/* Checkbox & Dropdown Options */
.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  accent-color: var(--accent-primary);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.gst-filter-group {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sub-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
}

.form-select {
  padding: 7px 10px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  color: var(--text-primary);
  font-size: 0.8rem;
  outline: none;
  cursor: pointer;
}

.form-select:focus {
  border-color: var(--border-focus);
}

.sidebar-footer-note {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 0.7rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.sidebar-footer-note svg {
  flex-shrink: 0;
  margin-top: 2px;
}

/* ==========================================================================
   Content Area & Toolbar
   ========================================================================== */
/* Quick Category Horizontal Bar */
.quick-category-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 2px 8px;
  -webkit-overflow-scrolling: touch;
}

.quick-category-bar::-webkit-scrollbar {
  height: 5px;
}
.quick-category-bar::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}

.quick-cat-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 8px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-sm);
  user-select: none;
}

.quick-cat-btn:hover {
  background: var(--bg-surface-subtle);
  border-color: var(--accent-primary);
  color: var(--text-primary);
  transform: translateY(-1px);
}

.quick-cat-btn.active {
  background: var(--accent-primary);
  color: #ffffff;
  border-color: var(--accent-primary);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
}

.quick-cat-icon {
  font-size: 1rem;
  line-height: 1;
}

.quick-cat-count {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  background: var(--bg-surface-subtle);
  padding: 1px 6px;
  border-radius: var(--radius-full);
  color: var(--text-muted);
}

.quick-cat-btn.active .quick-cat-count {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

/* Card Tags Row */
.card-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 2px;
}

.card-tag-pill {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-sm);
  background: var(--accent-primary-subtle);
  color: var(--accent-primary-text);
  border: 1px solid rgba(99, 102, 241, 0.15);
}

.card-tag-pill.tag-festival {
  background: #fef3c7;
  color: #92400e;
  border-color: rgba(217, 119, 6, 0.25);
}

[data-theme="dark"] .card-tag-pill.tag-festival {
  background: rgba(245, 158, 11, 0.18);
  color: #fcd34d;
}

.card-tag-pill.tag-hamper {
  background: #fdf2f8;
  color: #9d174d;
  border-color: rgba(219, 39, 119, 0.25);
}

[data-theme="dark"] .card-tag-pill.tag-hamper {
  background: rgba(236, 72, 153, 0.18);
  color: #f472b6;
}

.card-tag-pill.tag-office {
  background: #eff6ff;
  color: #1e40af;
  border-color: rgba(59, 130, 246, 0.25);
}

[data-theme="dark"] .card-tag-pill.tag-office {
  background: rgba(59, 130, 246, 0.18);
  color: #93c5fd;
}

.card-tag-pill.tag-bag {
  background: #f0fdf4;
  color: #166534;
  border-color: rgba(34, 197, 94, 0.25);
}

[data-theme="dark"] .card-tag-pill.tag-bag {
  background: rgba(34, 197, 94, 0.18);
  color: #86efac;
}

.content-toolbar {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  box-shadow: var(--shadow-sm);
}

.toolbar-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.results-stats {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.results-stats strong {
  color: var(--accent-primary);
  font-size: 0.95rem;
}

.active-filter-tags {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.filter-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--accent-primary-subtle);
  color: var(--accent-primary-text);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-full);
}

.tag-remove-btn {
  background: none;
  border: none;
  font-size: 0.9rem;
  color: inherit;
  cursor: pointer;
  line-height: 1;
}

.toolbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sort-control {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.view-switch-group {
  display: flex;
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 2px;
}

.view-btn {
  background: none;
  border: none;
  padding: 5px 8px;
  border-radius: 4px;
  cursor: pointer;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.view-btn.active {
  background: var(--bg-surface);
  color: var(--accent-primary);
  box-shadow: var(--shadow-sm);
}

/* ==========================================================================
   Products Grid
   ========================================================================== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 24px;
  width: 100%;
  min-width: 0;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
  box-shadow: var(--shadow-sm);
}

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

/* Image Box */
.card-image-box {
  position: relative;
  width: 100%;
  padding-top: 75%; /* 4:3 Aspect Ratio */
  background: #f8fafc;
  overflow: hidden;
  cursor: pointer;
}

[data-theme="dark"] .card-image-box {
  background: #0f172a;
}

.card-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
  transition: transform 0.3s ease;
}

.product-card:hover .card-img {
  transform: scale(1.05);
}

.card-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  z-index: 2;
}

.badge-sku {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(15, 23, 42, 0.85);
  color: #ffffff;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  backdrop-filter: blur(4px);
}

.badge-video {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  background: #dc2626;
  color: #ffffff;
  padding: 3px 7px;
  border-radius: var(--radius-sm);
}

.card-bookmark-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(4px);
}

[data-theme="dark"] .card-bookmark-btn {
  background: rgba(17, 24, 39, 0.9);
  border-color: rgba(255, 255, 255, 0.1);
}

.card-bookmark-btn:hover {
  transform: scale(1.1);
  color: var(--accent-primary);
}

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

/* Card Body */
.card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 10px;
}

.card-category {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-primary);
}

.card-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.7em;
}

.card-features {
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-colors {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.color-tag {
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  padding: 1px 6px;
  border-radius: var(--radius-sm);
}

/* Card Price Section */
.card-price-box {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px dashed var(--border-color);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.price-main {
  display: flex;
  flex-direction: column;
}

.price-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.bulk-price {
  font-family: var(--font-mono);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--accent-success);
  line-height: 1.1;
}

.sample-price-box {
  text-align: right;
  display: flex;
  flex-direction: column;
}

.sample-label {
  font-size: 0.65rem;
  color: var(--text-muted);
}

.sample-val {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.coming-soon-badge {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-warning);
  background: var(--accent-warning-subtle);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
}

/* Card Footer info */
.card-footer-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.7rem;
  color: var(--text-muted);
  padding-top: 8px;
}

.card-footer-info span {
  background: var(--bg-surface-subtle);
  padding: 2px 6px;
  border-radius: 4px;
}

/* ==========================================================================
   Table View
   ========================================================================== */
.products-table-wrapper {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow-x: auto;
  box-shadow: var(--shadow-sm);
}

.products-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  text-align: left;
}

.products-table th {
  background: var(--bg-surface-subtle);
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: var(--header-height);
  z-index: 10;
  white-space: nowrap;
}

.products-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: middle;
}

.products-table tr:hover {
  background: var(--bg-surface-subtle);
}

.tbl-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  background: #f8fafc;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
}

.tbl-sku {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
}

.tbl-name {
  font-weight: 600;
  color: var(--text-primary);
  max-width: 320px;
}

.tbl-desc-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.tbl-price-bulk {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--accent-success);
  white-space: nowrap;
}

.tbl-price-sample {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-secondary);
  white-space: nowrap;
}

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

/* ==========================================================================
   Pagination Bar
   ========================================================================== */
.pagination-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 16px 20px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.page-size-selector {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.page-size-btn {
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-color);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-secondary);
}

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

.pagination-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.page-nav-btn {
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-color);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.page-nav-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.page-number-btn {
  min-width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-primary);
}

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

/* Empty State */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  background: var(--bg-surface);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.empty-icon {
  font-size: 40px;
}

.empty-state h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
}

.empty-state p {
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 400px;
}

/* ==========================================================================
   Product Modal / Lightbox
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}

.modal-dialog {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  max-width: 850px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-xl);
  animation: scaleUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-color);
  font-size: 1.4rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.15s ease;
}

.modal-close-btn:hover {
  background: var(--accent-danger);
  color: #ffffff;
  border-color: var(--accent-danger);
}

.modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding: 24px;
}

.modal-media-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.modal-large-img {
  width: 100%;
  border-radius: var(--radius-lg);
  background: #f8fafc;
  border: 1px solid var(--border-subtle);
  object-fit: contain;
  max-height: 380px;
}

[data-theme="dark"] .modal-large-img {
  background: #0f172a;
}

.modal-video-box iframe {
  width: 100%;
  height: 220px;
  border-radius: var(--radius-md);
  border: none;
}

.modal-details-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.modal-sku-cat {
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.3;
}

.modal-price-card {
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  justify-content: space-around;
  text-align: center;
}

.modal-specs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}

.modal-specs-table td {
  padding: 6px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.modal-specs-table td:first-child {
  color: var(--text-muted);
  width: 35%;
  font-weight: 600;
}

.modal-specs-table td:last-child {
  color: var(--text-primary);
  font-weight: 600;
}

/* ==========================================================================
   Shortlist Drawer
   ========================================================================== */
.shortlist-drawer {
  position: fixed;
  top: 0;
  right: -420px;
  width: 400px;
  height: 100vh;
  background: var(--bg-surface);
  border-left: 1px solid var(--border-color);
  box-shadow: var(--shadow-xl);
  z-index: 90;
  display: flex;
  flex-direction: column;
  transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.shortlist-drawer.open {
  right: 0;
}

.drawer-header {
  padding: 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.drawer-title-group h3 {
  font-size: 1.1rem;
  font-weight: 700;
}

.drawer-count-badge {
  background: var(--accent-primary-subtle);
  color: var(--accent-primary-text);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.drawer-close-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.drawer-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
}

.drawer-empty .sub {
  font-size: 0.75rem;
  margin-top: 6px;
}

.shortlist-item {
  display: flex;
  gap: 12px;
  padding: 10px;
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  align-items: center;
}

.shortlist-img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  background: #ffffff;
  border-radius: var(--radius-sm);
  padding: 4px;
}

.shortlist-info {
  flex: 1;
  min-width: 0;
}

.shortlist-sku {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.8rem;
}

.shortlist-title {
  font-size: 0.78rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text-primary);
}

.shortlist-price {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--accent-success);
  font-size: 0.85rem;
}

.shortlist-remove-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.2rem;
  padding: 4px;
}

.shortlist-remove-btn:hover {
  color: var(--accent-danger);
}

.drawer-footer {
  padding: 18px 20px;
  border-top: 1px solid var(--border-color);
  background: var(--bg-surface-subtle);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.drawer-total-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.9rem;
}

.drawer-total-box strong {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  color: var(--accent-success);
}

.drawer-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ==========================================================================
   Toast Notifications
   ========================================================================== */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  background: var(--bg-surface-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  padding: 10px 16px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  font-size: 0.82rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: auto;
  animation: slideInUp 0.25s ease forwards;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleUp {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@keyframes slideInUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
/* ==========================================================================
   Responsive Design System
   ========================================================================== */

/* Large Tablets & Small Laptops (<= 1200px) */
@media (max-width: 1200px) {
  :root {
    --sidebar-width: 290px;
  }

  .main-layout {
    padding: 16px 20px 40px;
    gap: 20px;
  }

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

/* Tablets & Mobile (<= 1024px): Slide-Over Filter Drawer */
@media (max-width: 1024px) {
  .main-layout {
    flex-direction: column;
    padding: 14px 16px 30px;
    gap: 14px;
  }

  /* Transform Sidebar into Slide-Over Drawer */
  .filters-sidebar {
    position: fixed;
    top: 0;
    left: -360px;
    width: 340px;
    max-width: 88vw;
    height: 100vh;
    max-height: 100vh;
    z-index: 150;
    background: var(--bg-surface);
    border: none;
    border-right: 1px solid var(--border-color);
    border-radius: 0;
    box-shadow: var(--shadow-xl);
    padding: 20px;
    overflow-y: auto;
    transition: left 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .filters-sidebar.open {
    left: 0;
  }

  /* Show mobile filter elements */
  .mobile-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    padding: 7px 12px;
  }

  .sidebar-close-btn {
    display: inline-flex;
  }

  .sidebar-apply-mobile {
    display: block;
    position: sticky;
    bottom: -20px;
    background: var(--bg-surface);
    padding: 14px 0 6px;
    border-top: 1px solid var(--border-subtle);
    margin-top: 16px;
  }

  .sidebar-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 140;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
  }

  .sidebar-backdrop.active {
    opacity: 1;
    pointer-events: auto;
  }

  .modal-grid {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .modal-large-img {
    max-height: 300px;
  }
}

/* Mobile Screens (<= 768px) */
@media (max-width: 768px) {
  :root {
    --header-height: 62px;
  }

  .header-container {
    padding: 0 14px;
    gap: 10px;
  }

  .brand-logo {
    gap: 8px;
  }

  .logo-icon {
    font-size: 24px;
  }

  .brand-title {
    font-size: 1.05rem;
  }

  .city-freight-badge {
    display: none;
  }

  .header-stat {
    display: none;
  }

  .shortlist-trigger span:not(.badge-count) {
    display: none;
  }

  .shortlist-trigger {
    padding: 8px 10px;
  }

  /* Quick categories pill bar */
  .quick-category-bar {
    padding: 2px 0 6px;
    gap: 6px;
  }

  .quick-cat-btn {
    padding: 6px 11px;
    font-size: 0.74rem;
  }

  /* Toolbar */
  .content-toolbar {
    flex-direction: column;
    align-items: stretch;
    padding: 10px 14px;
    gap: 10px;
  }

  .toolbar-left {
    justify-content: space-between;
    width: 100%;
  }

  .toolbar-right {
    justify-content: space-between;
    width: 100%;
  }

  .sort-control {
    flex: 1;
  }

  .sort-control select {
    width: 100%;
  }

  /* Two Column Product Cards on Mobile for high information density */
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .product-card {
    border-radius: var(--radius-md);
  }

  .card-image-box {
    padding-top: 85%;
  }

  .card-img {
    padding: 8px;
  }

  .card-badges {
    top: 6px;
    left: 6px;
    gap: 3px;
  }

  .badge-sku {
    font-size: 0.65rem;
    padding: 2px 5px;
  }

  .badge-video {
    font-size: 0.62rem;
    padding: 2px 5px;
  }

  .card-bookmark-btn {
    top: 6px;
    right: 6px;
    width: 28px;
    height: 28px;
  }

  .card-body {
    padding: 10px 10px 12px;
    gap: 6px;
  }

  .card-category {
    font-size: 0.65rem;
  }

  .card-tags-row {
    gap: 3px;
  }

  .card-tag-pill {
    font-size: 0.62rem;
    padding: 1px 5px;
  }

  .card-title {
    font-size: 0.8rem;
    line-height: 1.25;
    min-height: 2.5em;
  }

  .card-features {
    display: none; /* Hide verbose bullets on mobile 2-col to keep cards neat */
  }

  .card-colors {
    font-size: 0.68rem;
  }

  .card-price-box {
    padding-top: 8px;
    align-items: flex-end;
  }

  .bulk-price {
    font-size: 1.1rem;
  }

  .price-label {
    font-size: 0.62rem;
  }

  .sample-price-box {
    display: none; /* Keep mobile card clean, sample price shown in detail modal & table */
  }

  .card-footer-info {
    font-size: 0.65rem;
    padding-top: 6px;
  }

  /* Modal on Mobile */
  .modal-dialog {
    max-height: 94vh;
    border-radius: var(--radius-lg);
  }

  .modal-grid {
    padding: 16px;
    gap: 12px;
  }

  .modal-large-img {
    max-height: 220px;
  }

  .modal-title {
    font-size: 1.05rem;
  }

  /* Drawer on Mobile */
  .shortlist-drawer {
    width: 100%;
    right: -100%;
  }

  /* Pagination Bar on Mobile */
  .pagination-bar {
    padding: 12px 14px;
    flex-direction: column;
    gap: 12px;
  }

  .page-size-selector, .pagination-controls {
    width: 100%;
    justify-content: center;
  }
}

/* Compact Smartphones (<= 420px) */
@media (max-width: 420px) {
  .brand-subtitle {
    display: none;
  }

  .products-grid {
    gap: 8px;
  }

  .card-body {
    padding: 8px;
  }

  .bulk-price {
    font-size: 1rem;
  }
}

/* ==========================================================================
   USER CUSTOM OVERRIDES:
   1. 3 Products Per Row on Desktop
   2. Remove Scroll from Bottom (Zero Horizontal Overflow)
   3. Responsive Layout for All Views
   ========================================================================== */

/* Remove Bottom Horizontal Scroll */
html, body {
  overflow-x: hidden !important;
  max-width: 100vw !important;
  width: 100% !important;
  position: relative;
}

.main-layout {
  max-width: 1540px !important;
  width: 100% !important;
  min-width: 0 !important;
  overflow-x: hidden !important;
  box-sizing: border-box !important;
}

.content-area {
  flex: 1 1 0% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  overflow-x: hidden !important;
}

/* Hide scrollbar on quick category bar */
.quick-category-bar {
  overflow-x: auto !important;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}
.quick-category-bar::-webkit-scrollbar {
  display: none !important;
}

/* 4 Products Per Row on Desktop (>= 1080px) */
@media (min-width: 1080px) {
  .products-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 20px !important;
  }
}

/* 3 Products Per Row on Laptops / Tablets (820px - 1079px) */
@media (min-width: 820px) and (max-width: 1079px) {
  .products-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 16px !important;
  }
}

/* 2 Products Per Row on Tablets & Mobile (360px - 819px) */
@media (min-width: 360px) and (max-width: 819px) {
  .products-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }
}

/* 1 Product Per Row on very small screens (< 360px) */
@media (max-width: 359px) {
  .products-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
}

/* Fix Card Dimensions for 3-Col Layout */
.product-card {
  width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

.quick-category-bar { display: none !important; }

/* ==========================================================================
   ATTRACTIVE ADD TO SHORTLIST BUTTON & CARD ACTIONS
   ========================================================================== */

/* Card Action Bar */
.card-action-bar {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin-top: 14px !important;
  padding-top: 12px !important;
  border-top: 1px solid var(--border-subtle) !important;
}

/* Primary Attractive Add to Shortlist Button */
.card-shortlist-btn {
  flex: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  padding: 10px 14px !important;
  border-radius: var(--radius-md) !important;
  font-size: 0.86rem !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  border: 1px solid #29547C !important;
  background: linear-gradient(135deg, #29547C 0%, #1e3d59 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 3px 10px rgba(41, 84, 124, 0.25) !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  text-decoration: none !important;
  user-select: none !important;
  line-height: 1.2 !important;
}

.card-shortlist-btn:hover {
  background: linear-gradient(135deg, #1e3d59 0%, #14283b 100%) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 18px rgba(41, 84, 124, 0.38) !important;
  border-color: #14283b !important;
  color: #ffffff !important;
}

.card-shortlist-btn:active {
  transform: translateY(0) scale(0.98) !important;
}

/* Active / Already Shortlisted State */
.card-shortlist-btn.is-shortlisted {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%) !important;
  border-color: #059669 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35) !important;
}

.card-shortlist-btn.is-shortlisted:hover {
  background: linear-gradient(135deg, #047857 0%, #059669 100%) !important;
  border-color: #047857 !important;
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.45) !important;
}

.btn-bookmark-icon, .btn-check-icon {
  flex-shrink: 0 !important;
  transition: transform 0.2s ease !important;
}

.card-shortlist-btn:hover .btn-bookmark-icon {
  transform: scale(1.15) rotate(-6deg) !important;
}

.card-shortlist-btn.is-shortlisted .btn-check-icon {
  animation: checkPulse 0.3s ease !important;
}

@keyframes checkPulse {
  0% { transform: scale(0.8); }
  50% { transform: scale(1.25); }
  100% { transform: scale(1); }
}

/* Card WhatsApp Quick Button */
.card-wa-btn {
  width: 40px !important;
  height: 40px !important;
  border-radius: var(--radius-md) !important;
  background: #25D366 !important;
  color: #ffffff !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  box-shadow: 0 3px 10px rgba(37, 211, 102, 0.3) !important;
  border: 1px solid rgba(0, 0, 0, 0.05) !important;
  transition: all 0.25s ease !important;
  text-decoration: none !important;
}

.card-wa-btn:hover {
  background: #1eb956 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.45) !important;
  color: #ffffff !important;
}

/* Enhanced Floating Card Bookmark on Image */
.card-bookmark-btn {
  width: 36px !important;
  height: 36px !important;
  background: rgba(255, 255, 255, 0.95) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.card-bookmark-btn:hover {
  transform: scale(1.18) !important;
  color: #29547C !important;
  box-shadow: 0 6px 16px rgba(41, 84, 124, 0.3) !important;
}

.card-bookmark-btn.active {
  background: linear-gradient(135deg, #059669, #10b981) !important;
  color: #ffffff !important;
  border-color: #059669 !important;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.45) !important;
}

/* Header Shortlist Button Enhanced */
.shortlist-trigger {
  background: linear-gradient(135deg, #E9B44D 0%, #d49a33 100%) !important;
  color: #0b1e36 !important;
  font-weight: 800 !important;
  border: 1px solid rgba(233, 180, 77, 0.5) !important;
  box-shadow: 0 4px 14px rgba(233, 180, 77, 0.35) !important;
  transition: all 0.25s ease !important;
}

.shortlist-trigger:hover {
  background: linear-gradient(135deg, #f5c25e 0%, #e0a43b 100%) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 18px rgba(233, 180, 77, 0.48) !important;
}

.shortlist-trigger .badge-count {
  background: #0b1e36 !important;
  color: #E9B44D !important;
  font-weight: 800 !important;
}


/* ==========================================================================
   Catalog Top Filters (Top Bar replaces Left Sidebar)
   ========================================================================== */
.main-layout {
  max-width: 1680px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column !important;
  flex: 1;
  padding: 16px 24px 40px;
  gap: 20px;
}

.content-area {
  width: 100% !important;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.catalog-top-filters {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 18px 22px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  position: relative;
}

/* Row 1: Search, Price Mode, Sort & Reset */
.top-filter-row.search-controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.top-search-col {
  flex: 1;
  min-width: 280px;
}

.top-search-col .search-box {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.top-search-col .search-box input {
  width: 100%;
  background: var(--bg-surface-subtle);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 11px 40px 11px 42px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-primary);
  transition: all 0.2s ease;
}

.top-search-col .search-box input:focus {
  outline: none;
  border-color: var(--accent-primary);
  background: var(--bg-surface);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}

.top-search-col .search-icon {
  position: absolute;
  left: 14px;
  color: var(--text-muted);
  pointer-events: none;
}

.top-search-col .clear-btn {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  font-size: 1.2rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
}

.top-controls-col {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.top-basis-group {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-surface-subtle);
  padding: 4px 6px 4px 10px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.top-basis-group .control-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.top-reset-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.15s ease;
}

.top-reset-btn:hover {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #dc2626;
}

/* Row 2: Categories Filter Bar */
.top-filter-row.categories-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px solid var(--border-subtle);
  padding-top: 14px;
}

.cat-bar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.cat-bar-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cat-bar-title {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.cat-count-indicator {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-primary);
  background: var(--accent-primary-subtle);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.category-pills-list.top-category-pills {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 8px;
  max-height: none;
  overflow-y: visible;
  padding: 2px 0 4px;
}

.top-category-pills .cat-pill-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: var(--radius-full);
  background: var(--bg-surface-subtle);
  border: 1.5px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.top-category-pills .cat-pill-item:hover {
  background: var(--bg-surface);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(79, 70, 229, 0.12);
}

.top-category-pills .cat-pill-item.active {
  background: linear-gradient(135deg, #3730a3 0%, #4f46e5 100%);
  border-color: #3730a3;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.top-category-pills .cat-pill-item.active .cat-pill-count {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.top-category-pills .cat-pill-count {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  font-weight: 700;
  background: var(--border-color);
  color: var(--text-secondary);
  padding: 1px 7px;
  border-radius: var(--radius-full);
}

/* Row 3: Budget Presets & Custom Range */
.top-filter-row.budget-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  border-top: 1px solid var(--border-subtle);
  padding-top: 12px;
}

.budget-col-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.budget-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
}

.budget-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.budget-presets .preset-pill {
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.15s ease;
}

.budget-presets .preset-pill:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

.budget-presets .preset-pill.active {
  background: var(--accent-primary);
  color: #ffffff;
  border-color: var(--accent-primary);
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.25);
}

.budget-col-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.custom-range-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
}

.top-price-inputs {
  display: flex;
  align-items: center;
  gap: 6px;
}

.top-price-inputs .price-field {
  position: relative;
  display: flex;
  align-items: center;
}

.top-price-inputs .price-field input {
  width: 78px;
  padding: 5px 6px 5px 20px;
  font-size: 0.8rem;
  font-family: var(--font-mono);
  font-weight: 600;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  color: var(--text-primary);
}

.top-price-inputs .price-field input:focus {
  outline: none;
  border-color: var(--accent-primary);
}

.top-price-inputs .currency-prefix {
  position: absolute;
  left: 7px;
  font-size: 0.75rem;
  color: var(--text-muted);
  pointer-events: none;
}

.top-price-inputs .range-sep {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Freight Note Inline */
.freight-note-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--accent-success-text);
  background: var(--accent-success-subtle);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-weight: 600;
  margin-left: 16px;
}

/* Remove old mobile sidebar styles */
.mobile-filter-btn {
  display: none !important;
}
.filters-sidebar {
  display: none !important;
}
.sidebar-backdrop {
  display: none !important;
}

@media (max-width: 768px) {
  .top-filter-row.search-controls-row {
    flex-direction: column;
    align-items: stretch;
  }
  .top-controls-col {
    justify-content: space-between;
  }
  .top-filter-row.budget-row {
    flex-direction: column;
    align-items: stretch;
  }
  .budget-col-right {
    margin-top: 4px;
  }
  .freight-note-inline {
    margin-left: 0;
    margin-top: 6px;
    display: flex;
  }
}


/* WhatsApp Modal Button */
.modal-wa-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 13px 22px;
  border-radius: var(--radius-md);
  text-decoration: none !important;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  width: 100%;
}

.modal-wa-btn:hover {
  background: linear-gradient(135deg, #20ba5a 0%, #0d7367 100%);
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
}

.modal-wa-btn svg {
  flex-shrink: 0;
}


/* ==========================================================================
   COMPREHENSIVE MOBILE & TABLET RESPONSIVE FIXES
   ========================================================================== */

/* Prevent horizontal overflow */
html, body {
  max-width: 100vw !important;
  overflow-x: hidden !important;
}

/* Header link text */
.back-to-site-btn {
  color: var(--color-primary, #29547c);
  background: rgba(41,84,124,0.12);
  text-decoration: none;
  font-weight: 700;
  border: 1px solid rgba(41,84,124,0.3);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.back-to-site-btn .btn-text-short {
  display: none;
}

/* Horizontal Scrollable Category Bar (Single Clean Swipeable Row) */
.category-pills-list.top-category-pills {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  -webkit-overflow-scrolling: touch !important;
  scrollbar-width: none !important;
  gap: 8px !important;
  padding: 4px 2px 8px !important;
  width: 100% !important;
  max-width: 100% !important;
}

.category-pills-list.top-category-pills::-webkit-scrollbar {
  display: none !important;
}

.top-category-pills .cat-pill-item {
  display: inline-flex !important;
  flex: 0 0 auto !important;
  width: auto !important;
  max-width: none !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 8px 14px !important;
  border-radius: 9999px !important;
  background: var(--bg-surface-subtle) !important;
  border: 1.5px solid var(--border-color) !important;
  font-size: 0.82rem !important;
  white-space: nowrap !important;
  box-sizing: border-box !important;
}

.top-category-pills .cat-name-truncate {
  white-space: nowrap !important;
  overflow: visible !important;
  text-overflow: clip !important;
  padding-right: 2px !important;
}

/* Horizontal Scrollable Budget Bar */
.budget-presets {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  -webkit-overflow-scrolling: touch !important;
  scrollbar-width: none !important;
  gap: 6px !important;
  padding: 2px 2px 6px !important;
  width: 100% !important;
}

.budget-presets::-webkit-scrollbar {
  display: none !important;
}

.budget-presets .preset-pill {
  flex: 0 0 auto !important;
  white-space: nowrap !important;
}

/* Tablet & Mobile Screens (<= 768px) */
@media (max-width: 768px) {
  :root {
    --header-height: 58px;
  }

  .header-container {
    padding: 0 10px !important;
    gap: 8px !important;
    justify-content: space-between !important;
  }

  .brand-group {
    gap: 8px !important;
    flex: 1 !important;
    min-width: 0 !important;
    overflow: hidden !important;
  }

  .brand-logo {
    gap: 6px !important;
    flex-shrink: 0 !important;
  }

  .logo-icon {
    font-size: 22px !important;
  }

  .brand-title {
    font-size: 0.95rem !important;
    white-space: nowrap !important;
    line-height: 1.2 !important;
  }

  .brand-subtitle {
    display: none !important;
  }

  .back-to-site-btn {
    padding: 4px 8px !important;
    font-size: 0.72rem !important;
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    border-radius: var(--radius-full) !important;
  }

  .back-to-site-btn .btn-text-full {
    display: none !important;
  }

  .back-to-site-btn .btn-text-short {
    display: inline !important;
  }

  .header-actions {
    flex-shrink: 0 !important;
  }

  .shortlist-trigger {
    padding: 7px 10px !important;
  }

  /* Main layout on mobile: zero extra margin, zero overflow */
  .main-layout {
    padding: 10px 10px 30px !important;
    gap: 12px !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
  }

  /* Filter card on mobile */
  .catalog-top-filters {
    padding: 12px 12px !important;
    border-radius: var(--radius-md) !important;
    gap: 12px !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
  }

  .top-filter-row.search-controls-row {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
    width: 100% !important;
  }

  .top-search-col {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  .top-search-col .search-box {
    width: 100% !important;
    max-width: 100% !important;
  }

  .top-search-col .search-box input {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 10px 36px 10px 38px !important;
    font-size: 0.88rem !important;
  }

  .top-controls-col {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    width: 100% !important;
  }

  .sort-control {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    flex: 1 !important;
    min-width: 0 !important;
  }

  .sort-control label {
    font-size: 0.78rem !important;
    white-space: nowrap !important;
  }

  .sort-control select {
    width: 100% !important;
    min-width: 0 !important;
    font-size: 0.8rem !important;
    padding: 7px 8px !important;
  }

  .top-reset-btn {
    flex: 0 0 auto !important;
    padding: 7px 12px !important;
    font-size: 0.78rem !important;
    white-space: nowrap !important;
  }

  /* Categories header row on mobile */
  .top-filter-row.categories-row {
    padding-top: 10px !important;
    gap: 8px !important;
  }

  .cat-bar-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
  }

  .cat-bar-title {
    font-size: 0.82rem !important;
  }

  /* Budget row on mobile */
  .top-filter-row.budget-row {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
    padding-top: 10px !important;
  }

  .budget-col-left {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 6px !important;
    width: 100% !important;
  }

  .budget-title {
    font-size: 0.82rem !important;
  }

  .budget-col-right {
    width: 100% !important;
    justify-content: flex-start !important;
    margin-top: 2px !important;
  }

  .top-price-inputs {
    width: 100% !important;
    justify-content: flex-start !important;
    gap: 8px !important;
  }

  .top-price-inputs .price-field input {
    width: 75px !important;
    font-size: 0.82rem !important;
    padding: 6px 6px 6px 20px !important;
  }

  /* Results stats on mobile */
  .content-toolbar {
    padding: 4px 0 !important;
    margin-bottom: 2px !important;
  }

  .results-stats {
    font-size: 0.82rem !important;
  }

  /* Product Cards Grid: 2 per row on mobile */
  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .product-card {
    min-width: 0 !important;
    border-radius: var(--radius-md) !important;
  }

  .card-body {
    padding: 8px 8px 10px !important;
    gap: 4px !important;
  }

  .card-title {
    font-size: 0.76rem !important;
    line-height: 1.25 !important;
    min-height: 2.5em !important;
    margin: 2px 0 !important;
  }

  .card-action-bar {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    margin-top: 4px !important;
  }

  .card-shortlist-btn {
    flex: 1 !important;
    min-width: 0 !important;
    font-size: 0.68rem !important;
    padding: 6px 4px !important;
    gap: 3px !important;
  }

  .card-shortlist-btn svg {
    width: 13px !important;
    height: 13px !important;
  }

  .card-wa-btn {
    flex: 0 0 auto !important;
    padding: 6px 8px !important;
  }

  .card-wa-btn svg {
    width: 15px !important;
    height: 15px !important;
  }

  .card-footer-info {
    font-size: 0.62rem !important;
    gap: 4px !important;
  }
}

/* Extra small devices (<= 360px) */
@media (max-width: 360px) {
  .brand-title {
    font-size: 0.88rem !important;
  }
  .back-to-site-btn {
    padding: 3px 6px !important;
    font-size: 0.68rem !important;
  }
  .products-grid {
    gap: 6px !important;
  }
}


/* ==========================================================================
   EXECUTIVE CORPORATE PROFESSIONAL DESIGN OVERRIDES
   ========================================================================== */

/* Refined Typography & Clean Body Background */
body {
  background-color: #f8fafc !important;
  color: #0f172a !important;
}

/* Clean Header Branding */
.brand-title {
  font-size: 1.15rem !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em !important;
  color: #0f172a !important;
}

.brand-title span {
  font-weight: 600 !important;
  color: #1e40af !important; /* Elegant executive deep blue */
}

.back-to-site-btn {
  background: #f1f5f9 !important;
  color: #334155 !important;
  border: 1px solid #cbd5e1 !important;
  font-weight: 600 !important;
  font-size: 0.78rem !important;
  border-radius: var(--radius-full) !important;
  padding: 6px 14px !important;
  transition: all 0.15s ease !important;
}

.back-to-site-btn:hover {
  background: #e2e8f0 !important;
  color: #0f172a !important;
  border-color: #94a3b8 !important;
}

/* Executive Top Filter Card */
.catalog-top-filters {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 6px 12px -2px rgba(0, 0, 0, 0.02) !important;
  border-radius: 12px !important;
}

.cat-bar-title, .budget-title {
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  color: #475569 !important;
}

.cat-count-indicator {
  background: #f1f5f9 !important;
  color: #475569 !important;
  font-size: 0.72rem !important;
  font-weight: 600 !important;
  border: 1px solid #e2e8f0 !important;
}

/* Category Pills: Sleek Minimalist Executive Styling */
.top-category-pills .cat-pill-item {
  background: #ffffff !important;
  border: 1.5px solid #e2e8f0 !important;
  color: #334155 !important;
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  padding: 7px 15px !important;
  border-radius: 9999px !important;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03) !important;
  transition: all 0.15s ease !important;
}

.top-category-pills .cat-pill-item:hover {
  background: #f8fafc !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 3px 6px rgba(0,0,0,0.06) !important;
}

.top-category-pills .cat-pill-item.active {
  background: #0f172a !important; /* Deep executive slate/navy */
  border-color: #0f172a !important;
  color: #ffffff !important;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.25) !important;
}

.top-category-pills .cat-pill-item.active .cat-pill-count {
  background: rgba(255, 255, 255, 0.2) !important;
  color: #ffffff !important;
}

.top-category-pills .cat-pill-count {
  font-size: 0.72rem !important;
  font-family: var(--font-mono) !important;
  font-weight: 600 !important;
  background: #f1f5f9 !important;
  color: #64748b !important;
  padding: 1px 7px !important;
  border-radius: 9999px !important;
  border: 1px solid transparent !important;
}

/* Budget Presets: Clean Minimalist */
.budget-presets .preset-pill {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  color: #475569 !important;
  font-size: 0.78rem !important;
  font-weight: 600 !important;
  padding: 5px 13px !important;
  border-radius: 9999px !important;
  transition: all 0.15s ease !important;
}

.budget-presets .preset-pill:hover {
  background: #f8fafc !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}

.budget-presets .preset-pill.active {
  background: #0f172a !important;
  border-color: #0f172a !important;
  color: #ffffff !important;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.2) !important;
}

/* Search input & controls */
.top-search-col .search-box input {
  background: #f8fafc !important;
  border: 1.5px solid #e2e8f0 !important;
  color: #0f172a !important;
  border-radius: 8px !important;
}

.top-search-col .search-box input:focus {
  background: #ffffff !important;
  border-color: #0f172a !important;
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.08) !important;
}

.sort-control select {
  border: 1.5px solid #e2e8f0 !important;
  background: #ffffff !important;
  color: #0f172a !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
}

.top-reset-btn {
  background: #f8fafc !important;
  border: 1.5px solid #e2e8f0 !important;
  color: #64748b !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
}

.top-reset-btn:hover {
  background: #fee2e2 !important;
  border-color: #fca5a5 !important;
  color: #dc2626 !important;
}

/* Product Cards: Professional Crisp Border & Typography */
.product-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease !important;
}

.product-card:hover {
  border-color: #cbd5e1 !important;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.03) !important;
  transform: translateY(-2px) !important;
}

.card-title {
  color: #0f172a !important;
  font-weight: 700 !important;
}

.card-category {
  color: #64748b !important;
  font-size: 0.72rem !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.03em !important;
}

.card-tag-pill {
  background: #f1f5f9 !important;
  color: #475569 !important;
  border: 1px solid #e2e8f0 !important;
  font-weight: 600 !important;
}

.bulk-price {
  color: #0f172a !important;
  font-weight: 800 !important;
}

.price-label {
  color: #64748b !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.03em !important;
}

/* Card Action Buttons */
.card-shortlist-btn {
  background: #ffffff !important;
  border: 1.5px solid #cbd5e1 !important;
  color: #334155 !important;
  font-weight: 700 !important;
  border-radius: 8px !important;
}

.card-shortlist-btn:hover {
  background: #f8fafc !important;
  border-color: #0f172a !important;
  color: #0f172a !important;
}

.card-shortlist-btn.is-shortlisted {
  background: #ecfdf5 !important;
  border-color: #10b981 !important;
  color: #047857 !important;
}

.card-wa-btn {
  background: #25D366 !important;
  color: #ffffff !important;
  border-radius: 8px !important;
}

.card-wa-btn:hover {
  background: #1eb956 !important;
  box-shadow: 0 4px 10px rgba(37, 211, 102, 0.35) !important;
}

/* Shortlist Header Trigger */
.shortlist-trigger {
  background: #0f172a !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 8px !important;
  font-weight: 700 !important;
}

.shortlist-trigger:hover {
  background: #1e293b !important;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.25) !important;
}

.shortlist-trigger .badge-count {
  background: #2563eb !important;
  color: #ffffff !important;
}
