/* Client-specific presentation of the live Step2Fit catalogue. */
.onlinept-shop-catalogue .shop-product {
  scroll-margin-top: 8rem;
}

.onlinept-shop-catalogue .shop-product-image {
  align-self: start;
  object-fit: contain;
}

.onlinept-shop-catalogue .shop-product-content {
  align-self: start;
}

.onlinept-shop-catalogue .shop-product-title {
  font-size: clamp(1.875rem, 3vw, 2.75rem);
}

.onlinept-shop-catalogue .shop-product-description {
  white-space: pre-wrap;
}

.onlinept-shop-catalogue .shop-product-description p,
.onlinept-shop-catalogue .shop-product-description ul {
  margin: 0 0 1rem;
}

.onlinept-shop-catalogue .shop-product-description h3 {
  margin: 1.5rem 0 .75rem;
  font-family: var(--brand-font-body);
  font-size: 1.125rem;
  font-weight: 700;
  font-style: normal;
  line-height: 1.5;
  text-transform: none;
}

.onlinept-shop-catalogue .shop-product-description ul {
  padding-left: 1.25rem;
}

.onlinept-shop-catalogue .shop-product-description li {
  margin: 0 0 .5rem;
  padding-left: .125rem;
}

.onlinept-shop-catalogue .shop-product-description li::marker {
  color: var(--brand-color-accent);
}

.onlinept-shop-catalogue .shop-product-description li > ul {
  margin: .5rem 0;
}

.onlinept-shop-catalogue .shop-product-description > :last-child {
  margin-bottom: 0;
}

.onlinept-shop-catalogue .shop-product-purchase .button:disabled {
  min-height: 3.25rem;
  max-width: 100%;
  white-space: normal;
  cursor: not-allowed;
  box-shadow: none;
  background: var(--brand-color-surface);
  color: var(--brand-color-text);
  border: 1px solid var(--brand-color-border);
  opacity: .8;
}

.onlinept-shop-catalogue .shop-product-purchase .button:disabled:hover {
  transform: none;
}

/* Compact catalogue with complete Step2Fit descriptions in a dialog. */
.onlinept-shop-intro { color: #c8c8c8; font-size: 1.2rem; margin: 0; }
.onlinept-shop-catalogue .shop-status { padding: 0 0 2rem; color: #aaa; font-size: .95rem; }
.onlinept-shop-toolbar { margin-bottom: 1.5rem; }
.onlinept-shop-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: .65rem; }
.onlinept-shop-filter {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .65rem 1.1rem; border: 1px solid #ffffff30; border-radius: 999px;
  background: #1b1b1b; color: #eee; font: inherit; cursor: pointer;
  transition: background-color .18s, border-color .18s;
}
.onlinept-shop-filter:hover { border-color: var(--brand-color-accent); }
.onlinept-shop-filter[aria-pressed="true"] { background: #c52b28; border-color: var(--brand-color-accent); color: #fff; }
.onlinept-shop-filter:focus-visible,
.onlinept-dialog-close:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.onlinept-shop-filter-count { font-size: .8rem; opacity: .8; }
.onlinept-shop-count { margin: 1.5rem 0 0; color: #aaa; font-size: .95rem; }
.onlinept-shop-catalogue .shop-products { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1.5rem; }
.onlinept-shop-catalogue .shop-product-slot { min-width: 0; }
.onlinept-shop-catalogue .onlinept-product-card {
  display: flex; flex-direction: column; gap: 0; width: 100%; height: 100%;
  padding: 0; margin: 0; overflow: hidden; box-shadow: none;
  background: #191919; border-color: #ffffff26; border-radius: 16px;
}
.onlinept-product-image-button {
  display: block; flex: 0 0 auto; width: 100%; aspect-ratio: 1;
  padding: 0; border: 0; border-bottom: 1px solid #ffffff18;
  background: #0c0c0c; color: #fff; cursor: pointer;
}
.onlinept-shop-catalogue .onlinept-product-card .shop-product-image {
  width: 100%; height: 100%; max-width: none; object-fit: contain; border-radius: 0;
}
.onlinept-product-card-body { flex: 1; display: flex; flex-direction: column; padding: 1.5rem; }
.onlinept-shop-catalogue .onlinept-product-card .shop-product-title {
  margin: 0; font-size: clamp(1.45rem,2vw,1.8rem); line-height: 1.2;
  font-style: normal; text-transform: none; overflow-wrap: break-word;
}
.onlinept-product-category { margin: .65rem 0 1rem; color: #ff7773; font-size: .9rem; font-weight: 500; }
.onlinept-product-facts { list-style: none; margin: 0 0 1.5rem; padding: 0; color: #ccc; font-size: 1rem; }
.onlinept-product-facts li { position: relative; margin: .3rem 0; padding-left: .9rem; }
.onlinept-product-facts li::before { content: ""; position: absolute; top: .65em; left: 0; width: 4px; height: 4px; border-radius: 50%; background: var(--brand-color-accent); }
.onlinept-product-card .shop-product-pricing { margin-top: auto; min-height: 4.5rem; }
.onlinept-product-card .shop-product-title { padding-bottom: 1.25rem; }
.onlinept-product-card .shop-product-price { font-size: 2.1rem; }
.onlinept-product-card .shop-product-original-price { color: #aaa; }
.onlinept-product-card .shop-product-recurrence { font-size: .9rem; color: #aaa; }
.onlinept-product-details-button { display: flex; align-items: center; justify-content: space-between; width: 100%; gap: 1rem; margin-top: .5rem; }
.onlinept-product-details-button svg { width: 1.2rem; height: 1.2rem; flex-shrink: 0; }
.onlinept-product-image-button:focus-visible { outline: 3px solid #fff; outline-offset: -5px; }
.onlinept-product-dialog {
  width: min(54rem,calc(100% - 2.5rem)); max-height: calc(100dvh - 3rem);
  margin: auto; padding: 0; border: 1px solid #ffffff35; border-radius: 18px;
  background: #181818; color: #fafafa; box-shadow: 0 2rem 6rem #0009;
  overscroll-behavior: contain;
}
.onlinept-product-dialog::backdrop { background: #000c; backdrop-filter: blur(5px); }
body.onlinept-dialog-open { overflow: hidden; }
.onlinept-dialog-toolbar {
  position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between;
  padding: .8rem 1.5rem; border-bottom: 1px solid #ffffff20; background: #181818; color: #bbb;
}
.onlinept-dialog-close { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid #ffffff30; border-radius: 50%; background: #252525; color: #fff; cursor: pointer; }
.onlinept-dialog-close:hover { border-color: var(--brand-color-accent); }
.onlinept-dialog-close svg { width: 22px; height: 22px; }
.onlinept-dialog-content { padding: 2rem; }
.onlinept-dialog-heading { display: grid; grid-template-columns: minmax(0,.8fr) minmax(0,1fr); gap: 2rem; align-items: center; margin-bottom: 2rem; }
.onlinept-dialog-image { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; border-radius: 8px; }
#product-dialog-title { margin: 0; font-size: clamp(1.7rem,3vw,2.3rem); line-height: 1.2; font-style: normal; text-transform: none; }
#product-dialog-title:focus { outline: none; }
.onlinept-dialog-heading .shop-product-price { font-size: 2.4rem; }
.onlinept-dialog-heading .shop-product-pricing { margin-top: 1.25rem; }
.onlinept-dialog-heading.onlinept-dialog-without-image { grid-template-columns: minmax(0,1fr); }
.onlinept-product-dialog .shop-product-description { max-width: none; border-top: 1px solid #ffffff20; padding-top: 2rem; line-height: 1.7; }
.onlinept-dialog-purchase { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid #ffffff20; }
.onlinept-dialog-purchase .button:disabled { max-width: 100%; white-space: normal; background: #303030; border: 1px solid #ffffff35; box-shadow: none; color: #ccc; cursor: not-allowed; }
.onlinept-dialog-purchase p { margin: .8rem 0 0; color: #aaa; font-size: .95rem; }
@media (max-width:1099px) {
  .onlinept-shop-catalogue .shop-products { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width:639px) {
  .onlinept-shop-catalogue .shop-products { grid-template-columns: repeat(2,minmax(0,1fr)); gap: .75rem; }
  .onlinept-shop-filters { justify-content: flex-start; gap: .5rem; }
  .onlinept-shop-filter { padding: .55rem .8rem; font-size: .95rem; }
  .onlinept-product-card-body { width: 100%; min-width: 0; padding: clamp(.75rem,2.6vw,1rem); }
  .onlinept-shop-catalogue .onlinept-product-card .shop-product-title { font-size: clamp(1.125rem,3.8vw,1.4rem); }
  .onlinept-product-card .onlinept-product-category { margin: .5rem 0 .75rem; font-size: .8125rem; }
  .onlinept-product-card .onlinept-product-facts { margin-bottom: 1rem; font-size: .875rem; line-height: 1.45; overflow-wrap: anywhere; }
  .onlinept-product-card .shop-product-pricing { min-height: 3.5rem; }
  .onlinept-product-card .shop-product-price { font-size: 1.6rem; }
  .onlinept-product-card .shop-product-recurrence { font-size: .8125rem; }
  .onlinept-product-details-button { min-height: 44px; padding: .65rem .625rem; gap: .375rem; font-size: .9rem; }
  .onlinept-product-details-button svg { width: 1rem; height: 1rem; }
  .onlinept-product-dialog { width: calc(100% - 1rem); max-height: calc(100dvh - 1rem); border-radius: 12px; }
  .onlinept-dialog-toolbar { padding: .65rem 1rem; }
  .onlinept-dialog-content { padding: 1.25rem; }
  .onlinept-dialog-heading { grid-template-columns: minmax(0,1fr); gap: 1.25rem; }
  .onlinept-dialog-image { width: min(100%,16rem); justify-self: center; }
  .onlinept-dialog-purchase .button { width: 100%; }
}
@media (prefers-reduced-motion:reduce) { .onlinept-shop-filter { transition: none; } }
