/* The three shops share geometry; their artwork and catalogue filters stay local. */
body.storefront-page[data-catalog-kind] {
  --storefront-gutter: max(4vw, calc((100vw - 1440px) / 2));
  --storefront-header-height: 76px;
  --storefront-feature-height: 360px;
  font-family: Inter, "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
}

body.storefront-page[data-catalog-kind] > .site-header {
  padding-inline: var(--storefront-gutter);
}

body.storefront-page[data-catalog-kind] .site-header .brand {
  min-height: 44px;
}

body.storefront-page[data-catalog-kind] > main {
  /* Sticky tools follow the viewport, rather than a hidden-overflow main. */
  overflow: visible;
}

body.storefront-page[data-catalog-kind] .storefront-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  width: 100%;
  min-height: 560px;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, .78fr);
  grid-template-rows: minmax(360px, auto);
  align-items: center;
  gap: 54px;
  margin: 0;
  padding: 64px var(--storefront-gutter) 86px;
  overflow: clip;
  color: #fff;
}

body.storefront-page[data-catalog-kind] .storefront-hero-copy {
  position: relative;
  z-index: 2;
  width: 100%;
  min-width: 0;
  max-width: 680px;
  align-self: center;
  margin: 0;
  padding: 0;
}

body.storefront-page[data-catalog-kind] .storefront-hero-copy h1 {
  max-width: 650px;
  margin: 0;
  color: #fff;
  font-family: Georgia, "Noto Serif TC", serif;
  font-size: 64px;
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: 0;
}

body.storefront-page[data-catalog-kind] .storefront-hero-copy h1 em {
  display: block;
  min-height: 1.25em;
  max-width: 560px;
  margin-top: 12px;
  color: #e1b94f;
  font-size: 27px;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: 0;
}

body.storefront-page[data-catalog-kind] .storefront-hero-copy .hero-description {
  min-height: 3.4em;
  max-width: 560px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, .74);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
}

body.storefront-page[data-catalog-kind] .storefront-hero-copy .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

body.storefront-page[data-catalog-kind] .storefront-hero-copy .hero-actions > :is(a, button) {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border-radius: 6px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.4;
}

body.storefront-page[data-catalog-kind] .storefront-hero-copy .browse-metrics {
  display: flex;
  gap: 28px;
  margin: 25px 0 0;
  color: rgba(255, 255, 255, .58);
  font-size: 12px;
  line-height: 1.4;
}

body.storefront-page[data-catalog-kind] .storefront-hero-copy .browse-metrics > div {
  display: grid;
  gap: 5px;
}

body.storefront-page[data-catalog-kind] .storefront-hero-copy .browse-metrics > div:not(:first-child) {
  display: none;
}

body.storefront-page[data-catalog-kind] .storefront-hero-copy .browse-metrics strong {
  color: #fff;
  font-family: Georgia, serif;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.2;
}

body.storefront-page[data-catalog-kind] .storefront-hero-copy .browse-metrics span {
  font-size: 12px;
  line-height: 1.4;
}

body.storefront-page[data-catalog-kind] .storefront-hero-feature {
  position: relative;
  inset: auto;
  display: grid;
  width: 100%;
  height: var(--storefront-feature-height);
  min-height: var(--storefront-feature-height);
  align-items: center;
  align-self: center;
  justify-content: center;
  opacity: 1;
  pointer-events: auto;
  /* Catalogue loading, an empty result, and long product names keep this slot. */
  contain: size;
}

body.storefront-page[data-catalog-kind] .storefront-hero-feature[aria-busy="true"] {
  min-height: var(--storefront-feature-height);
}

body.storefront-page[data-catalog-kind] .supplies-hero-feature .supply-protection-scene {
  top: 50%;
  right: 0;
  width: min(100%, 420px);
  opacity: 1;
}

body.storefront-page[data-catalog-kind] .storefront-tools {
  position: sticky;
  top: var(--storefront-header-height);
  z-index: 30;
  display: block;
  width: min(1440px, 92vw);
  margin: -32px auto 0;
  padding: 16px;
  border: 1px solid rgba(225, 185, 79, .25);
  border-radius: 8px;
  color: #fff;
  background: rgba(10, 14, 24, .96);
  box-shadow: 0 18px 48px rgba(6, 7, 16, .22);
  backdrop-filter: blur(16px);
  scroll-margin-top: calc(var(--storefront-header-height) + 12px);
}

body.storefront-page[data-catalog-kind] .storefront-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  align-items: stretch;
  gap: 12px;
}

body.storefront-page[data-catalog-kind] .storefront-tools :is(button, select) {
  min-width: 44px;
  min-height: 44px;
}

body.storefront-page[data-catalog-kind] .storefront-search-field {
  position: relative;
  display: block;
  min-width: 0;
}

body.storefront-page[data-catalog-kind] .storefront-search-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

body.storefront-page[data-catalog-kind] :is(.storefront-search-input, .storefront-search-sort) {
  display: block;
  width: 100%;
  height: 48px;
  min-height: 48px;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 6px;
  outline: none;
  color: #fff;
  background: rgba(255, 255, 255, .06);
  font-family: inherit;
  font-size: 14px;
  line-height: normal;
}

body.storefront-page[data-catalog-kind] .storefront-search-input {
  padding: 0 64px 0 46px;
}

body.storefront-page[data-catalog-kind] .storefront-search-sort {
  padding: 0 36px 0 15px;
}

body.storefront-page[data-catalog-kind] .storefront-search-input::placeholder {
  color: rgba(255, 255, 255, .5);
}

body.storefront-page[data-catalog-kind] :is(.storefront-search-input, .storefront-search-sort):focus-visible {
  border-color: #e1b94f;
  box-shadow: 0 0 0 3px rgba(225, 185, 79, .16);
}

body.storefront-page[data-catalog-kind] .storefront-search-icon {
  position: absolute;
  top: 50%;
  left: 17px;
  width: 15px;
  height: 15px;
  border: 1.5px solid rgba(225, 185, 79, .7);
  border-radius: 50%;
  pointer-events: none;
  transform: translateY(-58%);
}

body.storefront-page[data-catalog-kind] .storefront-search-icon::after {
  position: absolute;
  right: -5px;
  bottom: -3px;
  width: 6px;
  height: 1.5px;
  border-radius: 99px;
  background: rgba(225, 185, 79, .7);
  content: "";
  transform: rotate(45deg);
}

body.storefront-page[data-catalog-kind] .storefront-search-clear {
  position: absolute;
  top: 50%;
  right: 4px;
  min-width: 44px;
  min-height: 44px;
  padding: 0 7px;
  border: 0;
  border-radius: 6px;
  color: #e1b94f;
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  transform: translateY(-50%);
}

body.storefront-page[data-catalog-kind] .storefront-search-clear[hidden] {
  display: none;
}

body.storefront-page[data-catalog-kind] .supplies-segments {
  display: flex;
  flex-wrap: wrap;
  grid-row: auto;
  grid-column: auto;
  gap: 8px;
  margin-top: 12px;
}

body.storefront-page[data-catalog-kind] .supplies-segments button {
  min-height: 44px;
  padding-inline: 14px;
}

body.storefront-page[data-catalog-kind] .supplies-catalog {
  width: min(1440px, 92vw);
  padding-top: 70px;
}

/* Fixed rows keep the whole quick-filter block aligned as brands arrive. */
body.storefront-page[data-catalog-kind] .storefront-brand-shortcuts {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  height: 48px;
  min-width: 0;
  align-items: center;
  gap: 10px;
  margin: 12px 0 0;
}

body.storefront-page[data-catalog-kind] .storefront-brand-shortcuts > span {
  color: rgba(255, 255, 255, .52);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.4;
  white-space: nowrap;
}

body.storefront-page[data-catalog-kind] .storefront-brand-shortcuts > div {
  display: flex;
  height: 48px;
  min-width: 0;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0;
  scrollbar-width: none;
}

body.storefront-page[data-catalog-kind] .storefront-brand-shortcuts > div::-webkit-scrollbar,
body.storefront-page[data-catalog-kind] .storefront-filter-chips::-webkit-scrollbar {
  display: none;
}

body.storefront-page[data-catalog-kind] .catalog-brand-shortcut {
  flex: 0 0 auto;
  height: 44px;
  max-width: min(220px, 100%);
  overflow: hidden;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px;
  color: rgba(255, 255, 255, .8);
  background: rgba(255, 255, 255, .06);
  cursor: pointer;
  font-family: inherit;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.storefront-page[data-catalog-kind] .catalog-brand-shortcut.active {
  border-color: #1c2b3f;
  color: #fff;
  background: #1c2b3f;
}

body.storefront-page[data-catalog-kind] .storefront-filter-chips {
  display: flex;
  height: 46px;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  margin: 12px 0 0;
  padding: 0 0 2px;
  scrollbar-width: none;
}

body.storefront-page[data-catalog-kind] .storefront-filter-chips > button {
  flex: 0 0 auto;
  height: 44px;
  min-height: 44px;
  padding: 0 15px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 6px;
  color: rgba(255, 255, 255, .72);
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  line-height: 1.4;
  white-space: nowrap;
}

body.storefront-page[data-catalog-kind] .storefront-filter-chips > button.active {
  border-color: #e1b94f;
  color: #12141a;
  background: #e1b94f;
}

body.storefront-page[data-catalog-kind] .storefront-filter-chips > button::after {
  content: none;
}

body.storefront-page[data-catalog-kind] .storefront-filter-toggle {
  display: flex;
  width: 100%;
  height: 44px;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 6px;
  color: rgba(255, 255, 255, .78);
  background: rgba(255, 255, 255, .04);
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
}

body.storefront-page[data-catalog-kind] .storefront-filter-toggle[hidden],
body.storefront-page[data-catalog-kind] .storefront-metadata-filters[hidden] {
  display: none;
}

body.storefront-page[data-catalog-kind] .storefront-filter-toggle b {
  font-size: 18px;
  font-weight: 400;
}

body.storefront-page[data-catalog-kind] .storefront-metadata-filters {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, .11);
}

body.storefront-page[data-catalog-kind] .supplies-tools .storefront-metadata-filters:not([hidden]) {
  display: grid;
}

body.storefront-page[data-catalog-kind] .storefront-metadata-filters label {
  display: grid;
  min-width: 0;
  gap: 6px;
}

body.storefront-page[data-catalog-kind] .storefront-metadata-filters label > span {
  color: rgba(255, 255, 255, .52);
  font-size: 11px;
  line-height: 1.4;
}

body.storefront-page[data-catalog-kind] .storefront-metadata-filters :is(select, button) {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  align-self: end;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 6px;
  color: rgba(255, 255, 255, .8);
  background: rgba(255, 255, 255, .06);
  font: inherit;
  font-size: 13px;
}

body.storefront-page[data-catalog-kind] .storefront-tools:has(.storefront-filter-toggle[aria-expanded="true"]) {
  /* Expanded filters remain in page flow, so results can be scrolled into view. */
  position: relative;
  top: auto;
}

body.storefront-page[data-catalog-kind] .storefront-tools :is(button, select):focus-visible {
  outline: 2px solid #e1b94f;
  outline-offset: 2px;
}

body.storefront-page[data-catalog-kind] :is(.catalog-grid-section > .section-heading, .supplies-section-heading) {
  display: flex;
  min-width: 0;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin: 0;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(24, 29, 35, .14);
}

body.storefront-page[data-catalog-kind] :is(.catalog-grid-section > .section-heading, .supplies-section-heading) h2 {
  margin: 0;
  font-family: Georgia, "Noto Serif TC", serif;
  font-size: 48px;
  font-weight: 400;
  line-height: 1.2;
}

@media (max-width: 1050px) {
  body.storefront-page[data-catalog-kind] .storefront-hero {
    grid-template-columns: minmax(0, 1fr) minmax(310px, .78fr);
    gap: 34px;
  }

  body.storefront-page[data-catalog-kind] .storefront-hero-copy h1 {
    font-size: 54px;
  }
}

@media (max-width: 920px) {
  body.storefront-page[data-catalog-kind] {
    --storefront-header-height: 123px;
  }
}

@media (max-width: 800px) {
  body.storefront-page[data-catalog-kind] {
    --storefront-gutter: 5vw;
    --storefront-feature-height: 260px;
  }

  body.storefront-page[data-catalog-kind] .storefront-hero {
    min-height: 0;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(340px, auto) var(--storefront-feature-height);
    gap: 32px;
    padding: 54px var(--storefront-gutter) 62px;
  }

  body.storefront-page[data-catalog-kind] .storefront-hero-copy h1 {
    font-size: 50px;
  }

  body.storefront-page[data-catalog-kind] .storefront-tools {
    margin-top: -28px;
    backdrop-filter: none;
  }

  body.storefront-page[data-catalog-kind] .supplies-hero-feature .supply-protection-scene {
    right: calc(50% - 120px);
    width: 240px;
  }

  body.storefront-page[data-catalog-kind] .storefront-metadata-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  body.storefront-page[data-catalog-kind] {
    --storefront-gutter: 18px;
    --storefront-header-height: 119px;
  }

  body.storefront-page[data-catalog-kind] .storefront-hero {
    padding: 42px var(--storefront-gutter) 48px;
  }

  body.storefront-page[data-catalog-kind] .storefront-hero-copy h1 {
    max-width: none;
    font-size: 42px;
  }

  body.storefront-page[data-catalog-kind] .storefront-hero-copy h1 em {
    min-height: 2.5em;
    max-width: none;
    font-size: 21px;
  }

  body.storefront-page[data-catalog-kind] .storefront-hero-copy .hero-description {
    min-height: 5.1em;
    max-width: none;
    margin-top: 17px;
    font-size: 14px;
  }

  body.storefront-page[data-catalog-kind] .storefront-hero-copy .hero-actions {
    gap: 8px;
    margin-top: 20px;
  }

  body.storefront-page[data-catalog-kind] .storefront-hero-copy .hero-actions > :is(a, button) {
    padding-inline: 15px;
    font-size: 12px;
  }

  body.storefront-page[data-catalog-kind] .storefront-hero-copy .browse-metrics strong {
    font-size: 21px;
  }

  body.storefront-page[data-catalog-kind] .storefront-hero-copy .browse-metrics span {
    font-size: 10px;
  }

  body.storefront-page[data-catalog-kind] .storefront-tools {
    position: relative;
    top: auto;
    width: calc(100% - 24px);
    margin-top: -20px;
    padding: 14px;
  }

  body.storefront-page[data-catalog-kind] .storefront-search-row {
    grid-template-columns: minmax(0, 1fr);
  }

  body.storefront-page[data-catalog-kind] :is(.storefront-search-input, .storefront-search-sort) {
    height: 52px;
    min-height: 52px;
    font-size: 16px;
  }

  body.storefront-page[data-catalog-kind] .storefront-tools :is(input, select) {
    font-size: 16px;
  }

  body.storefront-page[data-catalog-kind] .supplies-catalog {
    width: calc(100% - 24px);
    padding-top: 52px;
  }

  body.storefront-page[data-catalog-kind] :is(.catalog-grid-section > .section-heading, .supplies-section-heading) h2 {
    font-size: 34px;
  }
}

@media (max-width: 400px) {
  body.storefront-page[data-catalog-kind] {
    --storefront-header-height: 117px;
  }
}
