/* (C) /shop/exclusive/ for STAR Prints by CHA Prints: predesigned products as large cards in a grid.
 * Loaded after site.css, on /shop/exclusive/ only.
 * 🔴 No hex colors (tokens only), no vh/svh/dvh/lvh.
 */

/* ---- the heading: as /shop/'s (Christian, 2026-11-18: "just another shop page", no hero) ---- */
.exclusive {
  padding-top: var(--space-5);
}

.ex-head h1 {
  font-size: var(--size-h2);
  line-height: var(--line-h2);
  color: var(--navy);
}

.ex-lede {
  margin-top: var(--space-2);
  color: var(--dusk);
}

/* ---- the shelf ----------------------------------------------------------- */
.ex-shelf {
  padding-top: var(--space-5);
}

/* Two or three products fill the width as big cards; four or more wrap three to a row. */
.ex-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: var(--space-4) var(--space-3);
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 1024px) {
  .ex-grid-1 { grid-template-columns: minmax(0, 560px); justify-content: center; }
  .ex-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ex-grid-3,
  .ex-grid-many { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.ex-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  scroll-margin-top: var(--space-4);
}

/* 4:3, not square (Christian, 2026-11-18: the photos looked a little tall); the whole photo shows, never cropped. */
.ex-photo {
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-stage);
  background: var(--mist);
  overflow: hidden;
}

.ex-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.ex-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: var(--space-1);
  padding-top: var(--space-2);
}

.ex-name {
  font-size: var(--size-h3);
  line-height: var(--line-h3);
  color: var(--navy);
}

.ex-spec,
.ex-blurb {
  color: var(--dusk);
}

.ex-price {
  margin-top: auto;
  padding-top: var(--space-1);
  font-size: var(--size-h3);
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
}

.ex-price .jan-line {
  display: block;
  color: var(--dusk);
  font-size: var(--size-small);
  font-weight: 600;
}

.ex-add {
  width: 100%;
  margin-top: var(--space-2);
}

.ex-add[aria-busy] {
  opacity: 0.7;
  cursor: progress;
}

.ex-note {
  min-height: var(--line-small);
  color: var(--navy);
}

.ex-note[hidden] {
  display: none;
}

/* With no products yet: one wide panel where the cards will go. */
.ex-empty {
  display: grid;
  place-items: center;
  gap: var(--space-2);
  padding: var(--space-10) var(--space-3);
  border-radius: var(--radius-stage);
  background: var(--mist);
  text-align: center;
}

.ex-empty h3 {
  color: var(--navy);
}

.ex-empty p {
  color: var(--dusk);
}

/* ---- how it works -------------------------------------------------------- */
.ex-how h2,
.ex-own h2 {
  font-size: var(--size-h2);
  line-height: var(--line-h2);
  color: var(--navy);
}

.ex-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: var(--space-3);
  margin: var(--space-4) 0 0;
  padding: 0;
  list-style: none;
}

.ex-steps li {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding: var(--space-3);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-row);
}

.ex-steps h3 {
  color: var(--navy);
}

.ex-steps p {
  color: var(--dusk);
}

.ex-step-n {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 700;
}

.ex-own {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-2);
}

/* A size never breaks across lines: "24″ × 18″" stays together. */
.nobr {
  white-space: nowrap;
}


/* The page's own button style for the /shop/ and home links lives in shop.css and home.css. */

/* Link cards (2026-11-18): the In use photograph with the sample art, cropped in around the piece, drawn at build time.
   The paint mirrors the home tiles' in home.css. */
.ex-shot {
  position: relative;
}

.ex-zoom {
  position: absolute;
}

.ex-shot-photo,
.ex-shot-art {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.ex-shot-photo {
  object-fit: cover;
}

.ex-shot-art .shot-face {
  fill: var(--white);
  stroke: var(--hairline);
  stroke-width: .5px;
  vector-effect: non-scaling-stroke;
}

.ex-shot-art .shot-shadow {
  fill: var(--midnight);
  opacity: .18;
}

/* ---- premade shirts (2026-11-18): Shirt, Size and How many on the card ---- */
.ex-opts {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-top: var(--space-2);
}

.ex-opt {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.ex-opt-name {
  padding: 0;
  margin-bottom: 4px;
  font-size: var(--size-small);
  font-weight: 600;
  color: var(--navy);
}

.ex-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
}

.ex-chip {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 var(--space-2);
  border: 1px solid var(--steel);
  border-radius: var(--radius-button);
  background: var(--white);
  color: var(--navy);
  font-weight: 600;
  cursor: pointer;
  touch-action: manipulation;
}

.ex-chip > input.visually-hidden {
  inset: 0;
  width: auto;
  height: auto;
  margin: 0;
  clip-path: none;
  opacity: 0;
  cursor: pointer;
}

.ex-chip:has(input:checked) {
  padding: 0 calc(var(--space-2) - 1px);
  border: 2px solid var(--navy);
  background: var(--mist);
}

.ex-chip:has(input:focus-visible) {
  outline: var(--focus-width) solid var(--ink);
  outline-offset: 2px;
}

@media (hover: hover) {
  .ex-chip:hover {
    border-color: var(--navy);
  }
}
