.shop-home-page {
  --retail-ink: #122035;
  --retail-muted: #47566a;
  --retail-line: #dce3ea;
  --retail-section: clamp(1.65rem, 3.8vw, 3.6rem);
}

.shop-home-page :is(.gift-paths-heading, .discovery-featured-head, .occasion-heading, .section-head) h2 {
  color: var(--retail-ink);
  font-size: clamp(1.65rem, 3.3vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -.045em;
}

.shop-home-page .shop-featured { margin-top: clamp(.85rem, 2vw, 1.4rem); }
.shop-home-page .shop-featured-heading { margin-bottom: .45rem; gap: 0 1rem; }
.shop-home-page .shop-featured-heading h2 { color: var(--retail-ink); font-size: clamp(1.25rem, 2.3vw, 1.75rem); letter-spacing: -.035em; }
.shop-home-page .shop-picks { gap: clamp(.5rem, 1.2vw, .9rem); }

.shop-home-page .shop-pick {
  display: grid;
  align-content: start;
  gap: .45rem;
  min-width: 0;
  padding: .75rem;
  border: 1px solid var(--retail-line);
  border-radius: .9rem;
  background: #fff;
  box-shadow: 0 2px 8px #12203508;
}
.shop-pick .retail-brand-tile {
  display: grid;
  place-items: center;
  min-height: 3.15rem;
  padding: .4rem;
  border-radius: .55rem;
  background: #f3f6f9;
}
.shop-pick .retail-brand-tile img { width: 4rem; height: 2rem; }
.shop-pick .retail-brand-name { font-size: .95rem; color: var(--retail-ink); }
.retail-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: .18rem .5rem; }
.shop-home-page .shop-pick .retail-price { display: flex; }
.shop-pick .retail-price > span { display: inline; }
.retail-price .retail-pay { color: var(--retail-ink); font-size: clamp(1.2rem, 2vw, 1.45rem); font-weight: 850; letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.retail-price .retail-face { color: var(--retail-muted); font-size: .79rem; }
.retail-saving { justify-self: start; border-radius: .35rem; background: #eaf4ed; color: #20553c; padding: .14rem .38rem; font-size: .75rem; font-weight: 750; }

.shop-home-page .shop-shortcuts .shop-cart { color: #fff; padding-inline: .6rem; }
.shop-home-page .shop-trust { color: var(--retail-muted); }
.shop-home-page .launch-campaign { border-radius: .85rem; margin-bottom: 1rem; }
.shop-home-page :is(.gift-paths, .discovery-featured, .occasion-section, .catalog) {
  padding-top: var(--retail-section);
  padding-bottom: var(--retail-section);
  border-top: 1px solid var(--retail-line);
}
.shop-home-page :is(.gift-paths-heading, .discovery-featured-head, .occasion-heading) {
  gap: .65rem 1.5rem;
  margin-bottom: clamp(.85rem, 2vw, 1.4rem);
}
.shop-home-page :is(.gift-path-grid, .occasions) { gap: clamp(.55rem, 1.4vw, 1rem); }
.shop-home-page :is(.gift-path, .occasion-card) { min-width: 0; border-radius: .9rem; }
.shop-home-page .gift-path { min-height: clamp(11.8rem, 18vw, 15.2rem); padding: clamp(.85rem, 1.7vw, 1.35rem); border: 1px solid #12203516; gap: .45rem; }
.shop-home-page .gift-path-index { font-size: .69rem; letter-spacing: .055em; }
.shop-home-page .gift-path strong { font-size: clamp(1.1rem, 2.05vw, 1.55rem); letter-spacing: -.035em; margin-bottom: .35rem; }
.shop-home-page .gift-path-link { font-size: .8rem; }
.shop-home-page .occasion-card { min-height: 10rem; padding: .9rem; display: flex; flex-direction: column; align-items: flex-start; }
.shop-home-page .occasion-card h3 { color: var(--retail-ink); font-size: clamp(1rem, 1.7vw, 1.25rem); }
.shop-home-page .occasion-card p { color: var(--retail-muted); font-size: .85rem; max-width: 19ch; }
.shop-home-page .occasion-card > svg { width: clamp(3.5rem, 8vw, 6rem); height: auto; right: .3rem; bottom: .35rem; opacity: .65; }
.shop-home-page .occasion-card .occasion-arrow { position: relative; left: auto; bottom: auto; z-index: 1; margin-top: auto; padding-top: .65rem; font-size: .8rem; }

.shop-home-page .brand-card { border-color: var(--retail-line); }
.shop-home-page .brand-visual { min-height: 0; }
.shop-home-page .brand-card .card-example { margin: .3rem 0 .75rem; }
.shop-home-page .brand-card .discount { color: #20553c; }
.shop-home-page :is(.shop-pick, .gift-path, .occasion-card, .home-shopping a, .brand-card a, .brand-card button):focus-visible {
  outline: 3px solid #174d9a;
  outline-offset: 2px;
}
@media (max-width: 540px) {
  .shop-home-page .shop-pick { padding: .55rem; }
  .shop-pick .retail-brand-tile { min-height: 2.65rem; }
  .shop-home-page .gift-path-art { right: .1rem; opacity: .12; }
  .shop-home-page .occasion-card { padding: .7rem; }
}
@media (max-width: 359px) {
  .shop-home-page :is(.gift-path-grid, .occasions) { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: no-preference) {
  @keyframes home-campaign-enter {
    from { opacity: var(--home-enter-opacity); translate: 0 var(--home-enter-offset); }
    to { opacity: 1; translate: 0 0; }
  }
  [data-home-entrance] .shop-home-page .home-offer__copy {
    --home-enter-opacity: .8;
    --home-enter-offset: 6px;
    animation: home-campaign-enter 420ms cubic-bezier(.2, .65, .3, 1) backwards;
  }
  [data-home-entrance] .shop-home-page .home-offer__scenery {
    --home-enter-opacity: .75;
    --home-enter-offset: 4px;
    animation: home-campaign-enter 470ms cubic-bezier(.2, .65, .3, 1) 45ms backwards;
  }
  [data-home-entrance] .shop-home-page :is(.home-offer__ticket, .home-offer__badge) {
    --home-enter-opacity: .85;
    --home-enter-offset: 5px;
    animation: home-campaign-enter 530ms cubic-bezier(.2, .65, .3, 1) 65ms backwards;
  }
}

/* Use color and shadow for interactive feedback. */
.shop-home-page :is(.shop-pick, .gift-path, .occasion-card, .brand-card, .discovery-brand, .journey-card, .cardlink, .guide-feature-grid a):hover,
.shop-home-page :is(.button, button.primary, .home-offer__cta, .home-shopping button, .card-purchase-actions button, .card-details):is(:hover, :active) {
  transform: none;
}
.shop-home-page :is(.home-offer__cta, .home-shopping button, .card-purchase-actions button, .card-details):active {
  filter: brightness(.95);
}
@media (hover: hover) and (pointer: fine) {
  .shop-home-page :is(.shop-pick, .gift-path, .occasion-card, .brand-card, .discovery-brand, .journey-card, .cardlink, .guide-feature-grid a):hover {
    box-shadow: 0 6px 18px #12203514;
  }
  .shop-home-page :is(.shop-pick, .gift-path, .occasion-card):hover {
    border-color: #b77550;
  }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .shop-home-page :is(.shop-pick, .gift-path, .occasion-card, .brand-card, .discovery-brand, .journey-card, .cardlink, .guide-feature-grid a) {
    transition: border-color 150ms ease-out, box-shadow 150ms ease-out;
  }
  .shop-home-page :is(.button, button.primary, .home-offer__cta, .home-shopping button, .home-shopping .shop-categories a, .card-purchase-actions button, .card-details) {
    transition: background-color 150ms ease-out, border-color 150ms ease-out, color 150ms ease-out, filter 150ms ease-out;
  }
}
@media (hover: none), (pointer: coarse) {
  .shop-home-page :is(.shop-pick, .gift-path, .occasion-card, .brand-card, .discovery-brand, .journey-card, .cardlink, .guide-feature-grid a, .button, button.primary, .home-offer__cta, .home-shopping button, .card-purchase-actions button, .card-details) {
    transition: none;
  }
}

/* Homepage shopping grid and shared control dimensions. */
.shop-home-page {
  --home-grid-max: 71.75rem;
  --home-grid-gutter: clamp(.75rem, 2vw, 1rem);
  --home-control-height: 2.75rem;
  --home-control-radius: .55rem;
  --home-control-padding: .75rem;
  --home-control-font: 750 .875rem/1.15 system-ui, sans-serif;
}
.shop-home-page :is(.home-offer, .shop-home, .catalog) {
  width: min(var(--home-grid-max), calc(100% - 2 * var(--home-grid-gutter)));
  max-width: none;
  margin-inline: auto;
}
.shop-home-page :is(.shop-home, .catalog) { padding-inline: 0; }

.shop-home-page :is(a.home-offer__cta, .home-shopping button, .home-shopping .shop-categories a, .card-purchase-actions button, .card-details) {
  box-sizing: border-box;
  min-height: var(--home-control-height);
  padding: .35rem var(--home-control-padding);
  border-radius: var(--home-control-radius);
  font: var(--home-control-font);
}
.shop-home-page a.home-offer__cta { padding-inline: 1rem; }
.shop-home-page .home-shopping {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: .65rem;
  padding: .7rem .75rem;
  border: 1px solid var(--retail-line);
  border-radius: .7rem;
  background: #f8fafc;
}
.home-shopping .shop-search { min-width: 0; margin: 0; }
.home-shopping .shop-search > label { margin-bottom: .3rem; font-size: .875rem; }
.home-shopping .shop-search > div {
  gap: 0;
  align-items: stretch;
  min-width: 0;
  border: 1px solid #8290a1;
  border-radius: var(--home-control-radius);
  background: #fff;
}
.shop-home-page .home-shopping .shop-search input {
  min-width: 0;
  min-height: var(--home-control-height);
  margin: 0;
  border: 0;
  border-radius: var(--home-control-radius) 0 0 var(--home-control-radius);
}
.shop-home-page .home-shopping .shop-search button {
  margin: 0;
  padding-inline: 1rem;
  border-radius: 0 var(--home-control-radius) var(--home-control-radius) 0;
  background: var(--retail-ink);
  color: #fff;
}
.shop-home-page .home-shopping .shop-search button:hover { background: #273c56; }
.shop-home-page .home-shopping .shop-search :is(input, button):focus-visible {
  outline: 3px solid #174d9a;
  outline-offset: -3px;
}
.shop-home-page .home-shopping .shop-search button:focus-visible { outline-color: #bcd8ff; }
.shop-home-page .home-shopping .shop-categories {
  flex-wrap: wrap;
  gap: .4rem;
  min-width: 0;
  padding: .6rem 0 0;
  border-top: 1px solid var(--retail-line);
  overflow: visible;
}
.shop-home-page .home-shopping .shop-categories a {
  max-width: 100%;
  white-space: normal;
  border-color: #d3dce6;
  background: #fff;
}
.shop-home-page .home-shopping .shop-categories a:hover { border-color: #ad6442; }
.shop-home-page .home-shopping .shop-categories a:focus-visible { outline-offset: -3px; }

.shop-home-page .shop-picks { gap: clamp(.65rem, 1.25vw, 1rem); }
.shop-home-page .shop-pick {
  grid-template-rows: auto auto 1fr auto;
  gap: .55rem;
  padding: clamp(.7rem, 1.25vw, 1rem);
}
.shop-home-page .shop-pick .retail-brand-tile { min-height: 3.35rem; }
.shop-home-page .shop-pick .retail-brand-name { font-size: 1rem; }
.shop-home-page :is(.shop-pick, .brand-card) .retail-price { gap: .2rem .58rem; }
.shop-home-page :is(.shop-pick, .brand-card) :is(.retail-pay, .retail-face) { white-space: nowrap; }
.shop-home-page .shop-pick .retail-saving { align-self: end; }
.shop-home-page .brand-card .card-body { min-width: 0; }
.shop-home-page .card-purchase-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.shop-home-page .card-purchase-actions button { cursor: pointer; }

@media (min-width: 650px) and (max-width: 850px) {
  .shop-home-page .shop-picks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 540px) {
  .shop-home-page .shop-pick { padding: .7rem; }
  .shop-home-page .shop-pick .retail-price { flex-direction: column; align-items: flex-start; }
  .shop-home-page .brand-card { display: block; }
  .shop-home-page .brand-visual { height: 6rem; margin: .65rem .65rem 0; }
  .shop-home-page .brand-card .card-body { padding: .75rem; }
}
@media (max-width: 345px) {
  .shop-home-page .shop-picks { grid-template-columns: minmax(0, 1fr); }
}

/* The homepage department bar only contains navigation. */
.shop-home-page .cp-mallbar > .cp-search { display: none; }
.shop-home-page .cp-mallbar { min-height: 0; }
