/* Generated from apps/shop/app/app.css by scripts/export-django-static.mjs. Edit the source. */
/* apps/shop/app/styles/tokens.css */
/* apps/shop · storefront layout
 *
 * Breakpoints (and only these three) come from packages/theme/src/sizes.ts:
 *
 *   48rem   768px   tablet   · mobile layout at and below, desktop above
 *   64rem   1024px  laptop
 *   90rem   1440px  wide
 *
 * `min-width: 48.0625rem` / `64.0625rem` are the complements of the two
 * `max-width` cuts, written as a 1px offset so no rule applies at both sides of
 * a boundary. Do not invent a fourth width: a layout that only breaks between
 * two of these is asking for clamp() or auto-fit, not for a new breakpoint.
 *
 * White-label surface: the chrome belongs to the merchant, not to Aents. Only
 * page composition lives here — grids, media ratios and section rhythm. The
 * reset, focus rings, type scale, buttons, fields, cards, badges and notices
 * are owned by @aents/ui-web, and every value below is a token variable or a
 * layout constant (hairlines, aspect ratios, breakpoints), never a design
 * decision of this app.
 *
 * The only tenant-specific value is --shop-accent (plus the readable
 * foreground computed from it), rebound per request by the root Layout from
 * store.accentColor.
 */

:root {
  /* A polished neutral default for stores that have not chosen their own
     brand color yet. Any configured merchant accent replaces these values. */
  --shop-accent: #6957f5;
  --shop-accent-foreground: #ffffff;
  --shop-accent-strong: #5141cf;
}

/* The merchant accent takes over the Aents primary for the whole document, so
   every @aents/ui-web component — buttons, badges, focus rings, field focus —
   is themed by the store without a single per-component override. The pressed
   value is derived from the accent itself, never picked by hand. */
.shop-root {
  --primary: var(--shop-accent);
  --primary-pressed: color-mix(
    in srgb,
    var(--shop-accent) 85%,
    var(--shop-accent-foreground)
  );
  --on-primary: var(--shop-accent-foreground);
  /* The contrast-corrected accent, computed per tenant by lib/format. */
  --primary-strong: var(--shop-accent-strong);
  /* Focus is drawn in two tones: the corrected accent, at least 4.5:1 on the
     page, around a halo of the page colour. Whatever the ring crosses (a pale
     accent fill, a cover photo, a tinted band) one of the two tones holds 3:1
     against it, which a ring painted from the raw accent cannot promise. */
  --shop-focus-ring: var(--primary-strong);
  --shop-focus-halo: var(--background);
  /* Muted copy (counts, card categories, struck prices) sits on the tinted
     fog surface and on accent-washed panels, where the theme's neutral 500
     measures 4.35:1 and less. This shade holds 5:1 on the palest of them. */
  --text-muted: #5b6270;
}

/* An accent is chosen to be filled, not to be read: painting the raw value as
   text on the page background is illegible for any pale brand color. The only
   place @aents/ui-web does that is the hovered tertiary button, which is
   pointed at the corrected variant instead. */
.shop-root .aents-btn--tertiary:hover:not(:disabled) {
  color: var(--primary-strong);
}

/* apps/shop/app/styles/chrome.css */
/* apps/shop · chrome
 *
 * Header, navigation, mobile menu, cart button, route progress, toasts and the
 * discovery widgets that frame every page. Breakpoints: see ./tokens.css.
 */

/* ---------------- Chrome ---------------- */

.shop-announcement {
  padding: 0.55rem var(--spacing-md);
  background: var(--primary);
  color: var(--on-primary);
  font-size: var(--type-small-size);
  font-weight: var(--weight-semibold);
  text-align: center;
}

.shop-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--border-subtle);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(18px) saturate(150%);
}

/* The actions column is floored at what it holds, not at a guessed 10rem: a
   cart carrying a two-digit count is wider than the guess, and the column was
   free to shrink under it and push the button out of the header. */
.shop-header__inner {
  display: grid;
  grid-template:
    "brand search actions" auto
    "nav nav nav" auto /
    minmax(10rem, 1fr) minmax(18rem, 34rem) minmax(max-content, 1fr);
  align-items: center;
  column-gap: var(--spacing-xl);
  padding-block-start: var(--spacing-sm);
}

.shop-header__nav {
  grid-area: nav;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-xs);
  min-height: 2.9rem;
  margin-block-start: var(--spacing-xs);
  border-block-start: 1px solid
    color-mix(in srgb, var(--shop-accent) 9%, var(--border-subtle));
}

.shop-header__nav > a,
.shop-header__categories > summary {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  min-height: var(--touch-target);
  padding-inline: var(--spacing-sm);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-size: var(--type-small-size);
  font-weight: var(--weight-semibold);
  cursor: pointer;
  transition:
    color var(--duration-fast) var(--easing-standard),
    background-color var(--duration-fast) var(--easing-standard);
}

/* The underline is the whole feedback: no pill behind the label on hover, so
   the only entry wearing a mark is the one the visitor is on. */
.shop-header__nav > a::after,
.shop-header__categories > summary::after {
  position: absolute;
  inset: auto var(--spacing-sm) 0.35rem;
  height: 2px;
  border-radius: var(--radius-full);
  background: var(--shop-accent);
  content: "";
  transform: scaleX(0);
  transition: transform var(--duration-fast) var(--easing-standard);
}

.shop-header__nav > a:hover::after,
.shop-header__nav > a:focus-visible::after,
.shop-header__nav > a[aria-current="page"]::after,
.shop-header__categories > summary:hover::after,
.shop-header__categories[open] > summary::after {
  transform: scaleX(1);
}

.shop-header__nav > a:hover,
.shop-header__categories > summary:hover,
.shop-header__categories[open] > summary {
  color: var(--text);
}

/* The current page keeps its underline whether or not a pointer is near it,
   and reads at full strength beside the entries that are only links. */
.shop-header__nav > a[aria-current="page"] {
  color: var(--text);
  font-weight: var(--weight-bold);
}

.shop-header__categories {
  position: relative;
}

.shop-header__categories > summary {
  list-style: none;
}

.shop-header__categories > summary::-webkit-details-marker {
  display: none;
}

.shop-header__categories > summary::before {
  order: 2;
  border: 4px solid transparent;
  border-top-color: currentColor;
  margin-block-start: 4px;
  content: "";
}

.shop-header__categories-menu {
  position: absolute;
  z-index: 60;
  top: calc(100% + var(--spacing-xs));
  left: 50%;
  width: min(24rem, calc(100vw - 2rem));
  padding: var(--spacing-md);
  border: 1px solid color-mix(in srgb, var(--shop-accent) 18%, var(--border));
  border-radius: var(--radius-xl);
  background: color-mix(in srgb, var(--surface) 95%, transparent);
  box-shadow: 0 24px 64px color-mix(in srgb, var(--text) 18%, transparent);
  backdrop-filter: blur(20px) saturate(145%);
  transform: translateX(-50%);
  animation: shop-nav-menu-in 180ms var(--easing-standard) both;
}

.shop-header__categories-menu ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--spacing-xs);
  margin: var(--spacing-sm) 0 0;
  padding: 0;
  list-style: none;
}

.shop-header__categories-menu a {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  min-height: var(--touch-target);
  padding: var(--spacing-xs);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: var(--type-small-size);
}

.shop-header__categories-menu a:hover {
  background: color-mix(in srgb, var(--shop-accent) 9%, var(--surface));
  color: var(--text);
}

.shop-header__categories-menu a span {
  display: grid;
  width: 2rem;
  height: 2rem;
  flex: 0 0 auto;
  place-items: center;
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--shop-accent) 12%, var(--surface));
  color: var(--primary-strong);
  font-weight: var(--weight-bold);
}

@keyframes shop-nav-menu-in {
  from {
    opacity: 0;
    transform: translate(-50%, -0.4rem);
  }
}

.shop-header__brand {
  grid-area: brand;
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  min-height: var(--touch-target);
  min-width: 0;
}

.shop-header-search {
  position: relative;
  grid-area: search;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--spacing-sm);
  min-height: var(--touch-target);
  padding: 0.25rem 0.3rem 0.25rem var(--spacing-md);
  border: 1px solid color-mix(in srgb, var(--shop-accent) 20%, var(--border));
  border-radius: var(--radius-full);
  background: color-mix(in srgb, var(--shop-accent) 4%, var(--surface));
  color: var(--text-muted);
  box-shadow: inset 0 1px 0 color-mix(in srgb, white 72%, transparent);
  transition:
    border-color var(--duration-fast) var(--easing-standard),
    box-shadow var(--duration-fast) var(--easing-standard),
    background-color var(--duration-fast) var(--easing-standard);
}

.shop-header-search__suggestions {
  position: absolute;
  z-index: 70;
  top: calc(100% + var(--spacing-xs));
  right: 0;
  left: 0;
  display: grid;
  max-height: min(26rem, 60vh);
  overflow-y: auto;
  padding: var(--spacing-xs);
  border: 1px solid color-mix(in srgb, var(--shop-accent) 18%, var(--border));
  border-radius: var(--radius-xl);
  background: color-mix(in srgb, var(--surface) 96%, transparent);
  box-shadow: 0 24px 64px color-mix(in srgb, var(--text) 18%, transparent);
  backdrop-filter: blur(20px) saturate(145%);
}

.shop-header-search__suggestions > a {
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--spacing-sm);
  min-height: 3.25rem;
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--radius-md);
  color: var(--text);
}

.shop-header-search__suggestions > a:hover,
.shop-header-search__suggestions > a:focus-visible {
  background: color-mix(in srgb, var(--shop-accent) 9%, var(--surface));
}

.shop-header-search__suggestions > a > span:first-child {
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--shop-accent) 12%, var(--surface));
  color: var(--primary-strong);
  font-weight: var(--weight-bold);
}

.shop-header-search__suggestions > a > span:nth-child(2) {
  display: grid;
  min-width: 0;
}

.shop-header-search__suggestions small,
.shop-header-search__suggestions p {
  color: var(--text-muted);
  font-size: var(--type-caption-size);
}

.shop-header-search__suggestions p {
  margin: 0;
  padding: var(--spacing-sm);
}

/* The input drops its own outline, so the field draws the ring. It uses the
   contrast-corrected accent: a pale merchant color, or a tint of any color,
   falls under the 3:1 a focus indicator needs against the page (WCAG 1.4.11).
   An outline rather than a shadow, so forced-colors mode still shows it. */
.shop-header-search:focus-within,
.shop-mobile-menu__search:focus-within {
  border-color: var(--primary-strong);
  outline: 2px solid var(--primary-strong);
  outline-offset: 2px;
}

.shop-header-search:focus-within {
  background: var(--surface);
  box-shadow: 0 10px 28px
    color-mix(in srgb, var(--shop-accent) 10%, transparent);
}

.shop-header-search input {
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: var(--type-small-size);
}

.shop-header-search input::placeholder {
  color: var(--text-muted);
}

.shop-header-search button {
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--shop-accent);
  color: var(--shop-accent-foreground);
  cursor: pointer;
  transition: transform var(--duration-fast) var(--easing-standard);
}

.shop-header-search button:hover {
  transform: translateX(2px);
}

.shop-header__brand .aents-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shop-header__logo {
  width: 2.5rem;
  height: 2.5rem;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

.shop-header__mark {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  flex: 0 0 auto;
  border-radius: var(--radius-md);
  /* A flat fill: --shop-accent-foreground is computed against the accent
     itself, and any lighter tint of it drops the initial below 4.5:1. */
  background: var(--shop-accent);
  color: var(--shop-accent-foreground);
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, var(--surface) 34%, transparent),
    0 8px 22px color-mix(in srgb, var(--shop-accent) 24%, transparent);
  font-size: var(--type-bodyLarge-size);
  font-weight: var(--weight-extrabold);
}

/* A compact storefront control with enough brand presence to remain visible
   beside the language picker. The count stays a status signal, not a second
   competing button. */
.shop-cart.aents-btn--secondary {
  position: relative;
  overflow: hidden;
  border-color: color-mix(in srgb, var(--shop-accent) 24%, var(--border));
  background: color-mix(in srgb, var(--shop-accent) 7%, var(--surface));
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, var(--surface) 80%, transparent),
    0 4px 14px color-mix(in srgb, var(--shop-accent) 10%, transparent);
  color: var(--text);
}

.shop-cart.aents-btn--secondary > .aents-icon {
  color: var(--primary-strong);
  transition: transform var(--duration-fast) var(--easing-standard);
}

.shop-cart.aents-btn--secondary:hover:not(:disabled) {
  border-color: color-mix(in srgb, var(--shop-accent) 52%, var(--border));
  background: color-mix(in srgb, var(--shop-accent) 12%, var(--surface));
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, var(--surface) 90%, transparent),
    0 8px 20px color-mix(in srgb, var(--shop-accent) 16%, transparent);
}

.shop-cart.aents-btn--secondary:hover:not(:disabled) > .aents-icon {
  transform: translateY(-1px) rotate(-4deg);
}

.shop-cart .aents-btn__label {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.shop-cart .aents-badge {
  min-width: 1.5rem;
  min-height: 1.5rem;
  justify-content: center;
  padding: 0 var(--spacing-xs);
  border: 2px solid var(--surface);
  box-shadow: 0 2px 8px color-mix(in srgb, var(--shop-accent) 24%, transparent);
  font-size: var(--type-caption-size);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

/* ---------------- Discovery and conversion system ---------------- */

.shop-menu-trigger {
  display: none;
}

.shop-category-showcase {
  display: grid;
  gap: var(--spacing-sm);
}

.shop-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: var(--spacing-md);
}

.shop-section-heading > div {
  display: grid;
  gap: var(--spacing-xs);
}

.shop-category-showcase__track {
  display: grid;
  /* Same rule as the product grid: a tile keeps its size whether the store has
     three categories or twelve. */
  grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr));
  gap: var(--spacing-sm);
  margin: 0;
  padding: 0;
  list-style: none;
}

.shop-category-tile {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  min-width: 0;
  min-height: var(--touch-target);
  padding: var(--spacing-xs) var(--spacing-sm);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 4px 12px color-mix(in srgb, var(--text) 4%, transparent);
  transition:
    transform var(--duration-normal) var(--easing-standard),
    border-color var(--duration-normal) var(--easing-standard),
    box-shadow var(--duration-normal) var(--easing-standard);
}

.shop-category-tile__art {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  flex: 0 0 2.5rem;
  overflow: hidden;
  border-radius: var(--radius-md);
  background:
    radial-gradient(
      circle at 70% 30%,
      color-mix(in srgb, var(--shop-accent) 28%, transparent),
      transparent 42%
    ),
    linear-gradient(
      135deg,
      color-mix(in srgb, var(--shop-accent) 8%, var(--surface-alt)),
      var(--surface-alt)
    );
  color: color-mix(in srgb, var(--shop-accent) 42%, var(--text));
}

.shop-category-tile__art > span {
  font-size: var(--type-bodyLarge-size);
  font-weight: var(--weight-extrabold);
  line-height: 1;
  opacity: 0.7;
}

/* A shelf photograph fills the tile completely: the tinted gradient behind it
   is the fallback's backdrop, not a frame to leave showing. */
.shop-category-tile__art > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shop-category-tile > span:last-child {
  display: flex;
  width: 100%;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-sm);
}

/* Two lines, not one with an ellipsis: a supplier's category names run long
   enough that a single line showed "Herramientas y acc…" and left the shopper
   guessing which shelf the tile opened. */
.shop-category-tile strong {
  display: -webkit-box;
  overflow: hidden;
  font-size: var(--type-small-size);
  line-height: 1.25;
  text-wrap: pretty;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.shop-category-tile small {
  flex: 0 0 auto;
  color: var(--primary-strong);
  font-size: var(--type-body-size);
  transition: transform var(--duration-fast) var(--easing-standard);
}

.shop-category-tile:hover,
.shop-category-tile[aria-current="page"] {
  border-color: color-mix(in srgb, var(--shop-accent) 42%, var(--border));
  box-shadow: 0 8px 20px color-mix(in srgb, var(--shop-accent) 10%, transparent);
  transform: translateY(-2px);
}

.shop-category-tile:hover small {
  transform: translateX(3px);
}

.shop-recent {
  padding-block-start: var(--spacing-xl);
  border-block-start: 1px solid var(--border-subtle);
}

.shop-checkout-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: var(--spacing-xs);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  background: var(--surface-alt);
  list-style: none;
}

.shop-checkout-steps li {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  min-height: var(--touch-target);
  color: var(--text-muted);
  font-size: var(--type-small-size);
  font-weight: var(--weight-semibold);
}

.shop-checkout-steps li span {
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  font-variant-numeric: tabular-nums;
}

.shop-checkout-steps li.is-current {
  border-radius: var(--radius-full);
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-1);
}

.shop-checkout-steps li.is-current span {
  border-color: var(--shop-accent);
  background: var(--shop-accent);
  color: var(--shop-accent-foreground);
}

.shop-checkout-card__heading {
  display: grid;
  gap: var(--spacing-xs);
  padding-block-end: var(--spacing-md);
  border-block-end: 1px solid var(--border-subtle);
}

@media (max-width: 64rem) {
  .shop-header__contact {
    display: none;
  }
  .shop-header__inner {
    grid-template-columns: minmax(9rem, 1fr) minmax(15rem, 28rem) auto;
    column-gap: var(--spacing-md);
  }
  .shop-category-showcase__track {
    display: flex;
    /* Vertical room inside the scroller's own box, pulled back out with a
       matching negative margin. A horizontal scroller clips on both axes, and
       the mask below clips to the same box — so without this the tile's 2px
       hover lift and its shadow are sliced off at the top edge. */
    margin-block: calc(var(--spacing-sm) * -1);
    padding-block: var(--spacing-sm);
    margin-inline: calc(var(--spacing-md) * -1);
    padding-inline: var(--spacing-md);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .shop-category-showcase__track::-webkit-scrollbar {
    display: none;
  }

  .shop-category-showcase__track li {
    width: min(62vw, 12rem);
    flex: 0 0 auto;
    scroll-snap-align: start;
  }

  /* The row fades into the right edge, so a tile cut in half reads as "there
     is more over here" instead of as a layout mistake. */
  .shop-category-showcase__track {
    mask-image: linear-gradient(
      90deg,
      transparent 0,
      #000 var(--spacing-md),
      #000 calc(100% - var(--spacing-xl)),
      transparent 100%
    );
  }
}

@media (max-width: 48rem) {
  .shop-header__inner {
    display: flex;
    padding-block: var(--spacing-sm);
  }
  .shop-header__nav,
  .shop-header-search {
    display: none;
  }
  /* The brand takes whatever the two buttons leave, and a name too long for
     one line wraps to a second instead of being cut: "Electro Ecu…" is not
     the merchant's name. */
  .shop-header__brand {
    flex: 1 1 auto;
  }
  .shop-header__brand .aents-text {
    display: -webkit-box;
    overflow: hidden;
    white-space: normal;
    text-wrap: balance;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }
  .shop-header__mark,
  .shop-header__logo {
    width: 2.25rem;
    height: 2.25rem;
    flex: none;
  }
}

@media (max-width: 48rem) {
  .shop-menu-trigger {
    display: inline-flex;
    width: var(--touch-target);
    min-width: var(--touch-target);
    padding: 0;
  }

  .shop-menu-trigger > .aents-btn__label > span:last-child {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }

  .shop-menu-trigger__glyph {
    display: grid;
    gap: 5px;
    width: 1.2rem;
  }

  .shop-menu-trigger__glyph i {
    display: block;
    height: 2px;
    border-radius: var(--radius-full);
    background: currentColor;
  }

  .shop-mobile-menu {
    position: fixed;
    z-index: 85;
    inset: 0;
    display: flex;
    background: rgb(0 0 0 / 38%);
    backdrop-filter: blur(5px);
    animation: shop-fade var(--duration-normal) var(--easing-standard) both;
  }

  .shop-mobile-menu__panel {
    width: min(23rem, calc(100% - 2rem));
    height: 100%;
    overflow-y: auto;
    padding: var(--spacing-lg);
    border-radius: 0 var(--radius-2xl) var(--radius-2xl) 0;
    background: var(--surface);
    box-shadow: var(--shadow-5);
    animation: shop-menu-in var(--duration-slow) var(--easing-standard) both;
  }

  .shop-mobile-menu__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-md);
    padding-block-end: var(--spacing-lg);
    border-block-end: 1px solid var(--border-subtle);
  }

  .shop-mobile-menu__catalog {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 4rem;
    margin-block: var(--spacing-md);
    padding-inline: var(--spacing-md);
    border-radius: var(--radius-lg);
    background: color-mix(in srgb, var(--shop-accent) 9%, var(--surface));
    color: var(--text);
    font-weight: var(--weight-bold);
  }

  .shop-mobile-menu__search {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: var(--spacing-sm);
    min-height: var(--touch-target);
    margin-block-start: var(--spacing-md);
    padding-inline: var(--spacing-md) var(--spacing-xs);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    background: var(--surface-alt);
    color: var(--text-muted);
  }

  .shop-mobile-menu__search .shop-header-search__suggestions {
    top: calc(100% + var(--spacing-xs));
  }

  .shop-mobile-menu__search input {
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
    font: inherit;
  }

  .shop-mobile-menu__search button {
    display: grid;
    width: 2.25rem;
    height: 2.25rem;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: var(--shop-accent);
    color: var(--shop-accent-foreground);
  }

  .shop-mobile-menu__categories {
    display: grid;
    gap: var(--spacing-sm);
  }

  .shop-mobile-menu__categories ul {
    display: grid;
    gap: var(--spacing-xs);
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .shop-mobile-menu__categories a {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    min-height: var(--touch-target);
    color: var(--text-secondary);
  }

  .shop-mobile-menu__categories a > span {
    display: grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    flex: 0 0 auto;
    border-radius: var(--radius-md);
    background: var(--surface-alt);
    color: var(--primary-strong);
    font-weight: var(--weight-bold);
  }

  .shop-checkout-steps {
    border-radius: var(--radius-xl);
  }

  .shop-checkout-steps li {
    display: grid;
    justify-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-xs);
    text-align: center;
    font-size: var(--type-caption-size);
  }
}

@keyframes shop-menu-in {
  from {
    transform: translateX(-100%);
  }
}

/* The phone header folds its search behind a button so the brand and the
   cart keep their row; wider screens show the box itself and never the
   button. The button stays [hidden] until its island binds it. */
.shop-search-toggle {
  display: none;
}

@media (max-width: 48rem) {
  .shop-search-toggle:not([hidden]) {
    display: inline-flex;
    width: var(--touch-target);
    min-width: var(--touch-target);
    padding: 0;
  }

  .shop-header.is-search-open .shop-search-toggle {
    background: color-mix(in srgb, var(--shop-accent) 12%, var(--surface));
    color: var(--primary-strong);
  }

  .shop-header.is-search-open .shop-header__inner {
    flex-wrap: wrap;
    row-gap: var(--spacing-sm);
  }

  .shop-header.is-search-open .shop-header-search {
    display: grid;
    flex: 1 0 100%;
    order: 1;
    animation: shop-search-in var(--duration-fast) var(--easing-standard);
  }

  /* 16px keeps iOS Safari from zooming the page when the field takes focus. */
  .shop-header-search input {
    font-size: max(1rem, var(--type-small-size));
  }

  .shop-header-search button {
    width: var(--touch-target);
    height: var(--touch-target);
  }
}

@keyframes shop-search-in {
  from {
    opacity: 0;
    transform: translateY(-0.4rem);
  }
}

/* Header actions: the language switcher and the cart share one row and wrap
   together on a narrow phone. */
.shop-header__actions {
  grid-area: actions;
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  justify-self: end;
}

/* The footer is `StorefrontFooter` from @aents/ui-web. What stays here is the
   merchant logo inside its brand slot and the Aents credit link. */
.shop-footer__logo {
  width: var(--icon-2xl);
  height: var(--icon-2xl);
  object-fit: contain;
  border-radius: var(--radius-sm);
}

.shop-footer__link {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* The free plan's seal: the Aents symbol beside the credit, still a plain link. */
.shop-footer__seal {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
}

/* The one navigation signal of the storefront: a shared indeterminate
   ProgressBar pinned under the top edge of the viewport. */
.shop-route-progress {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 50;
}

/* Toasts rise above what the storefront pins to the bottom edge: the contact
   button everywhere, and on phones the product's buy bar under it as well. */
.shop-root:has(.aents-fab) {
  --aents-toast-clearance: calc(3.25rem + var(--spacing-sm));
}

@media (max-width: 48rem) {
  .shop-root:has(.shop-mobile-buy) {
    --aents-toast-clearance: calc(5.25rem + 3.25rem + var(--spacing-md));
  }
}

@media (prefers-reduced-motion: reduce) {
  .shop-cart.aents-btn--secondary > .aents-icon {
    transition: none;
  }
  .shop-header.is-search-open .shop-header-search {
    animation: none;
  }
}

/* apps/shop/app/styles/home-catalog.css */
/* apps/shop · home and catalog
 *
 * Page rhythm, hero, reassurance strip, search, category filter, the product
 * grid and card, the filter sheet and quick view. Breakpoints: see ./tokens.css.
 */

/* ---------------- Page ---------------- */

/* One rhythm for every page of the storefront: the sections are stacked with a
   single token gap instead of each one carrying its own margin. */
.shop-main {
  display: flex;
  flex-direction: column;
  gap: clamp(var(--spacing-xl), 5vw, var(--spacing-3xl));
  padding-block: var(--spacing-lg) var(--spacing-3xl);
  animation: shop-page-arrive 280ms var(--easing-standard) both;
}

@keyframes shop-page-arrive {
  from {
    opacity: 0;
  }
}

.shop-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: clamp(15rem, 26vw, 21rem);
  overflow: hidden;
  padding: clamp(var(--spacing-xl), 6vw, var(--spacing-3xl));
  border: 1px solid
    color-mix(in srgb, var(--shop-accent) 20%, var(--border-subtle));
  border-radius: clamp(var(--radius-xl), 3vw, var(--radius-3xl));
  background:
    radial-gradient(
      circle at 82% 18%,
      color-mix(in srgb, var(--shop-accent) 34%, transparent),
      transparent 38%
    ),
    linear-gradient(145deg, var(--surface-alt), var(--surface));
  box-shadow: var(--shadow-3);
}

.shop-hero::before {
  position: absolute;
  inset: var(--spacing-md);
  z-index: -1;
  border: 1px solid color-mix(in srgb, var(--shop-accent) 9%, transparent);
  border-radius: calc(
    clamp(var(--radius-xl), 3vw, var(--radius-3xl)) - var(--spacing-sm)
  );
  content: "";
  pointer-events: none;
}

.shop-hero--with-cover {
  min-height: clamp(25rem, 52vw, 38rem);
}

.shop-hero__cover {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: shop-cover-arrive 900ms var(--easing-standard) both;
}

.shop-hero--with-cover::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background: linear-gradient(
    90deg,
    rgb(0 0 0 / 78%) 0%,
    rgb(0 0 0 / 46%) 54%,
    rgb(0 0 0 / 12%) 100%
  );
}

.shop-hero__glow {
  position: absolute;
  z-index: -1;
  top: -18%;
  right: -8%;
  width: min(32rem, 65vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: color-mix(in srgb, var(--shop-accent) 24%, transparent);
  filter: blur(50px);
  animation: shop-glow 7s ease-in-out infinite alternate;
}

.shop-hero__monogram {
  position: absolute;
  z-index: -1;
  inset-inline-end: clamp(var(--spacing-lg), 7vw, var(--spacing-3xl));
  color: color-mix(in srgb, var(--shop-accent) 16%, transparent);
  font-size: clamp(10rem, 24vw, 19rem);
  font-weight: var(--weight-extrabold);
  line-height: 0.7;
  letter-spacing: -0.1em;
  user-select: none;
}

.shop-hero__content {
  display: grid;
  gap: var(--spacing-sm);
  width: min(44rem, 100%);
  animation: shop-rise 650ms 100ms var(--easing-standard) both;
}

.shop-hero--center {
  justify-content: center;
  text-align: center;
}
.shop-hero--center .shop-hero__content {
  justify-items: center;
}
.shop-style--minimal .shop-hero {
  min-height: clamp(18rem, 28vw, 23rem);
  box-shadow: none;
}
/* On a phone the hero introduces the store; it must not be the whole first
   screen. Capped so the trust strip and the first shelf start above the fold. */
@media (max-width: 48rem) {
  .shop-hero,
  .shop-style--minimal .shop-hero {
    min-height: 13rem;
  }
  .shop-hero--with-cover {
    min-height: min(18rem, 46svh);
  }
}
.shop-style--minimal .shop-card {
  border-radius: var(--radius-md);
  box-shadow: none;
}
.shop-style--vibrant .shop-hero {
  border-color: color-mix(in srgb, var(--shop-accent) 55%, var(--border));
  box-shadow: 0 24px 70px
    color-mix(in srgb, var(--shop-accent) 22%, transparent);
}
.shop-style--minimal .shop-hero__glow {
  display: none;
}
.shop-style--minimal .shop-catalog__tools {
  box-shadow: none;
}
.shop-style--vibrant .shop-card {
  border-color: color-mix(
    in srgb,
    var(--shop-accent) 24%,
    var(--border-subtle)
  );
}

.shop-hero__content h1 {
  font-size: clamp(2.4rem, 6vw, 4.75rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.shop-hero__catalog-link {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  width: fit-content;
  min-height: var(--touch-target);
  margin-block-start: var(--spacing-sm);
  padding-inline: var(--spacing-md);
  border: 1px solid color-mix(in srgb, var(--shop-accent) 34%, var(--border));
  border-radius: var(--radius-full);
  background: color-mix(in srgb, var(--surface) 84%, transparent);
  color: var(--text);
  font-size: var(--type-small-size);
  font-weight: var(--weight-bold);
  box-shadow: var(--shadow-1);
  transition:
    transform var(--duration-fast) var(--easing-standard),
    border-color var(--duration-fast) var(--easing-standard);
}

.shop-hero__catalog-link:hover {
  border-color: var(--shop-accent);
  transform: translateY(-2px);
}

.shop-hero--with-cover .shop-hero__catalog-link {
  border-color: rgb(255 255 255 / 38%);
  background: rgb(255 255 255 / 12%);
  color: white;
  backdrop-filter: blur(12px);
}

.shop-hero--with-cover .shop-hero__content,
.shop-hero--with-cover .shop-hero__content .aents-text {
  color: white;
}

.shop-hero__eyebrow {
  width: fit-content;
  padding: 0.42rem 0.75rem;
  border: 1px solid color-mix(in srgb, currentColor 30%, transparent);
  border-radius: var(--radius-full);
  font-weight: var(--weight-semibold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.shop-intro {
  display: grid;
  /* The one source of separation between the hero, the reassurance strip and
     the category showcase. Each of those used to add a margin of its own on
     top of this gap, so the rhythm doubled wherever they met. */
  gap: clamp(var(--spacing-lg), 3vw, var(--spacing-2xl));
}

.shop-commerce-signals {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: var(--spacing-sm);
  list-style: none;
}

.shop-commerce-signals li {
  display: grid;
  grid-template-columns: 1.5rem minmax(0, 1fr);
  align-items: center;
  gap: var(--spacing-sm);
  min-height: var(--touch-target);
  padding: var(--spacing-sm) var(--spacing-md);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background: linear-gradient(
    120deg,
    var(--surface),
    color-mix(in srgb, var(--shop-accent) 3%, var(--surface-alt))
  );
  box-shadow: 0 8px 24px color-mix(in srgb, var(--text) 4%, transparent);
}

.shop-commerce-signals li > span {
  display: grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: color-mix(in srgb, var(--primary) 14%, transparent);
  color: var(--primary-strong);
  font-size: var(--type-small-size);
  font-weight: var(--weight-bold);
}

.shop-catalog {
  position: relative;
  isolation: isolate;
  /* The two blurred blobs below are placed outside this box on purpose, and
     without clipping they gave the whole document a horizontal scrollbar.
     `clip` on one axis only, so the search suggestions can still drop out of
     the bottom of the container. */
  overflow-x: clip;
  display: grid;
  gap: var(--spacing-xl);
  scroll-margin-top: 6rem;
}

.shop-catalog::before,
.shop-catalog::after {
  position: absolute;
  z-index: -1;
  width: min(32rem, 55vw);
  aspect-ratio: 1;
  border-radius: 50%;
  content: "";
  filter: blur(80px);
  opacity: 0.12;
  pointer-events: none;
}

.shop-catalog::before {
  inset: 8rem auto auto -14rem;
  background: var(--shop-accent);
}

.shop-catalog::after {
  inset: 42rem -16rem auto auto;
  background: color-mix(in srgb, var(--shop-accent) 55%, #58d8ff);
}

/* A quiet container, not a fourth surface level. It holds two controls;
   tinting it made it compete with the merchandise it sits above. */
.shop-catalog__tools {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: var(--spacing-md);
  padding: clamp(var(--spacing-md), 2vw, var(--spacing-lg));
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow:
    0 18px 50px color-mix(in srgb, var(--text) 6%, transparent),
    inset 0 1px 0 color-mix(in srgb, white 75%, transparent);
}

.shop-catalog__tools:focus-within {
  border-color: color-mix(in srgb, var(--shop-accent) 42%, var(--border));
  box-shadow:
    0 24px 64px color-mix(in srgb, var(--shop-accent) 12%, transparent),
    0 0 0 4px color-mix(in srgb, var(--shop-accent) 7%, transparent);
}

.shop-filterbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-md);
}
.shop-active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
}
.shop-active-filters > span,
.shop-active-filters a {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  min-height: var(--touch-target);
  padding-inline: var(--spacing-sm);
  border: 1px solid color-mix(in srgb, var(--shop-accent) 18%, var(--border));
  border-radius: var(--radius-full);
  background: color-mix(in srgb, var(--shop-accent) 7%, var(--surface));
  color: var(--primary-strong);
  font-size: var(--type-small-size);
  font-weight: var(--weight-semibold);
  text-decoration: none;
  transition:
    background-color var(--duration-fast) var(--easing-standard),
    border-color var(--duration-fast) var(--easing-standard);
}
.shop-active-filters a span {
  margin-inline-start: var(--spacing-xs);
  font-size: var(--type-body-size);
  line-height: 1;
}
.shop-active-filters a:hover {
  border-color: var(--shop-accent);
  background: color-mix(in srgb, var(--shop-accent) 13%, var(--surface));
}
.shop-filter-drawer {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  justify-content: flex-end;
  background: rgb(0 0 0 / 38%);
  backdrop-filter: blur(5px);
  animation: shop-fade var(--duration-normal) var(--easing-standard) both;
}
/* Header and actions stay put while the filters themselves scroll: a long
   facet list used to push "Show results" past the bottom of the screen. */
.shop-filter-panel {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: var(--spacing-lg);
  width: min(28rem, 100%);
  height: 100%;
  max-height: 100dvh;
  overflow: hidden;
  padding: var(--spacing-xl);
  background: linear-gradient(180deg, var(--surface), var(--surface-alt));
  box-shadow: var(--shadow-5);
  animation: shop-drawer-in var(--duration-slow) var(--easing-standard) both;
}

.shop-filter-panel__body {
  display: grid;
  align-content: start;
  gap: var(--spacing-lg);
  min-height: 0;
  overflow-y: auto;
  /* Room for the focus ring of the last control inside the scroller. */
  padding-block-end: var(--spacing-xs);
}
.shop-filter-panel::before {
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--shop-accent),
    var(--shop-accent-strong)
  );
  content: "";
}
.shop-filter-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-md);
  padding-bottom: var(--spacing-lg);
  border-bottom: 1px solid var(--border-subtle);
}
.shop-filter-panel__actions {
  display: grid;
  /* FormActions right-aligns by default, which in a grid also shrinks the
     column to max-content. In a sheet the commit control spans the sheet. */
  justify-content: stretch;
  justify-items: stretch;
  gap: var(--spacing-sm);
  margin-top: auto;
  padding: var(--spacing-md);
  margin-inline: calc(var(--spacing-md) * -1);
  margin-block-end: calc(var(--spacing-md) * -1);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  box-shadow: 0 -10px 28px color-mix(in srgb, var(--text) 5%, transparent);
  backdrop-filter: blur(12px);
}
.shop-filter-panel__actions .aents-btn {
  width: 100%;
}

/* Brand Book §5: a measure of about 62 characters keeps long copy readable. */
.shop-intro__description {
  max-width: 62ch;
}

/* Technical sheet. Only rendered by stores that describe their products by
   attributes, so nothing here applies to a catalogue without them. Two columns
   where there is room and stacked pairs where there is not: a value like a
   processor name is longer than its label and must never be truncated. */
.shop-specs {
  max-width: 62ch;
}

.shop-specs__title {
  margin-block-end: var(--spacing-sm);
}

.shop-specs__list {
  display: grid;
  gap: 0;
}

.shop-specs__row {
  display: grid;
  grid-template-columns: minmax(8rem, 14rem) 1fr;
  gap: var(--spacing-md);
  padding-block: var(--spacing-sm);
  border-block-end: 1px solid var(--border-subtle);
}

.shop-specs__row:last-child {
  border-block-end: none;
}

.shop-specs__label {
  color: var(--text-muted);
  font-size: var(--type-small-size);
  line-height: var(--type-small-line);
}

.shop-specs__value {
  margin: 0;
}

/* Holds the height of one line while the live region is empty, so announcing
   the addition to the cart does not push the page around. */
.shop-live {
  min-height: var(--type-small-line);
}

.shop-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
}

/* ---------------- Search ---------------- */

/* The search box is `SearchField`; the form only decides how wide it sits in
   the page, which is a decision of this surface and not of the control. */
.shop-search {
  width: 100%;
}

.shop-search__predictive {
  position: relative;
  z-index: 5;
}

.shop-search__suggestions {
  position: absolute;
  inset: calc(100% + 0.35rem) 0 auto;
  display: grid;
  max-height: min(22rem, 55vh);
  overflow: auto;
  padding: var(--spacing-sm);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-4);
}

.shop-search__suggestions[aria-busy="true"] {
  cursor: progress;
}

.shop-search__suggestions a,
.shop-search__suggestions p {
  margin: 0;
  padding: calc(var(--spacing-sm) + var(--spacing-xs)) var(--spacing-md);
}

.shop-search__suggestions a {
  display: flex;
  justify-content: space-between;
  gap: var(--spacing-md);
  border-radius: var(--radius-md);
  color: inherit;
  text-decoration: none;
}

.shop-search__suggestions a > span:first-child {
  display: grid;
  gap: var(--spacing-xs);
}

.shop-search__suggestions small {
  color: var(--text-muted);
  font-size: var(--type-caption-size);
}

.shop-search__suggestions .shop-search__status {
  padding-block: var(--spacing-xs);
  color: var(--text-muted);
  font-size: var(--type-caption-size);
}

.shop-search__suggestions a:hover,
.shop-search__suggestions a:focus-visible {
  background: color-mix(in srgb, var(--shop-accent) 10%, transparent);
}

.shop-search__suggestions .shop-search__suggestion {
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--spacing-sm);
}

/* The name and what kind of result it is are two lines, not one run-on
   string: inline, they read as "Portavelas de cerámicaProducto". */
.shop-search__suggestion > span:nth-child(2) {
  display: grid;
  min-width: 0;
}

/* Supplier names run to 200 characters; two lines tell the results apart and
   keep more than two of them in view. The option's accessible name stays whole. */
.shop-suggestion__name {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.shop-search__suggestion > span:nth-child(2) > small {
  color: var(--text-muted);
  font-size: var(--type-caption-size);
}

.shop-search__suggestion-art {
  display: grid;
  place-items: center;
  width: 2.75rem;
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  background: linear-gradient(
    145deg,
    color-mix(in srgb, var(--shop-accent) 14%, var(--surface-alt)),
    var(--surface-alt)
  );
  color: var(--primary-strong);
  font-weight: var(--weight-extrabold);
}

/* Fixed box, photo or initial alike, so a result never shifts when its
   picture arrives. */
.shop-suggestion__photo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: inherit;
  background: var(--white);
}

.shop-header-search__suggestions > a > span:first-child,
.shop-search__suggestion-art {
  overflow: hidden;
}

.shop-suggestion__price {
  color: var(--text);
  font-weight: var(--weight-semibold);
  font-variant-numeric: tabular-nums;
}

.shop-search__suggestion--category .shop-search__suggestion-art {
  border-radius: 50%;
  background: color-mix(in srgb, var(--shop-accent) 12%, var(--surface));
}

/* ---------------- Category filter ---------------- */

/* A scroller clips whatever leaves its box, so the row keeps room for each
   chip's touch overlay and focus ring and gives that room back through a
   negative margin: the chips stay exactly where the layout puts them. */
.shop-filters__list {
  --shop-chip-row-room: calc(var(--spacing-xs) + 2px);
  display: flex;
  overflow-x: auto;
  gap: var(--spacing-sm);
  list-style: none;
  scrollbar-width: none;
  margin: calc(var(--shop-chip-row-room) * -1 + 2px);
  padding: var(--shop-chip-row-room);
  scroll-snap-type: inline proximity;
}

.shop-catalog__tools nav {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-sm);
  min-width: 0;
}

.shop-catalog__tools nav .shop-filters__list {
  flex: 1;
}

.shop-categories__toggle {
  flex: 0 0 auto;
  white-space: nowrap;
}

.shop-filters__list li {
  scroll-snap-align: start;
}

.shop-filters__list::-webkit-scrollbar {
  display: none;
}

.shop-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  /* Painted at the full touch target rather than padded out by an invisible
     overlay: the visible chip is what a finger aims at. */
  min-height: var(--touch-target);
  padding-inline: var(--spacing-md);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: var(--type-small-size);
  line-height: var(--type-small-line);
  transition: background-color var(--duration-fast) var(--easing-standard);
  white-space: nowrap;
  background: var(--surface);
}

.shop-chip:hover {
  border-color: var(--primary);
}

.shop-chip[aria-current="page"] {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--on-primary);
}

/* ---------------- Catalog ---------------- */

/* A fixed card width, not four equal fractions: with two products in the row
   the fractional grid used to stretch each card to half the page, so the same
   component changed proportion depending on how many siblings it had. */
.shop-grid {
  display: grid;
  /* auto-fill, so a card is the same width whether the row holds two products
     or twenty — and the row still spans the container instead of leaving a
     dead gutter on the right. */
  grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
  justify-content: start;
  gap: clamp(var(--spacing-md), 2.5vw, var(--spacing-xl));
  list-style: none;
}

.shop-home-shelves {
  display: grid;
  gap: clamp(var(--spacing-2xl), 6vw, 5rem);
}

.shop-product-shelf {
  position: relative;
  display: grid;
  gap: var(--spacing-lg);
  padding-inline-start: clamp(var(--spacing-sm), 1.5vw, var(--spacing-md));
  padding-block: var(--spacing-md) var(--spacing-lg);
  border-radius: var(--radius-2xl);
  background: linear-gradient(
    110deg,
    color-mix(in srgb, var(--shop-accent) 4%, var(--surface)),
    transparent 48%
  );
}

.shop-product-shelf--highlights {
  padding: clamp(var(--spacing-md), 3vw, var(--spacing-xl));
  border: 1px solid color-mix(in srgb, var(--shop-accent) 20%, var(--border));
  background:
    radial-gradient(
      circle at 92% 0%,
      color-mix(in srgb, var(--shop-accent) 18%, transparent),
      transparent 34%
    ),
    linear-gradient(
      120deg,
      color-mix(in srgb, var(--shop-accent) 9%, var(--surface)),
      var(--surface) 58%
    );
  box-shadow: 0 24px 60px
    color-mix(in srgb, var(--shop-accent) 10%, transparent);
}

.shop-product-shelf__eyebrow {
  color: var(--primary-strong);
  font-weight: var(--weight-bold);
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.shop-product-shelf__heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: var(--spacing-md);
  min-height: 4.5rem;
  padding: var(--spacing-xs) 0 var(--spacing-md);
  border-block-end: 1px solid
    color-mix(in srgb, var(--shop-accent) 14%, var(--border-subtle));
}

.shop-product-shelf__heading > div {
  display: grid;
  gap: var(--spacing-xs);
}

.shop-product-shelf__heading h3 {
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.shop-product-shelf__link {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  min-height: var(--touch-target);
  color: var(--primary-strong);
  font-size: var(--type-small-size);
  font-weight: var(--weight-semibold);
  white-space: nowrap;
  transition: gap var(--duration-fast) var(--easing-standard);
}

.shop-product-shelf__link:hover {
  gap: var(--spacing-sm);
}

.shop-product-shelf__track {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
  justify-content: start;
  gap: clamp(var(--spacing-md), 2.5vw, var(--spacing-xl));
  margin: 0;
  padding: 0;
  list-style: none;
}

.shop-results-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-md);
  padding: var(--spacing-md) var(--spacing-lg);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: 0 10px 30px color-mix(in srgb, var(--text) 5%, transparent);
}

.shop-results-heading__controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--spacing-sm);
}

/* The sort control is a `SelectField`, so its border, radius, chevron and
   focus ring belong to the design system. What stays here is the only thing
   that is a decision of this surface: how wide it sits beside the result
   count, and its compact type. */
.shop-results-sort .aents-field__control {
  border-color: color-mix(in srgb, var(--shop-accent) 18%, var(--border));
  background: color-mix(in srgb, var(--shop-accent) 4%, var(--surface));
  border-radius: var(--radius-full);
}

.shop-results-sort .aents-field__input {
  min-width: 8.5rem;
  font-size: var(--type-small-size);
}

/* The card has one job: show the product, name it, price it. Everything it
   does on hover is one idea — it lifts toward the pointer — because a grid of
   twenty cards each running its own light show reads as noise, not as craft. */
.shop-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  /* A flat ground: the photo is the colour on this card, and a tinted gradient
     under it competes with the very thing it is framing. */
  background: var(--surface);
  transition:
    transform var(--duration-normal) var(--easing-standard),
    box-shadow var(--duration-normal) var(--easing-standard),
    border-color var(--duration-normal) var(--easing-standard);
  animation: shop-rise 450ms var(--easing-standard) both;
}

.shop-grid > .shop-card:nth-child(2),
.shop-product-shelf__track > .shop-card:nth-child(2) {
  animation-delay: 70ms;
}
.shop-grid > .shop-card:nth-child(3),
.shop-product-shelf__track > .shop-card:nth-child(3) {
  animation-delay: 140ms;
}
.shop-grid > .shop-card:nth-child(4),
.shop-product-shelf__track > .shop-card:nth-child(4) {
  animation-delay: 210ms;
}
.shop-grid > .shop-card:nth-child(4n + 5) {
  animation-delay: 80ms;
}
.shop-grid > .shop-card:nth-child(4n + 6) {
  animation-delay: 150ms;
}
.shop-grid > .shop-card:nth-child(4n + 7) {
  animation-delay: 220ms;
}
.shop-grid > .shop-card:nth-child(4n + 8) {
  animation-delay: 290ms;
}

.shop-card--featured {
  border-color: color-mix(in srgb, var(--shop-accent) 32%, var(--border));
  box-shadow: 0 14px 34px
    color-mix(in srgb, var(--shop-accent) 10%, transparent);
}

/* The buy action lives beside the price, not over the photo: a translucent bar
   on a product shot is invisible on anything light, and one that only appears
   on hover does not exist on a phone at all. Solid, always on screen, and out
   of the way of the photo — which is now the link to the product. */
.shop-card__add {
  z-index: 2;
  flex: 0 0 auto;
  width: var(--touch-target);
  height: var(--touch-target);
  padding: 0;
  justify-content: center;
  border-radius: var(--radius-full);
  box-shadow: 0 6px 16px color-mix(in srgb, var(--shop-accent) 30%, transparent);
  transition:
    transform var(--duration-fast) var(--easing-standard),
    box-shadow var(--duration-fast) var(--easing-standard);
}

/* A word, not a glyph: "choose options" has no icon a buyer reads at a glance.
   On a card too narrow for price and label side by side, the label drops
   under the price instead of squeezing it. */
.shop-card__add--options {
  width: auto;
  max-width: 100%;
  padding-inline: var(--spacing-md);
  white-space: nowrap;
}

.shop-card:hover .shop-card__add {
  transform: scale(1.06);
  box-shadow: 0 10px 22px
    color-mix(in srgb, var(--shop-accent) 38%, transparent);
}

@media (prefers-reduced-motion: reduce) {
  .shop-card:hover .shop-card__add {
    transform: none;
  }
}

.shop-chip--child::before {
  content: "↳";
  margin-right: 0.3rem;
  opacity: 0.55;
}

.shop-facet {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding: var(--spacing-md);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.shop-facet legend {
  margin-bottom: 0.6rem;
  font-weight: 700;
}

.shop-quick-view-dialog.aents-dialog {
  width: min(64rem, calc(100vw - 2rem));
  max-width: none;
}

.shop-quick-view-dialog .aents-dialog__surface {
  width: 100%;
  overflow: hidden;
}

.shop-quick-view-dialog .aents-dialog__body {
  width: 100%;
}

.shop-quick-view {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(18rem, 0.92fr);
  gap: clamp(1.25rem, 4vw, 2.5rem);
}

.shop-quick-view__gallery .aents-gallery__frame {
  border-radius: var(--radius-xl);
  background: linear-gradient(145deg, var(--surface-alt), var(--surface));
}

.shop-quick-view__gallery .aents-gallery__frame img {
  padding: var(--spacing-md);
}

.shop-quick-view__content {
  align-content: start;
  min-width: 0;
}

.shop-quick-view__heading {
  display: grid;
  justify-items: start;
  gap: var(--spacing-sm);
}

.shop-quick-view__heading h2 {
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  line-height: 1.15;
  text-wrap: pretty;
}

.shop-quick-view__price {
  display: grid;
  gap: var(--spacing-xs);
  padding: var(--spacing-md);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--shop-accent) 5%, var(--surface));
}

.shop-quick-view__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.shop-quick-view__actions .aents-btn {
  width: 100%;
}

@keyframes shop-spin {
  to {
    transform: rotate(1turn);
  }
}

@media (max-width: 48rem) {
  .shop-specs__row {
    grid-template-columns: 1fr;
    gap: var(--spacing-xs);
  }
  .shop-quick-view-dialog.aents-dialog {
    width: calc(100% - 2 * var(--spacing-md));
  }
  .shop-quick-view {
    grid-template-columns: 1fr;
  }
  .shop-quick-view__actions {
    grid-template-columns: 1fr;
  }
}

.shop-card:hover {
  /* No perspective tilt: it blurs the text mid-transition and buys nothing.
     No saturate() either — raising the saturation of a product photo on hover
     misrepresents the colour of the thing being sold. */
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--shop-accent) 38%, var(--border));
  box-shadow: 0 18px 40px color-mix(in srgb, var(--text) 12%, transparent);
}

/* Nothing to lift toward on a product that cannot be bought. */
.shop-card--sold-out:hover {
  transform: none;
  border-color: var(--border-subtle);
  box-shadow: none;
}

/* The name is the only link: its ::after turns the whole card into its hit
   area, which keeps the quick-view button out of the anchor. */
/* The whole card is the target through ::after; the link box itself still
   meets the minimum for anything that measures it, such as switch access. */
.shop-card__link {
  display: block;
  min-height: var(--touch-target);
  color: inherit;
  text-decoration: none;
}

.shop-card__link::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  content: "";
}

.shop-card__link:focus-visible {
  outline: none;
}

.shop-card:has(.shop-card__link:focus-visible) {
  outline: 3px solid var(--shop-focus-ring);
  outline-offset: 2px;
  box-shadow: 0 0 0 2px var(--shop-focus-halo);
}

/* Four bands: category, name, scarcity, price. The name reserves its two
   lines and the slack collects above the price, so across a row the names
   start on the same line and the prices end on it — which is the whole reason
   a shopper can compare a grid at a glance. */
.shop-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: var(--spacing-xs);
  padding: var(--spacing-md) var(--spacing-lg) var(--spacing-lg);
}

/* Pushed down by whatever slack is left, so the price sits on the bottom edge
   of every card in the row — with or without a category line above it and a
   scarcity line beside it. (A grid with fixed rows cannot do this: the
   optional lines change how many children there are, and auto-placement moves
   the footer up a row on the cards that omit them.) */
.shop-card__footer {
  margin-block-start: auto;
}

/* Three lines of a compact scale, whether the name fills them or not:
   supplier names run long, and at this size most of one fits while the price
   below it stays the loudest thing in the card. */
.shop-card__title {
  --shop-card-title-line: 1.375rem;
  display: -webkit-box;
  min-height: calc(var(--shop-card-title-line) * 3);
  overflow: hidden;
  font-size: clamp(0.9375rem, 0.85rem + 0.3vw, 1.0625rem);
  line-height: var(--shop-card-title-line);
  font-weight: var(--weight-semibold);
  letter-spacing: -0.012em;
  text-wrap: pretty;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

/* Muted, not accent: with twenty cards on screen, twenty brand-coloured
   category lines leave no colour left for the discount and the price. */
.shop-card__category {
  overflow: hidden;
  color: var(--text-muted);
  font-size: var(--type-caption-size);
  line-height: var(--type-caption-line);
  font-weight: var(--weight-semibold);
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* The warning token is a fill color: painted as text on a light surface it
   sits near 2:1. Mixed toward the text color it clears AA while still reading
   as the same amber. */
.shop-card__stock {
  color: color-mix(in srgb, var(--warning) 55%, var(--text));
  font-size: var(--type-small-size);
  line-height: var(--type-small-line);
  font-weight: var(--weight-semibold);
}

.shop-card__media {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: color-mix(in srgb, var(--surface-alt) 92%, var(--shop-accent) 8%);
}

.shop-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    opacity var(--duration-normal) var(--easing-standard),
    filter var(--duration-normal) var(--easing-standard),
    transform 600ms var(--easing-standard);
}

/* Skeleton while the photo decodes: a grid of empty tiles is calmer than a
   row of images popping in one by one. */
.shop-card__media.is-loading::before {
  position: absolute;
  z-index: 1;
  inset: 0;
  background:
    linear-gradient(
        90deg,
        transparent,
        color-mix(in srgb, var(--surface) 65%, transparent),
        transparent
      )
      0 0 / 40% 100% no-repeat,
    var(--surface-alt);
  content: "";
  animation: shop-shimmer 1.4s var(--easing-standard) infinite;
}

.shop-card__image--secondary {
  position: absolute;
  inset: 0;
  opacity: 0;
}
.shop-card:hover
  .shop-card__image--primary:has(+ .shop-card__image--secondary) {
  opacity: 0;
}
.shop-card:hover .shop-card__image--secondary {
  opacity: 1;
  transform: scale(1.045);
}
.shop-card:hover .shop-card__media img:not(.shop-card__image--secondary) {
  transform: scale(1.045);
}

/* Flags stack, so a discount and a merchant badge never fight for the corner. */
.shop-card__flags {
  position: absolute;
  z-index: 2;
  top: var(--spacing-sm);
  left: var(--spacing-sm);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  pointer-events: none;
}

/* Flags sit on top of a photo, so even the outline chip needs its own ground:
   a subtle badge over a picture is unreadable. */
.shop-card__flag {
  box-shadow: var(--shadow-1);
}

.shop-card__flag.aents-badge--subtle {
  border-color: color-mix(in srgb, var(--border) 70%, transparent);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  color: var(--text);
  backdrop-filter: blur(8px);
}

/* Sold out: a band the eye catches in a grid, never a covered-up photo. */
.shop-card__veil {
  position: absolute;
  z-index: 2;
  inset: auto 0 0;
  padding-block: 0.4rem;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  color: var(--text);
  font-size: var(--type-small-size);
  font-weight: var(--weight-bold);
  letter-spacing: 0.09em;
  text-align: center;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
}

.shop-card--sold-out .shop-card__media img {
  filter: grayscale(1);
  opacity: 0.75;
}

.shop-card--sold-out .shop-card__price {
  color: var(--text-muted);
}

/* Stands in for a missing photo: an empty tile, never a broken image. */
.shop-placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  background:
    linear-gradient(
      90deg,
      transparent 49.7%,
      color-mix(in srgb, var(--shop-accent) 7%, transparent) 50%,
      transparent 50.3%
    ),
    linear-gradient(
      transparent 49.7%,
      color-mix(in srgb, var(--shop-accent) 7%, transparent) 50%,
      transparent 50.3%
    ),
    radial-gradient(
      circle at 70% 25%,
      color-mix(in srgb, var(--shop-accent) 28%, transparent),
      transparent 35%
    ),
    linear-gradient(145deg, var(--surface-alt), var(--surface));
}

.shop-placeholder span {
  color: color-mix(in srgb, var(--shop-accent-strong) 60%, transparent);
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: var(--weight-extrabold);
  opacity: 0.22;
}

.shop-card__footer {
  display: flex;
  /* Center, not baseline: the round buy button next to the price has no text
     baseline to sit on, and baseline alignment pushed it below the price. */
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-sm);
  padding-block-start: var(--spacing-xs);
}

.shop-card__price {
  color: var(--text);
  font-size: 1.2em;
  font-weight: var(--weight-bold);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

/* A discounted price is the news on the card, so it carries the colour the
   struck-through original gives up. */
.shop-card--sale .shop-card__price {
  color: var(--primary-strong);
}
.shop-card__prices {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: var(--spacing-xs);
  min-width: 0;
}
.shop-card__compare {
  color: var(--text-muted);
  font-size: var(--type-small-size);
  font-variant-numeric: tabular-nums;
  text-decoration: line-through;
}

@keyframes shop-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shop-cover-arrive {
  from {
    opacity: 0.4;
    transform: scale(1.04);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes shop-glow {
  to {
    transform: translate(-8%, 10%) scale(1.12);
  }
}

@keyframes shop-shimmer {
  from {
    background-position:
      -60% 0,
      0 0;
  }
  to {
    background-position:
      160% 0,
      0 0;
  }
}

@media (min-width: 48.0625rem) and (max-width: 64rem) {
  .shop-grid,
  .shop-product-shelf__track {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .shop-main,
  .shop-hero__cover,
  .shop-hero__content,
  .shop-card,
  .shop-card__media.is-loading::before,
  .shop-hero__glow,
  .shop-drawer,
  .shop-drawer__panel,
  .shop-filter-drawer,
  .shop-filter-panel {
    animation: none;
  }
  .shop-card:hover,
  .shop-card:hover .shop-card__media img,
  .shop-card__add {
    transform: none;
  }
  .shop-infinite-scroll > span {
    animation: none;
  }
}

.shop-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-md);
  margin-top: var(--spacing-xl);
  padding: var(--spacing-sm);
  border: 1px solid color-mix(in srgb, var(--shop-accent) 14%, var(--border));
  border-radius: var(--radius-xl);
  background: color-mix(in srgb, var(--shop-accent) 3%, var(--surface));
  box-shadow: 0 12px 32px color-mix(in srgb, var(--text) 5%, transparent);
}

.shop-pagination__controls,
.shop-pagination__pages {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
}

.shop-pagination__page {
  display: grid;
  place-items: center;
  min-width: var(--touch-target);
  min-height: var(--touch-target);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  background: var(--surface);
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.shop-pagination__page:hover,
.shop-pagination__page[aria-current="page"] {
  border-color: var(--shop-accent);
  background: var(--shop-accent);
  color: var(--shop-accent-foreground);
  box-shadow: 0 6px 16px color-mix(in srgb, var(--shop-accent) 28%, transparent);
  transform: translateY(-2px) scale(1.04);
}

.shop-infinite-scroll {
  display: grid;
  min-height: var(--touch-target);
  place-items: center;
  align-content: center;
  gap: var(--spacing-sm);
  margin-block-start: var(--spacing-lg);
}

.shop-catalog-progress {
  display: grid;
  justify-items: center;
  gap: var(--spacing-xs);
  margin-block-start: var(--spacing-xl);
}

.shop-catalog-progress > div {
  width: min(22rem, 80vw);
  height: 5px;
  overflow: hidden;
  border-radius: var(--radius-full);
  background: color-mix(in srgb, var(--shop-accent) 10%, var(--surface-alt));
}

.shop-catalog-progress > div span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(
    90deg,
    var(--shop-accent),
    color-mix(in srgb, var(--shop-accent) 58%, #61d9ff)
  );
  box-shadow: 0 0 14px color-mix(in srgb, var(--shop-accent) 35%, transparent);
  transform: scaleX(calc(var(--shop-progress, 0) / 100));
  transform-origin: left center;
  transition: transform 420ms var(--easing-standard);
}

.shop-back-to-top {
  position: fixed;
  z-index: 35;
  bottom: max(var(--spacing-lg), env(safe-area-inset-bottom));
  left: max(var(--spacing-lg), env(safe-area-inset-left));
  display: grid;
  width: 3.4rem;
  height: 3.4rem;
  place-items: center;
  padding: 0.35rem;
  border: 1px solid color-mix(in srgb, var(--shop-accent) 35%, var(--border));
  border-radius: 50%;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  color: var(--primary-strong);
  box-shadow: 0 16px 42px color-mix(in srgb, var(--text) 18%, transparent);
  backdrop-filter: blur(16px) saturate(150%);
  cursor: pointer;
  animation: shop-rise 220ms var(--easing-standard) both;
}

.shop-back-to-top span {
  font-size: 1.15rem;
  line-height: 1;
}

.shop-back-to-top small {
  font-size: 0.58rem;
  font-weight: var(--weight-bold);
  line-height: 1;
  text-transform: uppercase;
}

.shop-back-to-top:hover {
  background: var(--shop-accent);
  color: var(--shop-accent-foreground);
  transform: translateY(-3px);
}

.shop-infinite-scroll > span {
  width: 2rem;
  height: 2rem;
  border: 3px solid color-mix(in srgb, var(--shop-accent) 16%, transparent);
  border-top-color: var(--shop-accent);
  border-radius: 50%;
  animation: shop-spin 700ms linear infinite;
}

.shop-infinite-scroll .aents-btn {
  min-width: 11rem;
  box-shadow: 0 10px 28px
    color-mix(in srgb, var(--shop-accent) 12%, transparent);
}

@media (max-width: 64rem) {
  .shop-pagination {
    align-items: stretch;
    flex-direction: column;
  }
  .shop-pagination__controls {
    justify-content: space-between;
    overflow-x: auto;
    padding-block-end: 2px;
  }
  .shop-pagination__range {
    text-align: center;
  }
}

.shop-catalog-breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  color: var(--text-muted);
  width: fit-content;
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--radius-full);
  background: color-mix(in srgb, var(--shop-accent) 6%, var(--surface));
  font-size: var(--type-small-size);
}

.shop-catalog-breadcrumb a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: var(--touch-target);
  min-height: var(--touch-target);
  padding-inline: var(--spacing-xs);
  color: var(--primary-strong);
}

.shop-catalog-empty {
  min-height: 22rem;
  justify-content: center;
  padding: var(--spacing-xl);
  border: 1px dashed color-mix(in srgb, var(--shop-accent) 24%, var(--border));
  border-radius: var(--radius-xl);
  background: linear-gradient(145deg, var(--surface), var(--surface-alt));
  text-align: center;
}

.shop-catalog-empty__suggestions {
  display: grid;
  gap: var(--spacing-sm);
  justify-items: center;
}

.shop-catalog-empty__suggestions ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--spacing-sm);
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Standalone chips, not a scrolling filter row: each is a full touch target. */
.shop-catalog-empty__suggestions .shop-chip {
  min-height: var(--touch-target);
}

.shop-catalog-empty__icon,
.shop-cart-empty__icon {
  display: grid;
  place-items: center;
  width: 4.25rem;
  height: 4.25rem;
  border: 1px solid color-mix(in srgb, var(--shop-accent) 20%, var(--border));
  border-radius: 50%;
  background: color-mix(in srgb, var(--shop-accent) 8%, var(--surface));
  color: var(--primary-strong);
  box-shadow: var(--shadow-2);
}

/* On a phone the front door already lists every shelf as tiles right above
   the search; a second row of the same names under it only pushes the
   products further down. Wider screens keep the row beside the search. */
@media (max-width: 48rem) {
  .shop-catalog__tools .shop-category-chips--home {
    display: none;
  }
}

/* apps/shop/app/styles/product.css */
/* apps/shop · product detail
 *
 * Gallery, buy box, spec sheet, related and recently viewed, and the sticky
 * purchase bar a phone gets. Breakpoints: see ./tokens.css.
 */

/* ---------------- Product detail ---------------- */

.shop-detail {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(var(--spacing-xl), 5vw, var(--spacing-3xl));
}

.shop-product-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--spacing-xs);
  color: var(--text-muted);
}

.shop-product-breadcrumb .aents-btn {
  min-height: 2rem;
  padding-inline: var(--spacing-xs);
}

.shop-product-breadcrumb__separator {
  color: color-mix(in srgb, var(--text-muted) 58%, transparent);
  font-size: 1.1rem;
}

.shop-product-visual {
  min-width: 0;
}

.shop-product-gallery .aents-gallery__frame {
  border-color: color-mix(
    in srgb,
    var(--shop-accent) 12%,
    var(--border-subtle)
  );
  border-radius: clamp(var(--radius-xl), 2.6vw, 2rem);
  background:
    radial-gradient(circle at 50% 42%, var(--surface) 0 32%, transparent 68%),
    linear-gradient(
      145deg,
      var(--surface-alt),
      color-mix(in srgb, var(--surface-alt) 90%, var(--shop-accent))
    );
  box-shadow: 0 24px 60px color-mix(in srgb, var(--text) 8%, transparent);
}

.shop-product-gallery .aents-gallery__frame img {
  object-fit: contain;
  padding: clamp(var(--spacing-md), 3vw, var(--spacing-xl));
  transition: transform var(--duration-normal) var(--easing-standard);
}

.shop-product-gallery .aents-gallery__frame:hover img {
  transform: scale(1.018);
}

.shop-product-gallery .aents-gallery__hint {
  inset-block-end: var(--spacing-md);
  inset-inline-end: var(--spacing-md);
  padding: var(--spacing-sm);
  background: color-mix(in srgb, var(--text) 72%, transparent);
  box-shadow: var(--shadow-2);
}

.shop-product-gallery .aents-gallery__thumbs {
  padding: var(--spacing-xs);
}

.shop-product-gallery .aents-gallery__thumb {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.shop-product-gallery .aents-gallery__thumb img {
  object-fit: contain;
}

.shop-product-categories {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-xs);
}

.shop-product-category.aents-btn {
  min-height: 1.9rem;
  padding-inline: 0;
  color: var(--primary-strong);
  font-size: var(--type-small-size);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, currentColor 35%, transparent);
  text-underline-offset: 0.22em;
}

.shop-detail__buybox {
  position: relative;
  display: grid;
  /* The column is the boundary: on a laptop this box is a fixed-width sticky
     rail, and an auto track would let any one child — a long variant name, an
     unbreakable price — widen it past the card it is painted in. */
  grid-template-columns: minmax(0, 1fr);
  gap: var(--spacing-lg);
  align-self: start;
  min-width: 0;
}

.shop-product-heading {
  display: grid;
  gap: var(--spacing-xs);
}

.shop-product-heading__badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-xs);
  margin-block-end: var(--spacing-xs);
}

/* Never clamped: this is the one place the buyer reads the full name, and a
   supplier title cut after four lines hides the model or capacity that tells
   two listings apart. The clamped scale keeps a long one from taking over. */
.shop-product-title {
  max-width: 30ch;
  font-size: clamp(1.45rem, 2.35vw, 1.85rem);
  line-height: 1.18;
  letter-spacing: -0.022em;
  text-wrap: pretty;
  overflow-wrap: anywhere;
}

.shop-product-sku {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-xs);
  margin-block-start: var(--spacing-xs);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0.025em;
}

.shop-product-sku strong,
.shop-product-price {
  font-variant-numeric: tabular-nums;
}

.shop-product-priceblock {
  display: grid;
  gap: var(--spacing-xs);
  padding: var(--spacing-md);
  border-block: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background: linear-gradient(
    115deg,
    color-mix(in srgb, var(--shop-accent) 7%, var(--surface)),
    var(--surface) 70%
  );
}

.shop-product-price {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: var(--weight-bold);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.shop-detail__prices {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
}

.shop-product-summary,
.shop-product-order {
  display: grid;
  gap: var(--spacing-md);
}

.shop-product-summary {
  padding-block: var(--spacing-xs);
}

/* A measure of about 62 characters (Brand Book §5). The owner writes the
   description in a plain textarea, so its line breaks are meaningful. */
.shop-detail__description {
  max-width: 62ch;
  color: var(--text-secondary);
  line-height: 1.7;
  white-space: pre-line;
}

.shop-product-order {
  padding: var(--spacing-md);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background: var(--surface-alt);
}

.shop-product-summary h2 {
  text-wrap: balance;
}

/* The stepper takes the width its own tracks need; the add button takes the
   rest, and drops to a line of its own when what is left cannot hold its
   label. Flex, not grid: a grid track can be told to shrink below the button's
   own content, and the sticky buy column on a laptop is narrow enough that it
   did — the label ended up painted outside the pill. A flex item stops at its
   content and wraps instead. */
.shop-product-order__row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: var(--spacing-sm);
}

.shop-product-add {
  flex: 1 1 10rem;
}

.shop-product-information {
  display: grid;
  gap: var(--spacing-xl);
  margin-block-start: var(--spacing-2xl);
  padding: var(--spacing-xl);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--surface-alt), var(--surface));
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--surface) 80%, transparent);
}

.shop-product-information__heading {
  display: grid;
  align-content: start;
  gap: var(--spacing-xs);
}

.shop-product-information .shop-specs__list {
  min-width: 0;
}

.shop-product-information .shop-specs__row:first-child {
  border-block-start: 1px solid var(--border-subtle);
}

.shop-product-information .shop-specs__row {
  padding-inline: var(--spacing-sm);
}

.shop-product-information .shop-specs__value {
  overflow-wrap: anywhere;
}

.shop-product-information .shop-specs__row:nth-child(even) {
  background: color-mix(in srgb, var(--shop-accent) 3.5%, transparent);
}

.shop-trust {
  display: grid;
  gap: var(--spacing-sm);
  padding: var(--spacing-md);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--success) 4%, var(--surface));
}
.shop-product-secondary-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-xs);
}
.shop-trust > div {
  display: grid;
  grid-template-columns: 1.5rem minmax(0, 1fr);
  align-items: start;
  gap: var(--spacing-xs);
}
.shop-trust > div > span {
  display: grid;
  place-items: center;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: color-mix(in srgb, var(--primary) 14%, transparent);
  color: var(--primary-strong);
  font-size: 0.75rem;
  font-weight: var(--weight-bold);
}

@media (min-width: 48.0625rem) {
  /* The header owns the search at this width, so the toolbar is what is left:
     the category chips and the filter button, on one line. */
  .shop-catalog__tools {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
  }

  .shop-catalog__tools > nav {
    grid-column: 1;
    grid-row: 1;
  }

  .shop-filterbar {
    grid-column: 2;
    grid-row: 1;
    min-height: var(--touch-target);
  }

  /* Up to ten brand chips are wider than the row: sharing it, they starve the
     category chips to nothing and push the "all categories" toggle over the
     filter button. With brands, the filter bar takes its own full row. */
  .shop-catalog__tools:has(.shop-brand-filter) .shop-filterbar {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .shop-active-filters {
    grid-column: 1 / -1;
  }

  .shop-detail {
    grid-template-columns: minmax(0, 1.18fr) minmax(21rem, 0.82fr);
  }
  /* Three areas, two columns: gallery and spec sheet share the wide left
     column, so the sheet fills the space the buy column leaves under the
     gallery instead of starting a full-width band below a half-empty screen.
     The sheet needs the wide column: in the 21rem buy column its label/value
     table overflowed the card. Only the buy column sticks — a sticky item that
     spans a single row slides down over whatever sits in the row below it, and
     the buy box is the one worth following anyway. */
  .shop-detail {
    align-items: start;
  }
  .shop-product-visual {
    grid-column: 1;
    grid-row: 1;
  }
  .shop-product-information {
    grid-column: 1;
    grid-row: 2;
    margin-block-start: 0;
  }
  .shop-detail__buybox {
    grid-column: 2;
    grid-row: 1 / span 2;
    position: sticky;
    top: 7rem;
    padding: var(--spacing-xl);
    overflow: hidden;
    border: 1px solid
      color-mix(in srgb, var(--shop-accent) 16%, var(--border-subtle));
    border-radius: var(--radius-xl);
    background: var(--surface);
    box-shadow: 0 22px 60px color-mix(in srgb, var(--text) 10%, transparent);
  }
  .shop-detail__buybox::before {
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: linear-gradient(
      90deg,
      var(--shop-accent),
      var(--shop-accent-strong)
    );
    content: "";
  }
  /* The shared rule floors the label at 8rem, which makes the row wider than
     the panel and spills the values out of the card. Here the label never
     claims more than a third of the row, so the value keeps the larger half
     whatever the column ends up measuring. */
  .shop-product-information .shop-specs__row {
    grid-template-columns: minmax(0, min(12rem, 34%)) minmax(0, 1fr);
    align-items: baseline;
  }
}

.shop-mobile-buy {
  display: none;
}
.shop-related {
  display: grid;
  gap: var(--spacing-lg);
}

/* ---------------- Sold out ---------------- */

.shop-soldout {
  display: grid;
  min-width: 0;
  gap: var(--spacing-sm);
}

/* The call is a sentence; on a phone it wraps inside the button instead of
   pushing the whole buy box wider than the screen. */
.shop-soldout .aents-btn {
  min-width: 0;
  height: auto;
  min-height: var(--touch-target);
  padding-block: var(--spacing-sm);
  white-space: normal;
  text-align: center;
}

.shop-soldout-alternatives {
  display: grid;
  gap: var(--spacing-md);
}

/* Two cards beside the buy box: enough to offer a way on without pushing the
   description and the trust notes off the screen. */
.shop-grid--compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* apps/shop/app/styles/checkout.css */
/* apps/shop · cart and checkout
 *
 * Cart drawer, cart page, buyer form, receipt, transfer details and the
 * full-page states. Breakpoints: see ./tokens.css.
 */

/* ---------------- Cart drawer ---------------- */

.shop-drawer {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  justify-content: flex-end;
  background: rgb(0 0 0 / 38%);
  backdrop-filter: blur(5px);
  animation: shop-fade var(--duration-normal) var(--easing-standard) both;
}
.shop-drawer__panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: min(31rem, 100%);
  height: 100%;
  overflow: hidden;
  overscroll-behavior: contain;
  padding: var(--spacing-lg);
  background: var(--surface);
  box-shadow: var(--shadow-5);
  animation: shop-drawer-in var(--duration-slow) var(--easing-standard) both;
}
.shop-drawer__header,
.shop-drawer__total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-md);
}
.shop-drawer__header {
  padding-block-end: var(--spacing-lg);
  border-bottom: 1px solid var(--border-subtle);
}
.shop-drawer__lines {
  overflow-y: auto;
  list-style: none;
  overscroll-behavior: contain;
}
.shop-drawer__line {
  display: grid;
  grid-template-columns: 5rem minmax(0, 1fr);
  gap: var(--spacing-md);
  padding-block: var(--spacing-md);
  border-bottom: 1px solid var(--border-subtle);
}
.shop-drawer__media {
  width: 5rem;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--surface-alt);
}
.shop-drawer__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.shop-drawer__copy {
  display: grid;
  align-content: start;
  gap: var(--spacing-xs);
  min-width: 0;
}
.shop-drawer__controls {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}
/* The visible label is the short verb; the product-specific name lives in the
   aria-label, so a long product name can neither clip nor widen the row. */
.shop-drawer__remove {
  min-width: var(--touch-target);
  min-height: var(--touch-target);
  margin-inline-start: auto;
  padding-inline: var(--spacing-sm);
  border: 0;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: var(--type-small-size);
  text-decoration: underline;
  background: transparent;
}
.shop-drawer__empty {
  display: grid;
  place-content: center;
  gap: var(--spacing-sm);
  text-align: center;
}
.shop-drawer__empty-icon {
  display: grid;
  place-items: center;
  width: 4rem;
  height: 4rem;
  margin-inline: auto;
  margin-block-end: var(--spacing-sm);
  border: 1px solid color-mix(in srgb, var(--shop-accent) 18%, var(--border));
  border-radius: 50%;
  background: color-mix(in srgb, var(--shop-accent) 8%, var(--surface));
  color: var(--primary-strong);
  box-shadow: var(--shadow-2);
}
.shop-drawer__footer {
  display: grid;
  gap: var(--spacing-sm);
  padding-block-start: var(--spacing-lg);
  border-top: 1px solid var(--border-subtle);
}
.shop-drawer__footer .aents-btn {
  width: 100%;
}
.shop-drawer__assurance {
  text-align: center;
  text-wrap: pretty;
}
@keyframes shop-fade {
  from {
    opacity: 0;
  }
}
@keyframes shop-drawer-in {
  from {
    transform: translateX(100%);
  }
}
@keyframes shop-sheet-in {
  from {
    transform: translateY(100%);
  }
}

@media (max-width: 48rem) {
  /* The first screen of a phone belongs to the merchandise. The hero
     keeps the store's name and promise and gives the rest back. */
  .shop-hero {
    min-height: 11rem;
    padding: var(--spacing-lg);
    border-radius: var(--radius-xl);
  }
  .shop-hero::before {
    inset: var(--spacing-sm);
  }
  .shop-hero__monogram {
    inset-inline-end: -0.5rem;
    font-size: clamp(9rem, 55vw, 13rem);
  }
  .shop-hero--with-cover {
    min-height: 19rem;
  }
  .shop-hero--with-cover::after {
    background: linear-gradient(0deg, rgb(0 0 0 / 82%), rgb(0 0 0 / 15%) 75%);
  }
  .shop-grid,
  .shop-product-shelf__track {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--spacing-sm);
  }

  /* One scrolling line instead of three stacked full-width cards. */
  .shop-commerce-signals {
    display: flex;
    /* Same reason as the category scroller: the box-shadow of these cards
       would be sliced off by a scroller that clips flush with its edge. */
    margin-block: calc(var(--spacing-sm) * -1);
    padding-block: var(--spacing-sm);
    margin-inline: calc(var(--spacing-md) * -1);
    padding-inline: var(--spacing-md);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .shop-commerce-signals::-webkit-scrollbar {
    display: none;
  }

  .shop-commerce-signals li {
    width: max-content;
    max-width: 78vw;
    flex: 0 0 auto;
    scroll-snap-align: start;
  }

  .shop-commerce-signals {
    mask-image: linear-gradient(
      90deg,
      transparent 0,
      #000 var(--spacing-md),
      #000 calc(100% - var(--spacing-xl)),
      transparent 100%
    );
  }

  /* The toolbar stops being its own tinted surface and becomes what it
     is: two controls and a row of chips. */
  .shop-catalog__tools {
    padding: 0;
    border: 0;
    background: none;
    box-shadow: none;
    /* No clipping here: the suggestion list drops out of this box by design,
       and the toolbar starts at the very pixel the text does, so clipping
       would cut the list and the first letter of the field's label. */
    overflow: visible;
    /* One column, one control per row: beside the filter button the field
       would be about 200px wide on a phone, and since the field carries a
       label and the button does not, the two would sit crooked. */
    grid-template-columns: minmax(0, 1fr);
  }

  .shop-catalog__tools .shop-search,
  .shop-filterbar {
    grid-column: 1;
  }

  .shop-catalog__tools > nav,
  .shop-active-filters {
    grid-column: 1 / -1;
  }

  /* The decorative sheen goes; the toolbar itself must not. Keep these two
     blocks apart: `display: none` on `:focus-within` would remove the toolbar
     the moment the search field takes focus and close the phone keyboard. */
  .shop-catalog__tools::before {
    display: none;
  }

  .shop-catalog__tools:focus-within {
    border: 0;
    box-shadow: none;
  }
  .shop-card__media {
    aspect-ratio: 1 / 1;
  }
  .shop-catalog__tools nav {
    display: grid;
  }
  .shop-categories__toggle {
    justify-self: start;
  }
  .shop-results-heading {
    display: grid;
    gap: var(--spacing-xs);
  }
  .shop-results-heading__controls {
    justify-content: space-between;
    flex-wrap: wrap;
  }
  .shop-card {
    border-radius: var(--radius-lg);
  }
  .shop-card__body {
    gap: var(--spacing-xs);
    padding: var(--spacing-sm);
  }
  /* The name is a heading whose level belongs to the caller (h2 or h3 in a
     grid, h4 in a shelf), and `Text` writes its size inline, so the scale is
     set on the class rather than on an element that may not be there. */
  .shop-card__price {
    font-size: 1.1em;
  }
  /* Two cards per row leave no room for a button over the photo: on a phone
     the card itself is the tap target. The `.shop-root` prefix matches the
     specificity every other override on this element uses, so this rule cannot
     lose a cascade race and leave an empty ring floating over the picture. */
  .shop-root .shop-card__quick {
    display: none;
  }
  .shop-card:hover {
    transform: none;
  }
  .shop-filter-panel {
    height: min(88dvh, 48rem);
    margin-top: auto;
    padding: var(--spacing-lg);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    animation-name: shop-sheet-in;
  }
  /* Room for the fixed buy bar, plus the strip the phone keeps for its home
     indicator. Without the inset the bar is 6rem tall on a notched iPhone and
     the last line of the page ends up underneath it. */
  .shop-detail {
    padding-bottom: calc(6rem + env(safe-area-inset-bottom));
  }
  .shop-product-gallery .aents-gallery__frame {
    border-radius: var(--radius-xl);
  }
  .shop-product-gallery .aents-gallery__frame img {
    padding: var(--spacing-sm);
  }
  .shop-product-title {
    font-size: clamp(1.35rem, 6vw, 1.75rem);
  }
  .shop-product-order__row {
    grid-template-columns: 1fr;
  }
  .shop-product-information {
    margin-block-start: var(--spacing-xl);
    padding: var(--spacing-md);
  }
  .shop-product-information .shop-specs__row {
    grid-template-columns: 1fr;
    gap: var(--spacing-xs);
    padding: var(--spacing-md) var(--spacing-sm);
  }
  .shop-cart-items {
    padding-inline: var(--spacing-md);
  }
  .shop-checkout-card.shop-form {
    padding: var(--spacing-lg);
  }
  .shop-mobile-buy {
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: 45;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-md);
    padding: var(--spacing-sm) var(--spacing-lg)
      max(var(--spacing-sm), env(safe-area-inset-bottom));
    border-top: 1px solid var(--border-subtle);
    background: color-mix(in srgb, var(--surface) 92%, transparent);
    box-shadow: var(--shadow-4);
    backdrop-filter: blur(18px);
  }
  .shop-mobile-buy .aents-text {
    max-width: 11rem;
  }
  .shop-drawer__panel {
    padding: var(--spacing-md);
  }
}

/* The gallery itself is `MediaGallery` from @aents/ui-web, frame, thumbnail
   track and expanded view included; only the placeholder for a product with no
   photo belongs to this surface. */

/* ---------------- Forms ---------------- */

.shop-form {
  max-width: 420px;
}

/* The stepper sizes itself from its own tracks: a max-width here would be
   narrower than they are and squeeze its buttons out of shape. */
.shop-quantity {
  width: max-content;
}

/* ---------------- Cart ---------------- */

.shop-lines {
  list-style: none;
}

.shop-cart-page__heading {
  display: grid;
  gap: var(--spacing-xs);
}

.shop-cart-page__heading h1 {
  font-size: clamp(2.25rem, 6vw, 4rem);
  line-height: 1;
  letter-spacing: -0.045em;
}

.shop-cart-layout {
  display: grid;
  gap: var(--spacing-xl);
  align-items: start;
}

.shop-cart-items,
.shop-checkout-card {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: 0 18px 48px color-mix(in srgb, var(--text) 7%, transparent);
}

.shop-cart-items {
  overflow: hidden;
  padding-inline: var(--spacing-lg);
}

.shop-checkout-card.shop-form {
  max-width: none;
  padding: var(--spacing-xl);
  background: linear-gradient(
    145deg,
    var(--surface),
    color-mix(in srgb, var(--shop-accent) 4%, var(--surface-alt))
  );
}

.shop-checkout-card .shop-actions .aents-btn {
  width: 100%;
}

.shop-cart-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--spacing-md);
  padding-block: var(--spacing-lg);
  border-top: 1px solid var(--border-subtle);
}

.shop-line {
  display: grid;
  grid-template-columns: var(--icon-4xl) minmax(0, 1fr);
  gap: var(--spacing-md);
  padding-block: var(--spacing-lg);
  border-bottom: 1px solid var(--border-subtle);
}

.shop-line__media {
  width: var(--icon-4xl);
  height: var(--icon-4xl);
  border-radius: var(--radius-lg);
  background: var(--surface-alt);
  overflow: hidden;
}

.shop-line__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.shop-line__actions {
  display: flex;
  align-items: flex-end;
  gap: var(--spacing-sm);
  grid-column: 1 / -1;
}

@media (min-width: 48.0625rem) {
  .shop-line {
    grid-template-columns: var(--icon-4xl) minmax(0, 1fr) auto;
    align-items: center;
  }

  .shop-line__actions {
    grid-column: auto;
  }
}

@media (min-width: 64.0625rem) {
  .shop-cart-layout {
    grid-template-columns: minmax(0, 1.2fr) minmax(20rem, 0.8fr);
  }

  .shop-checkout-card {
    position: sticky;
    top: 7rem;
  }
}

/* ---------------- Status, empty and receipt pages ---------------- */

.shop-status {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
  padding-block: var(--spacing-2xl);
}

.shop-status__panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(var(--spacing-xl), 6vw, var(--spacing-3xl));
  border: 1px solid color-mix(in srgb, var(--shop-accent) 18%, var(--border));
  border-radius: var(--radius-2xl);
  background: linear-gradient(145deg, var(--surface), var(--surface-alt));
  box-shadow: 0 28px 70px color-mix(in srgb, var(--text) 10%, transparent);
}

.shop-status__panel::after {
  position: absolute;
  z-index: -1;
  inset: auto -4rem -5rem auto;
  width: 15rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: color-mix(in srgb, var(--shop-accent) 10%, transparent);
  content: "";
}

.shop-status__panel p {
  max-width: 44ch;
  text-wrap: pretty;
}

.shop-panel {
  width: 100%;
  max-width: 520px;
  margin-inline: auto;
}

.shop-receipt {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-block: var(--spacing-2xl);
  padding: clamp(var(--spacing-xl), 5vw, var(--spacing-3xl));
  border: 1px solid color-mix(in srgb, var(--shop-accent) 18%, var(--border));
  border-radius: var(--radius-2xl);
  background: linear-gradient(
    145deg,
    var(--surface),
    color-mix(in srgb, var(--shop-accent) 5%, var(--surface-alt))
  );
  box-shadow: 0 24px 64px color-mix(in srgb, var(--text) 9%, transparent);
}

.shop-receipt::after {
  position: absolute;
  z-index: -1;
  inset: auto -4rem -5rem auto;
  width: 14rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: color-mix(in srgb, var(--shop-accent) 9%, transparent);
  content: "";
}

.shop-receipt__icon {
  display: grid;
  place-items: center;
  width: 4.5rem;
  height: 4.5rem;
  border: 1px solid color-mix(in srgb, var(--shop-accent) 24%, var(--border));
  border-radius: 50%;
  background: color-mix(in srgb, var(--shop-accent) 9%, var(--surface));
  color: var(--primary-strong);
  box-shadow: var(--shadow-2);
}

.shop-receipt--paid .shop-receipt__icon,
.shop-receipt--whatsapp .shop-receipt__icon,
.shop-receipt--transfer .shop-receipt__icon {
  border-color: color-mix(in srgb, var(--success) 30%, var(--border));
  background: color-mix(in srgb, var(--success) 10%, var(--surface));
  color: var(--success);
}

.shop-receipt--failed .shop-receipt__icon {
  border-color: color-mix(in srgb, var(--error) 30%, var(--border));
  background: color-mix(in srgb, var(--error) 9%, var(--surface));
  color: var(--error);
}

.shop-receipt .shop-form {
  max-width: none;
  padding: var(--spacing-lg);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.shop-status__store {
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ---------------- Bank transfer details ---------------- */

.shop-transfer__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--spacing-sm);
  padding-block: var(--spacing-sm);
  border-top: 1px solid var(--border-subtle);
}

.shop-transfer {
  border: 1px solid color-mix(in srgb, var(--shop-accent) 16%, var(--border));
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.shop-transfer__row:first-child {
  border-top: 0;
}

.shop-transfer__row {
  align-items: center;
}

.shop-transfer__row dd {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--spacing-sm);
  font-weight: var(--weight-medium);
  word-break: break-word;
}

/* The copy button's label swaps between "Copiar" and "Copiado"; a fixed
   minimum keeps the row from shifting when it does. */
.shop-copy.aents-btn {
  min-width: 7.5rem;
  min-height: var(--touch-target);
}

/* ---------------- Receipt ---------------- */

/* A plain h1, not <Text>: it receives focus when the receipt replaces the
   form, and <Text> does not take a ref. The scale is the h2 token's. */
.shop-receipt__title {
  font-size: var(--type-h2-size);
  line-height: var(--type-h2-line);
  font-weight: var(--type-h2-weight);
  text-wrap: balance;
}

/* "Ya transferí, enviar comprobante por WhatsApp" does not fit one line on a
   phone; it wraps inside the button rather than widening the receipt. */
.shop-receipt__handoff.aents-btn {
  min-width: 0;
  height: auto;
  min-height: var(--touch-target);
  padding-block: var(--spacing-sm);
  white-space: normal;
  text-align: center;
}

.shop-receipt__title:focus {
  outline: none;
}

.shop-receipt__title:focus-visible {
  outline: 3px solid var(--shop-focus-ring);
  outline-offset: 4px;
  border-radius: var(--radius-sm);
}

/* ---------------- Payment methods ---------------- */

.shop-payment-methods {
  display: grid;
  gap: var(--spacing-sm);
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.shop-payment-methods__legend {
  margin-block-end: var(--spacing-sm);
  padding: 0;
  font-weight: var(--weight-semibold);
}

.shop-payment-methods__options {
  display: grid;
  gap: var(--spacing-sm);
}

.shop-payment-option {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  min-height: calc(var(--touch-target) + var(--spacing-sm));
  padding: var(--spacing-sm) var(--spacing-md);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  cursor: pointer;
  transition:
    border-color var(--duration-fast) var(--easing-standard),
    background-color var(--duration-fast) var(--easing-standard);
}

.shop-payment-option:hover {
  border-color: var(--primary);
}

.shop-payment-option:has(input:checked) {
  border-color: var(--primary);
  background: color-mix(in srgb, var(--shop-accent) 8%, var(--surface));
}

.shop-payment-option:has(input:focus-visible) {
  outline: 3px solid var(--shop-focus-ring);
  outline-offset: 2px;
}

.shop-payment-option input {
  width: 1.25rem;
  height: 1.25rem;
  margin: 0;
  flex: none;
  accent-color: var(--primary);
}

.shop-payment-option input:focus-visible {
  outline: none;
}

.shop-payment-option__label {
  font-weight: var(--weight-medium);
}

.shop-checkout-failure {
  display: grid;
  gap: var(--spacing-sm);
}

@media (prefers-reduced-motion: reduce) {
  .shop-payment-option {
    transition: none;
  }
}

/* ---------------- Order follow-up (the buyer's public link) ---------------- */

.shop-track__states {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: var(--spacing-md);
}

.shop-track__states dt {
  color: var(--text-muted);
  font-size: var(--type-small-size);
  line-height: var(--type-small-line);
}

.shop-track__states dd {
  margin: 0;
  font-size: 1.35rem;
  font-weight: var(--weight-bold);
  letter-spacing: -0.02em;
}

.shop-track__items {
  display: grid;
  gap: 0;
}

/* Name first and wide, then the count, then the price: the three columns keep
   their edges however long a supplier title runs. */
.shop-track__items li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: baseline;
  gap: var(--spacing-sm) var(--spacing-md);
  padding-block: var(--spacing-sm);
  border-block-end: 1px solid var(--border-subtle);
}

.shop-track__item-name {
  overflow-wrap: anywhere;
}

.shop-track__item-qty {
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.shop-track__item-price {
  font-variant-numeric: tabular-nums;
  text-align: end;
}

.shop-track__total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--spacing-md);
  padding-block-start: var(--spacing-sm);
}

@media (max-width: 48rem) {
  .shop-track__items li {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .shop-track__item-price {
    grid-column: 2;
  }
  .shop-track__item-qty {
    grid-column: 1;
    grid-row: 2;
  }
}

/* apps/shop/app/styles/merchandising.css */
/* apps/shop · merchandising
 *
 * What a store puts in front of the buyer to sell: the home slides, the
 * strip of store facts, the brand shortcut over a shelf, the key features
 * beside a price and the one-tap WhatsApp order. Breakpoints: see ./tokens.css.
 */

/* ---------------- Home: the hero carries the slides ---------------- */

/* With slides the hero stops being a banner and becomes the shop window: the
   store's name on one side, what it sells on the other. */
.shop-hero.shop-hero--merch {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: clamp(var(--spacing-lg), 4vw, var(--spacing-3xl));
  min-height: 0;
  padding: clamp(var(--spacing-lg), 4vw, var(--spacing-2xl));
}

.shop-hero--merch .shop-hero__content {
  width: auto;
}

.shop-hero--merch .shop-hero__content h1 {
  font-size: clamp(2rem, 4.2vw, 3.5rem);
}

.shop-hero--merch.shop-hero--center {
  text-align: start;
}

.shop-hero--merch.shop-hero--center .shop-hero__content {
  justify-items: start;
}

.shop-hero__catalog-link .aents-icon {
  transition: transform var(--duration-fast) var(--easing-standard);
}

.shop-hero__catalog-link:hover .aents-icon {
  transform: translateX(2px);
}

.shop-slides {
  display: grid;
  gap: var(--spacing-sm);
  min-width: 0;
}

/* Scrolls and snaps on its own, so a swipe, a trackpad or the arrow keys move
   it without any script; the buttons below only add a way for a mouse. */
.shop-slides__track {
  display: grid;
  grid-auto-columns: 100%;
  grid-auto-flow: column;
  gap: var(--spacing-md);
  margin: 0;
  padding: 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  list-style: none;
  border-radius: var(--radius-xl);
}

.shop-slides__track::-webkit-scrollbar {
  display: none;
}

.shop-slides__track:focus-visible {
  outline: 2px solid var(--shop-focus-ring);
  outline-offset: 3px;
}

.shop-slide {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: var(--spacing-lg);
  min-height: 100%;
  padding: var(--spacing-lg);
  overflow: hidden;
  scroll-snap-align: start;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  background: var(--background);
  box-shadow: var(--shadow-2);
}

.shop-slide__media {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--background);
}

.shop-slide__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform var(--duration-slow) var(--easing-standard);
}

.shop-slide:hover .shop-slide__media img {
  transform: scale(1.03);
}

.shop-slide__body {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: var(--spacing-sm);
  min-width: 0;
}

.shop-slide__badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-xs);
}

.shop-slide__title {
  display: -webkit-box;
  overflow: hidden;
  color: var(--text);
  font-size: var(--type-h3-size);
  font-weight: var(--weight-bold);
  line-height: 1.25;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  text-wrap: balance;
}

/* One link per slide, stretched over all of it: the whole slide is the target
   and a screen reader still hears the product name once. */
.shop-slide__link {
  color: inherit;
  text-decoration: none;
}

.shop-slide__link::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  border-radius: inherit;
}

.shop-slide__link:focus-visible {
  outline: none;
}

.shop-slide:has(.shop-slide__link:focus-visible) {
  outline: 2px solid var(--shop-focus-ring);
  outline-offset: 2px;
}

.shop-slide__prices {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--spacing-sm);
}

.shop-slide__price {
  color: var(--text);
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: var(--weight-extrabold);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.shop-slide__compare {
  color: var(--text-muted);
  font-size: var(--type-body-size);
}

.shop-slide__savings {
  color: var(--success-strong);
  font-size: var(--type-small-size);
  font-weight: var(--weight-semibold);
}

.shop-slide__cta {
  margin-block-start: var(--spacing-xs);
  pointer-events: none;
}

/* The merchant's own image fills the slide; the words sit on a scrim of the
   theme's ink so they hold their contrast over any photo. */
.shop-slide--custom {
  grid-template-columns: minmax(0, 1fr);
  align-items: end;
  min-height: clamp(16rem, 30vw, 24rem);
  padding: clamp(var(--spacing-lg), 3vw, var(--spacing-2xl));
  border-color: transparent;
}

.shop-slide__backdrop {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shop-slide--custom::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background: linear-gradient(
    0deg,
    rgb(var(--navy-rgb) / 82%),
    rgb(var(--navy-rgb) / 20%) 70%
  );
}

.shop-slide__headline {
  max-width: 28ch;
  color: var(--white);
  font-size: clamp(1.5rem, 3.2vw, 2.4rem);
  font-weight: var(--weight-extrabold);
  letter-spacing: -0.03em;
  line-height: 1.1;
  text-wrap: balance;
}

.shop-slides__controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--spacing-sm);
}

.shop-slides__controls[hidden] {
  display: none;
}

.shop-slides__counter {
  min-width: 4ch;
  color: var(--text-secondary);
  font-size: var(--type-small-size);
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.shop-slides__step:disabled {
  opacity: var(--disabled-opacity);
}

.shop-hero--with-cover .shop-slides__counter {
  color: var(--white);
}

@media (max-width: 64rem) {
  .shop-hero.shop-hero--merch {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 48rem) {
  .shop-hero.shop-hero--merch {
    gap: var(--spacing-md);
    padding: var(--spacing-md);
  }

  .shop-hero--merch .shop-hero__content {
    gap: var(--spacing-xs);
  }

  .shop-hero--merch .shop-intro__description {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .shop-hero--merch .shop-hero__catalog-link {
    margin-block-start: var(--spacing-xs);
  }

  /* The next slide peeks in from the edge: on a phone that is what says
     "swipe", before anyone finds the buttons. */
  .shop-slides__track {
    grid-auto-columns: 88%;
    gap: var(--spacing-sm);
  }

  .shop-slide {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--spacing-md);
    padding: var(--spacing-md);
  }

  .shop-slide__media {
    aspect-ratio: 4 / 3;
  }

  .shop-slide__title {
    font-size: var(--type-body-size);
    -webkit-line-clamp: 2;
  }

  .shop-slide__cta {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .shop-slide__media img,
  .shop-hero__catalog-link .aents-icon {
    transition: none;
  }

  .shop-slide:hover .shop-slide__media img,
  .shop-hero__catalog-link:hover .aents-icon {
    transform: none;
  }
}

/* ---------------- Home: the store's facts ---------------- */

.shop-commerce-signals__icon {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--primary) 12%, var(--surface));
  color: var(--primary-strong);
}

.shop-commerce-signals li {
  grid-template-columns: 2rem minmax(0, 1fr);
}

.shop-commerce-signals a.shop-commerce-signals__link {
  display: inline-flex;
  align-items: center;
  min-height: var(--touch-target);
  color: var(--text);
  font-size: var(--type-small-size);
  font-weight: var(--weight-semibold);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

/* ---------------- Home: offers row ---------------- */

/* Eight offers in a two-column phone grid would stack four rows deep; one
   swipeable row keeps them a glance away from the slides. */
@media (max-width: 48rem) {
  .shop-product-shelf__track--scroll {
    display: grid;
    grid-auto-columns: minmax(11rem, 46%);
    grid-auto-flow: column;
    grid-template-columns: none;
    margin-inline: calc(var(--spacing-md) * -1);
    padding-inline: var(--spacing-md);
    padding-block-end: var(--spacing-xs);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-padding-inline: var(--spacing-md);
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .shop-product-shelf__track--scroll > .shop-card {
    scroll-snap-align: start;
  }
}

/* ---------------- Category photos in menus and tiles ---------------- */

.shop-menu-thumb,
.shop-category-tile__art--photo {
  overflow: hidden;
  background: var(--background);
}

.shop-menu-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.shop-category-tile__art--photo > img {
  object-fit: contain;
}

/* ---------------- Catalogue: filters and brand shortcut ---------------- */

.shop-filterbar {
  flex-wrap: wrap;
}

.shop-filterbar__open {
  flex: 0 0 auto;
}

.shop-brand-filter {
  min-width: 0;
  flex: 1 1 20rem;
}

.shop-brand-filter .shop-filters__list {
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}

.shop-brand-filter .shop-chip {
  white-space: nowrap;
}

/* ---------------- Product: key features and WhatsApp order ---------------- */

.shop-key-specs {
  display: grid;
  gap: var(--spacing-sm);
}

.shop-key-specs dl {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 9rem), 1fr));
  gap: var(--spacing-xs);
  margin: 0;
}

.shop-key-specs dl > div {
  display: grid;
  gap: 0.15rem;
  padding: var(--spacing-sm) var(--spacing-md);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--background);
}

.shop-key-specs dt {
  color: var(--text-muted);
  font-size: var(--type-caption-size);
  font-weight: var(--weight-semibold);
}

.shop-key-specs dd {
  margin: 0;
  color: var(--text);
  font-size: var(--type-small-size);
  font-weight: var(--weight-semibold);
  overflow-wrap: anywhere;
}

.shop-key-specs__more {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: var(--touch-target);
  color: var(--primary-strong);
  font-size: var(--type-small-size);
  font-weight: var(--weight-semibold);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.shop-product-savings {
  font-size: var(--type-body-size);
}

.shop-product-whatsapp {
  margin-block-start: var(--spacing-sm);
}

.shop-product-information {
  scroll-margin-block-start: var(--spacing-3xl);
}

/* apps/shop/app/styles/polish.css */
/* apps/shop · polish
 *
 * Cross-cutting passes that must land after every component file: the flagship
 * detail work, touch-target minimums and the fixes from the UX review.
 * Breakpoints: see ./tokens.css.
 */

/* ---------------- Flagship polish ---------------- */

/* Give every interactive surface the same unmistakable keyboard language. */
.shop-root
  :where(
    a,
    button,
    input,
    select,
    textarea,
    summary,
    [tabindex],
    .aents-check__box
  ):focus-visible {
  outline: 3px solid var(--shop-focus-ring);
  outline-offset: 2px;
  box-shadow: 0 0 0 2px var(--shop-focus-halo);
}

/* A field draws the ring on its whole box, so the input inside it must not
   draw a second one over the border. */
.shop-root
  :where(
    .aents-field__input,
    .aents-stepper__input,
    .shop-card__link,
    .shop-header-search input,
    .shop-mobile-menu__search input
  ):focus-visible {
  outline: 0;
  box-shadow: none;
}

/* @aents/ui-web paints the toast ring from --primary with a more specific
   selector than the rule above; here --primary is the raw merchant accent. */
.shop-root .aents-toaster .aents-toast:focus-visible {
  outline-color: var(--shop-focus-ring);
}

.shop-root
  :where(.aents-field__control, .aents-stepper__control):focus-within:not(
    .is-invalid
  ) {
  border-color: var(--shop-focus-ring);
  box-shadow: 0 0 0 1px var(--shop-focus-ring);
}

.shop-root ::selection {
  background: color-mix(in srgb, var(--shop-accent) 24%, transparent);
  color: var(--text);
}

/* The header remains light, but gains a fine brand signal when it floats. */
.shop-header::after {
  position: absolute;
  inset: auto 0 -1px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    color-mix(in srgb, var(--shop-accent) 32%, transparent),
    transparent
  );
  content: "";
  pointer-events: none;
}

.shop-header__brand:focus-visible {
  border-radius: var(--radius-md);
}

/* Store footer: a proper closing chapter with clearer grouping and richer
   interaction, without turning the merchant surface into a dark template. */
.shop-root .aents-shop-footer {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3rem, 7vw, 5.5rem) var(--spacing-xl);
  background:
    radial-gradient(
      circle at 10% 10%,
      color-mix(in srgb, var(--shop-accent) 10%, transparent),
      transparent 24rem
    ),
    linear-gradient(145deg, var(--surface-alt), var(--surface));
}

.shop-root .aents-shop-footer::before {
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--shop-accent),
    color-mix(in srgb, var(--shop-accent) 30%, transparent) 58%,
    transparent
  );
  content: "";
}

.shop-root .aents-shop-footer__inner {
  position: relative;
  gap: clamp(var(--spacing-xl), 6vw, var(--spacing-3xl));
}

.shop-root .aents-shop-footer__brand-block {
  max-width: 32rem;
  gap: var(--spacing-md);
}

.shop-root .aents-shop-footer__brand {
  gap: var(--spacing-md);
}

.shop-root .aents-shop-footer__brand .aents-text {
  letter-spacing: -0.025em;
}

/* Columns sized by their content, not by a fixed count: a store with no
   social accounts left a quarter of the footer empty, and the ones that were
   filled drifted apart. */
.shop-root .aents-shop-footer__cols {
  gap: clamp(var(--spacing-xl), 4vw, var(--spacing-2xl));
}

.shop-root .aents-shop-footer__col {
  min-width: 0;
  flex: 0 1 auto;
}

/* The links of a column line up with the title of that column. They are
   tertiary buttons, which carry inline padding of their own. */
.shop-root .aents-shop-footer .aents-btn--tertiary {
  padding-inline: 0;
}

.shop-root .aents-shop-footer__link,
.shop-root .aents-shop-footer .aents-btn--tertiary {
  width: fit-content;
  transition:
    color var(--duration-fast) var(--easing-standard),
    transform var(--duration-fast) var(--easing-standard);
}

.shop-root a.aents-shop-footer__link:hover,
.shop-root .aents-shop-footer .aents-btn--tertiary:hover {
  color: var(--primary-strong);
  transform: translateX(2px);
}

.shop-root .aents-shop-footer__social {
  box-shadow: 0 5px 16px color-mix(in srgb, var(--text) 6%, transparent);
}

.shop-root .aents-shop-footer__social:hover {
  transform: translateY(-2px);
  box-shadow: 0 9px 22px color-mix(in srgb, var(--shop-accent) 14%, transparent);
}

.shop-root .aents-shop-footer__bottom {
  margin-block-start: clamp(var(--spacing-xl), 5vw, var(--spacing-2xl));
}

/* Contact stays highly discoverable while occupying less of the merchandise.
   Product pages lift it over the sticky purchase bar instead of overlapping. */
.shop-root .aents-fab {
  isolation: isolate;
  width: 3.25rem;
  height: 3.25rem;
  min-height: 3.25rem;
  justify-content: center;
  padding: 0;
  inset-inline-end: var(--spacing-md);
  inset-block-end: max(var(--spacing-md), env(safe-area-inset-bottom));
  border: 1px solid rgb(255 255 255 / 38%);
  box-shadow:
    0 16px 36px rgb(5 51 26 / 22%),
    inset 0 1px 0 rgb(255 255 255 / 35%);
}

/* The name lives on the control, not next to it: a fixed pill wide enough to
   read is a fixed pill wide enough to cover whatever it lands on. */
.shop-root .aents-fab__label {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.shop-root .aents-fab::before {
  position: absolute;
  z-index: -1;
  inset: -0.35rem;
  border: 1px solid color-mix(in srgb, #25d366 22%, transparent);
  border-radius: inherit;
  content: "";
  opacity: 0;
  transform: scale(0.94);
  transition:
    opacity var(--duration-fast) var(--easing-standard),
    transform var(--duration-fast) var(--easing-standard);
}

.shop-root .aents-fab:hover::before,
.shop-root .aents-fab:focus-visible::before {
  opacity: 1;
  transform: scale(1);
}

@media (hover: hover) {
  .shop-card:active {
    transform: translateY(-2px) scale(0.995);
  }
}

@media (max-width: 48rem) {
  .shop-header__inner {
    min-height: 4.25rem;
  }

  .shop-header__actions {
    margin-inline-start: auto;
  }

  .shop-cart.aents-btn--secondary {
    min-width: var(--touch-target);
    padding-inline: var(--spacing-sm);
    /* The word is off screen but it is still a flex item, so the button kept
       reserving the gap beside it and the glyph sat half a gap left of centre.
       With no gap and centred content the icon lands where the finger aims. */
    gap: 0;
    justify-content: center;
  }

  /* The label is taken off the screen, not shrunk to nothing: font-size: 0
     forced the badge inside it to restore its own size by hand. */
  .shop-cart__label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }

  /* The count rides the corner of the icon, the way a cart badge is read
     everywhere else, instead of widening the button from inside. */
  .shop-cart .aents-btn__label {
    gap: 0;
  }

  .shop-cart .aents-badge {
    position: absolute;
    top: 2px;
    inset-inline-end: 2px;
    min-width: 1.15rem;
    min-height: 1.15rem;
    border-width: 1px;
  }

  .shop-root:has(.shop-mobile-buy) .aents-fab {
    inset-block-end: calc(5.25rem + env(safe-area-inset-bottom));
  }

  .shop-root .aents-shop-footer {
    padding-block: var(--spacing-2xl) var(--spacing-lg);
  }

  .shop-root .aents-shop-footer__inner,
  .shop-root .aents-shop-footer__cols {
    display: grid;
    width: 100%;
  }

  .shop-root .aents-shop-footer__cols {
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
  }

  .shop-root .aents-shop-footer__col {
    min-width: 0;
  }

  .shop-root .aents-shop-footer__bottom {
    display: grid;
    justify-content: start;
  }

  .shop-card:active {
    transform: scale(0.985);
  }
}

/* ---------------- Touch targets ----------------
 *
 * The design system sizes compact controls at --control-sm (36px), which is
 * right for a mouse and below the 44px minimum for a finger. A storefront is
 * used mostly on phones, so on a coarse pointer every tappable control of the
 * catalogue grows to --touch-target. The dense desktop rhythm is untouched.
 */
@media (pointer: coarse) {
  .shop-results-sort .aents-field__control,
  .shop-root .aents-btn--small,
  .shop-root .shop-catalog__tools .aents-field__input {
    min-height: var(--touch-target);
  }

  /* An inline text link gets its height from the line box, not the glyphs, so
     the finger has something to hit. */
  .shop-footer__link,
  .shop-commerce-signals__link {
    display: inline-flex;
    align-items: center;
    min-height: var(--touch-target);
  }
}

/* Cart placeholder shown while the browser reads localStorage. It holds the
   shape of the real cart so nothing jumps once the lines arrive. */
.shop-cart-skeleton {
  display: grid;
  gap: var(--spacing-md);
  margin-block-start: var(--spacing-lg);
}

.shop-cart-skeleton__line,
.shop-cart-skeleton__panel {
  border-radius: var(--radius-lg);
  background:
    linear-gradient(
        90deg,
        transparent,
        color-mix(in srgb, var(--surface) 70%, transparent),
        transparent
      )
      0 0 / 40% 100% no-repeat,
    var(--surface-alt);
  animation: shop-shimmer 1.4s var(--easing-standard) infinite;
}

.shop-cart-skeleton__line {
  height: 5.5rem;
}

.shop-cart-skeleton__panel {
  height: 16rem;
}

@media (prefers-reduced-motion: reduce) {
  .shop-root .aents-shop-footer__link,
  .shop-root .aents-shop-footer .aents-btn--tertiary,
  .shop-root .aents-shop-footer__social,
  .shop-root .aents-fab::before,
  .shop-card {
    transition: none;
  }
  .shop-cart-skeleton__line,
  .shop-cart-skeleton__panel {
    animation: none;
  }
}

/* ---------------- Fixes from the storefront UX pass ---------------- */

/* The floating contact chip is fixed, so the page has to reserve the
   band it occupies. Without this it sat on top of the footer credit on a wide
   screen and on top of the last category chip on a phone. */
/* Only the chip's own height plus one gap: the footer follows straight after,
   so a larger band reads as a blank screen at the end of the catalogue. */
.shop-root:has(.aents-fab) .shop-main {
  padding-block-end: calc(
    max(var(--spacing-md), env(safe-area-inset-bottom)) + 3.25rem +
      var(--spacing-sm)
  );
}

/* While it would sit on a control of the page (a card's add-to-cart scrolling
   under it), the chip steps aside; contact-chip.js decides when. */
.shop-root .aents-fab.is-yielding {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.shop-root .aents-fab {
  transition:
    transform var(--duration-fast) var(--easing-standard),
    opacity var(--duration-fast) var(--easing-standard),
    visibility var(--duration-fast) var(--easing-standard);
}

@media (prefers-reduced-motion: reduce) {
  .shop-root .aents-fab,
  .shop-catalog-progress > div span {
    transition: none;
  }
}

.shop-root:has(.aents-fab) .aents-shop-footer__bottom {
  padding-inline-end: 5rem;
}

/* On a phone the reassurance strip is one scrolled line: three full rows
   above the fold would push every product past the first screen. */
.shop-commerce-signals__link {
  padding: 0;
  border: 0;
  background: none;
  color: var(--primary-strong);
  font: inherit;
  font-size: var(--type-small-size);
  font-weight: var(--weight-semibold);
  text-align: start;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

/* One search box per screen. The header owns it wherever the header can
   show it; this one exists only for the widths where the header hides it. */
@media (min-width: 48.0625rem) {
  .shop-catalog__tools .shop-search {
    display: none;
  }
}

/* The saving in money, under the percentage that announces it. */
.shop-product-savings {
  color: var(--success-strong);
  font-weight: var(--weight-semibold);
}

.shop-product-stock {
  color: var(--text-secondary);
  font-weight: var(--weight-semibold);
}

.shop-product-stock.is-low {
  color: var(--warning-strong);
}

/* Categories as chips in a list, not two tertiary buttons touching each
   other — which read as a single string ("Home Gifts"). Each chip's touch
   overlay reaches past its painted height, so wrapped rows are spaced by that
   overflow too: the targets, not the pills, keep the gap between them. */
.shop-product-categories {
  display: flex;
  flex-wrap: wrap;
  gap: calc(var(--spacing-sm) + var(--touch-target) - var(--control-sm))
    var(--spacing-sm);
  margin: 0;
  padding: 0;
  list-style: none;
}

/* The amount travels with the button that commits the order. */
.shop-checkout-recap {
  display: grid;
  gap: var(--spacing-xs);
  padding: var(--spacing-md);
  border: 1px solid color-mix(in srgb, var(--shop-accent) 18%, var(--border));
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--shop-accent) 5%, var(--surface));
}

.shop-checkout-recap__row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--spacing-sm);
}

.shop-checkout-recap__total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--spacing-sm);
  padding-block-start: var(--spacing-xs);
  border-block-start: 1px solid var(--border-subtle);
}

/* A step that is already behind the buyer reads as done, not as pending. */
.shop-checkout-steps li.is-done {
  color: var(--text-secondary);
}

.shop-checkout-steps li.is-done span {
  border-color: var(--success);
  background: color-mix(in srgb, var(--success) 14%, var(--surface));
  color: var(--success);
}

/* The highlighted suggestion has to look highlighted, for the pointer and
   for the arrow keys alike. */
.shop-header-search__suggestions > a.is-active,
.shop-search__suggestion.is-active {
  background: color-mix(in srgb, var(--shop-accent) 12%, var(--surface));
}

/* The one quantity control of the storefront, sized for each surface. */
/* The stepper sizes itself from --control-sm; the cart rows only decide how
   much room the number in the middle gets. */
.shop-line__actions .aents-stepper__control,
.shop-drawer__controls .aents-stepper__control {
  min-width: 7.5rem;
}

/* Every control a buyer taps on the catalogue, the product page and the
   checkout meets the 44 × 44 minimum at every width, not only under a coarse pointer: a phone in
   desktop mode and a laptop with a touch screen report a fine one
   (ui-ux-pro-max · touch-target-size). The stepper adds its 1px border on top,
   so its buttons — not its frame — are what reach the minimum. */
.shop-quantity .aents-stepper__control {
  grid-template-columns:
    var(--touch-target) minmax(2.75rem, 1fr)
    var(--touch-target);
  min-height: calc(var(--touch-target) + 2px);
}

.shop-product-order .aents-field__control,
.shop-checkout-card .aents-field__control,
.shop-results-sort .aents-field__control,
.shop-product-breadcrumb .aents-btn,
.shop-categories__toggle.aents-btn {
  min-height: var(--touch-target);
}

/* The control is the 44px target; the input stretches to fill it, so a tap
   anywhere inside the box lands in the field. */
.shop-root .aents-field__control > .aents-field__input {
  align-self: stretch;
}

/* apps/shop/app/styles/mobile-commerce.css */
/* apps/shop · the storefront on a phone
 *
 * Where most buyers arrive. Imported last: it only narrows what the earlier
 * sheets do, so the product, its price and the way to buy it come first and
 * nothing fixed sits on top of them.
 */

/* Touch screens never hover, but a card's second photo still downloads for a
   swap nobody sees: hidden, the lazy image is never requested. */
@media (hover: none) {
  .shop-card__image--secondary {
    display: none;
  }

  /* A tap leaves :hover on the card; without the second photo the swap would
     hide the only picture left. */
  .shop-root
    .shop-card:hover
    .shop-card__image--primary:has(+ .shop-card__image--secondary) {
    opacity: 1;
  }
}

@media (max-width: 767px) {
  /* Brand Book §3.5 shrinks the type scale on phones (0.9). A shop is read at
     arm's length, often outdoors: at that factor body copy lands at 12.6px,
     under the 16px reading floor for mobile, and captions under 10px. The
     shop alone keeps the full scale; :has() outranks the :root rule. */
  :root:has(> body.shop-root) {
    --type-responsive-factor: 1 !important;
  }

  /* A shelf is a showcase: a lone card on the last row of the two-column grid
     reads as a missing product, so the shelf shows an even count (a shelf
     holding a single product keeps it). */
  .shop-product-shelf__track > li:nth-child(odd):last-child:not(:first-child) {
    display: none;
  }

  /* The price is what a shopper scans for in a grid; it outweighs the name. */
  .shop-root .shop-card__price {
    font-size: 1.3em;
  }

  /* Once script has revealed the header's search button, a second field above
     the results only pushes the first product further down. Without script
     it stays, as the only search; on a results page it shows the query. */
  .shop-root:has([data-store-search-toggle]:not([hidden]))
    .shop-catalog__tools
    .shop-search:not(:has(.aents-field__input[value]:not([value=""]))) {
    display: none;
  }

  /* On a phone the results heading is a title over the grid, not a card: the
     frame cost a screen's worth of padding before the first product. */
  .shop-results-heading {
    padding: 0;
    border: 0;
    background: none;
    box-shadow: none;
  }

  .shop-results-heading__controls {
    align-items: center;
  }

  /* Category chips repeat the breadcrumb right above them; on a phone the
     product name and its price follow the photo directly. */
  .shop-product-categories {
    display: none;
  }

  .shop-product-breadcrumb {
    color: var(--text);
  }

  .shop-product-breadcrumb .aents-btn__label {
    font-size: var(--type-body-size);
  }

  /* Endless loading and a fixed header already bring the top within reach;
     the floating button only covered prices in the left column. */
  .shop-back-to-top {
    display: none;
  }

  /* The decorative initial was the largest paint of the home without saying
     anything; the store's name and products do the talking. */
  .shop-hero__monogram {
    display: none;
  }

  /* Filters belong to the catalogue, not to the showcase of the home. */
  .shop-root:has(.shop-intro) .shop-filterbar {
    display: none;
  }

  /* A category without a picture showed its first letter as artwork; the name
     alone is clearer and leaves the tile shorter. */
  .shop-category-tile__art:has(> span) {
    display: none;
  }

  /* The buy bar docks only once the buyer has scrolled past the real buy
     button (product.js); until then it would cover the title and price. */
  .shop-mobile-buy {
    transition:
      transform 220ms cubic-bezier(0.22, 1, 0.36, 1),
      visibility 220ms;
  }

  .shop-mobile-buy[data-docked="no"] {
    visibility: hidden;
    transform: translateY(calc(100% + var(--spacing-md)));
  }

  .shop-root:has(.shop-mobile-buy[data-docked="no"]) .aents-fab {
    inset-block-end: max(var(--spacing-lg), env(safe-area-inset-bottom));
  }

  /* Room under the grid for the WhatsApp button, so it never sits on the add
     button of the last card. */
  .shop-root:has(.aents-fab) .shop-grid {
    padding-block-end: calc(var(--touch-target) + var(--spacing-lg));
  }
}

@media (max-width: 767px) and (prefers-reduced-motion: reduce) {
  .shop-mobile-buy {
    transition: none;
  }
}
