/* ── Honest Junk — Shop page (templates/shop.php) ─────────────────────────
   Loaded after hj-home.css and hj-cheese-barks.css, which supply the tokens,
   buttons, breadcrumb, eyebrow labels and "link-more" arrows. */

/* Hero */
.shop-hero { padding: var(--sp8) 0 var(--sp6); scroll-margin-top: 64px; }
.shop-hero__title {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  line-height: 0.95;
  font-size: clamp(34px, 5vw, 58px);
  margin-bottom: var(--sp4);
}
.shop-hero__body { font-size: 16px; color: var(--ink-soft); max-width: 560px; line-height: 1.7; }

/* Category filters (sticky under the main menu) */
.shop-filters {
  position: sticky;
  top: 64px;
  z-index: 50;
  background: var(--paper-warm);
  border-bottom: 1px solid var(--cloud);
}
.shop-filters__row { display: flex; flex-wrap: wrap; gap: var(--sp2); padding: var(--sp4) 0; }
.shop-filter {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  white-space: nowrap;
  padding: 9px 18px;
  border-radius: var(--r-pill);
  border: 1.5px solid var(--cloud);
  color: var(--ink-soft);
  background: var(--paper);
  transition: border-color 0.12s, color 0.12s, background 0.12s;
}
.shop-filter:hover { border-color: var(--ink); color: var(--ink); }
.shop-filter.is-active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.shop-filter:focus-visible { outline: 2px solid var(--rose); outline-offset: 2px; }

/* Sections */
.shop-section { padding: clamp(40px, 6vw, 72px) 0; }
.shop-section + .shop-section { padding-top: 0; }
.shop-section--band { padding-top: clamp(24px, 4vw, 40px) !important; }
.shop-section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp4) var(--sp5);
  margin-bottom: var(--sp6);
  flex-wrap: wrap;
  scroll-margin-top: 152px; /* menu + category filters */
}
.shop-section__title {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1;
}
.shop-section__aside { display: flex; flex-direction: column; align-items: flex-end; gap: var(--sp2); text-align: right; }
.shop-section__note { font-family: var(--font-mono); font-size: 12px; color: var(--ink-muted); }
.shop-empty { font-family: var(--font-mono); font-size: 14px; color: var(--ink-soft); }

/* Product grid and cards */
.shop-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp5); }
.shop-card {
  background: var(--paper);
  border: 1.5px solid var(--cloud);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  min-width: 0;
  transition: box-shadow 0.15s, transform 0.15s;
}
.shop-card:hover { box-shadow: var(--shadow-sticker); transform: translateY(-3px); }
.shop-card__img {
  display: block;
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--cloud);
}
.shop-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shop-card--out .shop-card__img img { opacity: 0.55; filter: grayscale(0.35); }
.shop-pill {
  position: absolute;
  top: 10px;
  right: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: var(--r-pill);
}
.shop-pill--rose { background: var(--blush); color: var(--rose); }
.shop-pill--green { background: var(--mint); color: var(--green); }
.shop-pill--muted { background: var(--paper); color: var(--ink-soft); border: 1px solid var(--cloud); }
.shop-card__body { padding: var(--sp5); flex: 1; display: flex; flex-direction: column; }
.shop-card__kicker {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: var(--sp1);
}
.shop-card__name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1.15;
  margin-bottom: var(--sp2);
  overflow-wrap: anywhere;
}
.shop-card__name a { color: inherit; }
.shop-card__name a:hover { text-decoration: underline; text-underline-offset: 3px; }
.shop-card__desc {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-soft);
  line-height: 1.55;
  margin-bottom: var(--sp4);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.shop-card__foot {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp2) var(--sp3);
  padding-top: var(--sp3);
  border-top: 1px solid var(--cloud);
}
.shop-card__stock {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green);
}
.shop-card__stock--out { color: var(--ink-muted); }
.shop-card__price { font-family: var(--font-display); font-size: 19px; font-weight: 900; margin-top: 3px; }
.shop-card__price s { font-size: 13px; font-weight: 700; color: var(--ink-muted); margin-left: 4px; }
.shop-card__foot a.added_to_cart { flex-basis: 100%; }

/* Teams and events band */
.shop-band {
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--r-xl);
  padding: var(--sp8) var(--sp7);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp6);
  flex-wrap: wrap;
}
.shop-band__title {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1.05;
  margin-bottom: var(--sp3);
}
.shop-band__sub { font-family: var(--font-mono); font-size: 13px; color: rgba(255, 255, 255, 0.65); line-height: 1.7; max-width: 520px; }
.shop-band__btns { display: flex; gap: var(--sp3); flex-wrap: wrap; }

@media (max-width: 1000px) {
  .shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .shop-hero { padding-top: var(--sp6); }
  .shop-filters__row {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    margin: 0 calc(var(--pad-x) * -1);
    padding: var(--sp3) var(--pad-x);
  }
  .shop-filters__row::-webkit-scrollbar { display: none; }
  .shop-section__head { scroll-margin-top: 140px; }
  .shop-section__aside { align-items: flex-start; text-align: left; }
  .shop-grid { gap: var(--sp3); }
  .shop-card { border-radius: var(--r-md); }
  .shop-card__body { padding: var(--sp3); }
  .shop-card__name { font-size: 14px; }
  .shop-card__desc { font-size: 11px; -webkit-line-clamp: 2; margin-bottom: var(--sp3); }
  .shop-card__price { font-size: 16px; }
  .shop-pill { top: 8px; right: 8px; font-size: 9px; padding: 4px 9px; }
  .shop-card__foot .btn { width: 100%; justify-content: center; }
  .shop-band { padding: var(--sp6) var(--sp5); }
}
@media (max-width: 340px) {
  .shop-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .shop-card:hover { transform: none; }
}


/* ── Search results and page not found (1.28.0) ───────────────────────────
   hj_render_search_page() and hj_render_404_page() at the end of inc/shop-data.php. Product
   cards are the Shop page's own .shop-card above. */

.srch-hero { padding-bottom: var(--sp6); }
.srch-hero__title { font-size: clamp(30px, 4.4vw, 52px); overflow-wrap: anywhere; }
.srch-hero__count {
	margin: 0 0 var(--sp5);
	font-family: var(--font-mono);
	font-size: 14px;
	letter-spacing: 0.04em;
	color: var(--ink-soft);
}

/* Search box */
.srch-form { display: flex; gap: var(--sp2); max-width: 580px; margin: 0; }
.srch-form__input {
	flex: 1 1 auto;
	min-width: 0;
	box-sizing: border-box;
	height: 54px;
	margin: 0;
	padding: 0 16px 0 46px;
	border: 2px solid var(--ink);
	border-radius: var(--r-md);
	background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%231A1A1A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat 16px center;
	box-shadow: var(--shadow-sticker);
	font-family: var(--font-body);
	font-size: 16px;
	color: var(--ink);
	-webkit-appearance: none;
	appearance: none;
}
.srch-form__input::placeholder { color: var(--ink-muted); opacity: 1; font-size: 15px; }
.srch-form__input:focus { outline: 2px solid var(--rose); outline-offset: 2px; }
.srch-form__btn { flex: 0 0 auto; height: 54px; justify-content: center; box-sizing: border-box; }

/* Matching site pages, as pills */
.srch-pages {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--sp2);
	padding: var(--sp4) 0 0;
}
.srch-pages__label {
	margin-right: var(--sp1);
	font-family: var(--font-mono);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--ink-muted);
}
.srch-pages a {
	padding: 8px 16px;
	border: 1.5px solid var(--ink);
	border-radius: var(--r-pill);
	background: var(--paper);
	font-family: var(--font-display);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	white-space: nowrap;
	color: var(--ink);
	transition: background 0.12s, box-shadow 0.12s;
}
.srch-pages a::after { content: " →"; color: var(--rose); }
.srch-pages a:hover { background: var(--yellow); box-shadow: var(--shadow-sticker); }

.srch-results { padding-top: clamp(28px, 4vw, 44px); }
.srch-subhead { margin: 0 0 var(--sp5); }
.srch-note { margin: 0 0 var(--sp6); font-size: 16px; line-height: 1.7; color: var(--ink-soft); max-width: 600px; }
.srch-help {
	margin: var(--sp7) 0 0;
	font-family: var(--font-mono);
	font-size: 14px;
	color: var(--ink-soft);
}
.srch-help a { color: var(--rose); text-decoration: underline; text-underline-offset: 3px; font-weight: 700; }

/* Section tiles */
.srch-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp4); }
.srch-tile {
	--tile: var(--rose);
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-height: 112px;
	padding: var(--sp5) 56px var(--sp5) var(--sp5);
	box-sizing: border-box;
	border: 2px solid var(--ink);
	border-top: 8px solid var(--tile);
	border-radius: var(--r-md);
	background: var(--paper);
	color: var(--ink);
	transition: transform 0.12s, box-shadow 0.12s;
}
.srch-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-sticker); }
.srch-tile__title {
	font-family: var(--font-display);
	font-size: 19px;
	font-weight: 800;
	line-height: 1.05;
	letter-spacing: -0.01em;
	text-transform: uppercase;
}
.srch-tile__note { font-family: var(--font-mono); font-size: 12px; line-height: 1.5; color: var(--ink-soft); }
.srch-tile__go {
	position: absolute;
	right: var(--sp4);
	top: 50%;
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	margin-top: -16px;
	border-radius: 50%;
	background: var(--tile);
	color: var(--paper);
	font-size: 16px;
	font-weight: 700;
}
.srch-tile--christmas { --tile: var(--red); }
.srch-tile--super-gummies { --tile: var(--purple); }
.srch-tile--cheese-barks { --tile: var(--orange); }
.srch-tile--sweet-potato-chips { --tile: var(--tangerine); }
.srch-tile--gift-boxes { --tile: var(--rose); }
.srch-tile--gift-cards { --tile: var(--teal); }
.srch-tile--shop-all { --tile: var(--ink); background: var(--ink); color: var(--paper); }
.srch-tile--shop-all .srch-tile__note { color: rgba(255, 255, 255, 0.72); }
.srch-tile--shop-all .srch-tile__go { background: var(--yellow); color: var(--ink); }
/* Shop All fills the last row */
.srch-tile--shop-all:nth-child(4n+3) { grid-column: span 2; }
.srch-tile--shop-all:nth-child(4n+2) { grid-column: span 3; }

/* Page not found */
.nf-hero__code {
	display: inline-block;
	margin: 0 0 var(--sp4);
	padding: 4px 16px 2px;
	border: 2px solid var(--ink);
	border-radius: var(--r-md);
	background: var(--yellow);
	box-shadow: var(--shadow-sticker);
	font-family: var(--font-display);
	font-size: clamp(40px, 6vw, 64px);
	font-weight: 900;
	line-height: 1;
	letter-spacing: -0.03em;
	color: var(--ink);
	transform: rotate(-3deg);
}
.nf-hero .shop-hero__body { margin: 0 0 var(--sp6); }
.nf-hero + .shop-section { padding-top: clamp(24px, 3vw, 40px); }

@media (max-width: 1000px) {
	.srch-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.srch-tile--shop-all:nth-child(n) { grid-column: auto; }
	.srch-tile--shop-all:nth-child(odd) { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
	.srch-form__btn { padding-left: 18px; padding-right: 18px; }
	.srch-tiles { grid-template-columns: minmax(0, 1fr); gap: var(--sp3); }
	.srch-tile { min-height: 0; }
	.srch-tile--shop-all:nth-child(n) { grid-column: auto; }
}
