/* Storefront follow-up polish */
.site-header {
  padding: 10px 20px 8px;
}

.site-header__inner {
  gap: 8px;
}

.site-header__bar {
  --public-header-control-height: 46px;
  grid-template-columns: minmax(220px, 300px) minmax(0, 1fr) auto;
  grid-template-areas: "brand search actions";
  width: 100%;
  gap: 10px;
}

.site-brand {
  grid-area: brand;
  min-width: 0;
}

.site-brand__link {
  font-size: 1.04rem;
}

.club-badge--logo-only {
  max-width: min(280px, 32vw);
}

.club-badge__logo {
  max-height: 72px;
}

.site-header__search {
  grid-area: search;
  width: 100%;
  max-width: 720px;
  min-width: 0;
  justify-self: center;
}

.site-header__search-row {
  width: 100%;
  max-width: none;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  justify-self: stretch;
}

.site-header__actions {
  grid-area: actions;
  flex-wrap: nowrap;
  justify-self: end;
  align-self: center;
  gap: 6px;
  max-width: 100%;
}

.site-header__cart-link,
.catalog-mobile-toggle {
  min-height: 44px;
  border-radius: 10px;
  font-size: 0.84rem;
}

.catalog-mobile-toggle {
  min-height: var(--public-header-control-height);
}

.site-header__cart-link {
  gap: 6px;
  padding: 0 12px;
  box-shadow: none;
}

.site-header__cart-count {
  top: -6px;
  right: -6px;
  min-width: 20px;
  height: 20px;
  font-size: 0.68rem;
  box-shadow: none;
}

.site-search--header {
  width: 100%;
  max-width: none;
}

.site-search--header .site-search__shell {
  min-height: var(--public-header-control-height);
  border: 1px solid #c5d3e3;
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: none;
}

.site-search--header .site-search__shell:hover {
  border-color: #9eb4cf;
}

.site-search--header .site-search__shell:focus-within {
  border-color: var(--storefront-action-accent-border);
  box-shadow: 0 0 0 3px var(--storefront-action-focus);
}

.site-search--header .site-search__input {
  padding: 0 14px;
  font-size: 0.94rem;
}

.site-search--header .site-search__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  width: 52px;
  padding: 0;
  border-left: 1px solid var(--storefront-action-accent-border);
  background: var(--storefront-action-accent);
  color: var(--storefront-action-accent-text);
}

.site-search--header .site-search__submit:hover {
  background: var(--storefront-action-accent-hover);
  color: var(--storefront-action-accent-text);
}

.site-search__submit-icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.site-search--header .site-search__suggestions {
  top: calc(100% + 6px);
  border-radius: 14px;
}

.catalog-nav {
  gap: 6px;
}

.catalog-nav__top {
  gap: 8px;
}

.catalog-nav__list {
  gap: 6px;
  padding-bottom: 2px;
}

.catalog-nav__trigger,
.catalog-nav__overview-link {
  min-height: 44px;
  padding: 0 10px;
  border-radius: 10px;
  font-size: 0.9rem;
}

.catalog-nav__quick-links {
  gap: 6px;
}

.catalog-nav__quick-link {
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.82rem;
}

.catalog-nav--club {
  --catalog-nav-side-slot: 112px;
  isolation: isolate;
  width: 100%;
  margin-bottom: -4px;
  justify-items: stretch;
}

.catalog-nav--club > * {
  position: relative;
  z-index: 1;
}

.catalog-nav--club .catalog-nav__top {
  display: grid;
  grid-template-columns:
    minmax(var(--catalog-nav-side-slot), 1fr)
    minmax(0, auto)
    minmax(var(--catalog-nav-side-slot), 1fr);
  align-items: center;
  width: 100%;
  gap: 0;
}

.catalog-nav--club .catalog-nav__list {
  grid-column: 2;
  width: max-content;
  max-width: 100%;
  min-width: 0;
  justify-content: center;
  align-items: stretch;
  gap: 0;
  margin-block: -4px;
  padding: 0;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-padding-inline: 8px;
}

.catalog-nav--club .catalog-nav__item {
  position: relative;
  display: flex;
}

.catalog-nav--club .catalog-nav__item + .catalog-nav__item::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 50%;
  width: 1px;
  height: 16px;
  background: rgba(245, 245, 247, 0.18);
  transform: translateY(-50%);
  pointer-events: none;
}

.catalog-nav--club .catalog-nav__trigger,
.catalog-nav--club .catalog-nav__overview-link {
  position: relative;
  min-width: 44px;
  min-height: 52px;
  padding: 0 8px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color var(--public-motion-fast, 140ms) var(--public-motion-ease, ease);
}

.catalog-nav--club .catalog-nav__overview-link {
  grid-column: 3;
  justify-self: end;
  margin-block: -4px;
}

.catalog-nav--club .catalog-nav__overview-link::before {
  content: "";
  position: absolute;
  inset-inline-start: -9px;
  top: 50%;
  width: 1px;
  height: 18px;
  background: rgba(245, 245, 247, 0.24);
  transform: translateY(-50%);
  pointer-events: none;
}

.catalog-nav--club .catalog-nav__quick-links {
  width: 100%;
  justify-content: center;
  padding-bottom: 4px;
}

@media (prefers-reduced-motion: reduce) {
  .catalog-nav--club .catalog-nav__trigger,
  .catalog-nav--club .catalog-nav__overview-link {
    transition: none;
  }
}

.b2b-signal-strip {
  gap: 10px;
}

.b2b-signal-strip > span {
  gap: 8px;
  min-height: 0;
  padding: 10px 2px 10px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #415062;
  font-size: 0.92rem;
  font-weight: 600;
  box-shadow: none;
}

.b2b-signal-strip > span::before {
  flex: 0 0 6px;
  width: 6px;
  height: 6px;
  background: #9db2cf;
  box-shadow: none;
}

.panel--product-list {
  padding-inline: 12px;
}

.product-grid {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 216px), 250px));
  justify-content: start;
  gap: 10px;
}

.product-grid > .product-card {
  max-inline-size: 250px;
  justify-self: stretch;
}

.product-grid > .product-card .product-card__body {
  gap: 8px;
  padding: 14px;
}

.product-grid > .product-card .product-card__meta {
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
}

.product-grid > .product-card .product-card__category {
  justify-self: start;
  text-align: left;
}

.product-grid > .product-card .product-card__footer {
  padding-top: 10px;
}

.product-card__listing-variant-summary {
  display: none;
}

@media (max-width: 800px) {
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  .product-grid > .product-card {
    border-radius: 14px;
  }

  .product-grid > .product-card .product-card__media img {
    padding: 10px;
  }

  .product-grid > .product-card .product-card__body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px;
  }

  .product-grid > .product-card .product-card__header {
    min-height: 20px;
    gap: 4px;
  }

  .product-grid > .product-card .product-card__audience,
  .product-grid > .product-card .product-card__variant-group {
    display: none;
  }

  .product-grid > .product-card .product-card__eyebrow {
    font-size: 0.68rem;
  }

  .product-grid > .product-card .product-card__title {
    min-height: calc(1.3em * 2);
    font-size: 0.92rem;
    line-height: 1.3;
  }

  .product-grid > .product-card .product-card__listing-variant-summary {
    display: -webkit-box;
    min-height: 1.3em;
    margin: 0;
    overflow: hidden;
    color: #526173;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.3;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
  }

  .product-grid > .product-card .product-card__meta {
    margin-top: auto;
    gap: 4px;
  }

  .product-grid > .product-card .product-card__price {
    gap: 3px;
    font-size: 1.12rem;
  }

  .product-grid > .product-card .product-card__category {
    min-height: 0;
    font-size: 0.75rem;
    line-height: 1.25;
  }

  .product-grid > .product-card .product-card__footer {
    padding-top: 8px;
  }

  .product-grid > .product-card .product-cart-control__add {
    padding-inline: 8px;
  }

  .product-grid > .product-card .product-cart-control__add-label--full {
    display: none;
  }

  .product-grid > .product-card .product-cart-control__add-label--compact {
    display: inline;
  }

  .product-grid > .product-card .product-cart-control__stepper {
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    min-width: 0;
  }

  .product-grid > .product-card .product-cart-control__quantity {
    overflow: hidden;
    padding-inline: 2px;
    text-overflow: ellipsis;
  }
}

@media (max-width: 640px) {
  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(156px, 1fr));
  }
}

@media (max-width: 520px) {
  .product-grid {
    gap: 8px;
  }

  .product-grid > .product-card .product-card__body {
    padding: 10px;
  }
}

@media (max-width: 370px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-grid > .product-card .product-card__body {
    padding: 8px;
  }
}

.catalog-filters {
  gap: 16px;
}

.catalog-filters__header,
.catalog-filters__heading,
.catalog-filters__chip-shell {
  display: grid;
  gap: 10px;
}

.catalog-filters__header {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
}

.catalog-filters__heading {
  gap: 6px;
}

.catalog-filters__summary {
  line-height: 1.55;
}

.catalog-filters__clear,
.catalog-filters__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid #d9e6f7;
  border-radius: 999px;
  background: #ffffff;
  color: #17355f;
  font-weight: 700;
  text-decoration: none;
}

.catalog-filters__toggle[hidden] {
  display: none !important;
}

.catalog-filters__chips {
  --collapsed-height: 46px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  overflow: hidden;
}

.catalog-filters__chip-shell.is-collapsible:not(.is-expanded) .catalog-filters__chips {
  max-height: var(--collapsed-height);
}

.catalog-filter-chip {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid #d9e6f7;
  border-radius: 999px;
  background: #ffffff;
  color: #17355f;
  font: inherit;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.catalog-filter-chip strong {
  color: #6b7787;
  font-size: 0.9em;
}

.catalog-filter-chip:hover,
.catalog-filters__clear:hover,
.catalog-filters__toggle:hover {
  border-color: #bfd2eb;
  text-decoration: none;
}

.catalog-filter-chip.is-active {
  border-color: #2057d4;
  background: #eef4ff;
  color: #0f2a52;
  box-shadow: 0 10px 22px rgba(32, 87, 212, 0.12);
}

.product-card__media,
.product-gallery__frame,
.product-gallery__thumb,
.image-modal__backdrop,
.image-modal__close,
.image-modal__thumb {
  appearance: none;
}


.product-card__media {
  width: 100%;
  padding: 0;
  border: 0;
  text-align: left;
}
.product-card__media:hover {
  text-decoration: none;
}

button.product-gallery__frame {
  cursor: zoom-in;
}

.product-card__media:not(button),
.product-gallery__frame:not(button) {
  cursor: default;
}

.product-card__media img {
  object-fit: contain;
  box-sizing: border-box;
  padding: 16px;
  background: #ffffff;
}

.product-gallery {
  grid-template-columns: minmax(84px, 104px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.product-gallery--single {
  grid-template-columns: minmax(0, 1fr);
}

.product-gallery__thumbs {
  display: grid;
  grid-template-columns: 1fr;
  grid-auto-rows: minmax(84px, auto);
  gap: 12px;
}

.product-gallery__thumb {
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid #dbe5f2;
  border-radius: 16px;
  background: #ffffff;
  cursor: pointer;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.product-gallery__thumb img,
.product-gallery__frame img,
.image-modal__thumb img {
  width: 100%;
  height: 100%;
  display: block;
  box-sizing: border-box;
  object-fit: contain;
  background: #ffffff;
}

.image-modal__viewer img {
  display: block;
  box-sizing: border-box;
  object-fit: contain;
  background: #ffffff;
}

.product-gallery__thumb img,
.image-modal__thumb img {
  padding: 10px;
}

.product-gallery__frame {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0;
  border: 1px solid #dbe5f2;
  border-radius: 22px;
  background: #ffffff;
}

.product-gallery__frame img {
  padding: 22px;
}

.product-gallery__thumb.is-active,
.image-modal__thumb.is-active {
  border-color: #2057d4;
  box-shadow: 0 12px 24px rgba(32, 87, 212, 0.14);
  transform: translateY(-1px);
}

body.has-image-modal-open {
  overflow: hidden;
}

.image-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 20px;
}

.image-modal[hidden],
.image-modal [hidden] {
  display: none !important;
}

.image-modal__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(15, 35, 67, 0.72);
}

.image-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100vw - 40px));
  max-height: calc(100vh - 40px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 18px;
  padding: 24px;
  border-radius: 26px;
  background: #ffffff;
  box-shadow: 0 26px 70px rgba(15, 35, 67, 0.24);
  overflow: hidden;
}

.image-modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid #dbe5f2;
  border-radius: 999px;
  background: #ffffff;
  color: #0f2a52;
  font-size: 1.5rem;
}

.image-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-right: 52px;
}

.image-modal__title {
  margin: 0;
  font-size: 1.2rem;
  color: #0f2a52;
}

.image-modal__content {
  display: grid;
  grid-template-columns: minmax(84px, 104px) minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
  min-height: 0;
  overflow: auto;
}

.image-modal__content--single {
  grid-template-columns: minmax(0, 1fr);
}

.image-modal__thumbs {
  display: grid;
  gap: 12px;
  align-content: start;
  max-height: min(70vh, 760px);
  overflow: auto;
}

.image-modal__thumb {
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid #dbe5f2;
  border-radius: 16px;
  background: #ffffff;
  cursor: pointer;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.image-modal__viewer {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: min(72vh, 760px);
  padding: 20px;
  border: 1px solid #e2e8f0;
  border-radius: 22px;
  background: #f8fbff;
  overflow: hidden;
}

.image-modal__viewer img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: min(66vh, 720px);
}

.image-modal__placeholder {
  color: #526173;
  font-weight: 700;
}
@media (max-width: 1180px) {
  .site-header__bar {
    grid-template-columns: minmax(180px, 240px) minmax(0, 1fr) auto;
  }

  .club-badge--logo-only {
    max-width: min(230px, 30vw);
  }

  .club-badge__logo {
    max-height: 68px;
  }

  .site-header__actions {
    gap: 4px;
  }

  .site-header__cart-link {
    padding-inline: 10px;
  }
}

@media (max-width: 980px) {
  .site-header {
    padding: 12px 16px 10px;
  }

  .site-header__bar {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "brand actions"
      "search search";
  }

  .site-header__search {
    display: block;
    max-width: none;
    margin-top: 2px;
    justify-self: stretch;
  }

  .site-header__search-row {
    display: none;
  }

  .catalog-mobile-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 12px;
    border: 1px solid #d5e1ef;
    border-radius: 10px;
    background: #ffffff;
    color: #0f2a52;
    font: inherit;
    font-weight: 700;
  }

  .club-badge--logo-only {
    max-width: min(240px, 46vw);
  }
  .catalog-filters__header {
    grid-template-columns: 1fr;
  }

  .product-gallery {
    grid-template-columns: 1fr;
  }

  .product-gallery__thumbs {
    grid-template-columns: repeat(auto-fit, minmax(78px, 1fr));
    grid-auto-rows: minmax(78px, auto);
    order: 2;
  }

  .image-modal__content {
    grid-template-columns: 1fr;
  }

  .image-modal__thumbs {
    grid-template-columns: repeat(auto-fit, minmax(78px, 1fr));
    align-content: stretch;
    max-height: none;
    overflow: visible;
    order: 2;
  }
}

@media (max-width: 720px) {
  .site-header {
    padding: 8px 12px;
  }

  .site-header__bar {
    gap: 8px;
  }

  .site-brand__link {
    font-size: 0.98rem;
  }

  .club-badge--logo-only {
    max-width: min(150px, 36vw);
  }

  .club-badge__logo {
    max-height: 48px;
  }

  .site-header__actions {
    gap: 4px;
  }

  .site-header__cart-link,
  .catalog-mobile-toggle {
    min-height: 44px;
    padding-inline: 9px;
    font-size: 0.8rem;
  }

  .catalog-mobile-toggle {
    min-height: var(--public-header-control-height);
  }

  .site-header__cart-link {
    gap: 4px;
  }

  .site-search--header .site-search__shell {
    min-height: var(--public-header-control-height);
    border-radius: 10px;
  }

  .site-search--header .site-search__input {
    padding: 0 12px;
    font-size: 0.9rem;
  }

  .site-search--header .site-search__submit {
    min-width: 46px;
    width: 46px;
  }

  .site-search__submit-icon {
    width: 18px;
    height: 18px;
  }
  .catalog-filter-chip,
  .catalog-filters__clear,
  .catalog-filters__toggle {
    min-height: 38px;
  }

  .image-modal {
    padding: 12px;
  }

  .image-modal__dialog {
    width: calc(100vw - 24px);
    max-height: calc(100vh - 24px);
    padding: 18px 16px;
    border-radius: 22px;
  }

  .image-modal__header {
    align-items: flex-start;
    flex-direction: column;
    padding-right: 44px;
  }

  .image-modal__viewer {
    min-height: min(56vh, 460px);
    padding: 14px;
  }
}
