/* Homepage — burgundy jewelry storefront. Does not rewrite global chrome. */
.page-home {
  --home-cream: #F8F1EE;
  --home-paper: #FFFDFC;
  --home-ink: #26191B;
  --home-mute: #78676A;
  --home-gold: #C9A46A;
  --home-line: rgba(114, 13, 37, 0.12);
  background: var(--home-cream);
  color: var(--home-ink);
}

.page-home .home-section__title,
.page-home .home-hero__title,
.page-home .home-editorial__title {
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-transform: none;
}

.page-home .home-section__title {
  color: var(--home-ink);
}

.page-home .home-hero__title,
.page-home .home-editorial__title {
  color: #FFFDFC;
}

.home-hero {
  position: relative;
  display: grid;
  height: 440px;
  min-height: 400px;
  max-height: 460px;
  overflow: hidden;
  background: #30050F;
}

.home-hero__slide {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  height: 100%;
  min-height: inherit;
}

.home-hero__media {
  position: absolute;
  inset: 0;
  margin: 0;
}

.home-hero__media picture {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.home-hero__media img,
.home-hero__media picture img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 82% 48%;
}

.home-hero__media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(69, 8, 23, 0.22);
  mix-blend-mode: multiply;
  pointer-events: none;
}

.home-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(48, 5, 15, 0.72) 0%, rgba(69, 8, 23, 0.46) 28%, rgba(69, 8, 23, 0.16) 48%, rgba(48, 5, 15, 0.04) 68%, rgba(48, 5, 15, 0.12) 100%),
    linear-gradient(180deg, rgba(48, 5, 15, 0.16) 0%, transparent 38%, rgba(48, 5, 15, 0.22) 100%);
  pointer-events: none;
}

.home-hero__copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  width: min(38rem, calc(100% - (var(--container-gutter) * 2)));
  margin: 0 0 0 max(var(--container-gutter), calc((100% - var(--container)) / 2));
  padding: 0.4rem 0;
  color: #FFFDFC;
}

.home-hero__brand {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0 0 0.65rem;
  color: var(--home-gold);
}

.home-hero__title {
  font-size: clamp(1.85rem, 4.2vw, 3.05rem);
  line-height: 1.08;
  color: #FFFDFC;
  max-width: 14ch;
  margin: 0;
  text-shadow: 0 8px 28px rgba(48, 5, 15, 0.35);
}

.home-hero__text {
  margin: 0.7rem 0 1.15rem;
  max-width: 34ch;
  color: rgba(255, 253, 252, 0.88);
  font-size: 0.98rem;
  line-height: 1.5;
}

.page-home .home-hero .btn--hero {
  background: #720D25;
  color: #FFFDFC;
  box-shadow: 0 10px 22px rgba(48, 5, 15, 0.32);
}

.page-home .home-hero .btn--hero:hover {
  background: #A51F43;
}

.btn--ink {
  background: var(--color-primary, #720D25);
  color: #FFFDFC;
  box-shadow: none;
}

.btn--ink:hover {
  background: var(--color-primary-hot, #A51F43);
  transform: none;
}

.home-section {
  padding: clamp(2.1rem, 4vw, 3.25rem) 0;
}

.home-hero + .home-section {
  padding-top: clamp(1.35rem, 2.4vw, 1.85rem);
}

.home-section--soft { background: var(--home-paper); }

.home-section__head {
  margin-bottom: 0.85rem;
}

.home-section__head--row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.home-section__title {
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  line-height: 1.15;
}

.home-section__sub {
  margin-top: 0.35rem;
  color: var(--home-mute);
  font-size: 0.95rem;
}

.home-section__link {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--home-ink);
  border-bottom: 1px solid var(--home-gold);
  padding-bottom: 2px;
  white-space: nowrap;
}

.home-cats {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 0.7rem 0.45rem;
  justify-items: center;
}

.home-cat {
  display: grid;
  gap: 0.45rem;
  min-width: 0;
  justify-items: center;
  text-align: center;
  width: 100%;
}

.home-cat__media {
  width: 6rem;
  height: 6rem;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 50%;
  background: #F8F1EE;
  border: 1px solid var(--home-line);
  box-shadow: 0 8px 18px rgba(69, 8, 23, 0.08);
}

.home-cat__media--icon {
  display: grid;
  place-items: center;
  background: var(--color-primary, #720D25);
  color: #FFFDFC;
  border-color: transparent;
}
.home-cat__media--icon[data-kind="sale"] {
  background: var(--color-primary-hot, #A51F43);
}

.home-cat__media img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center 42%;
  transition: transform 0.65s var(--ease);
}

.home-cat:hover .home-cat__media img {
  transform: scale(1.05);
}

.home-cat__name {
  font-size: 0.74rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--home-ink);
  max-width: 100%;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.home-products {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem 0.9rem;
}

.page-home .product-card__media {
  border-radius: 10px;
  background: #F8F1EE;
}

.page-home .product-card__price .off {
  color: var(--color-primary, #720D25);
  font-size: 0.72rem;
  font-weight: 700;
}

.home-editorial {
  display: grid;
  grid-template-columns: 1fr;
  margin: 0 auto 0.25rem;
  width: min(calc(100% - (var(--container-gutter) * 2)), var(--container));
  max-width: var(--container);
  padding: 0;
  overflow: hidden;
  background: #30050F;
  color: #FFFDFC;
  border-radius: 4px;
}

.home-editorial.home-editorial--has-media {
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.9fr);
  min-height: 420px;
}

.home-editorial__media {
  margin: 0;
  min-height: 100%;
  overflow: hidden;
  background: #450817;
}

.home-editorial__media.hp-aspect-wide,
.home-editorial__media.hp-aspect-square,
.home-editorial__media.hp-aspect-auto {
  aspect-ratio: auto;
  height: 100%;
}

.home-editorial__media img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  object-position: 58% 48%;
  display: block;
}

.home-editorial__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: clamp(1.8rem, 4.2vw, 3.4rem) clamp(1.5rem, 3.5vw, 3rem);
  background:
    linear-gradient(165deg, #4a0c1c 0%, #30050F 48%, #24040c 100%);
}

.home-editorial__copy::before {
  content: "";
  width: 42px;
  height: 2px;
  margin-bottom: 1.15rem;
  background: #C9A46A;
  border-radius: 1px;
}

.home-editorial__title {
  margin: 0;
  font-size: clamp(2rem, 3.5vw, 2.9rem);
  line-height: 1.12;
  color: #FFFDFC;
  max-width: 11ch;
}

.home-editorial p {
  margin: 0.85rem 0 1.45rem;
  color: rgba(255, 253, 252, 0.82);
  max-width: 34ch;
  font-size: 1.02rem;
  line-height: 1.55;
}

.home-editorial .btn--ink,
.home-editorial .btn--hero,
.home-editorial .btn--pink {
  background: #FFFDFC;
  color: #30050F;
  border: 0;
}

.home-editorial .btn--ink:hover,
.home-editorial .btn--hero:hover,
.home-editorial .btn--pink:hover {
  background: #C9A46A;
  color: #30050F;
}

.home-trust {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.home-trust__item {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 0.35rem;
  padding: 1.15rem 0.4rem;
  border-top: 0;
}

.home-trust__icon {
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  margin-bottom: 0.15rem;
  color: var(--color-primary, #720D25);
}

.home-trust__item strong {
  font-size: 0.95rem;
}

.home-trust__item span {
  color: var(--home-mute);
  font-size: 0.86rem;
  line-height: 1.45;
}

@media (min-width: 1440px) {
  .home-hero { height: 460px; }
}

@media (max-width: 1200px) {
  .home-products { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .home-cats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .home-cat__media { width: 5.6rem; height: 5.6rem; }
}

@media (max-width: 1024px) {
  .home-hero { height: 400px; }
}

@media (max-width: 900px) {
  .home-hero {
    height: auto;
    min-height: 300px;
    max-height: none;
  }
  .home-hero__slide {
    min-height: 300px;
    padding: 2rem 0 1.7rem;
  }
  .home-hero__media img,
  .home-hero__media picture img {
    object-position: 78% 46%;
  }
  .home-hero__copy {
    width: min(34rem, calc(100% - 2rem));
    margin-left: max(1rem, var(--container-gutter));
  }
  .home-hero__title { font-size: clamp(1.7rem, 8vw, 2.35rem); }
  .home-products,
  .home-trust { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-cats {
    display: flex;
    overflow-x: auto;
    gap: 0.7rem;
    padding-bottom: 0.25rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    justify-items: unset;
  }
  .home-cat {
    flex: 0 0 4.55rem;
    width: 4.55rem;
    scroll-snap-align: start;
  }
  .home-cat__media {
    width: 4.35rem;
    height: 4.35rem;
    flex: 0 0 4.35rem;
  }
  .home-cat__name {
    font-size: 0.62rem;
    letter-spacing: 0.02em;
    max-width: 4.55rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .home-section__head--row { align-items: flex-start; }
  .home-editorial.home-editorial--has-media {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .home-editorial__media img {
    min-height: 220px;
    height: min(52vw, 280px);
  }
  .home-editorial__title { max-width: 14ch; }
}

@media (max-width: 640px) {
  .home-hero__slide { min-height: 280px; padding: 1.65rem 0 1.35rem; }
  .home-hero__text { font-size: 0.92rem; margin-bottom: 1rem; }
  .home-products { gap: 0.85rem 0.65rem; }
  .page-home .product-card__add { min-height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  .home-cat:hover .home-cat__media img { transform: none; }
}

.hp-hide-desk { }
.hp-hide-mob { }

@media (min-width: 901px) {
  .hp-hide-desk { display: none !important; }
}
@media (max-width: 900px) {
  .hp-hide-mob { display: none !important; }
}

.home-hero { position: relative; }
.hp-slider__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,253,252,.9);
  color: #30050F;
  cursor: pointer;
}
.hp-slider__btn--prev { left: max(12px, var(--container-gutter, 16px)); }
.hp-slider__btn--next { right: max(12px, var(--container-gutter, 16px)); }
.hp-slider__dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1rem;
  display: flex;
  justify-content: center;
  gap: .4rem;
  z-index: 3;
}
.hp-slider__dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 0;
  background: rgba(255,255,255,.45);
  cursor: pointer;
}
.hp-slider__dots button[aria-current="true"] { background: #fff; }

.hp-stories {
  display: flex;
  gap: 1.1rem;
  justify-content: flex-start;
  overflow-x: auto;
  padding-bottom: .35rem;
  scroll-snap-type: x mandatory;
}
@media (min-width: 901px) {
  .hp-stories {
    justify-content: flex-start;
    overflow-x: visible;
    flex-wrap: wrap;
    scroll-snap-type: none;
  }
}
.hp-story {
  flex: 0 0 5.5rem;
  display: grid;
  gap: .4rem;
  justify-items: center;
  background: none;
  border: 0;
  cursor: pointer;
  scroll-snap-align: start;
  color: inherit;
}
.hp-story__media {
  width: 5.2rem;
  height: 5.2rem;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--home-line, rgba(28,25,20,.1));
}
.hp-story__media img { width: 100%; height: 100%; object-fit: cover; }
.hp-story__name { font-size: .72rem; text-align: center; }

.hp-story-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(48,5,15,.88);
  place-items: center;
  padding: 1rem;
}
.hp-story-overlay:not([hidden]) {
  display: grid;
}
.hp-story-overlay__panel {
  position: relative;
  width: min(420px, 100%);
  color: #fff;
}
.hp-story-overlay__media img,
.hp-story-overlay__media video {
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  background: #111;
}
.hp-story-overlay__close,
.hp-story-overlay__nav {
  position: absolute;
  background: rgba(255,255,255,.12);
  color: #fff;
  border: 0;
  cursor: pointer;
}
.hp-story-overlay__close { top: .4rem; right: .4rem; width: 36px; height: 36px; }
.hp-story-overlay__nav { top: 50%; transform: translateY(-50%); width: 36px; height: 48px; }
.hp-story-overlay__nav--prev { left: .2rem; }
.hp-story-overlay__nav--next { right: .2rem; }
.hp-story-overlay__title { margin: .7rem 0 .4rem; }
.hp-story-overlay__link { color: #F8F1EE; }

.hp-banner {
  margin: 0 auto;
  width: min(calc(100% - (var(--container-gutter) * 2)), var(--container));
}
.hp-banner__media img { width: 100%; height: auto; display: block; }
.hp-aspect-wide { aspect-ratio: 21 / 8; overflow: hidden; }
.hp-aspect-square { aspect-ratio: 1; overflow: hidden; }
.hp-aspect-wide img,
.hp-aspect-square img { width: 100%; height: 100%; object-fit: cover; }
.hp-banner__copy { padding: 1.4rem 0 2rem; }
.hp-align-center { text-align: center; }
.hp-align-right { text-align: right; }
.hp-bg-ink { background: #30050F; color: #F8F1EE; }
.hp-bg-paper { background: #F8F1EE; }
.hp-bg-white { background: #FFFDFC; }
.hp-bg-cream { background: #F8F1EE; }
.home-editorial.hp-bg-cream,
.home-editorial.hp-bg-paper,
.home-editorial.hp-bg-white,
.home-editorial.hp-bg-ink {
  background: #30050F;
  color: #FFFDFC;
  text-align: left;
}
.hp-spacer { height: var(--hp-space-desk, 48px); }
.hp-spacer--line { border-top: 1px solid rgba(28,25,20,.1); }
@media (max-width: 900px) {
  .hp-spacer { height: var(--hp-space-mob, 24px); }
  .hp-stories { gap: .75rem; }
}

@media (prefers-reduced-motion: reduce) {
  .hp-slider__btn { transition: none; }
}
