: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-quantity-stepper {
  max-width: 138px;
}

.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: #babac0 transparent;
  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: 11px;
}

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

.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: 12px;
  background: transparent;
}

.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 {
  background-color: #babac0;
  border: 3px solid #fff;
  border-radius: 12px;
  border-color: #fff;
  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-color: #9f9fa7;
  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: #525252 transparent;
}

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: transparent;
}

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 {
  background-color: #525252;
  border-color: #212121;
  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-store-catalog-shell {
  position: relative;
}

.ah-store-filter-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  margin-block-end: 12px;
  padding-inline: 14px;
  border: 1px solid var(--ah-market-border);
  border-radius: var(--ah-radius-md, 12px);
  color: var(--ah-market-text);
  background: var(--ah-market-surface);
  font-weight: 800;
}

.ah-store-catalog-layout {
  display: grid;
  grid-template-columns: minmax(230px, 280px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.ah-store-category-sidebar,
.ah-store-products-panel {
  border: 1px solid var(--ah-market-border);
  border-radius: var(--ah-radius-lg, 16px);
  background: var(--ah-market-surface);
  box-shadow: var(--ah-market-shadow-sm);
}

.ah-store-category-sidebar {
  position: sticky;
  top: 88px;
  max-height: calc(100vh - 108px);
  overflow: auto;
  padding: 12px;
}

.ah-store-category-sidebar__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-block-end: 10px;
}

.ah-store-category-sidebar__header strong {
  color: var(--ah-market-text);
  font-size: 15px;
  font-weight: 900;
}

.ah-store-filter-close {
  display: none;
  width: 36px;
  height: 36px;
  border: 1px solid var(--ah-market-border);
  border-radius: 50%;
  color: var(--ah-market-text);
  background: var(--ah-market-surface);
}

.ah-store-category-list,
.ah-store-subcategory-list {
  display: grid;
  gap: 6px;
}

.ah-store-category-group {
  display: grid;
  gap: 6px;
}

.ah-store-category-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px;
  gap: 6px;
}

.ah-store-category-main a,
.ah-store-subcategory {
  min-height: 42px;
  display: grid;
  align-items: center;
  gap: 8px;
  border-radius: var(--ah-radius-md, 12px);
  color: var(--ah-market-muted);
  text-decoration: none;
  font-weight: 800;
  transition: background var(--ah-duration-fast, .18s) var(--ah-ease-out, ease), color var(--ah-duration-fast, .18s) var(--ah-ease-out, ease), border-color var(--ah-duration-fast, .18s) var(--ah-ease-out, ease);
}

.ah-store-category-main a {
  grid-template-columns: minmax(0, 1fr) auto;
  padding-inline: 12px;
}

.ah-store-category-main a small,
.ah-store-subcategory small {
  color: var(--ah-market-muted);
  font-size: 11px;
}

.ah-store-category-main button {
  width: 34px;
  height: 42px;
  border: 1px solid transparent;
  border-radius: var(--ah-radius-md, 12px);
  color: var(--ah-market-muted);
  background: transparent;
}

.ah-store-category-main a:hover,
.ah-store-category-group.is-selected .ah-store-category-main a,
.ah-store-subcategory:hover,
.ah-store-subcategory.is-checked {
  color: var(--ah-market-text);
  background: var(--ah-market-pale-gold);
}

.ah-store-category-group.is-selected .ah-store-category-main a {
  box-shadow: inset 3px 0 0 var(--ah-market-gold);
}

html[dir="rtl"] .ah-store-category-group.is-selected .ah-store-category-main a {
  box-shadow: inset -3px 0 0 var(--ah-market-gold);
}

.ah-store-subcategory-list {
  padding-inline-start: 10px;
}

.ah-store-subcategory-list.is-collapsed {
  display: none;
}

.ah-store-subcategory {
  grid-template-columns: 20px minmax(0, 1fr) auto;
  min-height: 38px;
  padding-inline: 10px;
  font-size: 13px;
}

.ah-store-subcategory__box {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ah-market-border);
  border-radius: 5px;
  color: var(--ah-market-on-accent);
  background: var(--ah-market-surface);
  font-size: 10px;
}

.ah-store-subcategory.is-checked .ah-store-subcategory__box {
  border-color: var(--ah-market-gold);
  background: var(--ah-market-gold);
}

.ah-store-products-panel {
  position: sticky;
  top: 88px;
  max-height: calc(100vh - 108px);
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  padding: 14px;
}

.ah-store-products-scroll {
  min-height: 0;
  overflow: auto;
}

.ah-store-products-pager {
  position: sticky;
  bottom: 0;
  z-index: 2;
  padding-block-start: 10px;
  background: var(--ah-market-surface);
}

.ah-store-filter-backdrop {
  display: none;
}

body.night-mode .ah-store-category-main a:hover,
body.night-mode .ah-store-category-group.is-selected .ah-store-category-main a,
body.night-mode .ah-store-subcategory:hover,
body.night-mode .ah-store-subcategory.is-checked {
  background: var(--ah-bg-spotlight);
}

@media (max-width: 991.98px) {
  .ah-store-filter-toggle {
    position: fixed;
    inset-block-end: calc(82px + env(safe-area-inset-bottom, 0px));
    inset-inline-start: 16px;
    z-index: 1058;
    display: inline-flex;
    min-width: 48px;
    min-height: 48px;
    margin: 0;
    box-shadow: 0 14px 30px color-mix(in srgb, var(--ah-market-text) 18%, transparent);
  }

  .ah-store-catalog-layout {
    display: block;
  }

  .ah-store-category-sidebar {
    position: fixed;
    inset-block: 0;
    inset-inline-start: 0;
    z-index: 1060;
    width: min(86vw, 330px);
    max-height: none;
    border-radius: 0;
    transform: translateX(-104%);
    transition: transform var(--ah-duration-normal, .24s) var(--ah-ease-out, ease);
  }

  html[dir="rtl"] .ah-store-category-sidebar {
    transform: translateX(104%);
  }

  .ah-store-catalog-shell.is-filter-open .ah-store-category-sidebar {
    transform: translateX(0);
  }

  .ah-store-catalog-shell.is-filter-open .ah-store-filter-toggle {
    pointer-events: none;
  }

  .ah-store-filter-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .ah-store-filter-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1059;
    background: rgba(17, 22, 29, .42);
  }

  .ah-store-catalog-shell.is-filter-open .ah-store-filter-backdrop {
    display: block;
  }

  .ah-store-products-panel {
    position: static;
    max-height: none;
  }

  .ah-store-products-scroll {
    max-height: none;
    overflow: visible;
  }
}

@media (max-width: 575.98px) {
  .ah-store-filter-toggle {
    inset-block-end: calc(74px + env(safe-area-inset-bottom, 0px));
    inset-inline-start: 12px;
    width: 44px;
    height: 44px;
    padding-inline: 0;
    border-radius: 50%;
  }

  .ah-store-filter-toggle span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }

  .ah-store-products-panel {
    padding: 10px;
  }

  .ah-store-category-sidebar {
    width: min(92vw, 330px);
  }
}

.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: flex !important;
  }
}

@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;
}

/* Reference marketplace alignment */
:root {
  --ah-market-reference-max: 1320px;
  --ah-market-reference-radius-panel: 26px;
  --ah-market-reference-radius-card: 20px;
  --ah-market-reference-radius-control: 14px;
  --ah-market-reference-pill: 999px;
}

.ah-market-immersive-body {
  background: var(--ah-market-page);
}

.ah-market-immersive-body .ah-market-shell {
  max-width: var(--ah-market-reference-max);
  margin-inline: auto;
  padding: 0 24px 44px;
}

.ah-market-main-slot,
.ah-market-catalog,
.ah-sellers-catalog,
.ah-store-detail,
.ah-market-detail-page,
.ah-cart-page,
.ah-orders-page,
.ah-sales-page {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.ah-market-catalog {
  padding-block: 24px 0;
  overflow: visible;
}

.ah-market-pagebar + .ah-market-main-slot .ah-market-catalog,
.ah-market-pagebar + .ah-market-catalog {
  padding-block-start: 14px;
}

.ah-market-catalog-hero {
  position: relative;
  min-height: 417px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  width: 100%;
  padding: 30px 38px;
  border: 1px solid var(--ah-market-border);
  border-radius: var(--ah-market-reference-radius-panel);
  background:
    radial-gradient(circle at 76% -18%, color-mix(in srgb, var(--ah-market-gold) 30%, transparent), transparent 28%),
    radial-gradient(circle at -4% 112%, color-mix(in srgb, var(--ah-market-pale-gold) 72%, transparent), transparent 26%),
    linear-gradient(135deg, var(--ah-market-pale-gold), var(--ah-market-surface) 58%, var(--ah-market-soft-surface));
  box-shadow: 0 14px 32px -10px rgba(20, 16, 8, .18), 0 4px 10px rgba(20, 16, 8, .06);
}

.ah-market-catalog-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .42;
  background-image: radial-gradient(color-mix(in srgb, var(--ah-market-deep-gold) 22%, transparent) 1px, transparent 1.5px);
  background-size: 22px 22px;
  background-position: 100% 0;
  -webkit-mask-image: linear-gradient(120deg, transparent 35%, #000 100%);
  mask-image: linear-gradient(120deg, transparent 35%, #000 100%);
}

.ah-market-hero-glow {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(48px);
}

.ah-market-hero-glow--a {
  width: 280px;
  height: 280px;
  inset-block-start: -90px;
  inset-inline-end: 24%;
  background: color-mix(in srgb, var(--ah-market-gold) 30%, transparent);
}

.ah-market-hero-glow--b {
  width: 230px;
  height: 230px;
  inset-block-end: -110px;
  inset-inline-start: -50px;
  background: color-mix(in srgb, var(--ah-market-pale-gold) 65%, transparent);
}

.ah-market-catalog-hero > *:not(.ah-market-hero-glow) {
  position: relative;
  z-index: 1;
}

.ah-market-catalog-hero__tabs {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  gap: 6px;
  padding: 6px;
  margin: 0;
  overflow-x: auto;
  border: 1px solid var(--ah-market-border);
  border-radius: var(--ah-market-reference-pill);
  background: color-mix(in srgb, var(--ah-market-surface) 82%, transparent);
  box-shadow: 0 1px 2px rgba(20, 16, 8, .05);
  scrollbar-width: none;
}

.ah-market-catalog-hero__tabs::-webkit-scrollbar {
  display: none;
}

.ah-market-catalog-hero__tab {
  align-items: center;
  justify-content: center;
  min-height: 42px;
  gap: 9px;
  padding: 10px 18px;
  border: 0;
  border-radius: var(--ah-market-reference-pill);
  color: var(--ah-market-muted);
  background: transparent;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.25;
  transition: background .16s ease, color .16s ease, transform .16s ease, box-shadow .16s ease;
  vertical-align: top;
}

.ah-market-catalog-hero__tab > span {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  line-height: 1;
}

.ah-market-catalog-hero__tab:hover {
  color: var(--ah-market-text);
  background: var(--ah-market-soft-surface);
  text-decoration: none;
}

.ah-market-catalog-hero__tab.active {
  color: var(--ah-market-on-accent);
  background: var(--ah-market-gold);
  border-color: transparent;
  box-shadow: 0 6px 16px -6px rgba(212, 158, 31, .5);
}

.ah-market-catalog-hero__tab-count {
  display: inline-grid;
  flex: 0 0 auto;
  align-self: center;
  min-width: 24px;
  height: 21px;
  padding: 1px 7px;
  place-items: center;
  border-radius: var(--ah-market-reference-pill);
  background: color-mix(in srgb, var(--ah-market-soft-surface) 86%, transparent);
  color: var(--ah-market-muted);
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

.ah-market-catalog-hero__tab.active .ah-market-catalog-hero__tab-count {
  color: var(--ah-market-on-accent);
  background: rgba(17, 22, 29, .16);
}

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

.ah-market-catalog-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  color: var(--ah-market-deep-gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.ah-market-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--bs-success, #1e9e63);
  box-shadow: 0 0 0 3px rgba(30, 158, 99, .18);
  animation: ah-market-pulse 2.4s ease-in-out infinite;
}

@keyframes ah-market-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(30, 158, 99, .18); }
  50% { box-shadow: 0 0 0 5px rgba(30, 158, 99, .05); }
}

.ah-market-catalog-hero__copy h1 {
  max-width: 760px;
  margin: 0 0 8px;
  color: var(--ah-market-text);
  font-size: clamp(28px, 3.6vw, 46px);
  line-height: 1.03;
  font-weight: 900;
  letter-spacing: 0;
}

.ah-market-catalog-hero__copy p {
  max-width: 520px;
  color: var(--ah-market-muted);
  font-size: 15.5px;
  line-height: 1.5;
  font-weight: 500;
}

.ah-market-catalog-search--hero {
  display: flex;
  width: min(760px, 100%);
  gap: 8px;
  align-items: center;
  padding: 7px;
  border: 1px solid var(--ah-market-border);
  border-radius: var(--ah-market-reference-pill);
  background: var(--ah-market-surface);
  box-shadow: 0 2px 6px rgba(20, 16, 8, .06), 0 1px 2px rgba(20, 16, 8, .04);
}

.ah-market-catalog-search--hero .ah-market-catalog-search__field,
.ah-market-catalog-search--hero .ah-market-catalog-search__select {
  min-width: 0;
  height: 46px;
  border: 1px solid transparent;
  border-radius: var(--ah-market-reference-pill);
  background: var(--ah-market-soft-surface);
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
}

.ah-market-catalog-search--hero .ah-market-catalog-search__field {
  flex: 1 1 auto;
  grid-column: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-inline: 18px;
}

.ah-market-catalog-search--hero .ah-market-catalog-search__field:focus-within,
.ah-market-catalog-search--hero .ah-market-catalog-search__select:focus-within {
  border-color: var(--ah-market-gold);
  background: var(--ah-market-surface);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--ah-market-gold) 18%, transparent);
}

.ah-market-catalog-search--hero .ah-market-catalog-search__field i,
.ah-market-catalog-search--hero .ah-market-catalog-search__select i {
  position: static;
  transform: none;
  color: var(--ah-market-deep-gold);
}

.ah-market-catalog-search--hero input,
.ah-market-catalog-search--hero select {
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  outline: 0;
  color: var(--ah-market-text);
  background: transparent;
  font: inherit;
  font-size: 14px;
}

.ah-market-catalog-search--hero input::placeholder {
  color: var(--ah-market-muted);
}

.ah-market-catalog-search__select {
  position: relative;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 154px;
  padding-inline: 16px;
}

.ah-market-catalog-search__select select {
  cursor: pointer;
}

.ah-market-catalog-search--hero .ah-market-search-submit {
  flex: 0 0 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  min-height: 46px;
  padding: 0;
  border: 1px solid var(--ah-market-gold);
  border-radius: 50%;
  color: var(--ah-market-on-accent);
  background: var(--ah-market-gold);
  box-shadow: 0 6px 18px -6px rgba(212, 158, 31, .5);
}

.ah-market-hero-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
}

.ah-market-hero-stats {
  display: flex;
  align-items: center;
  gap: 18px;
}

.ah-market-hero-stat {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.ah-market-hero-stat b {
  color: var(--ah-market-text);
  font-size: 21px;
  font-weight: 900;
}

.ah-market-hero-stat span {
  margin-top: 2px;
  color: var(--ah-market-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.ah-market-hero-vrule {
  width: 1px;
  height: 30px;
  background: color-mix(in srgb, var(--ah-market-text) 18%, transparent);
}

.ah-market-hero-trust {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 37px;
  padding: 7px 13px;
  border: 1px solid var(--ah-market-border);
  border-radius: var(--ah-market-reference-pill);
  color: var(--ah-market-deep-gold);
  background: var(--ah-market-surface);
  font-size: 12.5px;
  font-weight: 800;
}

.ah-market-mobile-search {
  display: none;
}

.ah-market-catalog-layout,
.ah-sellers-catalog__layout,
.ah-store-catalog-layout {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  position: relative;
}

.ah-market-category-sidebar--desktop,
.ah-sellers-catalog__filters,
.ah-store-category-sidebar {
  position: sticky;
  top: 88px;
  grid-column: auto;
  width: 270px;
  max-height: calc(100vh - 104px);
  overflow-y: auto;
  border: 1px solid var(--ah-market-border);
  border-radius: var(--ah-market-reference-radius-card);
  background: var(--ah-market-surface);
  box-shadow: 0 2px 6px rgba(20, 16, 8, .06), 0 1px 2px rgba(20, 16, 8, .04);
}

.ah-market-category-sidebar__head,
.ah-store-category-sidebar__header {
  padding: 16px 18px;
  border: 0;
  border-bottom: 1px solid var(--ah-market-border);
  border-radius: 0;
  background: var(--ah-market-pale-gold);
}

.ah-market-category-sidebar__head strong,
.ah-store-category-sidebar__header strong {
  color: var(--ah-market-text);
  font-size: 15px;
  font-weight: 900;
}

.ah-market-category-sidebar__head span {
  color: var(--ah-market-deep-gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.ah-market-category-sidebar__list {
  gap: 4px;
  padding: 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.ah-market-category-sidebar__link {
  min-height: 58px;
  gap: 12px;
  padding: 11px 12px;
  border-radius: var(--ah-market-reference-radius-control);
  color: var(--ah-market-text);
  font-size: 14px;
  font-weight: 600;
}

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

.ah-market-category-sidebar__marker {
  display: grid;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 10px;
  color: var(--ah-market-deep-gold);
  background: var(--ah-market-pale-gold);
}

.ah-market-category-sidebar__link.active .ah-market-category-sidebar__marker {
  color: var(--ah-market-on-accent);
  background: var(--ah-market-gold);
}

.ah-market-category-sidebar__name {
  flex: 1;
}

.ah-market-category-sidebar__link strong {
  min-width: 26px;
  height: 26px;
  display: inline-grid;
  place-items: center;
  padding: 0 9px;
  border-radius: var(--ah-market-reference-pill);
  color: var(--ah-market-muted);
  background: var(--ah-market-soft-surface);
  font-size: 12.5px;
  font-weight: 800;
}

.ah-market-category-sidebar__link.active strong {
  color: var(--ah-market-soft-gold);
  background: var(--ah-market-deep-graphite);
}

.ah-market-catalog-results,
.ah-sellers-catalog__results,
.ah-store-products-panel {
  min-width: 0;
}

.ah-market-all-items,
.ah-sellers-listing,
.ah-store-products-panel {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.ah-market-all-items__body,
.ah-sellers-catalog__body,
.ah-store-products-scroll {
  min-width: 0;
}

.ah-market-catalog-results,
.ah-market-all-items__body,
.ah-sellers-catalog__body {
  overflow: visible;
  scrollbar-gutter: auto;
}

.ah-market-all-items__body {
  width: 100%;
  padding-inline: 0;
}

.ah-market-section__header,
.ah-market-all-items .ah-market-section__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-block-end: 33px;
}

.ah-sellers-catalog__summary {
  margin-block-end: 12px;
}

.ah-market-section__header h2 {
  color: var(--ah-market-text);
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 0;
}

.ah-market-section__header .badge {
  color: var(--ah-market-deep-gold) !important;
  background: transparent !important;
  font-size: 13px;
  font-weight: 800;
}

.ah-product-grid__row,
.ah-service-grid__row,
.ah-sellers-listing__grid {
  --bs-gutter-x: 0;
  gap: 18px;
  margin-inline: 0;
}

.ah-product-grid__row .ah-market-card-col,
.ah-service-grid__row .ah-market-card-col {
  width: calc((100% - 36px) / 3);
  max-width: calc((100% - 36px) / 3);
  flex: 0 0 calc((100% - 36px) / 3);
  padding-inline: 0;
}

.ah-sellers-listing__grid .ah-seller-card-col {
  width: calc((100% - 18px) / 2);
  max-width: calc((100% - 18px) / 2);
  flex: 0 0 calc((100% - 18px) / 2);
  padding-inline: 0;
}

.ah-market-card {
  width: 100%;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--ah-market-border);
  border-radius: var(--ah-market-reference-radius-card);
  background: var(--ah-market-surface);
  box-shadow: none;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.ah-market-card:hover,
.ah-market-card:focus-visible {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--ah-market-gold) 45%, var(--ah-market-border));
  box-shadow: 0 16px 34px -18px rgba(20, 16, 8, .24);
}

.ah-product-card,
.ah-service-card {
  min-height: 465px;
}

.card.product.ah-market-card,
.card.service.ah-market-card,
.ah-product-card.ah-market-card,
.ah-service-card.ah-market-card {
  width: 100%;
  max-width: 100%;
  margin: 0;
  align-self: stretch;
  border-radius: var(--ah-market-reference-radius-card);
  box-shadow: none;
}

.ah-product-card.ah-market-card {
  min-height: 532px;
}

.ah-service-card.ah-market-card {
  min-height: 539px;
}

.ah-market-trust-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  margin-block-start: 18px;
  padding: 20px 22px;
  border: 1px solid var(--ah-market-border);
  border-radius: var(--ah-market-reference-radius-card);
  color: var(--ah-market-text);
  background: var(--ah-market-surface);
  box-shadow: var(--ah-market-reference-shadow);
}

.ah-market-trust-banner__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  color: var(--ah-market-on-accent);
  background: var(--ah-market-gold);
}

.ah-market-trust-banner strong {
  display: block;
  margin-block-end: 4px;
  font-size: 15px;
  font-weight: 900;
}

.ah-market-trust-banner p {
  margin: 0;
  color: var(--ah-market-muted);
  font-size: 13px;
  line-height: 1.45;
}

.ah-product-card .ah-market-card__media,
.ah-service-card .ah-market-card__media {
  aspect-ratio: 4 / 3;
  min-height: 234px;
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, .05) 0 8px, transparent 8px 16px),
    linear-gradient(135deg, var(--ah-market-deep-graphite), var(--ah-market-charcoal));
}

.ah-service-card .ah-market-card__media {
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, .05) 0 8px, transparent 8px 16px),
    linear-gradient(135deg, #232A1A, #14180E);
}

.ah-market-card__media img {
  transition: transform .28s ease;
}

.ah-market-card:hover .ah-market-card__media img {
  transform: scale(1.035);
}

.ah-market-card__price {
  inset-block-start: 12px;
  inset-inline-start: 12px;
  min-height: 33px;
  padding: 6px 11px;
  border-radius: var(--ah-market-reference-pill);
  color: var(--ah-market-on-accent);
  background: var(--ah-market-gold);
  box-shadow: 0 8px 18px rgba(34, 36, 38, .16);
  font-size: 12px;
  font-weight: 900;
}

.ah-service-card .ah-market-card__price {
  color: var(--ah-market-deep-gold);
  border: 1px solid var(--ah-market-soft-gold);
  background: var(--ah-market-surface);
}

.ah-market-card__more {
  min-height: 35px;
  padding: 7px 12px;
  border: 0;
  border-radius: var(--ah-market-reference-pill) !important;
  color: var(--ah-market-text);
  background: color-mix(in srgb, var(--ah-market-surface) 92%, transparent);
  font-size: 12px;
  font-weight: 800;
}

.ah-market-card__more::after {
  content: ">";
  margin-inline-start: 6px;
  font-size: 14px;
  line-height: 1;
}

.ah-market-card__body {
  min-height: 0;
  gap: 12px;
  padding: 14px 15px 16px;
}

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

.ah-market-card__title {
  flex: initial;
  min-height: 0;
  color: var(--ah-market-text);
  font-size: 15px;
  font-weight: 900;
  line-height: 1.25;
  text-decoration: none;
}

.ah-market-card__seller-line,
.ah-market-card__meta {
  color: var(--ah-market-muted);
  font-size: 13px;
  font-weight: 700;
}

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

.ah-market-card__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0;
}

.ah-market-card__fact {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 28px;
  padding: 5px 11px;
  border: 0;
  border-radius: var(--ah-market-reference-pill);
  color: var(--ah-market-muted);
  background: var(--ah-market-soft-surface);
  font-size: 12px;
  font-weight: 700;
}

.ah-market-card__fact .main-icon {
  width: 12px !important;
  height: 12px !important;
  color: var(--ah-market-deep-gold);
}

.ah-market-card__type-badge,
.ah-market-card__status,
.ah-product-card .badge,
.ah-service-card .badge {
  width: fit-content;
  border-radius: var(--ah-market-reference-pill);
  font-size: 11px;
  font-weight: 800;
  padding: 5px 9px;
}

.ah-market-card__primary-action {
  min-height: 46px;
  border-radius: var(--ah-market-reference-pill);
  font-size: 14px;
  font-weight: 900;
}

.ah-market-card__primary-action.btn-primary,
.ah-seller-card__actions .btn.btn-primary,
.ah-detail-panel__actions .btn-primary {
  border-color: var(--ah-market-gold);
  color: var(--ah-market-on-accent);
  background: var(--ah-market-gold);
  box-shadow: 0 6px 18px -6px rgba(212, 158, 31, .5);
}

.ah-market-card__primary-action.btn-primary:hover,
.ah-seller-card__actions .btn.btn-primary:hover,
.ah-detail-panel__actions .btn-primary:hover {
  border-color: var(--ah-market-deep-gold);
  background: var(--ah-market-soft-gold);
  transform: translateY(-1px);
}

.ah-seller-card.ah-market-card {
  min-height: 388px;
  border-radius: var(--ah-market-reference-radius-card);
  background: var(--ah-market-surface);
  box-shadow: none;
}

.ah-seller-card__cover {
  flex-basis: 132px;
  height: 132px;
  background:
    radial-gradient(120% 120% at 80% 10%, color-mix(in srgb, var(--ah-market-gold) 22%, transparent), transparent 55%),
    linear-gradient(135deg, var(--ah-market-deep-graphite), var(--ah-market-charcoal));
}

.ah-seller-card__type-pill {
  min-height: 30px;
  padding: 6px 11px;
  border-radius: var(--ah-market-reference-pill);
  color: var(--ah-market-pale-gold);
  background: rgba(17, 22, 29, .82);
  font-size: 12px;
  font-weight: 800;
}

.ah-seller-card__body {
  min-height: 253px;
  padding: 15px 17px 17px;
}

.ah-seller-card__title {
  font-size: 17px;
  line-height: 1.22;
}

.ah-seller-card__verified {
  color: var(--ah-market-on-accent) !important;
  background: var(--ah-market-gold) !important;
}

.ah-seller-card__avatar {
  display: none;
}

.ah-seller-card__seller-line {
  gap: 8px;
  color: var(--ah-market-muted);
}

.ah-seller-card__seller-line::before {
  content: "\f54e";
  display: inline-grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 7px;
  color: var(--ah-market-deep-gold);
  background: var(--ah-market-pale-gold);
  font-family: "Font Awesome 6 Free", "Font Awesome 5 Free";
  font-weight: 900;
  font-size: 12px;
}

.ah-seller-card__stats {
  display: flex;
  gap: 8px;
  margin-top: 2px;
}

.ah-seller-card__stats .ah-market-card__fact {
  flex: 1;
  justify-content: center;
  min-height: 42px;
  border: 1px solid var(--ah-market-border);
  border-radius: 12px;
  background: var(--ah-market-pale-gold);
}

.ah-seller-card__stats dd {
  color: var(--ah-market-text);
  font-size: 14px;
  font-weight: 900;
}

.ah-seller-card__actions .ah-market-card__primary-action {
  min-height: 46px;
  font-size: 14px;
}

.ah-market-filter {
  padding: 18px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.ah-market-filter::before {
  content: attr(data-filter-title);
  display: block;
  margin-bottom: 4px;
  color: var(--ah-market-text);
  font-size: 16px;
  font-weight: 900;
}

.ah-market-filter::after {
  content: attr(data-filter-hint);
  display: block;
  margin: -2px 0 14px;
  color: var(--ah-market-muted);
  font-size: 12.5px;
}

.ah-market-filter__group {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--ah-market-border);
}

.ah-market-filter__group legend,
.ah-market-filter__group .form-label {
  color: var(--ah-market-text);
  font-size: 13px;
  font-weight: 800;
}

.ah-market-filter .form-control,
.ah-market-filter .form-select {
  height: 44px;
  border: 1px solid var(--ah-market-border);
  border-radius: var(--ah-market-reference-radius-control);
  color: var(--ah-market-text);
  background-color: var(--ah-market-soft-surface);
  font-size: 14px;
}

.ah-market-filter .form-control:focus,
.ah-market-filter .form-select:focus {
  border-color: var(--ah-market-gold);
  background: var(--ah-market-surface);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ah-market-gold) 20%, transparent);
}

.ah-market-filter__check {
  gap: 10px;
  color: var(--ah-market-text);
  font-size: 14px;
  font-weight: 700;
}

.ah-market-filter__check input {
  width: 18px;
  height: 18px;
  accent-color: var(--ah-market-deep-gold);
}

.ah-market-filter__actions {
  gap: 10px;
  margin-top: 18px;
}

.ah-market-filter__actions .btn {
  flex: 1;
  justify-content: center;
  min-height: 46px;
  border-radius: var(--ah-market-reference-pill);
  font-weight: 900;
}

.ah-market-filter__actions .btn-primary {
  border-color: var(--ah-market-gold);
  color: var(--ah-market-on-accent);
  background: var(--ah-market-gold);
}

.ah-market-empty,
.ah-market-state {
  border-radius: var(--ah-market-reference-radius-card);
  background: var(--ah-market-surface);
}

@media (min-width: 1200px) {
  .ah-sellers-catalog .ah-sellers-listing__grid > [class*="col-"] {
    width: calc((100% - 18px) / 2);
    max-width: calc((100% - 18px) / 2);
    flex: 0 0 calc((100% - 18px) / 2);
  }
}

@media (min-width: 941px) {
  .ah-market-immersive-body .ah-market-catalog-layout,
  .ah-market-immersive-body .ah-market-catalog-layout.is-stuck,
  .ah-market-immersive-body .ah-sellers-catalog__layout,
  .ah-market-immersive-body .ah-sellers-catalog__layout.is-stuck {
    position: static;
    inset: auto;
    top: auto;
    width: auto;
  }

  .ah-market-immersive-body .ah-market-catalog.is-layout-stuck {
    padding-block-end: 0;
  }

  .ah-market-immersive-body .ah-market-category-sidebar--desktop,
  .ah-market-immersive-body .ah-market-catalog-results {
    position: static;
    top: auto;
    height: auto;
    min-height: 0;
    overflow: visible;
  }
}

@media (max-width: 1199.98px) {
  .ah-product-grid__row .ah-market-card-col,
  .ah-service-grid__row .ah-market-card-col,
  .ah-sellers-listing__grid .ah-seller-card-col,
  .ah-sellers-catalog .ah-sellers-listing__grid > [class*="col-"] {
    width: calc((100% - 18px) / 2);
    max-width: calc((100% - 18px) / 2);
    flex: 0 0 calc((100% - 18px) / 2);
    padding-inline: 0;
  }
}

@media (max-width: 940px) {
  .ah-market-immersive-body .ah-market-shell {
    padding-inline: 14px;
  }

  .ah-market-catalog-layout,
  .ah-sellers-catalog__layout,
  .ah-store-catalog-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .ah-market-category-sidebar--desktop,
  .ah-sellers-catalog__filters,
  .ah-store-category-sidebar {
    display: none;
  }

  .ah-market-mobile-search {
    display: block;
    position: sticky;
    top: 0;
  }

  .ah-market-catalog-search--hero {
    flex-wrap: wrap;
    border-radius: 22px;
  }

  .ah-market-catalog-search--hero .ah-market-catalog-search__field {
    flex: 1 1 100%;
  }

  .ah-market-catalog-search__select {
    flex: 1 1 0;
  }
}

@media (max-width: 767.98px) {
  .ah-market-catalog-hero {
    min-height: auto;
    padding: 20px;
    border-radius: 22px;
  }

  .ah-market-catalog-hero__tabs {
    width: 100%;
  }

  .ah-product-grid__row .ah-market-card-col,
  .ah-service-grid__row .ah-market-card-col,
  .ah-sellers-listing__grid .ah-seller-card-col,
  .ah-sellers-catalog .ah-sellers-listing__grid > [class*="col-"] {
    width: 100%;
    max-width: 100%;
    flex: 0 0 100%;
  }

  .ah-market-hero-stats {
    gap: 12px;
  }
}

body.night-mode .ah-market-catalog-hero,
body.night-mode .ah-market-category-sidebar--desktop,
body.night-mode .ah-sellers-catalog__filters,
body.night-mode .ah-store-category-sidebar,
body.night-mode .ah-market-card,
body.night-mode .ah-market-catalog-search--hero,
body.night-mode .ah-market-hero-trust {
  border-color: rgba(255, 255, 255, .12);
  background-color: var(--ah-market-surface);
}

body.night-mode .ah-market-catalog-hero {
  background:
    radial-gradient(circle at 76% -18%, color-mix(in srgb, var(--ah-market-gold) 18%, transparent), transparent 28%),
    linear-gradient(135deg, color-mix(in srgb, var(--ah-market-gold) 12%, var(--ah-market-surface)), var(--ah-market-surface) 58%, var(--ah-market-soft-surface));
}

body.night-mode .ah-market-card__fact,
body.night-mode .ah-market-filter .form-control,
body.night-mode .ah-market-filter .form-select,
body.night-mode .ah-market-catalog-search--hero .ah-market-catalog-search__field,
body.night-mode .ah-market-catalog-search--hero .ah-market-catalog-search__select {
  background: var(--ah-market-soft-surface);
}

/* Final reference-matching corrections */
.ah-market-immersive-body .ah-market-catalog,
.ah-market-immersive-body .ah-market-catalog-layout,
.ah-market-immersive-body .ah-market-catalog-layout.is-stuck,
.ah-market-immersive-body .ah-market-catalog-results,
.ah-market-immersive-body .ah-sellers-catalog__results,
.ah-market-immersive-body .ah-market-all-items,
.ah-market-immersive-body .ah-market-all-items__body,
.ah-market-immersive-body .ah-sellers-catalog__body,
.ah-market-immersive-body .ah-product-grid,
.ah-market-immersive-body .ah-service-grid,
.ah-market-immersive-body .ah-product-grid__row,
.ah-market-immersive-body .ah-service-grid__row {
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
}

.ah-market-immersive-body .ah-market-shell,
.ah-market-immersive-body .ah-market-main-slot,
.ah-market-immersive-body .ah-market-main-slot--full {
  overflow: visible !important;
}

.ah-market-category-sidebar--desktop,
.ah-sellers-catalog__filters {
  box-sizing: border-box;
  overflow-x: hidden;
}

.ah-market-category-sidebar__list,
.ah-market-category-sidebar__link,
.ah-market-filter,
.ah-market-filter fieldset,
.ah-market-filter .form-control,
.ah-market-filter .form-select,
.ah-market-filter__check,
.ah-market-filter__actions {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
}

.ah-market-category-sidebar__link {
  justify-content: flex-start;
}

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

.ah-market-catalog-hero__tab .main-icon,
.ah-market-catalog-hero__tab svg,
.ah-market-catalog-hero__tab i {
  display: inline-grid !important;
  place-items: center;
  align-self: center;
  width: 17px !important;
  height: 17px !important;
  flex: 0 0 17px;
  color: currentColor;
  font-size: 17px;
  line-height: 1;
  vertical-align: middle;
}

.ah-market-catalog-search--hero .ah-market-search-submit {
  display: none;
}

.ah-market-catalog-search--hero .ah-market-catalog-search__field i,
.ah-market-catalog-search--hero .ah-market-catalog-search__select i,
.ah-market-category-sidebar__marker i {
  color: var(--ah-market-deep-gold);
  font-size: 14px;
}

.ah-market-card__more {
  width: 36px;
  min-width: 36px;
  height: 34px;
  min-height: 34px;
  justify-content: center;
  padding: 0;
  font-size: 0;
  line-height: 1;
}

.ah-market-card__more::before {
  content: none;
}

.ah-market-card__more::after {
  content: none;
}

.ah-market-card__more > [aria-hidden="true"] {
  color: var(--ah-market-text);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 1px;
  line-height: 1;
  transform: translateY(-3px);
}

.ah-market-card__type-badge,
.ah-market-card__status,
.ah-product-card .badge,
.ah-service-card .badge,
.ah-seller-card__verified {
  border: 0 !important;
  box-shadow: none !important;
}

.ah-product-card .badge.bg-info,
.ah-product-card .ah-market-card__type-badge.bg-info {
  color: var(--ah-market-info, #3f6068);
  background: color-mix(in srgb, var(--ah-market-info, #3f6068) 14%, transparent) !important;
}

.ah-product-card .badge.bg-success,
.ah-product-card .ah-market-card__type-badge.bg-success,
.ah-seller-card__verified {
  color: var(--ah-market-success, #1e9e63) !important;
  background: color-mix(in srgb, var(--ah-market-success, #1e9e63) 14%, transparent) !important;
}

.ah-service-card .badge.bg-primary,
.ah-service-card .ah-market-card__type-badge.bg-primary {
  color: var(--ah-market-deep-gold) !important;
  background: var(--ah-market-pale-gold) !important;
}

.ah-product-card .badge.bg-warning,
.ah-product-card .ah-market-card__type-badge.bg-warning {
  color: var(--ah-market-warning, #d9822b) !important;
  background: color-mix(in srgb, var(--ah-market-warning, #d9822b) 14%, transparent) !important;
}

.ah-product-card .badge.bg-light,
.ah-product-card .ah-market-card__type-badge.bg-light {
  color: var(--ah-market-muted) !important;
  background: var(--ah-market-soft-surface) !important;
}

.ah-seller-card-col {
  display: flex;
}

.ah-seller-card.ah-market-card {
  width: 100%;
}

.ah-seller-card__body,
.ah-seller-card__main {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
  flex-direction: column;
}

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

.ah-seller-card__actions .ah-market-card__primary-action {
  display: inline-flex;
  width: 100%;
  height: 46px;
  align-items: center;
  justify-content: center;
  margin-top: 0;
}

.ah-market-trust-banner {
  background: var(--ah-market-pale-gold);
  border-color: var(--ah-market-border);
  box-shadow: none;
}

.ah-market-trust-banner__icon {
  border-radius: 10px;
  color: var(--ah-market-deep-gold);
  background: var(--ah-market-surface);
  border: 1px solid var(--ah-market-border);
}

.ah-market-category-sidebar__list {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch !important;
  padding: 12px !important;
  max-height: none !important;
  overflow: visible !important;
}

.ah-market-category-sidebar__link {
  display: flex !important;
  inline-size: 100% !important;
  min-inline-size: 0 !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  align-self: stretch !important;
}

.ah-market-category-sidebar__link:hover,
.ah-market-category-sidebar__link.active {
  transform: none !important;
}

.ah-market-category-sidebar__children {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr);
  gap: 4px;
  min-width: 0;
}

.ah-sellers-catalog__filters .ah-market-filter {
  padding: 18px !important;
}

.ah-seller-card.ah-market-card {
  position: relative;
}

.ah-seller-card__body {
  padding-bottom: 76px;
}

.ah-seller-card__actions {
  position: absolute;
  inset-inline: 17px;
  inset-block-end: 18px;
  margin: 0;
}

.ah-seller-card__title-row {
  align-items: flex-start !important;
  justify-content: space-between !important;
}

.ah-seller-card__verified {
  display: inline-flex !important;
  min-height: 26px;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  margin-inline-start: auto;
  padding: 4px 10px !important;
  border-radius: 999px;
  font-size: 11.5px !important;
  font-weight: 800;
  line-height: 1;
}

.ah-market-mobile-filter-strip {
  display: none;
}

.ah-sellers-catalog__search-wrap.ah-market-mobile-search {
  display: none !important;
}

@media (max-width: 940px) {
  .ah-market-mobile-filter-strip {
    display: flex !important;
    position: relative !important;
    top: auto !important;
    z-index: 12;
    justify-content: flex-end;
    margin: -4px 0 18px;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }

  .ah-market-mobile-filter-strip .ah-market-mobile-filter-btn {
    display: inline-flex;
    width: auto !important;
    min-width: 0 !important;
    height: 42px !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 15px;
    border: 1px solid var(--ah-market-border);
    border-radius: 999px;
    color: var(--ah-market-text);
    background: var(--ah-market-surface);
    box-shadow: 0 2px 6px rgba(20, 16, 8, .06);
    font-size: 13px;
    font-weight: 800;
  }

  .ah-market-mobile-filter-strip .ah-market-mobile-filter-btn__close {
    display: none;
  }

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

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

@media (min-width: 941px) {
  .ah-market-immersive-body .ah-market-catalog-layout,
  .ah-market-immersive-body .ah-market-catalog-layout.is-stuck,
  .ah-market-immersive-body .ah-sellers-catalog__layout,
  .ah-market-immersive-body .ah-sellers-catalog__layout.is-stuck {
    position: static !important;
    inset: auto !important;
    top: auto !important;
    width: auto !important;
    transform: none !important;
  }

  .ah-market-immersive-body .ah-market-category-sidebar--desktop,
  .ah-market-immersive-body .ah-sellers-catalog__filters {
    position: sticky !important;
    top: 50px !important;
    align-self: start !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: calc(100vh - 66px) !important;
    overflow-y: auto !important;
    overscroll-behavior-y: contain;
    z-index: 10;
  }

  .ah-market-immersive-body .ah-market-catalog-results,
  .ah-market-immersive-body .ah-sellers-catalog__results {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
  }
}

.ah-sellers-catalog__filters .ah-market-filter__group {
  width: 100%;
  margin-inline: 0;
  padding-inline: 0;
}

.ah-sellers-catalog__filters .form-label,
.ah-sellers-catalog__filters .form-select,
.ah-sellers-catalog__filters .form-control,
.ah-sellers-catalog__filters .ah-market-filter__check,
.ah-sellers-catalog__filters .ah-market-filter__actions {
  width: 100%;
  max-width: 100%;
}

/* Marketplace detail page reference alignment */
.ah-market-detail-page,
.ah-store-detail {
  max-width: var(--ah-market-reference-max);
  margin-inline: auto;
}

.ah-detail-page__breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ah-market-muted);
  font-size: 13.5px;
  font-weight: 700;
}

.ah-detail-page__breadcrumb a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ah-market-deep-gold);
  font-weight: 900;
  text-decoration: none;
}

.ah-detail-page__breadcrumb a:hover {
  text-decoration: underline;
}

.ah-detail-layout {
  --bs-gutter-x: 26px;
  row-gap: 22px;
}

.ah-detail-layout__media,
.ah-detail-layout__info {
  min-width: 0;
}

.ah-gallery {
  position: sticky;
  top: 88px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ah-gallery__main {
  position: relative;
  display: grid;
  aspect-ratio: 1;
  min-height: 0;
  max-height: none;
  place-items: center;
  overflow: hidden;
  border: 0;
  border-radius: var(--ah-market-reference-radius-panel);
  background: var(--ah-market-charcoal);
  box-shadow: var(--ah-market-shadow-md);
}

.ah-gallery--service .ah-gallery__main {
  background: linear-gradient(135deg, #23311f, #14180e);
}

.ah-gallery__stripe {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, .055) 0 12px, transparent 12px 24px);
  pointer-events: none;
}

.ah-gallery__main img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
}

.ah-gallery__main img[src*="blank_product"],
.ah-gallery__thumb img[src*="blank_product"] {
  opacity: 0;
}

.ah-gallery__placeholder-icon {
  position: relative;
  z-index: 1;
  display: grid;
  width: 100px;
  height: 100px;
  place-items: center;
  color: rgba(255, 255, 255, .42);
  font-size: 82px;
}

.ah-gallery__placeholder-icon .main-icon {
  color: rgba(236, 185, 56, .55);
}

.ah-gallery__label {
  position: absolute;
  z-index: 2;
  inset-block-end: 20px;
  inset-inline-start: 50%;
  transform: translateX(-50%);
  max-width: min(78%, 330px);
  padding: 8px 16px;
  border: 1px dashed color-mix(in srgb, var(--ah-market-gold) 48%, transparent);
  border-radius: var(--ah-market-reference-pill);
  color: var(--ah-market-soft-gold);
  background: rgba(17, 22, 29, .66);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
}

html[dir="rtl"] .ah-gallery__label {
  transform: translateX(50%);
}

.ah-gallery__thumbs {
  display: flex;
  gap: 12px;
}

.ah-gallery__thumb {
  position: relative;
  display: grid;
  flex: 0 0 78px;
  width: 78px;
  height: 78px;
  place-items: center;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 16px;
  background: var(--ah-market-deep-graphite);
  opacity: 1;
}

.ah-gallery__thumb::after {
  content: "\f290";
  position: relative;
  z-index: 1;
  color: rgba(255, 255, 255, .46);
  font-family: "Font Awesome 6 Free", "Font Awesome 5 Free";
  font-size: 24px;
  font-weight: 900;
}

.ah-gallery--service .ah-gallery__thumb::after {
  content: "\f0ad";
}

.ah-gallery__thumb.is-active {
  border-color: var(--ah-market-gold);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ah-market-gold) 26%, transparent);
}

.ah-detail-panel {
  display: block;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--ah-market-border);
  border-radius: var(--ah-market-reference-radius-panel);
  background: var(--ah-market-surface);
  box-shadow: var(--ah-market-shadow-sm);
}

.ah-service-detail-panel {
  border-block-start: 0;
}

.ah-detail-panel__header {
  display: block;
  padding: 24px 26px 20px;
  border: 0;
  border-bottom: 1px solid var(--ah-market-border);
  border-radius: 0;
  background: transparent;
}

.ah-detail-panel__header h1 {
  margin: 6px 0 0;
  color: var(--ah-market-text);
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.05;
}

.ah-product-info-panel .ah-detail-panel__header,
.ah-service-detail-panel .ah-detail-panel__header {
  gap: 0;
  padding: 24px 26px 20px;
}

.ah-product-info-panel .ah-detail-panel__header h1,
.ah-service-detail-panel .ah-detail-panel__header h1 {
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.05;
}

.ah-detail-panel .ah-market-page__eyebrow,
.ah-store-hero .ah-market-page__eyebrow,
.ah-store-products-panel .ah-market-page__eyebrow {
  color: var(--ah-market-deep-gold);
  font-size: 11.5px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

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

.ah-detail-chip {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border: 0;
  border-radius: var(--ah-market-reference-pill);
  color: var(--ah-market-muted);
  background: var(--ah-market-soft-surface);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.ah-detail-chip i {
  color: var(--ah-market-deep-gold);
  font-size: 12px;
}

.ah-detail-chip--success {
  color: var(--ah-market-success, #1e9e63);
  background: color-mix(in srgb, var(--ah-market-success, #1e9e63) 14%, transparent);
}

.ah-detail-chip--gold,
.ah-detail-chip--soft {
  color: var(--ah-market-deep-gold);
  background: var(--ah-market-pale-gold);
}

.ah-detail-chip--muted {
  color: var(--ah-market-muted);
  background: var(--ah-market-soft-surface);
}

.ah-detail-buybox {
  display: grid;
  gap: 16px;
  margin: 20px 26px;
  padding: 22px;
  border: 1px solid color-mix(in srgb, var(--ah-market-gold) 42%, transparent);
  border-radius: 22px;
  background: linear-gradient(135deg, var(--ah-market-pale-gold), var(--ah-market-surface) 62%, var(--ah-market-pale-gold));
  box-shadow: none;
}

.ah-detail-buybox > * {
  min-width: 0;
}

.ah-product-info-panel .ah-detail-buybox,
.ah-service-detail-panel .ah-detail-buybox {
  gap: 16px;
  padding: 22px;
}

.ah-detail-buybox__price-row {
  display: grid !important;
  width: 100%;
  min-width: 0;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: baseline;
  gap: 12px;
}

.ah-detail-buybox__label,
.ah-detail-buybox__price-row > span,
.ah-detail-buybox__stock span,
.ah-detail-quantity-control > span {
  color: var(--ah-market-muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.ah-detail-buybox__price-row strong {
  min-width: 0;
  max-width: 100%;
  justify-self: end;
  overflow-wrap: anywhere;
  color: var(--ah-market-text);
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
  text-align: end;
  unicode-bidi: plaintext;
}

html[dir="rtl"] .ah-detail-buybox__price-row strong {
  justify-self: start;
  text-align: start;
}

.ah-detail-buybox__controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
}

.ah-product-info-panel .ah-detail-buybox__controls {
  gap: 12px;
}

.ah-detail-quantity-control,
.ah-detail-buybox__stock,
.ah-product-info-panel .ah-detail-quantity-control,
.ah-product-info-panel .ah-detail-buybox__stock {
  display: grid;
  min-height: 90px;
  align-content: start;
  gap: 8px;
  padding: 12px 14px;
  border: 1px solid var(--ah-market-border);
  border-radius: 14px;
  background: var(--ah-market-surface);
}

.ah-detail-panel__quantity,
.ah-product-info-panel .ah-detail-panel__quantity {
  width: 100%;
  min-height: 38px;
  height: 38px;
  border-radius: 13px;
  background-color: var(--ah-market-soft-surface);
}

.ah-detail-quantity-stepper {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px;
  align-items: stretch;
  overflow: hidden;
  min-height: 40px;
  border: 1px solid var(--ah-market-border);
  border-radius: 14px;
  background: var(--ah-market-soft-surface);
}

.ah-detail-quantity-stepper.is-invalid {
  border-color: var(--danger, #dc3545);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--danger, #dc3545) 14%, transparent);
}

.ah-detail-quantity-stepper .ah-detail-panel__quantity,
.ah-product-info-panel .ah-detail-quantity-stepper .ah-detail-panel__quantity {
  height: 40px;
  min-height: 40px;
  padding: 8px 12px;
  border: 0;
  border-radius: 0;
  color: var(--ah-market-text);
  background: transparent;
  font-weight: 800;
  appearance: textfield;
  -moz-appearance: textfield;
}

.ah-detail-quantity-stepper .ah-detail-panel__quantity.is-invalid {
  color: var(--danger, #dc3545);
}

.ah-detail-quantity-stepper .ah-detail-panel__quantity::-webkit-outer-spin-button,
.ah-detail-quantity-stepper .ah-detail-panel__quantity::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

.ah-detail-quantity-error {
  color: var(--danger, #dc3545);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.ah-detail-quantity-stepper__buttons {
  display: grid;
  grid-template-rows: 1fr 1fr;
  border-inline-start: 1px solid var(--ah-market-border);
}

.ah-detail-quantity-stepper__btn {
  display: grid;
  min-width: 0;
  min-height: 0;
  place-items: center;
  border: 0;
  color: var(--ah-market-deep-gold);
  background: color-mix(in srgb, var(--ah-market-gold) 12%, transparent);
  font-size: 10px;
  line-height: 1;
}

.ah-detail-quantity-stepper__btn + .ah-detail-quantity-stepper__btn {
  border-top: 1px solid var(--ah-market-border);
}

.ah-detail-quantity-stepper__btn:hover,
.ah-detail-quantity-stepper__btn:focus-visible {
  color: var(--ah-market-on-accent);
  background: var(--ah-market-gold);
  outline: 0;
}

.ah-detail-buybox__stock strong {
  color: var(--ah-market-text);
  font-size: 16px;
  font-weight: 900;
  line-height: 1.35;
}

.ah-detail-buybox .ah-detail-panel__actions {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 12px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.ah-product-info-panel .ah-detail-buybox .ah-detail-panel__actions .btn,
.ah-service-detail-panel .ah-detail-buybox .ah-detail-panel__actions .btn,
.ah-detail-buybox .ah-detail-panel__actions .btn {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding-block: 10px;
  border-radius: var(--ah-market-reference-pill);
  font-size: 15px;
  font-weight: 900;
}

.ah-detail-buybox .ah-detail-panel__actions .btn-light {
  border: 1px solid var(--ah-market-border);
  color: var(--ah-market-text);
  background: transparent;
}

.ah-detail-buybox__assurance {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: inherit;
  font-size: 12px;
}

.ah-product-info-panel .ah-detail-buybox__assurance,
.ah-service-detail-panel .ah-detail-buybox__assurance {
  gap: 8px;
}

.ah-detail-buybox__assurance span,
.ah-product-info-panel .ah-detail-buybox__assurance span,
.ah-service-detail-panel .ah-detail-buybox__assurance span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 6px 10px;
  border: 1px solid color-mix(in srgb, var(--ah-market-gold) 35%, transparent);
  border-radius: var(--ah-market-reference-pill);
  color: var(--ah-market-deep-gold);
  background: var(--ah-market-surface);
  font-size: 12px;
  font-weight: 800;
}

.ah-detail-panel__seller {
  margin: 0 26px 20px;
  padding: 0;
  border: 1px solid var(--ah-market-border);
  border-radius: 17px;
  background: var(--ah-market-soft-surface);
  box-shadow: none;
}

.ah-product-info-panel .ah-detail-panel__seller,
.ah-service-detail-panel .ah-detail-panel__seller {
  padding: 0;
}

.ah-detail-panel__seller-link {
  display: flex;
  min-height: 78px;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  color: var(--ah-market-text);
  text-decoration: none;
}

.ah-detail-panel__seller-link:hover {
  color: var(--ah-market-text);
  background: var(--ah-market-pale-gold);
}

.ah-detail-panel__seller-logo {
  display: grid;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--ah-market-gold) 42%, transparent);
  border-radius: 13px;
  color: var(--ah-market-deep-gold);
  background: var(--ah-market-pale-gold);
  font-size: 23px;
}

.ah-detail-panel__seller-link span:not(.ah-detail-panel__seller-logo) {
  flex: 1 1 auto;
}

.ah-detail-panel__seller-link strong {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--ah-market-text);
  font-size: 15px;
  font-weight: 900;
}

.ah-detail-panel__seller-link small {
  display: block;
  margin-top: 2px;
  color: var(--ah-market-muted);
  font-size: 12.5px;
  font-weight: 700;
}

.ah-detail-panel__seller-verified {
  color: var(--ah-market-success, #1e9e63);
}

.ah-detail-panel__seller-go {
  color: var(--ah-market-deep-gold);
}

html[dir="rtl"] .ah-detail-panel__seller-go {
  transform: rotate(180deg);
}

.ah-detail-disclosure,
.ah-product-info-panel .ah-detail-disclosure,
.ah-service-detail-panel .ah-detail-disclosure {
  margin: 0 26px;
  padding: 0;
  border: 0;
  border-top: 1px solid var(--ah-market-border);
  border-radius: 0;
  background: transparent;
}

.ah-detail-disclosure:last-child {
  margin-bottom: 24px;
  border-bottom: 1px solid var(--ah-market-border);
}

.ah-detail-disclosure summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 4px;
  color: var(--ah-market-text);
  font-size: 16px;
  font-weight: 900;
  list-style: none;
}

.ah-detail-disclosure summary::-webkit-details-marker {
  display: none;
}

.ah-detail-disclosure summary::before {
  content: "\f054";
  color: var(--ah-market-deep-gold);
  font-family: "Font Awesome 6 Free", "Font Awesome 5 Free";
  font-size: 12px;
  font-weight: 900;
  transition: transform .16s ease;
}

html[dir="rtl"] .ah-detail-disclosure summary::before {
  transform: rotate(180deg);
}

.ah-detail-disclosure[open] summary::before {
  transform: rotate(90deg);
}

html[dir="rtl"] .ah-detail-disclosure[open] summary::before {
  transform: rotate(90deg);
}

.ah-detail-disclosure p,
.ah-detail-disclosure .ah-detail-panel__list,
.ah-detail-disclosure .ah-market-protection,
.ah-detail-kv {
  margin: 0;
  padding: 0 4px 20px 36px;
  color: var(--ah-market-muted);
  font-size: 14px;
  line-height: 1.7;
}

html[dir="rtl"] .ah-detail-disclosure p,
html[dir="rtl"] .ah-detail-disclosure .ah-detail-panel__list,
html[dir="rtl"] .ah-detail-disclosure .ah-market-protection,
html[dir="rtl"] .ah-detail-kv {
  padding: 0 36px 20px 4px;
}

.ah-detail-kv {
  display: flex;
  gap: 10px;
  padding-block: 8px;
  border-bottom: 1px dashed var(--ah-market-border);
}

.ah-detail-kv:last-child {
  border-bottom: 0;
  padding-bottom: 20px;
}

.ah-detail-kv span {
  min-width: 130px;
  color: var(--ah-market-text);
  font-weight: 900;
}

.ah-detail-kv strong {
  color: var(--ah-market-muted);
  font-weight: 700;
}

.ah-detail-disclosure--trust .ah-market-protection {
  display: block;
  background: transparent;
  border: 0;
  box-shadow: none;
}

@media (min-width: 992px) {
  .ah-market-detail-page {
    max-height: none !important;
    overflow: visible !important;
  }

  .ah-detail-layout {
    max-height: none !important;
    overflow: visible !important;
  }

  .ah-detail-layout__media,
  .ah-detail-layout__info {
    max-height: none !important;
    overflow: visible !important;
  }

  .ah-detail-layout__media {
    padding-inline-end: 13px;
  }

  .ah-detail-layout__info {
    padding-inline-start: 13px;
  }
}

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

@media (max-width: 575.98px) {
  .ah-detail-buybox,
  .ah-product-info-panel .ah-detail-buybox,
  .ah-service-detail-panel .ah-detail-buybox {
    margin-inline: 16px;
    padding: 16px;
  }

  .ah-detail-buybox__controls,
  .ah-detail-buybox .ah-detail-panel__actions {
    grid-template-columns: minmax(0, 1fr);
  }

  .ah-detail-panel__header,
  .ah-product-info-panel .ah-detail-panel__header,
  .ah-service-detail-panel .ah-detail-panel__header {
    padding-inline: 18px;
  }

  .ah-detail-panel__seller,
  .ah-detail-disclosure,
  .ah-product-info-panel .ah-detail-disclosure,
  .ah-service-detail-panel .ah-detail-disclosure {
    margin-inline: 16px;
  }

  .ah-gallery__thumb {
    flex-basis: 64px;
    width: 64px;
    height: 64px;
  }
}

/* Store detail reference alignment */
.ah-store-detail {
  display: grid;
  gap: 22px;
}

.ah-store-hero {
  overflow: hidden;
  border: 1px solid var(--ah-market-border);
  border-radius: var(--ah-market-reference-radius-panel);
  background: var(--ah-market-surface);
  box-shadow: var(--ah-market-shadow-sm);
}

.ah-store-hero__cover {
  position: relative;
  height: 200px;
  min-height: 200px;
  overflow: hidden;
  border-radius: 0;
  background:
    radial-gradient(120% 140% at 90% 0%, color-mix(in srgb, var(--ah-market-gold) 35%, transparent), transparent 55%),
    linear-gradient(135deg, var(--ah-market-soft-gold), var(--ah-market-pale-gold) 60%, var(--ah-market-surface));
}

.ah-store-hero__cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, color-mix(in srgb, var(--ah-market-deep-gold) 18%, transparent) 1px, transparent 1.5px);
  background-size: 18px 18px;
  -webkit-mask-image: linear-gradient(135deg, #000, transparent 65%);
  mask-image: linear-gradient(135deg, #000, transparent 65%);
}

.ah-store-hero__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  padding: 0 32px 28px;
  background: var(--ah-market-surface);
}

.ah-store-hero__avatar {
  position: relative;
  z-index: 1;
  width: 132px;
  height: 132px;
  margin-top: -66px;
  border: 4px solid var(--ah-market-surface);
  border-radius: 26px;
  box-shadow: var(--ah-market-shadow-md);
  object-fit: cover;
}

.ah-store-hero__main {
  display: grid;
  gap: 0;
  margin-top: -28px;
}

.ah-store-hero__title-row {
  align-items: flex-start;
  gap: 20px;
}

.ah-store-hero h1 {
  margin: 6px 0 0;
  color: var(--ah-market-text);
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
}

.ah-store-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0 0;
  color: var(--ah-market-muted);
  font-size: 14.5px;
  font-weight: 800;
}

.ah-store-hero__meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ah-store-hero__meta span + span::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--ah-market-muted) 42%, transparent);
}

.ah-store-hero__description {
  max-width: 620px;
  margin: 14px 0 0;
  color: var(--ah-market-muted);
  font-size: 15px;
  line-height: 1.6;
}

.ah-store-hero__stats {
  display: grid;
  max-width: 560px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.ah-store-hero__stats div {
  min-height: 100px;
  padding: 16px 18px;
  border: 1px solid var(--ah-market-border);
  border-radius: 16px;
  background: var(--ah-market-pale-gold);
}

.ah-store-hero__stats dt {
  color: var(--ah-market-muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.ah-store-hero__stats dd {
  margin: 4px 0 0;
  color: var(--ah-market-text);
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
}

.ah-store-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.ah-store-hero__actions .btn {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--ah-market-reference-pill);
  font-weight: 900;
  box-shadow: none;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background-color .18s ease, color .18s ease;
}

.ah-store-hero__actions .btn-primary {
  border-color: var(--ah-market-gold);
  color: var(--ah-market-on-accent);
  background: var(--ah-market-gold);
}

.ah-store-hero__actions .btn-primary:hover,
.ah-store-hero__actions .btn-primary:focus-visible {
  transform: translateY(-2px);
  border-color: var(--ah-market-deep-gold);
  color: var(--ah-market-on-accent);
  background: var(--ah-market-deep-gold);
  box-shadow: 0 12px 22px color-mix(in srgb, var(--ah-market-gold) 28%, transparent);
}

.ah-store-hero__actions .btn-outline-primary,
.ah-store-action--contact {
  border-color: color-mix(in srgb, var(--ah-market-gold) 54%, var(--ah-market-border));
  color: var(--ah-market-deep-gold);
  background: var(--ah-market-surface);
}

.ah-store-hero__actions .btn-outline-primary:hover,
.ah-store-hero__actions .btn-outline-primary:focus-visible,
.ah-store-action--contact:hover,
.ah-store-action--contact:focus-visible {
  transform: translateY(-2px);
  border-color: var(--ah-market-gold);
  color: var(--ah-market-text);
  background: var(--ah-market-pale-gold);
  box-shadow: 0 12px 22px rgba(20, 16, 8, .08);
}

.ah-store-hero__actions .btn-light {
  border: 1px solid transparent;
  color: var(--ah-market-muted);
  background: transparent;
}

.ah-store-hero__actions .btn-light:hover,
.ah-store-hero__actions .btn-light:focus-visible {
  transform: translateY(-2px);
  border-color: var(--ah-market-border);
  color: var(--ah-market-text);
  background: var(--ah-market-soft-surface);
  box-shadow: 0 12px 22px rgba(20, 16, 8, .07);
}

.ah-store-hero .ah-seller-card__verified {
  min-height: 34px;
  padding: 7px 14px !important;
  color: var(--ah-market-soft-gold) !important;
  background: var(--ah-market-charcoal) !important;
  font-size: 13px !important;
}

.ah-store-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 6px;
  border: 1px solid var(--ah-market-border);
  border-radius: var(--ah-market-reference-pill);
  background: var(--ah-market-surface);
  scrollbar-width: none;
}

.ah-store-tabs::-webkit-scrollbar {
  display: none;
}

.ah-store-tab {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: var(--ah-market-reference-pill);
  color: var(--ah-market-muted);
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.ah-store-tab:hover {
  color: var(--ah-market-text);
  text-decoration: none;
}

.ah-store-tab.active {
  color: var(--ah-market-soft-gold);
  background: var(--ah-market-charcoal);
}

.ah-store-section {
  padding: 0;
}

.ah-store-detail .ah-store-catalog-shell {
  padding: 4px;
}

.ah-store-filter-toggle,
.ah-store-category-sidebar,
.ah-store-filter-backdrop {
  display: none !important;
}

.ah-store-catalog-layout {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.ah-store-products-panel {
  position: static;
  display: block;
  grid-column: 2;
  max-height: none;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.ah-store-products-panel .ah-market-section__header {
  margin-block-end: 24px;
}

.ah-store-products-scroll {
  overflow: visible;
}

.ah-store-panel {
  padding: 24px 26px;
  border: 1px solid var(--ah-market-border);
  border-radius: var(--ah-market-reference-radius-card);
  background: color-mix(in srgb, var(--ah-market-surface) 94%, var(--ah-market-pale-gold));
  box-shadow: var(--ah-market-shadow-sm);
}

.ah-store-panel h3 {
  margin: 0 0 12px;
  color: var(--ah-market-text);
  font-size: 18px;
  font-weight: 900;
}

.ah-store-panel p {
  margin: 0;
  color: var(--ah-market-muted);
  font-size: 14.5px;
  line-height: 1.65;
}

.ah-store-trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.ah-store-trust-grid--compact {
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

.ah-store-trust-item {
  display: flex;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--ah-market-border);
  border-radius: 14px;
  background: var(--ah-market-soft-surface);
}

.ah-store-trust-item__icon {
  display: grid;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 10px;
  color: var(--ah-market-deep-gold);
  background: var(--ah-market-pale-gold);
}

.ah-store-trust-item h4 {
  margin: 0;
  color: var(--ah-market-text);
  font-size: 14px;
  font-weight: 900;
}

.ah-store-trust-item p {
  margin: 3px 0 0;
  color: var(--ah-market-muted);
  font-size: 12.5px;
  line-height: 1.5;
}

@media (max-width: 767.98px) {
  .ah-store-hero__body {
    padding: 0 18px 22px;
  }

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

body.night-mode .ah-detail-panel,
body.night-mode .ah-store-hero,
body.night-mode .ah-store-tabs,
body.night-mode .ah-store-panel {
  background: var(--ah-market-surface);
}

body.night-mode .ah-detail-buybox,
body.night-mode .ah-store-hero__stats div {
  background: color-mix(in srgb, var(--ah-market-gold) 13%, var(--ah-market-surface));
}

.ah-store-detail .ah-store-tabs {
  position: sticky;
  top: 0;
  z-index: 20;
  box-shadow: 0 10px 24px rgba(20, 16, 8, .08);
}

.ah-store-section.js_store-section-anchor {
  scroll-margin-top: calc(var(--ah-store-tabs-height, 56px) + 16px);
}

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

.ah-store-overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr);
  gap: 18px;
  align-items: stretch;
}

.ah-store-overview-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

#ah-store-contact-links {
  scroll-margin-top: calc(var(--ah-store-tabs-height, 56px) + 16px);
}

.ah-store-panel--summary {
  display: grid;
  align-content: start;
  gap: 8px;
}

.ah-store-panel--summary h2 {
  margin: 0;
  color: var(--ah-market-text);
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.1;
}

.ah-store-info-list {
  display: grid;
  gap: 10px;
  margin: 0;
}

.ah-store-info-list > div {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.ah-store-info-list--cards {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.ah-store-info-list--cards > div {
  padding: 14px;
  border: 1px solid var(--ah-market-border);
  border-radius: 14px;
  background: var(--ah-market-soft-surface);
}

.ah-store-info-list dt {
  color: var(--ah-market-muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.ah-store-info-list dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--ah-market-text);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.45;
}

.ah-store-info-list a {
  color: var(--ah-market-deep-gold);
  text-decoration: none;
}

.ah-store-chip-list,
.ah-store-social-list,
.ah-store-delivery-zones {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ah-store-chip {
  display: inline-grid;
  min-height: 48px;
  align-content: center;
  gap: 2px;
  padding: 8px 12px;
  border: 1px solid var(--ah-market-border);
  border-radius: 14px;
  background: var(--ah-market-soft-surface);
}

.ah-store-chip strong {
  color: var(--ah-market-text);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.2;
}

.ah-store-chip small {
  color: var(--ah-market-muted);
  font-size: 11.5px;
  font-weight: 800;
}

.ah-store-count-pill {
  display: inline-grid;
  min-width: 38px;
  height: 38px;
  place-items: center;
  padding: 0 12px;
  border-radius: var(--ah-market-reference-pill);
  color: var(--ah-market-soft-gold);
  background: var(--ah-market-charcoal);
  font-weight: 900;
}

.ah-store-detail .ah-store-category-sidebar {
  display: block !important;
  position: static;
  top: auto;
  margin-top: 0;
  align-self: start;
}

.ah-store-load-more {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.ah-store-load-more .btn {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  gap: 8px;
  border-radius: var(--ah-market-reference-pill);
  font-weight: 900;
}

.ah-store-load-more__spinner {
  display: none;
}

.ah-store-load-more .is-loading .ah-store-load-more__spinner {
  display: inline-block;
}

.ah-store-social-list {
  margin-top: 16px;
}

.ah-store-social-list a {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--ah-market-border);
  border-radius: 12px;
  color: var(--ah-market-deep-gold);
  background: var(--ah-market-pale-gold);
  text-decoration: none;
}

.ah-store-social-list a:hover,
.ah-store-social-list a:focus-visible {
  color: var(--ah-market-on-accent);
  background: var(--ah-market-gold);
  outline: 0;
}

.ah-store-delivery-zones {
  margin-top: 16px;
}

.ah-store-delivery-zone {
  display: grid;
  min-width: min(100%, 220px);
  gap: 3px;
  padding: 13px 14px;
  border: 1px solid var(--ah-market-border);
  border-radius: 14px;
  background: var(--ah-market-soft-surface);
}

.ah-store-delivery-zone strong {
  color: var(--ah-market-text);
  font-size: 14px;
  font-weight: 900;
}

.ah-store-delivery-zone span,
.ah-store-delivery-zone small {
  color: var(--ah-market-muted);
  font-size: 12.5px;
  font-weight: 800;
  line-height: 1.35;
}

body.night-mode .ah-store-info-list--cards > div,
body.night-mode .ah-store-chip,
body.night-mode .ah-store-delivery-zone {
  border-color: rgba(255, 255, 255, .12);
  background: var(--ah-market-soft-surface);
}

@media (max-width: 940px) {
  .ah-store-catalog-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .ah-store-detail .ah-store-catalog-shell {
    padding: 4px;
  }

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

  .ah-store-detail .ah-store-filter-toggle {
    display: inline-flex !important;
  }

  .ah-store-detail .ah-store-category-sidebar {
    display: block !important;
    position: fixed;
    inset-block: 0;
    inset-inline-start: 0;
    top: auto;
    margin-top: 0;
  }
}

@media (max-width: 767.98px) {
  .ah-store-detail .ah-store-tabs {
    top: 0;
    margin-inline: -4px;
  }

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

/* Marketplace issue-fix pass: spacing, share controls, seller stats */
.ah-seller-card__title-row,
.ah-seller-card .ah-seller-card__title-row,
.ah-seller-card .ah-market-card__head.ah-seller-card__title-row {
  display: flex !important;
  grid-template-columns: none !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  width: 100%;
}

.ah-seller-card__title {
  flex: 1 1 auto;
}

.ah-seller-card__title a {
  -webkit-line-clamp: 1;
}

.ah-seller-card__verified {
  flex: 0 0 auto;
  margin-inline-start: auto !important;
  white-space: nowrap;
}

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

.ah-seller-card__stats .ah-market-card__fact {
  min-height: 46px;
}

.ah-market-filter {
  padding: 16px !important;
}

.ah-market-filter__group {
  margin-top: 14px !important;
  padding: 14px !important;
  border: 1px solid var(--ah-market-border) !important;
  border-radius: var(--ah-market-reference-radius-control) !important;
  background: color-mix(in srgb, var(--ah-market-surface) 74%, var(--ah-market-soft-surface)) !important;
}

.ah-market-filter__group:first-of-type {
  margin-top: 0 !important;
}

.ah-market-filter__group .row {
  --bs-gutter-x: 12px;
  row-gap: 12px;
}

.ah-market-filter__group .form-label {
  margin-bottom: 7px;
}

.ah-market-filter__check {
  margin-top: 11px;
  padding: 10px 11px;
  border: 1px solid var(--ah-market-border);
  border-radius: 12px;
  background: var(--ah-market-surface);
}

.ah-market-category-sidebar__list {
  padding: 16px !important;
}

.ah-market-category-sidebar__children {
  padding-inline-start: 8px;
}

.ah-market-all-items {
  padding: 24px !important;
  border: 1px solid var(--ah-market-border) !important;
  border-radius: var(--ah-market-reference-radius-panel) !important;
  background: var(--ah-market-surface) !important;
  box-shadow: var(--ah-market-shadow-sm) !important;
}

.ah-market-all-items .ah-market-section__header {
  margin-block-end: 24px !important;
}

.ah-market-all-items__body {
  padding: 0 !important;
}

.ah-market-all-items .ah-product-grid__row,
.ah-market-all-items .ah-service-grid__row {
  gap: 20px;
}

.ah-detail-buybox .ah-detail-panel__actions {
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
}

.ah-detail-buybox .ah-detail-panel__actions .btn {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ah-market-share-toast {
  position: fixed;
  z-index: 1090;
  inset-inline-start: 50%;
  inset-block-end: 24px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  max-width: calc(100vw - 32px);
  padding: 12px 22px;
  border-radius: var(--ah-market-reference-pill);
  color: var(--ah-market-soft-gold);
  background: var(--ah-market-charcoal);
  box-shadow: var(--ah-market-shadow-lg);
  font-size: 14px;
  font-weight: 900;
  animation: ah-market-share-toast-in .18s ease-out;
}

.ah-market-share-toast.is-hiding {
  opacity: 0;
  transform: translateX(-50%) translateY(8px);
  transition: opacity .18s ease, transform .18s ease;
}

.ah-market-share-modal-overlay {
  position: fixed;
  z-index: 1085;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(17, 22, 29, .6);
  animation: ah-market-share-fade-in .16s ease-out;
}

.ah-market-share-modal {
  width: min(560px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  border: 1px solid var(--ah-market-border);
  border-radius: var(--ah-market-reference-radius-panel);
  background: var(--ah-market-surface);
  box-shadow: var(--ah-market-shadow-lg);
}

.ah-market-share-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--ah-market-border);
}

.ah-market-share-modal__head h3 {
  margin: 0;
  color: var(--ah-market-text);
  font-size: 18px;
  font-weight: 900;
}

.ah-market-share-modal__close {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--ah-market-border);
  border-radius: 12px;
  color: var(--ah-market-text);
  background: var(--ah-market-surface);
}

.ah-market-share-modal__body {
  display: grid;
  gap: 14px;
  padding: 20px 22px;
}

.ah-market-share-modal__body p {
  margin: 0;
  color: var(--ah-market-muted);
  font-size: 14px;
  line-height: 1.5;
}

.ah-market-share-modal__field {
  display: grid;
  gap: 7px;
  margin: 0;
}

.ah-market-share-modal__field > span {
  color: var(--ah-market-text);
  font-size: 13px;
  font-weight: 900;
}

.ah-market-share-modal__field > div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ah-market-share-modal__field input {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  height: 46px;
  padding: 10px 13px;
  border: 1px solid var(--ah-market-border);
  border-radius: 13px;
  color: var(--ah-market-text);
  background: var(--ah-market-soft-surface);
}

.ah-market-share-modal__copy {
  flex: 0 0 auto;
  min-width: 88px;
  min-height: 46px;
  border-radius: var(--ah-market-reference-pill);
  font-weight: 900;
}

@keyframes ah-market-share-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes ah-market-share-toast-in {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%);
  }
}

@media (max-width: 575.98px) {
  .ah-market-all-items {
    padding: 16px !important;
  }

  .ah-detail-buybox .ah-detail-panel__actions {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Marketplace pagebar reference alignment */
.ah-market-pagebar {
  position: sticky;
  top: 0;
  z-index: 45;
  isolation: isolate;
  min-height: 65px;
  margin-block: 0;
  margin-inline: 0;
  padding-block: 0;
  padding-inline: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.ah-market-pagebar::before {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline: 0;
  z-index: -1;
  border-bottom: 1px solid var(--ah-market-border);
  background: color-mix(in srgb, var(--ah-market-surface) 86%, transparent);
  box-shadow: 0 0 0 100vmax color-mix(in srgb, var(--ah-market-surface) 86%, transparent);
  clip-path: inset(0 -100vmax);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  pointer-events: none;
}

.ah-market-pagebar__brand {
  gap: 12px;
  min-height: 64px;
  color: var(--ah-market-text);
}

.ah-market-pagebar__brand:hover,
.ah-market-pagebar__brand:focus {
  color: var(--ah-market-text);
  text-decoration: none;
}

.ah-market-pagebar__brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  line-height: 1.1;
}

.ah-market-pagebar__brand strong {
  display: block;
  color: var(--ah-market-text);
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.15;
}

.ah-market-pagebar__brand small {
  display: block;
  margin-block-start: 2px;
  color: var(--ah-market-muted);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .01em;
  line-height: 1.15;
  white-space: nowrap;
}

.ah-market-pagebar__brand small b {
  color: var(--ah-market-deep-gold);
  font-weight: 800;
}

.ah-market-pagebar__logo {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-color: var(--ah-market-deep-gold);
  border-radius: 12px;
  color: var(--ah-market-gold);
  background: var(--ah-market-charcoal);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ah-market-gold) 24%, transparent), 0 4px 14px -4px color-mix(in srgb, var(--ah-market-gold) 42%, transparent);
}

.ah-market-pagebar__logo svg,
.ah-market-pagebar__logo svg * {
  stroke: currentColor;
}

.ah-market-pagebar__actions {
  flex: 0 0 auto;
  flex-wrap: nowrap;
  gap: 8px;
  margin-inline-start: auto;
}

.ah-market-pagebar__divider {
  flex: 0 0 auto;
  width: 1px;
  height: 26px;
  margin-inline: 3px;
  background: var(--ah-market-border);
}

.ah-market-icon-btn,
.ah-market-avatar-btn {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-color: var(--ah-market-border);
  border-radius: 12px;
  color: var(--ah-market-muted);
  background: var(--ah-market-surface);
  box-shadow: none;
  line-height: 0;
}

.ah-market-icon-btn i,
.ah-market-icon-btn .svg-container,
.ah-market-icon-btn svg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  color: currentColor;
  font-size: 17px;
  line-height: 1;
}

.ah-market-icon-btn .svg-container svg,
.ah-market-icon-btn .svg-container svg * {
  stroke: currentColor;
}

.ah-market-ref-icon {
  display: block;
  flex: 0 0 auto;
  color: currentColor;
  vertical-align: middle;
}

.ah-market-icon-btn > .ah-market-ref-icon[width="20"] {
  width: 20px;
  height: 20px;
}

.ah-market-icon-btn > .ah-market-ref-icon[width="18"] {
  width: 18px;
  height: 18px;
}

.ah-market-ref-icon[fill="none"],
.ah-market-ref-icon[fill="none"] * {
  fill: none !important;
}

.ah-market-ref-icon[fill="currentColor"],
.ah-market-ref-icon[fill="currentColor"] * {
  fill: currentColor;
}

.ah-market-icon-btn .ah-market-ref-icon--sun {
  display: none;
}

body.night-mode .ah-market-icon-btn .ah-market-ref-icon--moon {
  display: none;
}

body.night-mode .ah-market-icon-btn .ah-market-ref-icon--sun {
  display: inline-block;
}

.ah-market-icon-btn:hover,
.ah-market-icon-btn:focus,
.ah-market-avatar-btn:hover,
.ah-market-avatar-btn:focus {
  border-color: var(--ah-market-gold);
  color: var(--ah-market-text);
  background: var(--ah-market-soft-surface);
  transform: none;
  box-shadow: none;
}

.ah-market-icon-btn--accent {
  border-color: color-mix(in srgb, var(--ah-market-gold) 42%, var(--ah-market-border));
  color: var(--ah-market-deep-gold);
  background: var(--ah-market-pale-gold);
}

.ah-market-icon-btn--accent:hover,
.ah-market-icon-btn--accent:focus {
  border-color: color-mix(in srgb, var(--ah-market-gold) 54%, var(--ah-market-border));
  color: var(--ah-market-deep-gold);
  background: var(--ah-market-soft-gold);
}

.ah-market-icon-btn.active {
  border-color: color-mix(in srgb, var(--ah-market-gold) 54%, var(--ah-market-border));
  color: var(--ah-market-deep-gold);
  background: var(--ah-market-pale-gold);
}

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

.ah-market-avatar-btn {
  overflow: hidden;
  padding: 0;
}

.ah-market-avatar-btn img {
  width: 100%;
  height: 100%;
  border-radius: 10px;
}

.ah-market-pagebar .dropdown {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  height: 42px;
}

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

.ah-market-pagebar + .ah-market-main-slot,
.ah-market-pagebar + .ah-market-catalog,
.ah-market-pagebar + .ah-market-page,
.ah-market-pagebar + .ah-store-detail {
  margin-block-start: 42px;
}

.ah-market-pagebar + .alert {
  margin-block-start: 16px !important;
}

.ah-market-pagebar + .ah-market-main-slot .ah-market-catalog,
.ah-market-pagebar + .ah-market-catalog {
  padding-block-start: 0;
}

body.night-mode .ah-market-pagebar {
  background: transparent;
}

body.night-mode .ah-market-pagebar::before {
  border-color: var(--ah-market-border);
  background: color-mix(in srgb, var(--ah-market-surface) 86%, transparent);
}

body.night-mode .ah-market-pagebar__brand small b {
  color: var(--ah-market-gold);
}

body.night-mode .ah-market-pagebar__logo {
  border-color: var(--ah-market-gold) !important;
  color: var(--ah-market-gold) !important;
  background: var(--ah-market-charcoal) !important;
}

body.night-mode .ah-market-icon-btn,
body.night-mode .ah-market-avatar-btn {
  border-color: var(--ah-market-border) !important;
  color: var(--ah-market-muted) !important;
  background: var(--ah-market-surface) !important;
}

body.night-mode .ah-market-icon-btn:hover,
body.night-mode .ah-market-icon-btn:focus,
body.night-mode .ah-market-avatar-btn:hover,
body.night-mode .ah-market-avatar-btn:focus {
  border-color: var(--ah-market-gold) !important;
  color: var(--ah-market-text) !important;
  background: var(--ah-market-soft-surface) !important;
}

body.night-mode .ah-market-icon-btn.active,
body.night-mode .ah-market-icon-btn--accent {
  border-color: color-mix(in srgb, var(--ah-market-gold) 48%, var(--ah-market-border)) !important;
  color: var(--ah-market-gold) !important;
  background: color-mix(in srgb, var(--ah-market-gold) 16%, var(--ah-market-surface)) !important;
}

@media (max-width: 575.98px) {
  .ah-market-pagebar {
    display: flex;
    min-height: 64px;
    gap: 10px;
    margin-inline: 0;
    padding-block: 0;
    padding-inline: 0;
    overflow: visible;
  }

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

  .ah-market-pagebar__actions {
    flex: 0 1 auto;
    width: auto;
    min-width: 0;
    justify-content: flex-end;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .ah-market-pagebar__actions::-webkit-scrollbar {
    display: none;
  }

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

  .ah-market-pagebar + .ah-market-main-slot,
  .ah-market-pagebar + .ah-market-catalog,
  .ah-market-pagebar + .ah-market-page,
  .ah-market-pagebar + .ah-store-detail {
    margin-block-start: 32px;
  }
}

@media (max-width: 420px) {
  .ah-market-pagebar__brand small {
    display: none;
  }
}
