/* Shop collections: a quiet Essentials / Fibonacci switcher above the shop heading, and the
   coming-soon state for unreleased products (collections.json, comingSoon: true). */
.collection-anchor { display: block; height: 0; }
/* Tabs: bright active label on a hairline track with a 2px chrome underline. */
.collection-tabs {
  display: flex;
  justify-content: center;
  gap: 44px;
  width: fit-content;
  margin: 0 auto 40px;
  padding: 0 6px;
  border-bottom: 1px solid var(--line-strong, #2c2c33);
}
.collection-tabs[hidden] { display: none; }
.collection-tabs button {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  padding: 10px 2px 13px;
  margin-bottom: -1px;
  border: 0;
  border-radius: 0;
  background: none;
  color: #8e8e94;
  font: 500 16px/1.2 var(--f-body, Inter, sans-serif);
  letter-spacing: -0.012em;
  cursor: pointer;
  transition: color 0.2s ease;
}
.collection-tabs button::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, #a2a2aa 0%, #f2f2f4 50%, #a2a2aa 100%);
  transform: scaleX(0);
  transition: transform 0.25s ease;
}
.collection-tabs button:hover { color: #d2d2d7; }
.collection-tabs button[aria-selected="true"] { color: #fff; font-weight: 600; }
.collection-tabs button[aria-selected="true"]::after { transform: scaleX(1); }

/* Essentials | Fibonacci design switch: product popup and the set panel/dialog.
   A slim segmented control; the active design gets the chrome gradient. */
.design-switch {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 2px;
  box-sizing: border-box;
  height: 30px;
  padding: 2px;
  margin: 20px 0 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
}
.design-switch[hidden] { display: none; }
html.nq-premium .design-switch button {
  box-sizing: border-box;
  width: auto;
  min-width: 0;
  height: 24px;
  min-height: 0;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
  color: #8e8e94;
  font: 500 12.5px/24px var(--f-body, Inter, sans-serif);
  letter-spacing: -0.003em;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}
html.nq-premium .design-switch button:hover { color: #e8e8ed; }
/* Active: a soft dark-chrome fill with bright text, not a full silver button. */
html.nq-premium .design-switch button[aria-pressed="true"] {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.17) 0%, rgba(255, 255, 255, 0.07) 100%);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}
.set-copy .set-design { margin: 22px 0 0; }
#set-dialog .set-design { margin: 18px 0 0; }
#set-dialog .set-design + .bundle-type-switch { margin-top: 14px; }
html.nq-premium #product-dialog .detail-copy > #design-switch[hidden] { display: none; }
.tab-soon {
  margin-left: 7px;
  color: #6e6e73;
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* One or two cards (Fibonacci): keep them card-sized and centred under the heading. */
html.nq-premium #products.is-few { grid-template-columns: repeat(var(--few, 2), minmax(0, 300px)); justify-content: center; }

/* Coming-soon product: a small badge where the price would be. */
.soon-badge {
  flex: none;
  display: inline-block;
  padding: 5px 9px;
  border: 1px solid var(--line-strong, #2c2c33);
  border-radius: 999px;
  color: #d2d2d7;
  font: 500 9.5px/1 var(--f-body, Inter, sans-serif);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}
/* Longer galleries scroll their thumbnail row; keep the bar slim. */
html.nq-premium #detail-thumbs { scrollbar-width: thin; scrollbar-color: #c7c7cc transparent; }
/* Coming-soon products show one disabled "Coming soon" button, not two. */
html.nq-premium #add-to-bag[hidden],
html.nq-premium #product-dialog .detail-copy [hidden] { display: none; }
html.nq-premium .detail-price.is-soon {
  color: #d2d2d7;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

@media (max-width: 650px) {
  .collection-tabs { gap: 34px; margin-bottom: 28px; }
  .collection-tabs button { font-size: 15px; padding: 9px 2px 12px; }
  #product-dialog .detail-copy > #design-switch { align-self: flex-start; }
  html.nq-premium #products.is-few { grid-template-columns: repeat(var(--few, 2), minmax(0, 240px)); }
  .soon-badge { padding: 4px 8px; font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  .collection-tabs button, .collection-tabs button::after, .design-switch button { transition: none; }
}
