/* The collection doors, tasting room and two buying shelves share the same page rhythm. */
.showroom-doors {
  display: grid;
  grid-template-columns: minmax(0,1.18fr) minmax(0,1fr);
  gap: clamp(14px,1.55vw,26px);
  padding-top: clamp(24px,3vw,48px);
  padding-bottom: clamp(26px,3vw,48px);
}
.showroom-doors:has(> :only-child) { grid-template-columns: minmax(0,1fr); }
.showroom-door {
  isolation: isolate;
  width: 100%;
  display: block;
  position: relative;
  height: clamp(255px,25vw,410px);
  overflow: hidden;
  border-radius: clamp(16px,1.8vw,28px);
  background: #f0ece8;
  text-align: start;
  color: #fff;
  border: 0;
}
.showroom-door img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.015);
  transition: transform .8s cubic-bezier(.2,.64,.24,1);
}
.door-coffee img { object-position: 54% 49%; }
.door-care img { object-position: 57% 56%; }
.showroom-door::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(0deg,#261709bd 0%,#2c190320 31%,transparent 65%);
}
.door-care { background: #efefee; color: #231e19; }
.door-care::before { background: linear-gradient(0deg,#f4f2eff2 0%,#f5f4f08c 17%,transparent 46%); }
.door-caption {
  position: absolute;
  inset: auto clamp(21px,2.2vw,36px) clamp(21px,2.2vw,36px);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.door-title {
  font-family: var(--display);
  font-size: clamp(31px,3.3vw,59px);
  letter-spacing: -.058em;
  font-weight: 500;
  line-height: 1.02;
}
.door-arrow,
.shelf-controls button {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 50%;
}
.door-arrow {
  color: #2b241e;
  background: #ffffffdc;
  border: 1px solid #fffe;
  box-shadow: inset 0 1px 0 #fff, 0 4px 18px #0001;
  backdrop-filter: blur(10px);
}
.door-care .door-arrow { background: #302b28; color: white; border-color: #302b28; }
.door-arrow .icon { width: 20px; height: 20px; transform: rotate(-35deg); transition: transform .25s ease; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .showroom-door:hover img { transform: scale(1.055); }
  .showroom-door:hover .door-arrow .icon { transform: rotate(-35deg) translateX(2px); }
}
.showroom-door:focus-visible { outline-offset: -5px; outline: 3px solid #a96a29; }
.showroom-tasting.tasting-atelier {
  padding: clamp(60px,7vw,116px) 0 clamp(62px,7vw,116px);
}
.showroom-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: clamp(20px,5vw,100px);
  margin-bottom: clamp(25px,3vw,46px);
}
.showroom-heading h2, .wholesale-intro h2 {
  font-family: var(--display);
  font-size: clamp(52px,6.3vw,100px);
  font-weight: 500;
  color: #25221e;
  letter-spacing: -.067em;
  line-height: .99;
  margin: 0;
}
.showroom-heading h2 em, .wholesale-intro h2 em {
  font: italic 400 1.035em/.96 Georgia,'Times New Roman',serif;
  letter-spacing: -.064em;
  color: #84583e;
}
.showroom-heading p {
  color: #6c6258;
  font-size: clamp(13px,1.05vw,16px);
  line-height: 1.66;
  max-width: 35ch;
  margin: 0 0 .2em;
}
.showroom-shelf { scroll-margin-top: 8px; }
.shelf-coffee { background: linear-gradient(180deg,#f8f6f2 0%,#fbf9f6 50%,#fff 99%); border-top: 1px solid #eeeae5; }
.shelf-care { background: #fff; border-top: 1px solid #ece7df; }
.showroom-shelf > .wrap { padding-top: clamp(52px,6.3vw,100px); padding-bottom: clamp(46px,5.8vw,89px); }
.showroom-shelf .showroom-toolbar { gap: 15px; margin-bottom: 12px; }
.showroom-shelf .showroom-filters { gap: 5px; }
.showroom-shelf .showroom-filter { border-color: #dcd6cd; }
.showroom-shelf .showroom-filter[aria-pressed="true"] { border-color: #2b2520; }
.showroom-shelf .search-field { background: #fff; border-radius: 999px; }
.showroom-shelf .taste-filters { margin: 0; }
.showroom-shelf .taste-filters button { border: 1px solid #e8e2db; border-radius: 999px; background: #fff; }
.showroom-shelf .taste-filters button[aria-pressed="true"] { background: #f0e5d9; border-color: #d9c6af; }
gaia-product-shelf { display: block; margin-top: 19px; }
.shelf-status, .shelf-controls { display: flex; align-items: center; }
.shelf-status { min-height: 46px; margin-bottom: 12px; justify-content: space-between; gap: 14px; }
.shelf-status .showroom-results { color: #635d55; font-size: 12px; margin: 0; padding: 0; }
.shelf-controls { gap: 7px; }
.shelf-controls[hidden] { display: none; }
.shelf-range { font: 500 12px/1 var(--font); font-variant-numeric: tabular-nums; color: #655b51; margin-inline: 3px 7px; }
.shelf-controls button { width: 44px; height: 44px; border: 1px solid #dcd6ce; color: #2b2621; background: white; }
.shelf-controls button:disabled { opacity: .37; cursor: default; }
.shelf-controls button:not(:disabled):hover { border-color: #957055; color: #87542f; }
.shelf-controls .icon { width: 17px; height: 17px; }
.shelf-prev .icon { transform: rotate(180deg); }
.showroom-shelf .shelf-track.product-grid {
  --shelf-gap: clamp(13px,1.5vw,24px);
  display: grid;
  grid-template-columns: none;
  grid-template-rows: auto;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 3 * var(--shelf-gap)) / 4);
  gap: var(--shelf-gap);
  align-items: stretch;
  margin: 0;
  padding: 3px 0 15px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: #c3b5a4 transparent;
}
.shelf-track:focus-visible { outline: 2px solid #987353; outline-offset: 4px; }
.shelf-track:has(> .empty-state) { grid-auto-columns: 100% !important; }
.shelf-track .empty-state { min-height: 210px; }
.showroom-shelf .shelf-track.product-grid > .product-card {
  scroll-snap-align: start;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  border: 1px solid #e8e3dd;
  border-radius: 17px;
  background: white;
}
.showroom-shelf .product-grid.shelf-track .product-card .product-media {
  min-height: 0;
  aspect-ratio: 1.12;
  border: 0;
  border-radius: 0;
  border-bottom: 1px solid #ebe7e2;
  box-shadow: none;
  overflow: hidden;
}
.showroom-shelf .product-grid.shelf-track .product-card .product-open { padding: 26px 8px 9px; }
.showroom-shelf .product-grid.shelf-track .product-card .product-info { flex: 1; display: flex; padding: 16px clamp(12px,1.2vw,20px) 14px; }
.showroom-shelf .product-card .product-brand { color: #766756; }
.showroom-shelf .product-grid.shelf-track .product-card .product-title { min-height: 0; margin: 2px 0 12px; font-size: clamp(16px,1.2vw,20px); line-height: 1.22; }
.showroom-shelf .product-info .gaia-tasting--compact { margin-bottom: 12px; font-size: .78rem; }
.showroom-shelf .product-info .gaia-tasting--compact .gaia-tasting-label { width: 32%; }
.showroom-shelf .product-info .price-row { margin-top: auto; min-height: 39px; padding-top: 9px; }
.showroom-shelf .locked { min-height: 44px; color: #62503c; }
.showroom-shelf .add-small { min-height: 44px; }
.showroom-shelf .shelf-footer { margin-top: 20px; display: flex; justify-content: flex-end; }
.shelf-footer .text-link { font-size: 13px; }
.wholesale-steps {
  background: radial-gradient(ellipse at 3% 93%, #57402c66,transparent 57%),linear-gradient(130deg,#201b17,#322820 63%,#251f1b);
  color: #fff7eb;
  isolation: isolate;
}
.wholesale-steps-layout { display: grid; grid-template-columns: 1fr .88fr; gap: clamp(46px,10vw,165px); padding-block: clamp(62px,8vw,125px); }
.wholesale-intro h2 { color: #fff9f0; font-size: clamp(55px,6.5vw,102px); }
.wholesale-intro h2 em { color: #ddbb95; }
.wholesale-intro > p { max-width: 36ch; color: #d6cabd; margin: 24px 0 28px; line-height: 1.7; }
.wholesale-intro .btn { background: linear-gradient(135deg,#fffaf3,#ebdcc9); color: #2b251e; border: 1px solid #fff5deab; }
.wholesale-intro .btn:hover { color: #211b14; background: #fffaf1; }
.wholesale-guide { align-self: center; }
.wholesale-guide ol { padding: 0; list-style: none; counter-reset: method; margin: 0 0 20px; }
.wholesale-guide li { display: flex; gap: clamp(13px,2vw,30px); padding: 19px 0; border-top: 1px solid #e5d1b840; counter-increment: method; }
.wholesale-guide li::before { content: counter(method); color: #ddbb95; font: italic 400 26px/1 Georgia,serif; }
.wholesale-guide h3 { color: #fff9f0; font-size: clamp(17px,1.45vw,24px); font-weight: 500; letter-spacing: -.035em; line-height: 1.22; margin: 0 0 6px; }
.wholesale-guide p { color: #d4c8bc; max-width: 45ch; font-size: 13px; line-height: 1.6; margin: 0; }
.wholesale-guide .text-link { border-color: #b4a08c; color: #f5eadf; }
@media (min-width: 761px) and (max-width: 1120px) {
  .showroom-shelf .shelf-track.product-grid { grid-auto-columns: calc((100% - 2 * var(--shelf-gap)) / 3); }
}
@media (max-width: 760px) {
  .showroom-doors { grid-template-columns: 1fr 1fr; gap: 9px; padding: 22px 5% 8px; }
  .showroom-door { height: auto; aspect-ratio: .95; border-radius: 13px; }
  .door-coffee img { object-position: 60% 50%; }
  .door-care img { object-position: 47% 50%; }
  .door-caption { inset: auto 12px 13px; gap: 5px; }
  .door-title { font-size: clamp(19px,4.4vw,31px); }
  .door-arrow { width: 27px; height: 27px; }
  .door-arrow .icon { width: 13px; height: 13px; }
  .showroom-tasting.tasting-atelier { padding: 46px 0 56px; }
  .showroom-heading { align-items: flex-start; flex-direction: column; gap: 13px; margin-bottom: 22px; }
  .showroom-heading h2 { font-size: clamp(41px,9.7vw,64px); }
  .showroom-heading p { font-size: 13px; max-width: 39ch; }
  .showroom-shelf > .wrap { padding-block: 45px; }
  .showroom-shelf .showroom-toolbar { margin-bottom: 9px; }
  .showroom-shelf .search-field input { font-size: 16px; }
  .showroom-shelf .shelf-track.product-grid { grid-auto-columns: minmax(245px,76%); padding-bottom: 10px; }
  .showroom-shelf .product-grid.shelf-track .product-card .product-info { padding: 15px; }
  .showroom-shelf .product-grid.shelf-track .product-card .product-media { aspect-ratio: 1.33; }
  .showroom-shelf .product-grid.shelf-track .product-title { font-size: 16px; }
  .shelf-status { min-height: 44px; margin-bottom: 7px; }
  gaia-product-shelf { margin-top: 9px; }
  .shelf-range { margin-right: 4px; font-size: 11px; }
  .wholesale-steps-layout { grid-template-columns: 1fr; gap: 34px; padding-block: 45px; }
  .wholesale-intro h2 { font-size: clamp(51px,11vw,72px); }
  .wholesale-intro > p { margin: 18px 0 21px; }
  .wholesale-guide li { padding: 16px 0; }
}
@media (min-width: 540px) and (max-width: 760px) {
  .showroom-shelf .shelf-track.product-grid { grid-auto-columns: calc((100% - var(--shelf-gap)) / 2); }
}
@media (prefers-reduced-motion: reduce) {
  .showroom-door img, .door-arrow .icon { transition: none; }
}

/* Shared collection navigation for the coffee shelf and full catalog. */
.coffee-shelf-toolbar {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(200px,290px);
  align-items: end;
  gap: 18px 26px;
}
.coffee-browse { min-width: 0; }
.coffee-groups { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.coffee-groups button {
  color: #695c53;
  font: 500 clamp(14px,1.18vw,18px)/1.25 var(--display, sans-serif);
  letter-spacing: -.025em;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  padding: 10px 1px 9px;
  min-height: 44px;
}
.coffee-groups button:hover { color: #542f1b; }
.coffee-groups button[aria-pressed="true"] { color: #482919; border-bottom-color: #935830; }
.coffee-options { display: flex; gap: 8px 12px; flex-wrap: wrap; align-items: center; margin-top: 17px; }
.coffee-select {
  display: inline-flex; gap: 7px; align-items: center; min-height: 42px;
  border: 1px solid #ded6cd; padding: 0 11px; border-radius: 9px;
  background-color: #fff; color: #685c54; font-size: 12px;
}
.coffee-select[hidden] { display: none; }
.coffee-select select {
  flex: 0 1 auto; width: auto; min-width: 0; max-width: 100%; min-height: 40px; padding: 0 3px;
  background: transparent; border: 0; color: #35291f; font: 500 13px/1.3 var(--font,sans-serif);
}
.coffee-select:focus-within { outline: 2px solid #89532d; outline-offset: 2px; }
.coffee-select select:focus-visible { outline: none; }
.coffee-shelf-toolbar .search-field { width: 100%; min-width: 0; }
.coffee-shelf-toolbar .search-field input { min-height: 43px; padding-inline-start: 38px; }
.collection-toolbar + .coffee-browse { padding: 9px 0 19px; border-bottom: 1px solid #e7e1d9; }
@media (max-width: 860px) {
  .coffee-shelf-toolbar { grid-template-columns: minmax(0,1fr); gap: 14px; }
}
@media (max-width: 600px) {
  .coffee-groups { gap: 3px 14px; }
  .coffee-options { margin-top: 12px; gap: 8px; }
  .coffee-select { gap: 4px; padding: 0 8px; }
}


/* Keep shopping controls reachable when type scales up or the viewport is narrow. */
.catalog-grid .product-info { min-width: 0; }
.catalog-grid .product-title { overflow-wrap: anywhere; }
.product-card .product-brand, .product-card .tag, .product-card .price small { color: #716254; }
.product-card .product-detail { color: #6f6257; }
.collection-meta { flex-wrap: wrap; }
.collection-meta .row { max-width: 100%; flex-wrap: wrap; }
.coffee-select { max-width: 100%; }
@media (max-width: 760px), (pointer: coarse) {
  .product-card .quick-plus { width: 44px; height: 44px; }
  .product-card .locked, .product-card .add-small,
  .showroom-shelf .showroom-filter, .collection-meta button, .collection-meta select { min-height: 44px; }
  .product-card .locked, .product-card .add-small { font-size: 12px; }
  .collection-toolbar .search-field input, .coffee-shelf-toolbar .search-field input,
  .coffee-select select, .collection-meta select { font-size: 16px; }
  .collection-toolbar .category-tab { display: inline-flex; min-height: 44px; align-items: center; }
}
@media (max-width: 760px) {
  .collection-toolbar .category-tabs {
    flex-wrap: wrap;
    overflow: visible;
    padding-bottom: 0;
  }
  .category-tabs .category-tab { font-size: 12px; }
  .showroom-shelf .accessory-tabs { flex-wrap: wrap; overflow: visible; }
  .product-card .locked, .product-card .add-small { color: #6b503a; }
  .product-card .product-brand, .product-card .tag { font-size: 11px; }
  .product-card .product-detail { font-size: 12px; }
  .collection-meta { font-size: 12px; }
  .collection-meta .row { gap: 10px; }
  .collection-meta select { max-width: 100%; }
  .coffee-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 135px), 1fr));
    gap: 8px;
  }
  .coffee-select {
    display: grid;
    grid-template-areas: "field";
    align-items: stretch;
    min-width: 0;
    padding: 0;
  }
  .coffee-select > span {
    grid-area: field;
    align-self: start;
    margin: 5px 10px 0;
    font-size: 11px;
    line-height: 1.1;
    pointer-events: none;
  }
  .coffee-select > select {
    grid-area: field;
    width: 100%;
    min-height: 50px;
    padding: 17px 6px 2px;
  }
  .catalog-grid .gaia-tasting--compact { font-size: 13px; }
}
@media (max-width: 420px) {
  /* Give cup profiles a full line instead of squeezing them beside the pouch. */
  .catalog-grid.product-grid:has(.coffee-card) > .coffee-card {
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    grid-template-rows: auto auto auto auto;
    align-items: start;
    column-gap: 14px;
  }
  .catalog-grid .coffee-card .product-info { display: contents; }
  .catalog-grid.product-grid .coffee-card .product-media {
    grid-area: 1/1/3/2;
    align-self: stretch;
    aspect-ratio: 1.08;
    min-height: 0;
  }
  .catalog-grid .coffee-card .product-brand { grid-area: 1/2; align-self: end; }
  .catalog-grid .coffee-card .product-title { grid-area: 2/2; align-self: start; }
  .catalog-grid .coffee-card .gaia-tasting { grid-area: 3/1/4/-1; margin: 12px 0 0; }
  .catalog-grid .coffee-card .price-row { grid-area: 4/1/5/-1; border: 0; padding-top: 0; }
}
