/* /shop: every product we sell right now (3 milk bottles + 6 concentrated flavours).
   Cards reuse the homepage's .product card (styles.css + site-v2.css); this file only lays out the page. */

.shop-hero { padding: 28px 0 8px; }
.shop-crumbs { display: flex; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.shop-crumbs a { color: var(--muted); }
.shop-crumbs a:hover { color: var(--ink); }
.shop-hero__title {
  margin: 0; font-family: var(--f-display); font-weight: 500; letter-spacing: -.01em;
  font-size: clamp(40px, 7vw, 64px); line-height: 1.04; color: var(--ink);
}
.shop-hero__lede { margin: 12px 0 0; max-width: 52ch; font-size: 16px; line-height: 1.7; color: var(--ink-soft); }

/* category chips jump to each group */
.shop-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.shop-chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px;
  border: 1px solid var(--line-2); border-radius: 999px; background: #fff; color: var(--ink);
  font-size: 14px; font-weight: 500; transition: border-color .2s, background .2s;
}
.shop-chip small { font-size: 12px; color: var(--muted); font-weight: 400; }
.shop-chip:hover { border-color: var(--ink); color: var(--ink); }

.shop-cat { padding: 40px 0 24px; scroll-margin-top: 90px; }
.shop-cat + .shop-cat { padding-top: 32px; }
.shop-cat__head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px;
  padding-bottom: 14px; margin-bottom: 22px; border-bottom: 1px solid var(--line);
}
.shop-cat__title { margin: 0; font-family: var(--f-display); font-weight: 500; font-size: clamp(28px, 4vw, 40px); line-height: 1.1; color: var(--ink); }
.shop-cat__sub { margin: 4px 0 0; font-size: 14px; color: var(--muted); }
.shop-cat__count { flex: none; font-size: 13px; color: var(--muted); }
html[data-lang="zh"] :is(.shop-hero__title, .shop-cat__title) { font-family: var(--f-serif-cn); font-weight: 400; letter-spacing: .02em; }

/* the grid: 3 across on desktop, 2 across on tablets and phones */
.shop-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 28px; }
.shop-grid .product { flex: none; min-width: 0; }
@media (max-width: 1023px) {
  .shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 14px; }
  /* an odd last card (the 3rd milk bottle) takes the whole row: photo left, details right */
  .shop-grid > .product:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas: "media info" "media price" "media add";
    grid-template-rows: 1fr auto auto;
    column-gap: 14px;
  }
  .shop-grid > .product:last-child:nth-child(odd) .product__media { align-self: start; }
}

/* flavour badge on each jar photo: all six share one jar photo, the emoji tells them apart at a glance */
.flavour-badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px;
  border-radius: 999px; background: rgba(252, 250, 246, .94); box-shadow: 0 6px 18px -8px rgba(43, 33, 26, .45);
}
.flavour-badge__emoji {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #fff;
  font-size: 22px; line-height: 1; font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif;
}
.flavour-badge__name { font-family: var(--f-label); font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); }
html[data-lang="zh"] .flavour-badge__name { font-family: var(--f-sans-cn); font-size: 14px; letter-spacing: .12em; }
.product--jar .product__photo { object-position: 38% 58%; }
.product__note { margin: 4px 0 0; font-size: 14px; line-height: 1.6; color: var(--muted); }

/* phones: two small cards side by side */
@media (max-width: 639px) {
  .shop-grid .product__title { font-size: 19px; line-height: 1.15; }
  html[data-lang="zh"] .shop-grid .product__title { font-size: 16px; }
  .shop-grid .product__price { font-size: 19px; }
  .shop-grid .product__add { height: 42px; padding: 0 10px; font-size: 13px; gap: 6px; }
  .shop-grid .product__add svg { width: 14px; height: 14px; }
  .shop-grid .product__note { font-size: 12.5px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .shop-grid .product__flag { top: 8px; left: 8px; padding: 4px 8px; font-size: 9.5px; }
  .flavour-badge { top: 8px; left: 8px; gap: 6px; padding: 4px 10px 4px 4px; }
  .flavour-badge__emoji { width: 30px; height: 30px; font-size: 18px; }
  .flavour-badge__name { font-size: 10.5px; letter-spacing: .06em; }
  html[data-lang="zh"] .flavour-badge__name { font-size: 13px; }
  .shop-grid .product-photo__caption { font-size: 11px; }
}

/* good-to-know strip */
.shop-notes { padding: 40px 0 64px; }
.shop-notes__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; border-top: 1px solid var(--line); padding-top: 28px; }
.shop-notes strong { display: block; font-size: 15px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.shop-notes p { margin: 0; font-size: 14px; line-height: 1.7; color: var(--ink-soft); }
@media (max-width: 767px) { .shop-notes__grid { grid-template-columns: 1fr; gap: 18px; } }

/* 2026-11-08: bigger tap area for the breadcrumb link (same look). */
.shop-crumbs a{display:inline-block;padding:12px 6px;margin:-12px -6px}
