/* Shop/catalog only. Native typography; no global product-card overrides. */
body:is(.post-type-archive-product,.tax-product_cat,.tax-product_tag,[class*="tax-pa_"]) .hp-commerce-shell { min-height: 0; }
.hp-catalog, .hp-catalog-dialog {
  color: var(--hp-ink);
  font: 400 15px/1.5 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-wrap: anywhere;
}
.hp-catalog { width: 100%; margin: 0; padding-block: 0 32px; display: grid; grid-template-columns: minmax(16px,1fr) minmax(0,1200px) minmax(16px,1fr); row-gap: 12px; }
.hp-catalog > * { grid-column: 2; min-width: 0; }
.hp-catalog > .woocommerce-notices-wrapper:empty { display: none; }
.hp-catalog :is(h1,h2,h3,p,ul), .hp-catalog-dialog :is(h2,p) { margin: 0; }
.hp-catalog :is(h1,h2,h3), .hp-catalog-dialog h2 { font-family: inherit; font-style: normal; font-weight: 600; letter-spacing: -.02em; text-transform: none; line-height: 1.3; }
.hp-catalog h1 { font-size: clamp(26px,4vw,34px); }
.hp-catalog__heading { grid-column: 1 / -1; position: relative; isolation: isolate; display: grid; gap: 8px; padding: 24px max(16px,calc((100% - 1200px) / 2)); border-bottom: 1px solid var(--hp-line); overflow: hidden; background: var(--hp-soft); }
.hp-catalog__heading > p { max-width: 580px; margin: 0; font-size: 14px; line-height: 1.5; }
.hp-catalog__hero-image { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.hp-catalog__heading--image { color: var(--hp-paper); }
.hp-catalog__heading--image::after { content: ''; position: absolute; inset: 0; z-index: -1; background: rgb(0 0 0 / .55); }
.hp-catalog__breadcrumb { display: flex; align-items: center; gap: 8px; color: var(--hp-muted); font-size: 12px; }
.hp-catalog__breadcrumb a { color: inherit; text-decoration: none; }
.hp-catalog :is(a,button,select,input), .hp-catalog-dialog :is(a,button,select,input) { font-family: inherit; font-style: normal; letter-spacing: normal; text-transform: none; }
.hp-catalog :is(a,button,select,input):focus-visible, .hp-catalog-dialog :is(a,button,select,input):focus-visible { outline: 2px solid var(--hp-focus); outline-offset: 3px; }
.hp-catalog__toolbar { display: grid; grid-template-columns: auto minmax(0,1fr); align-items: stretch; gap: 10px; }
.hp-catalog__sort { display: flex; align-items: center; gap: 6px; min-width: 0; border: 1px solid var(--hp-line); border-radius: 6px; padding-inline: 10px; background: var(--hp-paper); font-size: 12px; }
.hp-catalog__sort label { white-space: nowrap; }
.hp-catalog :is(select,input), .hp-catalog-dialog select { max-width: 100%; min-width: 0; border: 1px solid var(--hp-line); border-radius: 6px; padding: 10px; background: var(--hp-paper); color: var(--hp-ink); font-size: 16px; line-height: 1.4; }
.hp-catalog button, .hp-catalog-button { border: 1px solid var(--hp-action); border-radius: 6px; padding: 10px 12px; background: var(--hp-action); color: var(--hp-paper); font-size: 14px; font-weight: 500; line-height: 1.5; cursor: pointer; text-align: center; text-decoration: none; }
.hp-catalog .hp-catalog-button { color: var(--hp-paper); }
.hp-catalog-button:hover, .hp-catalog button:hover { background: var(--hp-action-hover); color: var(--hp-paper); }
.hp-catalog-button[aria-disabled="true"], .hp-catalog-button:disabled { background: var(--hp-soft); color: var(--hp-muted); border-color: var(--hp-line); cursor: default; }
.hp-catalog .hp-catalog__filter-toggle { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 0; border-color: var(--hp-line); background: var(--hp-paper); color: var(--hp-ink); font-size: 13px; padding: 10px 12px; }
.hp-catalog__sort select { flex: 1; width: 100%; border: 0; background: transparent; padding: 10px 0; font-size: 13px; }
.hp-catalog-filter-dialog { position: fixed; inset: auto 0 0; width: min(560px,100%); max-width: 100%; max-height: 85dvh; margin: 0 auto; padding: 20px 20px calc(20px + env(safe-area-inset-bottom)); border: 1px solid var(--hp-line); border-bottom: 0; border-radius: 12px 12px 0 0; background: var(--hp-paper); color: var(--hp-ink); font: inherit; overflow-y: auto; overscroll-behavior: contain; }
.hp-catalog-filter-dialog::backdrop { background: rgb(0 0 0 / .4); }
.hp-catalog-filter-dialog > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 16px; }
.hp-catalog-filter-dialog h2 { font-size: 18px; }
.hp-catalog .hp-catalog-filter-dialog__close { display: grid; place-items: center; width: 32px; height: 32px; min-height: 0; padding: 0; border: 0; background: var(--hp-soft); color: var(--hp-ink); font-size: 24px; line-height: 1; }
html.hp-catalog-modal-open { overflow: hidden; overscroll-behavior: none; }
.hp-catalog-category-filter ul { display: flex; gap: 8px; padding: 4px 0; list-style: none; overflow-x: auto; scrollbar-width: none; }
.hp-catalog-category-filter ul::-webkit-scrollbar { display: none; }
.hp-catalog-category-filter li { flex: 0 0 auto; }
.hp-catalog-category-filter a { display: block; padding: 7px 12px; border: 1px solid var(--hp-line); border-radius: 24px; color: var(--hp-muted); font-size: 13px; text-decoration: none; }
.hp-catalog-category-filter a[aria-current="page"] { color: var(--hp-paper); background: var(--hp-action); border-color: var(--hp-action); }
.hp-catalog-category-filter a span { padding-inline-start: 6px; font-size: 12px; }
.hp-catalog-filter-form { display: grid; gap: 16px; }
.hp-catalog-filter-form fieldset { display: grid; gap: 8px; padding: 0; margin: 0; border: 0; min-width: 0; }
.hp-catalog-filter-form legend { padding: 0 0 8px; }
.hp-catalog-price-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.hp-catalog-price-fields label { display: grid; gap: 4px; }
.hp-catalog-price-input { display: flex; align-items: center; gap: 8px; }
.hp-catalog-price-input input { width: 100%; }
.hp-catalog-filter-form__actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.hp-catalog-filter-form__actions a { color: var(--hp-muted); }
.hp-catalog-filter-submit { display: inline-flex; align-items: center; gap: 10px; }
.hp-catalog__grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px 12px; padding: 0; list-style: none; }
.hp-catalog-card { position: relative; display: grid; grid-template-rows: auto 1fr; min-width: 0; padding: 0; border: 1px solid var(--hp-line); border-radius: 10px; background: var(--hp-paper); }
.hp-catalog-card__info { display: grid; grid-template-rows: auto auto auto 1fr auto; gap: 4px; min-width: 0; padding: 12px; }
.hp-catalog-card__info .hp-catalog-button { font-size: 12px; padding: 9px 6px; }
.hp-catalog-card__badge { position: absolute; z-index: 1; top: 12px; left: 12px; max-width: calc(100% - 24px); padding: 5px 8px; border-radius: 6px; font-size: 12px; font-weight: 600; }
.hp-catalog-card__description { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: var(--hp-card-description-lines); height: calc(var(--hp-card-description-lines) * 1.45em); overflow: hidden; color: var(--hp-muted); font-size: 12px; line-height: 1.45; }
.hp-catalog-card__rating { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 4px; font-size: 10px; color: var(--hp-muted); }
.hp-catalog-card__rating strong { color: var(--hp-ink); font-size: 11px; }
.hp-catalog-card__stars { position: relative; display: inline-block; color: var(--hp-line); font-size: 12px; line-height: 1; letter-spacing: 0; white-space: nowrap; }
.hp-catalog-card__stars > span { position: absolute; top: 0; left: 0; overflow: hidden; color: var(--hp-brand); }
.hp-catalog-faq { display: grid; gap: 12px; padding-block: 12px 0; }
.hp-catalog-faq h2 { font-size: 20px; }
.hp-catalog-faq__list { display: grid; gap: 8px; }
.hp-catalog-faq details { border: 1px solid var(--hp-line); border-radius: 8px; overflow: hidden; }
.hp-catalog-faq details[open] { border-color: var(--hp-brand); }
.hp-catalog-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; cursor: pointer; font-size: 13px; font-weight: 600; list-style: none; }
.hp-catalog-faq summary::-webkit-details-marker { display: none; }
.hp-catalog-faq__indicator { display: grid; flex: 0 0 24px; height: 24px; place-items: center; border: 1px solid var(--hp-line); border-radius: 50%; background: var(--hp-paper); }
.hp-catalog-faq__indicator svg { display: block; transition: transform 220ms ease; }
.hp-catalog-faq details[open] summary { background: var(--hp-soft); }
.hp-catalog-faq details[open] .hp-catalog-faq__indicator svg { transform: rotate(180deg); }
.hp-catalog-faq__answer { display: grid; gap: 8px; padding: 12px; color: var(--hp-muted); font-size: 13px; border-top: 1px solid var(--hp-line); }
.hp-catalog-faq__answer :is(ul,ol) { padding-inline-start: 22px; }
.hp-catalog-faq__answer a { color: var(--hp-action); text-underline-offset: 3px; }
.hp-catalog-card__image { display: block; aspect-ratio: 1; background: var(--hp-paper); border-radius: 9px 9px 0 0; overflow: hidden; }
.hp-catalog-card__image img { display: block; width: 100%; height: 100%; object-fit: contain; }
.hp-catalog-card h2 { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: var(--hp-card-title-lines); height: calc(var(--hp-card-title-lines) * 1.3em); overflow: hidden; font-size: 14px; }
.hp-catalog-card__link { position: absolute; inset: 0; z-index: 2; border-radius: inherit; }
.hp-catalog-card__info .hp-catalog-button { position: relative; z-index: 3; }
.hp-catalog-card__price { display: flex; flex-wrap: wrap; align-items: baseline; align-content: end; gap: 4px; font-size: 15px; font-weight: 600; }
.hp-catalog-card__price ins { order: -1; text-decoration: none; font-weight: 600; }
.hp-catalog-card__price del { color: var(--hp-muted); font-size: 12px; }
.hp-catalog .woocommerce-pagination { padding: 4px 0 0; }
.hp-catalog .woocommerce-pagination ul { display: flex; gap: 8px; padding: 0; }
.hp-catalog .woocommerce-pagination :is(a,span) { border-color: var(--hp-line); border-radius: 6px; font-size: 14px; }
.hp-catalog-dialog { width: min(480px,calc(100% - 32px)); max-height: calc(100dvh - 48px); padding: 20px; border: 1px solid var(--hp-line); border-radius: 8px; background: var(--hp-paper); overflow-y: auto; overscroll-behavior: contain; }
.hp-catalog-dialog::backdrop { background: rgb(0 0 0 / .4); }
.hp-catalog-dialog > header { display: flex; align-items: start; justify-content: space-between; gap: 16px; padding-bottom: 20px; }
.hp-catalog-dialog h2 { font-size: 20px; }
.hp-catalog-dialog__close { flex: 0 0 36px; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 6px; background: var(--hp-soft); color: var(--hp-ink); font: 400 26px/1 system-ui,sans-serif; cursor: pointer; }
.hp-catalog-options { display: grid; gap: 16px; }
.hp-catalog-options__image { height: 160px; }
.hp-catalog-options__image img { display: block; width: 100%; height: 100%; object-fit: contain; }
.hp-catalog-options .variations { width: 100%; border: 0; margin: 0; }
.hp-catalog-options .variations :is(tbody,tr) { display: grid; gap: 8px; }
.hp-catalog-options .variations :is(th,td) { padding: 0; border: 0; text-align: start; font-weight: 400; }
.hp-catalog-options .variations select { width: 100%; }
.hp-catalog-options .single_variation_wrap { display: grid; gap: 16px; }
.hp-catalog-options .single_variation { display: grid; gap: 8px; }
.hp-catalog-options .single_variation ins { text-decoration: none; }
.hp-catalog-options .single_variation del { color: var(--hp-muted); }
.hp-catalog-options > a { justify-self: start; font-size: 14px; color: var(--hp-muted); }
.hp-catalog-options__choices { display: flex; flex-wrap: wrap; gap: 8px; }
.hp-catalog-options__choice { appearance: none; margin: 0; padding: 10px 14px; border: 1px solid var(--hp-line); border-radius: 6px; background: var(--hp-paper); color: var(--hp-ink); font: inherit; cursor: pointer; }
.hp-catalog-options__choice[aria-pressed="true"] { border-color: var(--hp-action); background: var(--hp-action-soft); color: var(--hp-ink); }
.hp-catalog-options__choice:disabled { opacity: .45; cursor: not-allowed; }
@media (min-width: 700px) {
  .hp-catalog { padding-bottom: 40px; row-gap: 16px; }
  .hp-catalog__toolbar { grid-template-columns: auto minmax(0,280px); justify-content: end; }
  .hp-catalog__grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px 20px; }
  .hp-catalog-card h2 { font-size: 15px; }
  .hp-catalog-filter-form { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; }
  .hp-catalog-filter-form__actions { grid-column: 1 / -1; }
  .hp-catalog__heading { padding-block: 32px; }
}
@media (min-width: 1100px) { .hp-catalog__grid { grid-template-columns: repeat(4,minmax(0,1fr)); } }
@media (prefers-reduced-motion: reduce) { .hp-catalog-faq__indicator svg { transition: none; } }
