/* Camp store: product shelf, product page, and the bag's own bits. */

.shop-main { padding-top: var(--s-6); }
.shop-main .product-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }

/* Category filters: little wood tabs. */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin-top: var(--s-5);
}
.chip {
  min-height: 40px;
  padding: 0 var(--s-4);
  border: 1.5px solid var(--rule-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-weight: 650;
  font-stretch: 85%;
}
.chip:hover { border-color: var(--teal); color: var(--teal); }
.chip[aria-pressed='true'] { background: var(--teal); border-color: var(--teal); color: var(--on-action); }

/* The bag's ship-or-pickup choice sits on the sheet, above the lines. */
.bag-for {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-1) var(--s-5);
  margin: 0;
  padding: var(--s-2) 0 var(--s-3);
  border: 0;
}
.bag-for legend { float: left; width: 100%; padding: 0; margin-bottom: 2px; }
.bag-for .tick { font-size: var(--step-0); }

/* ---------- product page ---------- */

.crumbs { padding-bottom: var(--s-3); border-bottom: 0; }
.crumbs a {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  min-height: 44px;
  font-weight: 700;
  font-stretch: 85%;
  font-size: var(--step-1);
  text-decoration: none;
}
.crumbs a:hover { text-decoration: underline; }
.icon.back { transform: scaleX(-1); }

.product {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--s-6);
  align-items: start;
}
.product-art {
  position: sticky;
  top: var(--s-5);
}
.product-art .tile-art { border-radius: 8px; }
.product-art .tile-art svg { width: 84%; height: 84%; }
.product-name {
  font-family: var(--display);
  font-weight: 400;
  font-size: var(--step-3);
  line-height: 1.1;
  color: var(--cream);
}
.product-price { margin-top: var(--s-3); }
.product-price .tag { display: inline-block; font-size: var(--step-2); }
.product-desc { margin-top: var(--s-4); font-size: var(--step-1); color: var(--ink-2); max-width: 46ch; }

.pick {
  margin: var(--s-5) 0 0;
  padding: 0;
  border: 0;
}
.pick legend { padding: 0; margin-bottom: var(--s-2); }
.pick-now { margin-left: var(--s-2); color: var(--ink); text-transform: none; letter-spacing: 0; font-weight: 600; }
.pick-row { display: flex; flex-wrap: wrap; gap: var(--s-2); }

/* Color: a round swatch with the real shirt color. */
.swatch { position: relative; display: inline-grid; place-items: center; width: 48px; height: 48px; cursor: pointer; }
.swatch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.swatch-dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--c);
  box-shadow: inset 0 0 0 2px rgb(255 255 255 / 0.25);
  transition: box-shadow 160ms var(--ease-out), transform 200ms var(--ease-out);
}
.swatch input:checked + .swatch-dot { box-shadow: 0 0 0 3px var(--night), 0 0 0 5px var(--pink); transform: scale(1.05); }
.swatch input:focus-visible + .swatch-dot { outline: 2px solid var(--teal); outline-offset: 6px; }

/* Size and grind: ruled boxes like a form, ticked one fills pink. */
.box-pick { position: relative; cursor: pointer; }
.box-pick input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.box-face {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  min-height: 48px;
  padding: 2px var(--s-3);
  border: 1.5px solid var(--rule-strong);
  border-radius: 3px;
  font-weight: 700;
  font-stretch: 85%;
  font-size: var(--step-1);
  line-height: 1.1;
  transition: background-color 160ms var(--ease-out), color 160ms var(--ease-out);
}
.box-face small { font-size: 0.75rem; font-weight: 600; color: var(--ink-2); }
.box-pick:hover .box-face { border-color: var(--pink); }
.box-pick input:checked + .box-face { background: var(--pink); border-color: var(--pink); color: var(--on-action); }
.box-pick input:checked + .box-face small { color: var(--on-action); }
.box-pick input:focus-visible + .box-face { outline: 2px solid var(--teal); outline-offset: 3px; }

.buy-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-3);
  margin-top: var(--s-6);
}
.buy-row .btn { flex: 1 1 220px; min-height: 56px; }
.buy-note { margin-top: var(--s-3); font-size: 0.9375rem; color: var(--ink-2); }
.buy-note a { font-weight: 700; }
.product .stepper { border-color: var(--rule-strong); }

.not-found { color: var(--ink-2); font-size: var(--step-1); }

@media (max-width: 960px) {
  .shop-main { padding-top: var(--s-5); }
  .product { grid-template-columns: 1fr; gap: var(--s-5); }
  .product-art { position: static; max-width: 460px; }
}
@media (max-width: 420px) {
  .shop-main .product-grid { grid-template-columns: 1fr 1fr; }
}
