/* Final measured geometry corrections after comparison to ae9b0ace. */
@media (min-width: 768px) {
  .ws-home-hero > .ws-home-hero-frame {
    height: 322px;
    min-height: 322px;
  }
  .ws-home-hero-copy { padding-top: 48px; }
}

.ws-categories-link-short { display: none; }
.ws-home-products:not(.ws-home-favorites) .ws-home-product-card:nth-child(n+6) { display: none; }
.ws-cms-promo-slot { display: contents; }

/* CMS-backed, no-autoplay homepage carousel. */
.ws-home-slide-shell,
.ws-home-slide,
.ws-home-slide-media,
.ws-home-slide-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.ws-home-slide-media { display: block; }
.ws-home-slide-media img { object-fit: cover; object-position: center 53%; }
.ws-home-slide-container { position: relative; z-index: 2; height: 100%; }
.ws-home-hero-copy { max-width: 32rem; color: #111; }
.ws-home-hero-copy h1,
.ws-home-hero-copy h2 {
  max-width: 420px;
  margin: 0 0 12px;
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.04;
}
.ws-home-hero-control {
  position: absolute;
  z-index: 4;
  top: 50%;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(17,17,17,.12);
  border-radius: 999px;
  background: rgba(255,255,255,.9);
  color: #111;
  font-size: 28px;
  line-height: 1;
  transform: translateY(-50%);
}
.ws-home-hero-control:focus-visible,
.ws-home-hero-pagination button:focus-visible { outline: 3px solid #111; outline-offset: 2px; }
.ws-home-hero-control--previous { left: 20px; }
.ws-home-hero-control--next { right: 20px; }
.ws-home-hero-pagination {
  position: absolute;
  z-index: 4;
  bottom: 12px;
  left: 50%;
  display: flex;
  gap: 7px;
  transform: translateX(-50%);
}
.ws-home-hero-pagination button {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 1px solid #fff;
  border-radius: 999px;
  background: rgba(17,17,17,.42);
}
.ws-home-hero-pagination button[aria-current="true"] { width: 23px; background: #ffd800; }

/* Product/category assets remain uncropped and sit on white. */
.ws-category-shortcut:nth-child(3) .ws-category-image img,
.ws-category-shortcut:nth-child(5) .ws-category-image img,
.ws-category-shortcut:nth-child(6) .ws-category-image img,
.ws-category-shortcut:nth-child(8) .ws-category-image img {
  object-fit: contain;
  padding: 7px;
  background: #fff;
}

/* Deliberate cream copy field: #111 text is well above WCAG AA. */
.ws-promo::after { display: none; }
.ws-promo-contrast {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(90deg, rgba(255,248,232,.99) 0%, rgba(255,248,232,.96) 34%, rgba(255,248,232,.76) 53%, rgba(255,248,232,0) 76%);
  pointer-events: none;
}
.ws-promo-copy { z-index: 2; color: #111; }
.ws-promo-main > img { filter: none; object-position: center center; }

.ws-home-categories,
.ws-home-promos,
.ws-home-products,
.ws-home-editorial {
  max-width: 1320px;
}

.ws-promo-copy h2,
.ws-home-product-price,
.ws-home-product-price .price,
.ws-brand-card h2 {
  font-weight: 700 !important;
}

/* Rubric-v2 structural sections present in the supplementary desktop reference. */
.ws-home-support {
  margin-bottom: 1.75rem;
  border-block: 1px solid #ececec;
  background: #fafafa;
}
.ws-home-support-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  max-width: 1320px;
  padding: 1rem 20px;
}
.ws-home-support-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  min-width: 0;
  padding: 0 .8rem;
  border-right: 1px solid #e6e6e6;
}
.ws-home-support-item:last-child { border-right: 0; }
.ws-home-support-icon { flex: 0 0 auto; color: #2f8f1f; }
.ws-home-support-item strong,
.ws-home-support-item small { display: block; line-height: 1.25; }
.ws-home-support-item strong { color: #111; font-size: .75rem; font-weight: 700; }
.ws-home-support-item small { margin-top: .1rem; color: #6b7280; font-size: .68rem; }
.ws-home-favorites { padding-top: 0; }
.ws-home-favorites .ws-home-product-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.ws-home-favorites .ws-home-product-image { height: 125px; }
.ws-home-favorites .ws-home-product-name { min-height: 30px; font-size: .75rem; }
.ws-home-favorites .ws-home-cart-button { display: none; }
.ws-home-favorites .ws-home-product-price { margin-bottom: 0; font-size: 1rem; }

@media (max-width: 767px) {
  .ws-home-hero > .ws-home-hero-frame { height: 245px; min-height: 245px; }
  .ws-home-slide-media img { object-position: 64% center; }
  .ws-home-hero-shade { background: linear-gradient(90deg,rgba(255,255,255,.94),rgba(255,255,255,.58) 55%,rgba(255,255,255,.02) 86%); }
  .ws-home-hero-copy { padding: 27px 4px 0; }
  .ws-home-hero h1 { max-width: 265px; margin-bottom: 17px; font-size: 32px; }
  .ws-home-hero h2 { max-width: 270px; margin-bottom: 17px; font-size: 29px; line-height: 1.04; }
  .ws-home-lead { display: none; }
  .ws-hero-cta { padding: 10px 15px; font-size: 13px; }
  .ws-home-section-head h2 { font-size: 19px; white-space: nowrap; }
  .ws-home-section-head { gap: 8px; }
  .ws-home-section-head > a { flex: 0 0 auto; white-space: nowrap; }
  .ws-home-categories { padding-top: 18px; padding-bottom: 14px; }
  .ws-home-promos { padding-bottom: 18px; }
  .ws-promo { height: 160px; }
  .ws-promo-contrast { background: linear-gradient(90deg,rgba(255,248,232,.99) 0%,rgba(255,248,232,.97) 65%,rgba(255,248,232,.68) 78%,rgba(255,248,232,0) 96%); }
  .ws-home-hero-control { width: 32px; height: 32px; font-size: 22px; }
  .ws-home-hero-control--previous { left: 8px; }
  .ws-home-hero-control--next { right: 8px; }
  .ws-home-hero-control { top: 53%; }
  .ws-categories-link-long { display: none; }
  .ws-categories-link-short { display: inline; }
  .ws-home-support,
  .ws-home-favorites { display: none; }
}
