/* Product archive direction - iPrestige Modern
 * Compact visual hero, category pills, on-demand filters and a full-width grid.
 */

body.ipm-catalog-view {
  --ipm-refurb: #087443;
  --ipm-refurb-accent: #11a84f;
  --ipm-refurb-soft: #e7f7ed;
  --ipm-refurb-surface: #f4fbf7;
  --ipm-refurb-border: #c4e8d0;
}

body.ipm-catalog-view .ipm-site-header {
  padding: 12px 0 8px;
}

body.ipm-catalog-view .ipm-site-header__inner {
  min-height: 82px;
  padding-inline: 24px;
  border-radius: 18px;
}

body.ipm-catalog-view .ipm-archive__breadcrumb {
  gap: 6px;
  padding-top: 11px;
  font-size: 11px;
}

body.ipm-catalog-view .ipm-archive__header {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, .62fr);
  grid-template-areas:
    "eyebrow visual"
    "title visual"
    "description visual"
    "types types";
  align-items: center;
  column-gap: clamp(24px, 4vw, 64px);
  row-gap: 0;
  min-height: 210px;
  margin-top: 9px;
  padding: 20px 22px 18px;
  overflow: hidden;
  border-color: rgba(51, 8, 103, .09);
  background:
    radial-gradient(circle at 86% 18%, rgba(0, 196, 248, .12), transparent 30%),
    linear-gradient(105deg, #fff 0%, #fff 57%, rgba(0, 196, 248, .055) 100%);
  box-shadow: 0 12px 30px rgba(51, 8, 103, .045);
}

body.ipm-catalog-view .ipm-archive__header::after {
  z-index: -1;
  grid-area: visual;
  align-self: stretch;
  width: 100%;
  min-height: 124px;
  content: "";
  background-image: url("../images/hero-img.png");
  background-position: center right;
  background-repeat: no-repeat;
  background-size: contain;
  filter: drop-shadow(0 16px 20px rgba(51, 8, 103, .09));
}

body.ipm-catalog-view--refurbished .ipm-archive__header {
  background:
    radial-gradient(circle at 86% 18%, rgba(17, 168, 79, .12), transparent 31%),
    linear-gradient(105deg, #fff 0%, #fff 57%, var(--ipm-refurb-surface) 100%);
}

body.ipm-catalog-view--refurbished .ipm-archive__header::after {
  background-image: url("../images/felujitott-hero.png");
}

body.ipm-catalog-view--new .ipm-archive__header::after {
  background-image: url("../images/iprestige-new-devices-hero-transparent-v3.png");
}

body.ipm-catalog-view--iphone .ipm-archive__header::after {
  background-image: url("../images/hero-iphone-main.png");
}

body.ipm-catalog-view--ipad .ipm-archive__header::after {
  background-image: url("../images/hero-ipad.png");
}

body.ipm-catalog-view--watch .ipm-archive__header::after {
  background-image: url("../images/hero-watch.png");
}

body.ipm-catalog-view--accessories .ipm-archive__header::after {
  background-image: url("../images/hero-airpods.png");
}

body.ipm-catalog-view .ipm-archive__eyebrow {
  z-index: 1;
  grid-area: eyebrow;
  align-self: end;
  margin-bottom: 7px;
  font-size: 10px;
}

body.ipm-catalog-view--refurbished .ipm-archive__eyebrow {
  color: var(--ipm-refurb-accent);
}

body.ipm-catalog-view--refurbished .ipm-archive__eyebrow::before {
  background: var(--ipm-refurb-accent);
}

body.ipm-catalog-view .ipm-archive__eyebrow::before {
  width: 19px;
}

body.ipm-catalog-view .ipm-archive__header h1 {
  z-index: 1;
  grid-area: title;
  max-width: 700px;
  font-size: clamp(31px, 3vw, 42px);
  letter-spacing: -.038em;
  line-height: 1.04;
}

body.ipm-catalog-view .ipm-archive__header p {
  z-index: 1;
  grid-area: description;
  align-self: start;
  max-width: 590px;
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.48;
}

body.ipm-catalog-view .ipm-archive__type-nav {
  z-index: 2;
  grid-area: types;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 9px;
  width: 100%;
  margin-top: 17px;
}

body.ipm-catalog-view .ipm-archive__type-nav a {
  position: relative;
  min-height: 43px;
  padding: 0 13px;
  border-color: rgba(51, 8, 103, .12);
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(51, 8, 103, .025);
  font-size: 12px;
}

body.ipm-catalog-view .ipm-archive__type-nav a::before {
  width: 6px;
  height: 6px;
  margin-right: 8px;
  border: 1px solid currentColor;
  border-radius: 50%;
  content: "";
  opacity: .62;
}

body.ipm-catalog-view .ipm-archive__type-nav a:hover,
body.ipm-catalog-view .ipm-archive__type-nav a:focus-visible {
  border-color: var(--primary);
  background: rgba(0, 196, 248, .045);
}

body.ipm-catalog-view .ipm-archive__type-nav a[aria-current="page"] {
  border-color: var(--secondary);
  background: var(--secondary);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(51, 8, 103, .14);
}

body.ipm-catalog-view--refurbished .ipm-archive__type-nav a[href*="felujitott"][aria-current="page"] {
  border-color: var(--ipm-refurb);
  background: var(--ipm-refurb);
}

body.ipm-catalog-view .ipm-archive__trust-strip {
  display: none;
  margin-top: 8px;
  border-color: rgba(51, 8, 103, .09);
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(51, 8, 103, .025);
}

body.ipm-catalog-view .ipm-archive__trust-strip > span {
  min-height: 35px;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 650;
}

body.ipm-catalog-view .ipm-archive__trust-strip svg {
  width: 15px;
  height: 15px;
}

body.ipm-catalog-view--refurbished .ipm-archive__trust-strip svg {
  color: var(--ipm-refurb-accent);
}

body.ipm-catalog-view .ipm-archive__filters-form {
  margin-top: 10px;
}

body.ipm-catalog-view .ipm-archive__toolbar {
  grid-template-columns: minmax(260px, 1fr) 196px auto;
  gap: 9px;
  margin-bottom: 10px;
  padding: 9px;
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(51, 8, 103, .03);
}

body.ipm-catalog-view .ipm-archive__toolbar .ipm-archive__field {
  gap: 0;
}

body.ipm-catalog-view .ipm-archive__toolbar .ipm-archive__field > label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body.ipm-catalog-view .ipm-archive__field input,
body.ipm-catalog-view .ipm-archive__field select {
  min-height: 42px;
}

body.ipm-catalog-view .ipm-archive__toolbar .ip-btn {
  min-height: 42px;
  padding-inline: 22px;
}

body.ipm-catalog-view .ipm-archive__layout {
  display: block;
}

body.ipm-catalog-view .ipm-archive__filter {
  position: static;
  width: 100%;
  margin: 0 0 10px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

body.ipm-catalog-view .ipm-archive__filter summary {
  display: inline-flex;
  min-width: 126px;
  min-height: 42px;
  padding: 0 14px;
  justify-content: flex-start;
  border: 1px solid rgba(51, 8, 103, .14);
  border-radius: var(--ip-radius-button);
  background: var(--white);
  color: var(--secondary);
  font-size: 13px;
  box-shadow: 0 5px 16px rgba(51, 8, 103, .035);
}

body.ipm-catalog-view .ipm-archive__filter summary::before {
  width: 17px;
  height: 13px;
  margin-right: 9px;
  content: "";
  background:
    linear-gradient(currentColor, currentColor) 0 1px / 17px 1px no-repeat,
    linear-gradient(currentColor, currentColor) 0 6px / 17px 1px no-repeat,
    linear-gradient(currentColor, currentColor) 0 11px / 17px 1px no-repeat;
  opacity: .8;
}

body.ipm-catalog-view .ipm-archive__filter summary::after {
  display: block;
  margin-left: auto;
  color: var(--primary);
  content: "+";
  font-size: 19px;
  font-weight: 500;
}

body.ipm-catalog-view .ipm-archive__filter[open] summary {
  border-color: var(--primary);
  background: rgba(0, 196, 248, .045);
}

body.ipm-catalog-view .ipm-archive__filter[open] summary::after {
  content: "−";
}

body.ipm-catalog-view .ipm-archive__filter-content {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
  gap: 16px 20px;
  margin-top: 9px;
  padding: 18px;
  border: 1px solid var(--light-silver);
  border-radius: 14px;
  background: var(--white);
  box-shadow: 0 10px 26px rgba(51, 8, 103, .04);
}

body.ipm-catalog-view .ipm-archive__filter-group,
body.ipm-catalog-view .ipm-archive__attribute-group {
  margin: 0;
  padding: 0;
  border: 0;
}

body.ipm-catalog-view .ipm-archive__filter-actions {
  align-self: end;
  margin-top: 0;
}

body.ipm-catalog-view .ipm-archive__results {
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

body.ipm-catalog-view .ipm-archive__filter-chips {
  min-height: 34px;
  margin: 0 0 8px;
}

body.ipm-catalog-view .ipm-archive__results-meta {
  min-height: 34px;
  margin-bottom: 10px;
  padding: 0 2px;
}

body.ipm-catalog-view .ipm-archive__product-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

body.ipm-catalog-view .ipm-product-card {
  overflow: hidden;
  border-color: rgba(51, 8, 103, .1);
  border-radius: 14px;
  box-shadow: 0 7px 20px rgba(51, 8, 103, .035);
}

body.ipm-catalog-view .ipm-product-card:hover {
  border-color: rgba(0, 196, 248, .42);
  box-shadow: 0 14px 30px rgba(51, 8, 103, .07);
}

body.ipm-catalog-view .ipm-product-card__media {
  aspect-ratio: 1.18 / 1;
  padding: 36px 16px 9px;
  background:
    radial-gradient(circle at 50% 42%, rgba(0, 196, 248, .055), transparent 53%),
    #fff;
}

body.ipm-catalog-view .ipm-product-card__media img {
  width: 88%;
  height: 88%;
  max-width: 246px;
  max-height: 246px;
}

body.ipm-catalog-view .ipm-product-card__body {
  padding: 11px 14px 14px;
  border-top: 1px solid rgba(51, 8, 103, .055);
}

body.ipm-catalog-view .ipm-product-card__body h3 {
  min-height: 40px;
  font-size: 15px;
  line-height: 1.32;
}

body.ipm-catalog-view .ipm-product-card__meta {
  margin-bottom: 8px;
}

body.ipm-catalog-view .ipm-archive-card__specs {
  min-height: 27px;
  margin-bottom: 11px;
}

body.ipm-catalog-view .ipm-product-card__price {
  margin-bottom: 12px;
  font-size: 19px;
}

body.ipm-catalog-view .ipm-product-card__button {
  min-height: 41px;
  border: 1px solid var(--secondary);
  background: var(--white);
  color: var(--secondary);
  transition: border-color .2s ease, background-color .2s ease, color .2s ease, transform .2s ease;
}

body.ipm-catalog-view .ipm-product-card__button:hover,
body.ipm-catalog-view .ipm-product-card__button:focus-visible {
  border-color: var(--secondary);
  background: var(--secondary);
  color: var(--white);
}

body.ipm-catalog-view--refurbished .ipm-product-card__badge--soft {
  background: var(--ipm-refurb-soft);
  color: var(--ipm-refurb);
}

body.ipm-catalog-view--refurbished .ipm-product-card__badge--blue {
  background: var(--ipm-refurb);
  color: var(--white);
}

body.ipm-catalog-view--refurbished .ipm-archive-card__specs li {
  border-color: var(--ipm-refurb-border);
  background: var(--ipm-refurb-soft);
  color: var(--ipm-refurb);
}

body.ipm-catalog-view .ipm-archive__pagination {
  margin-top: 22px;
}

@media (max-width: 1180px) {
  body.ipm-catalog-view .ipm-archive__header {
    grid-template-columns: minmax(0, 1fr) minmax(270px, .48fr);
  }

  body.ipm-catalog-view .ipm-archive__type-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body.ipm-catalog-view .ipm-archive__filter-content {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body.ipm-catalog-view .ipm-archive__product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  body.ipm-catalog-view .ipm-site-header {
    padding: 10px 0 6px;
  }

  body.ipm-catalog-view .ipm-site-header__inner {
    min-height: 76px;
  }

  body.ipm-catalog-view .ipm-archive__container {
    width: calc(100% - 32px);
  }

  body.ipm-catalog-view .ipm-archive__breadcrumb {
    padding-top: 9px;
  }

  body.ipm-catalog-view .ipm-archive__header {
    grid-template-columns: minmax(0, 1fr) minmax(190px, .4fr);
    min-height: 196px;
    margin-top: 7px;
    padding: 17px 17px 15px;
    column-gap: 12px;
  }

  body.ipm-catalog-view .ipm-archive__header::after {
    min-height: 104px;
    opacity: .85;
  }

  body.ipm-catalog-view .ipm-archive__header h1 {
    font-size: clamp(28px, 4.5vw, 36px);
  }

  body.ipm-catalog-view .ipm-archive__header p {
    font-size: 12px;
  }

  body.ipm-catalog-view .ipm-archive__type-nav {
    display: flex;
    flex-wrap: nowrap;
    gap: 7px;
    margin-top: 13px;
    padding-bottom: 3px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
    scrollbar-color: var(--light-silver) transparent;
  }

  body.ipm-catalog-view .ipm-archive__type-nav a {
    flex: 0 0 auto;
    min-height: 38px;
  }

  body.ipm-catalog-view .ipm-archive__trust-strip {
    display: none;
  }

  body.ipm-catalog-view .ipm-archive__filters-form {
    margin-top: 8px;
  }

  body.ipm-catalog-view .ipm-archive__toolbar {
    grid-template-columns: minmax(0, 1fr) 170px auto;
    gap: 8px;
    margin-bottom: 9px;
    padding: 8px;
  }

  body.ipm-catalog-view .ipm-archive__toolbar .ip-btn {
    padding-inline: 16px;
  }

  body.ipm-catalog-view .ipm-archive__filter-content {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.ipm-catalog-view .ipm-archive__product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.ipm-catalog-view .ipm-product-card__media {
    aspect-ratio: 1.25 / 1;
  }
}

@media (max-width: 640px) {
  body.ipm-catalog-view .ipm-archive__container {
    width: calc(100% - 24px);
  }

  body.ipm-catalog-view .ipm-archive__breadcrumb {
    padding-top: 7px;
    font-size: 10px;
  }

  body.ipm-catalog-view .ipm-archive__header {
    display: block;
    min-height: 0;
    padding: 14px;
    border-radius: 14px;
  }

  body.ipm-catalog-view .ipm-archive__header::after {
    position: absolute;
    z-index: -1;
    top: 4px;
    right: 4px;
    width: 42%;
    min-height: 105px;
    opacity: .16;
  }

  body.ipm-catalog-view .ipm-archive__eyebrow {
    display: none;
  }

  body.ipm-catalog-view .ipm-archive__header h1 {
    max-width: 85%;
    font-size: clamp(26px, 8.2vw, 33px);
  }

  body.ipm-catalog-view .ipm-archive__header p {
    max-width: 89%;
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.4;
  }

  body.ipm-catalog-view .ipm-archive__type-nav {
    margin-top: 11px;
  }

  body.ipm-catalog-view .ipm-archive__type-nav a {
    min-height: 36px;
    padding-inline: 11px;
  }

  body.ipm-catalog-view .ipm-archive__toolbar {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  body.ipm-catalog-view .ipm-archive__toolbar .ipm-archive__field:first-child {
    grid-column: 1 / -1;
  }

  body.ipm-catalog-view .ipm-archive__toolbar .ipm-archive__field:nth-child(2) {
    min-width: 0;
  }

  body.ipm-catalog-view .ipm-archive__toolbar .ip-btn {
    min-width: 92px;
  }

  body.ipm-catalog-view .ipm-archive__filter summary {
    width: 100%;
  }

  body.ipm-catalog-view .ipm-archive__filter-content {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  body.ipm-catalog-view .ipm-archive__results-meta {
    font-size: 12px;
  }

  body.ipm-catalog-view .ipm-archive__product-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  body.ipm-catalog-view .ipm-product-card__media {
    aspect-ratio: 1.35 / 1;
  }

  body.ipm-catalog-view .ipm-product-card__media img {
    max-width: 270px;
    max-height: 230px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.ipm-catalog-view .ipm-archive__type-nav,
  body.ipm-catalog-view .ipm-product-card,
  body.ipm-catalog-view .ipm-product-card__media img,
  body.ipm-catalog-view .ipm-product-card__button {
    scroll-behavior: auto;
    transition: none;
  }

  body.ipm-catalog-view .ipm-product-card:hover,
  body.ipm-catalog-view .ipm-product-card__button:hover,
  body.ipm-catalog-view .ipm-product-card__button:focus-visible {
    transform: none;
  }
}

@media (min-width: 901px) and (max-width: 1120px) {
  body.ipm-catalog-view .ipm-nav__list {
    gap: 14px;
  }

  body.ipm-catalog-view .ipm-nav__list > li > a {
    font-size: 12px;
    white-space: nowrap;
  }
}

/* New-device archive retail refinement */
body.ipm-catalog-view .ipm-archive__header {
  min-height: 178px;
  padding: 15px 20px 13px;
  border: 0;
  background:
    radial-gradient(circle at 88% 20%, rgba(0, 196, 248, .09), transparent 27%),
    linear-gradient(105deg, #fff 0%, #fff 65%, rgba(0, 196, 248, .035) 100%);
  box-shadow: none;
}

body.ipm-catalog-view .ipm-archive__header::after {
  min-height: 98px;
  filter: none;
}

body.ipm-catalog-view .ipm-archive__eyebrow {
  margin-bottom: 5px;
}

body.ipm-catalog-view .ipm-archive__header h1 {
  font-size: clamp(30px, 2.8vw, 39px);
}

body.ipm-catalog-view .ipm-archive__header p {
  max-width: 560px;
  margin-top: 5px;
  line-height: 1.4;
}

body.ipm-catalog-view .ipm-archive__type-nav {
  gap: 7px;
  margin-top: 10px;
  border-top: 1px solid rgba(51, 8, 103, .07);
  padding-top: 10px;
}

body.ipm-catalog-view .ipm-archive__type-nav a {
  min-height: 33px;
  border-color: transparent;
  border-radius: 9px;
  background: transparent;
  box-shadow: none;
  font-size: 11px;
}

body.ipm-catalog-view .ipm-archive__type-nav a::before {
  display: none;
}

body.ipm-catalog-view .ipm-archive__type-nav a:hover,
body.ipm-catalog-view .ipm-archive__type-nav a:focus-visible {
  border-color: rgba(0, 196, 248, .2);
  background: rgba(0, 196, 248, .055);
}

body.ipm-catalog-view .ipm-archive__type-nav a[aria-current="page"] {
  border-color: transparent;
  background: var(--secondary);
  color: var(--white);
  box-shadow: none;
}

body.ipm-catalog-view .ipm-archive__trust-strip {
  display: none;
  margin-top: 0;
  border: 0;
  border-bottom: 1px solid rgba(51, 8, 103, .08);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.ipm-catalog-view .ipm-archive__trust-strip > span {
  min-height: 27px;
  padding: 3px 12px;
  font-size: 9.5px;
  font-weight: 600;
}

body.ipm-catalog-view .ipm-archive__trust-strip > span + span {
  border-left-color: rgba(51, 8, 103, .08);
}

body.ipm-catalog-view .ipm-archive__trust-strip svg {
  width: 13px;
  height: 13px;
}

body.ipm-catalog-view .ipm-archive__filters-form {
  position: relative;
  margin-top: 8px;
}

body.ipm-catalog-view .ipm-archive__toolbar {
  position: absolute;
  z-index: 6;
  top: 0;
  right: 0;
  display: block;
  width: 190px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

body.ipm-catalog-view .ipm-archive__toolbar .ipm-archive__field,
body.ipm-catalog-view .ipm-archive__toolbar .ip-btn {
  display: none;
}

body.ipm-catalog-view .ipm-archive__toolbar .ipm-archive__field:nth-child(2) {
  display: block;
}

body.ipm-catalog-view .ipm-archive__toolbar .ipm-archive__field select {
  min-height: 40px;
  padding-inline: 12px 34px;
  border-color: rgba(51, 8, 103, .12);
  border-radius: 9px;
  background-color: #fff;
  font-size: 12px;
  font-weight: 700;
}

body.ipm-catalog-view .ipm-archive__layout {
  display: block;
}

body.ipm-catalog-view .ipm-archive__filter {
  position: relative;
  z-index: 5;
  min-height: 40px;
  margin: 0;
}

body.ipm-catalog-view .ipm-archive__filter summary {
  min-width: 118px;
  min-height: 40px;
  padding-inline: 12px;
  border-color: rgba(51, 8, 103, .12);
  box-shadow: none;
  font-size: 12px;
}

body.ipm-catalog-view .ipm-archive__filter[open] summary {
  border-color: rgba(0, 196, 248, .55);
  background: #fff;
}

body.ipm-catalog-view .ipm-archive__filter-content {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px 18px;
  margin-top: 8px;
  padding: 15px;
  border-color: rgba(51, 8, 103, .1);
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(51, 8, 103, .045);
}

body.ipm-catalog-view .ipm-archive__filter-search {
  min-width: 0;
}

body.ipm-catalog-view .ipm-archive__filter-search label {
  position: static !important;
  width: auto !important;
  height: auto !important;
  margin-bottom: 8px;
  overflow: visible !important;
  clip: auto !important;
  white-space: normal !important;
}

body.ipm-catalog-view .ipm-archive__filter-search input {
  min-height: 40px;
}

body.ipm-catalog-view .ipm-archive__results {
  position: relative;
  margin-top: -40px;
  padding-top: 49px;
}

body.ipm-catalog-view .ipm-archive__results-meta {
  position: absolute;
  top: 3px;
  left: 50%;
  width: auto;
  min-height: 34px;
  margin: 0;
  padding: 0;
  justify-content: center;
  transform: translateX(-50%);
  color: var(--gray);
  font-size: 12px;
  white-space: nowrap;
}

body.ipm-catalog-view .ipm-archive__results-meta > span {
  display: none;
}

body.ipm-catalog-view .ipm-archive__results-meta strong {
  margin-right: 3px;
  color: var(--black);
  font-family: var(--ip-font-heading);
  font-weight: 700;
}

body.ipm-catalog-view .ipm-archive__filter-chips {
  position: absolute;
  z-index: 7;
  top: 4px;
  left: 130px;
  right: 210px;
  min-height: 32px;
  margin: 0;
  overflow: hidden;
  flex-wrap: nowrap;
}

body.ipm-catalog-view .ipm-archive__filter-chip {
  min-height: 30px;
  padding: 4px 9px;
  border-color: rgba(51, 8, 103, .11);
  font-size: 10px;
}

body.ipm-catalog-view .ipm-archive__product-grid {
  gap: 18px;
}

body.ipm-catalog-view .ipm-product-card {
  border-color: rgba(51, 8, 103, .09);
  border-radius: 14px;
  box-shadow: none;
  cursor: pointer;
}

body.ipm-catalog-view .ipm-product-card:hover {
  border-color: rgba(0, 196, 248, .32);
  box-shadow: 0 10px 24px rgba(51, 8, 103, .065);
  transform: translateY(-2px);
}

body.ipm-catalog-view .ipm-product-card__badge {
  top: 10px;
  left: 10px;
  min-height: 19px;
  padding: 0 7px;
  border-radius: 6px;
  font-size: 8px;
  letter-spacing: .035em;
}

body.ipm-catalog-view .ipm-product-card__badge--blue {
  background: var(--secondary);
  color: #fff;
}

body.ipm-catalog-view .ipm-product-card__badge--soft {
  background: rgba(0, 196, 248, .09);
  color: var(--secondary);
}

body.ipm-catalog-view .ipm-product-card__badge--out {
  background: #ECECEE;
  color: #666666;
}

body.ipm-catalog-view .ipm-product-card__media {
  height: 238px;
  aspect-ratio: auto;
  padding: 27px 12px 4px;
  background: #fff;
}

body.ipm-catalog-view .ipm-product-card__media img {
  width: 92%;
  height: 92%;
  max-width: 272px;
  max-height: 220px;
  object-fit: contain;
  transition: transform .2s ease;
}

body.ipm-catalog-view .ipm-product-card:hover .ipm-product-card__media img {
  transform: scale(1.03);
}

body.ipm-catalog-view .ipm-product-card__body {
  padding: 9px 13px 12px;
  border-top-color: rgba(51, 8, 103, .045);
}

body.ipm-catalog-view .ipm-product-card__body h3 {
  min-height: 37px;
  margin-bottom: 2px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
}

body.ipm-catalog-view .ipm-product-card__meta {
  min-height: 15px;
  margin-bottom: 6px;
  color: #666666;
  font-size: 10.5px;
  line-height: 1.35;
}

body.ipm-catalog-view .ipm-archive-card__specs {
  min-height: 23px;
  gap: 5px;
  margin: 0 0 7px;
}

body.ipm-catalog-view .ipm-archive-card__specs li {
  padding: 3px 7px;
  border-color: rgba(51, 8, 103, .08);
  background: #fff;
  color: var(--secondary);
  font-size: 9.5px;
}

body.ipm-catalog-view .ipm-product-card__price {
  min-height: 25px;
  gap: 6px;
  margin-bottom: 8px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.1;
}

body.ipm-catalog-view .ipm-product-card__price del {
  color: #666666;
  font-size: 12px;
  font-weight: 400;
  opacity: .72;
}

body.ipm-catalog-view .ipm-product-card__price ins {
  color: var(--black);
  font-size: 20px;
  font-weight: 700;
  text-decoration: none;
}

body.ipm-catalog-view .ipm-product-card__button {
  min-height: 34px;
  border-width: 1px;
  border-color: rgba(51, 8, 103, .42);
  border-radius: 9px;
  font-size: 11px;
}

body.ipm-catalog-view .ipm-product-card__button svg {
  width: 14px;
  height: 14px;
  transition: transform .2s ease;
}

body.ipm-catalog-view .ipm-product-card__button:hover,
body.ipm-catalog-view .ipm-product-card__button:focus-visible {
  border-color: #0A0F2D;
  background: #0A0F2D;
}

body.ipm-catalog-view .ipm-product-card__button:hover svg,
body.ipm-catalog-view .ipm-product-card__button:focus-visible svg {
  transform: translateX(3px);
}

@media (max-width: 1180px) {
  body.ipm-catalog-view .ipm-archive__filter-content {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body.ipm-catalog-view .ipm-product-card__media {
    height: 226px;
  }
}

@media (max-width: 900px) {
  body.ipm-catalog-view .ipm-archive__header {
    min-height: 168px;
    padding: 14px 16px 12px;
  }

  body.ipm-catalog-view .ipm-archive__header::after {
    min-height: 90px;
  }

  body.ipm-catalog-view .ipm-archive__type-nav {
    margin-top: 9px;
    padding-top: 8px;
  }

  body.ipm-catalog-view .ipm-archive__trust-strip {
    display: none;
  }

  body.ipm-catalog-view .ipm-archive__filter-content {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.ipm-catalog-view .ipm-product-card__media {
    height: 232px;
  }
}

@media (max-width: 640px) {
  body.ipm-catalog-view .ipm-archive__header {
    padding: 12px 14px 11px;
  }

  body.ipm-catalog-view .ipm-archive__header h1 {
    font-size: clamp(25px, 7.7vw, 30px);
  }

  body.ipm-catalog-view .ipm-archive__header p {
    max-width: 88%;
    font-size: 11.5px;
  }

  body.ipm-catalog-view .ipm-archive__type-nav a {
    min-height: 32px;
  }

  body.ipm-catalog-view .ipm-archive__filters-form {
    margin-top: 7px;
  }

  body.ipm-catalog-view .ipm-archive__toolbar {
    width: 122px;
  }

  body.ipm-catalog-view .ipm-archive__toolbar .ipm-archive__field select {
    min-height: 38px;
    padding-inline: 9px 26px;
    font-size: 10.5px;
  }

  body.ipm-catalog-view .ipm-archive__filter {
    min-height: 38px;
  }

  body.ipm-catalog-view .ipm-archive__filter summary {
    min-width: 100px;
    min-height: 38px;
    padding-inline: 10px;
    font-size: 11px;
  }

  body.ipm-catalog-view .ipm-archive__filter-content {
    grid-template-columns: 1fr;
  }

  body.ipm-catalog-view .ipm-archive__results {
    margin-top: -38px;
    padding-top: 47px;
  }

  body.ipm-catalog-view .ipm-archive__results-meta {
    top: 2px;
    font-size: 10.5px;
  }

  body.ipm-catalog-view .ipm-archive__filter-chips {
    position: static;
    min-height: 0;
    margin-bottom: 8px;
    overflow-x: auto;
  }

  body.ipm-catalog-view .ipm-product-card__media {
    height: 230px;
    padding-top: 24px;
  }

  body.ipm-catalog-view .ipm-product-card__media img {
    max-width: 278px;
    max-height: 214px;
  }

  body.ipm-catalog-view .ipm-product-card__body {
    padding-inline: 12px;
  }
}

body.ipm-catalog-view .ipm-archive__filter {
  top: auto;
}

body.ipm-catalog-view .ipm-archive__toolbar .ipm-archive__sort-field {
  display: block;
}

/* Merchandising hero - new-device archive */
.ipm-archive__hero-cta {
  display: none;
}

body.ipm-catalog-view .ipm-archive__header {
  grid-template-columns: minmax(0, 1fr) minmax(390px, .78fr);
  grid-template-areas:
    "eyebrow visual"
    "title visual"
    "description visual"
    "cta visual"
    "types types";
  min-height: 248px;
  padding: 22px 28px 15px;
  border: 1px solid #ECECEE;
  border-radius: 16px;
  background: #FFFFFF;
  box-shadow: 0 12px 30px rgba(51, 8, 103, .045);
}

body.ipm-catalog-view .ipm-archive__header::before {
  position: absolute;
  z-index: -2;
  top: 0;
  right: 0;
  bottom: 0;
  width: 46%;
  content: "";
  background: rgba(0, 196, 248, .055);
}

body.ipm-catalog-view .ipm-archive__header::after {
  position: absolute;
  z-index: -1;
  top: 7px;
  right: 12px;
  bottom: 55px;
  width: 46%;
  min-height: 0;
  background-position: center right;
  background-size: contain;
  filter: drop-shadow(0 18px 22px rgba(51, 8, 103, .1));
  transform: scale(1.15);
  transform-origin: center right;
}

body.ipm-catalog-view .ipm-archive__eyebrow {
  grid-area: eyebrow;
  align-self: end;
  margin-bottom: 7px;
}

body.ipm-catalog-view .ipm-archive__header h1 {
  grid-area: title;
  max-width: 680px;
  font-size: clamp(37px, 3.5vw, 49px);
  line-height: 1.01;
}

body.ipm-catalog-view .ipm-archive__header p {
  grid-area: description;
  max-width: 570px;
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.45;
}

body.ipm-catalog-view .ipm-archive__hero-cta {
  grid-area: cta;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  width: max-content;
  min-height: 42px;
  margin-top: 13px;
  padding: 0 18px;
  border-radius: 9px;
  background: linear-gradient(90deg, #330867 0%, #00C4F8 50%, #330867 100%);
  background-position: 0 50%;
  background-size: 220% 100%;
  color: #FFFFFF;
  font-family: Manrope, sans-serif;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  transition: background-position .7s ease, transform .2s ease;
}

body.ipm-catalog-view .ipm-archive__hero-cta:hover,
body.ipm-catalog-view .ipm-archive__hero-cta:focus-visible {
  background-position: 100% 50%;
  color: #FFFFFF;
  transform: translateY(-1px);
}

body.ipm-catalog-view .ipm-archive__hero-cta:focus-visible {
  outline: 3px solid rgba(0, 196, 248, .3);
  outline-offset: 3px;
}

body.ipm-catalog-view .ipm-archive__hero-cta svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .2s ease;
}

body.ipm-catalog-view .ipm-archive__hero-cta:hover svg,
body.ipm-catalog-view .ipm-archive__hero-cta:focus-visible svg {
  transform: translateX(3px);
}

body.ipm-catalog-view .ipm-archive__type-nav {
  grid-area: types;
  margin-top: 14px;
  padding-top: 11px;
  border-top-color: rgba(51, 8, 103, .08);
}

@media (max-width: 1180px) {
  body.ipm-catalog-view .ipm-archive__header {
    grid-template-columns: minmax(0, 1fr) minmax(300px, .62fr);
    min-height: 240px;
  }

  body.ipm-catalog-view .ipm-archive__header::after {
    width: 43%;
    transform: scale(1.08);
  }

  body.ipm-catalog-view .ipm-archive__type-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  body.ipm-catalog-view .ipm-archive__header {
    grid-template-columns: minmax(0, 1fr) minmax(220px, .5fr);
    min-height: 222px;
    padding: 18px 18px 13px;
  }

  body.ipm-catalog-view .ipm-archive__header::before {
    width: 42%;
  }

  body.ipm-catalog-view .ipm-archive__header::after {
    top: 5px;
    right: 4px;
    bottom: 51px;
    width: 42%;
    opacity: .92;
    transform: scale(1.05);
  }

  body.ipm-catalog-view .ipm-archive__header h1 {
    font-size: clamp(32px, 5vw, 40px);
  }

  body.ipm-catalog-view .ipm-archive__header p {
    max-width: 480px;
    font-size: 12.5px;
  }

  body.ipm-catalog-view .ipm-archive__hero-cta {
    min-height: 39px;
    margin-top: 10px;
    padding-inline: 15px;
    font-size: 11px;
  }
}

@media (max-width: 640px) {
  body.ipm-catalog-view .ipm-archive__header {
    display: block;
    min-height: 226px;
    padding: 14px 14px 12px;
  }

  body.ipm-catalog-view .ipm-archive__header::before {
    top: 0;
    right: 0;
    bottom: auto;
    width: 48%;
    height: 128px;
    background: rgba(0, 196, 248, .045);
  }

  body.ipm-catalog-view .ipm-archive__header::after {
    top: 6px;
    right: 2px;
    bottom: auto;
    width: 46%;
    height: 116px;
    opacity: .72;
    transform: scale(1.04);
  }

  body.ipm-catalog-view .ipm-archive__header h1 {
    max-width: 72%;
    font-size: clamp(27px, 8vw, 31px);
  }

  body.ipm-catalog-view .ipm-archive__header p {
    max-width: 64%;
    margin-top: 6px;
    font-size: 11px;
    line-height: 1.35;
  }

  body.ipm-catalog-view .ipm-archive__hero-cta {
    min-height: 37px;
    margin-top: 9px;
    padding-inline: 13px;
    font-size: 10.5px;
  }

  body.ipm-catalog-view .ipm-archive__type-nav {
    margin-top: 12px;
    padding-top: 9px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.ipm-catalog-view .ipm-archive__hero-cta,
  body.ipm-catalog-view .ipm-archive__hero-cta svg {
    transition: none;
  }

  body.ipm-catalog-view .ipm-archive__hero-cta:hover,
  body.ipm-catalog-view .ipm-archive__hero-cta:focus-visible,
  body.ipm-catalog-view .ipm-archive__hero-cta:hover svg,
  body.ipm-catalog-view .ipm-archive__hero-cta:focus-visible svg {
    transform: none;
  }
}

@media (min-width: 641px) {
  body.ipm-catalog-view .ipm-archive__header::after {
    width: 48%;
    background-position: center center;
    background-size: auto 145%;
  }
}

@media (min-width: 901px) {
  body.ipm-catalog-view .ipm-archive__header::after {
    background-size: auto 210%;
  }
}

@media (min-width: 641px) and (max-width: 900px) {
  body.ipm-catalog-view .ipm-archive__header::after {
    background-size: auto 170%;
  }
}

@media (min-width: 901px) {
  body.ipm-catalog-view .ipm-archive__header {
    min-height: 298px;
  }

  body.ipm-catalog-view .ipm-archive__header::after {
    top: 8px;
    bottom: 55px;
    background-size: auto 135%;
  }
}

@media (min-width: 901px) {
  body.ipm-catalog-view .ipm-archive__header::after {
    top: -8px;
    right: 0;
    bottom: auto;
    width: 100%;
    height: 210px;
    background-position: center;
    background-size: contain;
    transform: scale(1.06);
  }
}

@media (min-width: 641px) and (max-width: 900px) {
  body.ipm-catalog-view .ipm-archive__header::after {
    top: -5px;
    right: -3%;
    bottom: auto;
    width: 112%;
    height: 165px;
    background-position: center;
    background-size: contain;
    transform: scale(1.03);
  }
}

@media (max-width: 640px) {
  body.ipm-catalog-view--new .ipm-archive__header::after {
    right: -12px;
    width: 45%;
    background-image: url("../images/iprestige-new-devices-hero-transparent-v2.png");
    background-position: center;
    background-size: contain;
    transform: scale(1.05);
  }

  body.ipm-catalog-view .ipm-archive__header p {
    max-width: 55%;
  }
}


/* Shared retail layout: refurbished keeps its established green identity. */
body.ipm-catalog-view--refurbished .ipm-archive__header {
  background: #FFFFFF;
}

body.ipm-catalog-view--refurbished .ipm-archive__header::before {
  background: rgba(17, 168, 79, .07);
}

body.ipm-catalog-view--refurbished .ipm-archive__header::after {
  background-image: url("../images/felujitott-hero.png");
}

body.ipm-catalog-view--refurbished .ipm-archive__hero-cta {
  background: linear-gradient(90deg, #087443 0%, #11a84f 50%, #087443 100%);
  background-size: 220% 100%;
}

body.ipm-catalog-view--refurbished .ipm-product-card__badge--soft {
  background: var(--ipm-refurb-soft);
  color: var(--ipm-refurb);
}

body.ipm-catalog-view--refurbished .ipm-product-card__badge--blue {
  background: var(--ipm-refurb);
  color: var(--white);
}

body.ipm-catalog-view--refurbished .ipm-archive-card__specs li {
  border-color: var(--ipm-refurb-border);
  background: var(--ipm-refurb-soft);
  color: var(--ipm-refurb);
}

/* Responsive merchandising hero – full-surface colour and fluid product visual. */
@media (max-width: 900px) {
  body.ipm-catalog-view .ipm-archive__header {
    overflow: hidden;
    background:
      linear-gradient(135deg, rgba(0, 196, 248, .16) 0%, rgba(255, 255, 255, .96) 48%, rgba(51, 8, 103, .11) 100%);
  }

  body.ipm-catalog-view .ipm-archive__header::before {
    inset: 0;
    width: 100%;
    height: 100%;
    background:
      radial-gradient(circle at 83% 23%, rgba(0, 196, 248, .22), transparent 43%);
    opacity: 1;
  }

  body.ipm-catalog-view .ipm-archive__header::after {
    top: 14px;
    right: 12px;
    bottom: auto;
    width: min(46%, 330px);
    height: 168px;
    background-position: right center;
    background-size: contain;
    opacity: 1;
    filter: drop-shadow(0 14px 20px rgba(51, 8, 103, .12));
    transform: none;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 24%);
    mask-image: linear-gradient(to right, transparent 0%, #000 24%);
  }

  body.ipm-catalog-view--refurbished .ipm-archive__header {
    background:
      linear-gradient(135deg, rgba(231, 247, 237, .96) 0%, #FFFFFF 48%, rgba(17, 168, 79, .18) 100%);
  }

  body.ipm-catalog-view--refurbished .ipm-archive__header::before {
    background:
      radial-gradient(circle at 83% 22%, rgba(17, 168, 79, .24), transparent 44%);
  }
}

@media (min-width: 641px) and (max-width: 900px) {
  body.ipm-catalog-view .ipm-archive__header {
    grid-template-columns: minmax(0, 1fr) minmax(260px, .58fr);
    min-height: 248px;
    padding: 20px 20px 14px;
  }

  body.ipm-catalog-view .ipm-archive__header::after {
    grid-area: auto;
    top: 14px;
    right: 14px;
    width: clamp(250px, 42vw, 340px);
    height: 190px;
  }

  body.ipm-catalog-view .ipm-archive__header h1,
  body.ipm-catalog-view .ipm-archive__header p {
    max-width: 62%;
  }
}

@media (max-width: 640px) {
  body.ipm-catalog-view .ipm-archive__header {
    min-height: 242px;
    padding: 16px 14px 12px;
  }

  body.ipm-catalog-view .ipm-archive__header::before {
    inset: 0;
    width: 100%;
    height: 100%;
  }

  body.ipm-catalog-view .ipm-archive__header::after,
  body.ipm-catalog-view--new .ipm-archive__header::after {
    top: 10px;
    right: -4px;
    width: min(53%, 205px);
    height: clamp(136px, 40vw, 156px);
    background-position: right top;
    background-size: contain;
    opacity: 1;
    transform: none;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 27%);
    mask-image: linear-gradient(to right, transparent 0%, #000 27%);
  }

  body.ipm-catalog-view .ipm-archive__header h1 {
    max-width: 62%;
    font-size: clamp(27px, 8.1vw, 32px);
    line-height: 1.03;
  }

  body.ipm-catalog-view .ipm-archive__header p,
  body.ipm-catalog-view--new .ipm-archive__header p {
    max-width: 58%;
    min-height: 43px;
    font-size: 11px;
    line-height: 1.38;
  }

  body.ipm-catalog-view .ipm-archive__hero-cta {
    position: relative;
    z-index: 2;
    margin-top: 8px;
  }

  body.ipm-catalog-view .ipm-archive__type-nav {
    position: relative;
    z-index: 2;
    margin-top: 13px;
  }
}

/* Unified full-surface archive hero background. */
body.ipm-catalog-view .ipm-archive__header {
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(0, 196, 248, .14) 0%, rgba(255, 255, 255, .97) 47%, rgba(51, 8, 103, .11) 100%);
}

body.ipm-catalog-view .ipm-archive__header::before {
  inset: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 83% 24%, rgba(0, 196, 248, .2), transparent 44%);
  opacity: 1;
}

body.ipm-catalog-view--refurbished .ipm-archive__header {
  background:
    linear-gradient(135deg, rgba(231, 247, 237, .96) 0%, rgba(255, 255, 255, .98) 47%, rgba(17, 168, 79, .18) 100%);
}

body.ipm-catalog-view--refurbished .ipm-archive__header::before {
  background:
    radial-gradient(circle at 83% 23%, rgba(17, 168, 79, .24), transparent 45%);
}

@media (min-width: 901px) {
  body.ipm-catalog-view .ipm-archive__type-nav--scoped {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

/* Compact archive product cards v2 */
body.ipm-catalog-view .ipm-archive__header {
  grid-template-areas:
    "eyebrow visual"
    "title visual"
    "description visual"
    "types types";
  min-height: 226px;
}

/* Let compact mobile copy determine height; do not reserve a desktop CTA row. */
@media (max-width: 640px) {
  body.ipm-catalog-view .ipm-archive__header {
    min-height: 0;
    padding-bottom: 12px;
  }
}

body.ipm-catalog-view .ipm-archive__product-grid {
  gap: 14px;
}

body.ipm-catalog-view .ipm-product-card {
  border-radius: 18px;
  border-color: rgba(51, 8, 103, .1);
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 10px 26px rgba(51, 8, 103, .045);
}

body.ipm-catalog-view .ipm-product-card:hover {
  border-color: rgba(0, 196, 248, .3);
  box-shadow: 0 16px 34px rgba(51, 8, 103, .085);
}

body.ipm-catalog-view .ipm-product-card__media {
  height: clamp(172px, 15vw, 214px);
  padding: 25px 12px 5px;
  background:
    radial-gradient(circle at 50% 46%, rgba(0, 196, 248, .07), transparent 58%),
    #fff;
}

body.ipm-catalog-view .ipm-product-card__media img {
  width: 84%;
  height: 84%;
  max-width: 194px;
  max-height: 188px;
}

body.ipm-catalog-view .ipm-product-card__body {
  padding: 10px 12px 12px;
}

body.ipm-catalog-view .ipm-product-card__body h3 {
  display: -webkit-box;
  min-height: 35px;
  margin-bottom: 3px;
  overflow: hidden;
  font-size: 14px;
  line-height: 1.27;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

body.ipm-catalog-view .ipm-product-card__meta {
  min-height: 0;
  margin-bottom: 5px;
  font-size: 10px;
}

body.ipm-catalog-view .ipm-archive-card__specs {
  min-height: 0;
  gap: 4px;
  margin-bottom: 7px;
}

body.ipm-catalog-view .ipm-archive-card__specs li {
  padding: 3px 6px;
  font-size: 9px;
}

body.ipm-catalog-view .ipm-product-card__price {
  min-height: 0;
  margin-top: auto;
  margin-bottom: 8px;
  font-size: 18px;
}

body.ipm-catalog-view .ipm-product-card__price ins {
  font-size: 18px;
}

body.ipm-catalog-view .ipm-product-card__button {
  min-height: 36px;
  border: 0;
  background: linear-gradient(100deg, #330867 0%, #0879EE 62%, #00C4F8 100%);
  box-shadow: 0 7px 16px rgba(28, 111, 224, .12);
  color: #fff;
}

body.ipm-catalog-view .ipm-product-card__button:hover,
body.ipm-catalog-view .ipm-product-card__button:focus-visible {
  border-color: transparent;
  background: linear-gradient(100deg, #330867 0%, #0879EE 62%, #00C4F8 100%);
  box-shadow: 0 10px 20px rgba(28, 111, 224, .2);
  color: #fff;
}

@media (min-width: 901px) and (max-width: 1180px) {
  body.ipm-catalog-view .ipm-archive__header {
    min-height: 210px;
  }

  body.ipm-catalog-view .ipm-archive__product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  body.ipm-catalog-view .ipm-product-card__media {
    height: 172px;
  }
}

@media (min-width: 641px) and (max-width: 900px) {
  body.ipm-catalog-view .ipm-archive__header {
    min-height: 195px;
  }

  body.ipm-catalog-view .ipm-archive__product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }

  body.ipm-catalog-view .ipm-product-card__media {
    height: 158px;
    padding-top: 22px;
  }

  body.ipm-catalog-view .ipm-product-card__media img {
    max-width: 150px;
    max-height: 138px;
  }
}

@media (max-width: 640px) {
  body.ipm-catalog-view .ipm-archive__product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  body.ipm-catalog-view .ipm-product-card {
    border-radius: 14px;
  }

  body.ipm-catalog-view .ipm-product-card__media {
    height: 142px;
    padding: 22px 8px 4px;
  }

  body.ipm-catalog-view .ipm-product-card__media img {
    width: 88%;
    height: 88%;
    max-width: 132px;
    max-height: 122px;
  }

  body.ipm-catalog-view .ipm-product-card__body {
    padding: 9px 9px 10px;
  }

  body.ipm-catalog-view .ipm-product-card__body h3 {
    min-height: 46px;
    font-size: 12.5px;
    line-height: 1.22;
    -webkit-line-clamp: 3;
  }

  body.ipm-catalog-view .ipm-product-card__meta {
    font-size: 9px;
  }

  body.ipm-catalog-view .ipm-archive-card__specs {
    align-content: flex-start;
  }

  body.ipm-catalog-view .ipm-archive-card__specs li {
    padding: 2px 5px;
    font-size: 8px;
  }

  body.ipm-catalog-view .ipm-product-card__price,
  body.ipm-catalog-view .ipm-product-card__price ins {
    font-size: 15px;
    line-height: 1.15;
  }

  body.ipm-catalog-view .ipm-product-card__price del {
    font-size: 10px;
  }

  body.ipm-catalog-view .ipm-product-card__button {
    min-height: 34px;
    gap: 7px;
    padding-inline: 8px;
    font-size: 10px;
  }
}

/* Hero visual containment after CTA removal */
body.ipm-catalog-view .ipm-archive__header::after {
  top: 10px;
  right: 16px;
  bottom: 54px;
  width: 42%;
  transform: scale(1);
}

@media (max-width: 1180px) {
  body.ipm-catalog-view .ipm-archive__header::after {
    top: 9px;
    right: 10px;
    bottom: 51px;
    width: 38%;
    transform: scale(.94);
  }
}

@media (max-width: 640px) {
  body.ipm-catalog-view .ipm-archive__header::after {
    top: 5px;
    right: 3px;
    bottom: auto;
    width: 41%;
    min-height: 101px;
    transform: scale(.96);
  }
}

/* Hero visual explicit responsive width */
body.ipm-catalog-view .ipm-archive__header::after {
  width: clamp(300px, 31vw, 420px);
}

@media (max-width: 1180px) {
  body.ipm-catalog-view .ipm-archive__header::after {
    width: clamp(260px, 31vw, 340px);
  }
}

@media (max-width: 900px) {
  body.ipm-catalog-view .ipm-archive__header::after {
    width: clamp(220px, 30vw, 280px);
  }
}

@media (max-width: 640px) {
  body.ipm-catalog-view .ipm-archive__header::after {
    width: 155px;
  }
}

/* Keep hero artwork above device navigation */
body.ipm-catalog-view .ipm-archive__header::after {
  bottom: 70px;
}

@media (max-width: 1180px) {
  body.ipm-catalog-view .ipm-archive__header::after {
    bottom: 69px;
  }
}

@media (max-width: 900px) {
  body.ipm-catalog-view .ipm-archive__header::after {
    bottom: 62px;
  }
}

@media (max-width: 640px) {
  body.ipm-catalog-view .ipm-archive__header::after {
    bottom: auto;
  }
}

/* Five-column wide archive density */
@media (min-width: 1181px) {
  body.ipm-catalog-view .ipm-archive__product-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  body.ipm-catalog-view .ipm-product-card__media {
    height: 190px;
  }

  body.ipm-catalog-view .ipm-product-card__media img {
    max-width: 174px;
    max-height: 166px;
  }
}

/* Legible hero device navigation panel */
body.ipm-catalog-view .ipm-archive__type-nav {
  position: relative;
  z-index: 3;
  margin-top: 10px;
  padding: 6px;
  border: 1px solid rgba(51, 8, 103, .07);
  border-radius: 11px;
  background: rgba(255, 255, 255, .84);
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
}

/* Image-led archive cards: shared proportions with the homepage featured cards.
 * Four desktop columns, three tablet columns and a two-column mobile grid.
 * Keep catalog queries, prices and variation links owned by the PHP template.
 */
body.ipm-catalog-view .ipm-archive__product-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

body.ipm-catalog-view .ipm-archive-card {
  --ipm-archive-cta-start: var(--secondary);
  --ipm-archive-cta-middle: var(--primary);
  --ipm-archive-cta-size: 220%;
  --ipm-archive-cta-shadow: rgba(0, 196, 248, .22);
  --ipm-archive-cta-focus: var(--primary);
  border: 1px solid var(--light-silver);
  border-radius: var(--ip-radius-card, 16px);
  background: var(--white);
  box-shadow: 0 4px 14px rgba(51, 8, 103, .035);
}

body.ipm-catalog-view .ipm-archive-card--refurbished {
  --ipm-archive-cta-start: #06452f;
  --ipm-archive-cta-middle: #16864b;
  --ipm-archive-cta-size: 200%;
  --ipm-archive-cta-shadow: rgba(8, 116, 67, .18);
  --ipm-archive-cta-focus: #087443;
}

body.ipm-catalog-view .ipm-archive-card:hover {
  border-color: var(--ipm-archive-cta-focus);
  box-shadow: 0 10px 24px rgba(51, 8, 103, .07);
  transform: translateY(-2px);
}

body.ipm-catalog-view .ipm-archive-card__labels {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  min-height: 31px;
  padding: 9px 12px 0;
}

body.ipm-catalog-view .ipm-archive-card .ipm-product-card__badge {
  position: static;
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 2px 7px;
  border: 1px solid rgba(51, 8, 103, .14);
  border-radius: var(--ip-radius-button, 9px);
  background: rgba(51, 8, 103, .07);
  color: var(--secondary);
  font-family: var(--ip-font-heading);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
}

body.ipm-catalog-view .ipm-archive-card .ipm-product-card__badge--refurbished,
body.ipm-catalog-view .ipm-archive-card .ipm-product-card__badge--soft {
  border-color: rgba(8, 116, 67, .2);
  background: rgba(8, 116, 67, .1);
  color: #075d3b;
}

body.ipm-catalog-view .ipm-archive-card .ipm-product-card__badge--blue {
  border-color: var(--secondary);
  background: var(--secondary);
  color: var(--white);
}

body.ipm-catalog-view .ipm-archive-card .ipm-product-card__badge--out {
  border-color: var(--light-silver);
  background: rgba(102, 102, 102, .07);
  color: var(--gray);
}

body.ipm-catalog-view .ipm-archive-card .ipm-product-card__media {
  height: clamp(260px, 22vw, 310px);
  min-height: 0;
  aspect-ratio: auto;
  padding: 8px 16px;
  overflow: hidden;
  background: var(--white);
}

body.ipm-catalog-view .ipm-archive-card .ipm-product-card__media img {
  width: 100%;
  height: 100%;
  max-width: 280px;
  max-height: 280px;
  object-fit: contain;
  transform: none;
}

body.ipm-catalog-view .ipm-archive-card:hover .ipm-product-card__media img {
  transform: scale(1.025);
}

body.ipm-catalog-view .ipm-archive-card .ipm-product-card__body {
  padding: 8px 16px 14px;
  border-top: 0;
}

body.ipm-catalog-view .ipm-archive-card .ipm-product-card__body h3 {
  order: 0;
  min-height: 2.56em;
  margin: 0 0 6px;
  font-family: var(--ip-font-heading);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.28;
  -webkit-line-clamp: 2;
}

body.ipm-catalog-view .ipm-archive-card .ipm-product-card__meta {
  order: 1;
  min-height: 0;
  margin: 0 0 6px;
  color: var(--gray);
  font-size: 11px;
  line-height: 1.35;
}

body.ipm-catalog-view .ipm-archive-card__specs {
  order: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  min-height: 0;
  gap: 5px;
  margin: 1px 0 7px;
  padding: 0;
  border: 0;
}

body.ipm-catalog-view .ipm-archive-card__spec {
  flex: 0 1 auto;
  width: max-content;
  max-width: calc(50% - 3px);
  min-width: 0;
  padding: 4px 6px;
  border: 1px solid rgba(51, 8, 103, .08);
  border-radius: var(--ip-radius-button, 9px);
  background: rgba(51, 8, 103, .035);
}

/* Keep attribute names available to screen readers, but show only values. */
body.ipm-catalog-view .ipm-archive-card__spec dt {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

body.ipm-catalog-view .ipm-archive-card__spec dd {
  margin: 0;
  padding: 0;
  color: var(--black);
  font-family: var(--ip-font-round);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

body.ipm-catalog-view .ipm-archive-card__decision {
  order: 3;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px 8px;
  min-height: 0;
  margin-bottom: 6px;
}

body.ipm-catalog-view .ipm-archive-card__rating {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 0;
  margin: 0;
  color: var(--primary);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
}

body.ipm-catalog-view .ipm-archive-card__variants {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 7px;
  border: 1px solid var(--light-silver);
  border-radius: 999px;
  background: var(--white);
  color: var(--secondary);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}

body.ipm-catalog-view .ipm-archive-card__sku {
  order: 4;
  margin: 0 0 6px;
  color: var(--gray);
  font-size: 10px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

body.ipm-catalog-view .ipm-archive-card .ipm-product-card__price {
  order: 5;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 7px;
  min-height: 26px;
  margin: auto 0 8px;
  padding-top: 4px;
  color: var(--black);
  font-size: 22px;
  font-weight: 750;
  line-height: 1.16;
}

body.ipm-catalog-view .ipm-archive-card .ipm-product-card__price :where(bdi, .amount, strong, ins) {
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
}

body.ipm-catalog-view .ipm-archive-card .ipm-product-card__price .amount {
  white-space: nowrap;
}

body.ipm-catalog-view .ipm-archive-card .ipm-product-card__price del,
body.ipm-catalog-view .ipm-archive-card .ipm-product-card__price del :where(bdi, .amount) {
  color: var(--gray);
  font-size: 13px;
  font-weight: 400;
}

body.ipm-catalog-view .ipm-archive-card__unavailable-price {
  color: var(--gray);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
}

body.ipm-catalog-view .ipm-archive-card__availability {
  order: 6;
  display: grid;
  gap: 2px;
  min-height: 0;
  margin-bottom: 8px;
  padding-top: 0;
  border-top: 0;
}

body.ipm-catalog-view .ipm-archive-card__availability strong {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 5px;
  max-width: 100%;
  min-height: 22px;
  padding: 2px 6px;
  border: 1px solid rgba(8, 116, 67, .15);
  border-radius: var(--ip-radius-button, 9px);
  background: rgba(8, 116, 67, .08);
  color: #075d3b;
  font-family: var(--ip-font-heading);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
}

body.ipm-catalog-view .ipm-archive-card__availability strong::before {
  position: static;
  flex: 0 0 6px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #087443;
  content: "";
}

body.ipm-catalog-view .ipm-archive-card__availability span {
  color: var(--gray);
  font-family: var(--ip-font-round);
  font-size: 10px;
  line-height: 1.3;
}

body.ipm-catalog-view .ipm-archive-card__availability.is-unavailable strong,
body.ipm-catalog-view .ipm-archive-card__availability.is-backorder strong {
  border-color: var(--light-silver);
  background: rgba(102, 102, 102, .07);
  color: var(--gray);
}

body.ipm-catalog-view .ipm-archive-card__availability.is-unavailable strong::before,
body.ipm-catalog-view .ipm-archive-card__availability.is-backorder strong::before {
  background: var(--gray);
}

body.ipm-catalog-view .ipm-archive-card .ipm-product-card__button {
  order: 7;
  min-height: 44px;
  justify-content: space-between;
  gap: 8px;
  padding: 0 14px;
  border: 0;
  border-radius: var(--ip-radius-button, 9px);
  background: linear-gradient(90deg, var(--ipm-archive-cta-start) 0%, var(--ipm-archive-cta-middle) 50%, var(--ipm-archive-cta-start) 100%);
  background-size: var(--ipm-archive-cta-size) 100%;
  background-position: 0% 50%;
  box-shadow: none;
  color: var(--white);
  font-family: var(--ip-font-heading);
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  transition: background-position .7s ease, transform .25s ease, box-shadow .25s ease;
}

body.ipm-catalog-view .ipm-archive-card .ipm-product-card__button:is(:hover, :focus-visible) {
  background-position: 100% 50%;
  color: var(--white);
  box-shadow: 0 10px 22px var(--ipm-archive-cta-shadow);
  transform: translateY(-2px);
}

body.ipm-catalog-view .ipm-archive-card .ipm-product-card__button:focus-visible {
  outline: 3px solid var(--ipm-archive-cta-focus);
  outline-offset: 3px;
}

body.ipm-catalog-view .ipm-archive-card .ipm-product-card__button:active {
  box-shadow: none;
  transform: none;
}

@media (min-width: 641px) and (max-width: 1180px) {
  body.ipm-catalog-view .ipm-archive__product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }

  body.ipm-catalog-view .ipm-archive-card .ipm-product-card__media {
    height: clamp(218px, 26vw, 280px);
  }

  body.ipm-catalog-view .ipm-archive-card .ipm-product-card__body h3 {
    font-size: 17px;
  }

  body.ipm-catalog-view .ipm-archive-card .ipm-product-card__price {
    font-size: 20px;
  }
}

@media (max-width: 640px) {
  body.ipm-catalog-view .ipm-archive__product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  body.ipm-catalog-view .ipm-archive-card__labels {
    min-height: 28px;
    padding: 7px 9px 0;
    gap: 4px;
  }

  body.ipm-catalog-view .ipm-archive-card .ipm-product-card__badge {
    min-height: 21px;
    padding: 2px 6px;
    font-size: 10px;
  }

  body.ipm-catalog-view .ipm-archive-card .ipm-product-card__media {
    height: clamp(156px, 43vw, 232px);
    padding: 5px 8px;
  }

  body.ipm-catalog-view .ipm-archive-card .ipm-product-card__body {
    padding: 9px 10px 10px;
  }

  body.ipm-catalog-view .ipm-archive-card .ipm-product-card__body h3 {
    min-height: 2.6em;
    font-size: 14px;
    line-height: 1.3;
    -webkit-line-clamp: 3;
  }

  body.ipm-catalog-view .ipm-archive-card .ipm-product-card__meta {
    font-size: 10px;
  }

  body.ipm-catalog-view .ipm-archive-card__spec {
    padding: 4px 5px;
  }

  body.ipm-catalog-view .ipm-archive-card__spec dt {
    font-size: 10px;
  }

  body.ipm-catalog-view .ipm-archive-card__spec dd {
    font-size: 11px;
  }

  body.ipm-catalog-view .ipm-archive-card__sku {
    font-size: 9px;
  }

  body.ipm-catalog-view .ipm-archive-card .ipm-product-card__price {
    padding-top: 6px;
    font-size: 17px;
  }

  body.ipm-catalog-view .ipm-archive-card .ipm-product-card__price del,
  body.ipm-catalog-view .ipm-archive-card .ipm-product-card__price del :where(bdi, .amount) {
    font-size: 11px;
  }

  body.ipm-catalog-view .ipm-archive-card__availability {
    min-height: 22px;
    margin-bottom: 8px;
  }

  body.ipm-catalog-view .ipm-archive-card__availability strong {
    min-height: 21px;
    font-size: 10px;
    padding: 2px 5px;
  }

  body.ipm-catalog-view .ipm-archive-card__availability span {
    display: none;
  }

  body.ipm-catalog-view .ipm-archive-card .ipm-product-card__button {
    padding-inline: 10px;
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.ipm-catalog-view .ipm-archive-card,
  body.ipm-catalog-view .ipm-archive-card .ipm-product-card__media img,
  body.ipm-catalog-view .ipm-archive-card .ipm-product-card__button {
    transition: none;
  }

  body.ipm-catalog-view .ipm-archive-card:hover,
  body.ipm-catalog-view .ipm-archive-card:hover .ipm-product-card__media img,
  body.ipm-catalog-view .ipm-archive-card .ipm-product-card__button:is(:hover, :focus-visible) {
    transform: none;
  }
}

/* AJAX feedback belongs to the archive, without affecting other theme forms. */
.ipm-archive .ipm-archive__results-meta {
  scroll-margin-top: 120px;
}

.ipm-archive .ipm-archive__error {
  margin: 0 0 16px;
  padding: 16px;
  border: 1px solid var(--secondary);
  border-radius: var(--ip-radius-button, 9px);
  background: var(--white);
  color: var(--black);
}

.ipm-archive .ipm-archive__error p {
  margin: 0 0 8px;
}

.ipm-archive .ipm-archive__error :is(button, a) {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-right: 16px;
  padding: 8px 12px;
  border: 1px solid var(--light-silver);
  border-radius: var(--ip-radius-button, 9px);
  background: var(--white);
  color: var(--secondary);
  font: inherit;
}

.ipm-archive .ipm-archive__error :is(button, a):focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

/* Archive readability pass, 2026-08-31.
 * Match the homepage's readable minimums without altering catalog data or CTAs.
 * This file is enqueued for product archives only.
 */
body .ipm-archive :is(
  .ipm-archive__breadcrumb, .ipm-archive__eyebrow,
  .ipm-archive__field label, .ipm-archive__filter-title,
  .ipm-archive__category-count, .ipm-archive__active-filter,
  .ipm-archive__filter-chip, .ipm-archive__trust-strip > span,
  .ipm-archive-card .ipm-product-card__badge,
  .ipm-archive-card .ipm-product-card__meta,
  .ipm-archive-card__spec dd, .ipm-archive-card__specs li,
  .ipm-archive-card__rating, .ipm-archive-card__rating-count,
  .ipm-archive-card__variants, .ipm-archive-card__sku,
  .ipm-archive-card__sku span, .ipm-archive-card__unavailable-price,
  .ipm-archive-card__availability strong, .ipm-archive-card__availability span
) {
  font-size: 14px;
  line-height: 1.4;
}
body .ipm-archive :is(
  .ipm-archive__header p, .ipm-archive__empty p, .ipm-archive__error p,
  .ipm-archive__results-meta, .ipm-archive__category-option,
  .ipm-archive__stock-option, .ipm-archive__attribute-option,
  .ipm-archive__filter summary, .ipm-archive__clear,
  .ipm-archive__type-nav a, .ipm-archive__hero-cta,
  .ipm-archive__filter-actions .ip-btn,
  .ipm-archive-card .ipm-product-card__button,
  .ipm-archive__pagination a, .ipm-archive__pagination span
) {
  font-size: 16px;
  line-height: 1.5;
}
body .ipm-archive .ipm-archive__field :is(input, select),
body .ipm-archive .ipm-archive__toolbar .ipm-archive__field select,
body .ipm-archive .ipm-archive__filter input[type="number"] {
  min-height: 46px;
  padding-block: 8px;
  font-size: 16px;
  line-height: 1.4;
}
body .ipm-archive :is(.ipm-archive__type-nav a, .ipm-archive__hero-cta,
  .ipm-archive__filter summary, .ipm-archive__filter-actions .ip-btn,
  .ipm-archive-card .ipm-product-card__button) {
  min-height: 44px;
  padding-block: 10px;
}
body .ipm-archive .ipm-archive__hero-cta {
  max-width: 100%;
  white-space: normal;
}
body .ipm-archive .ipm-archive__type-nav a { white-space: normal; text-align: center; }
body .ipm-archive .ipm-archive__pagination :is(a, span) {
  min-width: 44px;
  min-height: 44px;
  height: auto;
  padding-block: 8px;
}
body .ipm-archive :is(.ipm-archive__category-option,
  .ipm-archive__stock-option, .ipm-archive__attribute-option) {
  min-height: 44px;
  padding-block: 8px;
}
body .ipm-archive :is(.ipm-archive__category-option,
  .ipm-archive__attribute-option) > span:nth-child(2) {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  overflow-wrap: anywhere;
}
body .ipm-archive .ipm-archive__category-count { opacity: 1; }
body .ipm-archive .ipm-archive__filter-chip {
  min-height: 44px;
  max-width: 100%;
  padding-block: 8px;
  text-align: left;
  white-space: normal;
  overflow-wrap: anywhere;
}
body .ipm-archive .ipm-archive__filter-chip::after { flex-shrink: 0; }
body .ipm-archive .ipm-archive__active-filter { padding-block: 4px; }
body .ipm-archive .ipm-archive-card .ipm-product-card__badge,
body .ipm-archive .ipm-archive-card__availability strong,
body .ipm-archive .ipm-archive-card__variants {
  min-height: 28px;
  max-width: 100%;
  padding: 4px 7px;
  white-space: normal;
}
body .ipm-archive .ipm-archive-card__labels { align-content: start; }
body .ipm-archive .ipm-archive-card__spec { max-width: 100%; }
body .ipm-archive .ipm-archive-card__specs li,
body .ipm-archive .ipm-archive-card__sku {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  overflow-wrap: anywhere;
}
body .ipm-archive .ipm-archive-card .ipm-product-card__body h3 {
  line-height: 1.4;
  min-height: 2.8em;
  overflow-wrap: anywhere;
}
body .ipm-archive .ipm-archive-card .ipm-product-card__price {
  gap: 5px 8px;
  line-height: 1.35;
}
body .ipm-archive .ipm-archive-card .ipm-product-card__price del,
body .ipm-archive .ipm-archive-card .ipm-product-card__price del :where(bdi, .amount) {
  font-size: 14px;
  line-height: 1.4;
  opacity: 1;
}
body .ipm-archive .ipm-archive-card .ipm-product-card__price del {
  flex-basis: 100%;
}
body .ipm-archive .ipm-archive-card .ipm-product-card__price :is(ins, .woocommerce-Price-currencySymbol) {
  font-size: inherit;
}
body .ipm-archive .ipm-archive-card .ipm-product-card__button {
  white-space: normal;
  overflow-wrap: anywhere;
}
body .ipm-archive .ipm-product-card__button svg { flex-shrink: 0; }

/* The result count gets its own row; larger text cannot collide with sorting. */
body.ipm-catalog-view .ipm-archive__toolbar { width: 240px; }
body.ipm-catalog-view .ipm-archive__filter { min-height: 46px; }
body.ipm-catalog-view .ipm-archive__results { margin-top: 0; padding-top: 12px; }
body.ipm-catalog-view .ipm-archive__results-meta {
  position: static;
  width: auto;
  min-height: 0;
  margin-bottom: 12px;
  justify-content: flex-start;
  flex-wrap: wrap;
  transform: none;
  white-space: normal;
}

@media (min-width: 901px) {
  body.ipm-catalog-view.ipm-filter-drawer-ready .ipm-archive__results-meta {
    min-height: 76px;
  }

  body.ipm-catalog-view .ipm-archive__filter-toggle {
    width: 240px;
  }
}

/* The same header/footer readability improvements as on the homepage. */
body:is(.ipm-catalog-view, .post-type-archive-product, .tax-product_cat, .tax-product_tag)
  .ipm-site-header--search .ipm-nav__list > li > a { font-size: 15px; }
body:is(.ipm-catalog-view, .post-type-archive-product, .tax-product_cat, .tax-product_tag)
  .ipm-nav__list .sub-menu a { font-size: 16px; }
body:is(.ipm-catalog-view, .post-type-archive-product, .tax-product_cat, .tax-product_tag)
  .ipm-language-switcher :is(summary, a, small) { font-size: 14px; }
body:is(.ipm-catalog-view, .post-type-archive-product, .tax-product_cat, .tax-product_tag)
  .ipm-cart-count { font-size: 14px; min-width: 22px; height: 22px; }
body:is(.ipm-catalog-view, .post-type-archive-product, .tax-product_cat, .tax-product_tag)
  :is(.ipm-footer-main__description, .ipm-footer-main__description p,
  .ipm-footer__menu a, .ipm-footer-contact a, .ipm-skip-link) { font-size: 16px; line-height: 1.5; }
body:is(.ipm-catalog-view, .post-type-archive-product, .tax-product_cat, .tax-product_tag)
  .ipm-footer-legal p { font-size: 14px; line-height: 1.5; }

@media (min-width: 1021px) and (max-width: 1180px) {
  body.ipm-catalog-view .ipm-site-header--search .ipm-site-header__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    row-gap: 10px;
    padding-block: 16px;
  }
  body.ipm-catalog-view .ipm-site-header--search .ipm-primary-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    min-width: 0;
    justify-self: center;
  }
  body.ipm-catalog-view .ipm-site-header--search .ipm-nav__list { justify-content: center; gap: 20px; }
  body.ipm-catalog-view .ipm-site-header--search .ipm-header-actions { grid-column: 2; grid-row: 1; }
}
@media (max-width: 1020px) {
  body.ipm-catalog-view .ipm-site-header--search .ipm-nav__list > li > a,
  body.ipm-catalog-view .ipm-mobile-nav-actions a { font-size: 16px; }
}
@media (max-width: 900px) {
  body .ipm-archive .ipm-archive__type-nav a { white-space: nowrap; }
}
@media (max-width: 640px) {
  body .ipm-archive .ipm-archive-card .ipm-product-card__body h3 {
    font-size: 16px;
    min-height: 4.2em;
    -webkit-line-clamp: 3;
  }
  body .ipm-archive .ipm-archive-card .ipm-product-card__price { font-size: 18px; }
  body.ipm-catalog-view .ipm-archive__toolbar {
    position: static;
    width: 100%;
    margin-bottom: 10px;
  }
  body.ipm-catalog-view .ipm-archive__filter summary { width: 100%; }
}


/* Archive filter drawer */
body.ipm-filter-drawer-open {
  overflow: hidden;
  overscroll-behavior: none;
}

body.ipm-catalog-view .ipm-archive__filter-toggle {
  display: inline-flex;
  min-width: 126px;
  min-height: 42px;
  padding: 0 15px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid rgba(51, 8, 103, .18);
  border-radius: var(--ip-radius-button);
  background: var(--white);
  box-shadow: 0 5px 16px rgba(51, 8, 103, .035);
  color: var(--secondary);
  font-family: var(--ip-font-heading);
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  transition: border-color .2s ease, background-color .2s ease, color .2s ease;
}

body.ipm-catalog-view .ipm-archive__filter-toggle:hover {
  border-color: var(--primary);
  background: rgba(0, 196, 248, .045);
  color: var(--black);
}

body.ipm-catalog-view .ipm-archive__filter-toggle:focus-visible,
body.ipm-catalog-view .ipm-archive__filter-close:focus-visible {
  outline: 3px solid rgba(0, 196, 248, .3);
  outline-offset: 2px;
}

body.ipm-catalog-view .ipm-archive__filter-toggle svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: var(--primary);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body.ipm-catalog-view.ipm-filter-drawer-ready .ipm-archive__toolbar {
  grid-template-columns: minmax(160px, 196px) auto auto;
  justify-content: end;
}

body.ipm-catalog-view .ipm-archive__filter-overlay {
  position: fixed;
  z-index: 10000;
  inset: 0;
  visibility: hidden;
  background: rgba(10, 15, 45, .34);
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease, visibility 0s linear .22s;
}

body.ipm-catalog-view .ipm-archive__filter-overlay.is-visible {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transition-delay: 0s;
}

body.ipm-catalog-view .ipm-archive__filter {
  position: fixed;
  z-index: 10010;
  top: 0;
  bottom: auto;
  left: 0;
  display: flex;
  width: min(410px, calc(100vw - 16px));
  height: 100vh;
  height: 100dvh;
  margin: 0;
  padding: 0;
  flex-direction: column;
  overflow: hidden;
  border: 0;
  border-right: 1px solid var(--light-silver);
  border-radius: 0 var(--ip-radius-card) var(--ip-radius-card) 0;
  background: var(--white);
  box-shadow: 18px 0 44px rgba(10, 15, 45, .16);
  visibility: hidden;
  pointer-events: none;
  transform: translateX(calc(-100% - 24px));
  transition: transform .24s ease, visibility 0s linear .24s;
}

body.ipm-catalog-view .ipm-archive__filter.is-open {
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0);
  transition-delay: 0s;
}

body.ipm-catalog-view .ipm-archive__filter-header {
  display: flex;
  min-height: 72px;
  padding: max(14px, env(safe-area-inset-top)) 18px 14px 22px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--light-silver);
  background: var(--white);
}

body.ipm-catalog-view .ipm-archive__filter-header h2 {
  margin: 0;
  color: var(--black);
  font-family: var(--ip-font-heading);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.1;
}

body.ipm-catalog-view .ipm-archive__filter-close {
  display: inline-grid;
  width: 42px;
  height: 42px;
  padding: 0;
  flex: 0 0 42px;
  place-items: center;
  border: 1px solid var(--light-silver);
  border-radius: var(--ip-radius-button);
  background: var(--white);
  color: var(--secondary);
  cursor: pointer;
  transition: border-color .2s ease, background-color .2s ease, color .2s ease;
}

body.ipm-catalog-view .ipm-archive__filter-close:hover {
  border-color: var(--primary);
  background: rgba(0, 196, 248, .045);
  color: var(--black);
}

body.ipm-catalog-view .ipm-archive__filter-close svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

body.ipm-catalog-view .ipm-archive__filter-content {
  display: block;
  min-height: 0;
  margin: 0;
  padding: 20px;
  flex: 1 1 auto;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 0;
  border-radius: 0;
  background: var(--white);
  box-shadow: none;
  scrollbar-width: thin;
  scrollbar-color: var(--light-silver) transparent;
}

body.ipm-catalog-view .ipm-archive__filter-content .ipm-archive__filter-group,
body.ipm-catalog-view .ipm-archive__filter-content .ipm-archive__attribute-group {
  margin: 0;
  padding: 0;
  border: 0;
}

body.ipm-catalog-view .ipm-archive__filter-content .ipm-archive__filter-group + .ipm-archive__filter-group,
body.ipm-catalog-view .ipm-archive__filter-content .ipm-archive__attribute-group {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--light-silver);
}

body.ipm-catalog-view .ipm-archive__filter-content .ipm-archive__filter-search {
  margin: 0;
  padding: 0 0 18px;
  border: 0;
  border-bottom: 1px solid var(--light-silver);
}

body.ipm-catalog-view .ipm-archive__filter-content .ipm-archive__attribute-list {
  max-height: 220px;
}

body.ipm-catalog-view .ipm-archive__filter-actions {
  position: sticky;
  z-index: 2;
  bottom: -20px;
  display: grid;
  margin: 22px -20px -20px;
  padding: 14px 20px max(14px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--light-silver);
  background: var(--white);
  box-shadow: 0 -12px 24px rgba(10, 15, 45, .06);
}

body.ipm-catalog-view .ipm-archive__layout {
  display: block;
}

body.ipm-catalog-view .ipm-archive__results {
  width: 100%;
}

@media (max-width: 900px) {
  body.ipm-catalog-view.ipm-filter-drawer-ready .ipm-archive__toolbar {
    position: sticky;
    z-index: 80;
    top: 0;
    grid-template-columns: minmax(120px, 1fr) auto auto;
    width: 100%;
    margin-bottom: 10px;
    padding: 8px;
    border: 1px solid var(--light-silver);
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 8px 22px rgba(51, 8, 103, .06);
    backdrop-filter: blur(10px);
  }

  body.ipm-catalog-view.ipm-filter-drawer-ready .ipm-archive__sort-field {
    grid-column: auto;
  }
}

@media (max-width: 640px) {
  body.ipm-catalog-view .ipm-archive__filter {
    width: calc(100vw - 16px);
    border-radius: 0 14px 14px 0;
  }

  body.ipm-catalog-view .ipm-archive__filter-header {
    min-height: 64px;
    padding-right: 14px;
    padding-left: 18px;
  }

  body.ipm-catalog-view .ipm-archive__filter-header h2 {
    font-size: 20px;
  }

  body.ipm-catalog-view .ipm-archive__filter-content {
    padding: 16px;
  }

  body.ipm-catalog-view .ipm-archive__filter-actions {
    bottom: -16px;
    margin: 20px -16px -16px;
    padding-right: 16px;
    padding-bottom: max(14px, env(safe-area-inset-bottom));
    padding-left: 16px;
  }

  body.ipm-catalog-view.ipm-filter-drawer-ready .ipm-archive__toolbar {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  body.ipm-catalog-view.ipm-filter-drawer-ready .ipm-archive__sort-field {
    grid-column: 1 / -1;
  }

  body.ipm-catalog-view .ipm-archive__filter-toggle,
  body.ipm-catalog-view.ipm-filter-drawer-ready .ipm-archive__toolbar > .ip-btn {
    width: 100%;
    min-width: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.ipm-catalog-view .ipm-archive__filter,
  body.ipm-catalog-view .ipm-archive__filter-overlay,
  body.ipm-catalog-view .ipm-archive__filter-toggle,
  body.ipm-catalog-view .ipm-archive__filter-close {
    scroll-behavior: auto;
    transition: none;
  }
}

body.ipm-catalog-view .ipm-archive__filter-badge {
  display: inline-grid;
  min-width: 21px;
  height: 21px;
  padding: 0 6px;
  place-items: center;
  border-radius: 999px;
  background: var(--secondary);
  color: var(--white);
  font-family: var(--ip-font-heading);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}
