/* Home page additions: discovery, the latest products and a live drop timer. */
.home .drop-countdown strong {
  font-size: clamp(13px, 1.85vw, 28px);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.home .drop-countdown time {
  display: block;
  font-family: var(--display);
}
.home .discovery {
  order: 4;
  border-top: 1px solid #dededb;
  padding: 38px 0 44px;
  margin-bottom: 20px;
}
.home .discovery-heading h2 {
  font: 400 36px/1.2 var(--display);
  margin: 0;
}
.home .discovery-heading p {
  font-size: 14px;
  color: #555;
  margin: 12px 0 0;
}
.home .discovery-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  margin: 30px 0 32px;
}
.home .discovery-tabs {
  display: flex;
  gap: 28px;
}
.home .discovery-tabs button {
  padding: 14px 0;
  border-bottom: 2px solid transparent;
  font-size: 14px;
  color: #686868;
  transition:
    color 0.2s,
    border-color 0.2s;
}
.home .discovery-tabs button:hover,
.home .discovery-tabs button[aria-selected="true"] {
  color: #000;
  border-bottom-color: #000;
}
.home .discovery .discovery-search {
  position: relative;
  left: auto;
  width: 260px;
  height: 42px;
  max-width: none;
  margin: 0;
}
.home .discovery-search input {
  font-size: 13px;
  padding: 9px 38px 9px 12px;
}
.home .discovery-search .icon {
  top: 12px;
  right: 12px;
  width: 18px;
  height: 18px;
}
.home .discovery-panel {
  min-height: 272px;
}
.home .discovery .gem-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 30px;
  width: 100%;
  max-width: none;
  margin: 0;
}
.home .discovery .gem-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: static;
  border: 0;
  padding: 0;
  margin: 0;
  min-height: 0;
}
.home .discovery .gem-card img {
  position: static;
  width: 145px;
  height: 145px;
  margin: 0;
  object-fit: cover;
  border-radius: 50%;
}
.home .discovery .gem-card h3 {
  position: static;
  font: 400 23px/1.2 var(--display);
  margin: 16px 0 7px;
}
.home .discovery .gem-card p {
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: 0;
  color: #555;
  max-width: 240px;
  margin: 0;
}
.home .discovery-more {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  font-size: 12px;
  margin-top: 28px;
}
.home .discovery-more .icon {
  width: 18px;
  height: 18px;
}
.home .intention-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 38px;
}
.home .intention-grid a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid #d9d9d5;
  padding: 18px 0;
  font-size: 16px;
  line-height: 1.45;
}
.home .intention-grid .icon {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  transition: transform 0.2s;
}
.home .intention-grid a:hover .icon {
  transform: translateX(4px);
}
.home .home-carousel {
  position: relative;
  left: 0;
}
.home .carousel-frame {
  position: relative;
  max-width: 1100px;
  padding: 0 54px;
  margin: auto;
}
.home .home-carousel .carousel-track {
  display: grid;
  grid-template-columns: none;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 44px) / 3);
  column-gap: 22px;
  row-gap: 0;
  width: 100%;
  min-width: 0;
  max-width: none;
  margin: 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}
.home .carousel-track::-webkit-scrollbar {
  display: none;
}
.home .carousel-track .product-card {
  scroll-snap-align: start;
}
.home .carousel-arrow {
  position: absolute;
  top: calc(50% - 26px);
  transform: translateY(-50%);
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid #aaa;
  border-radius: 50%;
  background: #fff;
  color: #000;
  transition:
    color 0.2s,
    background 0.2s,
    opacity 0.2s;
}
.home .carousel-prev {
  left: 0;
}
.home .carousel-next {
  right: 0;
}
.home .carousel-arrow .icon {
  width: 20px;
  height: 20px;
}
.home .carousel-arrow:hover:not(:disabled) {
  color: #fff;
  background: #000;
}
.home .carousel-arrow:disabled {
  opacity: 0.28;
  cursor: default;
}
.home .home-carousel .product-card .photo {
  aspect-ratio: 2 / 3;
}
.home .home-carousel .product-card h3 {
  font: 400 14px/1.35 var(--body);
  margin: 9px 0 4px;
}
.home .home-carousel .product-card .price {
  font: 700 14px/1.35 var(--body);
  margin: 0;
}
@media (max-width: 760px) {
  .home .drop-countdown strong {
    font-size: clamp(11px, 3.45vw, 16px);
  }
  .home .discovery {
    order: 8;
    width: calc(100% - 46px);
    padding: 30px 0;
    margin: 32px auto 20px;
  }
  .home .discovery-heading h2 {
    font-size: 26px;
  }
  .home .discovery-heading p {
    font-size: 13px;
    line-height: 1.6;
  }
  .home .discovery-toolbar {
    flex-wrap: wrap;
    gap: 20px;
    margin: 18px 0 28px;
  }
  .home .discovery-tabs {
    width: 100%;
    gap: 22px;
  }
  .home .discovery-tabs button {
    font-size: 13px;
  }
  .home .discovery .discovery-search {
    width: 100%;
  }
  .home .discovery-panel {
    min-height: 0;
  }
  .home .discovery .gem-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px 18px;
  }
  .home .discovery .gem-card img {
    width: clamp(88px, 25vw, 110px);
    height: clamp(88px, 25vw, 110px);
  }
  .home .discovery .gem-card h3 {
    font-size: 19px;
    margin-top: 12px;
  }
  .home .discovery .gem-card p {
    font-size: 12px;
    line-height: 1.45;
  }
  .home .discovery-more {
    justify-content: flex-start;
    margin-top: 30px;
  }
  .home .intention-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 22px;
  }
  .home .intention-grid a {
    padding: 16px 0;
    font-size: 13px;
    gap: 8px;
  }
  .home .intention-grid .icon {
    flex-basis: 14px;
    width: 14px;
    height: 14px;
  }
  .home .home-carousel {
    width: calc(100% - 46px);
    margin: 26px auto 40px;
  }
  .home .home-carousel .section-heading {
    font: 700 22px/1.3 var(--body);
    margin-bottom: 22px;
  }
  .home .carousel-frame {
    padding: 0;
  }
  .home .home-carousel .carousel-track {
    grid-auto-columns: calc((100% - 16px) / 2);
    column-gap: 16px;
  }
  .home .carousel-arrow {
    width: 32px;
    height: 32px;
  }
  .home .carousel-prev {
    left: -12px;
  }
  .home .carousel-next {
    right: -12px;
  }
  .home .carousel-arrow .icon {
    width: 16px;
    height: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .home .discovery-tabs button,
  .home .intention-grid .icon,
  .home .carousel-arrow {
    transition: none;
  }
}
