.product-grid:has(.gaia-tasting) { align-items: stretch; }
.product-card { display: flex; flex-direction: column; }
.product-info { display: flex; flex: 1; flex-direction: column; align-items: stretch; }
.product-info .price-row { margin-top: auto; }
.product-info > .product-title { align-self: start; }
.coffee-card .product-media,
.coffee-detail .detail-image {
  background: radial-gradient(ellipse at 50% 84%, color-mix(in srgb, var(--coffee-accent) 12%, white), transparent 60%),
              linear-gradient(145deg, #fff 16%, #f9f8f6 100%);
}
.coffee-card .product-open img { mix-blend-mode: multiply; }
.coffee-card .product-title { margin-bottom: 12px; }
.coffee-card .gaia-tasting--compact { margin-bottom: 12px; }
@media (max-width: 600px) {
  .product-grid:has(.coffee-card) { grid-template-columns: minmax(0, 1fr); row-gap: 22px; }
  .product-grid:has(.coffee-card) > .product-card {
    display: grid;
    grid-template-columns: minmax(106px, .82fr) minmax(0, 1.18fr);
    align-items: center;
    column-gap: clamp(12px, 4vw, 20px);
    padding-bottom: 20px;
    border-bottom: 1px solid #eee9e3;
  }
  .product-grid:has(.coffee-card) .product-media { align-self: stretch; aspect-ratio: auto; min-height: 155px; }
  .product-grid:has(.coffee-card) .product-open { padding: 21px 2px 8px; }
  .product-grid:has(.coffee-card) .product-info { padding: 5px 0; min-width: 0; }
  .product-grid:has(.coffee-card) .product-title { min-height: 0; margin: 4px 0 12px; font-size: 16px; line-height: 1.2; }
  .product-grid:has(.coffee-card) .gaia-tasting th { padding-right: 4px; }
  .product-grid:has(.coffee-card) .tag { max-width: calc(100% - 14px); white-space: normal; line-height: 1.35; left: 7px; top: 7px; }
  .product-grid:has(.coffee-card) .price-row { flex-wrap: wrap; gap: 5px; }
}
.brew-story {
  background: #fff;
  color: #29231f;
}
.brew-gallery {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  align-items: center;
  column-gap: clamp(18px, 3vw, 54px);
  max-width: 1560px;
  margin-inline: auto;
  padding: clamp(24px, 3vw, 48px) 5% clamp(8px, 1.1vw, 18px);
}
.brew-editorial h1 {
  margin: 0 0 clamp(17px, 1.9vw, 30px);
  font: 500 clamp(76px, 7.8vw, 132px)/.87 var(--display);
  letter-spacing: -.085em;
}
.brew-editorial h1 em {
  display: inline-block;
  margin-left: -.018em;
  padding: 0 .1em .04em 0;
  font: italic 400 1em/1 Georgia, 'Times New Roman', serif;
  letter-spacing: -.076em;
  color: #805233;
  background: linear-gradient(113deg, #66412b 12%, #9e6945 72%, #784b33);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.brew-editorial > p {
  max-width: 35ch;
  margin: 0;
  color: #60534b;
  font-size: clamp(15px, 1.08vw, 18px);
  line-height: 1.6;
}
.brew-shopping {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px clamp(16px, 1.7vw, 28px);
  margin-top: clamp(20px, 2vw, 32px);
}
.brew-shopping .btn {
  background: linear-gradient(140deg, #50392c, #33251d 65%, #2a1e17);
  box-shadow: inset 0 1px 0 #ffffff4a, 0 5px 14px -8px #49301c88;
}
.brew-shopping .text-link { font-size: 13px; }
.brew-display { min-width: 0; }
.brew-view {
  width: min(100%, 720px);
  aspect-ratio: 12 / 9.8;
  margin-inline: auto;
}
.brew-view video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}
@media (max-width: 760px) {
  .brew-gallery {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 4px;
    padding: clamp(25px, 6vw, 38px) 6% 0;
  }
  .brew-editorial h1 {
    margin-bottom: 13px;
    font-size: clamp(55px, 12.7vw, 88px);
    line-height: 1;
  }
  .brew-editorial h1 br { display: none; }
  .brew-editorial h1 em { margin-left: .11em; }
  .brew-editorial > p { max-width: 38ch; font-size: 14px; }
  .brew-shopping { margin-top: 17px; column-gap: 16px; }
  .brew-shopping .btn { min-height: 44px; padding: 10px 15px; }
  .brew-shopping .text-link { font-size: 12px; }
  .brew-view { width: min(100%, 455px); aspect-ratio: 12 / 9.4; }
}

.subnav a[aria-current="page"] {
  color: #59361f;
  text-decoration: underline;
  text-decoration-color: #a47b5a;
  text-underline-offset: 5px;
}

/* Keep the trade navigation usable with a mouse, a finger, or keyboard focus. */
:root {
  --navigation-top: 91px;
  --navigation-categories: 45px;
  scroll-padding-top: calc(var(--navigation-top) + var(--navigation-categories) + 8px);
}
.masthead .header-main { height: var(--navigation-top); }
.masthead .subnav { height: var(--navigation-categories); }
.subnav a {
  display: inline-flex;
  align-items: center;
  flex: none;
  min-height: 44px;
  font-size: 12px;
}
.subnav a:focus-visible { outline-offset: -2px; }
.subnav a:not(.nav-right)::after { bottom: 5px; }
.header-links > button, .header-links > a { min-height: 44px; }
.header-links .row span {
  display: block;
  max-inline-size: min(22vw, 250px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.brew-shopping .text-link { min-height: 44px; align-items: center; }
.footer p, .footer nav { color: #625950; }
.footer-bottom, .footer-bottom button { color: #70665d; }
@media (min-width: 761px) and (max-width: 1100px) {
  .brew-gallery { grid-template-columns: minmax(0,.94fr) minmax(0,1.06fr); }
  .brew-editorial h1 { font-size: clamp(58px, 7vw, 78px); }
  .brew-shopping { gap: 8px 15px; }
  .brew-shopping .btn { padding-inline: 17px; gap: 10px; }
  .brew-shopping .text-link { gap: 7px; }
}
@media (max-width: 760px) {
  :root { --navigation-top: 72px; }
  .masthead .header-links { gap: 6px; }
  .masthead .mobile-menu, .masthead .bag-btn {
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
  }
  .masthead .subnav { gap: 13px; overscroll-behavior-x: contain; }
  .masthead .subnav a { min-width: 44px; justify-content: center; }
  .brew-shopping { gap: 4px 12px; }
  .brew-shopping .btn { padding-inline: 12px; gap: 6px; }
  .brew-shopping .text-link { padding: 0; gap: 5px; border-bottom: 0; }
  .brew-shopping .text-link .icon { width: 14px; }
}
@media (max-height: 500px) and (orientation: landscape) {
  :root { scroll-padding-top: 12px; }
  .masthead { position: static; }
  .brew-gallery { padding-block: 16px 8px; }
}
@media (min-width: 761px) {
  .header-links > a { display: inline-flex; align-items: center; }
}
.mobile-menu-body .mobile-account-links,
.mobile-menu-body .mobile-shop-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 0 16px;
}
.mobile-menu-body .mobile-shop-links { margin-top: 16px; }
.mobile-menu-body :is(a,button) { min-height: 44px; line-height: 1.35; }
.mobile-menu-body .mobile-account-links :is(a,button) { font-weight: 600; }
/* Anchor buttons request smooth travel explicitly. Native focus changes should settle immediately. */
html { scroll-behavior: auto; }
