body[data-portal="mall"] {
  background: #0c1714;
}

body[data-portal="mall"] :is(.gallery-site-header, .gallery-mall, .mall-bottom, .site-footer, .mobile-menu-panel) {
  color-scheme: dark;
  --dc-bg: #0c1714;
  --dc-surface: #15201c;
  --dc-raised: #1c2b25;
  --dc-line: #3b4941;
  --dc-text: #f2eee3;
  --dc-muted: #bdbfb1;
  --dc-green: #e4bf83;
  --dc-gold: #e4bf83;
  background-color: var(--dc-bg);
  color: var(--dc-text);
}

.gallery-site-header .site-header-inner { height: 100%; }
.gallery-site-header .brand { color: var(--dc-gold); }
.gallery-site-header .monogram { font-style: italic; }
.gallery-site-header .brand-name { color: var(--dc-text); }
.gallery-site-header :is(.nav-link, .work-link, .account-link, .icon-button) { color: var(--dc-text); }
.gallery-site-header .nav-link.selected { color: var(--dc-gold); }
body[data-portal="mall"] :is(.gallery-site-header, .gallery-mall, .mall-bottom, .site-footer, .mobile-menu-panel) .ui-icon {
  filter: invert(94%) sepia(14%) saturate(516%) hue-rotate(340deg) brightness(104%) contrast(94%);
}
.gallery-site-header .icon-button:hover { background: var(--dc-raised); }
body[data-portal="mall"] .mobile-menu-panel :is(a, button) { color: var(--dc-text); }
.showroom-share { display: inline-grid; place-items: center; }

.showroom-top { padding: 10px 5% 0; }
.showroom-top .showroom-search {
  display: flex;
  width: min(100%, 680px);
  min-width: 0;
  padding: 0 6px 0 14px;
  margin: 0 auto;
  border: 1px solid #7b8579;
  border-radius: 10px;
  background: #121e19;
  gap: 10px;
}
.showroom-search input { min-width: 0; color: var(--dc-text); }
.showroom-search input::placeholder { color: var(--dc-muted); }
.gallery-mall-top.showroom-top > .gallery-category-rail {
  margin: 5px 0 0;
  padding: 0;
  border-bottom: 0;
}
.showroom-top .category-tile { min-height: 49px; }
.showroom-top .category-tile strong { white-space: nowrap; }
.showroom-top .category-tile.active { border-color: var(--dc-gold); }
.showroom-top .category-tile:focus-visible { outline-offset: -3px; }
.showroom-hero {
  background: var(--dc-surface);
  margin-top: 0;
  position: relative;
}
.showroom-hero .gallery-hero-image {
  display: block;
  width: 100%;
  height: clamp(360px, 38vw, 540px);
  object-fit: cover;
  object-position: center 58%;
}
.showroom-hero-caption {
  padding: 25px 5% 18px;
  min-height: 82px;
  background: linear-gradient(0deg, #07100ef5 8%, #0a1311bd 60%, transparent);
  color: var(--dc-text);
}
.showroom-hero-caption h1 {
  margin: 0;
  padding-left: 9px;
  border-left: 2px solid var(--dc-gold);
  font: 400 clamp(28px, 4vw, 48px)/1.18 var(--gallery-display);
  color: var(--dc-text);
}
.showroom-detail-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid var(--dc-gold);
  border-radius: 6px;
  color: var(--dc-text);
  background: #111a16;
  font-size: 13px;
  white-space: nowrap;
  min-height: 44px;
}
.showroom-detail-button:hover { background: #25352b; }
.showroom-detail-button .ui-icon { width: 14px; height: 14px; }
.showroom-hero-caption .showroom-detail-button { color: var(--dc-text); font-size: 13px; gap: 7px; }

.gallery-catalog { position: relative; }
.gallery-catalog .gallery-collection-heading {
  padding-right: 80px;
  margin: 0 0 12px;
  min-height: 44px;
  align-items: center;
}
.gallery-catalog .gallery-collection-heading h2 { margin: 0; }
.showroom-filter-panel { margin-bottom: 15px; }
.showroom-filter-panel summary {
  position: absolute;
  top: 34px;
  right: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  cursor: pointer;
  color: var(--dc-text);
  list-style: none;
  border-bottom: 1px solid transparent;
}
.showroom-filter-panel summary::-webkit-details-marker { display: none; }
.showroom-filter-panel[open] summary { color: var(--dc-gold); border-color: var(--dc-gold); }
.showroom-filter-panel summary .ui-icon { width: 17px; height: 17px; }
.gallery-mall :is(.chip, .catalog-reset, .sale-filters button, .catalog-select-filters select) { color: var(--dc-text); }
.gallery-mall :is(.chip.active, .chip:not(.active):hover) { background: #24372e; border-color: var(--dc-gold); color: var(--dc-gold); }
.gallery-mall .sale-filters button.active { color: var(--dc-gold); }
.gallery-mall .catalog-select-filters select { background-color: var(--dc-surface); padding-inline: 8px; }
.gallery-mall .catalog-reset { background-color: transparent; border-color: var(--dc-line); }
.gallery-mall .catalog-reset:hover { background-color: var(--dc-raised); }
.gallery-mall :is(.car-card, .advisor-card, .shop-storefront, .merchant-entry-band, .category-v2-empty) {
  background: var(--dc-surface);
  border: 1px solid var(--dc-line);
  color: var(--dc-text);
}
.gallery-mall .car-card { border-radius: 10px; overflow: hidden; }
.gallery-mall .car-image { border-radius: 0; background: #1d2a24; display: block; }
.gallery-mall .car-image img { object-position: center; }
.gallery-mall .image-label { background: #101d17; color: #f4ead5; }
.gallery-mall .image-label.untested { background: #1c2b23; color: #ffda9d; }
.gallery-mall .car-info { padding: 15px; }
.gallery-mall .car-info h3 { margin: 0 0 5px; }
.gallery-mall .car-info h3 button { color: var(--dc-text); }
.gallery-mall .car-meta { min-height: 0; }
.gallery-mall .car-bottom { padding-top: 5px; margin-top: 3px; border: 0; gap: 6px; }
.gallery-mall .car-price { color: var(--dc-gold); }
.gallery-mall .car-price small { color: inherit !important; }
.gallery-mall .car-price.reference { color: var(--dc-muted); }
.gallery-mall .vehicle-owner .shop-identity { background: transparent; }
.gallery-mall .category-v2-filters label { background: var(--dc-surface); border-color: var(--dc-line); }
.gallery-mall .category-v2-filters select { background: var(--dc-surface); color: var(--dc-text); }
.gallery-mall :is(.advisor-card, .merchant-entry-band) .button { color: var(--dc-text); background: #21322a; border-color: var(--dc-line); }
body[data-portal="mall"] .mall-bottom { border-color: var(--dc-line); }
body[data-portal="mall"] .mall-bottom button { color: var(--dc-muted); }
body[data-portal="mall"] .mall-bottom button.active { color: var(--dc-gold); }

@media (max-width: 760px) {
  .gallery-site-header { height: 65px; }
  .gallery-site-header .site-header-inner { padding: 0 16px; gap: 4px; }
  .gallery-site-header .header-actions { gap: 1px; }
  .gallery-site-header .header-actions .account-link { display: none; }
  .gallery-site-header .brand { gap: 9px; }
  .gallery-site-header .monogram { font-size: 39px; }
  .gallery-site-header .brand-name { font-size: 17px; padding-left: 9px; }
  .gallery-site-header .brand-name small { font-size: 11px; }
  .showroom-top { padding: 8px 16px 0; }
  .showroom-top .category-tile { min-height: 47px; padding: 8px 2px !important; }
  .showroom-top .category-tile strong { font-size: clamp(12px, 3.48vw, 15px); }
  .showroom-hero .gallery-hero-image { height: clamp(245px, 76vw, 410px); }
  .showroom-brand-hero .gallery-hero-image { object-position: center 58%; }
  .showroom-hero-caption { padding: 22px 14px 12px; gap: 10px; min-height: 75px; }
  .showroom-hero-caption h1 { font-size: clamp(20px, 5.6vw, 32px); }
  .gallery-mall .mall-container { padding-inline: 12px; }
  .gallery-catalog { padding-top: 16px; }
  .gallery-catalog .gallery-collection-heading { margin-bottom: 6px; }
  .gallery-catalog .gallery-collection-heading h2 { font-size: 25px; }
  .gallery-catalog .result-count { display: none; }
  .showroom-filter-panel { margin-bottom: 9px; }
  .showroom-filter-panel summary { top: 16px; }
  .gallery-mall .car-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .gallery-mall .car-image { aspect-ratio: 1.82; }
  body[data-portal="mall"] .showroom-home-bottom { display: none; }
}
