/* Autos House — car parts shop */
:root {
  --ah-dark: #0c0e12;
  --ah-dark-mid: #141820;
  --ah-accent: #c9a227;
  --ah-accent-hover: #e0b82e;
  --ah-text: #e8eaef;
  --ah-muted: #8b929e;
  --ah-form-surface: #e9ecef;
  --ah-form-input-bg: #ffffff;
  --ah-form-border: #d4d8de;
  --ah-form-text: #1a1d24;
  --ah-form-placeholder: #b4bac4;
}

body.auto-house {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-top: 64px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: #f4f5f7;
  color: #1a1d24;
  overflow-x: hidden;
}

/* py-0 on body must not tuck content under the fixed navbar */
body.auto-house.py-0 {
  padding-top: 64px !important;
  padding-bottom: 0 !important;
}

/* Forms — light grey <form> background; white inputs; light placeholders */
body.auto-house form.ah-contact-form,
body.auto-house #ah-catalog-form,
body.bg-light form,
body.ah-admin main form {
  background-color: var(--ah-form-surface);
  border-radius: 0.5rem;
  padding: 1.25rem;
}

body.auto-house form.d-inline,
body.auto-house form.d-inline-flex,
body.auto-house form.d-flex.align-items-center.gap-1,
body.ah-admin form.d-inline,
body.ah-admin form.d-inline-flex,
body.ah-admin .ah-admin-sidebar form,
body.ah-admin .ah-admin-sidebar-offcanvas form {
  background-color: transparent;
  padding: 0;
  border-radius: 0;
}

body.auto-house .form-control,
body.auto-house .form-select,
body.ah-admin .form-control,
body.ah-admin .form-select,
body.bg-light .form-control,
body.bg-light .form-select {
  background-color: var(--ah-form-input-bg);
  border-color: var(--ah-form-border);
  color: var(--ah-form-text);
}

body.auto-house .form-control::placeholder,
body.ah-admin .form-control::placeholder,
body.bg-light .form-control::placeholder {
  color: var(--ah-form-placeholder);
  opacity: 1;
}

body.auto-house .form-control:focus,
body.auto-house .form-select:focus,
body.ah-admin .form-control:focus,
body.ah-admin .form-select:focus,
body.bg-light .form-control:focus,
body.bg-light .form-select:focus {
  background-color: var(--ah-form-input-bg);
  border-color: #b8bec8;
  color: var(--ah-form-text);
  box-shadow: 0 0 0 0.2rem rgba(26, 29, 36, 0.06);
}

body.auto-house .form-control:disabled,
body.auto-house .form-select:disabled,
body.ah-admin .form-control:disabled,
body.ah-admin .form-select:disabled {
  background-color: #f0f1f3;
  color: #8b929e;
}

.ah-navbar {
  height: 64px;
  background: var(--ah-dark) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  z-index: 1030;
}

.ah-navbar .navbar-brand {
  font-weight: 700;
  color: #fff !important;
}

.ah-logo {
  height: 36px;
  width: auto;
  max-width: min(220px, 52vw);
  object-fit: contain;
  display: block;
}

.ah-navbar .nav-link {
  color: rgba(255, 255, 255, 0.78) !important;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.5rem 0.85rem !important;
}

.ah-navbar .nav-link:hover {
  color: #fff !important;
}

.ah-navbar .ah-nav-account .dropdown-toggle::after {
  margin-inline-start: 0.35rem;
}

.ah-navbar .ah-nav-account-label {
  max-width: 9rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: middle;
}

.ah-navbar .dropdown-menu {
  background: var(--ah-dark-mid);
  border: 1px solid rgba(255, 255, 255, 0.1);
  min-width: 12rem;
  z-index: 1040;
}

.ah-navbar .navbar-collapse.show,
.ah-navbar .navbar-collapse.collapsing {
  overflow: visible;
}

.ah-navbar .dropdown-header {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.75rem;
}

.ah-navbar .dropdown-item {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
}

.ah-navbar .dropdown-item:hover,
.ah-navbar .dropdown-item:focus {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.ah-navbar .dropdown-item.active {
  background: rgba(255, 193, 7, 0.14);
  color: var(--bs-warning);
}

.ah-navbar .dropdown-item.text-danger {
  color: #f87171 !important;
}

.ah-navbar .dropdown-item.text-danger:hover,
.ah-navbar .dropdown-item.text-danger:focus {
  background: rgba(248, 113, 113, 0.12);
  color: #fca5a5 !important;
}

.ah-navbar .dropdown-divider {
  border-color: rgba(255, 255, 255, 0.1);
}

@media (max-width: 991.98px) {
  .ah-navbar .ah-nav-account {
    width: 100%;
  }

  .ah-navbar .ah-nav-account .dropdown-toggle {
    width: 100%;
    justify-content: space-between;
  }

  .ah-navbar .ah-nav-account .dropdown-menu {
    width: 100%;
  }

  .ah-navbar .navbar-collapse {
    background: var(--ah-dark-mid);
    padding: 1rem;
    margin: 0.5rem -0.5rem 0;
    border-radius: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
  }
}

.ah-footer {
  background: var(--ah-dark);
  color: rgba(255, 255, 255, 0.65);
  padding: 2.5rem 0 0;
  margin-top: auto;
  font-size: 0.875rem;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

.ah-footer a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
}

.ah-footer a:hover {
  color: var(--ah-accent);
}

.ah-footer .footer-brand {
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
}

.ah-footer .footer-heading {
  color: #fff;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
  opacity: 0.9;
}

/* Footer SKU ticker */
.ah-footer-sku-index {
  overflow: hidden;
  margin: 0 0 1rem;
  padding: 0.65rem 0;
  border-block: 1px solid rgba(255, 255, 255, 0.08);
}

.ah-footer-sku-index__viewport {
  overflow: hidden;
  width: 100%;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.ah-footer-sku-index__track {
  display: inline-flex;
  flex-wrap: nowrap;
  animation: ah-footer-sku-scroll 240s linear infinite;
}

.ah-footer-sku-index__row {
  display: inline-flex;
  flex-wrap: nowrap;
  white-space: nowrap;
  padding-inline-end: 3rem;
  font-size: 0.72rem;
  line-height: 1.4;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.42);
}

.ah-footer-sku-index__item {
  display: inline;
}

.ah-footer-sku-index__sep {
  display: inline;
  opacity: 0.55;
}

@keyframes ah-footer-sku-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ah-footer-sku-index__track {
    animation: none;
  }
}

/* Catalog part-name ticker — plain text only; clip so it cannot widen the page */
.ah-seo-name-index {
  position: relative;
  width: 100%;
  max-width: 100%;
  height: 1.75rem;
  overflow: hidden;
}

.ah-seo-name-index__viewport {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.ah-seo-name-index__track {
  position: absolute;
  top: 50%;
  left: 0;
  display: flex;
  width: max-content;
  white-space: nowrap;
  animation: ah-seo-name-scroll 420s linear infinite;
}

.ah-seo-name-index__track > span {
  padding-inline-end: 2rem;
  white-space: nowrap;
}

@keyframes ah-seo-name-scroll {
  from {
    transform: translateY(-50%) translateX(0);
  }
  to {
    transform: translateY(-50%) translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ah-seo-name-index__track {
    animation: none;
    transform: translateY(-50%) translateX(0);
  }
}

.ah-seo-name-index.is-rtl .ah-seo-name-index__track {
  animation-name: ah-seo-name-scroll-rtl;
}

@keyframes ah-seo-name-scroll-rtl {
  from {
    transform: translateY(-50%) translateX(0);
  }
  to {
    transform: translateY(-50%) translateX(50%);
  }
}

.ah-footer > .container {
  padding-bottom: 1.5rem;
}

.ah-vehicle-part-card__img {
  overflow: hidden;
  background: #eef0f3;
}

.ah-vehicle-part-card__img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.ah-vehicle-parts .spinner-border {
  width: 2rem;
  height: 2rem;
}

/* Live status: “Loading filters…” / searching parts */
.ah-live-status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 1.25rem;
  max-width: 16rem;
  text-align: end;
}

.ah-live-status:empty {
  display: none;
}

.ah-live-status.is-busy {
  color: var(--bs-secondary-color, #6c757d);
}

.ah-live-status.is-error {
  color: var(--bs-danger, #dc3545);
}

.ah-live-status__label {
  line-height: 1.3;
}

.ah-live-status.is-busy .ah-live-status__label {
  animation: ah-live-status-pulse 1.1s ease-in-out infinite;
}

.ah-live-status__dots {
  display: none;
  letter-spacing: 0.05em;
  font-weight: 700;
  min-width: 1.1em;
}

.ah-live-status.is-busy .ah-live-status__dots {
  display: inline-block;
}

.ah-live-status__dots span {
  opacity: 0.25;
  animation: ah-live-status-dot 1.05s ease-in-out infinite;
}

.ah-live-status__dots span:nth-child(2) {
  animation-delay: 0.18s;
}

.ah-live-status__dots span:nth-child(3) {
  animation-delay: 0.36s;
}

.ah-live-status__spinner {
  display: none;
  width: 0.85rem;
  height: 0.85rem;
  border-width: 0.15em;
  flex-shrink: 0;
}

.ah-live-status.is-busy .ah-live-status__spinner {
  display: inline-block;
}

.ah-live-status-track {
  height: 3px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
  overflow: hidden;
  opacity: 0;
  max-height: 0;
  margin: 0;
  transition: opacity 0.18s ease, max-height 0.18s ease, margin 0.18s ease;
}

.ah-live-status-track.is-active {
  opacity: 1;
  max-height: 3px;
  margin: 0.65rem 0 0.85rem;
}

.ah-live-status-track__bar {
  width: 38%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #f0b429, #f59e0b, #f0b429);
  background-size: 200% 100%;
  animation: ah-catalog-loading-bar 1.1s ease-in-out infinite;
}

#ah-vehicle-category-levels.is-busy .form-select {
  opacity: 0.65;
  pointer-events: none;
}

.ah-category-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
  gap: 0.65rem;
}

.ah-category-tile {
  appearance: none;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: #0c0e12;
  color: #e8eaef;
  padding: 0;
  text-align: start;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.ah-category-tile:hover,
.ah-category-tile:focus-visible {
  border-color: #c9a227;
  outline: none;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(12, 14, 18, 0.18);
}

.ah-category-tile.is-selected {
  border-color: #c9a227;
  box-shadow: inset 0 0 0 1px #c9a227;
}

.ah-category-tile__media {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #141820;
}

.ah-category-tile__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ah-category-tile__label {
  display: block;
  padding: 0.45rem 0.55rem 0.55rem;
  font-size: 0.78rem;
  line-height: 1.25;
  font-weight: 600;
}

@media (prefers-reduced-motion: reduce) {
  .ah-category-tile {
    transition: none;
  }
  .ah-category-tile:hover,
  .ah-category-tile:focus-visible {
    transform: none;
  }
}


@keyframes ah-live-status-pulse {
  0%, 100% { opacity: 0.72; }
  50% { opacity: 1; }
}

@keyframes ah-live-status-dot {
  0%, 80%, 100% { opacity: 0.2; }
  40% { opacity: 1; }
}


.ah-parts-main {
  flex: 1;
}

body.auto-house.ah-subpage .ah-parts-main {
  padding-top: 1.5rem;
  padding-bottom: 3rem;
}

/* Catalog filter / search loading */
.ah-catalog-loading {
  position: fixed;
  top: 56px;
  left: 0;
  right: 0;
  z-index: 10050;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.ah-catalog-loading.is-visible {
  opacity: 1;
}

.ah-catalog-loading__track {
  height: 6px;
  background: rgba(12, 14, 18, 0.1);
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
}

.ah-catalog-loading__bar {
  height: 100%;
  width: 42%;
  background: linear-gradient(90deg, #a8861f, var(--ah-accent), #e0b83d, var(--ah-accent-hover), #a8861f);
  background-size: 200% 100%;
  animation: ah-catalog-loading-bar 1.1s ease-in-out infinite;
  box-shadow: 0 0 18px rgba(201, 162, 39, 0.55);
}

@keyframes ah-catalog-loading-bar {
  0% {
    transform: translateX(-120%);
  }
  100% {
    transform: translateX(320%);
  }
}

.ah-catalog-loading-screen {
  position: fixed;
  inset: 56px 0 0 0;
  z-index: 10040;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 2.5rem 1rem 1rem;
  background: rgba(244, 245, 247, 0.82);
  backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease, visibility 0.15s ease;
  pointer-events: none;
}

.ah-catalog-loading-screen.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.ah-catalog-loading-screen__panel {
  width: min(28rem, 100%);
  padding: 1.25rem 1.35rem 1.1rem;
  border-radius: 0.85rem;
  background: #fff;
  border: 1px solid rgba(12, 14, 18, 0.08);
  box-shadow: 0 12px 40px rgba(12, 14, 18, 0.12);
  text-align: center;
}

.ah-catalog-loading-screen__progress {
  height: 8px;
  border-radius: 999px;
  background: rgba(12, 14, 18, 0.08);
  overflow: hidden;
  margin-bottom: 0.85rem;
}

.ah-catalog-loading-screen__bar {
  height: 100%;
  width: 45%;
  border-radius: inherit;
  background: linear-gradient(90deg, #a8861f, var(--ah-accent), #e0b83d, var(--ah-accent-hover), #a8861f);
  background-size: 200% 100%;
  animation: ah-catalog-loading-bar 1.1s ease-in-out infinite;
  box-shadow: 0 0 12px rgba(201, 162, 39, 0.45);
}

.ah-catalog-loading-screen__text {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ah-dark-mid);
}

.ah-catalog-results.is-loading {
  min-height: 14rem;
}

.ah-catalog-results {
  min-height: 12rem;
}

.ah-catalog-loading-overlay {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 2.5rem 1rem 1rem;
  background: rgba(244, 245, 247, 0.72);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.ah-catalog-loading-overlay.is-active {
  opacity: 1;
  pointer-events: auto;
}

.ah-catalog-loading__panel {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(12, 14, 18, 0.08);
  box-shadow: 0 8px 24px rgba(12, 14, 18, 0.1);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ah-dark-mid);
}

.ah-catalog-loading__panel .spinner-border {
  width: 1.1rem;
  height: 1.1rem;
  border-width: 0.15em;
}

.ah-catalog-loading__stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  max-width: min(36rem, 100%);
}

.ah-catalog-loading__panel-progress {
  width: min(18rem, 100%);
  height: 4px;
  border-radius: 999px;
  background: rgba(12, 14, 18, 0.08);
  overflow: hidden;
}

.ah-catalog-loading__panel-bar {
  height: 100%;
  width: 40%;
  border-radius: inherit;
  background: linear-gradient(90deg, #a8861f, var(--ah-accent), var(--ah-accent-hover), #a8861f);
  background-size: 200% 100%;
  animation: ah-catalog-loading-bar 1.15s ease-in-out infinite;
  box-shadow: 0 0 10px rgba(201, 162, 39, 0.35);
}

.ah-search-context {
  padding: 0.85rem 1rem;
  border-radius: 0.75rem;
  background: #fff;
  border: 1px solid rgba(12, 14, 18, 0.08);
  box-shadow: 0 4px 16px rgba(12, 14, 18, 0.06);
}

.ah-search-context--loading {
  width: 100%;
  text-align: center;
  box-shadow: 0 8px 24px rgba(12, 14, 18, 0.08);
}

.ah-search-context__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(201, 162, 39, 0.1);
  border: 1px solid rgba(201, 162, 39, 0.22);
  font-size: 0.8125rem;
  color: var(--ah-dark-mid);
  line-height: 1.35;
}

.ah-search-context__chip .bi {
  color: var(--ah-accent);
}

.ah-search-context__label {
  color: rgba(12, 14, 18, 0.62);
  font-weight: 500;
}

.ah-search-context__value {
  font-weight: 600;
  color: var(--ah-dark);
}

.ah-lang-ar .ah-search-context__chip {
  direction: rtl;
}

@media (min-width: 992px) {
  .ah-catalog-offcanvas {
    position: sticky !important;
    top: 5.5rem;
    transform: none !important;
    visibility: visible !important;
    width: 100% !important;
    height: auto !important;
    background: transparent !important;
  }

  .ah-catalog-offcanvas .offcanvas-body {
    overflow: visible;
  }
}

.ah-catalog-sidebar {
  position: static;
}

.ah-catalog-sidebar .form-label {
  font-weight: 500;
}

.ah-brand-filter {
  position: relative;
}

.ah-brand-suggestions {
  position: absolute;
  z-index: 20;
  left: 0;
  right: 0;
  max-height: 14rem;
  overflow-y: auto;
  margin-top: 0.25rem;
  border-radius: 0.5rem;
}

.ah-brand-suggestions .list-group-item {
  font-size: 0.875rem;
  border-left: 0;
  border-right: 0;
}

.ah-brand-suggestions .list-group-item:first-child {
  border-top: 0;
}

.ah-brand-suggestions .list-group-item:last-child {
  border-bottom: 0;
}

@media (max-width: 991.98px) {
  .ah-catalog-sidebar {
    position: static;
  }
}

.ah-parts-hero {
  background: linear-gradient(135deg, var(--ah-dark-mid) 0%, #1a2230 45%, #243044 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* Catalog landing promos (before first search) */
.ah-promo-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 992px) {
  .ah-promo-grid {
    grid-template-columns: 1.35fr 1fr;
    grid-template-rows: minmax(200px, auto) minmax(160px, auto) minmax(140px, auto);
  }

  .ah-promo-card--hero {
    grid-row: 1 / span 2;
    min-height: 420px;
  }

  .ah-promo-card--vin {
    min-height: 200px;
  }

  .ah-promo-card--light {
    min-height: 200px;
  }

  .ah-promo-card--cta {
    grid-column: 1 / -1;
    min-height: 0;
  }
}

.ah-promo-card {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  min-height: 240px;
  background: var(--ah-dark-mid);
  box-shadow: 0 0.75rem 2rem rgba(12, 14, 18, 0.14);
  border: 1px solid rgba(12, 14, 18, 0.06);
}

.ah-promo-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.ah-promo-card__img--contain {
  object-fit: contain;
  object-position: right center;
  padding: 1rem;
  opacity: 0.95;
}

.ah-promo-card__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    165deg,
    rgba(12, 14, 18, 0.15) 0%,
    rgba(12, 14, 18, 0.55) 45%,
    rgba(12, 14, 18, 0.88) 100%
  );
  pointer-events: none;
}

.ah-promo-card__shade--strong {
  background: linear-gradient(
    120deg,
    rgba(12, 14, 18, 0.35) 0%,
    rgba(12, 14, 18, 0.75) 55%,
    rgba(12, 14, 18, 0.92) 100%
  );
}

.ah-promo-card__body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: inherit;
  padding: 1.5rem 1.75rem;
  color: #fff;
}

.ah-promo-card__body--center {
  justify-content: center;
  align-items: flex-start;
  text-align: left;
}

.ah-promo-card__body--dark-text {
  color: #1a1d24;
  max-width: 58%;
}

.ah-promo-card__eyebrow {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ah-accent);
  margin: 0;
}

.ah-promo-card__eyebrow--dark {
  color: #6b7280;
}

.ah-promo-card__title {
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
}

.ah-promo-card__text {
  margin: 0;
  opacity: 0.92;
  max-width: 36rem;
}

.ah-promo-card--light {
  background: #fff;
  min-height: 200px;
}

.ah-promo-card--light .ah-promo-card__shade {
  display: none;
}

.ah-promo-card--cta {
  min-height: 220px;
  background: var(--ah-dark);
  border-color: rgba(201, 162, 39, 0.2);
}

.ah-promo-card__img--cta {
  object-position: right center;
}

.ah-promo-card__shade--cta {
  background: linear-gradient(
    105deg,
    rgba(12, 14, 18, 0.92) 0%,
    rgba(12, 14, 18, 0.72) 38%,
    rgba(12, 14, 18, 0.25) 62%,
    rgba(12, 14, 18, 0.1) 100%
  );
}

.ah-promo-card__body--cta {
  justify-content: center;
  align-items: flex-start;
  max-width: min(100%, 22rem);
  min-height: 220px;
  padding: 1.5rem 1.75rem;
}

.ah-promo-card--cta .ah-promo-card__text {
  opacity: 0.9;
}

@media (min-width: 992px) {
  .ah-promo-card--cta {
    min-height: 200px;
  }

  .ah-promo-card__body--cta {
    min-height: 200px;
  }
}

@media (max-width: 991.98px) {
  .ah-promo-card__body--dark-text {
    max-width: 100%;
    background: linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.92) 35%);
    padding-top: 5rem;
  }

  .ah-promo-card--light .ah-promo-card__img--contain {
    object-position: center top;
    max-height: 55%;
  }
}

.ah-parts-card {
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.ah-parts-card:hover {
  box-shadow: 0 0.5rem 1.25rem rgba(12, 14, 18, 0.12) !important;
  transform: translateY(-2px);
}

.ah-parts-card-img-wrap {
  position: relative;
  width: 100%;
  height: 200px;
  min-height: 200px;
  max-height: 200px;
  flex-shrink: 0;
  background: #eef0f3;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.ah-parts-brand-logo {
  position: absolute;
  top: 0.5rem;
  left: 1.5rem;
  z-index: 2;
  height: 2.75rem;
  display: flex;
  align-items: start;
  justify-content: center;
  box-sizing: border-box;
  pointer-events: none;
}

.ah-parts-brand-logo-img {
  max-width: 100px;
  max-height: 50px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.ah-parts-brand-logo-initials {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ah-dark-mid);
  line-height: 1;
  text-align: center;
}

.ah-parts-img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 0.65rem;
  box-sizing: border-box;
}

.ah-parts-placeholder-img {
  width: 100%;
  height: 100%;
  max-width: 70%;
  max-height: 70%;
  object-fit: contain;
  object-position: center;
}

.ah-parts-cart-thumb-wrap {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  position: relative;
  border-radius: 0.35rem;
  overflow: hidden;
  background: #eef0f3;
}

.ah-parts-img-placeholder-sm {
  padding: 0.25rem;
}

.ah-parts-card-img {
  width: 100%;
  height: 200px;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
  padding: 0.65rem;
  box-sizing: border-box;
}

@media (max-width: 575.98px) {
  .ah-parts-card-img-wrap,
  .ah-parts-card-img {
    height: 160px;
    min-height: 160px;
    max-height: 160px;
  }
}

.ah-parts-cart-thumb {
  width: 52px;
  height: 52px;
  object-fit: contain;
  background: #eef0f3;
  padding: 0.2rem;
  box-sizing: border-box;
}

/* Google Ads landing page */
body.ah-landing-page {
  padding-bottom: calc(4.5rem + env(safe-area-inset-bottom, 0));
}

@media (min-width: 992px) {
  body.ah-landing-page {
    padding-bottom: 0;
  }
}

.ah-landing-trust {
  background: #fff;
  border-bottom: 1px solid rgba(12, 14, 18, 0.08);
  padding: 0.85rem 0;
  margin-bottom: 1rem;
}

.ah-landing-trust-list {
  display: grid;
  gap: 0.65rem 1.25rem;
  grid-template-columns: 1fr;
  font-size: 0.875rem;
}

@media (min-width: 768px) {
  .ah-landing-trust-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1200px) {
  .ah-landing-trust-list {
    grid-template-columns: repeat(4, 1fr);
  }
}

.ah-landing-trust-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.ah-landing-trust-link {
  color: var(--ah-dark);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ah-landing-trust-link:hover {
  color: #000;
}

/* Brand logo marquee */
.ah-brand-marquee {
  background: linear-gradient(180deg, #fff 0%, #f4f5f7 100%);
  border-bottom: 1px solid rgba(12, 14, 18, 0.08);
  padding: 1.25rem 0 0;
  margin-bottom: 1rem;
}

.ah-brand-marquee__heading {
  letter-spacing: 0.14em;
  margin-bottom: 0.85rem !important;
}

.ah-brand-marquee__viewport--logos {
  margin-bottom: 0.75rem;
}

.ah-brand-marquee__viewport {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 6%,
    #000 94%,
    transparent 100%
  );
  mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 6%,
    #000 94%,
    transparent 100%
  );
}

.ah-brand-marquee__track {
  display: flex;
  align-items: center;
  width: max-content;
  padding: 0.25rem 0;
}

.ah-brand-marquee__track--logos {
  animation: ah-brand-marquee-scroll 55s linear infinite;
}

.ah-brand-marquee__group {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex: 0 0 auto;
}

.ah-brand-marquee__track--logos:hover {
  animation-play-state: paused;
}

/* Scrolling brand names (full catalog) */
.ah-brand-text-marquee {
  background: var(--ah-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0.75rem 0 1rem;
}

.ah-brand-text-marquee__viewport {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 4%,
    #000 96%,
    transparent 100%
  );
  mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 4%,
    #000 96%,
    transparent 100%
  );
}

.ah-brand-text-marquee__track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: ah-brand-text-marquee-scroll 70s linear infinite;
}

.ah-brand-text-marquee__track:hover {
  animation-play-state: paused;
}

.ah-brand-text-marquee__group {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  white-space: nowrap;
}

.ah-brand-text-marquee__link {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: color 0.15s ease;
}

a.ah-brand-text-marquee__link:hover {
  color: var(--ah-accent);
}

.ah-brand-text-marquee__sep {
  color: rgba(201, 162, 39, 0.55);
  font-size: 1.1rem;
  line-height: 1;
  padding: 0 0.85rem;
  user-select: none;
}

@keyframes ah-brand-text-marquee-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.ah-brand-marquee__item {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 7.5rem;
  height: 4rem;
  padding: 0.5rem 0.85rem;
  background: #fff;
  border: 1px solid rgba(12, 14, 18, 0.08);
  border-radius: 0.65rem;
  box-shadow: 0 0.2rem 0.65rem rgba(12, 14, 18, 0.06);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.ah-brand-marquee__item:hover {
  transform: translateY(-2px);
  border-color: rgba(201, 162, 39, 0.45);
  box-shadow: 0 0.45rem 1rem rgba(12, 14, 18, 0.1);
}

.ah-brand-marquee__item img {
  display: block;
  max-width: 100%;
  max-height: 2.75rem;
  width: auto;
  height: auto;
  object-fit: contain;
}

@keyframes ah-brand-marquee-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ah-brand-marquee__track--logos,
  .ah-brand-text-marquee__track {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    max-width: 72rem;
    margin: 0 auto;
    padding: 0 1rem;
  }

  .ah-brand-marquee__group[aria-hidden="true"],
  .ah-brand-text-marquee__group[aria-hidden="true"] {
    display: none;
  }

  .ah-brand-marquee__group {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
  }

  .ah-brand-text-marquee__group {
    flex-wrap: wrap;
    justify-content: center;
    white-space: normal;
    gap: 0.35rem 0.5rem;
  }

  .ah-brand-text-marquee__sep {
    padding: 0 0.25rem;
  }

  .ah-brand-marquee__viewport,
  .ah-brand-text-marquee__viewport {
    -webkit-mask-image: none;
    mask-image: none;
  }
}

/* Brands directory (brands.php) */
.ah-brands-alpha__letters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  justify-content: center;
}

.ah-brands-alpha__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  height: 2rem;
  padding: 0 0.5rem;
  border-radius: 0.4rem;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ah-dark);
  text-decoration: none;
  background: #f0f2f5;
  transition: background 0.15s ease, color 0.15s ease;
}

.ah-brands-alpha__link:hover {
  background: var(--ah-accent);
  color: #1a1d24;
}

.ah-brands-section__letter {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  color: var(--ah-dark);
  letter-spacing: 0.02em;
}

.ah-brands-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ah-brands-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 0.5rem 1.25rem rgba(12, 14, 18, 0.12) !important;
}

.ah-brands-card__logo {
  width: 100%;
  height: 4.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f4f5f7;
  border-radius: 0.5rem;
  padding: 0.5rem;
}

.ah-brands-card__img {
  max-width: 100%;
  max-height: 3.5rem;
  width: auto;
  height: auto;
  object-fit: contain;
}

.ah-brands-card__initials {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--ah-dark);
  color: var(--ah-accent);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}

.ah-brands-card__name {
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ah-landing-sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1040;
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 0;
  background: var(--ah-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: env(safe-area-inset-bottom, 0);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
}

.ah-landing-sticky-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  padding: 0.55rem 0.35rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  border: 0;
  background: transparent;
}

.ah-landing-sticky-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.ah-landing-sticky-btn-primary {
  background: var(--ah-accent);
  color: var(--ah-dark) !important;
}

.ah-landing-sticky-btn-primary:hover {
  background: var(--ah-accent-hover);
  color: var(--ah-dark) !important;
}

.ah-landing-sticky-btn i {
  font-size: 1.1rem;
}

/* Contact page — full-bleed background */
body.ah-contact-page {
  background: var(--ah-dark);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.ah-contact-hero {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 64px);
  padding: 2rem 1rem;
  background-color: var(--ah-dark);
  background-image: url("../img/vans/contact-girls.png");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.ah-contact-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(12, 14, 18, 0.35) 0%,
    rgba(12, 14, 18, 0.2) 45%,
    rgba(12, 14, 18, 0.55) 100%
  );
  pointer-events: none;
}

.ah-contact-hero > .container {
  z-index: 1;
}

.ah-contact-panel {
  padding: 1.75rem;
  border-radius: 1rem;
  background: rgba(12, 14, 18, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
}

.ah-contact-form .form-control:focus {
  border-color: var(--ah-accent);
  box-shadow: 0 0 0 0.2rem rgba(201, 162, 39, 0.2);
}

/* Vehicle picker (VIN + choose vehicle) */
.ah-vehicle-tools .ah-vehicle-card {
  background: #fff;
  border: 1px solid rgba(12, 14, 18, 0.06);
}

.ah-vehicle-tools .ah-vehicle-card .h6 {
  font-weight: 700;
}

.ah-btn-garage {
  background: var(--ah-accent);
  border: 1px solid #9a7d1c;
  color: var(--ah-dark);
  font-weight: 600;
  cursor: pointer;
}

.ah-btn-garage:hover:not(:disabled),
.ah-btn-garage:focus:not(:disabled) {
  background: var(--ah-accent-hover);
  border-color: #a8861f;
  color: var(--ah-dark);
}

.ah-btn-garage:active:not(:disabled) {
  background: #a8861f;
  border-color: #8f7219;
  color: var(--ah-dark);
}

.ah-btn-garage:disabled {
  background: #e8e4d8;
  border-color: #d0cbc0;
  color: #8b929e;
  opacity: 0.85;
  cursor: not-allowed;
}

#ah-vin-message:not([hidden]) {
  display: block;
}

body.ah-contact-page .ah-footer {
  position: relative;
  z-index: 1;
  margin-top: 0;
  background: rgba(12, 14, 18, 0.92);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

@media (max-width: 991.98px) {
  .ah-contact-hero {
    background-attachment: scroll;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1rem;
  }
}

/* Back to top */
.ah-back-to-top {
  position: fixed;
  right: 1.15rem;
  bottom: 1.25rem;
  z-index: 1045;
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--ah-dark);
  color: var(--ah-accent);
  font-size: 1.15rem;
  box-shadow: 0 0.35rem 1rem rgba(12, 14, 18, 0.28);
  cursor: pointer;
  opacity: 0;
  transform: translateY(0.5rem);
  transition: opacity 0.2s ease, transform 0.2s ease, background 0.15s ease, color 0.15s ease;
}

.ah-back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.ah-back-to-top:hover {
  background: var(--ah-accent);
  color: var(--ah-dark);
}

.ah-back-to-top:focus-visible {
  outline: 2px solid var(--ah-accent);
  outline-offset: 2px;
}

body.ah-landing-page .ah-back-to-top {
  bottom: 1.25rem;
}

@media (max-width: 991.98px) {
  body.ah-landing-page .ah-back-to-top {
    bottom: 4.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ah-back-to-top {
    transition: none;
  }
}

/* ——— Arabic / RTL (public storefront) ——— */
body.ah-lang-ar {
  font-family: "Cairo", system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.65;
}

body.ah-lang-ar h1,
body.ah-lang-ar h2,
body.ah-lang-ar h3,
body.ah-lang-ar h4,
body.ah-lang-ar h5,
body.ah-lang-ar h6,
body.ah-lang-ar .navbar-brand,
body.ah-lang-ar .ah-promo-card__title,
body.ah-lang-ar .ah-parts-hero h1,
body.ah-lang-ar .btn.fw-semibold,
body.ah-lang-ar .btn.fw-bold {
  font-family: "El Messiri", "Cairo", sans-serif;
  letter-spacing: 0;
  font-weight: 600;
}

.ah-lang-switcher .btn {
  min-width: 2.5rem;
}

body.ah-lang-ar .ah-catalog-sidebar .form-label,
body.ah-lang-ar .ah-vehicle-picker .form-label {
  text-align: start;
}

body.ah-lang-ar .bi.me-1,
body.ah-lang-ar .bi.me-2,
body.ah-lang-ar .bi.ms-1,
body.ah-lang-ar .bi.ms-2 {
  margin-inline-end: 0.25rem !important;
  margin-inline-start: 0 !important;
}

body.ah-lang-ar .pagination .page-link .bi-chevron-left::before {
  content: "\f285";
}

body.ah-lang-ar .pagination .page-link .bi-chevron-right::before {
  content: "\f284";
}

/* Phone numbers stay left-to-right inside Arabic/RTL layout */
body.ah-lang-ar a[href^="tel:"],
body.ah-lang-ar input[type="tel"],
body.ah-lang-ar [dir="ltr"] {
  direction: ltr;
  unicode-bidi: isolate;
}

/* Phone input — country code + national number */
.ah-phone-input {
  direction: ltr;
}

.ah-phone-input .ah-phone-code-select {
  flex: 0 0 auto;
  max-width: 9.5rem;
  font-size: 0.85rem;
}

body.ah-lang-ar .ah-phone-input .ah-phone-code-select,
body.ah-lang-ar .ah-phone-input .form-control {
  text-align: left;
}

/* Account profile — location map picker */
.ah-profile-map {
  height: 280px;
  width: 100%;
  border-radius: 0.5rem;
  border: 1px solid var(--bs-border-color);
  background: var(--bs-secondary-bg);
  position: relative;
  z-index: 1;
}

.ah-profile-map .leaflet-container {
  height: 100%;
  width: 100%;
  font: inherit;
  border-radius: inherit;
  z-index: 1;
}

/* Auth flash below fixed navbar */
.ah-auth-flash {
  position: fixed;
  top: 56px;
  left: 0;
  right: 0;
  z-index: 1035;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: opacity 0.2s ease;
}

.ah-auth-flash.is-hiding {
  opacity: 0;
}

/* Reseller warehouse */
.ah-warehouse-stat {
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 0.75rem;
  padding: 0.85rem 1rem;
}
.ah-warehouse-table th {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
}
