/* PENDING UPSTREAM. Reusable, product-agnostic parts from Claude Design's "Our products"
   handover (19 November 2026, build notes 1g, "To the design system"). They belong in the
   design system, which is authored in Claude Design and published to returnmeplz-design-system;
   this site only copies from there (HOW-TO-UPDATE.md). Until they are published, they live here,
   in the site's design-system copy, as John's brief for the page asks. When the design system
   publishes them, delete this file whole and link the published styles instead.

   Nothing here is page layout: that is in style.css (.products-intro, .product-group,
   .product-section, .feature-band, .products-close). Loaded only by products.html today.

   Tokens only, from tokens/colors.css and tokens/shape.css, plus three values the handover
   specifies that have no token yet: the inactive dot #7B848D (3:1 on white), the muted text at
   78% charcoal (4.5:1 or better on white and on #F2F4F5; don't go lower), and the teal tint. */

:root {
  --rmp-text-muted-78: rgba(31, 41, 51, 0.78);
  --rmp-dot-inactive: #7B848D;
}

/* ---------- AccentDivider: the 32 x 2px yellow rule under a heading ---------- */
.rmp-divider {
  display: block; width: 32px; height: 2px; border-radius: var(--radius-full);
  background: var(--rmp-yellow); border: 0; margin: 0 auto;
}

/* ---------- Chip: "Coming soon" ---------- */
.rmp-chip {
  display: inline-block; padding: 6px 10px; border-radius: var(--radius-full);
  font: 600 12px/1 'Inter', sans-serif; white-space: nowrap;
}
.rmp-chip--muted { background: var(--rmp-light-grey); color: var(--rmp-charcoal); }

/* ---------- Secondary button: the design system's Button variant "secondary" ----------
   White, charcoal, 1px --rmp-border. Used beside the site's .btn .btn-primary. The site's own
   .btn-secondary is a dark-teal outline and stays as it is on the other pages. 1px border plus
   1px padding keeps it the same height as the primary's 2px border. */
.rmp-btn-secondary {
  background: var(--rmp-white); color: var(--rmp-charcoal);
  border: 1px solid var(--rmp-border); padding-top: 1px; padding-bottom: 1px;
}
.rmp-btn-secondary:hover { border-color: var(--rmp-dark-teal); color: var(--rmp-dark-teal); }

/* ---------- Feature card ---------- */
.rmp-feature {
  background: var(--rmp-white); border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card-marketing);
  display: flex; gap: 14px; align-items: center; padding: 16px;
}
.rmp-feature__icon {
  flex: 0 0 44px; width: 44px; height: 44px; border-radius: 50%;
  background: var(--surface-teal-tint); color: var(--rmp-dark-teal);
  display: flex; align-items: center; justify-content: center;
}
.rmp-feature__icon svg { width: 24px; height: 24px; }
.rmp-feature__text { display: flex; flex-direction: column; gap: 2px; }
.rmp-feature__title { font: 600 16px/1.35 'Poppins', sans-serif; color: var(--rmp-charcoal); }
.rmp-feature__line { font-size: 14px; line-height: 1.5; color: var(--rmp-text-muted-78); }
/* An optional link under the line (products.html: "Private messaging" to the Smart Recovery System).
   44px tall at least, so it is a full tap target on a phone. */
.rmp-feature__link {
  align-self: flex-start; display: inline-flex; align-items: center; min-height: 44px;
  font: 600 14px/1.3 'Inter', sans-serif; color: var(--rmp-dark-teal);
  text-decoration: underline; text-underline-offset: 2px;
}
.rmp-feature__link:hover { text-decoration-thickness: 2px; }
.rmp-feature__link:focus-visible { outline: 2px solid var(--focus-ring-strong); outline-offset: 2px; }
@media (min-width: 900px) {
  .rmp-feature { flex-direction: column; text-align: center; padding: 24px 20px; gap: 12px; }
  .rmp-feature__icon { flex-basis: 48px; width: 48px; height: 48px; }
  .rmp-feature__title { font-size: 17px; }
  .rmp-feature__link { align-self: center; }
}

/* ---------- Carousel (.rmp-carousel, behaviour in assets/carousel.js) ----------
   Each slide is <figure><img><figcaption></figure>. Every caption stays in the HTML and is
   never display:none, because the captions matter for search: the slides sit side by side in
   the track and the viewport shows one. With JavaScript off the viewport scrolls sideways
   (scroll-snap), so every picture stays reachable. */
.rmp-carousel { position: relative; width: 100%; }
.rmp-carousel__viewport {
  overflow-x: auto; scroll-snap-type: x mandatory; background: var(--rmp-white);
  touch-action: pan-y; scrollbar-width: none;
}
.js .rmp-carousel__viewport { overflow: hidden; scroll-snap-type: none; }
.rmp-carousel__viewport::-webkit-scrollbar { display: none; }
.rmp-carousel__track { display: flex; transition: transform 300ms ease; will-change: transform; }
.rmp-carousel__slide { flex: 0 0 100%; min-width: 0; margin: 0; scroll-snap-align: start; }
.rmp-carousel__slide img {
  display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: contain;
  background: var(--rmp-light-grey); -webkit-user-drag: none; user-select: none;
}
/* A picture may be a link (products.html: to the shop). The ring is drawn inside the picture, because
   the viewport clips anything outside it. A swipe never opens it (carousel.js cancels that click). */
.rmp-carousel__link { display: block; -webkit-user-drag: none; }
.rmp-carousel__link:focus-visible { outline: 3px solid var(--rmp-dark-teal); outline-offset: -3px; }
.rmp-carousel__link:focus-visible img { opacity: .92; }
.rmp-carousel__slide figcaption {
  margin: 12px 16px 0; min-height: 42px; text-align: center;
  font: 500 14px/1.5 'Inter', sans-serif; color: var(--rmp-text-muted-78);
}
/* The arrows sit on the picture, which is the top square of the carousel: a square overlay
   the width of the carousel, so they centre on the picture and not on picture plus caption. */
.rmp-carousel__stage {
  position: absolute; top: 0; left: 0; width: 100%; aspect-ratio: 1 / 1; pointer-events: none;
}
.rmp-carousel__arrow {
  pointer-events: auto; position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; padding: 0; border-radius: var(--radius-full);
  border: 1px solid var(--rmp-border); background: var(--rmp-white);
  box-shadow: var(--shadow-card-marketing-lg); color: var(--rmp-dark-teal);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.rmp-carousel__arrow--prev { left: 8px; }
.rmp-carousel__arrow--next { right: 8px; }
.rmp-carousel__arrow svg { width: 20px; height: 20px; }
.rmp-carousel__arrow:focus-visible, .rmp-carousel__dot:focus-visible {
  outline: 2px solid var(--focus-ring-strong); outline-offset: 2px;
}
.rmp-carousel__dots { display: flex; justify-content: center; flex-wrap: wrap; }
.rmp-carousel__dot {
  width: 44px; height: 44px; padding: 0; border: 0; background: transparent; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.rmp-carousel__dot span {
  display: block; width: 10px; height: 10px; border-radius: var(--radius-full);
  background: var(--rmp-dot-inactive); transition: width 200ms ease;
}
.rmp-carousel__dot[aria-current="true"] span { width: 24px; background: var(--rmp-teal); }
/* With one picture there is nothing to move between (carousel.js leaves them hidden). */
.rmp-carousel__arrow[hidden], .rmp-carousel__dots[hidden] { display: none; }
/* Announces the caption when the picture changes; the captions themselves are in the slides. */
.rmp-carousel__status {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
@media (min-width: 900px) {
  .rmp-carousel__slide img { border-radius: var(--radius-xl); }
}
@media (prefers-reduced-motion: reduce) {
  .rmp-carousel__track, .rmp-carousel__dot span { transition: none; }
}

/* ---------- Design strip (.rmp-designs): the shop's "105 designs. Add a name for £1." row ----------
   Copied from the shop's collection pages (returnmeplz-shopify, snippet rmp-designs), measured from the
   live page: a light-grey box, the line, then a row of 44px circles with the design's name under each,
   scrolling sideways when it does not fit. Phone: the line above the row, edge to edge. From 900px:
   the line beside the row, in a 16px-radius box. Each circle's alt is the design's name; the visible
   name under it is hidden from screen readers so the name is read once. */
.rmp-designs {
  background: var(--rmp-light-grey); display: flex; flex-direction: column; gap: 12px;
  padding: 14px 0 14px 20px;
}
.rmp-designs__title { font: 600 16px/1.3 'Poppins', sans-serif; color: var(--rmp-dark-teal); padding-right: 20px; }
.rmp-designs__scroll { overflow-x: auto; scroll-snap-type: x; padding-right: 20px; scrollbar-width: thin; }
.rmp-designs__scroll:focus-visible { outline: 2px solid var(--focus-ring-strong); outline-offset: 2px; }
.rmp-designs__row { display: flex; gap: 10px; list-style: none; margin: 0; padding: 2px 0; }
.rmp-designs__item {
  flex: 0 0 58px; width: 58px; display: grid; justify-items: center; align-content: start; gap: 5px;
  text-align: center; font: 400 10.5px/1.15 'Inter', sans-serif; color: var(--rmp-charcoal); scroll-snap-align: start;
}
.rmp-designs__swatch {
  display: block; width: 44px; height: 44px; border-radius: 50%; object-fit: cover;
  background: var(--rmp-white); box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.14);
}
.rmp-designs__swatch--plain { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.14); }
@media (min-width: 900px) {
  .rmp-designs { flex-direction: row; align-items: center; gap: 22px; border-radius: var(--radius-xl); }
  .rmp-designs__title { flex: 0 0 150px; padding-right: 0; }
  .rmp-designs__scroll { flex: 1; min-width: 0; }
}

/* ---------- Range switch (.rmp-switch): the shop's, copied from returnmeplz-shopify ----------
   app/src/shop-nav.css (.rmp-switch, .rmp-switch__link; Claude Design "Shop Navigation", 1 November
   2026), same look: a grey track of pill links, 44px tall at least. The pills shrink and their labels
   wrap before the track would overflow a phone. aria-current="page" marks the current range where a
   page has one (the shop's collections); products.html marks none. */
.rmp-switch {
  display: inline-flex; background: var(--rmp-light-grey); border-radius: var(--radius-full);
  padding: 5px; gap: 4px; max-width: 100%;
}
.rmp-switch__link {
  flex: 1 1 auto; display: inline-flex; align-items: center; justify-content: center; text-align: center;
  min-height: 44px; padding: 8px 20px; border-radius: var(--radius-full); color: var(--rmp-charcoal);
  text-decoration: none; font-family: 'Poppins', sans-serif; font-weight: 500; font-size: 15px; line-height: 1.2;
}
.rmp-switch__link[aria-current="page"] {
  background: var(--rmp-white); color: var(--rmp-dark-teal); font-weight: 700; box-shadow: 0 1px 3px rgb(31 41 51 / 0.12);
}
.rmp-switch__link:not([aria-current]):hover { color: var(--rmp-dark-teal); text-decoration: underline; }
.rmp-switch__link:focus-visible { outline: 3px solid var(--rmp-dark-teal); outline-offset: 2px; }
/* Narrower than the shop's below 390px. At 320px the three pills at 20px padding were 16px wider than
   the track and the page scrolled sideways, and at 360 to 389px "Grown-up" broke at its hyphen onto a
   third line. 12px keeps every pill 44px tall and at least 70px wide, each label on two lines at most. */
@media (max-width: 389px) {
  .rmp-switch__link { padding-left: 12px; padding-right: 12px; }
}
@media (max-width: 339px) {
  .rmp-switch__link { padding-left: 8px; padding-right: 8px; }
}

/* Range switch as buttons (.rmp-switch--buttons; John, 19 and 20 November 2026, products.html): no track,
   each pill a white button with a border, no underline (charcoal on white, 14.7:1); on hover and keyboard
   focus the teal tint with a teal border and dark-teal text (5.3:1 on the tint over white); dark teal
   with white text for the range in view (aria-current="true", set by the page's script; 6.1:1).
   Later in the file than the base rules, at the same specificity, so these win. */
.rmp-switch--buttons { background: transparent; padding: 0; gap: 8px; }
.rmp-switch--buttons .rmp-switch__link {
  background: var(--rmp-white); border: 1px solid #D1D5DB; color: var(--rmp-charcoal);
  font-weight: 600; text-decoration: none;
}
.rmp-switch--buttons .rmp-switch__link:hover,
.rmp-switch--buttons .rmp-switch__link:focus-visible {
  background: var(--surface-teal-tint); border-color: var(--rmp-teal); color: var(--rmp-dark-teal); text-decoration: none;
}
.rmp-switch--buttons .rmp-switch__link[aria-current="true"] {
  background: var(--rmp-dark-teal); border-color: var(--rmp-dark-teal); color: var(--rmp-white); font-weight: 600;
}

/* Short labels below 540px ("Kids'", "Character", "Grown-up"), so the row stays on one line on a phone and
   the full labels only show where they fit on one line in each pill (measured: from 535px).
   The full label stays in the link for screen readers (visually hidden, not display:none); the short one
   is aria-hidden, so each pill's name is always the full one ("Kids' Labels"). */
.rmp-switch__link { position: relative; }
.rmp-switch__short { display: none; }
@media (max-width: 539px) {
  .rmp-switch__short { display: inline; }
  .rmp-switch__full {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
  }
}
