/* Reach the catalogue controls before the supporting shopping information. */
.shop-intro{padding:20px 0 16px}
.shop-intro h1{font-size:clamp(28px,3vw,40px);line-height:1.15;letter-spacing:-.8px;margin:0}
.shop-layout{padding-top:0}
.shop-controls{
  /* Keep sticky filters above products and below the header’s Recipes menu. */
  position:sticky;top:0;z-index:4;display:grid;
  grid-template-columns:minmax(0,1fr) auto;gap:9px 12px;align-items:end;
  background:#fffdf8;padding:12px 0;margin:0;border-bottom:1px solid #dfd9c6;
  box-shadow:0 5px 8px -8px #234b3a80;
}
.shop-controls .search-field{grid-column:1;grid-row:1;min-width:0}
.shop-controls .basket-button{grid-column:2;grid-row:1;height:44px;min-width:94px;padding:0 14px;font-size:13px}
.shop-controls .category-field{grid-column:1/-1;grid-row:2;min-width:0}
.shop-controls label{font-size:13px;margin-bottom:4px;color:#204a3e}
.shop-controls #query,.shop-controls #category{
  height:44px;width:100%;border:1.5px solid #718e7c;background-color:#fff;
  box-shadow:0 1px 3px #204a3e18;
}
.shop-controls #category{
  appearance:none;-webkit-appearance:none;cursor:pointer;padding-right:42px;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23204a3e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:right 14px center;background-size:16px 16px;
}
.shop-controls #query:focus-visible,.shop-controls #category:focus-visible{outline:2px solid #0f745e;outline-offset:2px}
.shop-controls .postal-field{grid-column:1/-1}
.shop-controls .postal-field label{
  display:inline-flex;align-items:center;gap:8px;min-height:44px;margin:0;
  font-size:14px;line-height:1.25;cursor:pointer;
}
.shop-controls #postal-only{width:18px;height:18px;margin:0;padding:0;flex:none;accent-color:#155a43}
.shop-controls #postal-only:focus-visible{outline:2px solid #0f745e;outline-offset:3px}
@media(min-width:620px){
  .shop-controls .category-field{grid-column:1}
  .shop-controls .postal-field{grid-column:2;grid-row:2}
}
.catalogue-notices{margin:12px 0 0;padding:10px 13px;background:#fff8e8;border-left:3px solid #ae7027;border-radius:6px;color:#563b1f;font-size:13px;line-height:1.45}
.catalogue-notices p{margin:0 0 6px}
.catalogue-notices a{font-weight:600;text-decoration:underline;text-underline-offset:2px}
.catalogue-help summary{cursor:pointer;min-height:32px;padding:6px 0;font-size:13px;font-weight:600;color:#245441}
.catalogue-help summary:focus-visible{outline:2px solid #0f745e;outline-offset:3px}
.catalogue-help-content{border-top:1px solid #e1d9c8;padding-top:10px}
.catalogue-help-content p{margin-bottom:12px;line-height:1.55}
.catalogue-help-content p>strong{display:block;margin-bottom:3px}
.catalogue-results-head{display:flex;align-items:center;gap:12px;margin:16px 0 12px}
.catalogue-heading-copy{display:flex;align-items:baseline;gap:12px;flex-wrap:wrap;min-width:0;flex:1}
.catalogue-results-head h2{font:400 28px/1.15 Georgia,'Noto Sans Thai',serif;letter-spacing:-.5px;margin:0;min-width:0;overflow-wrap:anywhere}
.catalogue-results-head .shop-meta{margin:0;font-size:13px;flex-shrink:0}
@media(max-width:650px){
  .shop-intro{padding:14px 0 12px}
  .shop-intro h1{font-size:28px}
  .shop-controls{gap:8px 10px;padding:10px 0}
  .shop-controls label{font-size:12px}
  .shop-controls #query,.shop-controls #category{font-size:16px;padding-left:10px}
  .catalogue-notices{margin-top:10px;padding:8px 11px}
  .catalogue-results-head{margin:12px 0 10px}
  .catalogue-results-head h2{font-size:25px}
}

.produce-filters:not([hidden]){display:flex;flex-wrap:wrap;gap:7px;margin:0 0 14px}
.produce-filters button,.search-all{min-height:44px;padding:8px 13px;border:1px solid #718e7c;border-radius:8px;background:#fffdf8;color:#204a3e;font-family:inherit;font-size:14px;font-weight:600;line-height:1.4;cursor:pointer}
.produce-filters [aria-pressed=true],.search-all{background:#245441;color:white;border-color:#245441}
.produce-filters button:focus-visible,.search-all:focus-visible{outline:2px solid #0f745e;outline-offset:3px}
.product-price .unit-price{display:block;margin-top:3px;color:#536759;font:400 13px/1.4 Arial,sans-serif}
.product-grid>.empty{grid-column:1/-1;overflow-wrap:anywhere}
.product-grid>.empty p{margin:0 0 12px}
.search-all{max-width:100%;overflow-wrap:anywhere;white-space:normal}
.product-name a{color:inherit;text-decoration:none}
/* The decorative chevron belongs to the existing link and has no spoken label. */
.product-name a,.catalogue-basic li>a:first-child{display:inline-flex;max-width:100%;align-items:baseline;gap:.32em}
.product-name a::after,.catalogue-basic li>a:first-child::after{content:"";flex:none;width:.4em;height:.4em;align-self:flex-start;margin-top:.48em;border:solid currentColor;border-width:1.5px 1.5px 0 0;transform:rotate(45deg);color:#416956}
.product-name a:hover,.product-name a:focus-visible{text-decoration:underline;text-underline-offset:3px}

.basket-row{grid-template-columns:52px minmax(0,1fr) auto;align-items:center;column-gap:10px}
.basket-thumb{grid-column:1;width:52px;height:56px;object-fit:contain;border:1px solid #e5e4d8;border-radius:7px;background:#fff}
.basket-item-copy{grid-column:2;min-width:0;overflow-wrap:anywhere}
.basket-row .basket-line-price{margin:4px 0 2px;color:#314e40;font-variant-numeric:tabular-nums}
.basket-row .qty{grid-column:3;gap:5px}
.basket-row .qty button{min-height:44px;min-width:40px}
@media(max-width:420px){
  .basket-row{grid-template-columns:48px minmax(0,1fr);align-items:start}
  .basket-thumb{width:48px;height:52px}
  .basket-row .qty{grid-column:2;gap:12px}
}

.listing-pack-sizes{min-width:0;padding:0;margin:0 0 12px;border:0}
.listing-pack-sizes legend{padding:0;margin-bottom:5px;color:#244c3b;font-size:14px;font-weight:700}
.listing-pack-sizes>div{display:flex;flex-wrap:wrap;gap:5px}
.listing-pack-sizes label{position:relative;display:inline-flex;margin:0}
.listing-pack-sizes input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}
.listing-pack-sizes span{display:grid;place-items:center;min-width:44px;min-height:44px;padding:3px 7px;border:1px solid #718e7c;border-radius:7px;background:white;color:#214c3a;font-size:14px;font-weight:600;line-height:1.2}
/* Keep weights aligned when the catalogue places two narrow cards side by side. */
.listing-weight-sizes { container: pack-choices / inline-size; }
.listing-weight-sizes > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.listing-weight-sizes span { width: 100%; }
.listing-weight-sizes label:last-child:nth-child(odd) { grid-column: 1 / -1; }

@container pack-choices (min-width: 15rem) {
  .listing-weight-sizes > div { display: flex; }
  .listing-weight-sizes label { flex: 1 1 3rem; }
}

.listing-pack-sizes input:checked+span{border-color:#155a43;background:#155a43;color:white}
.listing-pack-sizes input:focus-visible+span{outline:2px solid #0f745e;outline-offset:2px}
@media(forced-colors:active){.listing-pack-sizes input:checked+span{border:3px solid Highlight}}

.basket-preorders{margin-top:16px}
.basket-preorders h3{font-size:17px;color:#244c3b;margin:0 0 3px}
.basket-preorders p{font-size:14px;line-height:1.45;margin:0 0 8px}

.basket-item-copy a{color:inherit;text-underline-offset:3px}.basket-row>a{display:block;grid-column:1;line-height:0}

.basket-row .basket-remove {
  min-height:44px;padding:4px 3px;border:0;background:transparent;color:#29523f;
  font:inherit;font-size:14px;text-decoration:underline;text-underline-offset:3px;cursor:pointer;
}
.basket-remove:focus-visible {outline:2px solid currentColor;outline-offset:1px}
