:root {
  --ah-market-gold: var(--ah-accent, #ECB938);
  --ah-market-deep-gold: var(--ah-accent-strong, #A87815);
  --ah-market-soft-gold: var(--ah-accent-soft-2, #FFE793);
  --ah-market-pale-gold: var(--ah-accent-soft, #FFF4C8);
  --ah-market-graphite: var(--ah-graphite-500, #5A6371);
  --ah-market-deep-graphite: var(--ah-graphite-700, #2D343F);
  --ah-market-charcoal: var(--ah-fg, #11161D);
  --ah-market-text: var(--ah-fg, #11161D);
  --ah-market-muted: var(--ah-fg-muted, #5A6371);
  --ah-market-border: var(--ah-border, rgba(40, 32, 16, 0.10));
  --ah-market-surface: var(--ah-bg-raised, #FFFFFF);
  --ah-market-page: var(--ah-bg-page, #FBF6EC);
  --ah-market-soft-surface: var(--ah-bg-soft, #F1E9D6);
  --ah-market-on-accent: var(--ah-graphite-900, #11161D);
  --ah-market-shadow-sm: var(--ah-shadow-sm, 0 8px 18px rgba(17, 22, 29, 0.08));
  --ah-market-shadow-md: var(--ah-shadow-md, 0 14px 34px rgba(17, 22, 29, 0.12));
  --ah-market-shadow-lg: var(--ah-shadow-lg, 0 24px 60px rgba(17, 22, 29, 0.16));
}

body.night-mode {
  --ah-market-charcoal: var(--ah-fg);
  --ah-market-text: var(--ah-fg);
  --ah-market-muted: var(--ah-fg-muted);
  --ah-market-border: var(--ah-border);
  --ah-market-surface: var(--ah-bg-raised);
  --ah-market-page: var(--ah-bg-page);
  --ah-market-soft-surface: var(--ah-bg-soft);
  --ah-market-pale-gold: var(--ah-bg-spotlight);
  --ah-market-soft-gold: color-mix(in srgb, var(--ah-accent) 46%, var(--ah-bg-soft));
  --ah-market-shadow-sm: var(--ah-shadow-sm);
  --ah-market-shadow-md: var(--ah-shadow-md);
  --ah-market-shadow-lg: var(--ah-shadow-lg);
}

.ah-market-immersive-body {
  background: #eef1f4;
  padding: 0 !important;
  overflow-x: hidden;
}

.ah-market-immersive-body .main-wrapper {
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

.ah-market-immersive-body .ah-market-header > .container,
.ah-market-immersive-body .ah-market-header > .container-fluid,
.ah-market-immersive-body .ah-market-shell {
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  padding-inline: clamp(16px, 2.4vw, 36px);
}

.ah-market-header {
  position: relative;
  overflow: hidden;
  padding-block: 26px 36px;
  background:
    radial-gradient(circle at 12% 18%, rgba(247, 199, 53, .28), transparent 28%),
    linear-gradient(135deg, var(--ah-market-pale-gold), #fff 58%);
}

.ah-market-header__pattern {
  position: absolute;
  inset: 0;
  opacity: .32;
  pointer-events: none;
  background-image: radial-gradient(rgba(95, 96, 98, .22) 1px, transparent 1px);
  background-size: 18px 18px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 20%, #000 70%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 20%, #000 70%, transparent);
}

.ah-market-header__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.ah-market-header__copy h1,
.ah-market-header__copy h2 {
  margin: 0 0 8px;
  color: var(--ah-market-charcoal);
  font-family: var(--ah-font-heading, var(--body-font-family));
  font-size: clamp(2rem, 3.8vw, 3.15rem);
  line-height: .98;
  font-weight: 700;
}

.ah-market-header__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  padding: 5px 11px;
  border: 1px solid rgba(216, 169, 22, .28);
  border-radius: 999px;
  color: var(--ah-market-deep-graphite);
  background: rgba(255, 255, 255, .72);
  font-weight: 600;
}

.ah-market-header__trust,
.ah-market-shortcuts,
.ah-market-search__scopes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ah-market-header__trust span,
.ah-market-search__scope,
.ah-market-shortcuts__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 7px 11px;
  border: 1px solid rgba(95, 96, 98, .12);
  border-radius: 999px;
  color: var(--ah-market-deep-graphite);
  background: rgba(255, 255, 255, .78);
  font-weight: 600;
  text-decoration: none;
}

.ah-market-header__visual {
  position: relative;
  display: none;
  min-height: 126px;
  margin-block-start: 18px;
}

.ah-market-header__visual::before {
  content: "";
  position: absolute;
  inset-block-start: 18px;
  inset-inline-start: 8px;
  width: min(300px, 86%);
  height: 92px;
  border: 1px solid rgba(216, 169, 22, .22);
  border-radius: 28px;
  background:
    linear-gradient(90deg, rgba(247, 199, 53, .22), transparent 64%),
    rgba(255, 255, 255, .52);
  box-shadow: 0 22px 46px rgba(63, 64, 66, .12);
}

.ah-market-header__visual-card {
  position: absolute;
  width: 62px;
  height: 62px;
  border-radius: 18px;
  box-shadow: 0 16px 28px rgba(63, 64, 66, .14);
}

.ah-market-header__visual-card--gold {
  inset-block-start: 0;
  inset-inline-start: 36px;
  background: linear-gradient(145deg, var(--ah-market-gold), var(--ah-market-deep-gold));
}

.ah-market-header__visual-card--graphite {
  inset-block-start: 38px;
  inset-inline-start: 118px;
  background: linear-gradient(145deg, var(--ah-market-deep-graphite), var(--ah-market-graphite));
}

.ah-market-header__visual-card--soft {
  inset-block-start: 60px;
  inset-inline-start: 206px;
  background: linear-gradient(145deg, #fff, var(--ah-market-soft-gold));
}

.ah-market-header__panel {
  padding: 12px;
  border: 1px solid rgba(216, 169, 22, .2);
  border-radius: 18px;
  background: rgba(255, 255, 255, .86);
  box-shadow: 0 18px 45px rgba(63, 64, 66, .10);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.ah-market-search__group {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}

.ah-market-search__input-wrap {
  position: relative;
}

.ah-market-search__icon {
  position: absolute;
  inset-block-start: 50%;
  inset-inline-start: 16px;
  transform: translateY(-50%);
  color: var(--ah-market-muted);
  pointer-events: none;
}

.ah-market-search__input,
.ah-market-search__location,
.ah-market-search__submit {
  min-height: 48px;
  border-radius: 16px;
}

.ah-market-search__input {
  padding-inline-start: 44px;
}

.ah-market-search__submit {
  border-color: var(--ah-market-gold);
  color: var(--ah-market-charcoal);
  background: var(--ah-market-gold);
  font-weight: 700;
}

.ah-market-search__scopes {
  margin-top: 12px;
}

.ah-market-search__scope.active,
.ah-market-shortcuts__item.active {
  color: var(--ah-market-charcoal);
  border-color: var(--ah-market-deep-gold);
  background: var(--ah-market-soft-gold);
}

.ah-market-search__scope.disabled,
.ah-market-shortcuts__item.disabled {
  opacity: .58;
  cursor: not-allowed;
}

.ah-market-catalog {
  display: block;
  padding-block: 18px 42px;
  max-width: 100%;
  overflow-x: clip;
}

.ah-market-pagebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-block-start: 18px;
  margin-block-end: 18px;
  padding: 10px 12px;
  border: 1px solid rgba(95, 96, 98, .1);
  border-radius: 8px;
  background: var(--ah-market-surface);
  box-shadow: 0 12px 30px rgba(63, 64, 66, .08);
}

.ah-market-pagebar__brand,
.ah-market-pagebar__actions,
.ah-market-icon-btn,
.ah-market-avatar-btn,
.ah-market-catalog-hero__tab,
.ah-market-mobile-filter-btn {
  display: inline-flex;
  align-items: center;
}

.ah-market-pagebar__brand {
  gap: 10px;
  color: var(--ah-market-charcoal);
  text-decoration: none;
}

.ah-market-pagebar__logo,
.ah-market-icon-btn,
.ah-market-avatar-btn {
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--ah-market-border);
  border-radius: 8px;
  color: var(--ah-market-charcoal);
  background: #fff;
}

.ah-market-icon-btn.active,
.ah-market-avatar-btn.active,
.ah-market-icon-btn--accent {
  border-color: rgba(216, 169, 22, .42);
  color: var(--ah-market-charcoal);
  background: var(--ah-market-soft-gold);
}

.ah-market-icon-btn--social {
  margin-inline-start: 4px;
}

.ah-market-icon-btn,
.ah-market-avatar-btn {
  padding: 0;
  cursor: pointer;
}

.ah-market-avatar-btn img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.ah-market-pagebar__actions {
  gap: 8px;
}

.ah-market-catalog-hero {
  overflow: hidden;
  margin-block-end: 0;
  padding: clamp(22px, 4vw, 44px);
  border-radius: 8px 8px 0 0;
  background:
    linear-gradient(135deg, rgba(247, 199, 53, .24), rgba(255, 255, 255, .94) 48%),
    linear-gradient(90deg, #fff, #f5f7f9);
}

.ah-market-catalog-hero__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-block-end: 18px;
}

.ah-market-catalog-hero__tab {
  gap: 8px;
  min-height: 42px;
  padding: 9px 14px;
  border: 1px solid rgba(95, 96, 98, .14);
  border-radius: 8px;
  color: var(--ah-market-deep-graphite);
  background: rgba(255, 255, 255, .78);
  font-weight: 700;
  text-decoration: none;
}

.ah-market-catalog-hero__tab.active {
  border-color: var(--ah-market-deep-gold);
  color: var(--ah-market-charcoal);
  background: var(--ah-market-soft-gold);
}

.ah-market-catalog-hero__tab--current,
.ah-market-category-sidebar__link--current {
  pointer-events: none;
  cursor: default;
}

.ah-market-catalog-hero__copy {
  max-width: 760px;
}

.ah-market-catalog-hero__copy h1 {
  margin: 0 0 8px;
  color: var(--ah-market-charcoal);
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.04;
}

.ah-market-catalog-hero__copy p {
  max-width: 620px;
  margin: 0;
  color: var(--ah-market-muted);
  font-size: 1.05rem;
}

.ah-market-search-sticky {
  position: sticky;
  top: 0;
  z-index: 20;
  margin-block-end: 18px;
  padding: 10px;
  border: 1px solid rgba(95, 96, 98, .1);
  border-radius: 0 0 8px 8px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 14px 28px rgba(63, 64, 66, .1);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.ah-market-catalog-search {
  display: grid;
  grid-template-columns: minmax(160px, 260px) minmax(220px, 1fr);
  gap: 10px;
  align-items: center;
}

.ah-market-catalog-search--service {
  grid-template-columns: 46px minmax(220px, 1fr);
}

.ah-market-catalog-search--service .ah-market-catalog-search__field {
  grid-column: 2;
}

.ah-market-catalog-search__field {
  position: relative;
  grid-column: 2;
}

.ah-market-catalog-search__location {
  grid-column: 1;
}

.ah-market-catalog-search__field i {
  position: absolute;
  inset-block-start: 50%;
  inset-inline-start: 14px;
  transform: translateY(-50%);
  color: var(--ah-market-muted);
}

.ah-market-catalog-search__field input,
.ah-market-catalog-search__location,
.ah-market-catalog-search .btn {
  width: 100%;
  min-height: 46px;
  border-radius: 8px;
}

.ah-market-catalog-search__field input {
  padding-inline-start: 42px;
  border: 1px solid var(--ah-market-border);
}

.ah-market-catalog-layout {
  display: grid;
  grid-template-columns: minmax(250px, 300px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.ah-market-category-sidebar--desktop {
  position: sticky;
  top: 78px;
  grid-column: 1;
  grid-row: 1;
  max-height: calc(100vh - 96px);
  overflow-y: auto;
}

.ah-market-catalog-results {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
}

[dir="RTL"] .ah-market-category-sidebar--desktop,
[dir="rtl"] .ah-market-category-sidebar--desktop {
  grid-column: 1;
}

[dir="RTL"] .ah-market-catalog-results,
[dir="rtl"] .ah-market-catalog-results {
  grid-column: 2;
}

.ah-market-category-sidebar__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 14px;
  border: 1px solid var(--ah-market-border);
  border-radius: 8px 8px 0 0;
  background: #fff;
}

.ah-market-category-sidebar__head span {
  color: var(--ah-market-muted);
  font-size: .86rem;
}

.ah-market-category-sidebar__list {
  display: grid;
  gap: 6px;
  padding: 10px;
  border: 1px solid var(--ah-market-border);
  border-top: 0;
  border-radius: 0 0 8px 8px;
  background: #fff;
}

.ah-market-category-sidebar__children {
  display: grid;
  gap: 6px;
  padding-inline-start: 12px;
}

.ah-market-category-sidebar__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 40px;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--ah-market-deep-graphite);
  text-decoration: none;
}

.ah-market-category-sidebar__link:hover,
.ah-market-category-sidebar__link.active {
  color: var(--ah-market-charcoal);
  background: var(--ah-market-pale-gold);
}

.ah-market-category-sidebar__link strong {
  min-width: 28px;
  padding: 2px 7px;
  border-radius: 999px;
  color: var(--ah-market-deep-graphite);
  background: #f2f4f7;
  text-align: center;
  font-size: .78rem;
}

.ah-market-category-sidebar__empty {
  padding: 14px;
  color: var(--ah-market-muted);
}

.ah-market-category-sidebar--mobile,
.ah-market-drawer-toggle,
.ah-market-mobile-filter-btn,
.ah-market-mobile-filter-btn__close {
  display: none;
}

.ah-market-catalog-title,
.ah-market-top-selling,
.ah-market-all-items {
  margin-block-end: 18px;
  padding: 18px;
  border: 1px solid rgba(95, 96, 98, .1);
  border-radius: 8px;
  background: #fff;
}

.ah-market-catalog-title span {
  display: block;
  color: var(--ah-market-muted);
  font-weight: 700;
  margin-block-end: 4px;
}

.ah-market-catalog-title h2,
.ah-market-section__header h2 {
  margin: 0;
  color: var(--ah-market-charcoal);
  font-size: 1.35rem;
}

.ah-market-top-selling__rail {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-block: 6px 10px;
  scroll-snap-type: x proximity;
}

.ah-market-top-selling__rail .ah-market-card-col {
  flex: 0 0 290px;
  max-width: 290px;
  padding-inline: 0;
  scroll-snap-align: start;
}

.ah-market-card {
  overflow: hidden;
  border: 1px solid rgba(95, 96, 98, .12);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(63, 64, 66, .08);
}

.ah-product-grid__row,
.ah-service-grid__row {
  row-gap: 18px;
}

.ah-product-grid__row .ah-market-card-col,
.ah-service-grid__row .ah-market-card-col {
  display: flex;
  width: 100%;
  margin-block-end: 0;
}

.ah-market-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #f3f5f7;
  overflow: hidden;
}

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

.ah-market-card__price {
  position: absolute;
  inset-block-start: 10px;
  inset-inline-start: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: calc(100% - 20px);
  min-height: 30px;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--ah-market-charcoal);
  background: rgba(247, 199, 53, .96);
  box-shadow: 0 8px 18px rgba(34, 36, 38, .16);
  font-size: .84rem;
  font-weight: 800;
  line-height: 1.1;
}

.ah-service-card .ah-market-card__price {
  color: #163a5f;
  background: rgba(219, 234, 254, .96);
}

.ah-market-card__price-prefix {
  font-size: .72rem;
  font-weight: 700;
  opacity: .82;
}

.ah-market-card__overlay {
  position: absolute;
  inset-block-end: 10px;
  inset-inline-end: 10px;
  z-index: 2;
}

.ah-market-card__more {
  border-color: rgba(255, 255, 255, .82);
  color: var(--ah-market-charcoal);
  background: rgba(255, 255, 255, .9);
}

.ah-market-card__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-height: 260px;
  padding: 14px;
}

.ah-market-card__head,
.ah-market-card__meta {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.ah-market-card__head {
  justify-content: space-between;
}

.ah-market-card__meta {
  align-items: center;
  min-height: 28px;
  color: var(--ah-market-muted);
}

.ah-market-card__meta .main-icon {
  flex: 0 0 auto;
  width: 18px !important;
  height: 18px !important;
}

.ah-market-card__seller {
  min-width: 0;
  color: var(--ah-market-deep-graphite);
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ah-market-card__title {
  display: -webkit-box;
  flex: 1;
  min-height: 44px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: var(--ah-market-charcoal);
  font-weight: 800;
  line-height: 1.25;
}

.ah-market-card__type-badge,
.ah-market-card__status {
  flex: 0 0 auto;
  white-space: nowrap;
}

.ah-market-card__actions {
  margin-block-start: auto;
}

.ah-market-card__primary-action {
  min-height: 42px;
  border-radius: 8px;
  font-weight: 800;
}

.ah-service-card {
  border-color: rgba(37, 99, 235, .2);
}

.ah-service-card .ah-market-card__type-badge {
  background: #2563eb !important;
}

@media (min-width: 640px) {
  .ah-product-grid__row .ah-market-card-col,
  .ah-service-grid__row .ah-market-card-col {
    width: 50%;
  }
}

@media (min-width: 1280px) {
  .ah-product-grid__row .ah-market-card-col,
  .ah-service-grid__row .ah-market-card-col {
    width: 33.333333%;
  }
}

.night-mode .ah-market-pagebar,
.night-mode .ah-market-search-sticky,
.night-mode .ah-market-category-sidebar__head,
.night-mode .ah-market-category-sidebar__list,
.night-mode .ah-market-catalog-title,
.night-mode .ah-market-top-selling,
.night-mode .ah-market-all-items,
.night-mode .ah-market-card {
  border-color: rgba(255, 255, 255, .12);
  background: #242526;
}

.night-mode .ah-market-pagebar__brand,
.night-mode .ah-market-icon-btn,
.night-mode .ah-market-catalog-hero__copy h1,
.night-mode .ah-market-section__header h2,
.night-mode .ah-market-catalog-title h2,
.night-mode .ah-market-category-sidebar__link,
.night-mode .ah-market-card {
  color: #f5f5f5;
}

.night-mode .ah-market-icon-btn,
.night-mode .ah-market-avatar-btn {
  border-color: rgba(255, 255, 255, .12);
  background: #1d1f21;
}

.night-mode .ah-market-catalog-hero {
  background:
    linear-gradient(135deg, rgba(247, 199, 53, .18), rgba(36, 37, 38, .96) 52%),
    #242526;
}

@media (max-width: 991.98px) {
  .ah-market-catalog-layout {
    display: block;
  }

  .ah-market-category-sidebar--desktop {
    display: none;
  }

  .ah-market-category-sidebar--mobile {
    display: block;
  }

  .ah-market-mobile-filter-btn {
    display: inline-flex;
    justify-content: center;
    width: 46px;
    height: 46px;
    border: 1px solid var(--ah-market-border);
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
  }

  .ah-market-catalog-search {
    grid-template-columns: 46px minmax(0, 1fr);
  }

  .ah-market-catalog-search--service .ah-market-catalog-search__field {
    grid-column: 2;
  }

  .ah-market-catalog-search__location,
  .ah-market-catalog-search .btn {
    grid-column: 1 / -1;
  }

  .ah-market-category-sidebar__backdrop {
    position: fixed;
    inset: 0;
    z-index: 97;
    display: none;
    background: rgba(0, 0, 0, .45);
  }

  .ah-market-category-sidebar__drawer {
    position: fixed;
    inset-block: 0;
    inset-inline-start: 0;
    z-index: 98;
    width: min(86vw, 360px);
    max-height: 100vh;
    overflow-y: auto;
    transform: translateX(-104%);
    transition: transform .2s ease;
    background: #fff;
    box-shadow: 18px 0 42px rgba(0, 0, 0, .22);
  }

  [dir="RTL"] .ah-market-category-sidebar__drawer {
    inset-inline-start: auto;
    inset-inline-end: 0;
    transform: translateX(104%);
  }

  .ah-market-drawer-toggle:checked ~ .ah-market-catalog-layout .ah-market-category-sidebar__backdrop {
    display: block;
  }

  .ah-market-drawer-toggle:checked ~ .ah-market-catalog-layout .ah-market-category-sidebar__drawer {
    transform: translateX(0);
  }

  .ah-market-drawer-toggle:checked ~ .ah-market-search-sticky .ah-market-mobile-filter-btn__open {
    display: none;
  }

  .ah-market-drawer-toggle:checked ~ .ah-market-search-sticky .ah-market-mobile-filter-btn__close {
    display: inline-block;
  }
}

@media (max-width: 575.98px) {
  .ah-market-pagebar {
    align-items: center;
    flex-wrap: wrap;
  }

  .ah-market-pagebar__actions {
    width: auto;
    margin-inline-start: auto;
    justify-content: flex-end;
    flex-wrap: wrap;
  }

  .ah-market-catalog-hero {
    padding: 20px 16px;
  }

  .ah-market-catalog-hero__tab {
    flex: 1 1 calc(50% - 5px);
    min-width: 0;
    padding-inline: 10px;
  }

  .ah-market-catalog-hero__tab:last-child {
    flex-basis: 100%;
  }

  .ah-market-catalog-hero__copy h1 {
    overflow-wrap: anywhere;
    font-size: 1.75rem;
  }

  .ah-market-catalog-hero__copy p {
    font-size: .98rem;
  }

  .ah-market-all-items,
  .ah-market-top-selling,
  .ah-market-catalog-title {
    padding: 14px;
  }

  .ah-market-card__body {
    min-height: 236px;
  }

  .ah-market-card__price {
    font-size: .78rem;
  }
}

.ah-market-shortcuts {
  margin-top: 14px;
}

.ah-market-shortcuts__item {
  gap: 8px;
}

.ah-market-shell {
  margin-top: -18px;
  min-width: 0;
}

.ah-market-shell__layout {
  align-items: flex-start;
  min-width: 0;
}

.ah-market-shell__filters .card {
  position: sticky;
  top: 86px;
}

.ah-market-filter-slot__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  color: var(--ah-market-deep-graphite);
  font-weight: 700;
}

.ah-market-shell__recommendations {
  min-height: 1px;
}

.ah-market-main-slot {
  min-width: 0;
  overflow: hidden;
}

.ah-market-card {
  position: relative;
  height: 100%;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid rgba(95, 96, 98, .12);
  border-radius: 20px;
  background: var(--ah-market-surface);
  box-shadow: 0 12px 28px rgba(63, 64, 66, .08);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.ah-market-card:hover {
  transform: translateY(-3px);
  border-color: rgba(216, 169, 22, .34);
  box-shadow: 0 18px 38px rgba(63, 64, 66, .14);
}

.ah-market-card:focus-visible {
  outline: 3px solid rgba(247, 199, 53, .42);
  outline-offset: 3px;
}

.ah-market-card a,
.ah-market-card button,
.ah-market-card label {
  cursor: pointer;
}

.ah-market-card input,
.ah-market-card select,
.ah-market-card textarea {
  cursor: auto;
}

.ah-service-card {
  border-color: rgba(63, 96, 104, .22);
}

.ah-service-card .ah-market-card__media {
  background:
    radial-gradient(circle at 18% 18%, rgba(247, 199, 53, .18), transparent 30%),
    linear-gradient(135deg, #F7FAFB, #FFFFFF);
}

.ah-market-card__media {
  position: relative;
}

.ah-market-card__price {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: calc(100% - 24px);
  color: var(--ah-market-charcoal);
  background: var(--ah-market-gold);
}

.ah-market-card__price-prefix {
  font-size: 11px;
  font-weight: 600;
}

.ah-market-card__overlay {
  gap: 8px;
}

.ah-market-card__save {
  min-width: 34px;
}

.ah-market-card__body {
  display: flex;
  flex-direction: column;
  min-height: 218px;
}

.ah-market-card__head,
.ah-market-card__meta {
  gap: 8px;
}

.ah-market-card__title {
  min-width: 0;
}

.ah-market-card__type-badge,
.ah-market-card__status {
  white-space: nowrap;
}

.ah-market-card__actions {
  margin-top: auto;
}

.ah-market-card__primary-action {
  min-height: 42px;
  border-radius: 14px;
  font-weight: 700;
}

.ah-product-card .ah-market-card__primary-action.btn-primary,
.ah-service-card .ah-market-card__primary-action.btn-primary {
  border-color: var(--ah-market-gold);
  color: var(--ah-market-charcoal);
  background: var(--ah-market-gold);
}

.ah-service-card .ah-market-card__type-badge,
.ah-service-card .ah-market-card__status {
  border: 1px solid rgba(63, 96, 104, .16);
  color: #3F6068 !important;
  background: #EEF6F7 !important;
}

.ah-product-card.is-unavailable {
  opacity: .82;
}

.ah-market-card a:focus,
.ah-market-card button:focus {
  outline: 3px solid rgba(247, 199, 53, .42);
  outline-offset: 2px;
}

.ah-market-empty {
  display: grid;
  gap: 16px;
  justify-items: center;
  padding: 28px 18px;
  border: 1px solid rgba(216, 169, 22, .18);
  border-radius: 22px;
  color: var(--ah-market-deep-graphite);
  background:
    radial-gradient(circle at 50% 0, rgba(247, 199, 53, .14), transparent 32%),
    var(--ah-market-surface);
  text-align: center;
}

.ah-market-empty--compact {
  grid-template-columns: auto minmax(0, 1fr);
  justify-items: start;
  padding: 16px;
  text-align: start;
}

.ah-market-empty__visual,
.ah-market-protection__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  color: var(--ah-market-charcoal);
  background: var(--ah-market-soft-gold);
}

.ah-market-empty__title,
.ah-market-protection__title {
  margin: 0 0 6px;
  color: var(--ah-market-charcoal);
  font-weight: 800;
}

.ah-market-empty__message,
.ah-market-protection__message {
  margin: 0;
  color: var(--ah-market-muted);
}

.ah-market-empty__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
}

.ah-market-empty__cta {
  min-height: 42px;
  border-radius: 14px;
  font-weight: 700;
}

.ah-market-protection {
  padding: 18px;
  border: 1px solid rgba(216, 169, 22, .2);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255, 244, 194, .72), rgba(255, 255, 255, .94));
}

.ah-market-protection--compact {
  padding: 14px;
}

.ah-market-protection__header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.ah-market-protection__list {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.ah-market-protection__list li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  color: var(--ah-market-deep-graphite);
}

.ah-market-protection__list i {
  margin-top: 3px;
  color: var(--ah-market-deep-gold);
}

.ah-deal-ribbon {
  position: absolute;
  inset-block-start: 12px;
  inset-inline-start: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: calc(100% - 24px);
  padding: 7px 10px;
  border: 1px solid rgba(216, 169, 22, .38);
  border-radius: 999px;
  color: var(--ah-market-charcoal);
  background: linear-gradient(135deg, var(--ah-market-gold), var(--ah-market-soft-gold));
  box-shadow: 0 10px 20px rgba(63, 64, 66, .14);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.1;
}

.ah-deal-ribbon--compact {
  padding: 6px 9px;
}

.ah-deal-ribbon--featured,
.ah-deal-ribbon--limited,
.ah-deal-ribbon--hot {
  background: linear-gradient(135deg, var(--ah-market-deep-gold), var(--ah-market-gold));
}

.ah-deal-ribbon__text,
.ah-deal-ribbon__note {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ah-deal-ribbon__note {
  opacity: .82;
  font-weight: 700;
}

.ah-market-skeleton {
  width: 100%;
}

.ah-market-skeleton__grid {
  row-gap: 16px;
}

.ah-market-skeleton__card,
.ah-market-skeleton__row,
.ah-market-skeleton__detail,
.ah-market-skeleton__panel {
  border: 1px solid rgba(95, 96, 98, .12);
  border-radius: 20px;
  background: var(--ah-market-surface);
}

.ah-market-skeleton__card,
.ah-market-skeleton__row,
.ah-market-skeleton__panel {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.ah-market-skeleton__detail {
  display: grid;
  gap: 16px;
  padding: 14px;
}

.ah-market-skeleton__list {
  display: grid;
  gap: 12px;
}

.ah-market-skeleton__row {
  grid-template-columns: 56px minmax(0, 1fr);
  align-items: center;
}

.ah-market-skeleton__row .ah-market-skeleton__line--sm {
  grid-column: 2;
}

.ah-market-skeleton__media,
.ah-market-skeleton__thumb,
.ah-market-skeleton__line,
.ah-market-skeleton__button {
  position: relative;
  overflow: hidden;
  display: block;
  background: linear-gradient(90deg, #ECEFF3, #F7F8FA, #ECEFF3);
  background-size: 220% 100%;
  animation: ah-market-skeleton-shimmer 1.35s ease-in-out infinite;
}

.ah-market-skeleton__media {
  min-height: 170px;
  border-radius: 16px;
}

.ah-market-skeleton__thumb {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  grid-row: span 2;
}

.ah-market-skeleton__line {
  height: 13px;
  border-radius: 999px;
}

.ah-market-skeleton__line--lg {
  width: 76%;
  height: 18px;
}

.ah-market-skeleton__line--sm {
  width: 48%;
}

.ah-market-skeleton__button {
  width: 138px;
  height: 42px;
  border-radius: 14px;
}

.ah-category-tile {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  min-height: 52px;
  padding: 12px;
  border: 1px solid rgba(95, 96, 98, .12);
  border-radius: 18px;
  color: var(--ah-market-deep-graphite);
  background: var(--ah-market-surface);
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.ah-category-tile:hover,
.ah-category-tile.is-active {
  color: var(--ah-market-charcoal);
  border-color: rgba(216, 169, 22, .42);
  background: linear-gradient(135deg, var(--ah-market-pale-gold), #fff);
  box-shadow: 0 12px 26px rgba(63, 64, 66, .10);
  transform: translateY(-2px);
}

.ah-category-tile--chip {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 8px 12px;
  border-radius: 999px;
}

.ah-category-tile--mini {
  min-height: 38px;
  padding: 7px 8px;
  border-radius: 12px;
  box-shadow: none;
}

.ah-category-tile--mini .ah-category-tile__visual {
  flex-basis: 26px;
  width: 26px;
  height: 26px;
  border-radius: 10px;
}

.ah-category-tile--mini .ah-category-tile__title {
  font-size: 13px;
  line-height: 1.25;
}

.ah-category-tile--mini .ah-category-tile__count {
  display: none;
}

.ah-category-tile__visual {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: var(--ah-market-charcoal);
  background: var(--ah-market-soft-gold);
}

.ah-category-tile--chip .ah-category-tile__visual {
  flex-basis: 28px;
  width: 28px;
  height: 28px;
  border-radius: 999px;
}

.ah-category-tile__visual img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.ah-category-tile__content {
  display: grid;
  min-width: 0;
}

.ah-category-tile__title {
  overflow: hidden;
  color: inherit;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ah-category-tile__count {
  color: var(--ah-market-muted);
  font-size: 12px;
  font-weight: 600;
}

.ah-product-grid,
.ah-service-grid {
  min-width: 0;
}

.ah-product-grid__row,
.ah-service-grid__row {
  row-gap: 16px;
}

.ah-product-grid--compact .ah-market-card__body,
.ah-service-grid--compact .ah-market-card__body {
  min-height: 180px;
}

.ah-seller-card {
  overflow: hidden;
  height: 100%;
  cursor: pointer;
  border: 1px solid rgba(95, 96, 98, .12);
  border-radius: 22px;
  background: var(--ah-market-surface);
  box-shadow: 0 12px 28px rgba(63, 64, 66, .08);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.ah-seller-card:hover {
  transform: translateY(-3px);
  border-color: rgba(216, 169, 22, .34);
  box-shadow: 0 18px 38px rgba(63, 64, 66, .14);
}

.ah-seller-card:focus-visible {
  outline: 3px solid rgba(247, 199, 53, .42);
  outline-offset: 3px;
}

.ah-seller-card a,
.ah-seller-card button,
.ah-seller-card label {
  cursor: pointer;
}

.ah-seller-card input,
.ah-seller-card select,
.ah-seller-card textarea {
  cursor: auto;
}

.ah-seller-card.is-featured {
  border-color: rgba(216, 169, 22, .38);
  box-shadow: 0 16px 34px rgba(216, 169, 22, .12);
}

.ah-seller-card__cover {
  min-height: 92px;
  background:
    radial-gradient(circle at 16% 20%, rgba(247, 199, 53, .34), transparent 24%),
    linear-gradient(135deg, var(--ah-market-soft-gold), #F7F8FA);
  background-position: center;
  background-size: cover;
}

.ah-seller-card__body {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  padding: 16px;
}

.ah-seller-card__avatar {
  display: inline-flex;
  width: 62px;
  height: 62px;
  margin-block-start: -34px;
  border: 4px solid var(--ah-market-surface);
  border-radius: 18px;
  background: var(--ah-market-surface);
  box-shadow: 0 8px 18px rgba(63, 64, 66, .14);
}

.ah-seller-card__avatar img {
  width: 100%;
  height: 100%;
  border-radius: 14px;
  object-fit: cover;
}

.ah-seller-card__main {
  min-width: 0;
}

.ah-seller-card__title-row,
.ah-seller-card__actions,
.ah-market-filter__header,
.ah-market-filter__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.ah-seller-card__title {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
}

.ah-seller-card__title a {
  color: var(--ah-market-charcoal);
  text-decoration: none;
}

.ah-seller-card__verified {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--ah-market-charcoal);
  background: var(--ah-market-soft-gold);
  font-size: 12px;
  font-weight: 800;
}

.ah-seller-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 0;
  color: var(--ah-market-muted);
  font-size: 13px;
}

.ah-seller-card__meta span:not(:last-child)::after {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-inline-start: 8px;
  border-radius: 999px;
  background: rgba(95, 96, 98, .32);
  vertical-align: middle;
}

.ah-seller-card__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 0;
}

.ah-seller-card__stats div {
  padding: 9px;
  border-radius: 14px;
  background: var(--ah-market-page);
  text-align: center;
}

.ah-seller-card__stats dt {
  color: var(--ah-market-muted);
  font-size: 11px;
  font-weight: 700;
}

.ah-seller-card__stats dd {
  margin: 2px 0 0;
  color: var(--ah-market-charcoal);
  font-weight: 800;
}

.ah-seller-card__actions {
  align-items: stretch;
}

.ah-seller-card__actions .btn,
.ah-market-filter__actions .btn,
.ah-filter-drawer__trigger,
.ah-sort__button,
.ah-market-alert__cta {
  min-height: 40px;
  border-radius: 14px;
  font-weight: 700;
}

.ah-sellers-listing__grid {
  row-gap: 16px;
}

.ah-seller-card__cover {
  min-height: 76px;
}

.ah-seller-card__body {
  gap: 12px;
  padding: 14px;
}

.ah-seller-card__avatar {
  width: 56px;
  height: 56px;
  margin-block-start: -30px;
  border-radius: 16px;
}

.ah-seller-card__avatar img {
  border-radius: 12px;
}

.ah-seller-card__title-row {
  gap: 8px;
}

.ah-seller-card__title {
  min-width: 0;
  font-size: 15px;
}

.ah-seller-card__title a {
  display: -webkit-box;
  overflow: hidden;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.ah-seller-card__meta {
  gap: 6px;
  font-size: 12px;
}

.ah-seller-card__meta span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ah-seller-card__stats {
  gap: 6px;
  margin: 10px 0;
}

.ah-seller-card__stats div {
  padding: 7px 5px;
  border-radius: 10px;
}

.ah-seller-card__stats dt {
  font-size: 10px;
  line-height: 1.2;
}

.ah-seller-card__stats dd {
  font-size: 13px;
}

.ah-market-filter {
  display: grid;
  gap: 14px;
}

.ah-market-page .form-control,
.ah-market-page .form-select,
.ah-market-filter .form-control,
.ah-market-filter .form-select,
.ah-rfq-form .form-control,
.ah-rfq-form .form-select,
.ah-order-detail .form-control,
.ah-order-detail .form-select {
  min-height: 44px;
  height: auto;
  padding: 10px 12px;
  color: var(--ah-market-text, #222426);
  background-color: var(--ah-market-surface, #fff);
  border: 1px solid var(--ah-market-border, #e5e7eb);
  border-radius: 12px;
  box-shadow: none;
}

.ah-market-page textarea.form-control,
.ah-rfq-form textarea.form-control,
.ah-order-detail textarea.form-control {
  min-height: 112px;
}

.ah-market-page .form-control:focus,
.ah-market-page .form-select:focus,
.ah-market-filter .form-control:focus,
.ah-market-filter .form-select:focus,
.ah-rfq-form .form-control:focus,
.ah-rfq-form .form-select:focus,
.ah-order-detail .form-control:focus,
.ah-order-detail .form-select:focus {
  border-color: rgba(216, 169, 22, .55);
  box-shadow: 0 0 0 3px rgba(247, 199, 53, .18);
}

.ah-market-page .form-check-input,
.ah-rfq-form input[type="checkbox"],
.ah-order-detail input[type="checkbox"],
.ah-order-detail input[type="radio"] {
  width: 18px;
  height: 18px;
  margin-block-start: 2px;
}

.ah-store-detail {
  display: grid;
  gap: 18px;
}

.ah-store-hero {
  overflow: hidden;
  border: 1px solid rgba(95, 96, 98, .12);
  border-radius: 8px;
  background: var(--ah-market-surface);
  box-shadow: 0 14px 34px rgba(63, 64, 66, .1);
}

.ah-store-hero__cover {
  min-height: clamp(140px, 22vw, 240px);
  background:
    radial-gradient(circle at 14% 18%, rgba(247, 199, 53, .3), transparent 28%),
    linear-gradient(135deg, var(--ah-market-soft-gold), #f6f8fb);
  background-position: center;
  background-size: cover;
}

.ah-store-hero__body {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  padding: 0 22px 22px;
}

.ah-store-hero__avatar {
  width: 104px;
  height: 104px;
  margin-block-start: -42px;
  border: 5px solid var(--ah-market-surface);
  border-radius: 20px;
  background: var(--ah-market-surface);
  box-shadow: 0 12px 26px rgba(63, 64, 66, .18);
  object-fit: cover;
}

.ah-store-hero__main {
  min-width: 0;
  padding-block-start: 18px;
}

.ah-store-hero__title-row,
.ah-store-hero__actions,
.ah-store-hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.ah-store-hero__title-row {
  justify-content: space-between;
}

.ah-store-hero h1 {
  margin: 3px 0 0;
  color: var(--ah-market-charcoal);
  font-size: clamp(1.45rem, 3vw, 2.15rem);
  line-height: 1.12;
}

.ah-store-hero__meta {
  margin: 10px 0 0;
  color: var(--ah-market-muted);
  font-weight: 700;
}

.ah-store-hero__description {
  max-width: 760px;
  margin: 12px 0 0;
  color: var(--ah-market-muted);
}

.ah-store-hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 150px));
  gap: 10px;
  margin: 16px 0;
}

.ah-store-hero__stats div {
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--ah-market-page);
}

.ah-store-hero__stats dt {
  color: var(--ah-market-muted);
  font-size: .75rem;
  font-weight: 800;
}

.ah-store-hero__stats dd {
  margin: 2px 0 0;
  color: var(--ah-market-charcoal);
  font-size: 1.2rem;
  font-weight: 900;
}

.ah-store-section {
  padding: 18px;
  border-radius: 8px;
}

body.night-mode .ah-store-hero {
  border-color: rgba(255, 255, 255, .12);
  background: #1b1d1f;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .28);
}

body.night-mode .ah-store-hero__cover {
  background:
    radial-gradient(circle at 14% 18%, rgba(247, 199, 53, .18), transparent 28%),
    linear-gradient(135deg, #25282b, #17191b);
}

body.night-mode .ah-store-hero h1,
body.night-mode .ah-store-hero__stats dd {
  color: #f5f5f5;
}

body.night-mode .ah-store-hero__meta,
body.night-mode .ah-store-hero__description,
body.night-mode .ah-store-hero__stats dt {
  color: #c9d0d6;
}

body.night-mode .ah-store-hero__stats div {
  background: #242628;
}

.ah-market-filter__header {
  justify-content: space-between;
}

.ah-market-filter__title {
  margin: 0;
  color: var(--ah-market-charcoal);
  font-size: 18px;
  font-weight: 800;
}

.ah-market-filter__hint {
  margin: 4px 0 0;
  color: var(--ah-market-muted);
  font-size: 13px;
}

.ah-market-filter__group {
  display: grid;
  gap: 10px;
  min-width: 0;
  margin: 0;
  padding: 14px;
  border: 1px solid rgba(95, 96, 98, .12);
  border-radius: 18px;
  background: var(--ah-market-surface);
}

.ah-market-filter__group legend {
  float: none;
  width: auto;
  margin: 0;
  padding: 0 2px;
  color: var(--ah-market-deep-graphite);
  font-size: 14px;
  font-weight: 800;
}

.ah-market-filter__check {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 34px;
  margin: 0;
  color: var(--ah-market-deep-graphite);
  font-weight: 600;
}

.ah-market-filter__check input {
  flex: 0 0 auto;
}

.ah-market-filter__actions {
  justify-content: space-between;
}

.ah-filter-drawer__trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ah-filter-drawer {
  color: var(--ah-market-deep-graphite);
  background: var(--ah-market-page);
}

.ah-filter-drawer__header {
  border-bottom: 1px solid rgba(95, 96, 98, .12);
}

.ah-filter-drawer__title {
  color: var(--ah-market-charcoal);
  font-weight: 800;
}

.ah-sort {
  display: inline-flex;
}

.ah-sort__button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ah-sort__menu .dropdown-item {
  display: flex;
  align-items: center;
  min-height: 36px;
}

.ah-filter-chips {
  min-width: 0;
}

.ah-filter-chips__scroller {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-block: 4px;
  scrollbar-width: thin;
}

.ah-filter-chip {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 7px;
  max-width: 220px;
  min-height: 36px;
  padding: 7px 10px;
  border: 1px solid rgba(216, 169, 22, .28);
  border-radius: 999px;
  color: var(--ah-market-charcoal);
  background: var(--ah-market-soft-gold);
  font-weight: 700;
  text-decoration: none;
}

.ah-filter-chip__label,
.ah-filter-chip__value {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ah-filter-chip__value {
  color: var(--ah-market-muted);
  font-weight: 600;
}

.ah-filter-chip--clear {
  color: var(--ah-market-deep-graphite);
  background: var(--ah-market-surface);
}

.ah-filter-chips__empty {
  margin: 0;
  color: var(--ah-market-muted);
  font-size: 13px;
}

.ah-market-alert {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  border: 1px solid rgba(95, 96, 98, .12);
  border-radius: 18px;
  color: var(--ah-market-deep-graphite);
  background: var(--ah-market-surface);
}

.ah-market-alert__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  color: var(--ah-market-charcoal);
  background: var(--ah-market-soft-gold);
}

.ah-market-alert__title {
  display: block;
  color: var(--ah-market-charcoal);
  font-weight: 800;
}

.ah-market-alert__message {
  margin: 4px 0 0;
}

.ah-market-alert--success {
  border-color: rgba(30, 158, 99, .22);
}

.ah-market-alert--success .ah-market-alert__icon {
  color: #0F5132;
  background: #D1E7DD;
}

.ah-market-alert--warning,
.ah-market-alert--checkout,
.ah-market-alert--rfq {
  border-color: rgba(245, 166, 35, .28);
}

.ah-market-alert--error {
  border-color: rgba(214, 69, 69, .24);
}

.ah-market-alert--error .ah-market-alert__icon {
  color: #842029;
  background: #F8D7DA;
}

.ah-market-alert--trust,
.ah-market-alert--seller {
  border-color: rgba(63, 96, 104, .22);
}

.ah-market-alert--deal {
  border-color: rgba(216, 169, 22, .36);
  background: linear-gradient(135deg, rgba(255, 244, 194, .72), var(--ah-market-surface));
}

@keyframes ah-market-skeleton-shimmer {
  0% {
    background-position: 120% 0;
  }

  100% {
    background-position: -120% 0;
  }
}

.ah-market-header a:focus,
.ah-market-header button:focus,
.ah-market-search input:focus,
.ah-category-tile:focus,
.ah-seller-card a:focus,
.ah-seller-card button:focus,
.ah-market-filter a:focus,
.ah-market-filter button:focus,
.ah-market-filter input:focus,
.ah-market-filter select:focus,
.ah-filter-drawer__trigger:focus,
.ah-sort__button:focus,
.ah-sort__menu a:focus,
.ah-filter-chip:focus,
.ah-market-alert a:focus,
.ah-market-alert button:focus {
  outline: 3px solid rgba(247, 199, 53, .42);
  outline-offset: 2px;
}

body.night-mode .ah-market-header {
  background:
    radial-gradient(circle at 12% 18%, rgba(247, 199, 53, .16), transparent 30%),
    linear-gradient(135deg, #191A1C, #111214 64%);
}

body.night-mode .ah-market-header__copy h1,
body.night-mode .ah-market-header__copy h2,
body.night-mode .ah-market-header__copy p,
body.night-mode .ah-market-header__eyebrow,
body.night-mode .ah-market-header__trust span,
body.night-mode .ah-market-search__scope,
body.night-mode .ah-market-shortcuts__item {
  color: #F3F4F6;
}

body.night-mode .ah-market-header__eyebrow,
body.night-mode .ah-market-header__trust span,
body.night-mode .ah-market-header__panel,
body.night-mode .ah-market-search__scope,
body.night-mode .ah-market-shortcuts__item {
  border-color: rgba(247, 199, 53, .18);
  background: rgba(33, 33, 33, .82);
}

body.night-mode .ah-market-header__visual::before {
  border-color: rgba(247, 199, 53, .16);
  background:
    linear-gradient(90deg, rgba(247, 199, 53, .12), transparent 64%),
    rgba(33, 33, 33, .62);
}

body.night-mode .ah-market-search__input,
body.night-mode .ah-market-search__location {
  color: #F3F4F6;
  border-color: #34383A;
  background: #151719;
}

body.night-mode .ah-market-search__submit {
  color: var(--ah-market-charcoal);
}

body.night-mode .ah-market-search__scope.active,
body.night-mode .ah-market-shortcuts__item.active {
  color: var(--ah-market-charcoal);
  background: var(--ah-market-gold);
}

body.night-mode .ah-market-card {
  border-color: rgba(247, 199, 53, .16);
  background: #1B1D1F;
  box-shadow: 0 14px 32px rgba(0, 0, 0, .28);
}

body.night-mode .ah-service-card .ah-market-card__media {
  background:
    radial-gradient(circle at 18% 18%, rgba(247, 199, 53, .12), transparent 30%),
    linear-gradient(135deg, #202527, #151719);
}

body.night-mode .ah-market-card__title,
body.night-mode .ah-market-card__meta,
body.night-mode .ah-market-card .product-meta {
  color: #F3F4F6;
}

body.night-mode .ah-service-card .ah-market-card__type-badge,
body.night-mode .ah-service-card .ah-market-card__status {
  color: #DFF7FA !important;
  border-color: rgba(102, 179, 190, .22);
  background: rgba(63, 96, 104, .32) !important;
}

body.night-mode .ah-market-empty,
body.night-mode .ah-market-protection,
body.night-mode .ah-market-skeleton__card,
body.night-mode .ah-market-skeleton__row,
body.night-mode .ah-market-skeleton__detail,
body.night-mode .ah-market-skeleton__panel,
body.night-mode .ah-category-tile,
body.night-mode .ah-seller-card,
body.night-mode .ah-market-filter__group,
body.night-mode .ah-filter-drawer,
body.night-mode .ah-filter-chip--clear,
body.night-mode .ah-market-alert {
  border-color: rgba(247, 199, 53, .16);
  background: #1B1D1F;
}

body.night-mode .ah-category-tile:hover,
body.night-mode .ah-category-tile.is-active,
body.night-mode .ah-market-alert--deal {
  background: linear-gradient(135deg, rgba(247, 199, 53, .16), #1B1D1F);
}

body.night-mode .ah-market-empty__title,
body.night-mode .ah-market-protection__title,
body.night-mode .ah-market-protection__list li,
body.night-mode .ah-category-tile,
body.night-mode .ah-seller-card__title a,
body.night-mode .ah-seller-card__stats dd,
body.night-mode .ah-market-filter__title,
body.night-mode .ah-market-filter__group legend,
body.night-mode .ah-market-filter__check,
body.night-mode .ah-filter-drawer__title,
body.night-mode .ah-filter-chip,
body.night-mode .ah-market-alert__title {
  color: #F3F4F6;
}

body.night-mode .ah-market-empty__message,
body.night-mode .ah-market-protection__message,
body.night-mode .ah-category-tile__count,
body.night-mode .ah-seller-card__meta,
body.night-mode .ah-seller-card__stats dt,
body.night-mode .ah-market-filter__hint,
body.night-mode .ah-filter-chip__value,
body.night-mode .ah-filter-chips__empty,
body.night-mode .ah-market-alert__message {
  color: #B8BEC7;
}

body.night-mode .ah-market-empty__visual,
body.night-mode .ah-market-protection__badge,
body.night-mode .ah-category-tile__visual,
body.night-mode .ah-seller-card__verified,
body.night-mode .ah-market-alert__icon {
  color: var(--ah-market-charcoal);
  background: var(--ah-market-gold);
}

body.night-mode .ah-seller-card__avatar {
  border-color: #1B1D1F;
  background: #1B1D1F;
}

body.night-mode .ah-seller-card__stats {
  color: #F3F4F6;
}

body.night-mode .ah-seller-card__stats div {
  background: #151719;
}

body.night-mode .ah-deal-ribbon {
  border-color: rgba(247, 199, 53, .42);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .32);
}

body.night-mode .ah-market-skeleton__media,
body.night-mode .ah-market-skeleton__thumb,
body.night-mode .ah-market-skeleton__line,
body.night-mode .ah-market-skeleton__button {
  background: linear-gradient(90deg, #282C30, #343A40, #282C30);
  background-size: 220% 100%;
}

@media (min-width: 768px) {
  .ah-market-search__group {
    grid-template-columns: minmax(0, 1fr) minmax(112px, .45fr) auto;
  }

  .ah-market-empty {
    padding: 34px 26px;
  }

  .ah-market-protection__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ah-market-skeleton__detail {
    grid-template-columns: minmax(0, .9fr) minmax(280px, .72fr);
  }
}

.ah-deals-page__hero > .ah-deal-ribbon,
.ah-market-section__header > .ah-deal-ribbon {
  position: static;
  justify-self: start;
  align-self: start;
}

@media (min-width: 992px) {
  .ah-market-header__grid {
    grid-template-columns: minmax(0, .9fr) minmax(420px, .72fr);
  }

  .ah-market-header__visual {
    display: block;
  }

}

@media (max-width: 991.98px) {
  .ah-market-header {
    padding-block: 20px 32px;
  }

  .ah-market-header__panel {
    border-radius: 18px;
  }

  .ah-market-shell__filters .card {
    position: static;
  }

  .ah-market-card__body {
    min-height: 0;
  }

  .ah-store-hero__body {
    grid-template-columns: minmax(0, 1fr);
  }

  .ah-store-hero__avatar {
    margin-block-end: -8px;
  }

  .ah-store-hero__main {
    padding-block-start: 0;
  }

  .ah-store-hero__stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .ah-market-header {
    padding-block: 16px 24px;
  }

  .ah-market-header__copy h1,
  .ah-market-header__copy h2 {
    font-size: clamp(1.95rem, 9vw, 2.25rem);
  }

  .ah-market-header__copy p {
    font-size: 1rem;
  }

  .ah-market-header__trust {
    display: none;
  }

  .ah-market-header__trust span,
  .ah-market-search__scope,
  .ah-market-shortcuts__item {
    flex: 1 1 calc(50% - 8px);
  }

  .ah-market-search__submit {
    width: 100%;
  }

  .ah-market-card {
    border-radius: 18px;
  }

  .ah-market-card__primary-action {
    min-height: 46px;
  }

  .ah-market-empty__actions,
  .ah-market-empty__cta {
    width: 100%;
  }

  .ah-market-protection__header {
    grid-template-columns: minmax(0, 1fr);
  }

  .ah-seller-card__body {
    grid-template-columns: minmax(0, 1fr);
  }

  .ah-seller-card__avatar {
    margin-block-start: -46px;
  }

  .ah-seller-card__actions .btn,
  .ah-market-filter__actions .btn {
    flex: 1 1 100%;
  }

  .ah-market-alert {
    grid-template-columns: minmax(0, 1fr);
  }

  .ah-deal-ribbon {
    max-width: calc(100% - 16px);
    inset-block-start: 8px;
    inset-inline-start: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ah-market-header *,
  .ah-market-card,
  .ah-category-tile,
  .ah-seller-card,
  .ah-market-skeleton__media,
  .ah-market-skeleton__thumb,
  .ah-market-skeleton__line,
  .ah-market-skeleton__button {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

.ah-market-page {
  display: grid;
  gap: 14px;
  min-width: 0;
  max-width: 100%;
}

.ah-market-page > *,
.ah-market-home__split > [class*="col-"],
.ah-market-section,
.ah-market-home__hero,
.ah-sellers-listing,
.ah-categories-page {
  min-width: 0;
  max-width: 100%;
}

.ah-market-page__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ah-market-deep-gold, #d8a916);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.ah-market-page__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-block-end: 14px;
  padding: 16px;
  border: 1px solid rgba(95, 96, 98, .1);
  border-radius: 8px;
  background: var(--ah-market-surface);
  box-shadow: 0 10px 24px rgba(63, 64, 66, .07);
}

.ah-market-page__header h2 {
  margin: 3px 0 4px;
  color: var(--ah-market-charcoal);
  font-size: 1.45rem;
  line-height: 1.18;
}

.ah-market-page__header p {
  max-width: 680px;
  margin: 0;
  color: var(--ah-market-muted);
}

.ah-market-page__header form {
  flex: 0 1 280px;
  min-width: 220px;
}

.ah-market-sales-stats {
  row-gap: 14px;
}

body.night-mode .ah-market-page__header {
  border-color: rgba(255, 255, 255, .12);
  background: #242526;
}

body.night-mode .ah-market-page__header h2 {
  color: #f5f5f5;
}

body.night-mode .ah-market-page__header p {
  color: #c9d0d6;
}

body.night-mode .ah-market-page__header .form-control {
  border-color: rgba(255, 255, 255, .14);
  color: #f5f5f5;
  background: #1d1f21;
}

.ah-market-section {
  width: 100%;
  background: var(--ah-market-card, #fff);
  border: 1px solid var(--ah-market-border, #e5e7eb);
  border-radius: 16px;
  padding: 14px;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(34, 36, 38, 0.05);
}

.ah-market-section--gold,
.ah-market-home__hero,
.ah-deals-page__hero {
  background:
    radial-gradient(circle at 12% 18%, rgba(247, 199, 53, 0.24), transparent 28%),
    linear-gradient(135deg, #fff9e6 0%, #fff 68%);
  border-color: rgba(216, 169, 22, 0.24);
}

.ah-market-section__header,
.ah-market-listing__header,
.ah-market-home__hero,
.ah-deals-page__hero {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.ah-market-section__header {
  margin-block-end: 12px;
}

.ah-market-section__header h2,
.ah-market-section__header h3,
.ah-market-listing__header h2,
.ah-market-home__hero h2,
.ah-deals-page__hero h2 {
  margin: 0;
  color: var(--ah-market-text, #222426);
  font-weight: 800;
}

.ah-market-section__header p,
.ah-market-listing__header p,
.ah-market-home__hero p,
.ah-deals-page__hero p,
.ah-detail-panel p {
  margin: 6px 0 0;
  color: var(--ah-market-muted, #6b7280);
}

.ah-market-home__actions,
.ah-market-section__actions,
.ah-market-listing__tools,
.ah-detail-panel__actions,
.ah-rfq-form__actions,
.ah-sticky-action__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.ah-market-home__actions .btn,
.ah-market-listing__tools .btn,
.ah-detail-panel__actions .btn,
.ah-rfq-form__actions .btn,
.ah-sticky-action__buttons .btn {
  min-height: 44px;
}

.ah-market-home__hero {
  padding: 12px;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
}

.ah-market-home__category-rail,
.ah-market-home__side-panel,
.ah-market-home__hero-trust {
  min-width: 0;
}

.ah-market-home__category-rail,
.ah-market-home__side-panel {
  border: 1px solid rgba(95, 96, 98, .10);
  border-radius: 14px;
  background: rgba(255, 255, 255, .72);
}

.ah-market-home__category-rail {
  padding: 10px;
}

.ah-market-home__rail-title {
  margin-block-end: 8px;
  color: var(--ah-market-charcoal);
  font-size: 13px;
  font-weight: 800;
}

.ah-market-home__rail-list {
  display: grid;
  gap: 6px;
  max-height: 300px;
  overflow: auto;
  padding-inline-end: 2px;
}

.ah-market-home__hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 10px;
}

.ah-market-home__hero-copy h2 {
  max-width: 680px;
  font-size: clamp(1.7rem, 3.2vw, 2.8rem);
  line-height: 1.05;
}

.ah-market-home__hero-copy p {
  max-width: 680px;
}

.ah-market-home__quick-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-block-start: 12px;
}

.ah-market-home__quick-stats span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  border: 1px solid rgba(216, 169, 22, .22);
  border-radius: 999px;
  color: var(--ah-market-deep-graphite);
  background: rgba(255, 255, 255, .74);
  font-size: 12px;
  font-weight: 700;
}

.ah-market-home__side-panel {
  display: grid;
  gap: 10px;
  padding: 10px;
}

.ah-market-home__side-panel .ah-market-protection {
  padding: 12px;
  border-radius: 12px;
  box-shadow: none;
}

.ah-market-home__side-panel .ah-market-protection__header {
  gap: 8px;
}

.ah-market-home__side-panel .ah-market-protection__badge {
  width: 42px;
  height: 42px;
  border-radius: 14px;
}

.ah-market-home__side-panel .ah-market-protection__title {
  margin-bottom: 4px;
  font-size: 16px;
  line-height: 1.15;
}

.ah-market-home__side-panel .ah-market-protection__message,
.ah-market-home__side-panel .ah-market-protection__list li {
  font-size: 12px;
  line-height: 1.35;
}

.ah-market-home__side-panel .ah-market-protection__list {
  grid-template-columns: minmax(0, 1fr);
  gap: 7px;
  margin-block-start: 10px;
}

.ah-market-home__side-panel .ah-market-protection__list li {
  gap: 7px;
}

.ah-market-home__side-panel .ah-market-protection__list li:nth-child(n+3) {
  display: none;
}

.ah-market-home__mini-deal {
  position: relative;
  display: grid;
  gap: 5px;
  padding: 44px 12px 12px;
  border: 1px dashed rgba(216, 169, 22, .38);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255, 244, 194, .72), rgba(255, 255, 255, .7));
}

.ah-market-home__mini-deal .ah-deal-ribbon {
  inset-block-start: 10px;
  inset-inline-start: 10px;
}

.ah-market-home__mini-deal strong {
  color: var(--ah-market-charcoal);
  font-size: 14px;
}

.ah-market-home__mini-deal span {
  color: var(--ah-market-muted);
  font-size: 12px;
  line-height: 1.35;
}

.ah-market-home__hero-copy,
.ah-market-section__header > *,
.ah-market-listing__header > * {
  min-width: 0;
}

.ah-market-category-strip,
.ah-categories-page__grid {
  display: grid;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
}

.ah-market-category-strip {
  display: flex;
  overflow-x: auto;
  padding-block-end: 4px;
  scroll-snap-type: inline proximity;
}

.ah-market-category-strip .ah-category-tile {
  flex: 0 0 auto;
  scroll-snap-align: start;
}

.ah-market-home__split {
  row-gap: 20px;
}

.ah-market-page--compact .ah-sellers-listing__grid > [class*="col-"] {
  flex: 0 0 100%;
  max-width: 100%;
}

.ah-market-listing__header {
  padding: 18px;
  border-radius: 22px;
}

.ah-market-listing__header--service {
  border-inline-start: 4px solid var(--ah-market-info, #3f6068);
}

.ah-products-listing .ah-market-listing__header {
  border-inline-start: 4px solid var(--ah-market-gold, #f7c735);
}

.ah-gallery {
  display: grid;
  gap: 12px;
}

.ah-gallery__main {
  position: relative;
  overflow: hidden;
  background: #f7f8fa;
  border: 1px solid var(--ah-market-border, #e5e7eb);
  border-radius: 24px;
  min-height: 260px;
}

.ah-gallery__main img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
}

.ah-gallery__thumbs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-block-end: 2px;
}

.ah-gallery__thumb {
  width: 72px;
  height: 72px;
  flex: 0 0 72px;
  overflow: hidden;
  padding: 0;
  background: #fff;
  border: 2px solid transparent;
  border-radius: 16px;
}

.ah-gallery__thumb.is-active {
  border-color: var(--ah-market-gold, #f7c735);
}

.ah-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ah-gallery__hint {
  color: var(--ah-market-muted, #6b7280);
  font-size: 0.85rem;
}

.ah-detail-panel {
  display: grid;
  gap: 18px;
  background: #fff;
  border: 1px solid var(--ah-market-border, #e5e7eb);
  border-radius: 24px;
  padding: 20px;
  box-shadow: 0 16px 36px rgba(34, 36, 38, 0.07);
}

.ah-detail-panel__header h1 {
  margin: 6px 0;
  color: var(--ah-market-text, #222426);
  font-size: clamp(1.45rem, 4vw, 2.25rem);
  font-weight: 850;
}

.ah-detail-panel__price {
  color: var(--ah-market-text, #222426);
  font-size: 1.35rem;
  font-weight: 900;
}

.ah-detail-panel__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ah-detail-panel__seller-link {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
}

.ah-detail-panel__seller-link:hover {
  color: inherit;
  text-decoration: none;
}

.ah-detail-panel__seller-link img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.ah-detail-panel__seller-link span {
  display: grid;
  gap: 2px;
}

.ah-detail-panel__seller-link small,
.ah-detail-panel__list {
  color: var(--ah-market-muted, #6b7280);
}

.ah-detail-panel__section {
  display: grid;
  gap: 8px;
}

.ah-detail-panel__list {
  margin: 0;
  padding-inline-start: 18px;
}

.ah-detail-panel__section h2,
.ah-service-detail-panel__scope-grid h3,
.ah-rfq-form__summary h3 {
  margin: 0;
  color: var(--ah-market-text, #222426);
  font-weight: 800;
}

.ah-detail-panel__quantity {
  max-width: 150px;
}

.ah-service-detail-panel {
  border-inline-start: 5px solid var(--ah-market-info, #3f6068);
}

.ah-service-detail-panel__scope-grid {
  display: grid;
  gap: 12px;
}

.ah-service-detail-panel__scope-grid > div {
  padding: 14px;
  background: #f7f8fa;
  border: 1px solid var(--ah-market-border, #e5e7eb);
  border-radius: 18px;
}

.ah-rfq-form {
  display: grid;
  gap: 16px;
}

.ah-rfq-form__summary {
  padding: 14px;
  background: color-mix(in srgb, var(--ah-market-surface) 78%, var(--ah-market-pale-gold));
  border: 1px solid color-mix(in srgb, var(--ah-market-accent, var(--ah-market-gold)) 26%, var(--ah-market-border));
  border-radius: 18px;
}

.ah-rfq-form__summary h3 {
  color: var(--ah-market-text);
}

.ah-rfq-form__summary p {
  color: var(--ah-market-muted);
}

.ah-rfq-form__confirm {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.ah-rfq-form__confirm {
  min-height: 44px;
  color: var(--ah-market-text, #222426);
}

.ah-rfq-form__confirm input {
  margin-block-start: 4px;
}

.ah-sticky-action {
  position: sticky;
  z-index: 20;
  inset-block-end: 10px;
  display: grid;
  gap: 10px;
  margin-block-start: 18px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--ah-market-border, #e5e7eb);
  border-radius: 22px;
  box-shadow: 0 18px 42px rgba(34, 36, 38, 0.16);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.ah-sticky-action__summary {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.ah-sticky-action__summary span {
  color: var(--ah-market-muted, #6b7280);
  font-size: 0.78rem;
  font-weight: 700;
}

.ah-sticky-action__summary strong {
  overflow: hidden;
  color: var(--ah-market-text, #222426);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ah-market-page .btn:focus-visible,
.ah-gallery__thumb:focus-visible,
.ah-rfq-form input:focus-visible,
.ah-rfq-form textarea:focus-visible,
.ah-rfq-form select:focus-visible {
  outline: 3px solid rgba(247, 199, 53, 0.55);
  outline-offset: 2px;
}

body.night-mode .ah-market-section,
body.night-mode .ah-market-listing__header,
body.night-mode .ah-detail-panel,
body.night-mode .ah-gallery__thumb,
body.night-mode .ah-sticky-action {
  background: #242526;
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: none;
}

body.night-mode .ah-market-section--gold,
body.night-mode .ah-market-home__hero,
body.night-mode .ah-deals-page__hero,
body.night-mode .ah-rfq-form__summary {
  background:
    radial-gradient(circle at 15% 20%, color-mix(in srgb, var(--ah-market-accent, var(--ah-market-gold)) 16%, transparent), transparent 30%),
    linear-gradient(135deg, var(--ah-market-soft-surface) 0%, var(--ah-market-surface) 70%);
  border-color: color-mix(in srgb, var(--ah-market-accent, var(--ah-market-gold)) 24%, var(--ah-market-border));
}

body.night-mode .ah-market-home__category-rail,
body.night-mode .ah-market-home__side-panel,
body.night-mode .ah-market-home__mini-deal,
body.night-mode .ah-market-home__quick-stats span {
  color: #f3f4f6;
  border-color: rgba(247, 199, 53, 0.16);
  background: rgba(24, 25, 26, .72);
}

body.night-mode .ah-market-section__header h2,
body.night-mode .ah-market-section__header h3,
body.night-mode .ah-market-listing__header h2,
body.night-mode .ah-market-home__hero h2,
body.night-mode .ah-deals-page__hero h2,
body.night-mode .ah-detail-panel__header h1,
body.night-mode .ah-detail-panel__price,
body.night-mode .ah-detail-panel__section h2,
body.night-mode .ah-service-detail-panel__scope-grid h3,
body.night-mode .ah-rfq-form__summary h3,
body.night-mode .ah-rfq-form__confirm,
body.night-mode .ah-sticky-action__summary strong {
  color: var(--ah-market-text);
}

body.night-mode .ah-market-section__header p,
body.night-mode .ah-market-listing__header p,
body.night-mode .ah-market-home__hero p,
body.night-mode .ah-deals-page__hero p,
body.night-mode .ah-detail-panel p,
body.night-mode .ah-gallery__hint,
body.night-mode .ah-sticky-action__summary span {
  color: var(--ah-market-muted);
}

body.night-mode .ah-gallery__main,
body.night-mode .ah-service-detail-panel__scope-grid > div {
  background: #18191a;
  border-color: rgba(255, 255, 255, 0.1);
}

@media (min-width: 768px) {
  .ah-market-section__header,
  .ah-market-listing__header,
  .ah-deals-page__hero {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .ah-market-home__hero {
    grid-template-columns: minmax(180px, .34fr) minmax(0, 1fr);
    align-items: stretch;
  }

  .ah-categories-page__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ah-service-detail-panel__scope-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ah-sticky-action {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }
}

@media (min-width: 992px) {
  .ah-market-home__hero {
    grid-template-columns: minmax(190px, .34fr) minmax(0, 1fr) minmax(260px, .44fr);
  }

  .ah-market-shell__filters {
    max-width: 280px;
  }

  .ah-categories-page__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ah-sticky-action {
    display: none;
  }
}

@media (max-width: 767.98px) {
  .ah-market-header__copy h1,
  .ah-market-header__copy h2 {
    font-size: clamp(2rem, 10vw, 2.45rem);
  }

  .ah-market-shortcuts__item.disabled {
    display: none;
  }

  .ah-market-header__trust span,
  .ah-market-search__scope,
  .ah-market-shortcuts__item {
    min-height: 34px;
    padding: 6px 10px;
  }

  .ah-market-header__panel {
    padding: 10px;
  }

  .ah-market-home__actions .btn,
  .ah-market-section__actions .btn,
  .ah-market-listing__tools .btn,
  .ah-detail-panel__actions .btn,
  .ah-rfq-form__actions .btn,
  .ah-sticky-action__buttons .btn {
    flex: 1 1 100%;
  }

  .ah-market-section,
  .ah-market-home__hero,
  .ah-market-listing__header,
  .ah-detail-panel {
    border-radius: 16px;
    padding: 12px;
  }

  .ah-market-home__category-rail {
    order: 2;
  }

  .ah-market-home__hero-copy {
    order: 1;
    padding: 4px;
  }

  .ah-market-home__side-panel {
    display: none;
  }

  .ah-market-home__rail-list {
    display: flex;
    overflow-x: auto;
    max-height: none;
    scroll-snap-type: inline proximity;
  }

  .ah-market-home__rail-list .ah-category-tile {
    flex: 0 0 180px;
    scroll-snap-align: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ah-gallery__thumb,
  .ah-sticky-action,
  .ah-market-page .btn {
    transition: none !important;
  }
}

.ah-cart-page__header,
.ah-cart-shop__header,
.ah-order-card__header {
  display: grid;
  gap: 12px;
}

.ah-cart-page__header {
  padding: 18px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 8% 16%, rgba(247, 199, 53, 0.18), transparent 24%),
    #fff;
}

.ah-cart-page__layout {
  row-gap: 20px;
}

.ah-cart-shop-list {
  display: grid;
  gap: 18px;
}

.ah-cart-shop {
  border: 1px solid var(--ah-market-border, #e5e7eb);
  border-radius: 22px;
  overflow: hidden;
}

.ah-cart-shop__items {
  row-gap: 16px;
}

.ah-cart-shop__items > [class*="col-"] {
  display: flex;
}

.ah-cart-item {
  display: grid;
  grid-template-columns: minmax(104px, 132px) minmax(0, 1fr);
  width: 100%;
  min-height: 168px;
  overflow: hidden;
  border: 1px solid var(--ah-market-border, #e5e7eb);
  border-radius: 16px;
  background: var(--ah-market-surface, #fff);
  box-shadow: 0 10px 26px rgba(63, 64, 66, .08);
}

.ah-cart-item__media {
  position: relative;
  display: block;
  min-height: 100%;
  overflow: hidden;
  color: inherit;
  background: var(--ah-market-page, #f7f8fa);
  text-decoration: none;
}

.ah-cart-item__media img {
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
}

.ah-cart-item__price {
  position: absolute;
  z-index: 1;
  inset-block-start: 10px;
  inset-inline-start: 10px;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  max-width: calc(100% - 20px);
  padding: 4px 9px;
  overflow: hidden;
  color: #222426;
  background: rgba(247, 199, 53, .94);
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(63, 64, 66, .18);
  font-size: 12px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ah-cart-item__body {
  display: grid;
  align-content: space-between;
  gap: 10px;
  min-width: 0;
  padding: 12px;
}

.ah-cart-item__topline,
.ah-cart-item__chips,
.ah-cart-item__controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ah-cart-item__topline {
  align-items: flex-start;
  justify-content: space-between;
}

.ah-cart-item__title-group {
  min-width: 0;
  flex: 1 1 170px;
}

.ah-cart-item__title {
  display: -webkit-box;
  overflow: hidden;
  color: var(--ah-market-text, #222426);
  font-size: 15px;
  font-weight: 850;
  line-height: 1.32;
  text-decoration: none;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.ah-cart-item__title:hover {
  color: var(--ah-market-gold-dark, #b88700);
}

.ah-cart-item__seller {
  margin-block-start: 4px;
  overflow: hidden;
  color: var(--ah-market-muted, #6b7280);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ah-cart-item__line-total {
  display: grid;
  gap: 2px;
  min-width: 92px;
  text-align: end;
}

.ah-cart-item__line-total span {
  color: var(--ah-market-muted, #6b7280);
  font-size: 11px;
  font-weight: 700;
}

.ah-cart-item__line-total strong {
  color: var(--ah-market-text, #222426);
  font-size: 14px;
  font-weight: 900;
}

.ah-cart-item__chips {
  align-items: center;
}

.ah-cart-item__chips .badge {
  max-width: 100%;
  overflow: hidden;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ah-cart-item__alert {
  margin: 0;
  padding: 8px 10px;
  font-size: 12px;
}

.ah-cart-item__controls {
  align-items: end;
  justify-content: space-between;
}

.ah-cart-item__quantity {
  flex: 1 1 110px;
  margin: 0;
}

.ah-cart-item__quantity .form-label {
  margin-block-end: 4px;
  color: var(--ah-market-muted, #6b7280);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.ah-cart-item__controls .btn {
  min-width: 44px;
  min-height: 44px;
}

.ah-cart-item__remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(220, 53, 69, .16);
  color: #dc3545;
  border-radius: 12px;
}

.ah-cart-item__remove:hover {
  color: #fff;
  background: #dc3545;
  border-color: #dc3545;
}

.ah-checkout-panel,
.ah-order-summary {
  margin-block-end: 18px;
  border: 1px solid var(--ah-market-border, #e5e7eb);
  border-radius: 22px;
  overflow: hidden;
}

.ah-checkout-address {
  padding: 12px;
  border: 1px solid var(--ah-market-border, #e5e7eb);
  border-radius: 16px;
}

.ah-checkout-address + .ah-checkout-address {
  margin-block-start: 10px;
}

.ah-checkout-steps {
  overflow-x: auto;
}

.ah-checkout-steps ol {
  display: flex;
  gap: 10px;
  min-width: max-content;
  padding: 0;
  margin: 0;
  list-style: none;
}

.ah-checkout-steps li {
  display: flex;
  gap: 10px;
  align-items: center;
  min-width: 190px;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--ah-market-border, #e5e7eb);
  border-radius: 16px;
}

.ah-checkout-steps li.is-current {
  border-color: var(--ah-market-gold, #f7c735);
  box-shadow: 0 10px 24px rgba(247, 199, 53, 0.18);
}

.ah-checkout-steps__index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  color: #222426;
  font-weight: 900;
  background: var(--ah-market-gold, #f7c735);
  border-radius: 999px;
}

.ah-checkout-steps small {
  display: block;
  color: var(--ah-market-muted, #6b7280);
}

.ah-order-summary {
  display: grid;
  gap: 14px;
  padding: 16px;
  background: #fff;
}

.ah-order-summary__header {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.ah-order-summary__header h3 {
  margin: 0;
  color: var(--ah-market-text, #222426);
  font-size: 1.05rem;
  font-weight: 850;
}

.ah-order-summary__rows {
  display: grid;
  gap: 10px;
  margin: 0;
}

.ah-order-summary__rows > div {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.ah-order-summary__rows dt {
  color: var(--ah-market-muted, #6b7280);
  font-weight: 700;
}

.ah-order-summary__rows dd {
  margin: 0;
  color: var(--ah-market-text, #222426);
  font-weight: 800;
}

.ah-order-summary__total {
  padding-block-start: 10px;
  border-block-start: 1px solid var(--ah-market-border, #e5e7eb);
}

.ah-order-summary__note {
  color: var(--ah-market-muted, #6b7280);
  font-size: 0.86rem;
}

.ah-order-card-list {
  display: grid;
  gap: 16px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.ah-order-card {
  padding: 16px;
  border: 1px solid var(--ah-market-border, #e5e7eb);
  border-radius: 22px;
}

.ah-order-card__item {
  list-style: none;
}

.ah-order-card__header h3 {
  margin: 4px 0 0;
  color: var(--ah-market-text, #222426);
  font-weight: 850;
}

.ah-order-card__meta {
  display: grid;
  gap: 10px;
  margin-block: 14px;
}

.ah-order-card__meta > div {
  display: grid;
  gap: 2px;
  padding: 10px;
  background: #f7f8fa;
  border-radius: 14px;
}

.ah-order-card__meta span {
  color: var(--ah-market-muted, #6b7280);
  font-size: 0.82rem;
}

.ah-order-card__meta strong {
  color: var(--ah-market-text, #222426);
}

.ah-order-card__thumbs {
  display: flex;
  gap: 8px;
  margin-block-end: 14px;
}

.ah-order-card__thumbs img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border: 1px solid var(--ah-market-border, #e5e7eb);
  border-radius: 12px;
}

.ah-order-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ah-order-card__actions .btn {
  min-height: 44px;
}

.ah-order-detail {
  border-radius: 22px;
  overflow: hidden;
}

.modal-dialog:has(.ah-order-detail),
.modal-dialog:has(.ah-rfq-form) {
  max-width: min(960px, calc(100vw - 32px));
  margin-block: 16px;
}

.modal-dialog:has(.ah-order-detail) .modal-content,
.modal-dialog:has(.ah-rfq-form) .modal-content {
  max-height: calc(100vh - 32px);
  overflow: hidden;
  border: 1px solid var(--ah-market-border, #e5e7eb);
  border-radius: 18px;
}

.modal-dialog:has(.ah-order-detail) .modal-body,
.modal-dialog:has(.ah-rfq-form) .modal-body {
  max-height: calc(100vh - 96px);
  overflow: auto;
}

.modal-dialog:has(.ah-quote-modal) {
  max-width: min(760px, calc(100vw - 32px));
  margin-block: 16px;
}

.modal-dialog:has(.ah-quote-modal) .modal-content {
  max-height: calc(100vh - 32px);
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--ah-market-accent, var(--ah-market-gold)) 18%, var(--ah-market-border));
  border-radius: 18px;
  color: var(--ah-market-text);
  background: var(--ah-market-surface);
  box-shadow: var(--ah-market-shadow-lg);
}

.modal-dialog:has(.ah-quote-modal) .modal-body {
  max-height: calc(100vh - 96px);
  overflow: auto;
}

.ah-quote-modal__header {
  border-bottom: 1px solid color-mix(in srgb, var(--ah-market-accent, var(--ah-market-gold)) 16%, var(--ah-market-border));
  background: linear-gradient(135deg, color-mix(in srgb, var(--ah-market-surface) 82%, var(--ah-market-pale-gold)), var(--ah-market-surface));
}

.ah-quote-modal__header .modal-title {
  color: var(--ah-market-charcoal);
  font-weight: 850;
}

.ah-quote-modal__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin: -4px -4px -4px auto;
  padding: 0;
  border: 1px solid var(--ah-market-border);
  border-radius: 50%;
  color: var(--ah-market-charcoal);
  background: var(--ah-market-surface);
  font-size: 25px;
  line-height: 1;
  opacity: 1;
  text-shadow: none;
}

[dir="RTL"] .ah-quote-modal__close {
  margin-inline-start: -4px;
  margin-inline-end: auto;
}

.ah-quote-modal__close:hover,
.ah-quote-modal__close:focus {
  color: var(--ah-market-deep-gold);
  background: var(--ah-market-pale-gold);
  border-color: color-mix(in srgb, var(--ah-market-accent, var(--ah-market-gold)) 32%, var(--ah-market-border));
  box-shadow: var(--ah-market-shadow-sm);
}

.ah-quote-modal {
  color: var(--ah-market-charcoal);
  background:
    radial-gradient(circle at 12% 0%, color-mix(in srgb, var(--ah-market-accent, var(--ah-market-gold)) 20%, transparent), transparent 34%),
    linear-gradient(180deg, color-mix(in srgb, var(--ah-market-page) 86%, var(--ah-market-surface)), var(--ah-market-page));
}

.ah-quote-service-summary {
  margin-block-end: 16px;
  padding: 14px 16px;
  border: 1px solid color-mix(in srgb, var(--ah-market-accent, var(--ah-market-gold)) 16%, var(--ah-market-border));
  border-radius: 16px;
  background: color-mix(in srgb, var(--ah-market-surface) 88%, transparent);
  box-shadow: var(--ah-market-shadow-sm);
}

.ah-quote-modal .alert-light,
.ah-quote-modal .alert-info,
.ah-quote-modal .alert-success {
  color: var(--ah-market-text);
  border-color: color-mix(in srgb, var(--ah-market-accent, var(--ah-market-gold)) 16%, var(--ah-market-border));
  background: color-mix(in srgb, var(--ah-market-surface) 80%, var(--ah-market-soft-surface));
}

.ah-quote-modal .alert-light a,
.ah-quote-modal .alert-info a,
.ah-quote-modal .alert-success a {
  color: var(--ah-market-deep-gold);
}

.ah-rfq-form .form-label,
.ah-rfq-form .form-text {
  color: var(--ah-market-muted);
}

.ah-rfq-form .form-label {
  font-weight: 700;
}

.ah-quote-thread {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--ah-market-border);
  border-radius: 18px;
  background:
    linear-gradient(color-mix(in srgb, var(--ah-market-surface) 58%, transparent), color-mix(in srgb, var(--ah-market-surface) 58%, transparent)),
    radial-gradient(color-mix(in srgb, var(--ah-market-accent, var(--ah-market-gold)) 16%, transparent) 1px, transparent 1px);
  background-size: auto, 18px 18px;
}

.ah-quote-message {
  display: flex;
  min-width: 0;
}

.ah-quote-message--mine {
  justify-content: flex-end;
}

.ah-quote-message--theirs {
  justify-content: flex-start;
}

.ah-quote-bubble {
  display: grid;
  gap: 8px;
  width: fit-content;
  max-width: min(86%, 520px);
  padding: 10px 12px;
  border-radius: 17px;
  color: var(--ah-market-charcoal);
  box-shadow: var(--ah-market-shadow-sm);
}

.ah-quote-message--mine .ah-quote-bubble {
  color: var(--ah-market-on-accent);
  border: 1px solid color-mix(in srgb, var(--ah-market-accent-strong, var(--ah-market-deep-gold)) 30%, var(--ah-market-border));
  border-end-end-radius: 5px;
  background: linear-gradient(135deg, var(--ah-market-gold), var(--ah-market-soft-gold));
}

.ah-quote-message--theirs .ah-quote-bubble {
  border: 1px solid var(--ah-market-border);
  border-start-start-radius: 5px;
  background: var(--ah-market-surface);
}

.ah-quote-message__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  font-size: .76rem;
  line-height: 1.25;
}

.ah-quote-message__meta strong {
  color: inherit;
  font-weight: 850;
}

.ah-quote-message__meta span {
  color: var(--ah-market-muted);
}

.ah-quote-message__body {
  color: inherit;
  font-size: .92rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.ah-quote-attachments {
  display: grid;
  gap: 8px;
}

.ah-quote-attachment {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  overflow: hidden;
  min-width: min(100%, 260px);
  border: 1px solid var(--ah-market-border);
  border-radius: 13px;
  color: var(--ah-market-charcoal);
  background: color-mix(in srgb, var(--ah-market-surface) 78%, transparent);
  text-decoration: none;
}

.ah-quote-attachment:hover,
.ah-quote-attachment:focus {
  color: var(--ah-market-charcoal);
  border-color: color-mix(in srgb, var(--ah-market-accent, var(--ah-market-gold)) 32%, var(--ah-market-border));
  background: var(--ah-market-surface);
  text-decoration: none;
}

.ah-quote-attachment__preview {
  position: relative;
  display: block;
  width: 72px;
  height: 58px;
  overflow: hidden;
  background: var(--ah-market-soft-surface);
}

.ah-quote-attachment__preview img,
.ah-quote-attachment__preview video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ah-quote-attachment__play {
  position: absolute;
  inset: 50% auto auto 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: var(--ah-market-surface);
  background: color-mix(in srgb, var(--ah-market-charcoal) 74%, transparent);
  font-size: .75rem;
  transform: translate(-50%, -50%);
}

.ah-quote-attachment__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 58px;
  color: var(--ah-market-deep-gold);
  background: color-mix(in srgb, var(--ah-market-soft-gold) 52%, transparent);
  font-size: 1.35rem;
}

.ah-quote-attachment__meta {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding-inline-end: 10px;
}

.ah-quote-attachment__name {
  overflow: hidden;
  color: inherit;
  font-size: .84rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ah-quote-attachment__details {
  color: var(--ah-market-muted);
  font-size: .74rem;
  font-weight: 700;
  text-transform: uppercase;
}

.ah-quote-proposal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px;
  border: 1px solid color-mix(in srgb, var(--ah-market-accent, var(--ah-market-gold)) 20%, var(--ah-market-border));
  border-radius: 12px;
  background: color-mix(in srgb, var(--ah-market-surface) 64%, var(--ah-market-pale-gold));
  font-size: .82rem;
}

.ah-quote-proposal span {
  color: var(--ah-market-muted);
  font-weight: 800;
}

.ah-quote-proposal strong {
  color: var(--ah-market-deep-gold);
}

.ah-order-timeline {
  margin-block-end: 24px;
  padding: 16px;
  background: #f7f8fa;
  border: 1px solid var(--ah-market-border, #e5e7eb);
  border-radius: 20px;
}

.ah-order-timeline h3 {
  margin: 0 0 14px;
  color: var(--ah-market-text, #222426);
  font-weight: 850;
}

.ah-order-timeline ol {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.ah-order-timeline li {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px 12px;
  align-items: start;
}

.ah-order-timeline li > span {
  width: 16px;
  height: 16px;
  margin-block-start: 3px;
  background: #d9dadc;
  border-radius: 999px;
}

.ah-order-timeline li.is-complete > span {
  background: var(--ah-market-success, #1e9e63);
}

.ah-order-timeline li.is-problem > span {
  background: var(--ah-market-warning, #d9822b);
}

.ah-order-timeline strong {
  color: var(--ah-market-text, #222426);
}

.ah-order-timeline small {
  grid-column: 2;
  color: var(--ah-market-muted, #6b7280);
}

.ah-responsive-table-cards__note {
  display: grid;
  gap: 4px;
  padding: 12px;
  color: var(--ah-market-muted, #6b7280);
  background: #f7f8fa;
  border: 1px solid var(--ah-market-border, #e5e7eb);
  border-radius: 16px;
}

body.night-mode .ah-cart-page__header,
body.night-mode .ah-cart-shop,
body.night-mode .ah-cart-item,
body.night-mode .ah-checkout-panel,
body.night-mode .ah-order-summary,
body.night-mode .ah-checkout-steps li,
body.night-mode .ah-order-card,
body.night-mode .ah-order-detail {
  background: #242526;
  border-color: rgba(255, 255, 255, 0.1);
}

body.night-mode .ah-order-card__meta > div,
body.night-mode .ah-order-timeline,
body.night-mode .ah-responsive-table-cards__note,
body.night-mode .ah-checkout-address {
  background: #18191a;
  border-color: rgba(255, 255, 255, 0.1);
}

body.night-mode .ah-order-summary__header h3,
body.night-mode .ah-order-summary__rows dd,
body.night-mode .ah-order-card__header h3,
body.night-mode .ah-order-card__meta strong,
body.night-mode .ah-cart-item__title,
body.night-mode .ah-cart-item__line-total strong,
body.night-mode .ah-order-timeline h3,
body.night-mode .ah-order-timeline strong {
  color: #f3f4f6;
}

body.night-mode .ah-market-page .form-control,
body.night-mode .ah-market-page .form-select,
body.night-mode .ah-market-filter .form-control,
body.night-mode .ah-market-filter .form-select,
body.night-mode .ah-rfq-form .form-control,
body.night-mode .ah-rfq-form .form-select,
body.night-mode .ah-order-detail .form-control,
body.night-mode .ah-order-detail .form-select {
  color: var(--ah-market-text);
  background-color: var(--ah-bg-surface);
  border-color: var(--ah-market-border);
}

body.night-mode .ah-cart-item__media,
body.night-mode .ah-cart-item__chips .bg-light,
body.night-mode .ah-order-summary .bg-light {
  background-color: #18191a !important;
}

body.night-mode .ah-cart-item__seller,
body.night-mode .ah-cart-item__line-total span {
  color: #b8bec7;
}

body.night-mode .ah-order-summary__rows dt,
body.night-mode .ah-order-summary__note,
body.night-mode .ah-checkout-steps small,
body.night-mode .ah-order-card__meta span,
body.night-mode .ah-order-timeline small,
body.night-mode .ah-responsive-table-cards__note {
  color: #c7c9cc;
}

@media (min-width: 768px) {
  .ah-cart-page__header,
  .ah-cart-shop__header,
  .ah-order-card__header {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .ah-order-card__meta {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .ah-order-card__actions .btn,
  .ah-order-summary .btn {
    flex: 1 1 100%;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ah-cart-item,
  .ah-order-card,
  .ah-checkout-steps li {
    transition: none !important;
  }
}

/* Phase 11B marketplace catalog hardening */
.ah-market-catalog,
.ah-market-catalog *,
.ah-market-pagebar,
.ah-market-search-sticky {
  box-sizing: border-box;
}

.ah-market-pagebar__brand {
  min-width: 0;
}

.ah-market-pagebar__brand strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ah-market-all-items .ah-market-section__header,
.ah-market-top-selling .ah-market-section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.ah-market-all-items .ah-market-section__header .badge {
  flex: 0 0 auto;
  width: auto;
}

.ah-market-catalog-search .btn-primary {
  border-color: var(--ah-market-gold);
  color: var(--ah-market-charcoal);
  background: var(--ah-market-gold);
  font-weight: 800;
}

.ah-product-grid__row,
.ah-service-grid__row {
  --bs-gutter-x: 18px;
  row-gap: 18px;
}

.ah-product-grid__row .ah-market-card-col,
.ah-service-grid__row .ah-market-card-col {
  flex: 0 0 auto;
  min-width: 0;
}

.ah-market-card {
  border-radius: 8px;
}

.ah-market-card__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

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

.ah-market-card__body {
  gap: 8px;
  padding: 14px;
}

.ah-market-card__title {
  overflow-wrap: anywhere;
}

@media (max-width: 575.98px) {
  .ah-market-immersive-body .ah-market-shell {
    width: auto;
    margin-inline: 16px;
    padding-inline: 0;
  }

  .ah-market-catalog {
    padding-block-start: 10px;
  }

  .ah-market-pagebar {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    margin-block-start: 18px;
    padding: 8px;
  }

  .ah-market-pagebar__actions {
    width: 100%;
    margin-inline-start: 0;
    justify-content: flex-start;
    gap: 6px;
  }

  .ah-market-pagebar__logo,
  .ah-market-icon-btn,
  .ah-market-avatar-btn {
    width: 36px;
    height: 36px;
  }

  .ah-market-icon-btn--social {
    margin-inline-start: 0;
  }

  .ah-market-catalog-hero__tabs {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .ah-market-catalog-hero__tab {
    justify-content: center;
    width: 100%;
    min-width: 0;
    padding-inline: 8px;
  }

  .ah-market-catalog-search {
    grid-template-columns: 46px minmax(0, 1fr);
  }

  .ah-market-catalog-search__field,
  .ah-market-catalog-search__location,
  .ah-market-catalog-search .btn {
    min-width: 0;
  }

  .ah-market-all-items .ah-market-section__header,
  .ah-market-top-selling .ah-market-section__header {
    align-items: flex-start;
  }

  .ah-market-card__body {
    min-height: 0;
  }
}

@media (max-width: 1199.98px) and (min-width: 992px) {
  .ah-market-catalog-results .ah-market-card-col {
    width: 50%;
  }
}

@media (max-width: 420px) {
  .ah-market-catalog-hero__tab {
    min-height: 40px;
  }
}

@media (max-width: 767.98px) {
  .ah-cart-item {
    grid-template-columns: 98px minmax(0, 1fr);
    min-height: 154px;
    border-radius: 14px;
  }

  .ah-cart-item__body {
    gap: 8px;
    padding: 10px;
  }

  .ah-cart-item__topline {
    display: grid;
  }

  .ah-cart-item__line-total {
    min-width: 0;
    text-align: start;
  }

  .ah-cart-item__chips {
    gap: 5px;
  }

  .ah-cart-item__chips .badge {
    font-size: 10px;
  }

  .ah-cart-item__controls {
    gap: 6px;
  }

  .ah-cart-item__controls .btn {
    min-width: 40px;
    min-height: 40px;
  }

  .ah-cart-item__quantity .form-label {
    margin-block-end: 2px;
  }

  .ah-market-filter {
    margin-block-end: 16px;
  }

  .ah-market-shell__layout .ah-market-shell__filters {
    order: 1 !important;
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
  }

  .ah-market-shell__layout .ah-market-main-slot {
    order: 2 !important;
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 575.98px) {
  .ah-cart-shop .card-body {
    padding: 12px;
  }

  .ah-cart-shop__header {
    padding: 12px;
  }

  .ah-cart-item {
    grid-template-columns: 92px minmax(0, 1fr);
  }

  .ah-cart-item__title {
    font-size: 14px;
  }

  .ah-cart-item__seller {
    font-size: 11px;
  }

  .ah-seller-card__cover {
    min-height: 68px;
  }

  .ah-seller-card__body {
    grid-template-columns: 50px minmax(0, 1fr);
    gap: 10px;
    padding: 12px;
  }

  .ah-seller-card__avatar {
    width: 50px;
    height: 50px;
    margin-block-start: -26px;
  }

  .ah-seller-card__stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 380px) {
  .ah-cart-item {
    grid-template-columns: 84px minmax(0, 1fr);
  }

  .ah-cart-item__price {
    inset-block-start: 8px;
    inset-inline-start: 8px;
    max-width: calc(100% - 16px);
    padding-inline: 7px;
    font-size: 10px;
  }
}

/* Phase 11C publisher QA interaction polish */
.ah-market-pagebar__actions {
  align-items: center;
  flex-wrap: wrap;
}

.ah-market-icon-btn,
.ah-market-avatar-btn,
.ah-market-catalog-hero__tab,
.ah-market-mobile-filter-btn,
.ah-market-card__primary-action,
.ah-market-card__more,
.ah-market-search-submit {
  position: relative;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, background-color .16s ease, color .16s ease;
}

.ah-market-icon-btn:hover,
.ah-market-avatar-btn:hover,
.ah-market-catalog-hero__tab:hover,
.ah-market-mobile-filter-btn:hover,
.ah-market-card__primary-action:hover,
.ah-market-card__more:hover,
.ah-market-search-submit:hover {
  transform: translateY(-1px);
}

.ah-market-icon-btn:active,
.ah-market-avatar-btn:active,
.ah-market-catalog-hero__tab:active,
.ah-market-mobile-filter-btn:active,
.ah-market-card__primary-action:active,
.ah-market-card__more:active,
.ah-market-search-submit:active {
  transform: translateY(0) scale(.98);
}

.ah-market-icon-btn:focus-visible,
.ah-market-avatar-btn:focus-visible,
.ah-market-catalog-hero__tab:focus-visible,
.ah-market-mobile-filter-btn:focus-visible,
.ah-market-card__primary-action:focus-visible,
.ah-market-search-submit:focus-visible,
.ah-market-category-sidebar__link:focus-visible {
  outline: 3px solid rgba(247, 199, 53, .45);
  outline-offset: 2px;
}

.ah-market-action-label {
  position: absolute;
  inset-block-start: calc(100% + 7px);
  inset-inline-start: 50%;
  z-index: 40;
  max-width: 132px;
  padding: 5px 8px;
  border: 1px solid rgba(95, 96, 98, .12);
  border-radius: 999px;
  color: var(--ah-market-charcoal);
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 10px 24px rgba(34, 36, 38, .16);
  font-size: .72rem;
  font-weight: 800;
  line-height: 1.1;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -4px) scale(.96);
  transition: opacity .16s ease, transform .16s ease;
  white-space: nowrap;
}

.ah-market-account-menu {
  right: 0;
  left: auto;
  max-width: min(260px, calc(100vw - 24px));
}

[dir="RTL"] .ah-market-account-menu {
  right: auto;
  left: 0;
}

[dir="RTL"] .ah-market-action-label {
  transform: translate(50%, -4px) scale(.96);
}

.ah-market-icon-btn:hover .ah-market-action-label,
.ah-market-icon-btn:focus-visible .ah-market-action-label,
.ah-market-avatar-btn:hover .ah-market-action-label,
.ah-market-avatar-btn:focus-visible .ah-market-action-label {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

[dir="RTL"] .ah-market-icon-btn:hover .ah-market-action-label,
[dir="RTL"] .ah-market-icon-btn:focus-visible .ah-market-action-label,
[dir="RTL"] .ah-market-avatar-btn:hover .ah-market-action-label,
[dir="RTL"] .ah-market-avatar-btn:focus-visible .ah-market-action-label {
  transform: translate(50%, 0) scale(1);
}

.ah-market-tab-micro {
  color: var(--ah-market-muted);
  font-size: .72rem;
  font-weight: 800;
  line-height: 1;
  opacity: .74;
}

.ah-market-catalog-search {
  grid-template-columns: minmax(170px, 260px) minmax(260px, 1fr);
}

.ah-market-catalog-search__field {
  display: flex;
  align-items: center;
  min-width: 0;
  border: 1px solid var(--ah-market-border);
  border-radius: 999px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .64);
  transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease;
}

.ah-market-catalog-search__field:focus-within {
  border-color: rgba(216, 169, 22, .68);
  box-shadow: 0 0 0 4px rgba(247, 199, 53, .16);
}

.ah-market-catalog-search__field input {
  min-width: 0;
  border: 0;
  background: transparent;
  padding-inline: 18px 8px;
}

.ah-market-search-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  margin-inline-end: 3px;
  border: 0;
  border-radius: 50%;
  color: var(--ah-market-charcoal);
  background: var(--ah-market-soft-gold);
  box-shadow: none;
  cursor: pointer;
}

.ah-market-search-submit i {
  position: static;
  color: inherit;
  transform: none;
}

.ah-market-catalog-search__field:focus-within .ah-market-search-submit,
.ah-market-search-submit:hover {
  background: var(--ah-market-gold);
  box-shadow: 0 8px 18px rgba(216, 169, 22, .24);
}

.ah-market-catalog-search__location {
  min-width: 0;
  border-radius: 999px;
  padding-inline: 16px 34px;
}

.ah-market-catalog-layout {
  min-height: 0;
}

@media (min-width: 992px) {
  .ah-market-catalog-layout {
    grid-template-columns: minmax(250px, 300px) minmax(0, 1fr);
    max-height: calc(100vh - 84px);
    overflow: hidden;
  }

  .ah-market-category-sidebar--desktop {
    grid-column: 1;
    top: 76px;
    max-height: calc(100vh - 92px);
    overflow: hidden;
  }

  .ah-market-catalog-results {
    grid-column: 2;
    max-height: calc(100vh - 92px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-inline-end: 4px;
  }

  [dir="RTL"] .ah-market-catalog-layout {
    grid-template-columns: minmax(250px, 300px) minmax(0, 1fr);
  }

  [dir="RTL"] .ah-market-category-sidebar--desktop {
    grid-column: 1;
  }

  [dir="RTL"] .ah-market-catalog-results {
    grid-column: 2;
    padding-inline: 4px 0;
  }
}

.ah-market-category-sidebar__head {
  border-color: rgba(216, 169, 22, .2);
  background:
    linear-gradient(135deg, rgba(255, 244, 194, .72), rgba(255, 255, 255, .94));
}

.ah-market-category-sidebar__list {
  max-height: calc(100vh - 154px);
  overflow-y: auto;
  overscroll-behavior: contain;
  gap: 8px;
}

.ah-market-category-sidebar__link {
  justify-content: stretch;
  min-height: 42px;
  border: 1px solid transparent;
  background: rgba(247, 248, 250, .76);
  transition: transform .16s ease, border-color .16s ease, background-color .16s ease, box-shadow .16s ease;
}

.ah-market-category-sidebar__link:hover,
.ah-market-category-sidebar__link.active {
  border-color: rgba(216, 169, 22, .28);
  background: var(--ah-market-pale-gold);
  box-shadow: 0 8px 18px rgba(63, 64, 66, .08);
  transform: translateX(2px);
}

[dir="RTL"] .ah-market-category-sidebar__link:hover,
[dir="RTL"] .ah-market-category-sidebar__link.active {
  transform: translateX(-2px);
}

.ah-market-category-sidebar__marker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  color: var(--ah-market-charcoal);
  background: var(--ah-market-soft-gold);
  font-size: .82rem;
}

.ah-market-category-sidebar__name {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ah-market-category-sidebar__link strong {
  flex: 0 0 auto;
  color: var(--ah-market-charcoal);
  background: #fff;
}

.ah-top-selling__rail .ah-market-card-col,
.ah-market-top-selling__rail .ah-market-card-col {
  flex-basis: 250px;
  max-width: 250px;
}

.ah-product-grid__row,
.ah-service-grid__row {
  --bs-gutter-x: 14px;
  row-gap: 14px;
}

.ah-market-card {
  box-shadow: 0 8px 20px rgba(63, 64, 66, .07);
}

.ah-market-card__media {
  aspect-ratio: 16 / 10;
}

.ah-market-card__price {
  min-height: 27px;
  padding: 4px 9px;
  font-size: .78rem;
}

.ah-market-card__overlay {
  inset-block-end: 8px;
  inset-inline-end: 8px;
}

.ah-market-card__more {
  min-height: 32px;
  padding-block: 4px;
  border-radius: 999px;
  font-size: .78rem;
}

.ah-market-card__body {
  min-height: 0;
  padding: 12px;
}

.ah-market-card__title {
  min-height: 38px;
  font-size: .96rem;
}

.ah-market-card__meta {
  min-height: 24px;
  font-size: .84rem;
}

.ah-market-card__primary-action {
  min-height: 38px;
  border-radius: 8px;
  font-size: .9rem;
}

body.night-mode .ah-market-action-label,
body.night-mode .ah-market-catalog-search__field,
body.night-mode .ah-market-category-sidebar__link strong {
  border-color: rgba(255, 255, 255, .12);
  color: #f5f5f5;
  background: #1d1f21;
}

body.night-mode .ah-market-category-sidebar__head {
  background: linear-gradient(135deg, rgba(247, 199, 53, .14), #242526);
}

body.night-mode .ah-market-category-sidebar__link {
  background: rgba(29, 31, 33, .84);
}

body.night-mode .ah-market-category-sidebar__link:hover,
body.night-mode .ah-market-category-sidebar__link.active {
  background: rgba(247, 199, 53, .16);
}

@media (max-width: 991.98px) {
  .ah-market-catalog-search {
    grid-template-columns: 46px minmax(0, 1fr);
  }

  .ah-market-mobile-filter-btn {
    grid-column: 1;
    grid-row: 1;
  }

  .ah-market-catalog-search__location {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .ah-market-catalog-search__field {
    grid-column: 2;
    grid-row: 1;
  }

  .ah-market-category-sidebar__drawer {
    display: flex;
    flex-direction: column;
  }

  .ah-market-category-sidebar__drawer .ah-market-category-sidebar__list {
    flex: 1 1 auto;
    max-height: none;
    align-content: start;
    grid-auto-rows: max-content;
  }
}

@media (max-width: 575.98px) {
  .ah-market-immersive-body .ah-market-shell {
    margin-inline: 12px;
  }

  .ah-market-search-sticky {
    padding: 8px;
    overflow: hidden;
  }

  .ah-market-catalog-search {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 8px;
  }

  .ah-market-mobile-filter-btn {
    width: 44px;
    min-width: 44px;
    height: 44px;
  }

  .ah-market-catalog-search__location {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .ah-market-catalog-search__field {
    grid-column: 2;
    grid-row: 1;
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .ah-market-catalog-search__field input {
    flex: 1 1 auto;
    width: 1%;
    min-width: 0;
  }

  .ah-market-action-label {
    display: none;
  }

  .ah-market-catalog-hero__tab {
    gap: 6px;
    max-width: 100%;
    overflow: hidden;
  }

  .ah-market-catalog-hero__tab span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .ah-market-catalog-hero__copy p {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .ah-market-tab-micro {
    display: none;
  }

  .ah-market-top-selling__rail .ah-market-card-col {
    flex-basis: 230px;
    max-width: 230px;
  }

  .ah-market-page__header {
    align-items: stretch;
    flex-direction: column;
  }

  .ah-market-page__header form {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ah-market-icon-btn,
  .ah-market-avatar-btn,
  .ah-market-catalog-hero__tab,
  .ah-market-mobile-filter-btn,
  .ah-market-card,
  .ah-market-card__primary-action,
  .ah-market-card__more,
  .ah-market-search-submit,
  .ah-market-category-sidebar__link,
  .ah-market-action-label {
    transition: none !important;
    transform: none !important;
  }
}

/* Marketplace card density correction */
.ah-market-catalog-results .ah-market-card,
.ah-market-top-selling__rail .ah-market-card,
.ah-top-selling__rail .ah-market-card {
  align-self: flex-start;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 18px rgba(33, 37, 41, .08);
}

.ah-market-catalog-results .ah-market-card-col {
  align-items: flex-start;
}

.ah-market-card__media {
  flex: 0 0 152px;
  height: 152px;
  aspect-ratio: auto;
}

.ah-market-card__price {
  inset-block-start: 8px;
  inset-inline-start: 8px;
  min-height: 25px;
  padding: 4px 8px;
  font-size: .78rem;
}

.ah-market-card__overlay {
  inset-block-end: 7px;
  inset-inline-end: 7px;
}

.ah-market-card__more {
  min-height: 30px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: .76rem;
}

.ah-market-card__body {
  flex: 0 0 auto;
  min-height: 0;
  gap: 7px;
  padding: 10px 11px 11px;
}

.ah-market-card__head {
  gap: 8px;
  align-items: flex-start;
}

.ah-market-card__title {
  flex: 1 1 auto;
  min-height: 0;
  font-size: .92rem;
  line-height: 1.22;
  -webkit-line-clamp: 2;
}

.ah-market-card__type-badge {
  padding: 3px 6px;
  border-radius: 6px;
  font-size: .68rem;
}

.ah-market-card__seller-line {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  color: var(--ah-market-muted);
  font-size: .8rem;
}

.ah-market-card__seller-line .main-icon {
  flex: 0 0 15px;
  width: 15px !important;
  height: 15px !important;
}

.ah-market-card__seller {
  min-width: 0;
  overflow: hidden;
  color: var(--ah-market-deep-graphite);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ah-market-card__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  min-width: 0;
}

.ah-market-card__fact {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 24px;
  padding: 3px 7px;
  border: 1px solid rgba(95, 96, 98, .12);
  border-radius: 999px;
  color: var(--ah-market-muted);
  background: #f7f8fa;
  font-size: .75rem;
  line-height: 1.2;
}

.ah-market-card__fact .main-icon {
  flex: 0 0 14px;
  width: 14px !important;
  height: 14px !important;
}

.ah-market-card__fact--state {
  color: #17823b;
  background: #effaf2;
  border-color: rgba(23, 130, 59, .16);
  font-weight: 800;
}

.ah-service-card .ah-market-card__fact--state {
  color: #235a91;
  background: #eef6ff;
  border-color: rgba(35, 90, 145, .16);
}

.ah-market-card__actions {
  margin-block-start: 4px;
}

.ah-market-card__primary-action {
  width: 100%;
  min-height: 34px;
  padding: 6px 10px;
  border-radius: 8px;
  box-shadow: none;
  font-size: .82rem;
  line-height: 1.2;
}

body.night-mode .ah-market-card__seller,
body.night-mode .ah-market-card__seller-line {
  color: #f1f1f1;
}

body.night-mode .ah-market-card__fact {
  border-color: rgba(255, 255, 255, .1);
  color: #d8dcdf;
  background: #242526;
}

body.night-mode .ah-market-card__fact--state {
  color: #bceecb;
  background: rgba(38, 166, 91, .16);
}

body.night-mode .ah-service-card .ah-market-card__fact--state {
  color: #bfdbfe;
  background: rgba(37, 99, 235, .18);
}

/* Marketplace dark appearance hardening */
body.night-mode .ah-market-pagebar__logo,
body.night-mode .ah-market-icon-btn,
body.night-mode .ah-market-avatar-btn,
body.night-mode .ah-market-mobile-filter-btn {
  border-color: rgba(255, 255, 255, .12) !important;
  color: #f5f5f5 !important;
  background: #1d1f21 !important;
}

body.night-mode .ah-market-icon-btn.active,
body.night-mode .ah-market-icon-btn--accent {
  border-color: rgba(247, 199, 53, .42) !important;
  color: #ffe9a6 !important;
  background: rgba(247, 199, 53, .16) !important;
}

body.night-mode .ah-market-catalog-hero__tab {
  border-color: rgba(255, 255, 255, .12);
  color: #f5f5f5;
  background: rgba(29, 31, 33, .88);
}

body.night-mode .ah-market-catalog-hero__tab.active {
  border-color: rgba(247, 199, 53, .42);
  color: #ffe9a6;
  background: linear-gradient(135deg, rgba(247, 199, 53, .2), rgba(29, 31, 33, .96));
}

body.night-mode .ah-market-catalog-search__location,
body.night-mode .ah-market-catalog-search__field {
  border-color: rgba(255, 255, 255, .14) !important;
  color: #f5f5f5 !important;
  background: #1d1f21 !important;
}

body.night-mode .ah-market-catalog-search__field input {
  color: #f5f5f5;
}

body.night-mode .ah-market-catalog-search__field input::placeholder {
  color: #a9b0b7;
}

body.night-mode .ah-market-search-submit {
  color: #1d1f21;
  background: #f7c735;
}

body.night-mode .ah-market-card__media {
  background: #263238;
}

body.night-mode .ah-market-card__more {
  border-color: rgba(255, 255, 255, .18);
  color: #f5f5f5;
  background: rgba(29, 31, 33, .92);
}

body.night-mode .ah-market-empty {
  color: #f3f4f6;
}

body.night-mode .ah-market-category-sidebar__drawer {
  border-color: rgba(255, 255, 255, .12);
  color: #f5f5f5;
  background: #1d1f21;
}

/* Marketplace micro polish fixes */
.ah-market-catalog {
  overflow: visible;
}

.ah-market-main-slot--full {
  overflow: visible;
}

.ah-market-pagebar__logo,
.ah-market-pagebar__logo .svg-container,
.ah-market-pagebar__logo svg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ah-market-pagebar__logo .svg-container,
.ah-market-pagebar__logo svg {
  line-height: 0;
}

.ah-market-catalog-hero__tab .svg-container,
.ah-market-catalog-hero__tab .svg-container svg,
.ah-market-catalog-hero__tab .svg-container svg * {
  color: inherit;
  fill: currentColor !important;
  stroke: currentColor;
}

.ah-market-catalog-search__field {
  position: relative;
}

.ah-market-catalog-search__field input {
  padding-inline: 46px 8px;
}

.ah-market-catalog-search__field:focus-within input,
.ah-market-catalog-search__field:has(input:not(:placeholder-shown)) input {
  padding-inline: 8px 46px;
}

.ah-market-search-submit {
  position: absolute;
  inset-block-start: 50%;
  inset-inline-start: 6px;
  inset-inline-end: auto;
  z-index: 2;
  color: var(--ah-market-muted);
  background: transparent;
  box-shadow: none;
  transform: translateY(-50%);
  transition: inset-inline-start .18s ease, inset-inline-end .18s ease, color .16s ease, background-color .16s ease, box-shadow .16s ease;
}

.ah-market-search-submit:hover,
.ah-market-catalog-search__field:focus-within .ah-market-search-submit {
  color: var(--ah-market-charcoal);
  background: transparent;
  box-shadow: none;
  transform: translateY(-50%);
}

.ah-market-catalog-search__field:focus-within .ah-market-search-submit,
.ah-market-catalog-search__field:has(input:not(:placeholder-shown)) .ah-market-search-submit {
  inset-inline-start: calc(100% - 44px);
}

.ah-market-catalog-search__field:has(input:not(:placeholder-shown)) .ah-market-search-submit {
  color: var(--ah-market-charcoal);
  background: var(--ah-market-gold);
  box-shadow: 0 8px 18px rgba(216, 169, 22, .24);
}

body.night-mode .ah-market-search-submit {
  color: #a9b0b7;
  background: transparent;
}

body.night-mode .ah-market-catalog-search__field:focus-within .ah-market-search-submit {
  color: #f5f5f5;
  background: transparent;
}

body.night-mode .ah-market-catalog-search__field:has(input:not(:placeholder-shown)) .ah-market-search-submit {
  color: #1d1f21;
  background: #f7c735;
}

.ah-market-catalog-search__field input:focus + .ah-market-search-submit,
.ah-market-catalog-search__field input:not(:placeholder-shown) + .ah-market-search-submit {
  inset-inline-start: calc(100% - 44px) !important;
  inset-inline-end: auto !important;
  left: auto !important;
  right: auto !important;
}

.ah-market-catalog-search__field input:not(:placeholder-shown) + .ah-market-search-submit {
  color: var(--ah-market-charcoal) !important;
  background: var(--ah-market-gold) !important;
  box-shadow: 0 8px 18px rgba(216, 169, 22, .24) !important;
}

[dir="rtl"] .ah-market-catalog-search__field input:focus + .ah-market-search-submit,
[dir="rtl"] .ah-market-catalog-search__field input:not(:placeholder-shown) + .ah-market-search-submit {
  inset-inline-start: calc(100% - 44px) !important;
  inset-inline-end: auto !important;
  left: auto !important;
  right: auto !important;
}

body.night-mode .ah-market-catalog-search__field input:not(:placeholder-shown) + .ah-market-search-submit {
  color: #1d1f21 !important;
  background: #f7c735 !important;
}

.ah-market-category-sidebar__list,
.ah-market-category-sidebar__drawer,
.ah-market-catalog-results,
.ah-market-all-items__body,
.ah-market-top-selling__rail {
  scrollbar-color: rgba(216, 169, 22, .72) rgba(95, 96, 98, .12);
  scrollbar-width: thin;
}

.ah-market-category-sidebar__list,
.ah-market-category-sidebar__drawer,
.ah-market-catalog-results,
.ah-market-all-items__body {
  scrollbar-gutter: stable;
}

.ah-market-category-sidebar__list::-webkit-scrollbar,
.ah-market-category-sidebar__drawer::-webkit-scrollbar,
.ah-market-catalog-results::-webkit-scrollbar,
.ah-market-all-items__body::-webkit-scrollbar {
  width: 10px;
}

.ah-market-top-selling__rail::-webkit-scrollbar {
  height: 10px;
}

.ah-market-category-sidebar__list::-webkit-scrollbar-track,
.ah-market-category-sidebar__drawer::-webkit-scrollbar-track,
.ah-market-catalog-results::-webkit-scrollbar-track,
.ah-market-all-items__body::-webkit-scrollbar-track,
.ah-market-top-selling__rail::-webkit-scrollbar-track {
  border-radius: 999px;
  background:
    linear-gradient(90deg, transparent 0, transparent 3px, rgba(95, 96, 98, .13) 3px, rgba(95, 96, 98, .13) 7px, transparent 7px);
}

.ah-market-category-sidebar__list::-webkit-scrollbar-thumb,
.ah-market-category-sidebar__drawer::-webkit-scrollbar-thumb,
.ah-market-catalog-results::-webkit-scrollbar-thumb,
.ah-market-all-items__body::-webkit-scrollbar-thumb,
.ah-market-top-selling__rail::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(247, 199, 53, .95), rgba(216, 169, 22, .88)) border-box;
  background-clip: padding-box;
  box-shadow: inset 0 0 0 1px rgba(34, 36, 38, .08);
}

.ah-market-category-sidebar__list::-webkit-scrollbar-thumb:hover,
.ah-market-category-sidebar__drawer::-webkit-scrollbar-thumb:hover,
.ah-market-catalog-results::-webkit-scrollbar-thumb:hover,
.ah-market-all-items__body::-webkit-scrollbar-thumb:hover,
.ah-market-top-selling__rail::-webkit-scrollbar-thumb:hover {
  background:
    linear-gradient(180deg, #ffd84e, #d8a916) border-box;
  background-clip: padding-box;
}

body.night-mode .ah-market-category-sidebar__list,
body.night-mode .ah-market-category-sidebar__drawer,
body.night-mode .ah-market-catalog-results,
body.night-mode .ah-market-all-items__body,
body.night-mode .ah-market-top-selling__rail {
  scrollbar-color: rgba(247, 199, 53, .86) rgba(255, 255, 255, .08);
}

body.night-mode .ah-market-category-sidebar__list::-webkit-scrollbar-track,
body.night-mode .ah-market-category-sidebar__drawer::-webkit-scrollbar-track,
body.night-mode .ah-market-catalog-results::-webkit-scrollbar-track,
body.night-mode .ah-market-all-items__body::-webkit-scrollbar-track,
body.night-mode .ah-market-top-selling__rail::-webkit-scrollbar-track {
  background:
    linear-gradient(90deg, transparent 0, transparent 3px, rgba(255, 255, 255, .14) 3px, rgba(255, 255, 255, .14) 7px, transparent 7px);
}

body.night-mode .ah-market-category-sidebar__list::-webkit-scrollbar-thumb,
body.night-mode .ah-market-category-sidebar__drawer::-webkit-scrollbar-thumb,
body.night-mode .ah-market-catalog-results::-webkit-scrollbar-thumb,
body.night-mode .ah-market-all-items__body::-webkit-scrollbar-thumb,
body.night-mode .ah-market-top-selling__rail::-webkit-scrollbar-thumb {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16);
}

@media (max-width: 991.98px) {
  #ah-market-category-toggle:checked ~ .ah-market-catalog-layout .ah-market-category-sidebar__backdrop {
    display: block !important;
  }

  #ah-market-category-toggle:checked ~ .ah-market-catalog-layout .ah-market-category-sidebar__drawer,
  .ah-market-drawer-toggle:checked ~ .ah-market-catalog-layout .ah-market-category-sidebar__drawer,
  .ah-market-catalog.is-drawer-open .ah-market-category-sidebar__drawer {
    inset-inline-start: 0;
    visibility: visible;
    transform: none !important;
  }

  [dir="RTL"] #ah-market-category-toggle:checked ~ .ah-market-catalog-layout .ah-market-category-sidebar__drawer,
  [dir="RTL"] .ah-market-drawer-toggle:checked ~ .ah-market-catalog-layout .ah-market-category-sidebar__drawer,
  [dir="RTL"] .ah-market-catalog.is-drawer-open .ah-market-category-sidebar__drawer {
    inset-inline-start: auto;
    inset-inline-end: 0;
    visibility: visible;
    transform: none !important;
  }
}

@media (min-width: 992px) {
  .ah-market-catalog-layout {
    align-items: stretch;
    position: sticky;
    top: 88px;
    z-index: 12;
  }

  .ah-market-catalog-layout.is-stuck {
    position: fixed;
    inset-block-start: var(--ah-market-catalog-stuck-top, 88px);
    inset-inline-start: var(--ah-market-catalog-stuck-left, 0px);
    width: var(--ah-market-catalog-stuck-width, 100%);
  }

  .ah-market-catalog.is-layout-stuck .ah-market-search-sticky {
    position: fixed;
    inset-block-start: 0;
    inset-inline-start: var(--ah-market-catalog-stuck-left, 0px);
    width: var(--ah-market-catalog-stuck-width, 100%);
  }

  .ah-market-catalog.is-layout-stuck {
    padding-block-end: calc(42px + var(--ah-market-catalog-stuck-top, 88px) + var(--ah-market-catalog-layout-height, 0px));
  }

  .ah-market-category-sidebar--desktop,
  .ah-market-catalog-results {
    height: calc(100vh - 92px);
    min-height: 420px;
    overscroll-behavior-y: auto;
  }

  .ah-market-category-sidebar--desktop {
    display: flex;
    flex-direction: column;
    position: static;
    top: auto;
  }

  .ah-market-category-sidebar--desktop .ah-market-category-sidebar__list {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    overflow-y: auto;
    align-items: stretch;
    justify-content: flex-start;
    overscroll-behavior-y: auto;
  }

  .ah-market-category-sidebar--desktop .ah-market-category-sidebar__link,
  .ah-market-category-sidebar--desktop .ah-market-category-sidebar__children {
    flex: 0 0 auto;
  }

  .ah-market-catalog-results {
    display: flex;
    flex-direction: column;
    overflow-y: auto;
  }

  .ah-market-catalog-results > .ah-market-catalog-title,
  .ah-market-catalog-results > .ah-market-top-selling {
    flex: 0 0 auto;
  }

  .ah-market-catalog-results > .ah-market-all-items {
    position: sticky;
    inset-block-start: 0;
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    min-height: 100%;
    max-height: 100%;
    margin-block-end: 0;
    overflow: hidden;
  }

  .ah-market-all-items__body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior-y: auto;
    padding-inline-end: 2px;
  }

  .ah-market-all-items__pager {
    flex: 0 0 auto;
    margin-block-start: 12px;
    padding-block-start: 10px;
    border-block-start: 1px solid rgba(95, 96, 98, .12);
    background: inherit;
  }

  .ah-market-all-items__pager > .pagination {
    justify-content: center;
    margin-block: 0;
    overflow-x: auto;
    padding-block-end: 2px;
    scrollbar-width: thin;
  }

  .ah-sellers-catalog__results {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    max-height: 100%;
    overflow: hidden;
  }

  .ah-sellers-catalog__body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior-y: auto;
    padding-inline-end: 2px;
  }

  .ah-sellers-catalog__pager {
    flex: 0 0 auto;
    margin-block-start: 12px;
    padding-block-start: 10px;
    border-block-start: 1px solid rgba(95, 96, 98, .12);
    background: inherit;
  }

  .ah-sellers-catalog__pager > .pagination {
    justify-content: center;
    margin-block: 0;
    overflow-x: auto;
    padding-block-end: 2px;
    scrollbar-width: thin;
  }

  [dir="RTL"] .ah-market-category-sidebar--desktop,
  [dir="rtl"] .ah-market-category-sidebar--desktop {
    grid-column: 1;
  }

  [dir="RTL"] .ah-market-catalog-results,
  [dir="rtl"] .ah-market-catalog-results {
    grid-column: 2;
  }
}

@media (min-width: 1200px) {
  .ah-market-catalog-results .ah-product-grid__row .ah-market-card-col,
  .ah-market-catalog-results .ah-service-grid__row .ah-market-card-col {
    width: 25%;
  }
}

@media (max-width: 767.98px) {
  .ah-market-card__media {
    flex-basis: 144px;
    height: 144px;
  }

  .ah-market-card__body {
    padding: 10px;
  }
}

/* Marketplace follow-up hardening */
.ah-market-shell__layout .ah-market-main-slot,
.ah-sellers-listing,
.ah-sellers-listing__grid {
  overflow: visible;
}

.ah-detail-layout {
  align-items: flex-start;
  row-gap: 16px;
}

.ah-detail-layout__media,
.ah-detail-layout__info {
  min-width: 0;
}

.ah-gallery {
  gap: 10px;
}

.ah-gallery__main {
  aspect-ratio: 4 / 3;
  min-height: 0;
  max-height: 520px;
  border-radius: 16px;
  box-shadow: 0 14px 32px rgba(34, 36, 38, .08);
}

.ah-gallery__main img {
  min-height: 0;
  height: 100%;
}

.ah-gallery__thumbs {
  gap: 8px;
}

.ah-gallery__thumb {
  width: 60px;
  height: 60px;
  flex-basis: 60px;
  border-radius: 12px;
}

.ah-detail-panel {
  gap: 12px;
  align-content: start;
  padding: 16px;
  border-radius: 16px;
  box-shadow: 0 14px 32px rgba(34, 36, 38, .08);
}

.ah-detail-panel__header {
  display: grid;
  gap: 8px;
  padding: 14px;
  background: #f8fafc;
  border: 1px solid var(--ah-market-border, #e5e7eb);
  border-radius: 14px;
}

.ah-detail-panel__header h1 {
  margin: 0;
  font-size: clamp(1.3rem, 2.4vw, 1.85rem);
  line-height: 1.15;
}

.ah-detail-panel__price {
  font-size: 1.5rem;
  line-height: 1.1;
}

.ah-detail-panel__meta {
  gap: 6px;
}

.ah-detail-panel__meta .badge {
  max-width: 100%;
  overflow: hidden;
  padding: 7px 10px;
  border-radius: 999px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ah-detail-panel__seller,
.ah-detail-panel__section {
  padding: 12px;
  background: #f8fafc;
  border: 1px solid var(--ah-market-border, #e5e7eb);
  border-radius: 14px;
}

.ah-detail-panel__seller-link {
  min-width: 0;
}

.ah-detail-panel__seller-link span {
  min-width: 0;
}

.ah-detail-panel__seller-link strong,
.ah-detail-panel__seller-link small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ah-detail-panel__section h2,
.ah-service-detail-panel__scope-grid h3,
.ah-rfq-form__summary h3 {
  font-size: .95rem;
}

.ah-detail-panel__section p {
  margin-block-end: 0;
}

.ah-detail-panel__actions {
  position: sticky;
  z-index: 2;
  inset-block-end: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 10px;
  background: rgba(255, 255, 255, .96);
  border: 1px solid var(--ah-market-border, #e5e7eb);
  border-radius: 14px;
  box-shadow: 0 14px 32px rgba(34, 36, 38, .12);
}

.ah-detail-panel__actions .btn {
  min-height: 44px;
  border-radius: 12px;
  font-weight: 850;
}

.ah-detail-panel .ah-market-protection {
  padding: 12px;
  border-radius: 14px;
}

.ah-detail-panel .ah-market-protection__list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.ah-detail-panel .ah-market-protection__list li {
  padding: 8px;
  font-size: .82rem;
}

.ah-service-detail-panel {
  border-inline-start-width: 0;
  border-block-start: 5px solid var(--ah-market-info, #3f6068);
}

.ah-store-section {
  padding: 14px;
}

.ah-store-section .ah-product-grid__row,
.ah-store-section .ah-service-grid__row {
  --bs-gutter-x: 12px;
  row-gap: 12px;
  justify-content: flex-start;
}

.ah-store-section .ah-product-grid__row .ah-market-card-col,
.ah-store-section .ah-service-grid__row .ah-market-card-col {
  width: 25%;
}

.ah-store-section .ah-market-card {
  height: 100%;
}

.ah-order-detail {
  border: 1px solid var(--ah-market-border, #e5e7eb);
  border-radius: 18px;
  background: var(--ah-market-surface, #fff);
}

.ah-order-detail > .card-header {
  padding: 16px !important;
  background: #f8fafc;
  border-block-end: 1px solid var(--ah-market-border, #e5e7eb);
}

.ah-order-detail > .card-header .row {
  justify-content: flex-end;
  row-gap: 12px;
}

.ah-order-detail > .card-header [class*="col-md-"] {
  display: grid;
  gap: 4px;
  min-height: 78px;
  align-content: center;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--ah-market-border, #e5e7eb);
  border-radius: 14px;
}

.ah-order-detail > .card-header .text-end {
  justify-items: end;
}

.ah-order-detail > .card-header .text-end:not(:has(.btn)) {
  display: none;
}

.ah-order-detail > .card-header .btn {
  min-height: 38px;
  margin: 2px;
  border-radius: 12px;
  font-weight: 800;
}

.ah-order-detail .card-body.page-content {
  padding: 16px !important;
}

.ah-order-detail .card-body.page-content > .row {
  row-gap: 14px;
}

.ah-order-detail .ah-order-timeline {
  margin-block-end: 14px;
  padding: 14px;
  border-radius: 16px;
}

.ah-order-detail .ah-order-timeline h3 {
  margin-block-end: 10px;
  font-size: 1.05rem;
}

.ah-order-detail .ah-order-timeline ol {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.ah-order-detail .ah-order-timeline li {
  padding: 10px;
  background: #fff;
  border: 1px solid var(--ah-market-border, #e5e7eb);
  border-radius: 12px;
}

.ah-order-detail .ah-order-timeline small {
  grid-column: 2;
}

.ah-order-detail .section-title {
  margin: 0 0 10px !important;
  padding: 10px 12px;
  color: var(--ah-market-text, #222426);
  background: #f8fafc;
  border: 1px solid var(--ah-market-border, #e5e7eb);
  border-radius: 12px;
  font-weight: 850;
}

.ah-order-detail .plr20 {
  padding-inline: 0 !important;
}

.ah-order-detail .payment-plan.full,
.ah-order-detail .payment-plans,
.ah-order-detail .table-responsive,
.ah-order-detail .order-summary {
  overflow: hidden;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--ah-market-border, #e5e7eb);
  border-radius: 14px;
}

.ah-order-detail .payment-plan.full + .payment-plan.full {
  margin-block-start: 10px;
}

.ah-order-detail .table {
  margin-block-end: 0;
}

.ah-order-detail .table th,
.ah-order-detail .table td {
  vertical-align: middle;
}

body.night-mode .ah-detail-panel__header,
body.night-mode .ah-detail-panel__seller,
body.night-mode .ah-detail-panel__section,
body.night-mode .ah-order-detail > .card-header,
body.night-mode .ah-order-detail .section-title {
  background: #18191a;
  border-color: rgba(255, 255, 255, .1);
}

body.night-mode .ah-detail-panel__actions,
body.night-mode .ah-order-detail > .card-header [class*="col-md-"],
body.night-mode .ah-order-detail .ah-order-timeline li,
body.night-mode .ah-order-detail .payment-plan.full,
body.night-mode .ah-order-detail .payment-plans,
body.night-mode .ah-order-detail .table-responsive,
body.night-mode .ah-order-detail .order-summary {
  background: #242526;
  border-color: rgba(255, 255, 255, .1);
}

body.night-mode .ah-detail-panel__meta .bg-light,
body.night-mode .ah-detail-panel__meta .badge {
  color: #f3f4f6 !important;
  background-color: #18191a !important;
  border: 1px solid rgba(255, 255, 255, .1);
}

@media (min-width: 992px) {
  .ah-detail-layout__media .ah-gallery {
    position: sticky;
    inset-block-start: 86px;
  }

  .ah-store-section .ah-product-grid__row .ah-market-card-col,
  .ah-store-section .ah-service-grid__row .ah-market-card-col {
    flex: 0 0 300px;
    width: 300px;
    max-width: 300px;
  }
}

@media (max-width: 1199.98px) {
  .ah-store-section .ah-product-grid__row .ah-market-card-col,
  .ah-store-section .ah-service-grid__row .ah-market-card-col {
    width: 33.333333%;
  }
}

@media (max-width: 991.98px) {
  .ah-store-section .ah-product-grid__row .ah-market-card-col,
  .ah-store-section .ah-service-grid__row .ah-market-card-col {
    width: 50%;
  }
}

@media (max-width: 767.98px) {
  .ah-gallery__main {
    max-height: none;
  }

  .ah-detail-panel__actions {
    position: static;
    grid-template-columns: minmax(0, 1fr);
  }

  .ah-detail-panel .ah-market-protection__list,
  .ah-order-detail > .card-header [class*="col-md-"] {
    grid-template-columns: minmax(0, 1fr);
  }

  .ah-order-detail > .card-header .text-end {
    justify-items: stretch;
  }
}

@media (max-width: 575.98px) {
  .ah-store-section .ah-product-grid__row .ah-market-card-col,
  .ah-store-section .ah-service-grid__row .ah-market-card-col {
    width: 100%;
  }
}

/* Marketplace professional UX rework */
.ah-sellers-listing {
  gap: 16px;
}

.ah-sellers-listing__grid {
  --bs-gutter-x: 18px;
  row-gap: 18px;
}

.ah-seller-card-col {
  min-width: 0;
}

.ah-seller-card {
  height: 100%;
  border-radius: 8px;
}

.ah-seller-card__cover {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  min-height: 0;
  background-color: #f7f8fa;
  background-position: center;
  background-size: cover;
  border-radius: 8px 8px 0 0;
}

.ah-seller-card__type-pill {
  position: absolute;
  inset-block-start: 10px;
  inset-inline-start: 10px;
  max-width: calc(100% - 20px);
  overflow: hidden;
  padding: 6px 10px;
  color: #fff;
  background: rgba(34, 36, 38, .72);
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ah-seller-card__body {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 10px;
  padding: 12px;
}

.ah-seller-card__avatar {
  width: 58px;
  height: 58px;
  margin-block-start: -34px;
  border-width: 3px;
  border-radius: 14px;
}

.ah-seller-card__main {
  gap: 8px;
}

.ah-seller-card__title-row {
  align-items: flex-start;
}

.ah-seller-card__title {
  font-size: 15px;
  line-height: 1.25;
}

.ah-seller-card__meta {
  min-height: 18px;
  margin: 0;
}

.ah-seller-card__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin: 0;
}

.ah-seller-card__stats div {
  min-width: 0;
  padding: 7px 6px;
}

.ah-seller-card__actions .btn {
  width: 100%;
  min-height: 38px;
}

.ah-detail-buybox {
  display: grid;
  gap: 12px;
  padding: 14px;
  background: linear-gradient(180deg, #fffdf4 0%, #fff 100%);
  border: 1px solid rgba(216, 169, 22, .28);
  border-radius: 16px;
  box-shadow: 0 16px 34px rgba(216, 169, 22, .12);
}

.ah-detail-buybox__price-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.ah-detail-buybox__price-row span,
.ah-detail-buybox__stock span,
.ah-detail-quantity-control > span,
.ah-detail-buybox__assurance {
  color: var(--ah-market-muted, #6b7280);
  font-size: .78rem;
  font-weight: 800;
}

.ah-detail-buybox__price-row strong {
  color: var(--ah-market-text, #222426);
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  line-height: 1;
}

.ah-detail-buybox__controls {
  display: grid;
  grid-template-columns: minmax(140px, 180px) minmax(0, 1fr);
  gap: 10px;
}

.ah-detail-quantity-control,
.ah-detail-buybox__stock {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--ah-market-border, #e5e7eb);
  border-radius: 12px;
}

.ah-detail-panel__quantity {
  width: 100%;
  max-width: none;
  min-height: 38px;
}

.ah-detail-buybox__stock strong {
  color: var(--ah-market-text, #222426);
  font-size: .95rem;
}

.ah-detail-buybox .ah-detail-panel__actions {
  position: static;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.ah-detail-buybox__assurance {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ah-detail-buybox__assurance span {
  padding: 6px 9px;
  color: var(--ah-market-text, #222426);
  background: rgba(247, 199, 53, .16);
  border-radius: 999px;
}

.ah-market-page__header--orders {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 360px) auto;
  align-items: center;
  gap: 14px;
  min-height: 0;
  padding: 16px;
  border-radius: 16px;
}

.ah-market-page__header--orders h2 {
  margin-block-end: 4px;
  font-size: clamp(1.4rem, 2vw, 1.9rem);
}

.ah-market-page__header--orders p {
  max-width: 620px;
  margin: 0;
}

.ah-order-card-list {
  display: grid;
  gap: 12px;
}

.ah-order-card {
  display: grid;
  grid-template-columns: minmax(230px, .75fr) minmax(260px, .9fr) minmax(430px, 1.2fr) minmax(150px, auto);
  gap: 12px;
  align-items: stretch;
  padding: 12px;
  border-radius: 16px;
}

.ah-order-card__header {
  grid-column: 1;
  grid-row: 1;
  display: grid;
  gap: 8px;
  align-content: space-between;
  min-width: 0;
  padding: 10px;
  background: #f8fafc;
  border: 1px solid var(--ah-market-border, #e5e7eb);
  border-radius: 14px;
}

.ah-order-card__header h3 {
  margin-block-end: 4px;
  font-size: .98rem;
  line-height: 1.2;
}

.ah-order-card__identity {
  min-width: 0;
}

.ah-order-card__status {
  justify-self: start;
  max-width: 100%;
  border-radius: 999px;
}

.ah-order-card__summary {
  grid-column: 2;
  grid-row: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-width: 0;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--ah-market-border, #e5e7eb);
  border-radius: 14px;
}

.ah-order-card__summary-copy {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.ah-order-card__summary-copy span,
.ah-order-card__meta span {
  color: var(--ah-market-muted, #6b7280);
  font-size: .74rem;
  font-weight: 850;
  text-transform: uppercase;
}

.ah-order-card__summary-copy strong {
  display: -webkit-box;
  overflow: hidden;
  color: var(--ah-market-text, #222426);
  font-size: .95rem;
  line-height: 1.25;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.ah-order-card__meta {
  grid-column: 3;
  grid-row: 1;
  display: grid;
  grid-template-columns: minmax(120px, 1.25fr) minmax(105px, 1fr) minmax(80px, .8fr) minmax(60px, .55fr);
  gap: 8px;
  min-width: 0;
}

.ah-order-card__meta > div {
  display: grid;
  gap: 4px;
  align-content: center;
  min-width: 0;
  padding: 9px 10px;
  background: #f8fafc;
  border: 1px solid var(--ah-market-border, #e5e7eb);
  border-radius: 12px;
}

.ah-order-card__meta strong {
  overflow: hidden;
  color: var(--ah-market-text, #222426);
  font-size: .9rem;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ah-order-card__meta > div:first-child strong {
  white-space: normal;
}

.ah-order-card__thumbs {
  display: flex;
  flex-wrap: nowrap;
  grid-column: auto;
  grid-row: auto;
  align-self: center;
  justify-content: flex-start;
  min-width: 0;
  max-width: 136px;
  padding: 6px;
  background: #f8fafc;
  border: 1px solid var(--ah-market-border, #e5e7eb);
  border-radius: 12px;
}

.ah-order-card__thumbs img {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  margin-inline-start: -10px;
  border: 2px solid #fff;
  border-radius: 10px;
  object-fit: cover;
}

.ah-order-card__thumbs img:first-child {
  margin-inline-start: 0;
}

.ah-order-card__actions {
  grid-column: 4;
  grid-row: 1;
  display: grid;
  gap: 8px;
  align-self: stretch;
  align-content: center;
  justify-content: stretch;
  min-width: 150px;
}

.ah-order-card__actions .btn {
  width: 100%;
  min-height: 36px;
  padding: 7px 10px;
  border-radius: 12px;
  font-weight: 850;
}

.ah-sales-page .ah-market-sales-stats {
  margin-block: 12px;
}

.ah-sales-page .stat-panel {
  min-height: 104px;
  background: var(--ah-market-surface, #fff) !important;
  border: 1px solid var(--ah-market-border, #e5e7eb);
  border-radius: 16px;
  box-shadow: 0 12px 28px rgba(34, 36, 38, .08);
}

.ah-sales-page .stat-cell {
  color: var(--ah-market-text, #222426);
}

.ah-order-items-list {
  display: grid;
  gap: 10px;
}

.ah-order-item-card {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) minmax(120px, auto);
  gap: 12px;
  align-items: center;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--ah-market-border, #e5e7eb);
  border-radius: 14px;
}

.ah-order-item-card__media {
  aspect-ratio: 1;
  overflow: hidden;
  background: #f7f8fa;
  border-radius: 12px;
}

.ah-order-item-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ah-order-item-card__body {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.ah-order-item-card__title-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.ah-order-item-card__title {
  display: -webkit-box;
  overflow: hidden;
  min-width: 0;
  color: var(--ah-market-text, #222426);
  font-weight: 850;
  line-height: 1.25;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.ah-order-item-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--ah-market-muted, #6b7280);
  font-size: .82rem;
  font-weight: 700;
}

.ah-order-item-card__meta span {
  padding: 5px 8px;
  background: #f8fafc;
  border: 1px solid var(--ah-market-border, #e5e7eb);
  border-radius: 999px;
}

.ah-order-item-card__total {
  display: grid;
  gap: 4px;
  justify-items: end;
  color: var(--ah-market-muted, #6b7280);
  font-size: .78rem;
  font-weight: 800;
}

.ah-order-item-card__total strong {
  color: var(--ah-market-text, #222426);
  font-size: 1rem;
}

body.night-mode .ah-seller-card__cover,
body.night-mode .ah-order-card__thumbs,
body.night-mode .ah-order-card__header,
body.night-mode .ah-order-card__summary,
body.night-mode .ah-order-card__meta > div,
body.night-mode .ah-order-item-card__media,
body.night-mode .ah-order-item-card__meta span,
body.night-mode .ah-detail-quantity-control,
body.night-mode .ah-detail-buybox__stock {
  background: #18191a;
  border-color: rgba(255, 255, 255, .1);
}

body.night-mode .ah-detail-buybox,
body.night-mode .ah-sales-page .stat-panel,
body.night-mode .ah-order-item-card {
  background: #242526 !important;
  border-color: rgba(255, 255, 255, .1);
  box-shadow: none;
}

body.night-mode .ah-detail-buybox__price-row strong,
body.night-mode .ah-detail-buybox__stock strong,
body.night-mode .ah-order-card__summary-copy strong,
body.night-mode .ah-order-card__meta strong,
body.night-mode .ah-order-item-card__title,
body.night-mode .ah-order-item-card__total strong,
body.night-mode .ah-sales-page .stat-cell {
  color: #f3f4f6;
}

body.night-mode .ah-order-card__summary-copy span,
body.night-mode .ah-order-card__meta span,
body.night-mode .ah-order-item-card__meta,
body.night-mode .ah-order-item-card__total,
body.night-mode .ah-detail-buybox__price-row span,
body.night-mode .ah-detail-buybox__stock span,
body.night-mode .ah-detail-quantity-control > span {
  color: #c7c9cc;
}

@media (max-width: 1199.98px) {
  .ah-order-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .ah-order-card__header,
  .ah-order-card__meta,
  .ah-order-card__thumbs,
  .ah-order-card__actions {
    grid-column: auto;
    grid-row: auto;
  }

  .ah-order-card__meta {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .ah-order-card__actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    justify-content: stretch;
  }
}

@media (max-width: 767.98px) {
  .ah-market-page__header--orders {
    grid-template-columns: minmax(0, 1fr);
  }

  .ah-order-card__meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ah-order-card__summary {
    grid-template-columns: minmax(0, 1fr);
  }

  .ah-order-card__thumbs {
    max-width: 100%;
  }

  .ah-order-card__actions {
    grid-template-columns: minmax(0, 1fr);
  }

  .ah-order-item-card {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .ah-order-item-card__total {
    grid-column: 1 / -1;
    justify-items: stretch;
  }
}

@media (max-width: 575.98px) {
  .ah-detail-buybox__controls {
    grid-template-columns: minmax(0, 1fr);
  }

  .ah-seller-card__body {
    grid-template-columns: 52px minmax(0, 1fr);
  }
}

/* Sellers catalog and detail above-the-fold refinement */
.ah-sellers-catalog {
  display: grid;
  gap: 0;
}

.ah-sellers-catalog__hero {
  min-height: 170px;
}

.ah-sellers-catalog__search {
  grid-template-columns: minmax(0, 1fr) auto;
}

.ah-sellers-catalog__search .ah-market-catalog-search__field {
  grid-column: auto;
}

.ah-sellers-catalog__search-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.ah-sellers-catalog__layout {
  display: grid;
  grid-template-columns: minmax(240px, 290px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  min-height: 0;
}

.ah-sellers-catalog__filters,
.ah-sellers-catalog__results {
  min-width: 0;
}

.ah-sellers-catalog__results {
  align-content: start;
  gap: 12px;
}

.ah-sellers-catalog__body {
  min-width: 0;
}

.ah-sellers-catalog__pager > .pagination {
  justify-content: center;
  margin-block: 0;
}

.ah-sellers-catalog .ah-market-filter__hint {
  display: none;
}

.ah-sellers-catalog .ah-market-filter__group {
  gap: 6px;
}

.ah-sellers-catalog .ah-market-filter__group .form-label {
  margin-block-end: 0;
}

.ah-sellers-catalog .ah-sellers-listing {
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.ah-sellers-catalog .ah-sellers-listing__grid {
  --bs-gutter-x: 14px;
  row-gap: 14px;
}

.ah-sellers-catalog .ah-seller-card {
  height: 100%;
}

.ah-seller-card.ah-market-card {
  display: flex;
  flex-direction: column;
  align-self: flex-start;
  height: auto;
  min-height: 0;
  overflow: hidden;
  border-radius: 10px;
  background: var(--ah-market-surface, #fff);
  box-shadow: 0 8px 18px rgba(33, 37, 41, .08);
}

.ah-seller-card .ah-market-card__media,
.ah-seller-card__cover {
  flex: 0 0 152px;
  width: 100%;
  height: 152px;
  min-height: 0;
  aspect-ratio: auto;
  border-radius: 0;
  background-color: #263238;
  background-position: center;
  background-size: cover;
}

.ah-seller-card__cover:not([style]) {
  background:
    radial-gradient(circle at 24% 20%, rgba(236, 185, 56, .28), transparent 32%),
    linear-gradient(135deg, #263238, #1e242d);
}

.ah-seller-card__type-pill {
  inset-block-start: 8px;
  inset-inline-start: 8px;
  max-width: calc(100% - 16px);
  min-height: 25px;
  padding: 4px 8px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 999px;
  color: #fbf6ec;
  background: rgba(30, 36, 45, .82);
  font-size: .78rem;
  line-height: 1.2;
}

.ah-seller-card .ah-market-card__body,
.ah-seller-card__body {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  min-height: 0;
  gap: 7px;
  padding: 10px 11px 11px;
}

.ah-seller-card__main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 7px;
}

.ah-seller-card__title-row {
  gap: 8px;
  align-items: flex-start;
}

.ah-seller-card__title {
  min-width: 0;
  margin: 0;
  font-size: .92rem;
  line-height: 1.22;
}

.ah-seller-card__title a {
  display: -webkit-box;
  overflow: hidden;
  color: var(--ah-market-charcoal);
  text-decoration: none;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.ah-seller-card__verified.ah-market-card__type-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 6px;
  border-radius: 6px;
  font-size: .68rem;
}

.ah-seller-card__seller-line {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.ah-seller-card__avatar {
  display: inline-flex;
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(95, 96, 98, .12);
  border-radius: 8px;
  background: #fff;
  box-shadow: none;
}

.ah-seller-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ah-seller-card__facts {
  margin: 0;
}

.ah-seller-card__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 0;
}

.ah-seller-card__stats .ah-market-card__fact {
  gap: 4px;
  min-width: 0;
}

.ah-seller-card__stats dt,
.ah-seller-card__stats dd {
  margin: 0;
  line-height: 1.2;
}

.ah-seller-card__stats dt {
  color: inherit;
  font-size: inherit;
  font-weight: 700;
}

.ah-seller-card__stats dd {
  color: var(--ah-market-charcoal);
  font-size: inherit;
  font-weight: 850;
}

.ah-seller-card__actions {
  margin-block-start: 4px;
}

.ah-seller-card__actions .ah-market-card__primary-action {
  width: 100%;
  min-height: 34px;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: .82rem;
  line-height: 1.2;
}

body.night-mode .ah-seller-card__title a,
body.night-mode .ah-seller-card__stats dd {
  color: #f3f4f6;
}

.ah-detail-panel__quick-specs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.ah-detail-panel__quick-specs > div,
.ah-detail-disclosure {
  min-width: 0;
  padding: 10px 12px;
  background: #f8fafc;
  border: 1px solid var(--ah-market-border, #e5e7eb);
  border-radius: 14px;
}

.ah-detail-panel__quick-specs span {
  display: block;
  color: var(--ah-market-muted, #6b7280);
  font-size: .74rem;
  font-weight: 800;
}

.ah-detail-panel__quick-specs strong {
  display: block;
  overflow: hidden;
  color: var(--ah-market-text, #222426);
  font-size: .9rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ah-detail-disclosure {
  display: grid;
  gap: 9px;
}

.ah-detail-disclosure summary {
  cursor: pointer;
  color: var(--ah-market-text, #222426);
  font-weight: 850;
  list-style-position: outside;
}

.ah-detail-disclosure p,
.ah-detail-disclosure .ah-detail-panel__list {
  margin-block-end: 0;
}

.ah-detail-disclosure .ah-detail-panel__list {
  margin-block-start: 8px;
}

.ah-detail-disclosure--trust .ah-market-protection {
  margin-block-start: 8px;
}

.ah-detail-disclosure--trust:not([open]) .ah-market-protection {
  display: none;
}

.ah-product-info-panel .ah-detail-panel__seller,
.ah-service-detail-panel .ah-detail-panel__seller {
  padding: 9px 10px;
}

.ah-product-info-panel,
.ah-service-detail-panel {
  gap: 8px;
  padding: 12px;
}

.ah-product-info-panel .ah-detail-panel__header,
.ah-service-detail-panel .ah-detail-panel__header {
  gap: 4px;
  padding: 10px;
}

.ah-product-info-panel .ah-detail-panel__header h1,
.ah-service-detail-panel .ah-detail-panel__header h1 {
  font-size: clamp(1.12rem, 1.8vw, 1.55rem);
  line-height: 1.12;
}

.ah-product-info-panel .ah-detail-panel__seller-link img,
.ah-service-detail-panel .ah-detail-panel__seller-link img {
  width: 42px;
  height: 42px;
}

.ah-product-info-panel .ah-detail-buybox,
.ah-service-detail-panel .ah-detail-buybox {
  gap: 6px;
  padding: 10px;
}

.ah-product-info-panel .ah-detail-quantity-control,
.ah-product-info-panel .ah-detail-buybox__stock {
  min-height: 56px;
  padding: 7px;
}

.ah-product-info-panel .ah-detail-buybox__controls {
  gap: 8px;
}

.ah-product-info-panel .ah-detail-panel__quantity {
  min-height: 34px;
  height: 34px;
  padding-block: 4px;
}

.ah-product-info-panel .ah-detail-buybox .ah-detail-panel__actions .btn,
.ah-service-detail-panel .ah-detail-buybox .ah-detail-panel__actions .btn {
  min-height: 40px;
  padding-block: 8px;
}

.ah-product-info-panel .ah-detail-buybox__assurance,
.ah-service-detail-panel .ah-detail-buybox__assurance {
  gap: 6px;
}

.ah-product-info-panel .ah-detail-buybox__assurance span,
.ah-service-detail-panel .ah-detail-buybox__assurance span {
  padding: 5px 8px;
  font-size: .76rem;
}

.ah-product-info-panel .ah-detail-disclosure,
.ah-service-detail-panel .ah-detail-disclosure {
  padding: 8px 10px;
}

@media (min-width: 992px) {
  .ah-sellers-catalog {
    max-height: none;
    overflow: visible;
  }

  .ah-sellers-catalog__layout {
    max-height: calc(100vh - 84px);
    overflow: hidden;
  }

  .ah-sellers-catalog__filters,
  .ah-sellers-catalog__results {
    max-height: calc(100vh - 92px);
    padding-block-end: 2px;
    scrollbar-width: thin;
  }

  .ah-sellers-catalog__filters {
    overflow: hidden;
  }

  .ah-sellers-catalog__filters .ah-market-filter {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior-y: auto;
  }

  .ah-sellers-catalog__results {
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .ah-sellers-catalog__body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior-y: auto;
    padding-inline-end: 2px;
  }

  .ah-sellers-catalog__pager {
    flex: 0 0 auto;
    margin-block-start: 12px;
    padding-block-start: 10px;
    border-block-start: 1px solid rgba(95, 96, 98, .12);
    background: inherit;
  }

  .ah-market-detail-page {
    max-height: calc(100vh - 82px);
    overflow: hidden;
  }

  .ah-market-detail-page .ah-detail-page__breadcrumb {
    margin-block-end: 10px !important;
  }

  .ah-detail-layout {
    max-height: calc(100vh - 156px);
    overflow: hidden;
  }

  .ah-detail-layout__media,
  .ah-detail-layout__info {
    max-height: calc(100vh - 156px);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: none;
  }

  .ah-detail-layout__media::-webkit-scrollbar,
  .ah-detail-layout__info::-webkit-scrollbar {
    width: 0;
    height: 0;
  }

  .ah-detail-layout__media {
    padding-inline-end: 4px;
  }

  .ah-detail-layout__info {
    padding-inline-start: 4px;
  }

  .ah-gallery__main {
    max-height: calc(100vh - 250px);
  }

  .ah-product-info-panel .ah-detail-panel__meta,
  .ah-service-detail-panel .ah-detail-panel__meta {
    display: none;
  }
}

@media (min-width: 1200px) {
  .ah-sellers-catalog .ah-sellers-listing__grid > [class*="col-"] {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
    width: 33.333333%;
  }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
  .ah-sellers-catalog .ah-sellers-listing__grid > [class*="col-"] {
    flex: 0 0 50%;
    max-width: 50%;
    width: 50%;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .ah-sellers-catalog .ah-sellers-listing__grid > [class*="col-"] {
    flex: 0 0 50%;
    max-width: 50%;
    width: 50%;
  }
}

@media (max-width: 991.98px) {
  .ah-sellers-catalog__layout,
  .ah-sellers-catalog__search {
    grid-template-columns: minmax(0, 1fr);
  }

  .ah-sellers-catalog__search-actions {
    justify-content: stretch;
  }

  .ah-sellers-catalog__search-actions .btn,
  .ah-sellers-catalog__search-actions .dropdown,
  .ah-sellers-catalog__search-actions .dropdown-toggle {
    width: 100%;
  }

  .ah-sellers-catalog__filters {
    order: 1;
  }

  .ah-sellers-catalog__results {
    order: 2;
  }
}

@media (max-width: 767.98px) {
  .ah-detail-panel__quick-specs {
    grid-template-columns: minmax(0, 1fr);
  }
}

body.night-mode .ah-detail-panel__quick-specs > div,
body.night-mode .ah-detail-disclosure {
  background: #18191a;
  border-color: rgba(255, 255, 255, .1);
}

body.night-mode .ah-detail-panel__quick-specs strong,
body.night-mode .ah-detail-disclosure summary {
  color: #f3f4f6;
}

body.night-mode .ah-detail-panel__quick-specs span {
  color: #c7c9cc;
}
