/* HEBE stage 2: shop, collections, search, product page. Loaded on store pages only. */
.measure-wide { max-width: 640px; }
.shop-notices:empty { display: none; }
.shop-notices .woocommerce-message, .shop-notices .woocommerce-error, .shop-notices .woocommerce-info,
.shop-notices .wc-block-components-notice-banner { margin: 24px 0 0; padding: 14px 18px; border: 1px solid var(--sand); background: var(--linen); font-size: 14px; line-height: 22px; list-style: none; }
.shop-notices .woocommerce-error { border-color: var(--err); color: var(--err); }
.shop-notices a.button { margin-left: 12px; text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; }
.search-title { font-size: 48px; line-height: 56px; }

/* Filters */
.shop-filters { padding-bottom: 32px; }
.filters { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 20px 0; display: grid; gap: 18px; }
.frow { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 12px; align-items: center; }
.chiprow { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.chipbtn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1px solid var(--sand); border-radius: 22px; font: 500 13px var(--sans); color: var(--olive); background: transparent; cursor: pointer; transition: background-color var(--ease), border-color var(--ease); white-space: nowrap; }
.chipbtn:hover { border-color: var(--olive); }
.chipbtn[aria-pressed="true"], .chipbtn[aria-current] { background: var(--olive); color: var(--ivory); border-color: var(--olive); }
.chip { display: inline-flex; align-items: center; min-height: 32px; padding: 0 14px; border: 1px solid var(--sand); border-radius: 16px; font-size: 13px; color: var(--ink2); }
.filter-status { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 20px; flex-wrap: wrap; }
.filter-status .count { font-size: 14px; }
.clear-filters[hidden] { display: none; }
.product-grid > li { display: flex; }
.product-grid > li[hidden] { display: none; }
.product-grid > li > .pcard { width: 100%; }
.empty-state { padding: 72px 0; text-align: center; max-width: 520px; margin: 0 auto; }
.empty-state[hidden] { display: none; }
.empty-state .body { margin-top: 12px; }
.empty-state .btn { margin-top: 28px; }

/* Collection header */
.coll-head { padding-top: 56px; padding-bottom: 56px; }
.coll-head .crumbs { margin-bottom: 28px; }
.coll-head-in { align-items: end; }
.coll-head .page-title { margin-top: 16px; }
.coll-head .lead { margin-top: 20px; }
.coll-media { aspect-ratio: 4 / 3; }
.coll-nav { padding-bottom: 32px; }
.coll-nav .chiprow { border-top: 1px solid var(--line); padding-top: 24px; }
.coll-nav + .sec-bottom { padding-top: 8px; }

/* Search */
.search-box { padding-bottom: 40px; }
.search-form { max-width: 680px; }
.search-hint { margin-top: 14px; max-width: 680px; }
.search-try { margin-top: 20px; }
.results-rule { border-top: 1px solid var(--line); padding-top: 40px; }

/* Product page */
.pdp { padding-top: 32px; padding-bottom: 72px; }
.pdp .crumbs { margin-bottom: 28px; }
.pdp-in { align-items: start; gap: 64px; }
.pdp-panel .meta { margin-top: 6px; }
.pdp-title { margin-top: 12px; overflow-wrap: break-word; hyphens: auto; }
.pdp-price { margin-top: 16px; display: flex; gap: 6px 14px; align-items: baseline; flex-wrap: wrap; }
.pdp-price .price { font-family: var(--serif); font-size: 28px; line-height: 36px; font-weight: 400; }
.pdp-price .price.is-sale .price-was { font-size: 20px; }
.pdp-price .save { flex-basis: 100%; }
.pdp-size { font-size: 14px; }
.pdp-desc { margin-top: 20px; }
.pdp-desc p + p { margin-top: 12px; }
.pdp-buy { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 32px; align-items: center; }
.pdp-add { flex: 1 1 220px; }
.qty-error { color: var(--err); margin-top: 10px; }
.pdp-guarantee { margin-top: 16px; }
.pdp-note { margin-top: 12px; }
.pdp-block { margin-top: 28px; }
.pdp-block .chiprow { margin-top: 12px; }
.chips-static { list-style: none; }
.pdp-notice { margin-top: 28px; }
.gift-contents { margin-top: 8px; border-top: 1px solid var(--line); }
.gift-contents li { display: flex; gap: 16px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.gift-thumb { width: 64px; height: 64px; flex: none; }
.gift-item { flex: 1; min-width: 0; }
.gift-item a { font-size: 15px; }
.gift-contents + .sum-note { margin-top: 16px; font-size: 14px; line-height: 22px; }
.pdp-details { padding-bottom: 80px; }
.pdp-details .g2 { gap: 64px; border-top: 1px solid var(--line); padding-top: 56px; align-items: start; }
.pdp-details .body { margin-top: 16px; }
.pdp-details .body + .body { margin-top: 12px; }
.spec { margin-top: 16px; max-width: 520px; border-top: 1px solid var(--line); }
.spec > div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.spec dt { color: var(--muted); }
.spec dd { margin: 0; text-align: right; color: var(--olive); }

/* Sticky mobile purchase bar: appears only when the main button is off screen */
.sticky-buy { display: none; }
@media (max-width: 900px) {
	.sticky-buy:not([hidden]) { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--ivory); border-top: 1px solid var(--line); box-shadow: 0 -8px 20px -16px rgba(38, 53, 40, .5); padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); }
	.sticky-buy-in { display: flex; align-items: center; gap: 12px; }
	.sticky-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
	.sticky-name { font-family: var(--serif); font-size: 15px; line-height: 20px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
	.sticky-price { font-size: 13px; color: var(--muted); }
	.sticky-buy .hebe-atc { margin: 0; }
	body.has-sticky { padding-bottom: 76px; }
	html.has-sticky { scroll-padding-bottom: 96px; }
	.pdp-in { gap: 32px; }
}
@media (max-width: 640px) {
	.search-title { font-size: 34px; line-height: 40px; }
	.frow { grid-template-columns: minmax(0, 1fr); gap: 6px; }
	.filters .chiprow, .coll-nav .chiprow { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(-1 * var(--gutter)); padding: 2px var(--gutter); scrollbar-width: none; }
	.filters .chiprow::-webkit-scrollbar, .coll-nav .chiprow::-webkit-scrollbar { display: none; }
	.chipbtn { flex: none; }
	.coll-head { padding-top: 32px; padding-bottom: 32px; }
	.pdp { padding-top: 20px; padding-bottom: 48px; }
	.pdp .crumbs { margin-bottom: 16px; }
	.pdp-details .g2 { gap: 40px; padding-top: 40px; }
	.pdp-add { flex-basis: 100%; }
}
