/* =========================================================
   SperHub V2 — Search module
   Compatible with Bootstrap 3
   ========================================================= */

:root {
  --sh-v2-primary: #ff5a1f;
  --sh-v2-primary-dark: #e8440b;
  --sh-v2-ink: #172033;
  --sh-v2-muted: #6e7687;
  --sh-v2-border: #e7eaf0;
  --sh-v2-soft: #f6f7f9;
  --sh-v2-white: #ffffff;
  --sh-v2-success: #0f9f6e;
  --sh-v2-shadow: 0 24px 70px rgba(23, 32, 51, 0.12);
}

.container-home-search {
  padding: 0;
  background: transparent;
}

.sh-v2-search-wrap {
  position: relative;
  z-index: 20;
  margin-top: -62px;
  margin-bottom: 46px;
}

.sh-v2-search-card {
  overflow: hidden;
  border: 1px solid rgba(231, 234, 240, 0.9);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--sh-v2-shadow);
}

.sh-v2-search-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  padding: 30px 34px 24px;
}

.sh-v2-search-head h2 {
  margin: 8px 0 8px;
  color: var(--sh-v2-ink);
  font-size: 30px;
  font-weight: 800;
  line-height: 1.25;
}

.sh-v2-search-head p {
  max-width: 680px;
  margin: 0;
  color: var(--sh-v2-muted);
  font-size: 15px;
  line-height: 1.8;
}

.sh-v2-eyebrow,
.sh-v2-section-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--sh-v2-primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.sh-v2-search-all-link {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 9px;
  padding: 11px 16px;
  border: 1px solid var(--sh-v2-border);
  border-radius: 12px;
  color: var(--sh-v2-ink);
  background: var(--sh-v2-white);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none !important;
  transition: 0.2s ease;
}

.sh-v2-search-all-link:hover {
  border-color: rgba(255, 90, 31, 0.35);
  color: var(--sh-v2-primary);
  transform: translateY(-1px);
}

.sh-v2-search-tabs.nav-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0;
  padding: 0 20px;
  border: 0;
  border-top: 1px solid var(--sh-v2-border);
  border-bottom: 1px solid var(--sh-v2-border);
  background: #fbfbfc;
}

.sh-v2-search-tabs.nav-tabs > li {
  float: none;
  margin: 0;
}

.sh-v2-search-tabs.nav-tabs > li > a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 90px;
  gap: 12px;
  margin: 0;
  padding: 16px 18px;
  border: 0 !important;
  border-radius: 0;
  color: var(--sh-v2-muted);
  background: transparent !important;
  text-decoration: none;
  transition: 0.2s ease;
}

.sh-v2-search-tabs.nav-tabs > li + li > a {
  border-inline-start: 1px solid var(--sh-v2-border) !important;
}

.sh-v2-search-tabs.nav-tabs > li.active > a,
.sh-v2-search-tabs.nav-tabs > li > a:hover {
  color: var(--sh-v2-primary);
}

.sh-v2-search-tabs.nav-tabs > li.active > a::after {
  position: absolute;
  right: 22%;
  bottom: -1px;
  left: 22%;
  height: 3px;
  border-radius: 99px 99px 0 0;
  background: var(--sh-v2-primary);
  content: "";
}

.sh-v2-tab-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--sh-v2-border);
  border-radius: 13px;
  color: var(--sh-v2-primary);
  background: var(--sh-v2-white);
  font-size: 17px;
}

.sh-v2-search-tabs strong,
.sh-v2-search-tabs small {
  display: block;
}

.sh-v2-search-tabs strong {
  margin-bottom: 4px;
  color: inherit;
  font-size: 14px;
}

.sh-v2-search-tabs small {
  color: #969cab;
  font-size: 11px;
  font-weight: 500;
}

.sh-v2-search-content {
  padding: 34px;
}

.sh-v2-car-search {
  display: grid;
  grid-template-columns: minmax(220px, 0.75fr) minmax(0, 2fr);
  align-items: center;
  gap: 30px;
}

.sh-v2-car-copy {
  padding: 8px 4px;
}

.sh-v2-car-copy h3,
.sh-v2-advanced-title h3 {
  margin: 8px 0 9px;
  color: var(--sh-v2-ink);
  font-size: 24px;
  font-weight: 800;
}

.sh-v2-car-copy p {
  margin: 0;
  color: var(--sh-v2-muted);
  font-size: 14px;
  line-height: 1.8;
}

.sh-v2-car-zones {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.sh-v2-car-zone {
  display: flex;
  min-height: 145px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 20px;
  border: 1px solid var(--sh-v2-border);
  border-radius: 18px;
  color: var(--sh-v2-ink);
  background: var(--sh-v2-white);
  text-align: start;
  cursor: pointer;
  transition: 0.22s ease;
}

.sh-v2-car-zone:hover {
  border-color: rgba(255, 90, 31, 0.35);
  box-shadow: 0 14px 35px rgba(23, 32, 51, 0.09);
  transform: translateY(-3px);
}

.sh-v2-zone-icon {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 13px;
  place-items: center;
  border-radius: 13px;
  color: var(--sh-v2-primary);
  background: rgba(255, 90, 31, 0.09);
  font-size: 18px;
}

.sh-v2-car-zone strong,
.sh-v2-car-zone small {
  display: block;
}

.sh-v2-car-zone strong {
  margin-bottom: 7px;
  font-size: 14px;
}

.sh-v2-car-zone small {
  color: var(--sh-v2-muted);
  font-size: 11px;
  line-height: 1.7;
}

.sh-v2-form-grid {
  display: grid;
  gap: 18px;
}

.sh-v2-form-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sh-v2-form-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sh-v2-field-wide {
  grid-column: span 2;
}

.sh-v2-field label {
  display: block;
  margin-bottom: 8px;
  color: var(--sh-v2-ink);
  font-size: 12px;
  font-weight: 800;
}

.sh-v2-field small {
  display: block;
  margin-top: 7px;
  color: #969cab;
  font-size: 11px;
}

.sh-v2-field .form-control,
.sh-v2-select {
  width: 100%;
  height: 50px;
  border: 1px solid var(--sh-v2-border);
  border-radius: 13px;
  color: var(--sh-v2-ink);
  background: var(--sh-v2-white);
  box-shadow: none;
  font-size: 13px;
  transition: 0.2s ease;
}

.sh-v2-field .form-control:focus,
.sh-v2-select:focus {
  border-color: rgba(255, 90, 31, 0.55);
  box-shadow: 0 0 0 4px rgba(255, 90, 31, 0.08);
}

.sh-v2-input-wrap {
  position: relative;
}

.sh-v2-input-wrap > i {
  position: absolute;
  z-index: 2;
  top: 50%;
  inset-inline-start: 16px;
  color: #a1a7b4;
  font-size: 14px;
  transform: translateY(-50%);
}

.sh-v2-input-wrap .form-control {
  padding-inline-start: 43px;
}

.sh-v2-form-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 24px;
}

.sh-v2-primary-btn {
  display: inline-flex;
  min-width: 155px;
  height: 50px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0;
  border-radius: 13px;
  color: #fff !important;
  background: linear-gradient(135deg, var(--sh-v2-primary), #ff7a27);
  box-shadow: 0 12px 28px rgba(255, 90, 31, 0.25);
  font-size: 13px;
  font-weight: 800;
  transition: 0.2s ease;
}

.sh-v2-primary-btn:hover,
.sh-v2-primary-btn:focus {
  color: #fff;
  background: linear-gradient(135deg, var(--sh-v2-primary-dark), var(--sh-v2-primary));
  transform: translateY(-1px);
}

.sh-v2-primary-btn-lg {
  min-width: 190px;
}

.sh-v2-advanced-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.sh-v2-reset-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 13px;
  border: 1px solid var(--sh-v2-border);
  border-radius: 10px;
  color: var(--sh-v2-muted);
  background: var(--sh-v2-white);
  font-size: 11px;
  font-weight: 700;
}

.sh-v2-choice-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.sh-v2-choice-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--sh-v2-border);
  border-radius: 15px;
  background: var(--sh-v2-soft);
}

.sh-v2-choice-title {
  width: 100%;
  margin-bottom: 2px;
  color: var(--sh-v2-ink);
  font-size: 12px;
  font-weight: 800;
}

.sh-v2-choice {
  margin: 0;
  cursor: pointer;
}

.sh-v2-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.sh-v2-choice span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 13px;
  border: 1px solid var(--sh-v2-border);
  border-radius: 10px;
  color: var(--sh-v2-muted);
  background: var(--sh-v2-white);
  font-size: 11px;
  font-weight: 700;
  transition: 0.2s ease;
}

.sh-v2-choice input:checked + span {
  border-color: rgba(255, 90, 31, 0.35);
  color: var(--sh-v2-primary);
  background: rgba(255, 90, 31, 0.07);
}

@media (max-width: 991px) {
  .sh-v2-search-wrap {
    margin-top: -36px;
  }

  .sh-v2-search-head {
    align-items: flex-start;
  }

  .sh-v2-car-search {
    grid-template-columns: 1fr;
  }

  .sh-v2-form-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sh-v2-field-wide {
    grid-column: span 2;
  }
}

@media (max-width: 767px) {
  .sh-v2-search-wrap {
    width: auto;
    margin: -24px 14px 32px;
    padding: 0;
  }

  .sh-v2-search-card {
    border-radius: 18px;
  }

  .sh-v2-search-head {
    display: block;
    padding: 24px 20px 18px;
  }

  .sh-v2-search-head h2 {
    font-size: 23px;
  }

  .sh-v2-search-all-link {
    margin-top: 16px;
  }

  .sh-v2-search-tabs.nav-tabs {
    display: flex;
    overflow-x: auto;
    padding: 0 8px;
    scrollbar-width: none;
  }

  .sh-v2-search-tabs.nav-tabs::-webkit-scrollbar {
    display: none;
  }

  .sh-v2-search-tabs.nav-tabs > li {
    min-width: 210px;
  }

  .sh-v2-search-tabs.nav-tabs > li > a {
    min-height: 78px;
    justify-content: flex-start;
  }

  .sh-v2-search-content {
    padding: 22px 18px;
  }

  .sh-v2-car-zones,
  .sh-v2-form-grid-2,
  .sh-v2-form-grid-3,
  .sh-v2-choice-groups {
    grid-template-columns: 1fr;
  }

  .sh-v2-field-wide {
    grid-column: auto;
  }

  .sh-v2-car-zone {
    min-height: 118px;
  }

  .sh-v2-advanced-title {
    align-items: flex-start;
  }

  .sh-v2-form-actions {
    justify-content: stretch;
  }

  .sh-v2-primary-btn {
    width: 100%;
  }
}

/* =========================================================
   SperHub V2 — Interactive car parts finder
   ========================================================= */

.sh-v2-search-wrap {
  margin-top: 28px;
}

.sh-v2-search-head {
  align-items: center;
}

.sh-v2-search-tabs.nav-tabs {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sh-v2-search-tabs.nav-tabs > li > a {
  position: relative;
}

.sh-v2-search-content {
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 90, 31, 0.045), transparent 28%),
    #ffffff;
}

.sh-v2-car-finder {
  direction: inherit;
}

.sh-v2-finder-topbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--sh-v2-border);
}

.sh-v2-finder-topbar h3 {
  margin: 8px 0 8px;
  color: var(--sh-v2-ink);
  font-size: 25px;
  font-weight: 800;
  line-height: 1.35;
}

.sh-v2-finder-topbar p {
  max-width: 760px;
  margin: 0;
  color: var(--sh-v2-muted);
  font-size: 13px;
  line-height: 1.8;
}

.sh-v2-finder-help {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 9px;
  padding: 10px 13px;
  border: 1px solid var(--sh-v2-border);
  border-radius: 999px;
  color: var(--sh-v2-muted);
  background: var(--sh-v2-white);
  font-size: 11px;
  font-weight: 700;
}

.sh-v2-pulse-dot {
  position: relative;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--sh-v2-primary);
}

.sh-v2-pulse-dot::after {
  position: absolute;
  inset: -5px;
  border: 1px solid rgba(255, 90, 31, 0.38);
  border-radius: inherit;
  content: "";
  animation: shV2Pulse 1.8s infinite;
}

@keyframes shV2Pulse {
  0% { opacity: .8; transform: scale(.55); }
  70% { opacity: 0; transform: scale(1.25); }
  100% { opacity: 0; }
}

.sh-v2-finder-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(310px, .85fr);
  gap: 22px;
  padding-top: 24px;
}

.sh-v2-car-visual-card,
.sh-v2-car-results {
  border: 1px solid var(--sh-v2-border);
  border-radius: 20px;
  background: var(--sh-v2-white);
}

.sh-v2-car-visual-card {
  overflow: hidden;
  min-width: 0;
}

.sh-v2-car-stage {
  position: relative;
  padding: 20px 22px 8px;
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 122, 39, .12), transparent 40%),
    linear-gradient(180deg, #fbfcfe 0%, #f2f5f8 100%);
}

.sh-v2-car-stage::before {
  position: absolute;
  inset: 0;
  opacity: .34;
  background-image:
    linear-gradient(rgba(23, 32, 51, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 32, 51, .045) 1px, transparent 1px);
  background-size: 28px 28px;
  content: "";
  pointer-events: none;
}

.sh-v2-car-svg {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  min-height: 280px;
  max-height: 390px;
}

.sh-v2-car-ground {
  fill: rgba(23, 32, 51, .11);
}

.sh-v2-car-body {
  fill: url(#shCarBodyGradient);
  stroke: #d83e12;
  stroke-width: 4;
}

.sh-v2-car-lower {
  fill: #dc4718;
  opacity: .96;
}

.sh-v2-car-window {
  fill: url(#shCarGlassGradient);
  stroke: rgba(23, 32, 51, .62);
  stroke-width: 4;
}

.sh-v2-car-trim,
.sh-v2-door-handle {
  fill: none;
  stroke: rgba(23, 32, 51, .62);
  stroke-linecap: round;
}

.sh-v2-car-trim {
  stroke-width: 4;
}

.sh-v2-door-handle {
  stroke-width: 7;
}

.sh-v2-car-headlight {
  fill: #fff5b5;
  stroke: #b38d28;
  stroke-width: 3;
}

.sh-v2-car-taillight {
  fill: #ffcbc4;
  stroke: #b92313;
  stroke-width: 3;
}

.sh-v2-side-mirror {
  fill: #ef521c;
  stroke: #b93410;
  stroke-width: 3;
}

.sh-v2-wheel-outer {
  fill: #202737;
  stroke: #111827;
  stroke-width: 5;
}

.sh-v2-wheel-inner {
  fill: #cfd6df;
  stroke: #7a8595;
  stroke-width: 5;
}

.sh-v2-wheel-hub {
  fill: #6e7887;
}

.sh-v2-hotspot {
  cursor: pointer;
  outline: none;
}

.sh-v2-hotspot-shape {
  fill: rgba(255, 255, 255, .01);
  stroke: transparent;
  stroke-width: 4;
  transition: fill .2s ease, stroke .2s ease, filter .2s ease;
}

.sh-v2-hotspot:hover .sh-v2-hotspot-shape,
.sh-v2-hotspot:focus .sh-v2-hotspot-shape,
.sh-v2-hotspot.is-active .sh-v2-hotspot-shape {
  fill: rgba(255, 255, 255, .20);
  stroke: #ffffff;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, .5));
}

.sh-v2-hotspot-pin {
  fill: #ffffff;
  stroke: var(--sh-v2-primary);
  stroke-width: 4;
  transition: transform .2s ease, fill .2s ease;
  transform-box: fill-box;
  transform-origin: center;
}

.sh-v2-hotspot:hover .sh-v2-hotspot-pin,
.sh-v2-hotspot:focus .sh-v2-hotspot-pin,
.sh-v2-hotspot.is-active .sh-v2-hotspot-pin {
  fill: var(--sh-v2-primary);
  transform: scale(1.15);
}

.sh-v2-hotspot-number {
  fill: var(--sh-v2-primary);
  font-size: 13px;
  font-weight: 900;
  pointer-events: none;
}

.sh-v2-hotspot:hover .sh-v2-hotspot-number,
.sh-v2-hotspot:focus .sh-v2-hotspot-number,
.sh-v2-hotspot.is-active .sh-v2-hotspot-number {
  fill: #ffffff;
}

.sh-v2-area-switcher {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
  padding: 14px;
  border-top: 1px solid var(--sh-v2-border);
  background: #ffffff;
}

.sh-v2-area-button {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--sh-v2-border);
  border-radius: 12px;
  color: var(--sh-v2-muted);
  background: #fff;
  font-size: 10px;
  font-weight: 800;
  text-align: start;
  transition: .2s ease;
}

.sh-v2-area-button:hover,
.sh-v2-area-button:focus,
.sh-v2-area-button.is-active {
  border-color: rgba(255, 90, 31, .38);
  color: var(--sh-v2-primary);
  background: rgba(255, 90, 31, .055);
  box-shadow: 0 8px 20px rgba(23, 32, 51, .06);
}

.sh-v2-area-number {
  display: grid;
  width: 21px;
  height: 21px;
  flex: 0 0 21px;
  place-items: center;
  border-radius: 7px;
  color: #ffffff;
  background: #afb6c2;
  font-size: 9px;
}

.sh-v2-area-button.is-active .sh-v2-area-number {
  background: var(--sh-v2-primary);
}

.sh-v2-area-button-icon {
  display: grid;
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  place-items: center;
  border-radius: 8px;
  background: #f2f4f7;
  font-size: 11px;
}

.sh-v2-car-results {
  min-height: 100%;
  padding: 20px;
}

.sh-v2-area-panel {
  animation: shV2PanelIn .25s ease;
}

@keyframes shV2PanelIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

.sh-v2-area-panel-head {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--sh-v2-border);
}

.sh-v2-area-panel-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 15px;
  color: var(--sh-v2-primary);
  background: rgba(255, 90, 31, .09);
  font-size: 18px;
}

.sh-v2-area-kicker {
  color: var(--sh-v2-primary);
  font-size: 10px;
  font-weight: 800;
}

.sh-v2-area-panel-head h4 {
  margin: 4px 0 6px;
  color: var(--sh-v2-ink);
  font-size: 19px;
  font-weight: 900;
}

.sh-v2-area-panel-head p {
  margin: 0;
  color: var(--sh-v2-muted);
  font-size: 11px;
  line-height: 1.75;
}

.sh-v2-category-count {
  display: grid;
  min-width: 34px;
  height: 34px;
  padding: 0 9px;
  place-items: center;
  border-radius: 11px;
  color: var(--sh-v2-primary);
  background: rgba(255, 90, 31, .08);
  font-size: 11px;
  font-weight: 900;
}

.sh-v2-category-grid {
  display: grid;
  gap: 9px;
  max-height: 310px;
  margin-top: 16px;
  padding-inline-end: 4px;
  overflow-y: auto;
  scrollbar-color: rgba(255, 90, 31, .35) transparent;
  scrollbar-width: thin;
}

.sh-v2-category-chip {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 13px;
  border: 1px solid var(--sh-v2-border);
  border-radius: 12px;
  color: var(--sh-v2-ink);
  background: #fff;
  font-size: 11px;
  font-weight: 750;
  text-decoration: none !important;
  transition: .18s ease;
}

.sh-v2-category-chip:hover,
.sh-v2-category-chip:focus {
  border-color: rgba(255, 90, 31, .35);
  color: var(--sh-v2-primary);
  background: rgba(255, 90, 31, .045);
  transform: translateX(var(--sh-v2-chip-shift, 2px));
}

.rtl .sh-v2-category-chip:hover,
.rtl .sh-v2-category-chip:focus {
  --sh-v2-chip-shift: -2px;
}

.sh-v2-category-chip i {
  flex: 0 0 auto;
  color: var(--sh-v2-primary);
}

.sh-v2-view-area-products {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding: 13px 14px;
  border-radius: 12px;
  color: #ffffff !important;
  background: var(--sh-v2-ink);
  font-size: 11px;
  font-weight: 800;
  text-decoration: none !important;
  transition: .2s ease;
}

.sh-v2-view-area-products:hover {
  background: var(--sh-v2-primary);
}

.sh-v2-empty-categories {
  display: flex;
  min-height: 210px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 16px;
  padding: 25px;
  border: 1px dashed #d8dde5;
  border-radius: 14px;
  color: var(--sh-v2-muted);
  background: #fafbfc;
  text-align: center;
}

.sh-v2-empty-categories i {
  color: var(--sh-v2-primary);
  font-size: 24px;
}

.sh-v2-empty-categories strong {
  color: var(--sh-v2-ink);
  font-size: 12px;
}

.sh-v2-empty-categories span {
  max-width: 260px;
  font-size: 10px;
  line-height: 1.7;
}

@media (max-width: 1100px) {
  .sh-v2-finder-layout {
    grid-template-columns: 1fr;
  }

  .sh-v2-car-results {
    min-height: 0;
  }

  .sh-v2-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: none;
  }
}

@media (max-width: 767px) {
  .sh-v2-search-wrap {
    margin-top: 14px;
  }

  .sh-v2-finder-topbar {
    display: block;
  }

  .sh-v2-finder-help {
    margin-top: 14px;
  }

  .sh-v2-car-stage {
    overflow-x: auto;
    padding: 12px 8px 4px;
  }

  .sh-v2-car-svg {
    width: 720px;
    max-width: none;
    min-height: 0;
  }

  .sh-v2-area-switcher {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sh-v2-category-grid {
    grid-template-columns: 1fr;
  }

  .sh-v2-area-panel-head {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .sh-v2-category-count {
    position: absolute;
    inset-inline-end: 0;
    top: 0;
  }
}



.sh-v2-search-tabs.nav-tabs {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 767px) {
  .sh-v2-search-tabs.nav-tabs {
    display: flex;
  }
}



/* ==========================================
   SperHub V2 — Premium Search Navigation
   ========================================== */

.sh-v2-search-tabs.nav-tabs {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 12px;

    margin: 0 !important;
    padding: 16px 18px !important;

    border: 0 !important;
    border-top: 1px solid #e7eaf0 !important;
    border-bottom: 1px solid #e7eaf0 !important;

    background: #f8fafc !important;
}

.sh-v2-search-tabs.nav-tabs > li {
    float: none !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
}

.sh-v2-search-tabs.nav-tabs > li > a,
.sh-v2-search-tabs.nav-tabs > li + li > a {
    position: relative;

    display: flex !important;
    min-height: 92px;

    align-items: center;
    justify-content: flex-start;
    gap: 12px;

    margin: 0 !important;
    padding: 15px !important;

    overflow: hidden;

    border: 1px solid #e3e7ed !important;
    border-radius: 16px !important;

    color: #687286 !important;
    background: #ffffff !important;

    text-align: start;
    text-decoration: none;

    box-shadow: 0 4px 14px rgba(23, 32, 51, 0.03);

    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease,
        border-color 0.22s ease,
        background 0.22s ease;
}

.sh-v2-search-tabs.nav-tabs > li > a::after {
    display: none !important;
}

.sh-v2-search-tabs.nav-tabs > li > a::before {
    position: absolute;

    top: 0;
    right: 20%;
    left: 20%;

    height: 3px;

    border-radius: 0 0 10px 10px;

    background: transparent;

    content: "";

    transition: 0.22s ease;
}

.sh-v2-search-tabs.nav-tabs > li > a:hover {
    border-color: rgba(255, 90, 31, 0.32) !important;

    color: #ff5a1f !important;
    background: #ffffff !important;

    box-shadow: 0 12px 28px rgba(23, 32, 51, 0.08);

    transform: translateY(-3px);
}

.sh-v2-search-tabs.nav-tabs > li.active > a,
.sh-v2-search-tabs.nav-tabs > li.active > a:hover,
.sh-v2-search-tabs.nav-tabs > li.active > a:focus {
    border-color: rgba(255, 90, 31, 0.45) !important;

    color: #ff5a1f !important;
    background:
        linear-gradient(
            135deg,
            rgba(255, 90, 31, 0.09),
            rgba(255, 122, 39, 0.025)
        ) !important;

    box-shadow:
        0 14px 32px rgba(255, 90, 31, 0.12);

    transform: translateY(-2px);
}

.sh-v2-search-tabs.nav-tabs > li.active > a::before {
    right: 12%;
    left: 12%;

    background: linear-gradient(
        90deg,
        #ff5a1f,
        #ff8a27
    );
}

.sh-v2-search-tabs .sh-v2-tab-icon {
    display: grid;

    width: 46px;
    height: 46px;

    flex: 0 0 46px;

    place-items: center;

    border: 1px solid #e5e8ed;
    border-radius: 14px;

    color: #ff5a1f;
    background: #f8fafc;

    font-size: 18px;

    transition: 0.22s ease;
}

.sh-v2-search-tabs li.active .sh-v2-tab-icon {
    border-color: transparent;

    color: #ffffff;
    background: linear-gradient(
        135deg,
        #ff5a1f,
        #ff8126
    );

    box-shadow:
        0 9px 20px rgba(255, 90, 31, 0.25);

    transform: rotate(-3deg) scale(1.04);
}

.rtl .sh-v2-search-tabs li.active .sh-v2-tab-icon {
    transform: rotate(3deg) scale(1.04);
}

.sh-v2-search-tabs strong {
    display: block;

    margin: 0 0 5px;

    color: #172033;

    font-size: 13px;
    font-weight: 900;
    line-height: 1.45;
}

.sh-v2-search-tabs li.active strong {
    color: #ff5a1f;
}

.sh-v2-search-tabs small {
    display: block;

    color: #929aaa;

    font-size: 10px;
    font-weight: 500;
    line-height: 1.5;
}

/* حركة محتوى التاب */

.sh-v2-search-content > .tab-pane.active {
    animation: sperhubTabEnter 0.3s ease both;
}

@keyframes sperhubTabEnter {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Tablet */

@media (max-width: 991px) {
    .sh-v2-search-tabs.nav-tabs {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

/* Mobile */

@media (max-width: 600px) {
    .sh-v2-search-tabs.nav-tabs {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;

        gap: 8px;
        padding: 10px !important;
    }

    .sh-v2-search-tabs.nav-tabs > li {
        min-width: 0 !important;
    }

    .sh-v2-search-tabs.nav-tabs > li > a {
        min-height: 112px;

        flex-direction: column;
        justify-content: center;

        padding: 12px 8px !important;

        text-align: center;
    }

    .sh-v2-search-tabs .sh-v2-tab-icon {
        width: 42px;
        height: 42px;

        flex-basis: 42px;
    }

    .sh-v2-search-tabs strong {
        font-size: 11px;
    }

    .sh-v2-search-tabs small {
        font-size: 9px;
    }
}