/* OHP 18.6.0 collection: quiet gallery cards and native catalogue navigation. */
body.post-type-archive-product .ohp-commerce-shell, body.tax-product_cat .ohp-commerce-shell { width: min(1420px, calc(100% - 80px)); padding-top: 28px; }
.woocommerce .woocommerce-products-header { margin-bottom: 28px; padding-bottom: 26px; border-bottom: 1px solid rgba(156,106,44,.25); }
.woocommerce .woocommerce-products-header__title, .woocommerce .ohp-commerce-shell > .page-title { margin: 0 0 16px; font-size: clamp(44px, 4.6vw, 66px); line-height: 1.05; font-family: var(--ohp-v17-serif); font-weight: 400; color: #172a46; }
.ohp-commerce-shell > .ohp-collection-intro { margin-bottom: 22px; padding-bottom: 18px; border-bottom: 1px solid rgba(156,106,44,.25); }
.ohp-collection-intro { display: flex; align-items: baseline; flex-wrap: wrap; justify-content: space-between; gap: 12px 30px; }
.ohp-collection-intro p { margin: 0; max-width: 660px; font: 23px/1.45 var(--ohp-v17-serif); color: #5b6b61; }
.ohp-collection-intro a { font-size: 13px; color: #1d6040; border-bottom: 1px solid #b5c4b6; padding: 8px 0; }
.ohp-collection-browser { clear: both; display: grid; grid-template-columns: minmax(220px, 380px) minmax(0, 1fr); align-items: end; gap: 18px 28px; margin-bottom: 24px; }
.ohp-collection-search { max-width: 520px; margin-bottom: 0; }
.ohp-collection-search label { display: block; margin-bottom: 7px; font-size: 12px; font-weight: 600; letter-spacing: .06em; color: #55664e; }
.ohp-collection-search > div { display: flex; gap: 8px; }
.ohp-collection-search input[type="search"] { min-width: 0; width: 100%; min-height: 46px; border: 1px solid #d6d4c6; border-radius: 4px; background: #fffef9; padding: 10px 14px; font: inherit; font-size: 14px; color: #173d31; }
.ohp-collection-search button { min-height: 46px; border: 1px solid #173d31; border-radius: 4px; padding: 9px 20px; background: #173d31; color: #fffdf8; font: inherit; font-size: 13px; cursor: pointer; }
.ohp-collection-categories { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 0; }
.ohp-collection-categories a { min-height: 44px; display: inline-flex; align-items: center; padding: 10px 18px; border: 1px solid #d3d7cc; border-radius: 999px; background: #fffef9; font-size: 12px; }
.ohp-collection-categories a[aria-current="page"] { background: #173d31; color: #fffdf8; border-color: #173d31; }
.ohp-collection-categories a:hover { border-color: #9c6a2c; }
.ohp-collection-browser :focus-visible, .woocommerce ul.products li.product a:focus-visible { outline: 2px solid #987641; outline-offset: 3px; }
.woocommerce .woocommerce-result-count { float: left; margin: 0 20px 20px 0; padding-top: 10px; font-size: 13px; }
.woocommerce .woocommerce-ordering { float: right; margin: 0 0 20px; }
.woocommerce .woocommerce-ordering select { font-size: 13px; min-height: 44px; border-radius: 4px; }
.woocommerce ul.products, .woocommerce-page ul.products, .ohp-product-grid .woocommerce ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; clear: both; padding: 0; margin: 0; list-style: none; }
.woocommerce ul.products li.product, .woocommerce-page ul.products li.product { display: flex; flex-direction: column; border: 1px solid #dddcca; border-radius: 4px; padding-bottom: 22px; background: #fffef9; box-shadow: 0 4px 16px rgba(23,42,32,.025); overflow: visible; }
.woocommerce ul.products li.product:hover { transform: none; border-color: #bca77f; box-shadow: 0 9px 26px rgba(23,42,32,.07); }
.woocommerce ul.products li.product a.woocommerce-loop-product__link { display: block; min-width: 0; }
.woocommerce ul.products li.product a img { aspect-ratio: 1; height: auto; width: 100%; object-fit: contain; object-position: center; padding: 18px; margin: 0 0 17px; background: radial-gradient(ellipse at 45% 35%, #fffefa, #f0eee5); border-bottom: 1px solid #e9e5d8; border-radius: 3px 3px 0 0; transform: none; }
.woocommerce ul.products li.product:hover a img { transform: none; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { margin: 0 20px 10px; padding: 0; font-size: clamp(23px, 2.1vw, 31px); font-weight: 500; line-height: 1.13; overflow-wrap: anywhere; }
.woocommerce ul.products li.product .ohp-card-type { margin: 0 20px 7px; font-size: 11px; line-height: 1.5; color: #68705d; letter-spacing: .04em; }
.woocommerce ul.products li.product .ohp-card-reference { margin: 0 20px 12px; color: #647167; font-size: 11px; line-height: 1.5; overflow-wrap: anywhere; }
.ohp-card-reference span { display: block; font-size: 9px; text-transform: uppercase; letter-spacing: .1em; color: #7b7969; }
.woocommerce ul.products li.product .price { margin: 0 20px 14px; color: #64141d; font-size: 16px; font-weight: 600; }
.woocommerce ul.products li.product .button { align-self: flex-start; margin-top: auto; margin-left: 20px; margin-right: 20px; min-height: 44px; max-width: calc(100% - 40px); border-radius: 3px; background: #173d31; color: #fffdf8; font-size: 12px; line-height: 1.4; padding: 12px 16px; white-space: normal; }
.woocommerce ul.products li.product .added_to_cart { align-self: flex-start; min-height: 44px; padding-top: 10px; font-size: 12px; }
.woocommerce ul.products li.product .ohp-card-availability { display: block; width: fit-content; max-width: calc(100% - 40px); margin: 0 20px 8px; font-size: 10px; line-height: 1.4; color: #356044; }
.ohp-card-availability.is-outofstock { color: #776b60; }
.woocommerce ul.products li.product .ohp-product-vault-badge { position: static; display: inline-block; width: fit-content; max-width: calc(100% - 40px); margin: 0 20px 10px; padding: 5px 8px; background: #eff3e9; color: #385442; border: 1px solid #dce3d3; border-radius: 2px; box-shadow: none; font-size: 9px; }
.woocommerce ul.products li.product .onsale { top: 10px; left: 10px; right: auto; margin: 0; min-height: 0; line-height: 1.4; padding: 6px 10px; border-radius: 2px; background: #64141d; font-size: 11px; }
.woocommerce nav.woocommerce-pagination { margin-top: 40px; }
@media (max-width: 1020px) {
 .woocommerce ul.products, .woocommerce-page ul.products, .ohp-product-grid .woocommerce ul.products, .ohp-home-shop .ohp-product-grid .woocommerce ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
}
@media (max-width: 720px) {
 .ohp-collection-browser { grid-template-columns: minmax(0, 1fr); gap: 14px; }
 body.post-type-archive-product .ohp-commerce-shell, body.tax-product_cat .ohp-commerce-shell { width: calc(100% - 32px); padding-top: 28px; }
 .ohp-collection-intro p { font-size: 21px; }
 .woocommerce .woocommerce-result-count, .woocommerce .woocommerce-ordering { float: none; margin-bottom: 16px; }
 .woocommerce .woocommerce-ordering select { width: 100%; }
 .woocommerce ul.products, .woocommerce-page ul.products, .ohp-product-grid .woocommerce ul.products, .ohp-home-shop .ohp-product-grid .woocommerce ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
 .woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: 23px; }
}
@media (max-width: 440px) {
 .woocommerce ul.products, .woocommerce-page ul.products, .ohp-product-grid .woocommerce ul.products, .ohp-home-shop .ohp-product-grid .woocommerce ul.products { grid-template-columns: minmax(0, 1fr); gap: 24px; }
 .woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: 28px; }
 .ohp-collection-categories a { padding-inline: 14px; }
 .ohp-collection-search button { padding-inline: 14px; }
}
@media (prefers-reduced-motion: reduce) { .woocommerce ul.products li.product { transition: none; } }

.woocommerce .ohp-commerce-shell > .woocommerce-breadcrumb { margin-bottom: 20px; }

/* Keep the first pieces within easy reach on a phone. */
@media (max-width:720px) {
 .ohp-collection-intro p { font-size:19px; line-height:1.4; }
 .ohp-commerce-shell > .ohp-collection-intro { margin-bottom:18px; padding-bottom:14px; }
 .ohp-collection-browser { gap:12px; margin-bottom:12px; }
 .ohp-collection-categories { flex-wrap:nowrap; overflow-x:auto; scrollbar-width:thin; padding-bottom:5px; }
 .ohp-collection-categories a { flex-shrink:0; }
}

/* 18.7.0: populated Legacy refinements belong to the existing collection search. */
.ohp-collection-search.has-refinements { flex:1 1 650px; max-width:900px; }
.ohp-collection-search .ohp-search-line { display:flex; gap:10px; }
.ohp-collection-search .ohp-search-line input[type="search"] { flex:1; min-width:0; }
.ohp-collection-search details.ohp-collection-refinements { display:block; margin-top:14px; border-top:1px solid #d6cfba; padding:10px 0 0; }
.ohp-collection-refinements summary { cursor:pointer; color:#29523d; font-size:14px; min-height:44px; padding:10px 0; }
.ohp-collection-refinements summary:focus-visible { outline:2px solid #99743c; outline-offset:3px; }
.ohp-collection-search .ohp-refinement-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px 18px; }
.ohp-refinement-fields label { display:flex; flex-direction:column; gap:7px; min-width:0; font-size:13px; }
.ohp-refinement-fields select { display:block; width:100%; min-width:0; min-height:44px; padding:10px 30px 10px 12px; border:1px solid #d6cfba; border-radius:4px; background:#fffef8; color:#183e31; font:inherit; }
.ohp-collection-search .ohp-refinement-actions { display:flex; align-items:center; gap:18px; margin-top:16px; }
.ohp-refinement-actions a,.ohp-filter-clear a { color:#29523d; text-decoration:underline; text-underline-offset:4px; font-size:13px; padding-block:12px; }
.ohp-collection-search .ohp-refinement-actions button { min-height:44px; }
@media (max-width:540px) { .ohp-collection-search .ohp-refinement-fields { grid-template-columns:minmax(0,1fr); gap:12px; } }
