/* ════════════════════════════════════════════
   ROOT / CSS VARIABLES
   ════════════════════════════════════════════ */
:root {
  --primary-color: #b71c1c;
  --primary-hover: #911515;
  --secondary-color: #0a3161;
  --text-color: #212121;
  --bg-color: #f8f9fa;
  --card-bg: #ffffff;
  --border-color: #dee2e6;
  --table-bg: #ffffff;
  --table-border: #dee2e6;
  --table-stripe: #f8f9fa;
  --input-bg: #ffffff;
  --input-border: #ced4da;
  --input-text: #212121;
  --dropdown-bg: #ffffff;
  --dropdown-border: #dee2e6;
  --dropdown-text: #212121;
  --modal-bg: #ffffff;
  --modal-border: #dee2e6;
  --breadcrumb-bg: #e9ecef;
  --breadcrumb-text: #6c757d;
  --logo-filter: none;
  --bs-font-sans-serif: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif;
  --bs-font-monospace: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --bs-body-font-size: .9rem;
}

[data-bs-theme="dark"] {
  --primary-color: #c62828;
  --primary-hover: #d32f2f;
  --secondary-color: #1565c0;
  --text-color: #e0e0e0;
  --bg-color: #121212;
  --card-bg: #1e1e1e;
  --border-color: #424242;
  --table-bg: #1e1e1e;
  --table-border: #424242;
  --table-stripe: #2a2a2a;
  --input-bg: #2a2a2a;
  --input-border: #424242;
  --input-text: #e0e0e0;
  --dropdown-bg: #1e1e1e;
  --dropdown-border: #424242;
  --dropdown-text: #e0e0e0;
  --modal-bg: #1e1e1e;
  --modal-border: #424242;
  --breadcrumb-bg: #2a2a2a;
  --breadcrumb-text: #b0b0b0;
  --logo-filter: brightness(0) invert(1);
  --bs-alert-color: #342929;
}
/* ════════════════════════════════════════════
   HERO SLIDER
   ════════════════════════════════════════════ */
/* ════════════════════════════════════════════
   HERO SLIDER
   ════════════════════════════════════════════ */
   .hero-slider {
    position: relative;
    width: 100%;
    height: 85vh;
    overflow: hidden;
  }
  .hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: left center;   /* was: center — keeps left-side text/subject in frame */
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
  }
  .hero-slide.active { opacity: 1; }
  .hero-slider::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.1) 60%);
    z-index: 1;
  }
  .hero-content {
    position: absolute;
    bottom: 30%;
    left: 5%;
    right: 5%;
    color: white;
    z-index: 2;
  }
  .hero-title {
    font-family: 'TVC Motor Corpus', sans-serif; /* Added requested font */
    font-size: 86px;                             /* Changed from 3.5rem to 86px */
    color: red;                                  /* Added red text color */
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 12px rgba(0,0,0,0.5);     /* keeps it readable over any photo */
  }
  .hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
    text-shadow: 0 1px 8px rgba(0,0,0,0.5);
  }
  .btn-hero {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 1.75rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    display: inline-block;
    transition: background 0.2s ease;
  }
  .btn-hero:hover { background-color: var(--primary-hover); color: white; }
  .hero-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    gap: 8px;
  }
  .hero-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: background 0.3s;
  }
  .hero-dot.active { background: white; }
  
  /* --- Tablet --- */
  @media (max-width: 991px) {
    .hero-slider { height: 50vh; min-height: 400px; }
    .hero-content { bottom: 25%; }
    .hero-title { font-size: 2.8rem; }
  }
  
  /* --- Mobile --- */
  @media (max-width: 768px) {
    .hero-slider { height: 350px; min-height: 350px; }
    .hero-content {
      left: 50%;
      bottom: 55px;
      transform: translateX(-50%);
      width: 90%;
      text-align: center;
    }
    .hero-title { font-size: 2rem; margin-bottom: 0.75rem; }
    .hero-subtitle { font-size: 0.95rem; margin-bottom: 1rem; }
    .btn-hero {
      padding: 12px 20px;
      font-size: 0.95rem;
      display: block;
      width: 100%;
      max-width: 280px;
      margin: 0 auto;
    }
    .hero-dots { bottom: 15px; }
  }
  
  /* --- Small phones --- */
  @media (max-width: 480px) {
    .hero-slider { height: 300px; min-height: 300px; }
    .hero-title { font-size: 1.6rem; }
    .hero-content { bottom: 40px; }
    .btn-hero { padding: 10px 15px; }
  }
  
  @media (max-width: 575.98px) {
    .hero-slider { height: 260px; }
    .hero-dots { bottom: 10px; }
  }

/* ════════════════════════════════════════════
   CATEGORY STRIP BOX
   ════════════════════════════════════════════ */
.sf-category-box {
  background: #ffffff;
  border-radius: 12px;
  padding: 14px 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
  width: 100%;
  overflow: hidden;
}
[data-bs-theme="dark"] .sf-category-box {
  background: var(--card-bg, #1e1e1e);
  box-shadow: 0 2px 8px rgba(0,0,0,.3);
}
.sf-category-inner {
  display: flex;
  align-items: center;
  gap: 4px;
}
.category-strip-track {
  flex: 1;
  overflow: hidden;
  min-width: 0;
}
.category-strip {
  display: flex;
  gap: 10px;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}
.category-chip {
  flex-shrink: 0;
  text-decoration: none;
  transition: transform 0.2s ease;
}
.category-chip:hover .category-chip-img { transform: scale(1.05); }
.category-chip-img {
  position: relative;
  width: 120px;
  height: 90px;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255,255,255,0.15);
  transition: transform 0.2s ease;
}
.category-chip-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.category-chip-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 1.8rem;
  background: rgba(255,255,255,0.15);
}
.category-chip-label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 18px 6px 7px;
  font-size: 0.75rem; font-weight: 700;
  color: #fff; text-align: center; line-height: 1.2;
  background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 100%);
  word-break: break-word;
}
.category-chip.active .category-chip-img { outline: 3px solid white; outline-offset: 2px; }
.view-all-img {
  background: rgba(255,255,255,0.25);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 6px;
}
.view-all-img > i { font-size: 1.6rem; color: white; }
.view-all-img .category-chip-label {
  position: static; background: none; padding: 0;
  font-size: 0.75rem; font-weight: 700; color: white;
}
.view-all-chip:hover .view-all-img { background: rgba(255,255,255,0.35); }

.cat-arrow {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 2px solid var(--primary-color);
  background: rgba(255,255,255,0.2);
  color: var(--primary-color); font-size: 0.9rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, opacity 0.2s;
}
.cat-arrow:hover { background: rgba(255,255,255,0.4); transform: scale(1.1); }
.cat-arrow:active { transform: scale(0.95); }
.cat-arrow.hidden { opacity: 0; pointer-events: none; }
@media (max-width: 576px) {
  .category-chip-img { width: 85px; height: 68px; border-radius: 10px; }
  .category-chip-label { font-size: 0.65rem; }
  .cat-arrow { width: 32px; height: 32px; font-size: 0.75rem; }
}


.quick-filter-bar { width: 100%; }

.search-filter-container {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
  width: 100%;
  /* CRITICAL: do NOT set overflow:hidden here — it clips the search row */
  transition: box-shadow 0.2s;
}
.search-filter-container.focused {
  box-shadow: 0 4px 20px rgba(183,28,28,0.18);
}
[data-bs-theme="dark"] .search-filter-container {
  background: var(--card-bg, #1e1e1e);
  box-shadow: 0 2px 8px rgba(0,0,0,.3);
}

/* ── Search row — ALWAYS visible ── */
.sf-search-row {
  display: block !important;  /* never hide this */
  padding: 28px 32px;
}
.sf-form {
  display: flex;
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
}
.sf-input-wrap {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}
.sf-icon {
  position: absolute;
  left: 14px;
  color: #9ca3af;
  font-size: 14px;
  pointer-events: none;
  z-index: 1;
}
.sf-form input[type="text"] {
  width: 100%;
  padding: 16px 48px 16px 44px;
  border: 1.5px solid #d1d5db;
  border-right: none;
  border-radius: 10px 0 0 10px;
  font-size: 15px;
  outline: none;
  color: #374151;
  background: #f9fafb;
  transition: border-color 0.2s, background 0.2s;
}
.sf-form input[type="text"]:focus {
  border-color: var(--primary-color);
  background: #fff;
}
[data-bs-theme="dark"] .sf-form input[type="text"] {
  background: var(--input-bg, #2a2a2a);
  color: var(--text-color, #e0e0e0);
  border-color: var(--border-color, #444);
}
[data-bs-theme="dark"] .sf-form input[type="text"]:focus {
  border-color: var(--primary-color);
  background: #222;
}
.sf-clear-input {
  position: absolute; right: 10px;
  background: none; border: none;
  color: #9ca3af; cursor: pointer;
  padding: 4px; font-size: 13px;
}
.sf-clear-input:hover { color: #ef4444; }
.sf-submit-btn {
  padding: 16px 28px;
  background: var(--primary-color);
  color: white;
  border: 1.5px solid var(--primary-color);
  border-radius: 0 10px 10px 0;
  font-size: 15px; font-weight: 600;
  cursor: pointer; white-space: nowrap;
  transition: background 0.2s;
}
.sf-submit-btn:hover { background: var(--primary-hover); }

/* ── Filters panel — slides down ── */
.sf-filters-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4,0,0.2,1), border-color 0.2s;
  border-top: 1.5px solid transparent;
  border-radius: 0 0 12px 12px;
}
.sf-filters-panel.open,
.sf-filters-panel.always-open {
  max-height: 600px;
  overflow: visible;
  border-top-color: #e5e7eb;
}
[data-bs-theme="dark"] .sf-filters-panel.open,
[data-bs-theme="dark"] .sf-filters-panel.always-open {
  border-top-color: var(--border-color, #444);
  overflow: visible;
}
.sf-filters-inner {
  padding: 20px 32px 24px;
}

/* ── Filters row ── */
.filters-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
  width: 100%;
}

/* ── Sort By / Price Range buttons ──
   IMPORTANT: These buttons must show static label text.
   The button text is set in HTML; active state only adds a check
   to the dropdown ITEM, not to the button label itself.        */
.filter-select-btn {
  padding: 12px 18px;
  border: 1.5px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  background: #f9fafb;
  color: #374151;
  cursor: pointer;
  outline: none;
  font-weight: 500;
  white-space: nowrap;
  min-width: max-content;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: border-color 0.2s, background 0.2s, color 0.2s, box-shadow 0.2s;
}
.filter-select-btn:hover,
.filter-select-btn:focus,
.filter-select-btn.show,
.filter-select-btn[aria-expanded="true"] {
  border-color: var(--primary-color);
  background: #fef2f2;
  color: var(--primary-color);
}
/* Active-filter indicator: show a colored dot on the button when a sort is applied */
.filter-select-btn.filter-active {
  border-color: var(--primary-color);
  background: #fef2f2;
  color: var(--primary-color);
}
.filter-select-btn.filter-active::after {
  content: '';
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--primary-color);
  margin-left: 4px;
  flex-shrink: 0;
}
[data-bs-theme="dark"] .filter-select-btn {
  background: var(--input-bg, #2a2a2a);
  color: var(--text-color, #e0e0e0);
  border-color: var(--border-color, #444);
}
[data-bs-theme="dark"] .filter-select-btn:hover,
[data-bs-theme="dark"] .filter-select-btn.show,
[data-bs-theme="dark"] .filter-select-btn[aria-expanded="true"],
[data-bs-theme="dark"] .filter-select-btn.filter-active {
  border-color: var(--primary-color);
  background: rgba(198,40,40,0.12);
  color: #fff;
}

/* ── Dropdown menus ── */
.quick-filter-bar .dropdown-menu {
  background: #ffffff;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  padding: 6px;
  min-width: 200px;
  animation: dropdownReveal 0.2s ease both;
}
@keyframes dropdownReveal {
  from { opacity: 0; transform: translateY(-6px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.quick-filter-bar .dropdown-item {
  color: #374151;
  font-size: 0.875rem;
  border-radius: 6px;
  padding: 0.5rem 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  transition: background 0.15s, color 0.15s;
}
.quick-filter-bar .dropdown-item:hover {
  background: #fef2f2;
  color: var(--primary-color);
}
/* Active item: highlight row, show checkmark via fa-check icon in HTML */
.quick-filter-bar .dropdown-item.active,
.quick-filter-bar .dropdown-item:active {
  background: var(--primary-color) !important;
  color: #fff !important;
}
[data-bs-theme="dark"] .quick-filter-bar .dropdown-menu {
  background: #1e1e1e;
  border-color: #333;
  box-shadow: 0 8px 24px rgba(0,0,0,.4);
}
[data-bs-theme="dark"] .quick-filter-bar .dropdown-item { color: #ccc; }
[data-bs-theme="dark"] .quick-filter-bar .dropdown-item:hover {
  background: rgba(198,40,40,0.1);
  color: #fff;
}
[data-bs-theme="dark"] .quick-filter-bar .dropdown-item.active {
  background: var(--primary-color) !important;
  color: #fff !important;
}

/* ── Price Range form inside dropdown ── */
.filter-label {
  font-size: 13px; color: #6b7280; margin-bottom: 4px;
}
.filter-input {
  background: #f9fafb;
  border: 1.5px solid #d1d5db;
  border-radius: 7px;
  color: #374151;
  font-size: 0.875rem;
  height: 38px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.filter-input:focus {
  background: #fff;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(183,28,28,0.12);
  color: #111;
  outline: none;
}
[data-bs-theme="dark"] .filter-input {
  background: #2a2a2a; border-color: #444; color: #e0e0e0;
}
[data-bs-theme="dark"] .filter-input:focus {
  background: #2a2a2a; border-color: var(--primary-color); color: #fff;
}
.filter-apply-btn {
  background: var(--primary-color);
  border: none; border-radius: 7px;
  color: #fff; font-size: 0.875rem; font-weight: 600; height: 38px;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.filter-apply-btn:hover {
  background: var(--primary-hover); color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(183,28,28,0.3);
}

/* ── Checkboxes ── */
.checkbox-label {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; color: #374151;
  cursor: pointer; user-select: none; font-weight: 500;
}
.checkbox-label .filter-check-input {
  width: 16px; height: 16px;
  cursor: pointer;
  accent-color: var(--primary-color);
}
[data-bs-theme="dark"] .checkbox-label { color: var(--text-color, #e0e0e0); }

/* ── Clear All ── */
.clear-btn {
  padding: 12px 18px;
  border: 1.5px solid #fca5a5;
  border-radius: 8px;
  font-size: 14px;
  background: #fef2f2;
  color: #dc2626;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex; align-items: center; gap: 6px;
}
.clear-btn:hover { background: #fee2e2; border-color: #f87171; }
[data-bs-theme="dark"] .clear-btn {
  background: rgba(220,38,38,0.1);
  border-color: #ef4444; color: #f87171;
}
[data-bs-theme="dark"] .clear-btn:hover { background: rgba(220,38,38,0.2); }

/* ── Alert ── */
.alert-sm { padding: 0.5rem 0.75rem; font-size: 0.875rem; border-radius: 0.375rem; }

/* ════════════════════════════════════════════
   PRODUCT GRID CARDS
   ════════════════════════════════════════════ */
@keyframes cardReveal {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.mp-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid #e8e8e8;
  transition: box-shadow 0.3s ease, transform 0.3s cubic-bezier(0.34,1.56,0.64,1), border-color 0.3s ease;
  animation: cardReveal 0.45s ease both;
}
.col-lg-3:nth-child(1)  .mp-card { animation-delay: 0.04s; }
.col-lg-3:nth-child(2)  .mp-card { animation-delay: 0.08s; }
.col-lg-3:nth-child(3)  .mp-card { animation-delay: 0.12s; }
.col-lg-3:nth-child(4)  .mp-card { animation-delay: 0.16s; }
.col-lg-3:nth-child(5)  .mp-card { animation-delay: 0.20s; }
.col-lg-3:nth-child(6)  .mp-card { animation-delay: 0.24s; }
.col-lg-3:nth-child(7)  .mp-card { animation-delay: 0.28s; }
.col-lg-3:nth-child(8)  .mp-card { animation-delay: 0.32s; }
.col-lg-3:nth-child(9)  .mp-card { animation-delay: 0.36s; }
.col-lg-3:nth-child(10) .mp-card { animation-delay: 0.40s; }
.col-lg-3:nth-child(11) .mp-card { animation-delay: 0.44s; }
.col-lg-3:nth-child(12) .mp-card { animation-delay: 0.48s; }
.mp-card:hover {
  transform: translateY(-5px) scale(1.01);
  box-shadow: 0 12px 32px rgba(0,0,0,.10);
  border-color: #d0d0d0;
}
.mp-img-link {
  display: block; width: 100%; aspect-ratio: 1/1;
  overflow: hidden; background: #f2f4f6;
  text-decoration: none; position: relative;
}
.mp-img-link::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.18) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.55s ease;
  pointer-events: none;
}
.mp-card:hover .mp-img-link::after { transform: translateX(100%); }
.mp-img-link img {
  width: 100%; height: 100%;
  object-fit: contain; padding: 16px;
  transition: transform 0.4s cubic-bezier(0.34,1.3,0.64,1);
}
.mp-card:hover .mp-img-link img { transform: scale(1.07); }
.mp-img-empty { display: flex; align-items: center; justify-content: center; }
.mp-body {
  padding: 10px 12px 12px;
  display: flex; flex-direction: column; gap: 2px; flex: 1;
}
.mp-name {
  font-size: 0.85rem; font-weight: 700;
  color: var(--text-color, #111);
  text-decoration: none; line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  transition: color 0.2s;
}
.mp-name:hover { color: var(--primary-color); }
.mp-category { font-size: 0.73rem; color: #aaa; margin-top: 1px; margin-bottom: 4px; }
.mp-price-row { margin-bottom: 2px; }

@keyframes pricePopIn {
  0%   { transform: scale(0.85); opacity: 0; }
  70%  { transform: scale(1.05); }
  100% { transform: scale(1);    opacity: 1; }
}
.mp-price {
  font-size: 0.92rem; font-weight: 700;
  color: var(--text-color, #111);
  animation: pricePopIn 0.35s ease both;
  animation-delay: inherit;
}
.mp-price-original {
  font-size: 0.75rem; text-decoration: line-through;
  color: #bbb; margin-right: 4px; font-weight: 400;
}
.mp-discount {
  font-size: 0.72rem; color: #e74c3c; margin-left: 2px;
  animation: discountWiggle 0.6s ease 0.5s both;
}
@keyframes discountWiggle {
  0%, 100% { transform: rotate(0deg); }
  25%       { transform: rotate(-4deg); }
  75%       { transform: rotate(4deg); }
}

/* hidden */
.mp-stock { display: none; }
.mp-desc  { display: none; }
.mp-qty   { display: none; }

.mp-actions { margin-top: 10px; display: flex; flex-direction: column; gap: 6px; }

.mp-cart-btn {
  width: 100%; padding: 8px 12px;
  border-radius: 8px; border: 1px solid #222;
  background: transparent; color: #111;
  font-size: 0.8rem; font-weight: 600; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 36px; position: relative; overflow: hidden;
  transition: background 0.25s, color 0.25s, border-color 0.25s,
              transform 0.2s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.25s;
}
.mp-cart-btn::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at center, rgba(255,255,255,0.3) 0%, transparent 65%);
  opacity: 0; transform: scale(0);
  transition: transform 0.4s, opacity 0.4s;
  border-radius: inherit; pointer-events: none;
}
.mp-cart-btn:active::before { opacity: 1; transform: scale(2.5); transition-duration: 0.15s; }
.mp-cart-btn:hover:not(:disabled) {
  background: #111; color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,.18);
}
.mp-cart-btn:active:not(:disabled) { transform: scale(0.96); transition-duration: 0.1s; }
.mp-cart-btn:hover:not(:disabled) .fa-shopping-cart { animation: cartBounce 0.4s ease; }
@keyframes cartBounce {
  0%   { transform: translateX(0); }
  30%  { transform: translateX(-4px); }
  60%  { transform: translateX(3px); }
  100% { transform: translateX(0); }
}
.mp-cart-btn:disabled {
  background: #f5f5f5; color: #bbb; border-color: #ddd; cursor: not-allowed;
}
.mp-out { background: #f5f5f5; color: #bbb; border-color: #e0e0e0; }

/* dark — cards */
[data-bs-theme="dark"] .mp-card { background: #1e1e1e; border-color: #333; }
[data-bs-theme="dark"] .mp-card:hover { box-shadow: 0 12px 32px rgba(0,0,0,.4); border-color: #444; }
[data-bs-theme="dark"] .mp-img-link { background: #2a2a2a; }
[data-bs-theme="dark"] .mp-img-link::after {
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.07) 50%, transparent 70%);
}
[data-bs-theme="dark"] .mp-name,
[data-bs-theme="dark"] .mp-price  { color: #f0f0f0; }
[data-bs-theme="dark"] .mp-category { color: #777; }
[data-bs-theme="dark"] .mp-cart-btn { border-color: #f0f0f0; color: #f0f0f0; }
[data-bs-theme="dark"] .mp-cart-btn:hover:not(:disabled) {
  background: var(--primary-color); border-color: var(--primary-color); color: #fff;
  box-shadow: 0 4px 14px rgba(198,40,40,0.35);
}
[data-bs-theme="dark"] .mp-cart-btn:disabled { background: #2a2a2a; color: #555; border-color: #333; }

/* ════════════════════════════════════════════
   PAGINATION
   ════════════════════════════════════════════ */
.pagination { gap: 0.25rem; }
.page-item { animation: pageItemFadeIn 0.3s ease both; }
@keyframes pageItemFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.page-item:nth-child(1)  { animation-delay: 0.03s; }
.page-item:nth-child(2)  { animation-delay: 0.06s; }
.page-item:nth-child(3)  { animation-delay: 0.09s; }
.page-item:nth-child(4)  { animation-delay: 0.12s; }
.page-item:nth-child(5)  { animation-delay: 0.15s; }
.page-item:nth-child(6)  { animation-delay: 0.18s; }
.page-item:nth-child(7)  { animation-delay: 0.21s; }
.page-item:nth-child(8)  { animation-delay: 0.24s; }
.page-item:nth-child(9)  { animation-delay: 0.27s; }
.page-item:nth-child(10) { animation-delay: 0.30s; }
.page-item .page-link {
  border-radius: 0.5rem !important;
  border: 1px solid var(--border-color, #dee2e6);
  color: var(--primary-color);
  background-color: var(--card-bg, #fff);
  padding: 0.5rem 0.75rem;
  font-size: 0.9rem; font-weight: 500;
  min-width: 38px; text-align: center; line-height: 1.4;
  position: relative; overflow: hidden;
  transition: color 0.25s, background-color 0.25s, border-color 0.25s,
              transform 0.2s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.25s;
}
.page-item .page-link::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at center, rgba(255,255,255,0.35) 0%, transparent 70%);
  opacity: 0; transform: scale(0);
  transition: transform 0.4s, opacity 0.4s;
  border-radius: inherit; pointer-events: none;
}
.page-item .page-link:hover {
  background-color: var(--primary-color); border-color: var(--primary-color);
  color: #fff;
  transform: translateY(-2px) scale(1.06);
  box-shadow: 0 6px 16px rgba(0,0,0,.15);
}
.page-item .page-link:hover::after { opacity: 1; transform: scale(2); }
.page-item .page-link:active { transform: translateY(0) scale(0.96); transition-duration: 0.1s; }
.page-item.active .page-link {
  background-color: var(--primary-color); border-color: var(--primary-color);
  color: #fff; cursor: default;
  transform: scale(1.08);
  animation: activePagePulse 2.5s ease-in-out infinite;
}
@keyframes activePagePulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(183,28,28,0.25); }
  50%       { box-shadow: 0 0 0 6px rgba(183,28,28,0.08); }
}
.page-item.disabled .page-link {
  background-color: var(--card-bg, #fff);
  border-color: var(--border-color, #dee2e6);
  color: #6c757d; opacity: 0.45;
  cursor: not-allowed;
  transform: none !important; box-shadow: none !important; animation: none;
}
.page-item.disabled .page-link:not([aria-label]) {
  border-color: transparent; background: transparent; letter-spacing: 0.1em;
}
[data-bs-theme="dark"] .page-item .page-link {
  background-color: var(--card-bg); border-color: var(--border-color); color: var(--primary-color);
}
[data-bs-theme="dark"] .page-item .page-link:hover {
  background-color: var(--primary-color); border-color: var(--primary-color); color: #fff;
  box-shadow: 0 6px 16px rgba(0,0,0,.4);
}
[data-bs-theme="dark"] .page-item.active .page-link {
  background-color: var(--primary-color); border-color: var(--primary-color); color: #fff;
}

/* ════════════════════════════════════════════
   PROMO BANNER
   ════════════════════════════════════════════ */
.mp-promo-banner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 4rem; padding: 4rem 5rem;
  margin-top: 4rem; margin-bottom: 2rem;
  background: transparent; border-radius: 40px; overflow: hidden; position: relative;
}
.mp-promo-img {
  position: relative; flex: 1;
  width: 450px; height: 450px;
  display: flex; justify-content: center; align-items: center;
}
.promo-slide {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain; opacity: 0; transform: scale(0.95);
  transition: opacity 1s ease, transform 1s ease;
}
.promo-slide.active { opacity: 1; transform: scale(1); }
.mp-promo-text {
  flex: 1; background: var(--primary-color); color: #fff;
  padding: 5rem 4rem; border-radius: 60px 0 0 60px; min-height: 360px;
  display: flex; flex-direction: column; justify-content: center;
}
.mp-promo-text p:first-child {
  font-size: 2rem; font-weight: 600; line-height: 1.4;
  margin-bottom: 1.5rem; max-width: 500px;
}
.mp-promo-sub { font-size: 1rem; opacity: 0.9; margin-bottom: 1.5rem; }
.btn-promo {
  display: inline-flex; align-items: center; justify-content: center;
  width: fit-content;
  background: #fff; color: #111; text-decoration: none;
  padding: 0.85rem 1.8rem; border-radius: 999px;
  font-size: 0.95rem; font-weight: 600;
  transition: all 0.3s ease;
}
.btn-promo:hover { background: #111; color: #fff; transform: translateY(-2px); }
@media (max-width: 991px) {
  .mp-promo-banner { flex-direction: column; padding: 3rem 2rem; text-align: center; }
  .mp-promo-text { border-radius: 40px; width: 100%; padding: 3rem 2rem; align-items: center; }
  .mp-promo-text p:first-child { font-size: 1.6rem; }
  .mp-promo-img { max-width: 300px; width: 100%; height: 300px; }
}

/* ════════════════════════════════════════════
   MISC
   ════════════════════════════════════════════ */
.sort-link.active { background-color: var(--primary-color) !important; color: white !important; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }
.btn:disabled:hover { transform: none; box-shadow: none; }
.tooltip { font-size: 0.875rem; }
.tooltip-inner {
  background-color: #6c757d; color: white;
  border-radius: 0.375rem; padding: 0.5rem 0.75rem;
}

/* ════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════ */
@media (max-width: 991.98px) {
  .sf-search-row { padding: 12px 14px; }
  .sf-filters-inner { padding: 12px 14px; }
  .sf-filters-panel.open { max-height: 600px; overflow: visible; }
  .quick-filter-bar .dropdown-menu { width: 100% !important; }
  .filter-select-btn { width: 100%; justify-content: space-between; }
  .clear-btn { width: 100%; justify-content: center; }
}
@media (max-width: 575.98px) {
  .sf-form input[type="text"] { font-size: 16px; }
  .page-item .page-link { padding: 0.4rem 0.6rem; font-size: 0.8rem; min-width: 34px; }
}

/* ════════════════════════════════════════════
   REDUCED MOTION
   ════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  .mp-card, .mp-price, .mp-discount, .mp-cart-btn,
  .mp-img-link img, .mp-img-link::after,
  .page-item, .page-item .page-link, .page-item.active .page-link {
    animation: none !important;
    transition: none !important;
  }
}
/* ============================================================
   📱 MOBILE RESPONSIVE ADJUSTMENTS
   ============================================================ */

/* --- Tablet & Mobile (max-width: 991.98px) --- */
@media (max-width: 991.98px) {
  
  
  /* 2. CATEGORY STRIP (Enable native touch swipe) */
  .sf-category-box .cat-arrow {
    display: none !important; /* Hide JS arrows on touch devices */
  }
  .category-strip-track {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch; /* Smooth iOS scrolling */
    scrollbar-width: none; /* Hide scrollbar Firefox */
    -ms-overflow-style: none; /* Hide scrollbar IE/Edge */
    scroll-snap-type: x mandatory;
    padding-bottom: 5px;
  }
  .category-strip-track::-webkit-scrollbar {
    display: none; /* Hide scrollbar Chrome/Safari/Opera */
  }
  .category-strip {
    /* Override the JS transform on mobile so native scroll works */
    transform: none !important; 
    display: flex;
    flex-wrap: nowrap;
    gap: 12px;
    width: max-content;
    padding: 0 10px;
  }
  .category-chip {
    scroll-snap-align: start;
    flex: 0 0 auto; /* Prevent shrinking */
    width: 85px; /* Slightly smaller chips for mobile */
  }
  .category-chip-img {
    width: 60px;
    height: 60px;
  }
  .category-chip-label {
    font-size: 0.75rem;
  }

  /* 3. QUICK FILTER & SEARCH BAR */
  .sf-input-wrap input {
    font-size: 0.95rem;
    padding: 10px 10px 10px 35px; /* Adjust for search icon */
  }
  .sf-submit-btn {
    padding: 10px 15px;
  }
  .sf-filters-panel {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #fff;
    box-shadow: 0 10px 15px rgba(0,0,0,0.1);
    border-radius: 0 0 12px 12px;
    padding: 15px;
  }
  .filter-select-btn {
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
  }

  /* 4. PRODUCT GRID (Make items 2-columns on mobile) */
  /* Note: Change your HTML from col-sm-6 to col-6 if you want strictly 2 columns on mobile */
  .mp-card {
    display: flex;
    flex-direction: column;
    height: 100%;
  }
  .mp-img-link {
    height: 180px; /* Smaller image height */
  }
  .mp-img-link img {
    height: 100%;
    width: 100%;
    object-fit: cover;
  }
  .mp-body {
    padding: 12px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
  }
  .mp-name {
    font-size: 0.95rem;
    margin-bottom: 5px;
  }
  .mp-price-row {
    font-size: 1.1rem;
  }
  .mp-desc {
    display: none; /* Hide description on mobile to save space */
  }
  
  /* Make Add to Cart & Quantity full width */
  .mp-actions {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .mp-qty {
    width: 100%;
    justify-content: space-between;
  }
  .mp-qty-btn {
    width: 35px;
    height: 35px;
  }
  .mp-cart-btn {
    width: 100%;
    padding: 10px;
    justify-content: center;
  }

  /* 5. PROMO BANNER */
  .mp-promo-banner {
    flex-direction: column;
    text-align: center;
    padding: 20px;
  }
  .mp-promo-img {
    width: 100%;
    height: 150px;
    margin-bottom: 20px;
  }
  .mp-promo-text p {
    font-size: 1.2rem;
  }
  .mp-promo-sub {
    font-size: 1rem;
  }
  .btn-promo {
    width: 100%;
    display: block;
  }
}

  /* ════════════════════════════════════════════
     HERO SLIDER: MOBILE RESPONSIVE ADJUSTMENTS
     ════════════════════════════════════════════ */
 
  /* --- Tablet --- */
  @media (max-width: 991px) {
    .hero-slider {
      height: 50vh;
      min-height: 420px;
    }
    .hero-slide {
      background-position: left center;
    }
  }
  
  /* --- Mobile --- */
  @media (max-width: 768px) {
    .hero-slider {
      height: 400px;          /* taller than before — less aggressive crop needed */
      min-height: 400px;
    }
    .hero-slide {
      background-position: 25% center;   /* nudge focal point to keep text + some subject visible */
    }
  }
  
  /* --- Small phones --- */
  @media (max-width: 480px) {
    .hero-slider {
      height: 340px;
      min-height: 340px;
    }
    .hero-slide {
      background-position: 25% center;
    }
  }
  
  @media (max-width: 575.98px) {
    .hero-slider {
      height: 320px;
    }
  }