/* NonHue WooCommerce catalog layer. Hook-first; no copied Woo core templates. */

body.nh-filter-open { overflow: hidden; }

/* Shared Woo shell */
.nonhue-woocommerce .woocommerce-breadcrumb {
  margin: 0 0 28px;
  color: color-mix(in srgb, var(--nh-color-text) 62%, transparent);
  font-size: .82rem;
}
.nonhue-woocommerce .woocommerce-breadcrumb a { color: inherit; text-decoration: none; }
.nonhue-woocommerce .woocommerce-breadcrumb a:hover { color: var(--nh-color-primary); }
.nonhue-woocommerce .woocommerce-notices-wrapper { grid-column: 1 / -1; }
.nonhue-woocommerce .woocommerce-message,
.nonhue-woocommerce .woocommerce-info,
.nonhue-woocommerce .woocommerce-error {
  margin: 0 0 24px;
  padding: 14px 16px;
  border: 1px solid color-mix(in srgb, var(--nh-color-primary) 20%, transparent);
  border-radius: var(--nh-radius-sm);
  background: var(--nh-color-white);
  box-shadow: none;
}
.nonhue-woocommerce .woocommerce-error { border-color: color-mix(in srgb, var(--nh-color-error) 32%, transparent); }

/* Catalog */
.nh-shop-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 36px;
  padding-block: 44px 72px;
}
.nh-shop-main { min-width: 0; }
.nh-shop-main .woocommerce-products-header { margin-bottom: 28px; }
.nh-shop-main .woocommerce-products-header__title.page-title { margin-bottom: 14px; }
.nh-shop-main .term-description { max-width: 780px; color: color-mix(in srgb, var(--nh-color-text) 78%, transparent); }
.nh-shop-main .term-description > *:first-child { margin-top: 0; }
.nh-shop-main .term-description > *:last-child { margin-bottom: 0; }

/* Compact count + sort bar */
.nh-catalog-toolbar {
  clear: both;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 52px;
  margin: 0 0 22px;
  padding: 8px 10px 8px 14px;
  border: 1px solid color-mix(in srgb, var(--nh-color-text) 14%, transparent);
  border-radius: var(--nh-radius-md);
  background: var(--nh-color-white);
}
.nh-catalog-toolbar__count {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  color: color-mix(in srgb, var(--nh-color-text) 64%, transparent);
  font-size: .84rem;
  white-space: nowrap;
}
.nh-catalog-toolbar__count strong { color: var(--nh-color-primary); font-weight: 700; }
.nh-catalog-toolbar__sort { display: flex; align-items: center; justify-content: flex-end; gap: 10px; min-width: 0; }
.nh-catalog-toolbar__sort-label { color: color-mix(in srgb, var(--nh-color-text) 78%, transparent); font-size: .82rem; font-weight: 600; white-space: nowrap; }
.nh-catalog-toolbar .woocommerce-ordering { float: none; margin: 0; }
.nh-catalog-toolbar .woocommerce-ordering select {
  min-height: 36px;
  min-width: 170px;
  max-width: 220px;
  margin: 0;
  padding: 6px 34px 6px 11px;
  border: 1px solid color-mix(in srgb, var(--nh-color-text) 15%, transparent);
  border-radius: var(--nh-radius-sm);
  background: var(--nh-color-white);
  color: var(--nh-color-text);
  font: inherit;
  font-size: .82rem;
}
.nh-filter-toggle {
  display: none;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: -8px 0 20px;
  padding: 7px 12px;
  border: 1px solid color-mix(in srgb, var(--nh-color-primary) 28%, transparent);
  border-radius: var(--nh-radius-sm);
  background: var(--nh-color-white);
  color: var(--nh-color-primary);
  font-weight: 600;
}
.nh-filter-toggle .nh-icon { width: 17px; height: 17px; }
.nh-filter-toggle--mobile-inline { display: none; }

/* Product grid + card */
.nonhue-woocommerce ul.products {
  clear: both;
  display: grid;
  grid-template-columns: repeat(var(--nh-shop-cols-desktop, 4), minmax(0, 1fr));
  gap: 24px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nonhue-woocommerce ul.products::before,
.nonhue-woocommerce ul.products::after { display: none; }
.nonhue-woocommerce ul.products li.product {
  float: none !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0;
}
.nh-product-card {
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid color-mix(in srgb, var(--nh-color-text) 9%, transparent);
  border-radius: var(--nh-radius-md);
  background: var(--nh-color-white);
  box-shadow: 0 5px 18px color-mix(in srgb, var(--nh-color-text) 5%, transparent);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.nh-product-card:hover {
  border-color: color-mix(in srgb, var(--nh-color-primary) 18%, transparent);
  box-shadow: 0 8px 24px color-mix(in srgb, var(--nh-color-text) 7.5%, transparent);
}
.nh-product-card__media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: var(--nh-color-white);
}
.nh-product-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0 !important;
  object-fit: contain;
  object-position: center;
}
.nh-product-badges {
  position: absolute;
  z-index: 2;
  top: 9px;
  left: 9px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  pointer-events: none;
}
.nh-product-badge {
  padding: 4px 7px;
  border-radius: 999px;
  background: var(--nh-color-primary);
  color: var(--nh-color-white);
  font-size: .64rem;
  font-weight: 700;
  line-height: 1;
}
.nh-product-badge.is-popular { background: var(--nh-color-accent); }
.nh-product-badge.is-stock { background: var(--nh-color-disabled); }
.nh-product-card__body { flex: 1; display: flex; flex-direction: column; padding: 14px; }
.nh-product-card__category { margin-bottom: 6px; font-size: .68rem; line-height: 1.35; }
.nh-product-card__category a { color: color-mix(in srgb, var(--nh-color-text) 62%, transparent); text-decoration: none; }
.nh-product-card__title {
  display: -webkit-box;
  overflow: hidden;
  min-height: 2.8em;
  margin: 0;
  font-family: var(--nh-font-body);
  font-size: .91rem;
  font-weight: 600;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.nh-product-card__title a { color: var(--nh-color-text); text-decoration: none; }
.nh-product-card__title a:hover { color: var(--nh-color-primary); }
.nh-product-card__price {
  margin-top: 8px;
  color: var(--nh-color-primary);
  font-size: .94rem;
  font-weight: 700;
}
.nh-product-card__price del { margin-right: 4px; color: var(--nh-color-disabled); font-size: .82em; font-weight: 500; opacity: .8; }
.nh-product-card__price ins { text-decoration: none; }
.nh-product-card__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: auto; padding-top: 11px; }
.nh-product-card__actions .nh-button:only-child { grid-column: 1 / -1; }
.nh-product-card__actions .nh-button { min-height: 34px; padding: 5px 8px; font-size: .71rem; line-height: 1.2; }
.nh-button--outline { background: transparent; color: var(--nh-color-primary); }
.nh-button--outline:hover { background: var(--nh-color-primary); color: var(--nh-color-white); }

/* Pagination */
.nonhue-woocommerce nav.woocommerce-pagination { margin-top: 36px; text-align: left; }
.nonhue-woocommerce nav.woocommerce-pagination ul { display: flex; gap: 7px; margin: 0; padding: 0; border: 0; }
.nonhue-woocommerce nav.woocommerce-pagination ul li { border: 0; }
.nonhue-woocommerce nav.woocommerce-pagination ul li a,
.nonhue-woocommerce nav.woocommerce-pagination ul li span {
  display: grid;
  min-width: 38px;
  min-height: 38px;
  place-items: center;
  padding: 5px;
  border: 1px solid color-mix(in srgb, var(--nh-color-text) 12%, transparent);
  border-radius: var(--nh-radius-sm);
  background: var(--nh-color-white);
  color: var(--nh-color-text);
}
.nonhue-woocommerce nav.woocommerce-pagination ul li span.current,
.nonhue-woocommerce nav.woocommerce-pagination ul li a:hover { border-color: var(--nh-color-primary); background: var(--nh-color-primary); color: var(--nh-color-white); }

/* Catalog sidebar: separate boxes, no monolithic long filter card. */
.nh-shop-sidebar { position: relative; align-self: start; min-width: 0; }
.nh-shop-sidebar__head { display: none; }
.nh-shop-sidebar__body { display: grid; gap: 18px; }
.nh-sidebar-box {
  min-width: 0;
  padding: 17px;
  border: 1px solid color-mix(in srgb, var(--nh-color-text) 10%, transparent);
  border-radius: var(--nh-radius-md);
  background: var(--nh-color-white);
  box-shadow: 0 4px 15px color-mix(in srgb, var(--nh-color-text) 3.5%, transparent);
}
.nh-sidebar-box__title {
  margin: 0 0 13px;
  font-family: var(--nh-font-body);
  font-size: .9rem;
  font-weight: 700;
  line-height: 1.35;
}

/* Search box */
.nh-product-search { position: relative; display: flex; align-items: center; }
.nh-product-search input[type="search"] {
  width: 100%;
  min-height: 40px;
  margin: 0;
  padding: 8px 42px 8px 11px;
  border: 1px solid color-mix(in srgb, var(--nh-color-text) 15%, transparent);
  border-radius: var(--nh-radius-sm);
  background: var(--nh-color-white);
  color: var(--nh-color-text);
  font: inherit;
  font-size: .8rem;
}
.nh-product-search button {
  position: absolute;
  right: 5px;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--nh-color-primary);
}
.nh-product-search button .nh-icon { width: 17px; height: 17px; }

/* Category box */
.nh-sidebar-box--categories,
.nh-sidebar-box--filters,
.nh-sidebar-box--new-products { overflow: hidden; padding: 0; }
.nh-sidebar-box--categories .nh-sidebar-box__title,
.nh-sidebar-box--filters .nh-sidebar-box__title,
.nh-sidebar-box--new-products .nh-sidebar-box__title {
  margin: 0;
  padding: 13px 16px;
  background: var(--nh-color-primary);
  color: var(--nh-color-white);
  font-size: .93rem;
}
.nh-category-box__body { padding: 8px; }
.nh-category-all,
.nh-category-tree__row > a {
  position: relative;
  display: flex;
  min-width: 0;
  flex: 1;
  align-items: center;
  min-height: 38px;
  padding: 8px 10px;
  border-radius: var(--nh-radius-sm);
  color: color-mix(in srgb, var(--nh-color-text) 82%, transparent);
  font-size: .8rem;
  line-height: 1.35;
  text-decoration: none;
}
.nh-category-all:hover,
.nh-category-tree__row > a:hover { color: var(--nh-color-primary); background: color-mix(in srgb, var(--nh-color-soft) 50%, var(--nh-color-white)); }
.nh-category-all.is-current,
.nh-category-tree__item.is-current > .nh-category-tree__row > a {
  padding-left: 13px;
  background: color-mix(in srgb, var(--nh-color-primary) 9%, var(--nh-color-white));
  color: var(--nh-color-primary);
  font-weight: 700;
}
.nh-category-all.is-current::before,
.nh-category-tree__item.is-current > .nh-category-tree__row > a::before {
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 0;
  width: 3px;
  border-radius: 4px;
  background: var(--nh-color-primary);
  content: '';
}
.nh-category-tree,
.nh-category-tree__children { margin: 0; padding: 0; list-style: none; }
.nh-category-tree__row { display: flex; align-items: center; gap: 4px; }
.nh-category-tree__toggle {
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  place-items: center;
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--nh-color-text) 35%, transparent);
  border-radius: 4px;
  background: var(--nh-color-white);
  color: var(--nh-color-text);
  font-size: 1rem;
  line-height: 1;
}
.nh-category-tree__toggle[aria-expanded="true"] span[aria-hidden="true"] { transform: rotate(45deg); }
.nh-category-tree__children { padding-left: 12px; }
.nh-category-tree__children .nh-category-tree__row > a { min-height: 34px; font-size: .75rem; }

/* Dropdown filter box */
.nh-sidebar-box--filters .nh-dropdown-filters { padding: 16px; }
.nh-dropdown-filters { display: grid; gap: 13px; }
.nh-dropdown-filter-field { display: grid; gap: 6px; }
.nh-dropdown-filter-field label { color: var(--nh-color-text); font-size: .76rem; font-weight: 600; }
.nh-dropdown-filter-field select {
  width: 100%;
  min-height: 40px;
  margin: 0;
  padding: 7px 34px 7px 10px;
  border: 1px solid color-mix(in srgb, var(--nh-color-text) 16%, transparent);
  border-radius: var(--nh-radius-sm);
  background: var(--nh-color-white);
  color: color-mix(in srgb, var(--nh-color-text) 82%, transparent);
  font: inherit;
  font-size: .78rem;
}
.nh-dropdown-filters__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; padding-top: 2px; }
.nh-dropdown-filters__actions .nh-button { min-height: 36px; padding: 6px 8px; font-size: .72rem; }

/* New products */
.nh-sidebar-box--new-products .nh-new-products-list { padding: 16px; }
.nh-new-products-list { display: grid; gap: 12px; }
.nh-new-product { display: grid; grid-template-columns: 64px minmax(0,1fr); gap: 10px; align-items: center; color: inherit; text-decoration: none; }
.nh-new-product__image { overflow: hidden; display: block; aspect-ratio: 1; border-radius: var(--nh-radius-sm); background: color-mix(in srgb, var(--nh-color-soft) 48%, var(--nh-color-white)); }
.nh-new-product__image img { display: block; width: 100%; height: 100%; margin: 0 !important; object-fit: cover; }
.nh-new-product__content { display: grid; min-width: 0; gap: 4px; }
.nh-new-product__content strong { display: -webkit-box; overflow: hidden; color: var(--nh-color-text); font-size: .76rem; font-weight: 600; line-height: 1.35; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.nh-new-product:hover strong { color: var(--nh-color-primary); }
.nh-new-product__price { color: var(--nh-color-primary); font-size: .76rem; font-weight: 700; }
.nh-new-product__price del { display: none; }
.nh-new-product__price ins { text-decoration: none; }

/* Consultation box */
.nh-sidebar-box--support { border-color: transparent; background: color-mix(in srgb, var(--nh-color-primary) 7%, var(--nh-color-white)); box-shadow: none; }
.nh-sidebar-box--support h3 { margin: 0 0 7px; font-family: var(--nh-font-body); font-size: .96rem; }
.nh-sidebar-box--support p { margin: 0 0 13px; color: color-mix(in srgb, var(--nh-color-text) 64%, transparent); font-size: .76rem; line-height: 1.6; }
.nh-sidebar-box--support .nh-button { width: 100%; min-height: 38px; padding: 7px 10px; font-size: .76rem; }
.nh-filter-backdrop { display: none; }

/* Single product */
.nh-woo-single-shell { padding-block: 44px 72px; }
.nh-product-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 1.14fr) 160px;
  gap: 28px;
  align-items: start;
  margin-top: 8px;
}
.nh-product-gallery { min-width: 0; }
.nh-product-gallery .woocommerce-product-gallery { float: none !important; width: 100% !important; margin: 0 !important; }
.nh-product-gallery .woocommerce-product-gallery__wrapper { margin: 0; }
.nh-product-gallery .woocommerce-product-gallery__image { overflow: hidden; border-radius: var(--nh-radius-md); background: var(--nh-color-white); }
.nh-product-gallery .woocommerce-product-gallery__image img { width: 100%; height: auto; }
.nh-product-gallery .flex-control-thumbs { display: grid !important; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 8px; margin: 10px 0 0 !important; padding: 0; }
.nh-product-gallery .flex-control-thumbs li { float: none !important; width: auto !important; margin: 0 !important; }
.nh-product-gallery .flex-control-thumbs img { border-radius: var(--nh-radius-sm); }

.nh-product-summary { min-width: 0; }
.nh-product-title { margin-bottom: 12px; font-size: clamp(2rem,3vw,2.75rem); }
.nh-product-meta-line { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 15px; color: color-mix(in srgb, var(--nh-color-text) 66%, transparent); font-size: .8rem; }
.nh-product-meta-line p { margin: 0; }
.nh-product-meta-status { display: inline-flex; align-items: center; min-height: 24px; padding: 4px 9px; border-radius: 999px; background: color-mix(in srgb, var(--nh-color-primary) 9%, var(--nh-color-white)); color: var(--nh-color-primary); font-size: .7rem; font-weight: 700; line-height: 1; }
.nh-product-meta-status.is-new { background: color-mix(in srgb, var(--nh-color-accent) 14%, var(--nh-color-white)); }
.nh-product-meta-status.is-preorder { background: color-mix(in srgb, var(--nh-color-primary) 12%, var(--nh-color-white)); }
.nh-stock-badge { display: inline-flex; align-items: center; min-height: 24px; padding: 4px 9px; border-radius: 999px; font-size: .7rem; font-weight: 700; line-height: 1; }
.nh-stock-badge.is-in-stock { background: color-mix(in srgb, var(--nh-color-success) 11%, var(--nh-color-white)); color: var(--nh-color-success); }
.nh-stock-badge.is-out-of-stock { background: color-mix(in srgb, var(--nh-color-error) 10%, var(--nh-color-white)); color: var(--nh-color-error); }
.nh-product-price { margin-bottom: 20px; color: var(--nh-color-primary); font-size: 1.5rem; font-weight: 700; }
.nh-product-price del { color: var(--nh-color-disabled); font-size: .75em; font-weight: 500; }
.nh-product-price ins { text-decoration: none; }
.nh-product-attributes { display: grid; gap: 0; margin: 0 0 22px; border-top: 1px solid color-mix(in srgb, var(--nh-color-text) 9%, transparent); }
.nh-product-attributes > div { display: grid; grid-template-columns: minmax(105px,.65fr) minmax(0,1.35fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid color-mix(in srgb, var(--nh-color-text) 9%, transparent); }
.nh-product-attributes dt { font-size: .78rem; font-weight: 700; }
.nh-product-attributes dd { margin: 0; font-size: .82rem; }
.nh-product-short-description { margin-bottom: 22px; color: color-mix(in srgb, var(--nh-color-text) 82%, transparent); font-size: .9rem; }
.nh-product-short-description > *:first-child { margin-top: 0; }
.nh-product-short-description > *:last-child { margin-bottom: 0; }
.nh-product-cta-row { display: flex; flex-wrap: wrap; gap: 10px; }

.nh-product-trust { display: grid; gap: 10px; }
.nh-product-trust-item {
  display: flex;
  aspect-ratio: 1 / 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 10px;
  border: 1px solid color-mix(in srgb, var(--nh-color-text) 8%, transparent);
  border-radius: 18px;
  background: var(--nh-color-white);
  text-align: center;
}
.nh-product-trust-item > .nh-icon { width: 34px; height: 34px; padding: 0; border-radius: 0; background: transparent; color: var(--nh-color-primary); }
.nh-product-trust-item > div { min-width: 0; }
.nh-product-trust-item strong { display: block; font-size: .76rem; line-height: 1.3; }
.nh-product-trust-item p { margin: 5px 0 0; color: color-mix(in srgb, var(--nh-color-text) 68%, transparent); font-size: .66rem; line-height: 1.42; }

.nh-product-detail-section { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; margin-top: 64px; padding-top: 52px; border-top: 1px solid color-mix(in srgb, var(--nh-color-text) 10%, transparent); }
.nh-product-description > h2 { margin-bottom: 20px; }
.nh-product-detail-sidebar { min-width: 0; align-self: start; }
.nh-product-detail-sidebar__body { display: grid; gap: 18px; }

.nh-product-page .related.products { margin-top: 64px; padding-top: 52px; border-top: 1px solid color-mix(in srgb, var(--nh-color-text) 10%, transparent); }
.nh-product-page .related.products > h2 { margin-bottom: 24px; }
.nh-product-faq { margin-top: 64px; padding-top: 52px; border-top: 1px solid color-mix(in srgb, var(--nh-color-text) 10%, transparent); }
.nh-product-faq > h2 { margin-bottom: 24px; }
.nh-product-faq-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: 40px; row-gap: 0; }
.nh-product-faq-item { margin: 0; border: 0; border-bottom: 1px solid color-mix(in srgb, var(--nh-color-primary) 42%, transparent); border-radius: 0; background: transparent; }
.nh-product-faq-item summary { position: relative; padding: 13px 28px 13px 0; cursor: pointer; color: var(--nh-color-text); font-size: .86rem; font-weight: 600; line-height: 1.35; list-style: none; }
.nh-product-faq-item summary::-webkit-details-marker { display: none; }
.nh-product-faq-item summary::after { position: absolute; top: 50%; right: 2px; color: var(--nh-color-primary); font-size: 1rem; line-height: 1; content: '+'; transform: translateY(-50%); }
.nh-product-faq-item[open] summary::after { content: '−'; }
.nh-product-faq-item > div { padding: 0 24px 14px 0; color: color-mix(in srgb, var(--nh-color-text) 76%, transparent); font-size: .82rem; line-height: 1.65; }
.nh-product-faq-item > div > *:first-child { margin-top: 0; }
.nh-product-faq-item > div > *:last-child { margin-bottom: 0; }

@media (min-width: 1025px) {
  .nh-product-cta-row { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); width: 100%; }
  .nh-product-cta-row .nh-button { width: 100%; justify-content: center; }
}

/* Search: Woo product cards and blog cards can share the grid. */
.nh-search-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 24px; }
.nh-search-grid > .product { margin: 0 !important; list-style: none; }

@media (max-width: 1180px) {
  .nh-shop-shell { grid-template-columns: minmax(0,1fr) 280px; gap: 28px; }
}

@media (max-width: 1024px) {
  .nh-shop-shell { display: block; padding-block: 36px 60px; }
  .nh-filter-toggle { display: inline-flex; width: 100%; }
  .nh-filter-toggle--mobile-inline { display: none; }
  .nh-shop-sidebar {
    position: fixed;
    z-index: 10020;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(90vw,390px);
    height: 100dvh;
    max-height: 100dvh;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    padding: 0 0 env(safe-area-inset-bottom);
    background: var(--nh-color-background);
    box-shadow: -18px 0 50px color-mix(in srgb, var(--nh-color-text) 16%, transparent);
    transform: translateX(105%);
    visibility: hidden;
    pointer-events: none;
    transition: transform .2s ease, visibility .2s ease;
  }
  .nh-shop-sidebar.is-open { transform: translateX(0); visibility: visible; pointer-events: auto; }
  .nh-shop-sidebar__head { position: sticky; z-index: 3; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 17px; border-bottom: 1px solid color-mix(in srgb, var(--nh-color-text) 9%, transparent); background: var(--nh-color-white); }
  .nh-shop-sidebar__head h2 { margin: 0; font-family: var(--nh-font-body); font-size: .96rem; }
  .nh-shop-sidebar__body { gap: 14px; padding: 16px; }
  .nh-filter-close { display: inline-grid; }
  .nh-filter-backdrop { position: fixed; z-index: 10010; inset: 0; display: block; background: color-mix(in srgb, var(--nh-color-text) 42%, transparent); opacity: 0; pointer-events: none; transition: opacity .18s ease; }
  .nh-filter-backdrop[hidden] { display: none !important; }
  .nh-filter-backdrop.is-visible { opacity: 1; pointer-events: auto; }
  .nonhue-woocommerce ul.products { grid-template-columns: repeat(var(--nh-shop-cols-tablet,3),minmax(0,1fr)); }
  .nh-product-hero { grid-template-columns: minmax(0,1fr) minmax(280px,.9fr); gap: 28px; }
  .nh-product-trust { grid-column: 1 / -1; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .nh-product-trust-item { aspect-ratio: auto; min-height: 150px; }
  .nh-product-detail-section { grid-template-columns: minmax(0,1fr) 300px; gap: 28px; }
  .nh-search-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}

@media (max-width: 767px) {
  .nh-shop-shell { padding: 32px 0 46px; }
  .nonhue-woocommerce .nh-shop-main > .woocommerce-breadcrumb { margin-bottom: 20px; }
  .nh-shop-main .woocommerce-products-header { margin-bottom: 18px; }
  .nh-shop-main .woocommerce-products-header__title.page-title { margin-bottom: 0; font-size: clamp(1.75rem, 8vw, 1.95rem); line-height: 1.1; }
  .nh-catalog-toolbar {
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(0,1fr);
    gap: 8px;
    min-height: 0;
    margin-bottom: 14px;
    padding: 8px;
    border-radius: var(--nh-radius-sm);
  }
  .nh-catalog-toolbar__count { grid-column: 1 / -1; padding: 0 2px 2px; font-size: .74rem; }
  .nh-catalog-toolbar__sort { grid-column: 1; width: 100%; gap: 0; }
  .nh-catalog-toolbar__sort-label { display: none; }
  .nh-catalog-toolbar .woocommerce-ordering { width: 100%; }
  .nh-catalog-toolbar .woocommerce-ordering select { width: 100%; min-width: 0; max-width: none; min-height: 38px; padding: 6px 30px 6px 9px; font-size: .72rem; }
  .nh-filter-toggle:not(.nh-filter-toggle--mobile-inline) { display: none; }
  .nh-filter-toggle--mobile-inline { display: inline-flex; grid-column: 2; width: 100%; min-height: 38px; justify-content: center; margin: 0; padding: 6px 8px; font-size: .72rem; }
  .nh-filter-toggle--mobile-inline .nh-icon { width: 15px; height: 15px; }
  .nonhue-woocommerce ul.products { grid-template-columns: repeat(var(--nh-shop-cols-mobile,2),minmax(0,1fr)); gap: 14px 10px; }
  .nh-product-card__body { padding: 11px; }
  .nh-product-card__title { min-height: 2.8em; font-size: .81rem; }
  .nh-product-card__price { margin-top: 7px; font-size: .86rem; }
  .nh-product-card__actions { grid-template-columns: 1fr 1fr; gap: 5px; padding-top: 9px; }
  .nh-product-card__actions .nh-button { min-height: 32px; padding: 4px 5px; font-size: .66rem; }
  .nh-product-badges { top: 7px; left: 7px; gap: 4px; }
  .nh-product-badge { padding: 4px 6px; font-size: .6rem; }

  .nh-woo-single-shell { padding-block: 28px 48px; }
  .nh-product-hero { grid-template-columns: 1fr; gap: 24px; }
  .nh-product-title { font-size: clamp(1.85rem,9vw,2.3rem); }
  .nh-product-price { font-size: 1.3rem; }
  .nh-product-cta-row .nh-button { flex: 1 1 140px; }
  .nh-product-trust { grid-template-columns: 1fr 1fr; gap: 8px; }
  .nh-product-trust-item { aspect-ratio: 1 / 1; min-height: 0; gap: 7px; padding: 10px 8px; }
  .nh-product-trust-item > .nh-icon { width: 30px; height: 30px; }
  .nh-product-trust-item strong { font-size: .71rem; }
  .nh-product-trust-item p { margin-top: 3px; font-size: .62rem; line-height: 1.35; }
  .nh-product-detail-section { grid-template-columns: 1fr; gap: 26px; margin-top: 44px; padding-top: 38px; }
  .nh-product-detail-sidebar__body { gap: 14px; }
  .nh-product-page .related.products,
  .nh-product-faq { margin-top: 44px; padding-top: 38px; }
  .nh-product-faq-list { grid-template-columns: 1fr; column-gap: 0; }
  .nh-search-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px 10px; }
}

/* Phase 5: Quick View + Quick Order --------------------------------------- */
body.nh-modal-open { overflow: hidden; }
body.nh-modal-open .gsb-buttons,
body.nh-modal-open button.nh-back-to-top {
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden !important;
}
.nh-modal[hidden] { display: none !important; }
.nh-modal {
  position: fixed;
  z-index: 2147483646;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  transition: opacity .18s ease;
}
.nh-modal.is-open { opacity: 1; }
.nh-modal__backdrop { position: absolute; inset: 0; background: color-mix(in srgb, var(--nh-color-text) 58%, transparent); backdrop-filter: blur(2px); }
.nh-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 980px);
  max-height: min(88vh, 900px);
  overflow: auto;
  padding: 30px;
  border-radius: var(--nh-radius-lg);
  background: var(--nh-color-background);
  box-shadow: 0 28px 80px color-mix(in srgb, var(--nh-color-text) 24%, transparent);
  transform: translateY(10px) scale(.99);
  transition: transform .18s ease;
}
.nh-modal.is-open .nh-modal__dialog { transform: translateY(0) scale(1); }
.nh-modal__close {
  position: sticky;
  z-index: 4;
  top: 0;
  float: right;
  display: grid;
  width: 42px;
  height: 42px;
  margin: 0 0 -42px auto;
  padding: 0;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--nh-color-text) 12%, transparent);
  border-radius: 999px;
  background: var(--nh-color-white);
  color: var(--nh-color-text);
  cursor: pointer;
  box-shadow: 0 5px 18px color-mix(in srgb, var(--nh-color-text) 8%, transparent);
}
.nh-modal__close:hover { border-color: var(--nh-color-primary); color: var(--nh-color-primary); }
.nh-modal__close .nh-icon { width: 19px; height: 19px; }
.nh-modal__status { margin: 0; padding: 52px 20px; text-align: center; color: color-mix(in srgb, var(--nh-color-text) 72%, transparent); }
.nh-modal__status.is-error { color: var(--nh-color-error); }

.nh-quick-view__layout { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(300px,.95fr); gap: 34px; align-items: start; }
.nh-quick-view__gallery { min-width: 0; }
.nh-quick-view__main-image { overflow: hidden; aspect-ratio: 1 / 1; border-radius: var(--nh-radius-md); background: var(--nh-color-white); }
.nh-quick-view__main-image img { width: 100%; height: 100%; object-fit: cover; }
.nh-quick-view__thumbs { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 7px; margin-top: 9px; }
.nh-quick-view__thumb { overflow: hidden; aspect-ratio: 1 / 1; padding: 0; border: 1px solid transparent; border-radius: var(--nh-radius-sm); background: var(--nh-color-white); cursor: pointer; opacity: .72; }
.nh-quick-view__thumb:hover,
.nh-quick-view__thumb.is-active { border-color: var(--nh-color-primary); opacity: 1; }
.nh-quick-view__thumb img { width: 100%; height: 100%; object-fit: cover; }
.nh-quick-view__info { min-width: 0; padding: 8px 10px 4px 0; }
.nh-quick-view__title { margin: 0 52px 10px 0; font-size: clamp(1.7rem,3vw,2.3rem); }
.nh-quick-view__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 10px; margin-bottom: 14px; color: color-mix(in srgb, var(--nh-color-text) 66%, transparent); font-size: .78rem; }
.nh-quick-view__meta p { margin: 0; }
.nh-quick-view__sku { white-space: nowrap; }
.nh-quick-view__meta-status { display: inline-flex; align-items: center; min-height: 24px; padding: 4px 8px; border-radius: 999px; background: color-mix(in srgb, var(--nh-color-primary) 9%, var(--nh-color-white)); color: var(--nh-color-primary); font-size: .72rem; font-weight: 700; line-height: 1; }
.nh-quick-view__meta-status.is-new { background: color-mix(in srgb, var(--nh-color-accent) 14%, var(--nh-color-white)); }
.nh-quick-view__meta-status.is-preorder { background: color-mix(in srgb, var(--nh-color-primary) 12%, var(--nh-color-white)); }
.nh-quick-view__stock .stock { color: var(--nh-color-success); }
.nh-quick-view__stock .out-of-stock { color: var(--nh-color-error); }
.nh-quick-view__price { margin-bottom: 18px; color: var(--nh-color-primary); font-size: 1.35rem; font-weight: 700; }
.nh-quick-view__price del { color: var(--nh-color-disabled); font-size: .78em; font-weight: 500; }
.nh-quick-view__price ins { text-decoration: none; }
.nh-quick-view__attributes { display: grid; margin: 0 0 18px; border-top: 1px solid color-mix(in srgb, var(--nh-color-text) 9%, transparent); }
.nh-quick-view__attributes > div { display: grid; grid-template-columns: minmax(96px,.7fr) minmax(0,1.3fr); gap: 12px; padding: 9px 0; border-bottom: 1px solid color-mix(in srgb, var(--nh-color-text) 9%, transparent); }
.nh-quick-view__attributes dt { font-size: .76rem; font-weight: 700; }
.nh-quick-view__attributes dd { margin: 0; font-size: .8rem; }
.nh-quick-view__description { margin-bottom: 20px; color: color-mix(in srgb, var(--nh-color-text) 80%, transparent); font-size: .87rem; }
.nh-quick-view__description > *:first-child { margin-top: 0; }
.nh-quick-view__description > *:last-child { margin-bottom: 0; }
.nh-quick-view__actions { display: flex; flex-wrap: wrap; gap: 9px; }
.nh-quick-view__actions .nh-button { flex: 1 1 145px; }
.nh-quick-view__details-link { display: inline-block; margin-top: 15px; color: var(--nh-color-primary); font-size: .8rem; font-weight: 600; text-decoration: none; }
.nh-quick-view__details-link:hover { text-decoration: underline; }

.nh-quick-order { width: min(100%, 720px); }
.nh-quick-order__header { margin: 0 52px 22px 0; padding-bottom: 18px; border-bottom: 1px solid color-mix(in srgb, var(--nh-color-text) 9%, transparent); }
.nh-quick-order__header .nh-eyebrow { margin: 0 0 4px; font-size: .7rem; }
.nh-quick-order__header h2 { margin: 0; font-size: clamp(1.65rem,3vw,2.05rem); }
.nh-quick-order__product { display: grid; gap: 2px; margin-top: 12px; padding: 11px 13px; border-radius: var(--nh-radius-sm); background: var(--nh-color-soft); }
.nh-quick-order__product strong { font-size: .84rem; }
.nh-quick-order__product span { color: color-mix(in srgb, var(--nh-color-text) 68%, transparent); font-size: .74rem; }
.nh-quick-order__form .ff-el-group { margin-bottom: 15px; }
.nh-quick-order__form .ff-el-input--label label { color: var(--nh-color-text); font-size: .8rem; font-weight: 600; }
.nh-quick-order__form .ff-el-form-control {
  min-height: 44px;
  border-color: color-mix(in srgb, var(--nh-color-text) 16%, transparent);
  border-radius: var(--nh-radius-sm);
  background: var(--nh-color-white);
  color: var(--nh-color-text);
}
.nh-quick-order__form textarea.ff-el-form-control { min-height: 96px; }
.nh-quick-order__form .ff-btn-submit {
  min-height: 46px;
  padding: 10px 20px;
  border: 1px solid var(--nh-color-primary);
  border-radius: var(--nh-radius-sm);
  background: var(--nh-color-primary);
  color: var(--nh-color-white);
  font-family: var(--nh-font-body);
  font-weight: 600;
}
.nh-quick-order__form .ff-btn-submit:hover { border-color: var(--nh-color-secondary); background: var(--nh-color-secondary); }
.nh-order-form-fallback { padding: 18px; border-radius: var(--nh-radius-sm); background: var(--nh-color-soft); }
.nh-order-form-fallback > p:first-child { margin-top: 0; }
.nh-order-form-admin-note { margin-bottom: 0; color: color-mix(in srgb, var(--nh-color-text) 62%, transparent); font-size: .76rem; }

@media (max-width: 767px) {
  .nh-modal { align-items: end; padding: 0; }
  .nh-modal__dialog { width: 100%; max-height: 92vh; padding: 20px 16px calc(20px + env(safe-area-inset-bottom)); border-radius: var(--nh-radius-lg) var(--nh-radius-lg) 0 0; }
  .nh-modal__close { width: 38px; height: 38px; }
  .nh-quick-view__layout { grid-template-columns: 1fr; gap: 20px; }
  .nh-quick-view__info { padding: 0; }
  .nh-quick-view__title { margin-right: 44px; font-size: 1.65rem; }
  .nh-quick-view__thumbs { grid-template-columns: repeat(5,minmax(0,1fr)); gap: 5px; }
  .nh-quick-view__actions { display: grid; grid-template-columns: 1fr 1fr; }
  .nh-quick-view__actions .nh-button { width: 100%; }
  .nh-quick-order__header { margin-right: 44px; }
}

/* Commerce UX simplification — beta.3 ------------------------------------ */
.nh-product-badge.is-commerce-status { padding: 5px 8px; font-size: .62rem; letter-spacing: .01em; }
.nh-product-badge.is-commerce-status.is-ready { background: color-mix(in srgb, var(--nh-color-primary) 88%, var(--nh-color-white)); }
.nh-product-badge.is-commerce-status.is-preorder { background: color-mix(in srgb, var(--nh-color-accent) 82%, var(--nh-color-primary)); }
.nh-product-badge.is-commerce-status.is-new { background: var(--nh-color-accent); }
.nh-product-card__actions { align-items: stretch; }
.nh-product-card__actions .nh-order-unavailable { display: flex; min-height: 34px; align-items: center; justify-content: center; padding: 5px 8px; border: 1px solid color-mix(in srgb, var(--nh-color-text) 12%, transparent); border-radius: var(--nh-radius-sm); text-align: center; }

.nh-product-purchase-status { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 10px; margin: 13px 0 14px; }
.nh-product-purchase-status__label { display: inline-flex; align-items: center; min-height: 28px; padding: 5px 9px; border-radius: 999px; background: color-mix(in srgb, var(--nh-color-primary) 9%, var(--nh-color-white)); color: var(--nh-color-primary); font-size: .76rem; font-weight: 700; }
.nh-product-purchase-status.is-new .nh-product-purchase-status__label { background: color-mix(in srgb, var(--nh-color-accent) 14%, var(--nh-color-white)); }
.nh-product-purchase-status.is-preorder .nh-product-purchase-status__label { background: color-mix(in srgb, var(--nh-color-primary) 12%, var(--nh-color-white)); }
.nh-product-purchase-status__note { color: color-mix(in srgb, var(--nh-color-text) 66%, transparent); font-size: .78rem; line-height: 1.45; }
.nh-product-cta-row--simple { display: block !important; width: 100%; }
.nh-product-cta-row--simple .nh-button { width: 100%; min-height: 46px; justify-content: center; font-size: .9rem; }
.nh-product-artwork-secondary { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 12px; color: color-mix(in srgb, var(--nh-color-text) 70%, transparent); font-size: .8rem; line-height: 1.55; }
.nh-product-artwork-secondary .nh-artwork-link { width: auto; margin: 0; }
.nh-artwork-link { display: inline-flex; align-items: center; gap: 4px; color: var(--nh-color-primary); font-weight: 650; text-decoration: none; }
.nh-artwork-link:hover { text-decoration: underline; text-underline-offset: 3px; }

.nh-quick-view__actions { align-items: center; }
.nh-quick-view__artwork-link { flex: 1 1 100%; color: var(--nh-color-primary); font-size: .8rem; font-weight: 650; text-decoration: none; }
.nh-quick-view__artwork-link:hover { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 767px) {
  .nh-product-card__actions { grid-template-columns: 1fr 1fr; }
  .nh-product-purchase-status { align-items: flex-start; flex-direction: column; }
  .nh-product-cta-row--simple .nh-button { min-height: 44px; }
  .nh-quick-view__actions { display: flex; }
}

/* Product discovery labels — beta.4 */
.nh-product-badges--marketing{left:auto;right:9px;align-items:flex-end;justify-content:flex-end;flex-direction:column}
.nh-product-badge.is-featured{background:var(--nh-color-accent);color:var(--nh-color-white)}
.nh-product-badge.is-most-viewed{background:color-mix(in srgb,var(--nh-color-primary) 78%,var(--nh-color-white));color:var(--nh-color-white)}
@media(max-width:640px){.nh-product-badges--marketing{right:7px}.nh-product-badges--marketing .nh-product-badge{font-size:.58rem}}
