.ipm-product-shelves {
  --ipm-shelf-navy: #071733;
  --ipm-shelf-blue: #087cf0;
  --ipm-shelf-blue-deep: #0873df;
  --ipm-shelf-green: #11a84f;
  --ipm-shelf-yellow: #e8ab14;
  --ipm-shelf-muted: #68788f;
  --ipm-shelf-border: #e1eaf3;
  --ipm-shelf-chip: #f2f6f9;
  --ipm-shelf-green-soft: #eaf8ee;

  padding: clamp(3.25rem, 5vw, 5.25rem) 1.5rem;
  color: var(--ipm-shelf-navy);
  background: linear-gradient(180deg, #ffffff 0%, #f6faff 100%);
  font-family: var(--ip-font-body);
}

.ipm-product-shelves__inner {
  width: min(100%, var(--ip-container));
  margin: 0 auto;
}

.ipm-shelf {
  max-width: 1450px;
  margin: 0 auto 2rem;
  padding: 1.75rem 1.625rem 1.25rem;
  background: rgba(255, 255, 255, .80);
  border: 1px solid var(--ipm-shelf-border);
  border-radius: 1.25rem;
  box-shadow: 0 14px 35px rgba(25, 61, 99, .05);
}

.ipm-shelf--used {
  background: linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(250, 255, 251, .94));
}

.ipm-shelf--new {
  background: linear-gradient(180deg, rgba(255, 255, 255, .97), rgba(248, 251, 255, .95));
}

.ipm-shelf__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.75rem;
  margin-bottom: 1.25rem;
}

.ipm-shelf__eyebrow {
  display: inline-block;
  margin-bottom: .5rem;
  color: var(--ipm-shelf-blue);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.ipm-shelf--used .ipm-shelf__eyebrow {
  color: var(--ipm-shelf-green);
}

.ipm-shelf__header h2 {
  margin: 0 0 .45rem;
  color: var(--ipm-shelf-navy);
  font-size: clamp(1.75rem, 2.4vw, 2.25rem);
  line-height: 1.1;
  letter-spacing: -.035em;
  font-weight: 760;
}

.ipm-shelf__header p {
  margin: 0;
  color: var(--ipm-shelf-muted);
  font-size: var(--text-s);
}

.ipm-shelf__all-link {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: .75rem;
  min-height: 2.8rem;
  padding: 0 1.25rem;
  color: var(--ipm-shelf-blue-deep);
  text-decoration: none;
  background: var(--white);
  border: 1px solid var(--ipm-shelf-border);
  border-radius: 999px;
  box-shadow: 0 10px 26px rgba(25, 59, 95, .05);
  font-size: var(--text-xs);
  font-weight: 700;
}

.ipm-shelf--new .ipm-shelf__all-link {
  color: var(--ipm-shelf-blue);
}

.ipm-shelf__all-link svg,
.ipm-shelf-card__button svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ipm-shelf__all-link:hover,
.ipm-shelf__all-link:focus-visible {
  border-color: var(--primary);
  color: var(--ipm-shelf-blue);
}

.ipm-shelf__carousel {
  position: relative;
}

.ipm-shelf__arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  color: var(--ipm-shelf-blue-deep);
  background: rgba(255, 255, 255, .97);
  border: 1px solid var(--ipm-shelf-border);
  border-radius: 50%;
  box-shadow: 0 9px 24px rgba(23, 57, 93, .12);
  cursor: pointer;
  transform: translateY(-50%);
  transition: color .18s ease, border-color .18s ease, box-shadow .18s ease, opacity .18s ease;
}

.ipm-shelf__arrow[hidden] {
  display: none;
}

.ipm-shelf__arrow--prev {
  left: -1.35rem;
}

.ipm-shelf__arrow--next {
  right: -1.35rem;
}

.ipm-shelf__arrow:hover,
.ipm-shelf__arrow:focus-visible {
  color: var(--ipm-shelf-blue);
  border-color: rgba(8, 124, 240, .42);
  box-shadow: 0 12px 28px rgba(23, 57, 93, .16);
}

.ipm-shelf__arrow:focus-visible {
  outline: 3px solid rgba(8, 124, 240, .24);
  outline-offset: 3px;
}

.ipm-shelf__arrow:disabled {
  opacity: .32;
  cursor: default;
  box-shadow: none;
}

.ipm-shelf__arrow svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ipm-shelf__track {
  display: flex;
  gap: .875rem;
  overflow-x: auto;
  padding: .2rem .1rem .55rem;
  overscroll-behavior-inline: contain;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.ipm-shelf__track::-webkit-scrollbar {
  display: none;
}

.ipm-shelf-card {
  position: relative;
  display: flex;
  flex: 0 0 calc((100% - 4.375rem) / 6);
  flex-direction: column;
  min-width: 12rem;
  scroll-snap-align: start;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--ipm-shelf-border);
  border-radius: .95rem;
  box-shadow: 0 10px 24px rgba(29, 62, 99, .045);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.ipm-shelf-card:hover {
  transform: translateY(-3px);
  border-color: rgba(25, 128, 225, .24);
  box-shadow: 0 15px 30px rgba(29, 62, 99, .075);
}

.ipm-shelf-card__top {
  position: absolute;
  top: .75rem;
  left: .75rem;
  right: .75rem;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.ipm-shelf-card__badge {
  display: inline-flex;
  align-items: center;
  min-height: 1.45rem;
  padding: 0 .6rem;
  color: var(--white);
  background: var(--ipm-shelf-green);
  border-radius: 999px;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.ipm-shelf--new .ipm-shelf-card__badge {
  background: var(--ipm-shelf-blue);
}

.ipm-shelf-card__media {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 12.8rem;
  padding: 2.4rem .9rem .6rem;
  color: var(--ipm-shelf-muted);
  text-decoration: none;
  background: radial-gradient(circle at 50% 45%, rgba(72, 159, 240, .06), transparent 57%);
}

.ipm-shelf-card__media img {
  display: block;
  width: 100%;
  max-width: 9.4rem;
  max-height: 10.9rem;
  object-fit: contain;
}

.ipm-shelf-card__no-image {
  font-size: var(--text-xs);
}

.ipm-shelf-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: .6rem .875rem .875rem;
}

.ipm-shelf-card h3 {
  min-height: 2.45em;
  margin: 0 0 .2rem;
  color: var(--ipm-shelf-navy);
  font-size: var(--text-s);
  line-height: 1.25;
  font-weight: 750;
}

.ipm-shelf-card h3 a {
  color: inherit;
  text-decoration: none;
}

.ipm-shelf-card h3 a:hover,
.ipm-shelf-card h3 a:focus-visible {
  color: var(--ipm-shelf-blue);
}

.ipm-shelf-card__meta {
  min-height: 1.25rem;
  margin: 0;
  color: var(--ipm-shelf-muted);
  font-size: var(--text-2xs);
}

.ipm-shelf-card__chips {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem;
  margin: .55rem 0 .8rem;
}

.ipm-shelf-card__chips span {
  display: inline-flex;
  align-items: center;
  min-height: 1.4rem;
  padding: 0 .5rem;
  color: var(--ip-text);
  background: var(--ipm-shelf-chip);
  border-radius: .4rem;
  font-size: .62rem;
}

.ipm-shelf-card__chips span:last-child {
  color: #0c9940;
  background: var(--ipm-shelf-green-soft);
}

.ipm-shelf-card__old-price {
  margin-top: auto;
  margin-bottom: .2rem;
  color: var(--ipm-shelf-muted);
  font-size: var(--text-2xs);
  text-decoration: line-through;
}

.ipm-shelf-card__price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .4rem;
  min-height: 1.8rem;
  margin-bottom: .65rem;
}

.ipm-shelf-card__price,
.ipm-shelf-card__price .amount {
  color: var(--ipm-shelf-navy);
  font-size: var(--text-l);
  font-weight: 800;
  line-height: 1.1;
}

.ipm-shelf-card__saving-badge {
  display: inline-flex;
  padding: .25rem .4rem;
  color: #0c9940;
  background: #e3f8e9;
  border-radius: .4rem;
  font-size: .62rem;
  font-weight: 800;
  white-space: nowrap;
}

.ipm-shelf-card__button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .7rem;
  min-height: 2.35rem;
  margin-top: auto;
  padding: 0 .8rem;
  color: var(--white);
  text-decoration: none;
  background: linear-gradient(100deg, #0873ef, #086ff2);
  border-radius: .45rem;
  font-size: var(--text-2xs);
  font-weight: 750;
}

.ipm-shelf-card__button:hover,
.ipm-shelf-card__button:focus-visible {
  color: var(--white);
  background: var(--ipm-shelf-blue-deep);
}

.ipm-product-shelves__trust {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: .9rem auto 0;
  padding: .7rem 1.1rem;
  background: var(--white);
  border: 1px solid var(--ipm-shelf-border);
  border-radius: .8rem;
  box-shadow: 0 8px 24px rgba(20, 60, 100, .035);
}

.ipm-shelf-trust {
  display: flex;
  align-items: center;
  gap: .65rem;
  min-width: 0;
  padding: .15rem 1.35rem;
}

.ipm-shelf-trust + .ipm-shelf-trust {
  border-left: 1px solid var(--ipm-shelf-border);
}

.ipm-shelf-trust__icon {
  display: grid;
  flex: 0 0 1.75rem;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  color: var(--ipm-shelf-blue-deep);
  background: rgba(8, 124, 240, .09);
  border-radius: 50%;
}

.ipm-shelf-trust__icon svg {
  width: 1rem;
  height: 1rem;
}

.ipm-shelf-trust strong,
.ipm-shelf-trust small {
  display: block;
}

.ipm-shelf-trust strong {
  color: var(--ipm-shelf-navy);
  font-size: var(--text-2xs);
  font-weight: 750;
}

.ipm-shelf-trust small {
  color: var(--ipm-shelf-muted);
  font-size: .65rem;
}

@media (max-width: 1250px) {
  .ipm-shelf-card {
    flex-basis: 13.25rem;
  }
}

@media (max-width: 820px) {
  .ipm-product-shelves {
    padding-right: 1rem;
    padding-left: 1rem;
  }

  .ipm-shelf {
    padding: 1.4rem 1.1rem 1rem;
  }

  .ipm-shelf__header {
    flex-direction: column;
    gap: .9rem;
  }

  .ipm-shelf__all-link {
    align-self: flex-start;
  }

  .ipm-shelf__arrow {
    display: none !important;
  }

  .ipm-product-shelves__trust {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .6rem 0;
  }

  .ipm-shelf-trust:nth-child(3) {
    border-left: 0;
  }
}

@media (max-width: 520px) {
  .ipm-product-shelves {
    padding: 2.6rem .75rem;
  }

  .ipm-shelf {
    border-radius: .95rem;
    padding: 1.1rem .75rem .85rem;
  }

  .ipm-shelf__header h2 {
    font-size: 1.6rem;
  }

  .ipm-shelf__header p {
    font-size: var(--text-xs);
  }

  .ipm-shelf-card {
    flex-basis: 78vw;
  }

  .ipm-shelf-card__media {
    min-height: 14.3rem;
  }

  .ipm-shelf-card__media img {
    max-width: 10.9rem;
    max-height: 12.2rem;
  }

  .ipm-product-shelves__trust {
    grid-template-columns: 1fr;
    padding: .5rem .85rem;
  }

  .ipm-shelf-trust {
    padding: .5rem 0;
  }

  .ipm-shelf-trust + .ipm-shelf-trust {
    border-top: 1px solid var(--ipm-shelf-border);
    border-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ipm-shelf__track {
    scroll-behavior: auto;
  }

  .ipm-shelf-card,
  .ipm-shelf__all-link,
  .ipm-shelf__arrow {
    transition: none;
  }

  .ipm-shelf-card:hover {
    transform: none;
  }
}
