@import url("/catalog-static/tokens.css");

@font-face {
  font-family: CatalogBase;
  src: url("/catalog-static/font.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}
* {
  box-sizing: border-box;
}
.catalog-page {
  position: relative;
  flex: none;
  overflow: hidden;
  font-family: CatalogFont, CatalogBase, sans-serif;
  color: var(--text);
  isolation: isolate;
}
.catalog-element {
  position: absolute;
  transform-origin: center;
  overflow: hidden;
}
.catalog-element img {
  width: 100%;
  height: 100%;
  display: block;
  -webkit-user-drag: none;
  user-select: none;
}
.text-content {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  height: 100%;
}
.image-placeholder {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--card);
  color: var(--placeholder);
  font:
    24px CatalogBase,
    sans-serif;
  border: 1px solid var(--hairline);
}
.image-gallery {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.image-gallery-cell {
  position: absolute;
  overflow: hidden;
  min-width: 0;
  min-height: 0;
  background: var(--card);
}
.image-gallery-cell img {
  width: 100%;
  height: 100%;
  object-fit: var(--gallery-fit, cover);
  object-position: center;
}
.product-card:not(.catalog-element) {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--hairline);
  padding: 18px;
  gap: 14px;
}
.product-visual {
  height: 48%;
  min-height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--card);
  color: var(--placeholder);
  letter-spacing: 0;
}
.product-copy {
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
.product-copy strong {
  display: block;
  font-size: 28px;
  line-height: 1.3;
}
.product-copy small {
  display: block;
  font-size: 16px;
  color: var(--muted);
  margin-top: 6px;
}
.product-copy p {
  font-size: 19px;
  line-height: 1.4;
  margin: 12px 0;
  white-space: pre-wrap;
}
.product-copy dl {
  font-size: 16px;
  margin: 8px 0;
}
.product-copy dl div {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 4px 0;
}
.product-copy dd {
  margin: 0;
}
.product-copy b {
  font-size: 24px;
}
.element-link {
  position: absolute;
  inset: 0;
  color: inherit;
  text-decoration: none;
}
.hotspot-label {
  height: 100%;
  display: grid;
  place-items: center;
  background: transparent;
  border: 1px dashed var(--primary);
  font-size: 20px;
}
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 4px;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--primary);
}
.product-copy strong {
  font-size: var(--card-title, 28px);
}
.product-copy p {
  font-size: var(--card-copy, 19px);
}
.product-card-fitted .product-visual {
  flex: 0 0 43%;
  height: auto;
  min-height: 0;
  overflow: hidden;
  container-type: size;
}
.catalog-element.product-card {
  container: catalog-product / inline-size;
}
.product-gallery {
  --photo-columns: 1;
  --photo-rows: var(--photo-rows-1);
  --photo-gap: 12px;
  /* Fit both axes without cropping, stretching, or unequal tile sizes. */
  --photo-cell: max(
    0px,
    min(
      calc(
        (100cqw - (var(--photo-columns) - 1) * var(--photo-gap)) /
          var(--photo-columns)
      ),
      calc(
        (100cqh - (var(--photo-rows) - 1) * var(--photo-gap)) /
          var(--photo-rows)
      )
    )
  );
  display: grid;
  grid-template-columns: repeat(var(--photo-columns), var(--photo-cell));
  grid-auto-rows: var(--photo-cell);
  gap: var(--photo-gap);
  flex: none;
}
.product-gallery-cell {
  aspect-ratio: 1;
  min-width: 0;
  min-height: 0;
  border-radius: 8px;
  overflow: hidden;
}
.product-gallery-cell img {
  object-fit: contain;
  object-position: center;
}
.product-gallery[data-columns="2"] {
  --photo-columns: 2;
  --photo-rows: var(--photo-rows-2);
}
.product-gallery[data-columns="3"] {
  --photo-columns: 3;
  --photo-rows: var(--photo-rows-3);
}
.product-gallery[data-columns="4"] {
  --photo-columns: 4;
  --photo-rows: var(--photo-rows-4);
}
@container catalog-product (min-width: 320px) {
  .product-gallery[data-columns="auto"] {
    --photo-columns: 2;
    --photo-rows: var(--photo-rows-2);
  }
}
@container catalog-product (min-width: 480px) {
  .product-gallery[data-columns="auto"] {
    --photo-columns: 3;
    --photo-rows: var(--photo-rows-3);
  }
}
@container catalog-product (min-width: 720px) {
  .product-gallery[data-columns="auto"] {
    --photo-columns: 4;
    --photo-rows: var(--photo-rows-4);
  }
}
.product-card-fitted .product-copy {
  overflow-wrap: anywhere;
}
.product-card-fitted .product-copy small {
  line-height: 1.5;
}
.product-card-fitted .product-copy dl div {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: 8px;
  line-height: 1.5;
}
.product-card-wide:not(.catalog-element) {
  flex-direction: row;
}
.product-card-wide .product-visual {
  flex-basis: 45%;
}
.product-size-chart {
  margin-top: 20px;
}
.product-size-chart h3 {
  margin: 0 0 10px;
  font-size: 16px;
  line-height: 1.5;
}
.product-size-chart h3 small {
  display: inline;
  margin: 0 0 0 10px;
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
}
.size-chart-scroll {
  max-width: 100%;
  overflow-x: auto;
}
.product-size-chart table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 14px;
  line-height: 1.5;
}
.product-size-chart th,
.product-size-chart td {
  padding: 5px 6px;
  text-align: center;
  border-bottom: 1px solid var(--line);
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  font-weight: 400;
}
.product-size-chart thead th {
  background: var(--surface-hover);
  font-weight: 600;
}
.product-size-chart tbody th {
  font-weight: 500;
}
.product-size-chart .size-chart-empty {
  font-size: 13px;
  color: var(--muted);
}

/* Unified native scrollbars: order, finance and catalog entries keep the same rules. */
:where(*) {
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) transparent;
}
:where(*:hover, *:focus-within) {
  scrollbar-color: var(--scrollbar-thumb-hover) transparent;
}
/* Chromium's standard properties override its rounded WebKit thumb. Use one
   styling path per engine; class rules that intentionally hide a bar still win. */
@supports selector(::-webkit-scrollbar) {
  :where(*, *:hover, *:focus-within) {
    scrollbar-width: auto;
    scrollbar-color: auto;
  }
  ::-webkit-scrollbar {
    width: 8px;
    height: 8px;
  }
  ::-webkit-scrollbar-track,
  ::-webkit-scrollbar-corner {
    background: transparent;
  }
  ::-webkit-scrollbar-thumb {
    min-height: 28px;
    min-width: 28px;
    border: 2px solid transparent;
    border-radius: 999px;
    background: var(--scrollbar-thumb);
    background-clip: padding-box;
  }
  ::-webkit-scrollbar-thumb:hover {
    background-color: var(--scrollbar-thumb-hover);
  }
  ::-webkit-scrollbar-thumb:active {
    background-color: var(--scrollbar-thumb-active);
  }
  ::-webkit-scrollbar-button {
    display: none;
    width: 0;
    height: 0;
  }
}
.catalog-cover-art {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--card);
  isolation: isolate;
}
.catalog-cover-art > img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  padding: 0;
  border: 0;
  border-radius: 0;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}
@media (forced-colors: active) {
  :where(*, *:hover, *:focus-within) {
    scrollbar-width: auto;
    scrollbar-color: auto;
  }
  ::-webkit-scrollbar {
    width: 14px;
    height: 14px;
  }
  ::-webkit-scrollbar-thumb {
    background-color: CanvasText;
    border-color: Canvas;
  }
}
