/* Harmony 1.5: preserve White Space, support native Woo and accessible discovery. */
.catalog-filters { border-block: 1px solid var(--border); margin-top: 20px; }
.catalog-filters > summary { display: flex; align-items: center; gap: 12px; padding: 15px 0; cursor: pointer; color: var(--text); }
.catalog-filters__form { display: flex; flex-wrap: wrap; align-items: end; gap: 16px; padding: 0 0 20px; }
.catalog-filters__form label { flex: 1 1 155px; font-size: 14px; color: var(--text); }
.catalog-filters input, .catalog-filters select { display: block; width: 100%; min-height: 46px; margin-top: 6px; padding: 8px 12px; background: #fff; border: 1px solid var(--border); border-radius: 0; }
.catalog-filters__note { flex-basis: 100%; }
.hws-product.product { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, .85fr); align-items: start; gap: var(--gap); margin-top: 24px; }
.hws-gallery, .hws-product .buy { min-width: 0; }
.hws-gallery { position: relative; }
.hws-gallery .woocommerce-product-gallery { position: relative; width: 100% !important; float: none !important; margin: 0; opacity: 1 !important; }
.hws-gallery .woocommerce-product-gallery__wrapper { margin: 0; }
.hws-gallery .woocommerce-product-gallery__image img { width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; background: var(--surface); }
.hws-gallery .woocommerce-product-gallery__trigger { position: absolute; right: 12px; top: 12px; z-index: 5; display: grid; place-items: center; min-width: 44px; min-height: 44px; background: white; border: 1px solid var(--border); }
.hws-gallery .flex-control-thumbs { display: flex; gap: 10px; overflow-x: auto; padding: 12px 2px; margin: 0; max-width: 100%; }
.hws-gallery .flex-control-thumbs li { flex: 0 0 76px; list-style: none; }
.hws-gallery .flex-control-thumbs img { width: 76px; height: 76px; object-fit: contain; cursor: pointer; border: 1px solid var(--border); background: var(--surface); }
.hws-gallery .flex-control-thumbs .flex-active { border-color: var(--action); }
.hws-gallery .onsale { position: absolute; z-index: 3; left: 12px; top: 12px; background: white; padding: 5px 12px; color: var(--action); }
.hws-product .summary { width: auto !important; float: none !important; margin: 0; }
.product-help { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-block: 8px 20px; }
.product-details { margin-top: 20px; border-top: 1px solid var(--border); }
.product-details details, .help-question { border-bottom: 1px solid var(--border); padding-block: 16px; }
.product-details summary, .help-question summary { cursor: pointer; min-height: 30px; color: var(--text); }
.product-details details > :not(summary), .help-question > :not(summary) { margin-top: 14px; }
.product_meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 16px 0; font-size: 14px; }
.product-details .hws-content { margin: 12px 0 0; }
.hws-product .spec { margin-top: 20px; }
.product-buybar { display: none; }
.resource-bridge { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding-block: 44px; border-block: 1px solid var(--border); margin-block: 56px; }
.resource-bridge .eyebrow { margin-bottom: 12px; }
.resource-bridge p { margin-top: 8px; }
.catalogue-index { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-block: 36px; }
.catalogue-card { background: var(--surface); padding: 32px; }
.catalogue-card h2 { margin-block: 20px 12px; }
.catalogue-card .link { margin-top: 18px; }
.help-topics { margin-block: 28px; overflow-x: auto; }
.help-sections { max-width: 900px; }
.help-sections section { scroll-margin-top: 120px; padding-block: 30px; }
.help-sections h2 { margin-bottom: 18px; }
.card__img:focus-visible .card__alt.is-ready, .card__img:focus-within .card__alt.is-ready { opacity: 1; }
.card__img .card__alt { object-fit: cover; }
.menu a { min-height: 44px; }
.menu ul { margin: 0; padding: 0; }
.menu .submenu { padding-left: 14px; border-left: 1px solid var(--border); }
#site-main:focus, #product-options:focus { outline: none; }
.thumbs { min-width: 0; max-width: 100%; overflow-x: auto; }
.admin-bar .site-header { top: 32px; }
.woocommerce .shop_table { max-width: 100%; }
.woocommerce .coupon { display: flex; gap: 8px; flex-wrap: wrap; }
.woocommerce .coupon input { max-width: 100%; }
@media (max-width: 1023px) {
  .hws-product.product { grid-template-columns: minmax(0, 1fr); }
  .hws-product .buy { border: 0; padding: 0; order: initial; }
  .catalogue-index { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .product-buybar:not([hidden]) { display: flex; position: fixed; inset: auto 0 0; z-index: 35; align-items: center; justify-content: space-between; gap: 16px; padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--border); }
  .product-buybar span { font-family: var(--f-display); color: var(--text); font-size: 20px; line-height: 1.15; }
  .product-buybar .btn { flex-shrink: 0; }
  .has-product-buybar { padding-bottom: 90px; }
}
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) {
  .resource-bridge { align-items: flex-start; flex-direction: column; }
  .catalogue-index { grid-template-columns: minmax(0,1fr); }
  .catalogue-card { padding: 24px; }
  .catalog-filters__form label { flex-basis: calc(50% - 8px); min-width: 0; }
  .hws-product .buy h1 { overflow-wrap: anywhere; }
  .woocommerce table.shop_table_responsive thead { display: none; }
  .woocommerce table.shop_table_responsive tbody, .woocommerce table.shop_table_responsive tr, .woocommerce table.shop_table_responsive td { display: block; width: 100%; }
  .woocommerce table.shop_table_responsive td { text-align: right; padding-block: 10px; }
  .woocommerce table.shop_table_responsive td[data-title]::before { content: attr(data-title) ': '; float: left; font-weight: 500; color: var(--text); }
  .woocommerce table.shop_table_responsive td.product-thumbnail { text-align: left; }
  .woocommerce table.shop_table_responsive td.product-thumbnail img { max-width: 110px; }
  .woocommerce table.shop_table_responsive tr { border-bottom: 1px solid var(--border); padding-block: 12px; }
  .woocommerce table.shop_table_responsive td.actions { text-align: left; }
  .woocommerce .cart-collaterals { display: block; }
  .woocommerce .cart_totals { width: 100%; float: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

.hero.hero--no-product { display: block; min-height: 0; padding-block: 44px; }
.hero--no-product .hero__actions:has(.cat-links:empty) { display: none; }
