/* Drinks landing page. Collection, product and cart styles live separately. */
/* Keep the green category bar flush with the full-width photo. */
html body .shop-nav:has(+ .shop-landing) {
  margin-block-end: 0;
  border-block-end: 0;
}
html body .shell.shop-landing {
  padding-top: 0;
}
html body .shell.shop-landing .hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: end;
  min-height: clamp(410px, 52vh, 600px);
  margin: 0 calc(-1 * var(--gutter));
  padding: clamp(32px, 5vw, 76px);
  background: #292821;
  color: #fbf8ef;
}
html body .shell.shop-landing .hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, rgb(20 19 15 / 82%), rgb(20 19 15 / 64%) 34%, rgb(20 19 15 / 12%) 70%);
}
html body .shell.shop-landing .hero h1 {
  max-width: 17ch;
  font-size: clamp(42px, 5.2vw, 84px);
  margin: 0 0 16px;
  color: inherit;
}
html body .shell.shop-landing .hero .intro {
  max-width: 42ch;
  margin: 0;
  color: inherit;
}
html body .shell.shop-landing .hero .media {
  position: absolute;
  z-index: -2;
  inset: 0;
  display: block;
  height: 100%;
  margin: 0;
  overflow: hidden;
}
html body .shell.shop-landing .hero .media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 52%;
}
html body .shop-landing .shop-browse-tools {
  margin-bottom: 24px;
}
html body .shop-landing .shop-browse-tools .shop-search {
  margin: 0;
  width: 100%;
  max-width: 35rem;
}
.shop-landing #home-search { scroll-margin-top: 110px; }
.shop-landing .shop-browse-all {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  white-space: nowrap;
  font-weight: 550;
  text-decoration: none;
}
.shop-landing .shop-departments {
  margin-top: clamp(28px, 3.5vw, 52px);
}
.shop-landing .shop-category-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px 20px;
  margin-bottom: 16px;
}
html body .shop-landing .shop-category-heading h2 {
  margin: 0;
  font-size: clamp(25px, 3vw, 42px);
}
html body .shop-landing #collections-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: start;
  gap: 16px;
  margin-bottom: 0;
}
html body .shop-landing #collections-grid > .range-shelf:not([hidden]) {
  display: block;
  grid-row: auto;
  margin: 0;
}
html body .shop-landing #collections-grid .range-shelf .shelf-art {
  aspect-ratio: auto;
  height: clamp(116px, 13vw, 208px);
}
html body .shop-landing #collections-grid .range-shelf .unit-content {
  display: block;
  padding-top: 12px !important;
  text-align: start;
}
html body .shop-landing #collections-grid .range-shelf h3 {
  font-size: clamp(17px, 1.85vw, 25px);
  text-wrap: pretty;
}
.shop-landing .shop-setup {
  position: relative;
  isolation: isolate;
  margin-top: clamp(44px, 6vw, 88px);
}
.shop-landing .shop-setup figure {
  height: clamp(360px, 38vw, 560px);
  margin: 0;
  overflow: hidden;
}
.shop-landing .shop-setup figure img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 10%;
}
.shop-landing .shop-setup-caption {
  position: absolute;
  inset: auto 0 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 30px;
  padding: clamp(24px, 4vw, 56px);
  background: linear-gradient(0deg, rgb(20 19 15 / 93%), rgb(20 19 15 / 70%) 56%, transparent);
  color: #fbf8ef;
}
html body .shop-landing .shop-setup-caption .button {
  --control-bg: #f4efe4;
  --control-fg: #272822;
  background: #f4efe4;
  color: #272822;
}
html body .shop-landing .shop-setup-caption .button:is(:hover,:focus-visible) {
  --control-bg: #e5dece;
  --control-fg: #272822;
  background: #e5dece;
  color: #272822;
}
html body .shop-landing .shop-setup-caption .button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}
html body .shop-landing .shop-setup-caption h2 {
  margin: 0 0 10px;
  font-size: clamp(30px, 3.1vw, 44px);
  color: inherit;
  scroll-margin-top: 110px;
}
.shop-landing .shop-setup-caption p { max-width: 62ch; margin: 0; }
html body .shop-landing .shop-ordering {
  margin-top: clamp(40px, 6vw, 84px);
}

@media (max-width: 760px) {
  html body .shell.shop-landing .hero {
    min-height: clamp(340px, 48svh, 400px);
    margin: 0 calc(-1 * var(--gutter)) !important;
    padding: 32px var(--gutter) !important;
  }
  html body .shell.shop-landing .hero::after {
    background: linear-gradient(0deg, rgb(20 19 15 / 89%), rgb(20 19 15 / 60%) 49%, rgb(20 19 15 / 12%) 85%);
  }
  html body .shell.shop-landing .hero h1 { font-size: clamp(37px, 9vw, 52px); }
  html body .shell.shop-landing .hero .media img { object-position: 63% 50%; }
  .shop-landing .shop-setup figure { height: auto; aspect-ratio: 4 / 3; }
  .shop-landing .shop-setup-caption {
    position: static;
    flex-wrap: wrap;
    align-items: flex-start;
    padding: 18px 0 0;
    background: none;
    color: inherit;
  }
  html body .shop-landing .shop-setup-caption .button {
    --control-bg: var(--bb-action);
    --control-fg: var(--bb-action-text);
    background: var(--bb-action);
    color: var(--bb-action-text);
  }
  html body .shop-landing .shop-setup-caption .button:is(:hover,:focus-visible) {
    --control-bg: var(--bb-action-hover);
    --control-fg: var(--bb-action-text);
    background: var(--bb-action-hover);
    color: var(--bb-action-text);
  }
  html body .shop-landing .shop-setup-caption .button:focus-visible { outline-color: var(--bb-focus); }
  .shop-landing .shop-category-heading { flex-wrap: wrap; }
  .shop-landing .shop-browse-all { font-size: .85rem; }
}

@media (min-width: 761px) and (max-width: 960px) {
  .shop-nav:has(+ .shop-landing) .shop-nav-categories { display: none; }
  html body .shop-nav:has(+ .shop-landing) .shop-category-control {
    position: relative;
    display: flex;
    align-items: center;
    flex: 1;
    min-height: 44px;
    color: var(--surface);
    font: 400 14px/1.4 Inter, sans-serif;
  }
  .shop-nav:has(+ .shop-landing) .shop-category-control > span {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .shop-nav:has(+ .shop-landing) .shop-category-control:focus-within {
    outline: 2px solid var(--surface);
    outline-offset: 2px;
  }
  html body .shop-nav:has(+ .shop-landing) .shop-category-select {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
  }
  .shop-nav:has(+ .shop-landing) .shop-category-select option {
    color: var(--ink);
    background: var(--surface);
  }
}

@media (max-width: 960px) {
  html body .shop-landing #collections-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 24px clamp(10px, 1.6vw, 16px);
  }
  html body .shop-landing #collections-grid .range-shelf { grid-column: span 2; }
  html body .shop-landing #collections-grid .range-shelf:nth-child(-n+2) { grid-column: span 3; }
  html body .shop-landing #collections-grid .range-shelf .shelf-art { height: clamp(82px, 22vw, 148px); }
  html body .shop-landing #collections-grid .range-shelf:nth-child(-n+2) .shelf-art { height: clamp(108px, 30vw, 200px); }
  html body .shop-landing #collections-grid .range-shelf .unit-content p { display: none; }
}
