/* Homepage-only layout: let the catalog cards carry the visual story. */
body.page-home .market-home-hero {
  min-height: 0;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: start;
  gap: clamp(16px, 2.4vw, 24px);
  padding: clamp(24px, 4vw, 42px) clamp(18px, 4vw, 42px) 22px;
}

body.page-home .market-home-hero-copy {
  grid-column: 1;
  grid-row: 1;
  gap: 11px;
  max-width: 880px;
}

body.page-home .market-home-hero h1 {
  max-width: 15ch;
  font-size: clamp(42px, 5.4vw, 68px);
  line-height: 0.96;
}

body.page-home .market-home-hero p {
  max-width: 700px;
  font-size: clamp(15px, 1.55vw, 19px);
  line-height: 1.45;
}

body.page-home .market-home-hero-actions {
  gap: 10px;
  margin-top: 3px;
}

body.page-home .market-home-hero-actions .button-link {
  min-height: 50px;
  padding-inline: 22px;
}

body.page-home .market-home-hero-art,
body.page-home .market-home-capabilities,
body.page-home .market-home-guest-note {
  display: none !important;
}

body.page-home .market-home-hero-featured {
  grid-column: 1;
  grid-row: 2;
  z-index: 2;
  width: 100%;
  min-width: 0;
}

body.page-home .market-home-hero-featured .featured-cards-shell {
  width: 100%;
  margin: 0 !important;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.page-home .market-home-hero-featured .section-head {
  align-items: baseline;
  margin-bottom: 10px;
}

body.page-home .market-home-hero-featured .section-title {
  margin: 0;
  font-family: "Fraunces", serif;
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.05;
}

body.page-home .market-home-hero-featured .section-head .muted {
  display: none;
}

body.page-home .market-home-hero-featured .featured-cards-viewport {
  overflow: hidden;
}

body.page-home .market-home-hero-featured .featured-cards-track {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(8px, 1.3vw, 14px);
  width: 100%;
  animation: none;
  transform: none;
}

body.page-home .market-home-hero-featured .featured-cards-track > .featured-card:nth-child(n + 4) {
  display: none;
}

body.page-home .market-home-hero-featured .featured-card {
  display: grid;
  grid-template-columns: minmax(88px, 0.78fr) minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  width: auto;
  min-width: 0;
  min-height: 142px;
  padding: 8px;
  border-radius: 15px;
}

body.page-home .market-home-hero-featured .featured-card img {
  width: 100%;
  height: 126px;
  margin: 0;
  object-fit: contain;
}

body.page-home .market-home-hero-featured .featured-card-copy {
  min-width: 0;
  gap: 5px;
}

body.page-home .market-home-hero-featured .featured-card-copy small {
  display: block;
  font-size: 9px;
}

body.page-home .market-home-hero-featured .featured-card-copy strong {
  font-size: clamp(11px, 1.15vw, 14px);
  line-height: 1.2;
  -webkit-line-clamp: 2;
}

body.page-home .market-home-hero-featured .featured-card-footer {
  display: none;
}

@media (max-width: 680px) {
  body.page-home .market-home-hero {
    grid-template-rows: auto auto;
    gap: 17px;
    padding: 20px 13px 14px;
    border-radius: 22px;
  }

  body.page-home .market-home-hero-copy {
    gap: 9px;
  }

  body.page-home .market-home-hero h1 {
    max-width: 13ch;
    font-size: clamp(34px, 9vw, 42px);
    line-height: 0.98;
  }

  body.page-home .market-home-hero p {
    max-width: 44ch;
    font-size: 14px;
    line-height: 1.4;
  }

  body.page-home .market-home-hero-actions {
    display: grid;
    grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
    gap: 7px;
    width: 100%;
    margin-top: 2px;
  }

  body.page-home .market-home-hero-actions .button-link {
    justify-content: center;
    min-width: 0;
    min-height: 46px;
    gap: 5px;
    padding-inline: 6px;
    font-size: clamp(10px, 3vw, 13px);
    white-space: nowrap;
  }

  body.page-home .market-home-hero-actions .nav-icon {
    width: 15px;
    height: 15px;
    flex-basis: 15px;
  }

  body.page-home .market-home-hero-featured .section-head {
    margin-bottom: 8px;
  }

  body.page-home .market-home-hero-featured .section-title {
    font-size: 22px;
  }

  body.page-home .market-home-hero-featured .featured-cards-track {
    gap: 7px;
  }

  body.page-home .market-home-hero-featured .featured-card {
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
    gap: 0;
    min-height: 0;
    padding: 5px;
    border-radius: 12px;
  }

  body.page-home .market-home-hero-featured .featured-card img {
    height: clamp(104px, 29vw, 132px);
    margin-top: 1px;
    border-radius: 8px;
  }

  body.page-home .market-home-hero-featured .featured-card-copy {
    gap: 3px;
    padding: 7px 4px 3px;
  }

  body.page-home .market-home-hero-featured .featured-card-copy small {
    display: none;
  }

  body.page-home .market-home-hero-featured .featured-card-copy strong {
    font-size: clamp(9px, 2.8vw, 11px);
    line-height: 1.15;
  }
}

@media (max-width: 360px) {
  body.page-home .market-home-hero {
    padding-inline: 10px;
  }

  body.page-home .market-home-hero-actions .button-link {
    font-size: 10px;
  }
}
/* Give the two hero actions distinct visual roles instead of twin text boxes. */
body.page-home .market-home-hero-actions {
  align-items: center;
  gap: clamp(8px, 1.5vw, 18px);
}

body.page-home .market-home-hero-actions .market-home-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 7px 17px 7px 9px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.1;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

body.page-home .market-home-hero-actions .market-home-action--explore {
  border: 1px solid rgba(255, 225, 148, 0.92);
  background: linear-gradient(135deg, #ffe890 0%, #f6c44f 100%);
  color: #111827;
  box-shadow: 0 9px 24px rgba(238, 179, 52, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

body.page-home .market-home-hero-actions .market-home-action--explore:hover,
body.page-home .market-home-hero-actions .market-home-action--explore:focus-visible {
  border-color: #fff1b8;
  background: linear-gradient(135deg, #fff0b5 0%, #ffd15e 100%);
  color: #111827;
  box-shadow: 0 12px 28px rgba(238, 179, 52, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.65);
  transform: translateY(-2px);
}

body.page-home .market-home-hero-actions .button-link.flat.market-home-action--account {
  border: 1px solid transparent;
  background: transparent;
  color: #e6edf9;
  box-shadow: none;
  padding-inline: 5px;
}

body.page-home .market-home-hero-actions .button-link.flat.market-home-action--account:hover,
body.page-home .market-home-hero-actions .button-link.flat.market-home-action--account:focus-visible {
  border-color: transparent;
  background: rgba(69, 191, 211, 0.08);
  color: #ffffff;
  box-shadow: none;
  transform: translateY(-1px);
}

body.page-home .market-home-hero-actions .market-home-action-icon {
  display: grid;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 13px;
}

body.page-home .market-home-hero-actions .market-home-action-icon--explore {
  background: rgba(22, 35, 58, 0.13);
  color: #17243c;
}

body.page-home .market-home-hero-actions .market-home-action-icon--account {
  border: 1px solid rgba(89, 194, 214, 0.25);
  background: rgba(66, 174, 202, 0.1);
  color: #62c7d9;
}

body.page-home .market-home-hero-actions .market-home-action-icon svg {
  display: block;
  width: 19px;
  height: 19px;
}

body.page-home .market-home-hero-actions .market-home-action-arrow {
  display: inline-flex;
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  margin-left: 2px;
  transition: transform 160ms ease;
}

body.page-home .market-home-hero-actions .market-home-action-arrow svg {
  width: 100%;
  height: 100%;
}

body.page-home .market-home-hero-actions .market-home-action:hover .market-home-action-arrow,
body.page-home .market-home-hero-actions .market-home-action:focus-visible .market-home-action-arrow {
  transform: translateX(2px);
}

body.page-home .market-home-hero-actions .market-home-action--account .market-home-action-arrow {
  color: #63c7d8;
}

body.page-home .market-home-hero-actions .market-home-action:focus-visible {
  outline: 2px solid #8de5f1;
  outline-offset: 4px;
}

@media (max-width: 680px) {
  body.page-home .market-home-hero-actions {
    display: grid;
    grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
    justify-content: stretch;
    gap: 6px;
  }

  body.page-home .market-home-hero-actions .market-home-action {
    width: 100%;
    min-width: 0;
    min-height: 48px;
    gap: 5px;
    padding: 5px 7px;
    font-size: clamp(10px, 2.75vw, 12px);
    white-space: nowrap;
  }

  body.page-home .market-home-hero-actions .button-link.flat.market-home-action--account {
    padding-inline: 5px;
  }

  body.page-home .market-home-hero-actions .market-home-action-icon {
    flex-basis: 24px;
    width: 24px;
    height: 24px;
    border-radius: 8px;
  }

  body.page-home .market-home-hero-actions .market-home-action-icon svg {
    width: 14px;
    height: 14px;
  }

  body.page-home .market-home-hero-actions .market-home-action-arrow {
    flex-basis: 12px;
    width: 12px;
    height: 12px;
    margin-left: 0;
  }
}

@media (max-width: 360px) {
  body.page-home .market-home-hero-actions {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 4px;
  }

  body.page-home .market-home-hero-actions .market-home-action {
    gap: 4px;
    padding-inline: 4px;
    font-size: 9px;
  }

  body.page-home .market-home-hero-actions .button-link.flat.market-home-action--account {
    padding-inline: 4px;
    font-size: 11px;
  }

  body.page-home .market-home-hero-actions .market-home-action--explore {
    font-size: 11px;
  }

  body.page-home .market-home-hero-actions .market-home-action--explore .market-home-action-icon,
  body.page-home .market-home-hero-actions .market-home-action--explore .market-home-action-arrow {
    display: none;
  }

  body.page-home .market-home-hero-actions .market-home-action-icon--account {
    display: none;
  }

  body.page-home .market-home-hero-actions .market-home-action-icon {
    flex-basis: 21px;
    width: 21px;
    height: 21px;
    border-radius: 7px;
  }

  body.page-home .market-home-hero-actions .market-home-action-icon svg {
    width: 13px;
    height: 13px;
  }

  body.page-home .market-home-hero-actions .market-home-action-arrow {
    flex-basis: 11px;
    width: 11px;
    height: 11px;
  }

  body.page-home .market-home-hero-actions .market-home-action--account .market-home-action-arrow {
    display: none;
  }
}

/* Desktop featured-card carousel; the duplicated group makes the loop seamless. */
body.page-home .market-home-hero-featured .featured-cards-viewport {
  overflow: hidden;
}

body.page-home .market-home-hero-featured .featured-cards-track {
  display: flex;
  gap: 0;
  width: max-content;
  animation: home-featured-card-marquee 96s linear infinite;
  will-change: transform;
}

body.page-home .market-home-hero-featured .featured-cards-group {
  display: flex;
  flex: 0 0 auto;
  align-items: stretch;
  gap: 10px;
  padding-right: 10px;
}

body.page-home .market-home-hero-featured .featured-card {
  flex: 0 0 clamp(96px, calc((100vw - 180px) / 6), 245px);
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  gap: 3px;
  width: clamp(96px, calc((100vw - 180px) / 6), 245px);
  min-height: 0;
  padding: 7px;
}

@supports (width: 1cqw) {
  body.page-home .market-home-hero-featured .featured-cards-viewport {
    container-type: inline-size;
  }

  body.page-home .market-home-hero-featured .featured-card {
    flex-basis: calc((100cqw - 60px) / 6);
    width: calc((100cqw - 60px) / 6);
  }
}

body.page-home .market-home-hero-featured .featured-card img {
  height: clamp(100px, 11.5vw, 150px);
  border-radius: 9px;
}

body.page-home .market-home-hero-featured .featured-card-copy {
  gap: 3px;
  padding: 5px 3px 2px;
}

body.page-home .market-home-hero-featured .featured-cards-track:hover,
body.page-home .market-home-hero-featured .featured-cards-track:focus-within {
  animation-play-state: paused;
}

@keyframes home-featured-card-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (max-width: 680px) {
  body.page-home .market-home-hero-featured .featured-cards-track {
    animation-duration: 60s;
  }

  body.page-home .market-home-hero-featured .featured-cards-group {
    gap: 7px;
    padding-right: 7px;
  }

  body.page-home .market-home-hero-featured .featured-card {
    flex-basis: clamp(74px, calc((100vw - 78px) / 3), 145px);
    width: clamp(74px, calc((100vw - 78px) / 3), 145px);
    padding: 5px;
  }

  body.page-home .market-home-hero-featured .featured-card img {
    height: clamp(104px, 29vw, 132px);
  }

  @supports (width: 1cqw) {
    body.page-home .market-home-hero-featured .featured-card {
      flex-basis: calc((100cqw - 21px) / 3);
      width: calc((100cqw - 21px) / 3);
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  body.page-home .market-home-hero-featured .featured-cards-viewport {
    overflow-x: auto;
    scrollbar-width: thin;
  }

  body.page-home .market-home-hero-featured .featured-cards-track {
    animation: none;
    transform: none;
    will-change: auto;
  }
}
