:root {
  --edc-type-display: clamp(40px, 4.25vw, 58px);
  --edc-type-h2: clamp(26px, 2.4vw, 34px);
  --edc-type-h3: 18px;
  --edc-type-body: 16px;
  --edc-type-meta: 12px;
}

/* Breadcrumbs stay in the document for route context, but are not part of the visual UI. */
body.edc-page .edc-breadcrumbs,
body.edc-page .breadcrumb,
body.edc-page .edc-checkout-breadcrumbs {
  display: none !important;
}

/* One restrained typographic scale across legacy and redesigned routes. */
body.edc-page {
  font-size: var(--edc-type-body);
  line-height: 1.5;
}
body.edc-page h1 {
  font-size: var(--edc-type-display);
  line-height: 1;
  letter-spacing: -.032em;
}
body.edc-page h2 {
  font-size: var(--edc-type-h2);
  line-height: 1.08;
  letter-spacing: -.022em;
}
body.edc-page h3 {
  font-size: var(--edc-type-h3);
  line-height: 1.25;
  letter-spacing: -.012em;
}
.edc-listing-page button,
.edc-listing-page select,
.edc-brand-index-page button,
.edc-brand-index-page input {
  font-size: var(--edc-type-meta);
}
.edc-footer h2,
.edc-home h1,
.edc-home h2,
.edc-showcase h2 {
  letter-spacing: inherit;
}

/* Catalog is a menu action, never a route link. */
.edc-primary-nav__catalog {
  gap: 7px;
  cursor: pointer;
}
.edc-primary-nav__catalog svg {
  width: 14px;
  height: 14px;
  transition: transform 160ms ease;
}
.edc-primary-nav__catalog[aria-expanded="true"] svg {
  transform: rotate(180deg);
}
.edc-home-nav__head button,
.edc-showcase-categories__all {
  min-height: 44px;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font-family: "EDC UI", Arial, sans-serif;
  font-weight: 600;
  cursor: pointer;
}
.edc-home-nav__head button:hover,
.edc-showcase-categories__all:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

body.edc-page #content.edc-listing-page {
  padding-top: clamp(28px, 3vw, 42px);
}
.edc-listing-intro {
  margin-bottom: 26px;
  padding-bottom: 26px;
  display: block;
  border-bottom: 1px solid var(--edc-ink);
}
.edc-listing-intro .edc-listing-head {
  min-width: 0;
  margin: 0;
}
body.edc-page .edc-listing-intro .edc-listing-head h1 {
  max-width: 18ch;
  font-size: var(--edc-type-display);
  overflow-wrap: break-word;
  hyphens: auto;
}
.edc-listing-intro > .edc-subcategory-nav,
.edc-listing-intro > .edc-context-axis:not([hidden]) {
  margin-top: 24px;
}
.edc-listing-intro > .edc-subcategory-nav {
  margin-bottom: 0;
}
.edc-listing-intro .edc-context-axis {
  min-width: 0;
  margin-bottom: 0;
  padding: 16px 0 0;
  border-top: 1px solid var(--edc-line);
  border-bottom: 0;
}
.edc-listing-intro .edc-context-axis__head {
  margin-bottom: 10px;
}
.edc-listing-intro .edc-context-axis__head h2 {
  font-size: 19px;
  line-height: 1.2;
  letter-spacing: -.01em;
}
.edc-listing-intro .edc-context-axis__list {
  display: flex;
  flex-wrap: wrap;
}
.edc-listing-intro .edc-context-axis__list button {
  min-width: 0;
  min-height: 52px;
  padding: 9px 12px;
}
.edc-listing-intro .edc-context-axis__list--logos {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
}
.edc-listing-intro .edc-context-axis__list--logos button {
  flex: 1 1 120px;
  min-width: 112px;
  max-width: 180px;
  min-height: 72px;
  grid-template-columns: minmax(0, 1fr);
  scroll-snap-align: start;
}
.edc-listing-intro .edc-context-axis__list--logos img {
  height: 42px;
}
.edc-listing-intro .edc-context-axis__list--logos small {
  display: none;
}
.edc-listing-intro .edc-context-axis__more {
  min-height: 72px;
}

.edc-listing-intro--category .edc-context-axis__list--logos button.is-active {
  position: relative;
  z-index: 1;
  border-color: var(--edc-ink);
  background: var(--edc-white);
  color: var(--edc-ink);
  box-shadow: inset 0 0 0 1px var(--edc-ink);
}
.edc-listing-intro--category .edc-context-axis__list--logos button.is-active::after {
  content: "";
  position: absolute;
  right: 8px;
  bottom: 0;
  left: 8px;
  height: 3px;
  background: var(--edc-ink);
}
.edc-listing-intro--category .edc-context-axis__list--logos button.is-active:hover {
  background: var(--edc-paper);
}
.edc-listing-intro--category .edc-context-axis__list--logos button.is-active img {
  opacity: 1;
}

.edc-listing-context-total {
  min-height: 20px;
  margin: 12px 0 0;
  color: var(--edc-muted);
  font-size: 14px;
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
}
body.edc-page .edc-listing-intro--category .edc-category-head h1 {
  max-width: 20ch;
  font-size: clamp(42px, 3.4vw, 50px);
  line-height: 1;
  letter-spacing: -.03em;
}

@media (min-width: 1180px) {
  .edc-listing-intro--category.has-context-axis {
    display: grid;
    grid-template-columns: minmax(320px, .36fr) minmax(0, .64fr);
    column-gap: clamp(40px, 4vw, 64px);
    row-gap: 24px;
    align-items: start;
  }
  .edc-listing-intro--category.has-context-axis > .edc-category-head {
    grid-column: 1;
    grid-row: 1;
  }
  .edc-listing-intro--category.has-context-axis > .edc-context-axis:not([hidden]) {
    grid-column: 2;
    grid-row: 1;
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
  }
  .edc-listing-intro--category.has-context-axis > .edc-subcategory-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    margin-top: 0;
  }
  .edc-listing-intro--category .edc-context-axis__list--logos button {
    flex: 1 1 82px;
    min-width: 82px;
    max-width: none;
    min-height: 68px;
  }
  .edc-listing-intro--category .edc-context-axis__list--logos img {
    height: 36px;
    max-height: 36px;
  }
  .edc-listing-intro--category .edc-context-axis__more {
    min-height: 68px;
  }
}

.edc-listing-intro--brand .edc-brand-hero--with-mark {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 132px;
  gap: 22px;
  align-items: end;
}
.edc-listing-intro--brand .edc-brand-hero__mark {
  width: 132px;
  min-height: 76px;
  padding: 8px;
}
.edc-listing-intro--brand .edc-brand-hero__mark img {
  height: 58px;
  max-height: 58px;
}

body.edc-page .edc-listing-intro--brand .edc-listing-head h1 {
  font-size: clamp(42px, 3.6vw, 54px);
  line-height: 1;
  letter-spacing: -.03em;
}

@media (min-width: 1180px) {
  .edc-listing-intro--brand {
    margin-bottom: 22px;
    padding-bottom: 20px;
  }
  .edc-listing-intro--brand .edc-brand-hero--with-mark {
    grid-template-columns: minmax(0, 1fr) 160px;
    gap: clamp(32px, 4vw, 64px);
    align-items: center;
  }
  .edc-listing-intro--brand .edc-brand-hero__mark {
    width: 160px;
    min-height: 64px;
    padding: 4px 8px;
    border: 0;
  }
  .edc-listing-intro--brand .edc-brand-hero__mark img {
    height: 52px;
    max-height: 52px;
  }
  .edc-listing-intro--brand > .edc-context-axis:not([hidden]) {
    display: grid;
    grid-template-columns: 144px minmax(0, 1fr);
    gap: 20px;
    align-items: center;
    margin-top: 18px;
    padding-top: 14px;
  }
  .edc-listing-intro--brand .edc-context-axis__head {
    margin: 0;
  }
  .edc-listing-intro--brand .edc-context-axis__head h2 {
    font-size: 17px;
  }
  .edc-listing-intro--brand .edc-context-axis__list {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: thin;
  }
  .edc-listing-intro--brand .edc-context-axis__list button {
    flex: 0 1 190px;
    min-width: 132px;
    min-height: 46px;
    white-space: nowrap;
  }
}

@media (min-width: 961px) {
  .edc-listing__facets {
    top: 16px;
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
  }
  .edc-listing__facets-bar {
    position: sticky;
    z-index: 4;
    top: 0;
    background: var(--edc-white);
  }
}

.edc-listing__results,
.edc-product-grid--listing {
  width: 100%;
  min-width: 0;
}
.edc-product-grid--listing {
  transition: opacity 160ms ease;
}
.edc-product-grid--listing[aria-busy="true"] {
  opacity: .55;
}
.edc-product-grid--listing .edc-product-card__body h3 {
  font-size: 15px;
  line-height: 1.42;
}

.edc-listing-pagination > div {
  min-width: 0;
}
.edc-facets-pagination {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.edc-facets-pagination button,
.edc-facets-pagination__ellipsis {
  min-width: 44px;
  min-height: 44px;
  padding: 0 11px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--edc-line);
  background: var(--edc-white);
  color: var(--edc-ink);
  font-variant-numeric: tabular-nums;
}
.edc-facets-pagination button:not(:disabled):hover {
  border-color: var(--edc-ink);
  background: var(--edc-paper);
}
.edc-facets-pagination button.is-current {
  border-color: var(--edc-ink);
  background: var(--edc-ink);
  color: var(--edc-white);
  opacity: 1;
}
.edc-facets-pagination__direction {
  min-width: 82px !important;
}
.edc-facets-pagination__ellipsis {
  border-color: transparent;
  color: var(--edc-muted);
}

@media (hover: hover) and (pointer: fine) {
  .edc-product-grid--listing .edc-product-card__media img {
    transition-duration: 180ms;
  }
  .edc-product-grid--listing .edc-product-card:hover .edc-product-card__media img {
    transform: scale(1.015);
  }
}

@media (max-width: 960px) {
  .edc-listing-shell,
  .edc-listing-shell--facets,
  .edc-listing__results {
    width: 100%;
    min-width: 0;
    display: block;
  }
  .edc-listing-toolbar {
    width: 100%;
    display: grid;
    grid-template-columns: auto minmax(220px, 1fr) auto;
    align-items: end;
    gap: 12px;
  }
  .edc-listing-toolbar__results {
    grid-column: 1 / -1;
    width: 100%;
    max-width: none;
    margin: 0;
  }
  .edc-listing-toolbar__field {
    min-width: 0;
  }
  .edc-listing-toolbar__field select {
    width: 100%;
    min-width: 0;
  }
  .edc-listing-intro .edc-context-axis__list,
  .edc-listing-intro .edc-context-axis__list--logos {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
  }
  .edc-listing-intro .edc-context-axis__list button {
    flex: 0 0 auto;
    scroll-snap-align: start;
  }
  .edc-listing-intro .edc-context-axis__list--logos button {
    flex-basis: 136px;
  }
}

@media (max-width: 700px) {
  :root {
    --edc-type-display: clamp(34px, 10.5vw, 42px);
    --edc-type-h2: clamp(24px, 7vw, 30px);
    --edc-type-h3: 18px;
  }
  body.edc-page #content.edc-listing-page {
    width: 100%;
    padding-top: 16px;
  }
  body.edc-page .edc-listing-intro--category .edc-category-head h1 {
    font-size: clamp(34px, 9.5vw, 38px);
    line-height: 1.02;
  }
  .edc-listing-context-total {
    min-height: 18px;
    margin-top: 10px;
    font-size: 13px;
  }
  .edc-listing-page input,
  .edc-listing-page select,
  .edc-brand-index-page input {
    font-size: 16px;
  }
  .edc-listing-intro {
    margin-bottom: 20px;
    padding-bottom: 20px;
  }
  .edc-listing-intro > .edc-subcategory-nav,
  .edc-listing-intro > .edc-context-axis:not([hidden]) {
    margin-top: 18px;
  }
  .edc-listing-intro .edc-context-axis {
    padding-top: 14px;
  }
  .edc-listing-intro--brand .edc-listing-head.edc-brand-hero--with-mark {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) clamp(88px, 24vw, 104px);
    gap: 12px;
    align-items: center;
  }
  body.edc-page .edc-listing-intro--brand .edc-listing-head h1 {
    font-size: clamp(34px, 9.5vw, 40px);
  }
  .edc-listing-intro--brand .edc-brand-hero__mark {
    width: 104px;
    min-height: 66px;
    margin: 0;
  }
  .edc-listing-intro--brand .edc-brand-hero__mark img {
    height: 48px;
  }
  .edc-listing-shell,
  .edc-listing-shell--facets,
  .edc-listing__results {
    width: 100%;
    min-width: 0;
    display: block;
  }
  .edc-listing-toolbar {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .edc-filter-trigger {
    width: 100%;
    justify-content: center;
  }
  .edc-listing-toolbar__limit {
    display: none;
  }
  .edc-product-grid--listing {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    column-gap: clamp(10px, 3vw, 14px);
    row-gap: 36px;
  }
  .edc-product-grid--listing .edc-product-card {
    width: auto;
    max-width: none;
    min-width: 0;
  }
  .edc-product-grid--listing .edc-product-card__media {
    width: 100%;
    aspect-ratio: 1 / 1;
  }
  .edc-product-grid--listing .edc-product-card__body {
    padding-top: 11px;
  }
  .edc-product-grid--listing .edc-product-card__body h3 {
    min-height: 58px;
    margin: 0;
    display: -webkit-box;
    overflow: hidden;
    font-size: 14px;
    line-height: 1.38;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }
  .edc-product-grid--listing .edc-product-card__price {
    min-height: 25px;
    margin: 9px 0 11px;
    padding-top: 0;
    flex-flow: row wrap;
    gap: 2px 6px;
  }
  .edc-product-grid--listing .edc-product-card__price strong {
    font-size: 18px;
  }
  .edc-product-grid--listing .edc-product-card__buy {
    min-height: 44px;
    padding-inline: 5px;
    font-size: 12px;
    letter-spacing: .01em;
  }
  .edc-listing-pagination {
    width: 100%;
    margin-top: 56px;
  }
  .edc-listing-pagination > div {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 5px;
    scrollbar-width: thin;
  }
  .edc-facets-pagination {
    width: max-content;
    min-width: 100%;
    flex-wrap: nowrap;
  }
  .edc-facets-pagination__direction {
    min-width: 74px !important;
  }
}

@media (min-width: 961px) and (max-width: 1120px) {
  .edc-listing__facets {
    top: 88px;
    max-height: calc(100vh - 104px);
    max-height: calc(100dvh - 104px);
  }
}

@media (max-width: 359px) {
  .edc-listing-intro--brand .edc-listing-head.edc-brand-hero--with-mark {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .edc-listing-intro--brand .edc-brand-hero__mark {
    width: 108px;
    min-height: 62px;
  }
}

.edc-facet-group--long .edc-facet-options,
.edc-facet-group--long.is-expanded .edc-facet-options {
  max-height: none;
  overflow: visible;
}

@media (max-width: 390px) {
  .edc-product-grid--listing .edc-product-card__price {
    min-height: 44px;
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }
}

@media (hover: none) {
  .edc-product-card:hover .edc-product-card__media img:first-child:not(:last-child) {
    opacity: 1 !important;
    transform: none !important;
  }
  .edc-product-card:hover .edc-product-card__media .edc-product-card__swap {
    opacity: 0 !important;
    transform: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .edc-primary-nav__catalog svg,
  .edc-product-grid--listing,
  .edc-product-grid--listing .edc-product-card__media img {
    transition: none;
  }
  .edc-product-card:hover .edc-product-card__media img,
  .edc-product-card__buy:active,
  .edc-context-axis__list button:active {
    transform: none !important;
  }
}
