/* Material home discovery: server-rendered first, with optional scroller enhancement. */

.home-hero--discovery {
  min-block-size: 430px;
  align-content: center;
  isolation: isolate;
}

.home-hero--discovery .home-hero__content {
  max-width: 760px;
  gap: 16px;
}

.home-hero--discovery .home-hero__eyebrow {
  color: currentColor;
  opacity: 0.78;
}

.home-hero--discovery .hero-search-card {
  max-width: 680px;
  margin-top: 8px;
}

.home-discovery-section {
  scroll-margin-top: 96px;
}

.home-discovery-section--compact {
  margin-top: 24px;
}

.home-discovery-section .section-heading {
  align-items: baseline;
}

.home-discovery-section__all-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 4px;
  color: var(--storefront-link-color, #2057d4);
  font-weight: 800;
  text-decoration: none;
}

.home-discovery-section__all-link:hover {
  text-decoration: underline;
}

.home-discovery-empty {
  display: grid;
  justify-items: start;
  gap: 16px;
}

.home-department-scroller .collection-scroller__viewport {
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.home-department-grid {
  display: grid;
  grid-auto-columns: minmax(220px, 1fr);
  grid-auto-flow: column;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 16px;
  min-inline-size: 100%;
}

.home-department-grid .category-card {
  display: grid;
  grid-template-columns: minmax(104px, 36%) minmax(0, 1fr);
  min-inline-size: 0;
  min-block-size: 164px;
  scroll-snap-align: start;
}

.home-department-grid .category-card__media {
  aspect-ratio: auto;
  min-block-size: 100%;
}

.home-department-grid .category-card__media img,
.home-department-grid .category-card__placeholder {
  block-size: 100%;
}

.category-card__description {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: #526173;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.home-popular-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.home-popular-categories__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 9px 14px;
  border: 1px solid #dbe5f2;
  border-radius: 999px;
  background: #fff;
  color: #17355f;
  font-weight: 750;
  line-height: 1.25;
  text-decoration: none;
}

.home-popular-categories__link:hover {
  border-color: #9eb4cf;
  background: #f8fbff;
  text-decoration: none;
}

.home-popular-categories__link small {
  color: #637286;
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
}

.home-intent-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.home-intent-card {
  min-inline-size: 0;
  overflow: hidden;
  border: 1px solid #dfe7f0;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 35, 67, 0.055);
}

.home-intent-card__link {
  display: grid;
  grid-template-rows: auto minmax(96px, 1fr);
  block-size: 100%;
  color: #17355f;
  text-decoration: none;
}

.home-intent-card__link:hover {
  color: #17355f;
  text-decoration: none;
}

.home-intent-card__media {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, #e8eff8, #f7faff);
}

.home-intent-card__media img,
.home-intent-card__placeholder {
  display: block;
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
}

.home-intent-card__placeholder {
  background: radial-gradient(circle at 72% 22%, rgba(32, 87, 212, 0.18), transparent 32%), linear-gradient(135deg, #e8eff8, #f7faff);
}

.home-intent-card__content {
  display: grid;
  align-content: start;
  gap: 8px;
  min-block-size: 126px;
  padding: 14px;
}

.home-intent-card__content strong {
  overflow-wrap: anywhere;
}

.home-intent-card__content > span {
  display: -webkit-box;
  overflow: hidden;
  color: #526173;
  font-size: 0.9rem;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.home-intent-card__content small {
  color: #637286;
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
}

.home-brand-marquee {
  overflow: hidden;
  padding: 22px 0 0;
  border: 1px solid #dbe5f2;
  border-radius: 18px;
  background: linear-gradient(135deg, #fff, #f4f8fd);
}

.home-brand-marquee__heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 0 24px 18px;
}

.home-brand-marquee__heading h2,
.home-brand-marquee__count {
  margin: 0;
}

.home-brand-marquee__heading h2 {
  color: #0f2a52;
}

.home-brand-marquee__count {
  display: inline-block;
  margin-top: 6px;
  color: #637286;
  font-size: 0.92rem;
  font-weight: 750;
}

a.home-brand-marquee__count {
  color: var(--storefront-link-color, #2057d4);
  text-decoration: none;
}

a.home-brand-marquee__count:hover {
  text-decoration: underline;
}

.home-brand-marquee__viewport {
  overflow: hidden;
  border-top: 1px solid #e4eaf2;
}

.home-brand-marquee__track {
  display: flex;
  width: max-content;
  animation: home-brand-marquee-scroll 42s linear infinite;
}

.home-brand-marquee__list {
  display: flex;
  flex: 0 0 auto;
  gap: 12px;
  margin: 0;
  padding: 18px 12px 18px 24px;
  list-style: none;
}

.home-brand-marquee__wordmark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-inline-size: 148px;
  min-block-size: 64px;
  padding: 12px 20px;
  border: 1px solid #d7e2ef;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.82);
  color: #18355d;
  font-family: "Arial Black", Inter, sans-serif;
  font-size: clamp(0.94rem, 1.6vw, 1.14rem);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

a.home-brand-marquee__wordmark:hover {
  border-color: #93afd0;
  background: #fff;
  color: #0f2a52;
  text-decoration: none;
  transform: translateY(-2px);
}

a.home-brand-marquee__wordmark:focus-visible,
a.home-brand-marquee__count:focus-visible {
  outline: 3px solid var(--storefront-action-focus, #8a6112);
  outline-offset: 3px;
}

.home-brand-marquee:focus-within .home-brand-marquee__track,
.home-brand-marquee:hover .home-brand-marquee__track {
  animation-play-state: paused;
}

@keyframes home-brand-marquee-scroll {
  to {
    transform: translateX(-50%);
  }
}

:is(.category-card, .home-intent-card, .home-popular-categories__link):focus-within {
  outline: 3px solid var(--storefront-action-focus, #8a6112);
  outline-offset: 3px;
}

@media (max-width: 1080px) {
  .home-intent-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .home-hero--discovery {
    min-block-size: 0;
  }

  .home-department-grid {
    grid-auto-columns: minmax(250px, 82vw);
    grid-template-rows: none;
  }

  .home-department-grid .category-card {
    grid-template-columns: minmax(88px, 33%) minmax(0, 1fr);
  }

  .home-intent-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .home-intent-card__content {
    min-block-size: 118px;
    padding: 12px;
  }

  .home-brand-marquee__heading {
    padding-inline: 18px;
  }

  .home-brand-marquee__list {
    padding-inline: 18px 10px;
  }

  .home-brand-marquee__wordmark {
    min-inline-size: 134px;
  }
}

@media (max-width: 420px) {
  .home-intent-grid {
    grid-template-columns: 1fr;
  }

  .home-intent-card__link {
    grid-template-columns: 38% minmax(0, 1fr);
    grid-template-rows: none;
  }

  .home-intent-card__media {
    aspect-ratio: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-department-scroller .collection-scroller__viewport {
    scroll-behavior: auto;
  }

  .home-brand-marquee__viewport {
    overflow-x: auto;
    scrollbar-width: thin;
  }

  .home-brand-marquee__track {
    animation: none;
  }

  .home-brand-marquee__list[aria-hidden='true'] {
    display: none;
  }
}
