/* Header: trust strip, sticky main bar, search panel, mobile drawer. */
:root {
  --ath-header-h: 60px;
}
@media (min-width: 1000px) {
  :root {
    --ath-header-h: 80px;
  }
}

.ath-skip {
  position: absolute;
  left: 8px;
  top: -60px;
  z-index: 1000;
  background: var(--ath-ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: 4px;
}
.ath-skip:focus {
  top: 8px;
}

/* Trust strip */
.ath-strip {
  background: var(--ath-charcoal);
  color: #ece8df;
  font-size: var(--ath-text-xs);
  letter-spacing: 0.02em;
}
.ath-strip ul {
  list-style: none;
  margin: 0;
  padding: 8px 16px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2px 32px;
}
.ath-strip li {
  margin: 0;
  position: relative;
  white-space: nowrap;
}
@media (max-width: 599px) {
  .ath-strip li:nth-child(n + 3) {
    display: none;
  }
}

/* Main bar */
.ath-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--ath-stone);
  transition: transform var(--ath-dur) var(--ath-ease), box-shadow var(--ath-dur) var(--ath-ease);
}
@supports (backdrop-filter: blur(8px)) {
  .ath-header {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: saturate(1.4) blur(10px);
  }
}
.ath-header.is-hidden {
  transform: translateY(-101%);
}
html.ath-scrolled .ath-header {
  box-shadow: 0 6px 24px rgba(36, 36, 36, 0.07);
}
.ath-header-inner {
  width: min(100% - 24px, 1280px);
  height: var(--ath-header-h);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 8px 28px;
}
.ath-brand {
  text-align: center;
  line-height: 1;
}
.ath-logo {
  display: inline-block;
  padding: 8px 0;
  text-decoration: none;
  color: var(--ath-ink);
}
.ath-logo-word {
  font-family: var(--ath-font-display);
  font-weight: 600;
  font-size: 1.65rem;
  letter-spacing: 0.04em;
  color: var(--ath-ink);
}
.ath-brand .custom-logo {
  max-height: 40px;
  width: auto;
}
.ath-logo-img {
  display: block;
  width: auto;
  height: 46px;
  max-width: 100%;
}
.ath-drawer-head .ath-logo-img {
  height: 40px;
}
@media (min-width: 1000px) {
  .ath-logo-img {
    height: 50px;
  }
}
.ath-nav {
  display: none;
}
.ath-hdr-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.ath-hdr-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ath-ink);
  cursor: pointer;
  transition: background-color var(--ath-dur-fast) var(--ath-ease);
}
.ath-hdr-btn:hover {
  background: var(--theme-palette-color-6);
  color: var(--ath-ink);
}
.ath-cart-count {
  position: absolute;
  top: 4px;
  right: 2px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--ath-olive);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  line-height: 18px;
  text-align: center;
}
.ath-cart-count[hidden] {
  display: none;
}
.ath-account-link {
  display: none;
}
.ath-menu-toggle {
  margin-left: -8px;
}

@media (min-width: 1000px) {
  .ath-header-inner {
    grid-template-columns: 1fr auto 1fr;
  }
  .ath-menu-toggle {
    display: none;
  }
  .ath-brand {
    grid-column: 1;
    grid-row: 1;
    text-align: left;
  }
  .ath-nav {
    display: block;
    grid-column: 2;
    grid-row: 1;
  }
  .ath-hdr-actions {
    grid-column: 3;
    grid-row: 1;
  }
  .ath-account-link {
    display: inline-flex;
  }
  .ath-logo-word {
    font-size: 1.9rem;
  }
}
.ath-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: clamp(16px, 2.2vw, 36px);
}
.ath-nav-list li {
  margin: 0;
}
.ath-nav-list a {
  position: relative;
  display: block;
  padding: 10px 0;
  color: var(--ath-ink);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  text-decoration: none;
  white-space: nowrap;
}
/* Desktop shows at most five top-level entries; the drawer always lists them all. */
@media (min-width: 1000px) {
  .ath-nav-list > li:nth-child(n + 8) {
    display: none;
  }
}
.ath-nav-list a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 1px;
  background: var(--ath-olive);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--ath-dur) var(--ath-ease);
}
.ath-nav-list a:hover::after,
.ath-nav-list a[aria-current="page"]::after {
  transform: scaleX(1);
}

/* Search panel */
.ath-search-panel {
  border-top: 1px solid var(--ath-stone);
  background: #fff;
}
.ath-search-inner {
  width: min(100% - 24px, 760px);
  margin: 0 auto;
  padding: 14px 0 18px;
}
.ath-search-form {
  position: relative;
  display: flex;
}
.ath-search-form input[type="search"] {
  width: 100%;
  padding-right: 52px;
  font-size: 1rem;
  border: 1px solid var(--ath-line);
}
.ath-search-form button {
  position: absolute;
  right: 0;
  top: 0;
  width: 48px;
  height: 100%;
  min-height: 46px;
  border: 0;
  background: transparent;
  color: var(--ath-ink);
  cursor: pointer;
}

/* Mobile drawer */
.ath-drawer {
  position: fixed;
  inset: 0;
  z-index: 200;
}
.ath-drawer[hidden] {
  display: none;
}
.ath-drawer-scrim {
  position: absolute;
  inset: 0;
  background: rgba(17, 17, 17, 0.45);
  opacity: 0;
  transition: opacity var(--ath-dur) var(--ath-ease);
}
.ath-drawer-panel {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: min(88vw, 380px);
  overflow-y: auto;
  padding: 12px 20px 28px;
  background: #fff;
  transform: translateX(-100%);
  transition: transform var(--ath-dur) var(--ath-ease);
}
.ath-drawer.is-open .ath-drawer-scrim {
  opacity: 1;
}
.ath-drawer.is-open .ath-drawer-panel {
  transform: none;
}
.ath-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.ath-drawer-head .ath-hdr-btn {
  margin-right: -10px;
}
.ath-drawer-list,
.ath-drawer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}
.ath-drawer-list {
  margin-top: 8px;
  border-top: 1px solid var(--ath-stone);
}
.ath-drawer-list li {
  margin: 0;
  border-bottom: 1px solid var(--ath-stone);
}
.ath-drawer-list a {
  display: block;
  padding: 15px 0;
  color: var(--ath-ink);
  font-family: var(--ath-font-display);
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
}
.ath-drawer-links {
  margin-top: 18px;
}
.ath-drawer-links li {
  margin: 0;
}
.ath-drawer-links a {
  display: block;
  padding: 11px 0;
  color: var(--ath-muted);
  font-size: var(--ath-text-sm);
  text-decoration: none;
}
.ath-drawer-heading {
  margin: 22px 0 6px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ath-ink);
}
.ath-drawer-collections {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 14px;
}
.ath-drawer-collections li {
  margin: 0;
}
.ath-drawer-collections a {
  display: block;
  padding: 10px 0;
  color: var(--ath-charcoal);
  font-size: var(--ath-text-sm);
  text-decoration: none;
}
html.ath-lock {
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .ath-header,
  .ath-drawer-scrim,
  .ath-drawer-panel {
    transition: none;
  }
}

/* Collection dropdowns (rooms, styles, subjects, pop culture). Hover and focus open them; the button also toggles. */
@media (min-width: 1000px) {
  .ath-nav,
  .ath-nav-list {
    height: 100%;
  }
  .ath-nav-list > li {
    display: flex;
    align-items: center;
    position: relative;
  }
}
.ath-nav-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 0;
  border: 0;
  background: none;
  color: var(--ath-ink);
  font: 500 0.9375rem/1.4 var(--ath-font-ui);
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
  cursor: pointer;
}
.ath-nav-toggle::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 1px;
  background: var(--ath-olive);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--ath-dur) var(--ath-ease);
}
.ath-has-sub:hover > .ath-nav-toggle::after,
.ath-has-sub.is-current > .ath-nav-toggle::after,
.ath-nav-toggle[aria-expanded="true"]::after {
  transform: scaleX(1);
}
.ath-nav-caret {
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform var(--ath-dur-fast) var(--ath-ease);
}
.ath-nav-toggle[aria-expanded="true"] .ath-nav-caret {
  margin-top: 2px;
  transform: rotate(-135deg);
}
.ath-subnav {
  position: absolute;
  top: 100%;
  left: 50%;
  z-index: 70;
  min-width: 232px;
  padding: 16px 26px 20px;
  background: #fff;
  border: 1px solid var(--ath-stone);
  border-top: 0;
  border-radius: 0 0 6px 6px;
  box-shadow: 0 18px 40px rgba(36, 36, 36, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 6px);
  transition: opacity var(--ath-dur-fast) var(--ath-ease), transform var(--ath-dur-fast) var(--ath-ease), visibility 0s linear var(--ath-dur-fast);
}
.ath-has-sub:hover > .ath-subnav,
.ath-has-sub:focus-within > .ath-subnav,
.ath-has-sub.is-open > .ath-subnav {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  transition-delay: 0s;
}
.ath-subnav-heading {
  margin: 0 0 6px;
  font: 600 0.8125rem/1.3 var(--ath-font-ui);
  letter-spacing: 0;
  text-transform: none;
  color: var(--ath-muted);
  white-space: nowrap;
}
.ath-subnav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.ath-subnav--wide {
  min-width: 440px;
}
.ath-subnav--wide ul {
  columns: 2;
  column-gap: 34px;
}
.ath-subnav li {
  break-inside: avoid;
  margin: 0;
}
.ath-nav-list .ath-subnav a {
  padding: 7px 0;
  font-size: 0.9375rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
}
.ath-nav-list .ath-subnav a::after {
  display: none;
}
.ath-nav-list .ath-subnav a:hover,
.ath-nav-list .ath-subnav a[aria-current="page"] {
  color: var(--ath-olive-dark);
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

/* Drawer: the same groups as accordions */
.ath-acc summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 0;
  color: var(--ath-ink);
  font-family: var(--ath-font-display);
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.ath-acc summary::-webkit-details-marker {
  display: none;
}
.ath-acc summary::after {
  content: "";
  width: 8px;
  height: 8px;
  margin-right: 4px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform var(--ath-dur-fast) var(--ath-ease);
}
.ath-acc[open] summary::after {
  transform: rotate(-135deg);
}
.ath-acc ul {
  list-style: none;
  margin: 0 0 10px;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 14px;
}
.ath-drawer-list .ath-acc li {
  margin: 0;
  border: 0;
}
.ath-drawer-list .ath-acc a {
  padding: 9px 0;
  font: 400 var(--ath-text-sm)/1.35 var(--ath-font-ui);
  color: var(--ath-charcoal);
}
.ath-drawer-list .ath-acc a[aria-current="page"] {
  color: var(--ath-olive-dark);
  font-weight: 600;
}

/* The Collections list is long: three columns, and its panel hangs from the right edge of its button */
.ath-subnav--xl {
  min-width: 700px;
}
.ath-subnav--xl ul {
  columns: 3;
  column-gap: 34px;
}
.ath-nav-list > li.ath-has-sub:last-child > .ath-subnav {
  left: auto;
  right: -12px;
  transform: translate(0, 6px);
}
.ath-nav-list > li.ath-has-sub:last-child:hover > .ath-subnav,
.ath-nav-list > li.ath-has-sub:last-child:focus-within > .ath-subnav,
.ath-nav-list > li.ath-has-sub.is-open:last-child > .ath-subnav {
  transform: none;
}

/* Wide screens: the search field is always there (logo | search | icons), the menu sits on a second row */
.ath-header-search {
  display: none;
}
@media (min-width: 1000px) {
  :root {
    --ath-header-h: 76px;
  }
  .ath-header-inner {
    height: auto;
    grid-template-columns: auto minmax(280px, 1fr) auto;
    grid-template-rows: var(--ath-header-h) 48px;
    gap: 0 40px;
  }
  .ath-brand {
    grid-column: 1;
    grid-row: 1;
  }
  .ath-header-search {
    display: block;
    grid-column: 2;
    grid-row: 1;
    width: 100%;
    max-width: 720px;
    justify-self: center;
  }
  .ath-hdr-actions {
    grid-column: 3;
    grid-row: 1;
  }
  .ath-search-toggle {
    display: none;
  }
  .ath-search-panel {
    display: none;
  }
  .ath-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: center;
    border-top: 1px solid var(--ath-stone);
    width: 100%;
    display: flex;
    justify-content: center;
  }
  .ath-nav-list {
    height: 48px;
    align-items: center;
  }
  .ath-header-search .ath-search-form input[type="search"] {
    height: 46px;
    padding: 0 56px 0 20px;
    border: 1px solid var(--ath-ink);
    border-radius: 999px;
    background: #fff;
    font-size: var(--ath-text-sm);
  }
  .ath-header-search .ath-search-form button {
    right: 4px;
    top: 4px;
    width: 38px;
    height: 38px;
    min-height: 0;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--ath-ink);
    color: #fff;
  }
  .ath-header-search .ath-search-form button svg {
    flex: none;
  }
  .ath-header-search .ath-search-form button:hover {
    background: var(--ath-olive-dark);
  }
}

/* Utility bar: facts in the middle, help links on the right (desktop) */
.ath-strip {
  position: relative;
}
.ath-strip .ath-strip-links {
  display: none;
}
@media (min-width: 1000px) {
  .ath-strip .ath-strip-links {
    position: absolute;
    top: 0;
    right: max(32px, calc((100% - 1280px) / 2));
    display: flex;
    gap: 22px;
    padding: 8px 0;
  }
  .ath-strip .ath-strip-links li {
    white-space: nowrap;
  }
  .ath-strip .ath-strip-links li::before {
    display: none;
  }
  .ath-strip a {
    color: #ece8df;
    text-decoration: none;
  }
  .ath-strip a:hover {
    color: #fff;
    text-decoration: underline;
  }
}
