/* Constrain the document, not the intentional flavour and recommendation scrollers. */
html { overflow-x: clip; overscroll-behavior-x: none; }
body { overflow-x: clip; }
.shop-format-row, .shop-refine, .shop-refine__body, .shop-filter-groups, .product-stage__grid > * { min-width: 0; }
.mobile-menu { border-radius: 20px 20px 0 0; }
.mobile-menu__search { display: flex; align-items: center; gap: .5rem; margin: 1rem 0 .5rem; }
.mobile-menu__search input[type="search"] { width: 100%; min-width: 0; flex: 1; }
.mobile-menu__search button { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; padding: 0; border: 0; border-radius: var(--radius-control); background: var(--forest); color: #fff; }
.recommendation-controls { display: none; }
.header-search { position: relative; color: var(--forest); }
.header-search > summary { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; list-style: none; cursor: pointer; border-radius: var(--radius-control); }
.header-search > summary::-webkit-details-marker { display: none; }
.header-search > summary:hover, .header-search[open] > summary { background: #e7ebdf; }
.header-search > summary:focus-visible { outline: 2px solid #477960; outline-offset: 3px; }
.header-search__panel { position: absolute; z-index: 3; top: calc(100% + 1rem); right: 0; width: min(26rem, calc(100vw - 2 * var(--page-gutter))); padding: 1.25rem; background: var(--paper); border: 1px solid #cbd4c5; border-radius: var(--radius-card); box-shadow: 0 12px 35px #173c3126; }
.header-search__panel label { display: block; margin-bottom: .75rem; font-size: var(--text-base); font-weight: 600; }
.header-search__fields { display: flex; align-items: center; gap: .5rem; }
.header-search__fields input[type="search"] { flex: 1; width: 100%; min-width: 0; }
.header-search__fields .button { flex: none; }
@media (min-width: 861px) {
  .header-actions { gap: .75rem; }
  .shop-discovery .shop-sort { min-height: 36px; height: 36px; padding-inline: .625rem; background: #e9ecdf; border-color: #ccd3c5; }
  .shop-discovery .shop-sort .orderby { height: 34px; min-height: 0; max-width: 12rem; font-size: var(--text-xs); font-weight: 600; background-color: transparent; }
}
.shop-refine__title { margin: .5rem 0; font-size: var(--text-xs); font-weight: 600; }
.shop-discovery [data-shop-filter-group="taste"] .shop-sale-toggle { position: relative; --taste-bg: #f1e3c2; --taste-ink: #715022; gap: .5rem; }
.shop-discovery .shop-sale-toggle input { position: absolute; width: 1px; height: 1px; min-width: 1px; min-height: 1px; padding: 0; margin: -1px; border: 0; clip-path: inset(50%); overflow: hidden; }
.shop-discovery .shop-sale-toggle .dashicons { color: currentColor; width: 16px; height: 16px; font-size: 16px; }
.shop-discovery [data-shop-filter-group="taste"] .shop-sale-toggle:has(input:checked) { background: var(--taste-bg); color: var(--taste-ink); border-color: var(--taste-ink); box-shadow: inset 0 0 0 1px var(--taste-ink); }
.shop-discovery .shop-sale-toggle:focus-within { outline: 2px solid #477960; outline-offset: 3px; }
/* WooCommerce's legacy float widths must not halve an already-sized grid cell. */
.woocommerce ul.products li.product { float: none !important; clear: none !important; width: 100% !important; margin: 0 !important; }
.woocommerce ul.products { grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); gap: 1rem; align-items: stretch; }
.woocommerce ul.products li.product .product-card__visual { display: block; position: relative; min-width: 0; }
.woocommerce ul.products li.product .product-card__body { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.woocommerce ul.products li.product .product-card__body > .button { margin-top: auto; }
.woocommerce ul.products li.product .product-card__visual .onsale { top: .5rem; left: .5rem; }
body:not(.single-product) :is(.woocommerce-shell, .woocommerce) ul.products li.product { padding: .75rem; }
body:not(.single-product) :is(.woocommerce-shell, .woocommerce) ul.products li.product .woocommerce-loop-product__title { font-size: var(--text-lg); min-height: 0; line-height: 1.3; }
body:not(.single-product) :is(.woocommerce-shell, .woocommerce) ul.products li.product .bundle-card-contents { min-height: 0; margin-block: .5rem; }
@media (max-width: 860px) {
  .header-search { display: none; }
  .woocommerce-products-header :is(.term-description, .page-description) { display: none; }
  :is(.post-type-archive-product, .tax-product_cat) .woocommerce-products-header { margin-bottom: 1rem; }
  .woocommerce-shell .woocommerce-products-header__title { margin-bottom: 0; }
  .shop-refine__title { display: none; }
  .shop-discovery .shop-switch { margin-bottom: .75rem; }
  .shop-discovery :is(.shop-search, .shop-sort) { display: none; }
  .shop-refine > summary { pointer-events: none; cursor: default; min-height: 32px; padding-block: .25rem; }
  .shop-refine > summary > span { display: none; }
  .shop-refine__body { display: grid; grid-template-columns: minmax(0,1fr); }
  .shop-discovery [data-shop-filter-group="taste"] { display: flex; flex-wrap: nowrap; max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; padding: .25rem 0 .5rem; gap: .5rem; scrollbar-width: thin; scrollbar-color: #bcc9b6 transparent; }
  .shop-discovery [data-shop-filter-group="taste"] .shop-filter { flex: 0 0 auto; white-space: nowrap; }
  .shop-discovery .shop-sale-toggle { justify-self: start; }
  .shop-discovery__status { margin-top: .5rem; padding-top: .5rem; }
  .cart-drawer { width: 100%; max-width: 100%; inset: 0; margin: 0; border-radius: 0; }
  .cart-drawer .cart-drawer__panel { width: 100%; max-width: none; inset: 0; border-radius: 0; padding: 1.25rem 1.25rem max(1.25rem, env(safe-area-inset-bottom)); }
  .cart-drawer .cart-empty-link { width: 100%; max-width: none; justify-content: center; margin-inline: 0; }
  .product-stage__visual .woocommerce-product-gallery { width: calc(100% + var(--page-gutter) * 2) !important; max-width: none; margin-inline: calc(-1 * var(--page-gutter)) !important; }
  .product-stage__visual .woocommerce-product-gallery__image img { transform: none; border: 0; border-radius: 0 !important; box-shadow: none; }
  .product-stage__visual .flex-control-thumbs { padding-inline: var(--page-gutter); }
  .compass-product-kind-bundle .product-stage__visual { max-width: none; }
  .compass-product-kind-bundle .product-stage__visual > .bundle-art { width: calc(100% + var(--page-gutter) * 2); margin-inline: calc(-1 * var(--page-gutter)); border-radius: 0; }
  .single-product .woocommerce-shell.section { padding-top: 0; }
  .single-product .product-stage { padding-top: .75rem; }
  .single-product .product-stage__crumb { margin-bottom: 1rem; }
  .compass-product-kind-bundle .product-stage__visual > .bundle-art--6 { display: block; padding: 2.75rem 1.25rem 2rem; aspect-ratio: auto; }
  .compass-product-kind-bundle .product-stage__visual > .bundle-art--6 .bundle-art__tins { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
  .service-ribbon__grid { padding-block: 1rem; }
  .service-ribbon__grid > div { padding: 1.5rem 1.25rem; gap: 1rem; }
  .service-ribbon small { margin-top: .375rem; line-height: 1.6; }
}
@media (max-width: 660px) {
  body:not(.single-product) .woocommerce-shell.section { padding-top: 1.5rem; }
  .shop-discovery { margin-bottom: 1.25rem; }
  .shop-anniversary { grid-template-columns: 96px minmax(0, 1fr); }
  .shop-anniversary__copy > p:not(.eyebrow) { font-size: var(--text-xs); }
  .shop-anniversary__copy .text-link { font-size: var(--text-xs); letter-spacing: 0; text-transform: none; line-height: 1.4; }
  .shop-anniversary__copy h2 { margin-bottom: .5rem; }
  .shop-anniversary__offer .price { gap: .375rem; font-size: var(--text-lg); }
  .shop-anniversary__offer .button { width: auto; flex: 1; padding-inline: .5rem; gap: .5rem; }
  .shop-discovery .shop-switch { width: 100%; }
  .shop-discovery [data-shop-filter-group="collection"] { gap: .25rem; justify-content: space-between; flex-wrap: nowrap; padding-right: .75rem; }
  .shop-discovery [data-shop-filter-group="collection"] .shop-filter { padding-inline: .25rem; font-size: var(--text-sm); }
  /* One readable row per product instead of cramped half-width cards. */
  body:not(.single-product) :is(.woocommerce-shell, .woocommerce) ul.products { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  body:not(.single-product) :is(.woocommerce-shell, .woocommerce) ul.products li.product { display: grid; grid-template-columns: min(40%, 9rem) minmax(0, 1fr); gap: .875rem; align-items: center; padding: .75rem; }
  body:not(.single-product) :is(.woocommerce-shell, .woocommerce) ul.products li.product .woocommerce-LoopProduct-link { display: block; }
  body:not(.single-product) :is(.woocommerce-shell, .woocommerce) ul.products li.product .product-card__visual > :is(img, .bundle-art) { width: 100%; margin: 0; aspect-ratio: 1; border-radius: var(--radius-card); }
  body:not(.single-product) :is(.woocommerce-shell, .woocommerce) ul.products li.product .product-card__kicker { font-size: var(--text-xs); letter-spacing: .03em; line-height: 1.4; margin: 0 0 .375rem; }
  body:not(.single-product) :is(.woocommerce-shell, .woocommerce) ul.products li.product .woocommerce-loop-product__title { min-height: 0; font-size: var(--text-lg); line-height: 1.3; overflow-wrap: normal; hyphens: auto; }
  body:not(.single-product) :is(.woocommerce-shell, .woocommerce) ul.products li.product .bundle-card-contents { min-height: 0; margin: .5rem 0 0; font-size: var(--text-xs); line-height: 1.6; }
  body:not(.single-product) :is(.woocommerce-shell, .woocommerce) ul.products li.product .price { min-height: 0; margin: .75rem 0 0; font-size: var(--text-base); }
  body:not(.single-product) :is(.woocommerce-shell, .woocommerce) ul.products li.product .product-card__body > .button { width: 100%; max-width: 14rem; margin: .75rem 0 0; min-height: 44px; font-size: var(--text-sm); }
  body:not(.single-product) :is(.woocommerce-shell, .woocommerce) ul.products li.product .onsale { padding: .3rem .4rem; }
  body:not(.single-product) :is(.woocommerce-shell, .woocommerce) ul.products .bundle-art { padding: .75rem .5rem; }
  body:not(.single-product) :is(.woocommerce-shell, .woocommerce) ul.products li.product.sale .bundle-art { padding-top: 2.25rem; }
  body:not(.single-product) :is(.woocommerce-shell, .woocommerce) ul.products .bundle-art__tins { gap: .3rem; }
  body:not(.single-product) :is(.woocommerce-shell, .woocommerce) ul.products .bundle-art__count { display: none; }
  /* Six tins: two across, three down, matching the homepage bundle preview. */
  .bundle-art.bundle-art--6 .bundle-art__tins { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bundle-art.bundle-art--6 { aspect-ratio: .64; }
  body:not(.single-product) :is(.woocommerce-shell, .woocommerce) ul.products li.product .product-card__visual > .bundle-art--6 { display: block; aspect-ratio: auto; }
  .shop-anniversary .bundle-art--6 { padding: 1.75rem .5rem .75rem; aspect-ratio: .56; }
  .shop-anniversary .bundle-art--6 .bundle-art__count { font-size: var(--text-sm); }
}
@media (max-width: 600px) {
  /* A native swipe track: no autoplay, all links remain keyboard-accessible. */
  .single-product .related.products { position: relative; }
  .single-product .related.products > h2 { margin-bottom: 2rem; padding-right: 6.5rem; }
  .single-product .related.products ul.products { display: grid; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 82%; gap: 1rem; max-width: 100%; padding: .25rem .125rem 1rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: .125rem; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: #b8c6b1 transparent; }
  .single-product .related.products ul.products::before, .single-product .related.products ul.products::after { display: none; }
  .single-product .related.products ul.products li.product { scroll-snap-align: start; min-width: 0; width: auto !important; }
  .recommendation-controls { display: flex; gap: .5rem; position: absolute; right: 0; top: 3rem; }
  .recommendation-controls button { width: 44px; height: 44px; padding: 0; display: grid; place-items: center; border: 1px solid #b7c5af; border-radius: var(--radius-control); background: transparent; color: var(--forest); font-size: var(--text-lg); }
  .recommendation-controls button:disabled { opacity: .35; cursor: default; }
}
@media (max-width: 360px) {
  .shop-discovery [data-shop-filter-group="collection"] .shop-filter { font-size: var(--text-xs); }
}
