.hp-card-gallery, .hp-detail-gallery { min-width: 0; }
[data-hp-swipe] { touch-action: pan-y pinch-zoom; }
.hp-thumbnails { display: flex; gap: .3rem; margin-top: .4rem; }
.hp-thumb { flex: 1 1 0; min-width: 0; max-width: 20%; height: auto; aspect-ratio: 1.45; padding: 2px; border: 1.5px solid transparent; border-radius: 5px; background: transparent; }
.hp-thumb img { width: 100%; height: 100%; display: block; object-fit: cover; border-radius: 2px; }
.hp-thumb[aria-pressed="true"] { border-color: #165a3f; }
.hp-thumb:hover { background: #e7eee7; }
.hp-thumb:focus-visible, .hp-step:focus-visible, .hp-card-gallery a:focus-visible { outline: 3px solid #227b61; outline-offset: 1px; }
.hp-counter { position: absolute; inset-block-start: .65rem; inset-inline-end: .65rem; display: flex; gap: .24rem; align-items: center; padding: .27rem .5rem; background: #122e26d9; color: white; border-radius: 1rem; font: 600 .75rem/1.2 system-ui, sans-serif; font-variant-numeric: tabular-nums; pointer-events: none; }
[dir="rtl"] .hp-counter { left: .65rem; right: auto; }
.hp-step { display: grid; place-items: center; position: absolute; top: 50%; transform: translateY(-50%); border: 1px solid #fff8; border-radius: 50%; width: 2.25rem; height: 2.25rem; padding: .45rem; color: #234f3c; background: #fffef5ed; box-shadow: 0 2px 8px #182b211f; }
.hp-step[data-hp-step="-1"] { inset-inline-start: .55rem; }
.hp-step[data-hp-step="1"] { inset-inline-end: .55rem; }
.hp-step svg { width: 1rem; height: 1rem; }
.hp-step[data-hp-step="-1"] svg, [dir="rtl"] .hp-step[data-hp-step="1"] svg { transform: rotate(180deg); }
[dir="rtl"] .hp-step[data-hp-step="-1"] svg { transform: none; }
@media (hover: hover) {
  .hp-card-gallery:not(:hover):not(:focus-within) .hp-step { opacity: 0; }
}
.hp-detail-gallery .hp-thumbnails { gap: .6rem; margin-top: .65rem; }
.hp-detail-gallery .hp-thumb { aspect-ratio: 1.4; }
.hp-detail-gallery .hp-counter { font-size: .9rem; }
.hp-detail-gallery .hp-step { width: 2.75rem; height: 2.75rem; }
.hp-sample-note, .hp-translation-status { color: #526758; font-size: .875rem; line-height: 1.5; margin: .65rem 0 0; }
.hp-photo-caption { display: flex; align-items: baseline; flex-wrap: wrap; justify-content: space-between; gap: .15rem .6rem; margin: .35rem 0 0; color: #264734; font-size: 1rem; }
.hp-photo-caption [data-hp-caption]:empty { display: none; }
.hp-photo-caption .hp-sample-note { margin: 0; }
.hp-translation-status:not(:empty) { display: inline-block; }
.hp-artwork, .hp-blocks { max-width: 54rem; margin-inline: auto; }
.hp-artwork img, .hp-content-block img { display: block; width: 100%; height: auto; }
.hp-content-block + .hp-content-block { margin-top: clamp(1.75rem, 5vw, 3.5rem); }
.hp-content-block :is(h3,p) { white-space: pre-line; overflow-wrap: anywhere; }
.hp-content-block h3 { margin: 1rem 0 .45rem; font-size: clamp(1.2rem, 2.2vw, 1.65rem); line-height: 1.45; }
.hp-content-block p { margin: .5rem 0; color: #3e5344; font-size: 1rem; line-height: 1.8; }
.hp-hero-link { display: inline-flex; align-items: center; justify-content: center; padding: .5rem .85rem; margin-inline-start: .45rem; min-height: 2.45rem; font-size: .875rem; font-weight: 600; color: #fff; background: #163e31aa; border: 1px solid #ffffffa8; border-radius: 3px; }
.hp-hero-link:hover { background: #163e31; }
#home-products { scroll-margin-top: 6rem; }
@media (min-width: 1001px) { #home-products { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (min-width: 701px) and (max-width: 1000px) { #home-products { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 800px) { .hp-detail-gallery { grid-row: 1; } .pdp-gallery + .pdp-info { grid-row: 2; } .pdp-gallery .pdp-video { grid-row: 3; } }
@media (max-width: 600px) {
  .hp-card-gallery .hp-step { display: none; }
  .hp-counter { inset-block-start: .4rem; inset-inline-end: .4rem; font-size: .68rem; }
  .hp-thumbnails { gap: .12rem; margin-top: .25rem; }
  .hp-thumb { aspect-ratio: 1.18; min-height: 24px; padding: 1px; border-radius: 3px; }
  .hp-detail-gallery .hp-thumbnails { gap: .3rem; }
  .hp-hero-link { font-size: .76rem; padding-inline: .6rem; margin-inline-start: .25rem; }
}
