/* ==========================================================================
   The Tribe Â· Shop (product listing)
   Loaded after style.css: reuses its tokens and components (.tr-product,
   .tr-well, .tr-btn, .tr-icon-btn, .tr-head, .tr-scroller ...). Everything
   here is page specific and prefixed .tr-sh-
   Figma: "Shop - Neumorphism" (1440). Tablet / mobile follow the home page system.
   ========================================================================== */

/* ------------------------------ Shared bits ------------------------------ */
.tr-sh-icon-btn--cream { background: var(--cream); }

/* ------------------------------ 01 Hero Â· spotlight ------------------------------ */
.tr-sh-hero { padding-top: 160px; } /* 112 nav + 48 */
.tr-sh-hero__inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; }

.tr-sh-intro { flex: 0 1 607px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 32px; }
.tr-sh-intro .tr-h1 { max-width: 540px; }
.tr-sh-intro__lead { max-width: 480px; }
.tr-sh-intro__ctas { display: flex; align-items: center; gap: 16px; }

.tr-sh-crumbs { display: flex; align-items: center; gap: 13px; font-size: 14px; font-weight: 700; line-height: 1; letter-spacing: .02em; color: var(--ink-50); white-space: nowrap; }
.tr-sh-crumbs a { transition: color .3s ease-out; }
.tr-sh-crumbs a:hover { color: var(--charcoal); }

/* Trust chips: pressed-in pill with a raised icon */
.tr-sh-chips { display: flex; flex-wrap: wrap; gap: 12px; }
.tr-sh-chip { height: 52px; padding: 0 20px 0 8px; border-radius: 26px; background: var(--cream); box-shadow: var(--neu-inset-s); display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 700; line-height: 1.5; color: var(--charcoal); white-space: nowrap; }
.tr-sh-chip__icon { width: 36px; height: 36px; flex: none; border-radius: 50%; background: var(--cream); box-shadow: var(--neu-raised-s); display: grid; place-items: center; }

/* Spotlight stage: every measure derives from --stage (600 in the design) so it scales as one piece */
.tr-sh-stage {
  --stage: 600px;
  position: relative;
  flex: none;
  width: var(--stage);
  height: calc(var(--stage) * 620 / 600);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: calc(var(--stage) * 24 / 600);
}
/* soft gold glow behind the disc (the blurred ellipse from the design) */
.tr-sh-stage::before {
  content: "";
  position: absolute;
  left: calc(var(--stage) * -80 / 600);
  top: calc(var(--stage) * -100 / 600);
  width: calc(var(--stage) * 760 / 600);
  height: calc(var(--stage) * 760 / 600);
  background: url("../assets/icons/sh-spotlight.svg") center / 100% 100% no-repeat;
  pointer-events: none;
}
.tr-sh-stage__disc { position: relative; flex: none; width: 80%; aspect-ratio: 1; border-radius: 50%; background: var(--cream); box-shadow: var(--neu-raised-l); display: grid; place-items: center; }
.tr-sh-stage__well { --well-shadow: var(--neu-inset); width: 85.4167%; aspect-ratio: 1; border-radius: 50%; }
.tr-sh-stage__plinth { position: relative; flex: none; width: 56.6667%; height: calc(var(--stage) * 44 / 600); border-radius: 999px; background: var(--cream); box-shadow: var(--neu-inset-s); }

/* Glass price tag */
.tr-sh-tag {
  position: absolute;
  right: 0;
  top: calc(var(--stage) * 80 / 600);
  z-index: 3;
  padding: 16px 20px;
  border-radius: 24px;
  background: rgba(255, 251, 234, .85);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: 8px 8px 10px rgba(176, 153, 107, .3);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  white-space: nowrap;
}
.tr-sh-tag__label { font-size: 14px; font-weight: 700; line-height: 1; letter-spacing: .02em; color: var(--gold); }
.tr-sh-tag .tr-body { color: rgba(32, 32, 33, .65); }

/* ------------------------------ 02 Filter bar ------------------------------ */
.tr-sh-catalog { padding: 80px 0 96px; }

.tr-sh-toolbar { position: relative; z-index: 5; /* keeps the sort menu above the cards */ display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "cats sort" "count count"; align-items: center; gap: 48px 24px; margin-bottom: 24px; }
.tr-sh-toolbar__cats { grid-area: cats; min-width: 0; margin: 0; }

/* Category groove: the active category is a raised cream pill (the two states cross-fade) */
.tr-sh-cats { height: 72px; padding: 8px; border-radius: 36px; background: var(--white); box-shadow: var(--neu-inset); display: flex; gap: 8px; }
.tr-sh-cat { position: relative; isolation: isolate; flex: none; height: 100%; padding: 0 24px; border-radius: 28px; font-size: 18px; font-weight: 700; line-height: 1.3; color: var(--ink-50); white-space: nowrap; transition: color .3s ease-out; }
.tr-sh-cat::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--cream); box-shadow: var(--neu-raised-s); opacity: 0; transition: opacity .35s var(--ease-out); }
.tr-sh-cat:hover,
.tr-sh-cat.is-active { color: var(--charcoal); }
.tr-sh-cat.is-active::before { opacity: 1; }

/* Sort (Bootstrap dropdown, restyled) */
.tr-sh-sort { grid-area: sort; justify-self: end; }
.tr-sh-sort__btn { height: 72px; padding: 0 24px 0 28px; border-radius: 36px; background: var(--white); box-shadow: var(--neu-raised-s); display: flex; align-items: center; gap: 12px; font-size: 18px; font-weight: 700; line-height: 1.3; color: var(--charcoal); white-space: nowrap; }
.tr-sh-sort__btn img { flex: none; display: block; transition: transform .3s ease-out; }
.tr-sh-sort__btn[aria-expanded="true"] img { transform: rotate(180deg); }
.tr-sh-sort__menu {
  --bs-dropdown-min-width: 100%;
  --bs-dropdown-link-hover-bg: var(--cream);
  --bs-dropdown-link-hover-color: var(--charcoal);
  --bs-dropdown-link-active-bg: var(--cream);
  --bs-dropdown-link-active-color: var(--charcoal);
  padding: 8px;
  border: 0;
  border-radius: 28px;
  background: var(--white);
  box-shadow: 0 18px 36px rgba(176, 153, 107, .34);
  z-index: 20;
}
.tr-sh-sort__item { padding: 12px 20px; border-radius: 20px; font-size: 16px; line-height: 1.5; color: var(--ink-70); white-space: nowrap; }
.tr-sh-sort__item.is-active { background: var(--cream); font-weight: 700; color: var(--charcoal); }

.tr-sh-count { grid-area: count; display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 700; line-height: 1; letter-spacing: .02em; color: var(--ink-50); white-space: nowrap; }

/* ------------------------------ 03 Product grid ------------------------------ */
.tr-sh-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-flow: dense; gap: 40px; }
.tr-sh-grid > [hidden] { display: none; }

/* Tiles ease in after a filter / sort change ("translate" keeps clear of the transforms GSAP sets) */
@keyframes tr-sh-enter {
  from { opacity: 0; translate: 0 18px; }
  to { opacity: 1; translate: 0 0; }
}
.tr-sh-grid > .is-entering { animation: tr-sh-enter .5s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 50ms); }

/* Product card: the home page .tr-product, on the cream surface */
.tr-sh-card { width: auto; padding: 14px 14px 20px; border-radius: 32px; gap: 18px; box-shadow: var(--neu-raised-l); }
.tr-sh-card .tr-product__media { display: block; aspect-ratio: 262 / 300; border-radius: 24px; }
.tr-sh-card .tr-product__info { padding: 0 4px 0 6px; }
.tr-sh-card .tr-card-title a { display: block; }
.tr-sh-card .tr-icon-btn { transition: box-shadow .3s ease-out, transform .3s ease-out, background-color .3s ease-out; }
.tr-sh-card .tr-icon-btn img { display: block; transition: transform .45s var(--ease-out); }
/* add-to-bag confirmation */
.tr-sh-card .tr-icon-btn.is-added { background: var(--gold); }
.tr-sh-card .tr-icon-btn.is-added img { transform: rotate(180deg) scale(1.15); }

.tr-sh-badge { position: absolute; left: 14px; top: 14px; z-index: 1; padding: 6px 12px; border-radius: 999px; background: rgba(255, 251, 234, .88); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); font-size: 14px; font-weight: 700; line-height: 1; letter-spacing: .02em; color: var(--charcoal); white-space: nowrap; }

/* Promo tile */
.tr-sh-promo { min-width: 0; padding: 28px; border-radius: 32px; background: var(--charcoal); box-shadow: var(--neuc-raised-l); display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 13px; }
.tr-sh-promo__top,
.tr-sh-promo__bottom { width: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.tr-sh-promo__label { font-size: 14px; font-weight: 700; line-height: 1; letter-spacing: .02em; color: var(--gold); }
.tr-sh-promo .tr-h2 { color: var(--cream); }
.tr-sh-promo .tr-h2.tr-gold { color: var(--gold); white-space: nowrap; }
.tr-sh-promo .tr-body { color: rgba(255, 251, 234, .65); }
.tr-sh-promo .tr-btn { box-shadow: var(--neuc-raised-s); }

.tr-sh-promo__wells { --well: 80px; display: flex; flex: none; }
.tr-sh-promo__wells span { width: var(--well); height: var(--well); flex: none; padding: 4px; border-radius: 50%; background: var(--charcoal); box-shadow: var(--neuc-raised-s); }
.tr-sh-promo__wells span + span { margin-left: calc(var(--well) * -.225); }
.tr-sh-promo__wells img { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }

/* Add-to-bag toast */
.tr-sh-toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  z-index: 1040;
  max-width: calc(100vw - 32px);
  padding: 8px 24px 8px 8px;
  border-radius: 999px;
  background: var(--night);
  box-shadow: 0 12px 32px rgba(28, 22, 26, .28);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: .02em;
  color: var(--cream);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 16px);
  transition: opacity .3s ease-out, transform .3s var(--ease-out), visibility 0s .3s;
  pointer-events: none;
}
.tr-sh-toast.is-visible { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition-delay: 0s; }
.tr-sh-toast__icon { width: 36px; height: 36px; flex: none; border-radius: 50%; background: rgba(255, 251, 234, .08); display: grid; place-items: center; }

/* ------------------------------ 04 Clean label promise ------------------------------ */
.tr-sh-promise { padding: 96px 0; }
.tr-sh-promise .tr-head__text { flex-basis: 380px; }

.tr-sh-pledges { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.tr-sh-pledge { min-width: 0; padding: 32px 28px; border-radius: 32px; background: var(--white); box-shadow: var(--neuw-inset); display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.tr-sh-pledge__icon { width: 72px; height: 72px; flex: none; border-radius: 50%; background: var(--white); box-shadow: var(--neuw-raised-s); display: grid; place-items: center; }
.tr-sh-pledge .tr-body { color: rgba(32, 32, 33, .65); }

/* ------------------------------ 05 Shop by goal ------------------------------ */
.tr-sh-goals { padding-top: 96px; }
.tr-sh-goal-grid { display: flex; align-items: stretch; gap: 32px; }

.tr-sh-goal { --well: 150px; flex: 1 1 0; min-width: 0; padding: 48px 40px; border-radius: 200px; background: var(--white); box-shadow: var(--neu-raised-l); display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center; }
.tr-sh-goal__products { display: flex; flex: none; }
.tr-sh-goal__well { width: var(--well); height: var(--well); flex: none; padding: 6px; border-radius: 50%; background: var(--white); box-shadow: var(--neu-raised-s); }
.tr-sh-goal__well + .tr-sh-goal__well { margin-left: -24px; }
.tr-sh-goal__well img { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.tr-sh-goal__icon { width: 48px; height: 48px; flex: none; border-radius: 50%; background: var(--white); box-shadow: var(--neu-inset-s); display: grid; place-items: center; }
.tr-sh-goal .tr-h2 { max-width: 100%; }
.tr-sh-goal .tr-body { max-width: 280px; color: rgba(32, 32, 33, .65); }
.tr-sh-goal .tr-link-underline { font-size: 14px; white-space: nowrap; }

.tr-sh-goal--dark { background: var(--charcoal); box-shadow: -18px -18px 36px #fff, 18px 18px 36px rgba(176, 153, 107, .4); }
.tr-sh-goal--dark .tr-sh-goal__well { background: var(--charcoal); box-shadow: var(--neuc-raised-s); }
.tr-sh-goal--dark .tr-sh-goal__icon { background: var(--gold); box-shadow: none; }
.tr-sh-goal--dark .tr-h2 { color: var(--cream); }
.tr-sh-goal--dark .tr-body { color: rgba(255, 251, 234, .65); }
.tr-sh-goal--dark .tr-link-underline { color: var(--gold); }

/* ------------------------------ 06 Ask a coach ------------------------------ */
.tr-sh-cta { padding: 64px 0; }
.tr-sh-cta__panel { display: flex; align-items: center; gap: 48px; padding: 64px 72px; border-radius: 56px; background: var(--white); box-shadow: var(--neu-raised-l); }
.tr-sh-cta__copy { flex: 0 1 620px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.tr-sh-cta__copy .tr-body { max-width: 520px; }
.tr-sh-cta__actions { flex: none; }

/* ==========================================================================
   1200 - 1399
   ========================================================================== */
@media (max-width: 1399.98px) {
  .tr-sh-stage { --stage: 520px; }

  .tr-sh-grid { gap: 24px; }
  .tr-sh-card { padding: 12px 12px 18px; }
  .tr-sh-card .tr-product__info { padding: 0 2px 0 6px; }
  .tr-sh-card .tr-product__text > * { overflow: hidden; text-overflow: ellipsis; }
  .tr-sh-card .tr-icon-btn { --size: 56px; }
  .tr-sh-badge { left: 12px; top: 12px; }

  .tr-sh-promo { padding: 24px; }
  .tr-sh-promo .tr-h2 { font-size: 26px; }

  .tr-sh-pledge { padding: 28px 24px; }
  .tr-sh-goal { padding: 44px 28px; }
  .tr-sh-cta__panel { padding: 56px; }
  .tr-sh-cta__copy { flex: 1 1 0; }
}

/* ==========================================================================
   992 - 1199
   ========================================================================== */
@media (max-width: 1199.98px) {
  .tr-sh-hero__inner { gap: 32px; }
  .tr-sh-intro { gap: 28px; }
  .tr-sh-stage { --stage: 420px; }
  .tr-sh-tag { padding: 14px 18px; border-radius: 22px; }

  .tr-sh-catalog { padding: 64px 0 80px; }
  .tr-sh-toolbar { gap: 40px 20px; }
  .tr-sh-cats { height: 64px; padding: 7px; border-radius: 32px; gap: 6px; }
  .tr-sh-cat { padding: 0 16px; border-radius: 25px; font-size: 16px; }
  .tr-sh-sort__btn { height: 64px; padding: 0 20px 0 24px; border-radius: 32px; font-size: 16px; }

  /* three columns: the cards keep the desktop proportions and the promo tile takes two cells */
  .tr-sh-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tr-sh-card { border-radius: 30px; gap: 16px; }
  .tr-sh-card .tr-product__media { border-radius: 22px; }
  .tr-sh-card .tr-card-title { font-size: 18px; }
  .tr-sh-card .tr-body { font-size: 16px; }

  .tr-sh-promise { padding: 72px 0; }
  .tr-sh-pledges { gap: 16px; }
  .tr-sh-pledge { padding: 24px 20px; border-radius: 28px; gap: 16px; }
  .tr-sh-pledge__icon { width: 64px; height: 64px; }
  .tr-sh-pledge .tr-card-title { font-size: 17px; }

  .tr-sh-goals { padding-top: 72px; }
  .tr-sh-goal-grid { gap: 20px; }
  .tr-sh-goal { --well: 124px; padding: 40px 20px; gap: 20px; }
  .tr-sh-goal__well { padding: 5px; }
  .tr-sh-goal__well + .tr-sh-goal__well { margin-left: -20px; }

  .tr-sh-cta__panel { gap: 32px; padding: 48px; border-radius: 48px; }
}

/* Promo tile across two cells: copy on the left, the stack on the right */
@media (min-width: 768px) and (max-width: 1199.98px) {
  .tr-sh-promo { grid-column: span 2; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "top wells" "bottom wells"; gap: 20px 32px; padding: 32px 36px; }
  .tr-sh-promo__top { grid-area: top; align-self: start; }
  .tr-sh-promo__bottom { grid-area: bottom; align-self: end; }
  .tr-sh-promo__wells { --well: 104px; grid-area: wells; align-self: center; }
  .tr-sh-promo .tr-h2 { font-size: 28px; }
}

/* ==========================================================================
   <= 991 Â· tablet + mobile structure (derived from the home page mobile system)
   ========================================================================== */
@media (max-width: 991.98px) {
  /* Hero: stacked and centred */
  .tr-sh-hero { padding-top: 128px; }
  .tr-sh-hero__inner { flex-direction: column; gap: 24px; }
  .tr-sh-intro { flex: none; width: 100%; align-items: center; gap: 20px; text-align: center; }
  .tr-sh-intro .tr-h1 { justify-content: center; }
  .tr-sh-intro__lead { max-width: 342px; }
  .tr-sh-crumbs { font-size: 13px; gap: 10px; }
  .tr-sh-chips { justify-content: center; gap: 10px; }
  .tr-sh-chip { height: 44px; padding: 0 16px 0 6px; gap: 8px; font-size: 13px; line-height: 1; letter-spacing: .02em; }
  .tr-sh-chip__icon { width: 32px; height: 32px; }
  .tr-sh-intro__ctas { gap: 12px; }
  .tr-sh-intro__ctas .tr-icon-btn { --size: 48px; }
  .tr-sh-stage { --stage: min(342px, calc(100vw - 2 * var(--gutter))); }
  .tr-sh-stage__disc { box-shadow: var(--neu-raised-s); }
  .tr-sh-stage__well { --well-shadow: var(--neu-inset-s); }
  .tr-sh-tag { padding: 10px 14px; border-radius: 18px; gap: 2px; }
  .tr-sh-tag__label { font-size: 11px; }
  .tr-sh-tag .tr-card-title { font-size: 14px; }
  .tr-sh-tag .tr-body { font-size: 13px; }

  /* Filter bar: categories swipe edge to edge, count and sort share the next row */
  .tr-sh-catalog { padding: 32px 0 56px; }
  .tr-sh-toolbar { grid-template-areas: "cats cats" "count sort"; gap: 6px 12px; margin-bottom: 20px; }
  .tr-sh-toolbar__cats { margin: 0 calc(var(--gutter) * -1); }
  .tr-sh-cats { width: max-content; height: 60px; padding: 6px; border-radius: 30px; gap: 6px; margin-inline: auto; }
  .tr-sh-cat { padding: 0 18px; border-radius: 24px; font-size: 13px; line-height: 1; letter-spacing: .02em; }
  .tr-sh-sort__btn { height: 48px; padding: 0 16px 0 20px; border-radius: 24px; gap: 8px; font-size: 13px; line-height: 1; letter-spacing: .02em; }
  .tr-sh-sort__menu { border-radius: 24px; }
  .tr-sh-sort__item { padding: 10px 16px; border-radius: 16px; font-size: 14px; }
  .tr-sh-count { font-size: 13px; }

  /* Grid: compact cards, the + button sits on the price row */
  .tr-sh-grid { gap: 16px; }
  .tr-sh-card { padding: 8px 8px 12px; border-radius: 24px; gap: 12px; box-shadow: var(--neu-raised-s); }
  .tr-sh-card .tr-product__media { height: auto; aspect-ratio: 1 / 1.08; border-radius: 18px; }
  .tr-sh-card .tr-product__info { position: relative; flex: 1 1 auto; display: block; padding: 0 4px; }
  .tr-sh-card .tr-product__text { height: 100%; gap: 2px; white-space: normal; }
  .tr-sh-card .tr-card-title { font-size: 16px; }
  .tr-sh-card .tr-body { font-size: 14px; }
  .tr-sh-card .tr-product__text .tr-body--bold { min-height: 40px; margin-top: auto; padding-right: 48px; display: flex; align-items: center; }
  .tr-sh-card .tr-icon-btn { --size: 40px; position: absolute; right: 2px; bottom: 0; }
  .tr-sh-card .tr-icon-btn img { width: 20px; height: 20px; }
  .tr-sh-badge { left: 8px; top: 8px; padding: 5px 10px; font-size: 12px; }

  .tr-sh-promo { border-radius: 28px; box-shadow: var(--neuc-raised-s); }
  .tr-sh-toast { bottom: 20px; font-size: 13px; }

  /* Promise */
  .tr-sh-promise { padding: 48px 0; }
  .tr-sh-promise .tr-head { margin-bottom: 28px; }
  .tr-sh-promise .tr-head__text { flex: none; }
  .tr-sh-pledges { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .tr-sh-pledge { display: grid; grid-template-columns: 56px minmax(0, 1fr); align-items: center; gap: 4px 16px; padding: 16px 20px 16px 16px; border-radius: 28px; box-shadow: var(--neuw-inset-s); }
  .tr-sh-pledge__icon { grid-row: span 2; width: 56px; height: 56px; }
  .tr-sh-pledge__icon img { width: 22px; height: 22px; }
  .tr-sh-pledge .tr-card-title { align-self: end; font-size: 16px; }
  .tr-sh-pledge .tr-body { align-self: start; }

  /* Goals */
  .tr-sh-goals { padding-top: 48px; }
  .tr-sh-goals .tr-head { margin-bottom: 8px; }
  .tr-sh-goal-grid { align-items: stretch; gap: 16px; }
  .tr-sh-goal { --well: 96px; padding: 32px 16px 36px; gap: 16px; border-radius: 999px; box-shadow: var(--neu-raised-s); }
  .tr-sh-goal--dark { box-shadow: -7px -7px 16px #fff, 7px 7px 16px rgba(176, 153, 107, .4); }
  .tr-sh-goal__well { padding: 4px; }
  .tr-sh-goal__well + .tr-sh-goal__well { margin-left: -16px; }
  .tr-sh-goal__icon { width: 44px; height: 44px; }
  .tr-sh-goal .tr-h2 { font-size: 20px; }
  .tr-sh-goal .tr-link-underline { font-size: 13px; }

  /* CTA */
  .tr-sh-cta { padding: 28px 0 48px; }
  .tr-sh-cta__panel { flex-direction: column; gap: 24px; padding: 32px 24px; border-radius: 32px; box-shadow: var(--neu-raised-s); text-align: center; }
  .tr-sh-cta__copy { flex: none; align-items: center; gap: 14px; }
  .tr-sh-cta__copy .tr-h2 { justify-content: center; }
  .tr-sh-cta__actions { flex-wrap: wrap; justify-content: center; }
  .tr-sh-cta__actions .tr-icon-btn { --size: 48px; }
}

/* ==========================================================================
   768 - 991 Â· tablet refinements
   ========================================================================== */
@media (min-width: 768px) and (max-width: 991.98px) {
  .tr-sh-hero { padding-top: 144px; }
  .tr-sh-intro__lead { max-width: 480px; }
  .tr-sh-stage { --stage: 420px; }

  .tr-sh-promo { padding: 28px; gap: 16px 24px; }
  .tr-sh-promo__wells { --well: 80px; }
  .tr-sh-promo .tr-h2 { font-size: 24px; }

  /* the three goals fit side by side, so the row does not need to swipe */
  .tr-sh-goal { flex: 1 1 0; }
  .tr-sh-goal-grid { padding-bottom: 8px; }
  .tr-sh-cta__panel { padding: 40px; }
}

/* ==========================================================================
   <= 767 Â· phones
   ========================================================================== */
@media (max-width: 767.98px) {
  .tr-sh-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .tr-sh-card .tr-card-title { font-size: 14px; }
  .tr-sh-card .tr-body { font-size: 13px; }
  .tr-sh-card .tr-product__text .tr-body--bold { font-size: 14px; }
  .tr-sh-badge { font-size: 11px; padding: 5px 9px; }

  /* promo tile: full row, stacked */
  .tr-sh-promo { grid-column: span 2; padding: 24px; gap: 20px; }
  .tr-sh-promo .tr-h2 { font-size: 24px; }
  .tr-sh-promo__wells { --well: 72px; }

  .tr-sh-pledges { grid-template-columns: minmax(0, 1fr); gap: 12px; }

  /* goals swipe (dots below) */
  .tr-sh-goal { --well: 116px; flex: none; width: 280px; padding: 32px 24px 36px; }
  .tr-sh-goal__well + .tr-sh-goal__well { margin-left: -20px; }
  .tr-sh-goal .tr-h2 { font-size: 24px; }
  .tr-sh-goals .tr-dots { margin-top: 8px; }
}

/* ==========================================================================
   Small phones
   ========================================================================== */
@media (max-width: 359.98px) {
  .tr-sh-grid { gap: 10px; }
  .tr-sh-card { padding: 6px 6px 10px; }
  .tr-sh-card .tr-product__info { padding: 0 2px; }
  .tr-sh-card .tr-card-title { font-size: 13px; }
  .tr-sh-sort__btn { padding: 0 12px 0 16px; }
  .tr-sh-goal { width: 264px; }
  .tr-sh-cta__panel { padding: 28px 16px; }
}

/* ==========================================================================
   Phone design (Figma: The Tribe - Shop Â· Mobile, 390)
   Header, spotlight, then three trust chips; swipeable category pills;
   2-column cards with a compact bundle bar; 2x2 promises; 240px goal capsules.
   Kept last so it wins over the shared tablet rules above.
   ========================================================================== */
.tr-sh-promo__go { display: none; }

@media (max-width: 767.98px) {
  main .tr-container { padding-inline: 16px; }
  main .tr-container--bleed { padding-inline: 0; }

  /* ---- 01 Hero: crumb + title + lead, spotlight, trust chips ---- */
  .tr-sh-hero { padding-top: 112px; }
  .tr-sh-hero__inner { flex-direction: column; align-items: stretch; gap: 18px; }
  .tr-sh-intro { display: contents; }
  .tr-sh-crumbs { order: 1; margin-bottom: -6px; justify-content: flex-start; gap: 7px; }
  .tr-sh-hero .tr-h1 { order: 2; margin-bottom: -6px; justify-content: flex-start; max-width: 358px; }
  .tr-sh-intro__lead { order: 3; max-width: none; text-align: left; }
  .tr-sh-stage { order: 4; --stage: 300px; width: 100%; height: 300px; gap: 0; }
  .tr-sh-chips { order: 5; flex-wrap: nowrap; justify-content: stretch; gap: 8px; }

  .tr-sh-stage::before { left: 50%; top: 150px; width: 320px; height: 320px; transform: translate(-50%, -50%); }
  .tr-sh-stage__disc { width: 260px; box-shadow: var(--neu-raised-l); }
  .tr-sh-stage__well { --well-shadow: var(--neu-inset); width: 220px; }
  .tr-sh-stage__plinth { display: none; }
  .tr-sh-tag { right: 8px; top: 200px; padding: 10px 14px; gap: 2px; border-radius: 18px; background: rgba(255, 251, 234, .9); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); box-shadow: none; filter: drop-shadow(6px 6px 7px rgba(176, 153, 107, .3)); }
  .tr-sh-tag__label { font-size: 13px; }
  .tr-sh-tag .tr-card-title { font-size: 16px; }
  .tr-sh-tag .tr-body { font-size: 13px; font-weight: 700; line-height: 1; letter-spacing: .02em; }

  .tr-sh-chip { flex: 1 1 0; min-width: 0; height: 40px; padding: 0; gap: 6px; justify-content: center; border-radius: 20px; font-size: 13px; line-height: 1; letter-spacing: .02em; }
  .tr-sh-chip__icon { width: 13px; height: 13px; border-radius: 0; background: none; box-shadow: none; }
  .tr-sh-chip__icon img { width: 13px; height: 13px; }

  /* ---- 02 Filter bar ---- */
  .tr-sh-catalog { padding: 32px 0 0; }
  .tr-sh-toolbar { gap: 12px; margin-bottom: 0; }
  .tr-sh-toolbar__cats { margin: 0 -16px; padding: 6px 16px 10px; scroll-padding-inline: 16px; }
  .tr-sh-cats { width: max-content; height: auto; padding: 0; gap: 8px; margin: 0; border-radius: 0; background: none; box-shadow: none; }
  .tr-sh-cat { height: 40px; padding: 0 18px; border-radius: 20px; background: var(--cream); box-shadow: var(--neu-raised-s); font-size: 13px; color: var(--charcoal); transition: background-color .3s ease-out, color .3s ease-out; }
  .tr-sh-cat::before { display: none; }
  .tr-sh-cat.is-active { background: var(--night); color: var(--gold); }
  .tr-sh-count { font-size: 13px; color: rgba(32, 32, 33, .55); }
  .tr-sh-sort__btn { height: 36px; padding: 0 14px; gap: 6px; border-radius: 18px; background: var(--cream); }
  .tr-sh-sort__btn img { width: 12px; height: 12px; }

  /* ---- 03 Product grid ---- */
  .tr-sh-grid { margin-top: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; align-items: start; }
  .tr-sh-card { padding: 8px 8px 12px; border-radius: 22px; gap: 10px; box-shadow: var(--neu-raised-l); }
  .tr-sh-card .tr-product__media { height: 168px; aspect-ratio: auto; border-radius: 16px; }
  .tr-sh-badge { left: 8px; top: 8px; padding: 4px 8px; font-size: 13px; letter-spacing: .02em; background: rgba(255, 251, 234, .9); }
  .tr-sh-card .tr-product__info { position: static; display: grid; grid-template-columns: minmax(0, 1fr) auto; row-gap: 2px; padding: 0 0 0 4px; }
  .tr-sh-card .tr-product__text { display: contents; }
  .tr-sh-card .tr-card-title { grid-column: 1 / -1; padding-right: 4px; font-size: 14px; line-height: 1.5; }
  .tr-sh-card .tr-product__text > .tr-body:not(.tr-body--bold) { grid-column: 1 / -1; padding-right: 4px; font-size: 13px; font-weight: 700; line-height: 1; letter-spacing: .02em; color: rgba(32, 32, 33, .6); }
  .tr-sh-card .tr-product__text .tr-body--bold { grid-column: 1; grid-row: 3; min-height: 0; margin: 8px 0 0; padding: 0; display: block; align-self: center; font-size: 16px; line-height: 1.3; color: var(--charcoal); }
  .tr-sh-card .tr-icon-btn { --size: 36px; position: static; grid-column: 2; grid-row: 3; margin-top: 8px; }
  .tr-sh-card .tr-icon-btn img { width: 24px; height: 24px; }

  /* Bundle bar */
  .tr-sh-promo { grid-column: span 2; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 18px; border-radius: 24px; box-shadow: var(--neuc-raised-l); }
  .tr-sh-promo__top { display: flex; flex-direction: column; gap: 4px; }
  .tr-sh-promo__top .tr-body { display: none; }
  .tr-sh-promo__label { font-size: 13px; white-space: pre; }
  .tr-sh-promo .tr-h2 { font-family: var(--font-body); font-size: 16px; font-weight: 700; line-height: 1.3; letter-spacing: 0; white-space: nowrap; }
  .tr-sh-promo__wells { --well: 52px; grid-row: 1; grid-column: 1; }
  .tr-sh-promo__wells span { padding: 3px; }
  .tr-sh-promo__wells span + span { margin-left: -14px; }
  .tr-sh-promo__top { grid-row: 1; grid-column: 2; }
  .tr-sh-promo__go { grid-row: 1; grid-column: 3; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--gold); }

  /* ---- 04 Clean label promise ---- */
  .tr-sh-promise { margin-top: 40px; padding: 40px 0; }
  .tr-sh-promise > .tr-container { display: flex; flex-direction: column; gap: 20px; }
  .tr-sh-promise .tr-head { align-items: flex-start; text-align: left; gap: 20px; margin-bottom: 0; }
  .tr-sh-promise .tr-head .tr-h2 { justify-content: flex-start; max-width: none; }
  .tr-sh-promise .tr-head__text { max-width: none; }
  .tr-sh-pledges { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .tr-sh-pledge { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 16px 14px; border-radius: 22px; box-shadow: var(--neuw-inset); }
  .tr-sh-pledge__icon { grid-row: auto; width: 40px; height: 40px; }
  .tr-sh-pledge__icon img { width: 16px; height: 16px; }
  .tr-sh-pledge .tr-card-title { align-self: auto; font-size: 14px; line-height: 1.5; }
  .tr-sh-pledge .tr-body { display: none; }

  /* ---- 05 Shop by goal ---- */
  .tr-sh-goals { padding-top: 48px; }
  .tr-sh-goals > .tr-container { margin-bottom: 16px; }
  .tr-sh-goals .tr-head { align-items: flex-start; text-align: left; gap: 10px; margin-bottom: 0; }
  .tr-sh-goals .tr-head .tr-h2 { justify-content: flex-start; max-width: none; }
  .tr-sh-goals .tr-head__text { max-width: none; }
  .tr-sh-goal-grid { gap: 14px; padding: 12px 16px 24px; scroll-padding-inline: 16px; }
  .tr-sh-goal { --well: 96px; width: 240px; padding: 28px 20px; gap: 14px; border-radius: 120px; box-shadow: var(--neu-raised-l); }
  .tr-sh-goal--dark { box-shadow: var(--neu-raised-l); }
  .tr-sh-goal__well { padding: 4px; }
  .tr-sh-goal__well + .tr-sh-goal__well { margin-left: -18px; }
  .tr-sh-goal__icon, .tr-sh-goal .tr-body { display: none; }
  .tr-sh-goal .tr-h2 { font-size: 24px; white-space: nowrap; }
  .tr-sh-goal .tr-link-underline { font-size: 13px; letter-spacing: .02em; }
  .tr-sh-goals .tr-dots { display: none; }

  /* ---- 06 Ask a coach ---- */
  .tr-sh-cta { padding: 24px 0 48px; }
  .tr-sh-cta__panel { align-items: stretch; gap: 16px; padding: 28px 24px; border-radius: 32px; background: var(--cream); box-shadow: var(--neu-raised-l); text-align: left; }
  .tr-sh-cta__copy { align-items: flex-start; gap: 16px; }
  .tr-sh-cta__copy .tr-h2 { justify-content: flex-start; }
  .tr-sh-cta__actions { justify-content: flex-start; }
}
@media (max-width: 359.98px) {
  .tr-sh-chip { font-size: 12px; gap: 4px; }
  .tr-sh-card .tr-card-title { font-size: 13px; }
  .tr-sh-goal { width: 232px; }
}
@media (max-width: 389.98px) {
  .tr-sh-promo { gap: 10px; padding: 14px; }
  .tr-sh-promo__wells { --well: 44px; }
  .tr-sh-promo__wells span + span { margin-left: -12px; }
  .tr-sh-promo__label { white-space: normal; font-size: 12px; }
  .tr-sh-promo .tr-h2 { white-space: normal; font-size: 15px; }
  .tr-sh-promo__go { width: 36px; height: 36px; }
}
@media (max-width: 359.98px) {
  .tr-sh-cta__actions .tr-btn { padding-right: 18px; }
}
@media (max-width: 359.98px) { .tr-sh-cta__panel { padding: 28px 16px; } }
