/* One clear, evidence-led icon system for product details and wholesale quality. */
.product-story .product-icon-section { padding-block: clamp(26px, 4vw, 44px); }
.product-story .product-icon-section h2 { margin-bottom: 18px; }
.product-story .product-icon-section .product-icon-facts,
.product-story .matchakra-pictograms {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.product-story .product-icon-section .product-icon-facts li,
.product-story .matchakra-pictograms li {
  box-sizing: border-box;
  display: flex;
  min-width: 0;
  min-height: 142px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 13px;
  padding: 16px;
  border: 1px solid #e2e6d9;
  border-radius: 16px;
  background: linear-gradient(155deg, #fffefa 0%, #f7f7f0 100%);
  box-shadow: 0 7px 20px rgba(20, 55, 40, .045);
  color: #153e31;
  font-size: .85rem;
  line-height: 1.35;
  text-align: left;
}
.product-story .product-icon-section .product-icon-facts svg,
.product-story .matchakra-pictograms li svg {
  box-sizing: border-box;
  display: block;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  padding: 9px;
  border: 1px solid rgba(44, 99, 71, .13);
  border-radius: 13px;
  background: #eaf1e8;
  color: #28644c;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.product-story .product-icon-section .product-icon-facts li:nth-child(4n + 2) svg { background: #edf1e3; color: #527143; }
.product-story .product-icon-section .product-icon-facts li:nth-child(4n + 3) svg { background: #f8eee3; color: #a96535; }
.product-story .product-icon-section .product-icon-facts li:nth-child(4n) svg { background: #eef1e9; color: #49664e; }
.product-story .product-icon-section .product-icon-facts .fact-copy,
.product-story .matchakra-pictograms .fact-copy { display: grid; min-width: 0; gap: 5px; text-wrap: pretty; }
.product-story .product-icon-section .product-icon-facts .fact-copy strong,
.product-story .matchakra-pictograms .fact-copy strong { color: #153e31; font-size: .91rem; font-weight: 800; line-height: 1.2; }
.product-story .product-icon-section .product-icon-facts .fact-copy small,
.product-story .matchakra-pictograms .fact-copy small { color: #596d60; font-size: .76rem; font-weight: 500; line-height: 1.45; }
.product-story .product-icon-section .product-icon-facts li > span:not(.fact-copy),
.product-story .matchakra-pictograms li > span:not(.fact-copy) { display: grid; gap: 5px; font-weight: 800; }
.product-story .matchakra-pictograms { margin-top: 22px; }
.product-story .product-icon-section .product-icon-facts li:focus-within,
.product-story .matchakra-pictograms li:focus-within { outline: 2px solid #28644c; outline-offset: 3px; }

/* Ube and spirulina retain their own ingredient colour cues without implying health outcomes. */
.product-ube-story .product-icon-section .product-icon-facts li:nth-child(2) svg { background: #f3eaf6; color: #79549a; }
.product-blue-story .product-icon-section .product-icon-facts li:nth-child(1) svg { background: #e8f3f8; color: #347b9d; }
.product-blue-story .product-icon-section .product-icon-facts li:nth-child(4) svg { background: #eef1fa; color: #536d9a; }

.product-card-facts { display: flex; flex-wrap: wrap; gap: 7px; }
.product-card-facts li {
  min-height: 30px;
  padding: 5px 9px;
  border: 1px solid #e4e8dc;
  border-radius: 999px;
  background: #fbfaf5;
  color: #345b49;
  font-size: .72rem;
  line-height: 1.25;
}

.cafe-page .cafe-values { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.cafe-page .cafe-values article.b2b-value-card {
  box-sizing: border-box;
  min-width: 0;
  min-height: 100%;
  padding: 20px;
  border: 1px solid #e1e6d9;
  border-radius: 16px;
  background: linear-gradient(155deg, #fffefa 0%, #f7f7f0 100%);
  box-shadow: 0 7px 20px rgba(20, 55, 40, .045);
}
.cafe-page .b2b-value-icon {
  display: grid;
  width: 48px;
  height: 48px;
  margin-bottom: 15px;
  place-items: center;
  border: 1px solid #dce7d9;
  border-radius: 15px;
  background: #eaf1e8;
  color: #28644c;
}
.cafe-page .b2b-value-icon svg { width: 29px; height: 29px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.cafe-page .cafe-values article:nth-child(2) .b2b-value-icon { color: #527143; background: #edf1e3; }
.cafe-page .cafe-values article:nth-child(3) .b2b-value-icon { color: #a96535; background: #f8eee3; }
.cafe-page .cafe-values article:nth-child(4) .b2b-value-icon { color: #49664e; background: #eef1e9; }
.cafe-page .cafe-values h3 { font-size: 1rem; line-height: 1.3; }
.cafe-page .cafe-values p { font-size: .88rem; line-height: 1.55; }

@media (max-width: 960px) {
  .product-story .product-icon-section .product-icon-facts,
  .product-story .matchakra-pictograms { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cafe-page .cafe-values { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .product-story .product-icon-section { padding-block: 24px; }
  .product-story .product-icon-section .product-icon-facts,
  .product-story .matchakra-pictograms { gap: 9px; }
  .product-story .product-icon-section .product-icon-facts li,
  .product-story .matchakra-pictograms li { min-height: 132px; gap: 10px; padding: 12px; border-radius: 14px; }
  .product-story .product-icon-section .product-icon-facts svg,
  .product-story .matchakra-pictograms li svg { flex-basis: 36px; width: 36px; height: 36px; padding: 7px; border-radius: 11px; }
  .product-story .product-icon-section .product-icon-facts .fact-copy strong,
  .product-story .matchakra-pictograms .fact-copy strong { font-size: .82rem; }
  .product-story .product-icon-section .product-icon-facts .fact-copy small,
  .product-story .matchakra-pictograms .fact-copy small { font-size: .71rem; }
  .cafe-page .cafe-values { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .cafe-page .cafe-values article.b2b-value-card { min-height: 0; padding: 16px; }
  .cafe-page .b2b-value-icon { float: left; margin: 0 12px 8px 0; width: 42px; height: 42px; }
  .cafe-page .cafe-values h3 { min-height: 42px; align-content: center; margin-bottom: 8px; }
  .cafe-page .cafe-values p { clear: both; margin-bottom: 0; }
}


/* Supplier quality pictograms, shared by Japanese matcha product pages. */
.supplier-quality { margin: 22px auto 32px; padding: clamp(20px,3vw,30px); border: 1px solid #e2e6d9; border-radius: 20px; background: #f8f8f2; }
.supplier-quality__heading { max-width: 68ch; margin: 0 auto 18px; text-align: center; }
.supplier-quality__heading h2 { margin: 0 0 7px; color: #173f32; font-size: clamp(1.2rem,2vw,1.55rem); line-height: 1.2; }
.supplier-quality__heading p { margin: 0; color: #596d60; font-size: .9rem; line-height: 1.5; }
.supplier-quality__grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.supplier-quality__grid li { display: flex; min-width: 0; align-items: flex-start; gap: 12px; padding: 16px; border: 1px solid #e5e8df; border-radius: 15px; background: #fffefa; color: #173f32; text-align:left; }
.supplier-quality__grid li svg { box-sizing: border-box; flex: 0 0 40px; width: 40px; height: 40px; padding: 9px; border: 1px solid #dce7d9; border-radius: 12px; background: #eaf1e8; color: #28644c; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.supplier-quality__grid li:nth-child(2) svg { background: #f8eee3; border-color: #f0dfca; color: #a96535; }
.supplier-quality__grid li:nth-child(3) svg { background: #edf1e3; border-color: #e1e7d7; color: #527143; }
.supplier-quality__grid li span { display: grid; min-width: 0; gap: 5px; }
.supplier-quality__grid strong { font-size: .88rem; line-height: 1.25; }
.supplier-quality__grid small { color: #596d60; font-size: .76rem; line-height: 1.45; }
@media(max-width:760px) { .supplier-quality { margin: 16px auto 24px; padding: 17px 14px; border-radius: 16px; } .supplier-quality__grid { grid-template-columns: minmax(0,1fr); gap: 9px; } .supplier-quality__grid li { padding: 13px; } }

/* Final product hierarchy: facts first, more breathing room, unified purchase treatment. */
.product-story .product-icon-section .product-icon-facts { grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; }
.product-story .product-icon-section .product-icon-facts li { min-height:128px; align-items:center; text-align:center; justify-content:center; }
.product-story .product-icon-section .product-icon-facts li:first-child { border-color:#cbd8c3; background:#f1f5ec; }
.product-story .product-icon-section .product-icon-facts li:first-child svg { width:46px; height:46px; flex-basis:46px; background:#e2eddf; color:#174b39; }
.product-story .product-icon-section .product-icon-facts li:nth-child(2) { border-color:#e6d6c6; background:#fbf4eb; }
.product-story .product-icon-section .product-icon-facts li:nth-child(2) svg { background:#f5e8d9; color:#9c5e32; }
.product-story .product-icon-section .product-icon-facts li:nth-child(3) svg { background:#eeeaf3; color:#70577e; }
.product-story .product-icon-section .product-icon-facts li:nth-child(4) svg { background:#e9f0ef; color:#386e68; }
.product-story:not(.matchakra-product) .detail-visual img,.product-grade .grade-image-link img,.catalog-product .catalog-image img { transform:scale(1.1); }
.product-story.matchakra-product .detail-copy { text-align:center!important; }
.product-story.matchakra-product .detail-copy h1,.product-story.matchakra-product .detail-copy .product-lead { margin-inline:auto!important; text-align:center!important; }
.product-story.matchakra-product .matchakra-purchase { display:flex; align-items:center; justify-content:center; flex-wrap:wrap; gap:12px 24px; margin:22px auto 0; padding:16px 20px; border:1px solid #e1e6d9; border-radius:16px; background:#f8f8f2; color:#153e31; }
.product-story.matchakra-product .matchakra-purchase-price span { color:#596d60; }
.product-story.matchakra-product .matchakra-purchase .btn { min-height:48px; padding:0 22px; border-radius:999px; background:#0b4b37; color:#fff; }
.bio-cert-badge { box-sizing:border-box; width:fit-content; max-width:min(100%,440px); margin:13px auto 0; gap:10px; padding:10px 13px; border:1px solid #c9d9c5; border-left:3px solid #4f7950; border-radius:12px; background:#f3f7ef; color:#244332; box-shadow:0 3px 10px #173f320b; }
.bio-cert-badge__logo { flex:0 0 44px; width:44px; max-height:30px; }
.bio-cert-badge__copy { gap:3px; }
.bio-cert-badge__copy strong { color:#234b34; font-size:.75rem; line-height:1.25; }
.bio-cert-badge__copy span { color:#586c5d; font-size:.68rem; line-height:1.35; }
@media(max-width:760px) { .product-story .product-icon-section .product-icon-facts { grid-template-columns:repeat(2,minmax(0,1fr)); } .product-story .product-icon-section .product-icon-facts li { min-height:116px; } .product-story:not(.matchakra-product) .detail-visual img,.product-grade .grade-image-link img,.catalog-product .catalog-image img { transform:scale(1.06); } .bio-cert-badge { max-width:100%; padding:9px 11px; } .bio-cert-badge__logo { flex-basis:40px; width:40px; } }
.product-story.matchakra-product .detail-visual { height:330px!important; }
.product-story.matchakra-product .detail-visual img { height:275px!important; max-width:198px!important; max-height:275px!important; }


/* Wholesale priorities: kilos first, with a clear product-specific certification note. */
.cafe-page .cafe-values article:first-child { background:#0b4334; border-color:#0b4334; color:#fff; }
.cafe-page .cafe-values article:first-child h3,.cafe-page .cafe-values article:first-child p { color:#fff; }
.cafe-page .cafe-values article:first-child .b2b-value-icon { background:#f6a267; border-color:#f6a267; color:#173d31; }
.cafe-page .cafe-values .b2b-value-icon { display:grid; width:52px; height:52px; border-radius:16px; place-items:center; }
.cafe-page .cafe-values .b2b-value-icon svg { width:32px; height:32px; }
.cafe-page .cafe-values article h3 { margin:0 0 9px; }
@media(max-width:760px) { .cafe-page .cafe-values article:first-child { grid-column:auto; } }

/* Footer wordmark: preserve the full logo and center it instead of squeezing it on mobile. */
.site-footer .footer-grid { justify-items:center; }
.site-footer .footer-brand { display:flex!important; flex-direction:column!important; align-items:center!important; text-align:center!important; }
.site-footer .footer-brand > img { display:block!important; width:min(168px,100%)!important; height:auto!important; max-height:72px!important; margin:0 auto 14px!important; object-fit:contain!important; object-position:center!important; filter:brightness(0) invert(1)!important; }
.site-footer .footer-brand p { max-width:34ch; margin-inline:auto!important; text-align:center!important; }

/* Product category: consistent, centered cards with reliable wrapping on phones. */
.catalog-head .wrap { width:min(100% - 36px, 820px)!important; margin-inline:auto!important; text-align:center!important; }
.catalog-head h1,.catalog-head p { margin-inline:auto!important; text-align:center!important; }
.catalog-head p { max-width:58ch; line-height:1.55; }
.products .wrap.product-list { width:min(100% - 36px, 980px)!important; margin-inline:auto!important; display:grid!important; gap:12px!important; }
.catalog-product.product-row { box-sizing:border-box!important; display:grid!important; grid-template-columns:minmax(140px,180px) minmax(0,1fr)!important; align-items:center!important; gap:clamp(16px,3vw,28px)!important; min-width:0!important; padding:18px!important; border:1px solid #e6e5dc!important; border-radius:18px!important; background:#fffefa!important; }
.catalog-product .catalog-image { box-sizing:border-box!important; display:grid!important; width:100%!important; height:174px!important; min-width:0!important; place-items:center!important; overflow:hidden!important; border-radius:14px!important; background:#f7f3e9!important; }
.catalog-product .catalog-image img { display:block!important; width:min(100%,146px)!important; height:158px!important; max-width:146px!important; max-height:158px!important; padding:3px!important; object-fit:contain!important; transform:none!important; }
.catalog-copy { display:flex!important; min-width:0!important; flex-direction:column!important; align-items:center!important; gap:8px!important; text-align:center!important; }
.catalog-copy h2 { max-width:100%!important; margin:0!important; font-size:clamp(1.04rem,2vw,1.28rem)!important; line-height:1.28!important; overflow-wrap:anywhere!important; text-align:center!important; }
.catalog-copy h2 a { color:#173f32!important; text-decoration:none!important; }
.catalog-copy p { max-width:48ch!important; margin:0!important; color:#4f6259!important; font-size:.91rem!important; line-height:1.5!important; overflow-wrap:anywhere!important; text-align:center!important; }
.catalog-copy .home-product-offer { display:flex!important; justify-content:center!important; align-items:baseline!important; gap:10px!important; margin:1px 0 0!important; }
.catalog-copy .home-product-price { font-size:1.08rem!important; }
.catalog-copy .home-product-link { align-self:center!important; justify-content:center!important; min-height:42px!important; margin-top:1px!important; text-decoration:none!important; }
.catalog-copy .bio-cert-badge { max-width:min(100%,440px)!important; margin:2px auto!important; }
.site-footer .footer-grid { grid-template-columns:1fr!important; justify-items:center!important; text-align:center!important; }
.site-footer .footer-brand { display:flex!important; width:100%!important; flex-direction:column!important; align-items:center!important; justify-content:center!important; gap:12px!important; text-align:center!important; }
.site-footer .footer-brand > img { display:block!important; width:min(168px,100%)!important; height:auto!important; max-height:68px!important; margin:0 auto!important; object-fit:contain!important; object-position:center!important; filter:brightness(0) invert(1)!important; }
.site-footer .footer-brand p { max-width:38ch!important; margin:0 auto!important; text-align:center!important; }
@media(max-width:700px) {
  .catalog-head .wrap { width:min(100% - 32px, 560px)!important; }
  .products .wrap.product-list { width:min(100% - 28px, 560px)!important; gap:10px!important; }
  .catalog-product.product-row { grid-template-columns:minmax(0,1fr)!important; gap:10px!important; padding:14px!important; border-radius:16px!important; }
  .catalog-product .catalog-image { height:144px!important; }
  .catalog-product .catalog-image img { width:min(100%,132px)!important; height:132px!important; max-width:132px!important; max-height:132px!important; }
  .catalog-copy { gap:7px!important; }
  .catalog-copy h2 { font-size:1.1rem!important; }
  .catalog-copy p { font-size:.89rem!important; }
  .catalog-copy .bio-cert-badge { text-align:left!important; }
}

/* Footer brand: a single centered lockup row, then a calm centered descriptor. */
.site-footer .wrap > .footer-grid > .footer-brand { box-sizing:border-box!important; display:flex!important; flex:0 1 auto!important; width:100%!important; grid-template-columns:none!important; grid-column:1/-1!important; flex-direction:column!important; align-items:center!important; justify-content:center!important; gap:11px!important; margin-inline:auto!important; text-align:center!important; }
.site-footer .wrap > .footer-grid > .footer-brand > img { width:min(168px,100%)!important; height:auto!important; max-height:60px!important; margin:0 auto!important; filter:none!important; object-fit:contain!important; object-position:center!important; }
.site-footer .wrap > .footer-grid > .footer-brand > p { width:min(100%,38ch)!important; margin:0 auto!important; text-align:center!important; }

.site-footer .wrap > .footer-grid > .footer-brand > img { filter:brightness(0) invert(1)!important; }

.product-documents-note { max-width:62ch; margin:14px auto 0; color:#617168; font-size:.8rem; line-height:1.45; text-align:center; }
/* EU organic mark: visible and legible without suggesting other products are BIO. */
.catalog-copy .bio-cert-badge { margin:5px auto!important; padding:8px 10px!important; gap:8px!important; border:1px solid #d3dfcd!important; border-left:3px solid #547c50!important; border-radius:11px!important; background:#f4f7f0!important; box-shadow:0 2px 8px #173f320a!important; }
.catalog-copy .bio-cert-badge__logo { flex-basis:38px!important; width:38px!important; max-height:26px!important; }
.catalog-copy .bio-cert-badge__copy strong { color:#244b34!important; font-size:.71rem!important; }
.catalog-copy .bio-cert-badge__copy span { color:#596e5e!important; font-size:.63rem!important; line-height:1.32!important; }
@media(max-width:700px) { .catalog-copy .bio-cert-badge { justify-self:center!important; } }
/* Beat legacy id-level matcha image overrides so cut-out tins stay fully visible. */
.products .wrap.product-list .catalog-product.product-row[id^="matcha-"] .catalog-image > img { width:min(100%,146px)!important; height:158px!important; max-width:146px!important; max-height:158px!important; padding:3px!important; object-fit:contain!important; transform:none!important; }
@media(max-width:700px) { .products .wrap.product-list .catalog-product.product-row[id^="matcha-"] .catalog-image > img { width:min(100%,132px)!important; height:132px!important; max-width:132px!important; max-height:132px!important; } }

/* A tidy, consistent pictogram grid for matcha, ube and blue spirulina product cards. */
.catalog-copy .product-card-facts { display:grid!important; grid-template-columns:repeat(2,minmax(0,1fr))!important; width:min(100%,430px)!important; margin:5px auto 9px!important; gap:7px!important; justify-items:stretch!important; }
.catalog-copy .product-card-facts li { box-sizing:border-box!important; min-width:0!important; min-height:37px!important; justify-content:flex-start!important; padding:6px 9px!important; border-radius:13px!important; text-align:left!important; }
.catalog-copy .product-card-facts svg { flex:0 0 18px!important; width:18px!important; height:18px!important; padding:4px!important; }
.catalog-product#matcha-second-harvest .product-card-facts li:nth-child(2) svg { background:#f7ecdf!important; color:#a45d32!important; }
.catalog-product#ube .product-card-facts li:nth-child(2) svg { background:#f3eaf6!important; color:#79549a!important; }
.catalog-product#blue .product-card-facts li:nth-child(1) svg,.catalog-product#blue .product-card-facts li:nth-child(2) svg { background:#e8f3f8!important; color:#347b9d!important; }
.catalog-product#matcha-second-harvest .product-card-facts li:last-child,.catalog-product#ube .product-card-facts li:last-child,.catalog-product#blue .product-card-facts li:last-child { background:#eef4eb!important; border-color:#dce8d6!important; }
