.ap-product-shelf {
  --ap-font-display: var(--e-global-typography-primary-font-family, sans-serif), sans-serif;
  --ap-font-body: var(--e-global-typography-text-font-family, sans-serif), sans-serif;
  --ap-bg: #fff;
  --ap-fg: #09090b;
  --ap-muted: #52525b;
  --ap-soft: #f4f4f5;
  --ap-border: #e4e4e7;
  --ap-primary: #ea6a1f;
  --ap-primary-dark: #d65b15;
  --ap-container: 1280px;
  --ap-shelf-gap: 8px;
  --ap-shelf-visible: var(--ap-shelf-desktop-visible, 6);
  background: transparent;
  color: var(--ap-fg);
  font-family: var(--ap-font-body);
  line-height: 1.5;
  overflow-x: clip;
  padding-block: 0;
}

.ap-product-shelf *,
.ap-product-shelf *::before,
.ap-product-shelf *::after {
  box-sizing: border-box;
}

.ap-product-shelf img,
.ap-product-shelf svg {
  display: block;
}

.ap-product-shelf svg {
  fill: none;
  height: 1em;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 1em;
}

.ap-product-shelf img {
  max-width: 100%;
}

.ap-product-shelf .ap-container {
  margin-inline: 0;
  max-width: none;
  padding-inline: 0;
  width: 100%;
}

.ap-product-shelf a {
  color: inherit;
}

.ap-product-shelf .ap-eyebrow {
  color: var(--ap-primary);
  display: inline-block;
  font-family: var(--ap-font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  line-height: 1.1;
  text-transform: uppercase;
}

.ap-product-shelf .ap-section-head {
  align-items: flex-end;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-bottom: 26px;
}

.ap-product-shelf .ap-section-title {
  color: var(--ap-fg);
  font-family: var(--ap-font-display);
  font-size: 30px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 36px;
  margin: 4px 0 0;
  text-transform: uppercase;
}

.ap-product-shelf .ap-section-head__link {
  color: var(--ap-muted);
  font-family: var(--ap-font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  text-decoration: none;
  text-transform: uppercase;
}

.ap-product-shelf .ap-section-head__link:hover,
.ap-product-shelf .ap-section-head__link:focus-visible {
  color: var(--ap-primary);
}

.ap-product-shelf__head-actions {
  align-items: center;
  display: flex;
  gap: 18px;
  margin-left: auto;
}

.ap-product-shelf__controls--rail {
  justify-content: flex-end;
  margin-bottom: 14px;
}

.ap-product-shelf__rail {
  display: flex;
  gap: var(--ap-shelf-gap);
  margin-inline: 0;
  overflow-x: auto;
  padding: 0;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.ap-product-shelf__rail::-webkit-scrollbar {
  display: none;
}

.ap-product-shelf__rail > .ap-card {
  flex: 0 0 calc((100% - (var(--ap-shelf-gap) * (var(--ap-shelf-visible) - 1))) / var(--ap-shelf-visible));
  scroll-snap-align: start;
}

@media (max-width: 1024px) {
  .ap-product-shelf {
    --ap-shelf-gap: 8px;
    --ap-shelf-visible: var(--ap-shelf-tablet-visible, 3);
    padding-block: 0;
  }
}

@media (max-width: 760px) {
  .ap-product-shelf {
    --ap-shelf-gap: 8px;
    --ap-shelf-visible: var(--ap-shelf-mobile-visible, 2.35);
    padding-block: 0;
  }

  .ap-product-shelf .ap-section-head {
    align-items: flex-end;
    flex-direction: row;
    gap: 16px;
    margin-bottom: 20px;
  }

  .ap-product-shelf .ap-section-head > div:first-child {
    min-width: 0;
  }

  .ap-product-shelf .ap-section-title {
    font-size: 24px;
    line-height: 32px;
  }

  .ap-product-shelf .ap-section-head__link {
    display: none;
  }

  .ap-product-shelf__head-actions {
    gap: 10px;
  }

  .ap-product-shelf__controls--rail {
    margin-bottom: 12px;
    padding-inline-end: 16px;
  }

  .ap-product-shelf__rail {
    margin-inline: 0;
    padding: 0;
  }
}
