:root {
  --product-gap: clamp(28px, 5vw, 72px);
  --product-photo-height: clamp(340px, 38vw, 520px);
  --product-content-width: 760px;
  --product-thumb-size: 64px;
  --product-origin-size: 54px;
  --product-control-size: 44px;
  --product-radius: 12px;
  --product-tint: #edf2f3;
  --product-border: #dde4e7;
  --product-title-size: clamp(26px, 2.4vw, 34px);

}
.products { padding-block: var(--space-6) var(--space-7); }
.product-breadcrumb { display:flex; justify-content:flex-start; align-items:start; width:auto; text-align:left; gap:var(--space-4); font-size:var(--text-small); margin-bottom:var(--space-6); color:var(--muted); }
.product-breadcrumb a { padding:0; }
.product-breadcrumb .en { font-size:var(--text-small); }
.product-breadcrumb > span:last-child { color:var(--ink); }
.product-overview { display:grid; grid-template-columns:minmax(0,1.05fr) minmax(0,1fr); align-items:start; gap:var(--product-gap); }
.product-gallery { min-width: 0; display: flex; gap: var(--space-3); }
.product-gallery > .product-gallery-stage { flex: 1; min-width: 0; }
.product-gallery-stage { position:relative; height:var(--product-photo-height); background:var(--surface); border-radius:var(--product-radius); overflow:hidden; }
.product-zoom { border:0; background:none; padding:var(--space-5); width:100%; height:100%; display:grid; place-items:center; cursor:zoom-in; }
.product-zoom > img { width:100%; height:100%; object-fit:contain; min-height:0; }
.product-zoom-icon { position:absolute; left:var(--space-4); bottom:var(--space-4); display:grid; place-items:center; width:var(--product-control-size); height:var(--product-control-size); border:1px solid var(--product-border); border-radius:50%; background:var(--surface); color:var(--muted); }
.product-zoom-icon svg { width:22px; height:22px; }
.product-origin { position:absolute; right:var(--space-5); bottom:var(--space-5); width:var(--product-origin-size); height:auto; pointer-events:none; }
.product-thumbnails {
  order: -1;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  max-height: var(--product-photo-height);
  overflow-y: auto;
  padding: var(--space-1);
}
@media (max-width: 640px) {
  .product-gallery { --product-thumb-size: 44px; gap: var(--space-2); }
}
.product-thumbnails button { flex:0 0 var(--product-thumb-size); width:var(--product-thumb-size); height:var(--product-thumb-size); background:var(--surface); border:1px solid var(--product-border); border-radius:var(--space-2); padding:var(--space-1); }
.product-thumbnails button[aria-pressed=true] { border-color:var(--ink); box-shadow:0 0 0 1px var(--ink); }
.product-thumbnails img { width:100%; height:100%; object-fit:contain; }
.product-summary { padding-block:var(--space-4); }
.product-summary h1 { margin:0 0 var(--space-4); font-size:var(--product-title-size); line-height:1.4; letter-spacing:.02em; font-weight:600; }
.product-summary h1 .en { font-size:var(--text-list); margin-top:var(--space-2); letter-spacing:0; }
.product-pack { margin:0; color:var(--muted); font-size:var(--text-body); }
.product-intro { margin:0 0 var(--space-5); max-width:56ch; white-space:pre-line; }
.product-meta { margin-top:var(--space-5); font-size:var(--text-small); color:var(--muted); }
.product-meta .en { font-size:var(--text-small); }
.product-information {
  display: grid;
  gap: var(--product-gap);
  align-items: start;
  margin-top: var(--space-7);
  padding-top: var(--space-6);
  border-top: 1px solid var(--product-border);
}
@media (min-width: 901px) {
  .product-information:has(> :nth-child(2)) { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); }
  .product-information > .product-story { order: -1; }
}
@media (max-width: 900px) {
  .product-information:has(> .product-facts) { margin-top: var(--space-5); padding-top: 0; border-top: 0; }
}
.product-story h2 { margin: 0 0 var(--space-5); font-size: var(--text-section); font-weight: 500; }
.product-story section + section { margin-top: var(--space-6); }
.product-story p { margin: 0; white-space: pre-line; }
.product-story h3 { margin: 0 0 var(--space-4); font-size: var(--text-list); }
.product-facts { min-width: 0; background: var(--surface); border: 1px solid var(--product-border); border-radius: var(--product-radius); }
.product-facts details + details { border-top: 1px solid var(--product-border); }
.product-facts summary { display: flex; align-items: center; justify-content: space-between; padding: var(--space-4); cursor: pointer; font-weight: 500; }
.product-facts summary::-webkit-details-marker { display: none; }
.product-facts summary::after { content: ''; width: 8px; height: 8px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.product-facts details[open] > summary::after { transform: rotate(225deg); }
.fact-body { padding: 0 var(--space-4) var(--space-4); overflow-wrap: anywhere; }
.fact-body > .zh, .fact-body > .en { white-space: pre-line; }
.product-benefits { padding:0; margin:0; list-style:none; display:grid; gap:var(--space-5); }
.product-benefits li { position:relative; padding-left:var(--space-5); }
.product-benefits li::before { content:''; width:6px; height:6px; border-radius:50%; background:var(--gold); position:absolute; left:0; top:12px; }
.ingredient-table { width: 100%; border-collapse: collapse; font-size: var(--text-english); line-height: 1.35; }
.ingredient-table th, .ingredient-table td { padding: var(--space-1) var(--space-2); text-align: left; border: 1px solid var(--line); }
.ingredient-table th[scope=row] { font-weight:400; }
.ingredient-table thead { background:var(--product-tint); }
.ingredient-table tr > :last-child { text-align:right; white-space:nowrap; }
.ingredient-table td:last-child { font-family:var(--latin); font-variant-numeric:tabular-nums; }
.ingredient-table .en { margin: 0; font-size: var(--text-small); line-height: 1.3; }
.product-long-text { white-space:pre-line; }
.product-lightbox { padding:var(--space-6); width:min(90vw,960px); height:min(90dvh,960px); border:0; border-radius:var(--product-radius); background:var(--surface); }
.product-lightbox::backdrop { background:rgb(12 28 40 / .65); }
.product-lightbox > img { width:100%; height:100%; object-fit:contain; }
.product-lightbox-close { position:absolute; right:var(--space-4); top:var(--space-4); width:var(--product-control-size); height:var(--product-control-size); display:grid; place-items:center; border:1px solid var(--product-border); border-radius:50%; background:var(--surface); color:var(--ink); }
.product-lightbox-close svg { width:22px; height:22px; }
.product-empty { min-height:350px; display:grid; align-content:center; justify-items:center; gap:var(--space-5); text-align:center; }
.catalogue-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-5);
}
.catalogue-grid > .product-empty { grid-column: 1 / -1; }
.catalogue-grid .catalogue-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  box-shadow: 0 2px 6px rgb(23 51 77 / .06), 0 6px 20px rgb(23 51 77 / .07);
}
.catalogue-link {
  flex: 1;
  display: grid;
  grid-template-columns: min(35%, 192px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  padding: clamp(16px, 2vw, 24px);
}
.catalogue-link:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.catalogue-link .catalogue-photo { aspect-ratio: 1; border-radius: 0; }
.catalogue-link .catalogue-image { padding: 0; }
.catalogue-link .catalogue-copy { padding: 0; overflow-wrap: anywhere; }
.catalogue-link h2 { line-height: 1.4; }
.catalogue-link .catalogue-pack { margin: var(--space-2) 0 var(--space-4); }
.catalogue-bottom { display: flex; align-items: center; justify-content: flex-end; gap: var(--space-2); }
.catalogue-arrow { flex: none; width: 22px; height: 22px; }
@media (hover: hover) {
  .catalogue-grid .catalogue-card:has(.catalogue-link:hover) { box-shadow: 0 3px 8px rgb(23 51 77 / .08), 0 8px 24px rgb(23 51 77 / .10); }
  .catalogue-link:hover h2 .zh { text-decoration: underline; text-underline-offset: 4px; }
}
@media (max-width: 760px) {
  .catalogue-grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-4); }
  .catalogue-link { grid-template-columns: min(35%, 168px) minmax(0, 1fr); }
}
.catalogue-card { min-width:0; }
.catalogue-photo { display:grid; place-items:center; aspect-ratio:1; background:var(--surface); border-radius:var(--product-radius); overflow:hidden; }
.catalogue-image { width:100%; height:100%; object-fit:contain; padding:var(--space-5); transition:transform .25s; }
.catalogue-photo:hover .catalogue-image { transform:scale(1.025); }
.catalogue-copy { padding-block:var(--space-5); }
.catalogue-copy h2 { font-size:var(--text-card-title); margin:0; font-weight:500; }
.catalogue-copy h2 .en { font-size:var(--text-english); }
.catalogue-pack { color:var(--muted); font-size:var(--text-english); margin:var(--space-3) 0; }
.catalogue-pack .en { font-size:var(--text-small); }
@media(max-width:900px){.product-overview{gap:var(--space-6)}.product-summary{padding:0} }
@media(max-width:640px){:root{--product-photo-height:340px;--product-title-size:26px;--product-origin-size:44px}.product-overview{grid-template-columns:1fr;gap:var(--space-5)}.product-breadcrumb{margin-bottom:var(--space-5)}.catalogue-copy{padding-block:0}.product-lightbox{padding:var(--space-4);height:70dvh;width:94vw}.product-lightbox-close{right:var(--space-2);top:var(--space-2)}}
@media(prefers-reduced-motion:reduce){.catalogue-image{transition:none}}
.catalogue-photo { position:relative; }
.catalogue-photo .catalogue-image { position:absolute; inset:0; }
@media(max-width:640px){
 :root { --product-photo-height:300px; }
}
.product-gallery-empty { display:grid;place-content:center;text-align:center;color:var(--muted); }

.gallery-track {
  display: flex;
  height: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-track .product-zoom {
  position: relative;
  flex: 0 0 100%;
  min-width: 0;
  scroll-snap-align: start;
}
.gallery-magnifier {
  position: absolute;
  inset: 0;
  visibility: hidden;
  pointer-events: none;
  overflow: hidden;
  background: var(--surface);
}
.gallery-magnifier.active { visibility: visible; }
.gallery-magnifier img { width: 100%; height: 100%; object-fit: none; max-width: none; }
.product-gallery-stage .product-origin { pointer-events: none; }
.product-gallery-stage:has(.gallery-magnifier.active) .product-origin { visibility: hidden; }
