/* AFS Brands public-site palette and shared control shape. */
:root {
  --afs-ink: #181818;
  --afs-paper: #fafafa;
  --afs-cream: #f5f5f5;
  --afs-white: #fff;
  --afs-line: #d8d8d8;
  --afs-muted: #3e3e3e;
  --afs-accent: #181818;
  --afs-button-radius: 8px;
  --ink: var(--afs-ink);
  --paper: var(--afs-paper);
  --linen: var(--afs-cream);
  --line: var(--afs-line);
  --brown: var(--afs-ink);
  --rust: var(--afs-accent);
}

body,
body > header {
  background-color: var(--afs-paper);
  color: var(--afs-ink);
}

body > header .afs-flooring-panel .afs-flooring-group-title { color: var(--afs-accent); }

body :is(button, input[type="submit"], input[type="button"], input[type="reset"],
  [role="button"], a.button, a.btn, a[class$="-button"], a[class*="-button "], a.afs-whatsapp-chat,
  .afs-ask-link, .hc-filter-chip, .afs-catalog-category-tabs > a, .afs-detail-tabs button, .showcase-topics > a,
  .afs-detail-ask, .afs-mobile-menu, .afs-flooring-menu > summary, .afs-furniture-menu > summary,
  #detail-add, #detail-close, #catalog-clear) {
  border-radius: var(--afs-button-radius) !important;
}

body :is(button, input, a[href], summary, select, textarea):focus-visible {
  outline-color: var(--afs-accent);
}

body :is(.full-footer, footer.wrap.footer) {
  background-color: var(--afs-ink);
  color: var(--afs-paper);
  border-color: var(--afs-ink);
}

body .full-footer :is(a, h3) { color: var(--afs-paper); }
body .full-footer :focus-visible { outline-color: #f5f5f5; }

/* The logo image includes transparent space above the wordmark. */
@media (width > 850px) {
  .full-footer:has(> div:first-child img[src$="/afs-footer-logo-white-20261117.png"]) > div:has(> h3) {
    padding-block-start: 20px;
  }
}
@media (450px < width <= 850px) {
  .full-footer:has(> div:first-child img[src$="/afs-footer-logo-white-20261117.png"]) > div:nth-child(2):has(> h3) {
    padding-block-start: 20px;
  }
}

.showcase-topics > a span { color: #d7d7d7; }

#product-dialog.afs-detail-page { background: var(--afs-paper); }
#product-dialog.afs-detail-page .afs-detail-layout {
  background: var(--afs-cream);
  color: var(--afs-ink);
}
#product-dialog.afs-detail-page .afs-detail-tabs,
#product-dialog.afs-detail-page .afs-detail-related-slot { background: var(--afs-paper); }
#product-dialog.afs-detail-page .afs-detail-identity #detail-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--afs-accent);
}
#product-dialog.afs-detail-page .afs-detail-identity #detail-brand::before {
  content: "";
  width: 24px;
  height: 1px;
  background: currentColor;
}
#product-dialog .afs-detail-tabs [aria-selected="true"],
#product-dialog .afs-detail-primary-actions > .afs-detail-ask {
  background-color: var(--afs-ink);
  border-color: var(--afs-ink);
  color: var(--afs-white);
}
#product-dialog .afs-gallery-thumbnail[aria-pressed="true"] { border-color: var(--afs-accent); }
.floor-image-viewer::backdrop { background: #181818ed; }

@media (max-width: 900px) {
  body > header.afs-unified-header > nav.afs-unified-nav {
    background-color: var(--afs-paper);
    border-color: var(--afs-line);
  }
}

/* Keep catalog controls neutral and retain the separate red selection indicators. */
#catalog.afs-simple-catalog .catalog-category-tabs > a,
#catalog.afs-simple-catalog .hc-filter-chip,
#catalog.afs-simple-catalog #catalog-clear {
  background-color: #fff !important;
  border-color: #ababab !important;
  border-radius: var(--afs-button-radius) !important;
  color: var(--afs-ink) !important;
}

#catalog.afs-simple-catalog .catalog-category-tabs > a:hover,
#catalog.afs-simple-catalog .hc-filter-chip:hover,
#catalog.afs-simple-catalog #catalog-clear:hover {
  background-color: #f5f5f5 !important;
}

#catalog.afs-simple-catalog .afs-office-chair-filter[aria-pressed="true"],
#catalog.afs-simple-catalog :is(.hc-sidebar, .hc-filter-dialog) label:has(> input[name="hc-catalog-category"]:checked) {
  background-color: #ededed !important;
  border-color: #888 !important;
  color: var(--afs-ink) !important;
}

#catalog.afs-simple-catalog :is(.afs-ask-link, .catalog-shortlist-button) {
  border-bottom-color: var(--afs-ink) !important;
  border-radius: var(--afs-button-radius) !important;
}
