body[data-page=products] {
  background: #f3f2f0;
}

body[data-page=products] .dr-product-banner > picture {
  position: absolute;
  inset: 0;
  z-index: -2;
}

body[data-page=products] .dr-product-banner picture > img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: none;
  object-fit: cover;
  mix-blend-mode: normal;
}

body[data-page=products] #product-results {
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 42px 24px;
}

body[data-page=products] .dr-product-card {
  --product-highlight: 0;
  position: relative;
  padding: 26px 22px 30px;
  border: 1px solid rgb(204 117 51 / calc(var(--product-highlight) * .52));
  border-radius: 28px;
  background: rgb(255 255 255 / var(--product-highlight));
  box-shadow: 0 16px 34px rgb(80 53 30 / calc(var(--product-highlight) * .16));
  text-align: center;
  transform: translateY(calc(var(--product-highlight) * -7px));
  transition: background-color .3s, border-color .3s, box-shadow .35s,
    transform .4s cubic-bezier(.22, 1, .36, 1);
}

body[data-page=products] .dr-product-card:focus-visible {
  --product-highlight: 1;
  outline: 2px solid #ae601f;
  outline-offset: 3px;
}

@media (hover: hover) {
  body[data-page=products] .dr-product-card:hover {
    --product-highlight: 1;
  }
}

body[data-page=products] #product-results .dr-product-image {
  height: clamp(170px,17vw,270px);
}

body[data-page=products] .dr-product-image::before {
  content: '';
  position: absolute;
  inset: 4% 0;
  border-radius: 20px;
  background: radial-gradient(ellipse at 50% 58%, #f0c6a2, #f9eee4 58%, #fcf8f4 82%);
  opacity: var(--product-highlight);
  pointer-events: none;
  transition: opacity .35s;
}

body[data-page=products] #product-results .dr-product-card img {
  position: relative;
  width: 89%;
  height: 89%;
  mix-blend-mode: normal;
  transform: scale(calc(1 + var(--product-highlight) * .10));
  transition: transform .4s cubic-bezier(.22, 1, .36, 1);
}

body[data-page=products] .dr-product-card .dr-product-name {
  justify-content: center;
  color: var(--dr-ink);
  color: color-mix(in srgb, #aa4e18 calc(var(--product-highlight) * 100%), var(--dr-ink));
  overflow-wrap: anywhere;
  transition: color .3s;
}

body[data-page=products] .dr-scroll-down {
  color: #293029;
  background: transparent;
  border-color: #29302970;
  transition: background .35s,border-color .35s,color .35s;
}

body[data-page=products] .dr-scroll-down svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .35s;
}

body[data-page=products] .dr-scroll-down:hover,
body[data-page=products] .dr-scroll-down:focus-visible {
  background: #fff;
  border-color: #fff;
  color: #263b46;
}

body[data-page=products] .dr-scroll-down:hover svg,
body[data-page=products] .dr-scroll-down:focus-visible svg {
  transform: translateY(2px);
}

@media(prefers-reduced-motion:reduce) {
  body[data-page=products] .dr-product-card,
  body[data-page=products] .dr-product-image::before,
  body[data-page=products] .dr-product-card .dr-product-name,
  body[data-page=products] #product-results .dr-product-card img,
  body[data-page=products] .dr-scroll-down,
  body[data-page=products] .dr-scroll-down svg {
    transition: none;
  }
  body[data-page=products] .dr-product-card,
  body[data-page=products] #product-results .dr-product-card img {
    transform: none;
  }
}

/* Small screens */

@media (max-width: 900px) {
  /* Product listing */
  body[data-page=products] .dr-product-banner {
    align-items: stretch;
    aspect-ratio: auto;
    min-height: 0;
    margin-bottom: 22px;
    padding: var(--dr-mobile-nav) var(--dr-gutter) 22px;
  }

  body[data-page=products] .dr-product-banner > div {
    width: min(100%, 440px);
  }

  body[data-page=products] .dr-product-banner::after {
    background: linear-gradient(90deg, #f1f0ebe8, #f1f0eb97 65%, #f1f0eb1a);
  }

  body[data-page=products] .dr-product-banner h1 {
    margin: 0 0 12px;
    font-size: clamp(26px, 5vw, 42px);
    line-height: 1.25;
    text-wrap: balance;
  }

  body[data-page=products] .dr-product-banner p {
    color: #484e42;
    font-size: 14px;
    line-height: 1.65;
    margin: 0;
  }

  .dr-product-banner .dr-scroll-down {
    position: relative;
    inset: auto;
    margin-top: 16px;
  }

  #product-catalog {
    scroll-margin-top: var(--dr-mobile-nav);
    margin-bottom: var(--dr-mobile-block-gap);
    padding-block: 12px;
  }

  body[data-page=products] #product-results {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--dr-mobile-card-gap) 12px;
    padding-bottom: 34px;
  }

  body[data-page=products] .dr-product-card {
    padding: 10px 8px 14px;
    border-radius: 15px;
    background-color: #fdfbf8;
    border-color: color-mix(in srgb, #cb793c calc(var(--product-highlight) * 100%), #e4ded5);
  }

  body[data-page=products] .dr-product-card:active {
    --product-highlight: 1;
    transform: none;
  }

  body[data-page=products] #product-results .dr-product-image {
    height: auto;
    aspect-ratio: 1.3;
    margin-bottom: 8px;
  }

  body[data-page=products] .dr-product-name h2 {
    font-size: clamp(13px, 3.5vw, 16px);
  }

  .dr-products-more-wrap {
    padding-bottom: var(--dr-mobile-section-gap);
  }
}

@media (max-width: 767px) {
  body[data-page=products] .dr-product-banner {
    height: min(192vw, 100vh);
    height: min(192vw, 100svh);
    min-height: 390px;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 0;
    padding: 0 var(--dr-gutter) clamp(30px, 12.4vw, 56px);
    text-align: center;
  }

  body[data-page=products] .dr-product-banner > picture {
    top: -8.2%;
    bottom: auto;
    height: 119%;
  }

  body[data-page=products] .dr-product-banner picture > img {
    object-position: 44.7% center;
  }

  body[data-page=products] .dr-product-banner::after {
    background: linear-gradient(0deg, #eee9e4d9, #eee9e490 22%, transparent 45%);
  }

  body[data-page=products] .dr-product-banner > div {
    width: 100%;
  }

  body[data-page=products] .dr-product-banner h1 {
    margin: 0 0 14px;
    font-size: clamp(22px, 6.4vw, 32px);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -.025em;
  }

  body[data-page=products] .dr-product-banner p {
    max-width: 17em;
    margin-inline: auto;
    color: #343633;
    font-size: clamp(14px, 3.7vw, 17px);
    line-height: 1.35;
  }

  .dr-product-banner .dr-scroll-down {
    position: static;
    width: 48px;
    height: 48px;
    margin: clamp(22px, 8vw, 36px) auto 0;
  }

  body[data-page=products] #product-catalog {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 8px;
    margin: 0;
    padding: clamp(32px, 11.5vw, 54px) 0 clamp(38px, 14.4vw, 64px);
  }

  #product-catalog .dr-search-pill {
    grid-column: 1 / -1;
    order: -1;
    width: 100%;
    max-width: none;
    min-height: 40px;
    margin: 0 0 2px;
    padding: 6px 14px;
  }

  #product-catalog .dr-search {
    max-width: none;
  }

  #product-catalog button {
    min-width: 0;
    min-height: 38px;
    padding: 6px 2px;
    border-radius: 9px;
    font-size: clamp(12px, 3.3vw, 15px);
    line-height: 1.3;
    white-space: normal;
  }

  body[data-page=products] #product-results {
    grid-template-columns: minmax(0, 1fr);
    row-gap: clamp(20px, 7vw, 30px);
    padding-bottom: clamp(36px, 14.3vw, 64px);
  }

  body[data-page=products] .dr-product-card {
    padding: clamp(10px, 3.2vw, 16px) 4% clamp(17px, 5vw, 24px);
    border: 0;
    border-radius: clamp(15px, 4vw, 22px);
    background-color: #fcfbf8;
  }

  body[data-page=products] #product-results .dr-product-image {
    aspect-ratio: 1.47;
    margin-bottom: 4px;
  }

  body[data-page=products] #product-results .dr-product-card img {
    width: 92%;
    height: 100%;
    mix-blend-mode: multiply;
  }

  body[data-page=products] .dr-product-name h2 {
    font-size: clamp(18px, 5vw, 23px);
    line-height: 1.4;
  }

  body[data-page=products] .dr-product-card small {
    margin-top: 2px;
    font-size: clamp(12px, 3.2vw, 15px);
    line-height: 1.5;
  }

  .dr-products-more-wrap {
    padding-bottom: clamp(36px, 11vw, 56px);
  }

  .dr-products-more-wrap .cta-label,
  .dr-products-more-wrap .product-more > b {
    display: grid;
    place-items: center;
    height: 38px;
  }

  .dr-products-more-wrap .cta-label {
    padding: 0 24px;
    font-size: 14px;
  }

  .dr-products-more-wrap .product-more > b {
    width: 38px;
  }
}

@media (max-width: 767px) and (hover: none) {
  #product-catalog button:hover {
    transform: none;
  }

  #product-catalog button[aria-pressed=false]:hover {
    border-color: var(--dr-line);
    background: transparent;
    color: inherit;
  }
}
