/* ============================================================
   WHITE AUDITION — Hybrid storefront homepage
   Prefixed ah-hx-* to avoid Bootstrap / theme clashes
   ============================================================ */

.ah-hx-banner {
  position: relative;
  overflow: hidden;
  background: #1a1816;
}
.ah-hx-banner-track {
  display: flex;
  transition: transform .55s cubic-bezier(.4, 0, .2, 1);
}
.ah-hx-banner-slide {
  flex: 0 0 100%;
  position: relative;
  height: min(52vh, 480px);
  min-height: 320px;
}
.ah-hx-banner-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ah-hx-banner-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(17, 16, 16, .72) 0%, rgba(17, 16, 16, .35) 45%, transparent 75%);
}
.ah-hx-banner-copy {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  padding: 0 28px;
  color: #fff;
  pointer-events: none;
}
.ah-hx-banner-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ah-color-primary-text);
  margin-bottom: 12px;
}
.ah-hx-banner-title {
  font-family: var(--ah-font-serif);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 600;
  line-height: 1.15;
  max-width: 480px;
  margin-bottom: 10px;
  color: #fff;
}
.ah-hx-banner-sub {
  font-size: 15px;
  color: rgba(255, 255, 255, .7);
  max-width: 380px;
  margin: 0;
}
.ah-hx-banner-ctrl {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 2;
}
.ah-hx-banner-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .35);
  padding: 0;
  border: none;
  cursor: pointer;
  transition: all .25s;
}
.ah-hx-banner-dot.active {
  width: 24px;
  border-radius: 4px;
  background: var(--ah-color-primary);
}
.ah-hx-banner-arr {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  color: var(--ah-color-dark);
  display: grid;
  place-items: center;
  box-shadow: 0 4px 20px rgba(17, 16, 16, .08);
  border: none;
  cursor: pointer;
  transition: background .2s;
}
.ah-hx-banner-arr:hover { background: #fff; }
.ah-hx-banner-prev { left: 16px; }
.ah-hx-banner-next { right: 16px; }

/* Category tiles */
.ah-hx-cats {
  padding: 32px 0 8px;
  background: #fff;
  border-bottom: 1px solid var(--ah-color-border);
}
.ah-hx-cats-row {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 12px;
}
.ah-hx-cat-tile {
  text-align: center;
  padding: 8px 4px 12px;
  border-radius: 8px;
  transition: background .2s;
  text-decoration: none;
  color: inherit;
}
.ah-hx-cat-tile:hover {
  background: var(--ah-color-bg-warm);
  color: inherit;
}
.ah-hx-cat-tile-img {
  width: 72px;
  height: 72px;
  margin: 0 auto 10px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--ah-color-border);
  background: var(--ah-color-bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ah-font-serif);
  font-size: 1.4rem;
  color: var(--ah-color-primary-text);
}
.ah-hx-cat-tile-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ah-hx-cat-tile-name {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ah-color-dark);
}

/* Sections */
.ah-hx-sec { padding: 40px 0; background: var(--ah-color-bg-warm); }
.ah-hx-sec--white { background: #fff; }
.ah-hx-sec-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.ah-hx-sec-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ah-color-dark);
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-family: var(--ah-font-body);
}
.ah-hx-sec-title em {
  font-family: var(--ah-font-serif);
  font-style: italic;
  font-weight: 500;
  color: var(--ah-color-primary-dk);
}
.ah-hx-sec-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #C0392B;
}
.ah-hx-sec-live i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #C0392B;
  display: block;
  animation: ah-hx-blink 1.4s infinite;
}
@keyframes ah-hx-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: .25; }
}
.ah-hx-sec-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--ah-color-text-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  text-decoration: none;
}
.ah-hx-sec-link:hover { color: var(--ah-color-dark); }
.ah-hx-sec-link i { font-size: 11px; }

/* Rails */
.ah-hx-rail-wrap { position: relative; }
.ah-hx-rail {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 4px 2px 12px;
  -webkit-overflow-scrolling: touch;
}
.ah-hx-rail::-webkit-scrollbar { display: none; }
.ah-hx-rail-btn {
  position: absolute;
  top: 40%;
  z-index: 3;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--ah-color-border);
  box-shadow: 0 4px 20px rgba(17, 16, 16, .08);
  display: grid;
  place-items: center;
  color: var(--ah-color-dark);
  cursor: pointer;
  transition: background .2s;
}
.ah-hx-rail-btn:hover { background: var(--ah-color-bg-light); }
.ah-hx-rail-btn.prev { left: -8px; }
.ah-hx-rail-btn.next { right: -8px; }

/* Make product grids horizontal inside rails */
.ah-hx-rail .ah-product-grid,
.ah-hx-rail .ah-hx-collections {
  display: flex;
  gap: 16px;
  flex-wrap: nowrap;
  width: max-content;
  min-width: 100%;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
}
.ah-hx-rail .ah-product-card,
.ah-hx-rail .ah-hx-pcard {
  flex: 0 0 220px;
  scroll-snap-align: start;
  width: 220px;
  max-width: 220px;
}

/* Collection / storefront card */
.ah-hx-pcard {
  flex: 0 0 220px;
  scroll-snap-align: start;
  background: #fff;
  border: 1px solid var(--ah-color-border);
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow .22s, transform .22s, border-color .22s;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}
.ah-hx-pcard:hover {
  box-shadow: 0 4px 20px rgba(17, 16, 16, .08);
  transform: translateY(-3px);
  border-color: #ddd5c8;
  color: inherit;
}
.ah-hx-pcard-media {
  position: relative;
  aspect-ratio: 1;
  background: var(--ah-color-bg-light);
  overflow: hidden;
}
.ah-hx-pcard-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s cubic-bezier(.4, 0, .2, 1);
}
.ah-hx-pcard:hover .ah-hx-pcard-media img { transform: scale(1.05); }
.ah-hx-pcard-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 1;
}
.ah-hx-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #fff;
}
.ah-hx-badge--live { background: #2E7D4F; }
.ah-hx-badge--auction { background: var(--ah-color-primary-dk); }
.ah-hx-badge--shop { background: var(--ah-color-dark); }
.ah-hx-pcard-body {
  padding: 12px 14px 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.ah-hx-pcard-vendor {
  font-size: 11px;
  font-weight: 600;
  color: var(--ah-color-primary-dk);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 4px;
}
.ah-hx-pcard-title {
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ah-color-dark);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 6px;
  min-height: 2.7em;
}
.ah-hx-pcard-meta {
  font-size: 11.5px;
  color: var(--ah-color-text-light);
  margin-bottom: 10px;
}
.ah-hx-pcard-foot {
  margin-top: auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--ah-color-border);
}
.ah-hx-pcard-price-lbl {
  font-size: 10px;
  color: var(--ah-color-text-light);
  margin-bottom: 1px;
}
.ah-hx-pcard-price {
  font-size: 15px;
  font-weight: 700;
  color: var(--ah-color-dark);
}
.ah-hx-pcard-cart {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--ah-color-bg-warm);
  color: var(--ah-color-dark);
  display: grid;
  place-items: center;
  font-size: 13px;
  flex-shrink: 0;
  transition: background .2s, color .2s;
}
.ah-hx-pcard:hover .ah-hx-pcard-cart {
  background: var(--ah-color-dark);
  color: #fff;
}

/* Promo */
.ah-hx-promos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.ah-hx-promo {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  min-height: 180px;
  display: flex;
  align-items: flex-end;
  text-decoration: none;
  color: #fff;
}
.ah-hx-promo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s;
}
.ah-hx-promo:hover img { transform: scale(1.04); }
.ah-hx-promo:hover { color: #fff; }
.ah-hx-promo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, .75), transparent 60%);
}
.ah-hx-promo-body {
  position: relative;
  z-index: 1;
  padding: 22px;
}
.ah-hx-promo-kicker {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ah-color-primary-text);
  margin-bottom: 6px;
}
.ah-hx-promo-title {
  font-family: var(--ah-font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 4px;
}
.ah-hx-promo-sub {
  font-size: 13px;
  color: rgba(255, 255, 255, .65);
  margin: 0;
}

/* Tabs */
.ah-hx-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--ah-color-border);
}
.ah-hx-tab {
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ah-color-text-light);
  border: none;
  background: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
  transition: color .2s, border-color .2s;
  font-family: inherit;
}
.ah-hx-tab.active {
  color: var(--ah-color-dark);
  border-bottom-color: var(--ah-color-primary);
}
.ah-hx-tab-panel { display: none; }
.ah-hx-tab-panel.active { display: block; }
.ah-hx-tab-panel .ah-product-grid {
  grid-template-columns: repeat(5, 1fr);
}

/* Brands / vendors */
.ah-hx-brands {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 4px 0;
}
.ah-hx-brands::-webkit-scrollbar { display: none; }
.ah-hx-brand {
  flex: 0 0 160px;
  height: 72px;
  border: 1px solid var(--ah-color-border);
  border-radius: 8px;
  background: #fff;
  display: grid;
  place-items: center;
  font-family: var(--ah-font-serif);
  font-size: 14px;
  font-weight: 600;
  color: var(--ah-color-text-muted);
  text-align: center;
  padding: 8px;
  text-decoration: none;
  transition: border-color .2s, color .2s;
}
.ah-hx-brand:hover {
  border-color: var(--ah-color-primary);
  color: var(--ah-color-dark);
}
.ah-hx-brand img {
  max-height: 40px;
  max-width: 120px;
  object-fit: contain;
}

/* Artists strip */
.ah-hx-artists {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 4px 0;
}
.ah-hx-artists::-webkit-scrollbar { display: none; }
.ah-hx-artists .ah-hx-cat-tile {
  flex: 0 0 100px;
}

/* Trust */
.ah-hx-trust {
  background: #fff;
  border-top: 1px solid var(--ah-color-border);
  border-bottom: 1px solid var(--ah-color-border);
  padding: 28px 0;
}
.ah-hx-trust-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.ah-hx-trust-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 12px;
}
.ah-hx-trust-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ah-color-bg-light);
  color: var(--ah-color-primary-dk);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 16px;
}
.ah-hx-trust-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ah-color-dark);
}
.ah-hx-trust-sub {
  font-size: 12px;
  color: var(--ah-color-text-light);
}

/* Blog under hybrid */
.ah-hx-sec .ah-blog-grid,
.ah-hx-sec .ah-home-blog {
  margin-top: 0;
}

@media (max-width: 1100px) {
  .ah-hx-tab-panel .ah-product-grid { grid-template-columns: repeat(3, 1fr); }
  .ah-hx-cats-row { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 900px) {
  .ah-hx-rail-btn { display: none; }
}
@media (max-width: 768px) {
  .ah-hx-banner-slide { height: 260px; min-height: 240px; }
  .ah-hx-banner-arr { display: none; }
  .ah-hx-cats-row { grid-template-columns: repeat(4, 1fr); gap: 4px; }
  .ah-hx-cat-tile-img { width: 56px; height: 56px; }
  .ah-hx-tab-panel .ah-product-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .ah-hx-promos { grid-template-columns: 1fr; }
  .ah-hx-trust-row { grid-template-columns: 1fr 1fr; }
  .ah-hx-rail .ah-product-card,
  .ah-hx-rail .ah-hx-pcard {
    flex: 0 0 168px;
    width: 168px;
    max-width: 168px;
  }
}

/* ---- Dynamic homepage additions ---- */
.ah-hx-banner-link {
  position: absolute;
  inset: 0;
  z-index: 2;
}
.ah-hx-banner-cta {
  pointer-events: auto;
  align-self: flex-start;
  margin-top: 8px;
}
.ah-hx-banner-sub p { margin: 0; }
.ah-hx-sec--promo { padding-top: 8px; padding-bottom: 32px; }
.ah-hx-tab-footer { margin-top: 24px; text-align: center; }
.ah-hx-badge--upcoming { background: #3B5B8C; }
.ah-hx-badge--ended { background: #6B6560; }
.ah-hx-badge:not([class*="ah-hx-badge--"]) { background: var(--ah-color-dark); }
.ah-hx-banner-arr:focus-visible,
.ah-hx-banner-dot:focus-visible,
.ah-hx-tab:focus-visible,
.ah-hx-rail-btn:focus-visible {
  outline: 2px solid var(--ah-color-primary);
  outline-offset: 2px;
}

/* ---- Stats band (HomePageStats) ---- */
.ah-hx-statband { background: var(--ah-color-dark); color: #fff; padding: 36px 0; }
.ah-hx-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 24px;
    text-align: center;
}
.ah-hx-stat-value {
    font-family: var(--ah-font-serif);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 500;
    color: var(--ah-color-primary);
    line-height: 1.1;
}
.ah-hx-stat-label {
    margin-top: 6px;
    font-size: .75rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(255,255,255,.75);
}

/* ---- Exhibitions on the homepage reuse the sergi cards (wa-sergi.css) ---- */
.ah-hx-sec .ex-card { text-decoration: none; color: inherit; }

@media (max-width: 640px) {
    .ah-hx-statband { padding: 28px 0; }
    .ah-hx-stats { grid-template-columns: 1fr 1fr; gap: 20px 12px; }
}
