/* ===========================================================
   ReplicaHermes — landing / editorial sections
   Editorial luxury layout: ink, champagne gold, warm ivory.
   =========================================================== */

:root {
  --rh-ink: #121316;
  --rh-ink-soft: #1d1f24;
  --rh-gold: #b08968;
  --rh-gold-soft: #d8c3ab;
  --rh-ivory: #f8f5f0;
  --rh-line: #e6dfd4;
  --rh-muted: #6f6a62;
  --rh-ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- shared bits ---------- */
.rh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  border-radius: 2px;
  padding: .95rem 2.1rem;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  line-height: 1.1;
  border: 1px solid transparent;
  transition: background-color .25s var(--rh-ease), color .25s var(--rh-ease), border-color .25s var(--rh-ease), transform .25s var(--rh-ease);
}
.rh-btn:active { transform: translateY(1px); }
.rh-btn--solid {
  background: var(--rh-ink);
  border-color: var(--rh-ink);
  color: #fff;
}
.rh-btn--solid:hover { background: var(--rh-gold); border-color: var(--rh-gold); color: #fff; }
.rh-btn--ghost {
  background: transparent;
  border-color: rgba(255,255,255,.55);
  color: #fff;
}
.rh-btn--ghost:hover { background: #fff; border-color: #fff; color: var(--rh-ink); }

.rh-hero .container,
.rh-cats .container,
.rh-reviews .container,
.rh-newsletter .container {
  max-width: 1240px;
}

/* ---------- hero ---------- */
.rh-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: 640px;
  padding: 6.5rem 1rem;
  background-color: var(--rh-ink);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
  overflow: hidden;
}
.rh-hero--plain {
  background-image: radial-gradient(120% 120% at 15% 0%, #2b2d33 0%, #15161a 55%, #0c0d10 100%);
}
.rh-hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(10,10,12,.38) 0%, rgba(10,10,12,.30) 38%, rgba(10,10,12,.62) 100%);
}
.rh-hero--plain .rh-hero__scrim { background: none; }
.rh-hero__inner { text-align: center; max-width: 860px; margin: 0 auto; }
.rh-hero--left .rh-hero__inner { text-align: left; margin-left: 0; }
.rh-hero__eyebrow {
  font-size: .72rem;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--rh-gold-soft);
  margin-bottom: 1.15rem;
}
.rh-hero__title {
  font-size: clamp(2rem, 4.6vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -.015em;
  font-weight: 600;
  margin: 0 0 1.1rem;
  text-wrap: balance;
  text-shadow: 0 2px 30px rgba(0,0,0,.35);
}
.rh-hero__subtitle {
  font-size: clamp(1rem, 1.4vw, 1.14rem);
  line-height: 1.65;
  color: rgba(255,255,255,.86);
  max-width: 620px;
  margin: 0 auto 2rem;
}
.rh-hero--left .rh-hero__subtitle { margin-left: 0; }
.rh-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  justify-content: center;
}
.rh-hero--left .rh-hero__actions { justify-content: flex-start; }
.rh-hero__badges {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: .4rem 1.6rem;
  justify-content: center;
  margin: 2.4rem 0 0;
  padding: 1.4rem 0 0;
  border-top: 1px solid rgba(255,255,255,.18);
  font-size: .8rem;
  letter-spacing: .06em;
  color: rgba(255,255,255,.82);
}
.rh-hero--left .rh-hero__badges { justify-content: flex-start; }
.rh-hero__badges li { display: inline-flex; align-items: center; gap: .45rem; }
.rh-hero__badges i { color: var(--rh-gold-soft); font-size: .95rem; }

/* ---------- category grid ---------- */
.rh-cats {
  padding: clamp(3rem, 5vw, 4.75rem) 1rem;
  background: #fff;
}
.rh-cats__grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1rem;
}
.rh-cat {
  position: relative;
  display: block;
  text-decoration: none;
  color: var(--rh-ink);
  overflow: hidden;
  background: var(--rh-ivory);
  border: 1px solid var(--rh-line);
  transition: box-shadow .3s var(--rh-ease), transform .3s var(--rh-ease);
}
.rh-cat:hover { transform: translateY(-3px); box-shadow: 0 18px 34px -22px rgba(18,19,22,.55); }
.rh-cat__media {
  display: block;
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--rh-ivory);
}
.rh-cat__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s var(--rh-ease);
}
.rh-cat:hover .rh-cat__media img { transform: scale(1.05); }
.rh-cat__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--rh-gold);
  background: linear-gradient(135deg, #f4efe7, #e9e1d5);
}
.rh-cat__body {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  padding: .9rem .95rem 1rem;
}
.rh-cat__name {
  font-size: .86rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  line-height: 1.3;
}
.rh-cat__cta {
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--rh-muted);
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}
.rh-cat:hover .rh-cat__cta { color: var(--rh-gold); }

/* ---------- testimonials ---------- */
.rh-reviews {
  padding: clamp(3rem, 5vw, 4.75rem) 1rem;
  background: var(--rh-ivory);
  border-top: 1px solid var(--rh-line);
  border-bottom: 1px solid var(--rh-line);
}
.rh-review {
  background: #fff;
  border: 1px solid var(--rh-line);
  padding: 1.8rem 1.7rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: .9rem;
  margin: 0;
}
.rh-review__stars { color: var(--rh-gold); font-size: .9rem; letter-spacing: .12em; }
.rh-review__text {
  flex: 1 1 auto;
  margin: 0;
  font-size: .98rem;
  line-height: 1.72;
  color: #35322d;
}
.rh-review__meta {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  padding-top: .85rem;
  border-top: 1px solid var(--rh-line);
}
.rh-review__name { font-weight: 600; font-size: .86rem; letter-spacing: .04em; }
.rh-review__loc { font-size: .78rem; color: var(--rh-muted); }
.rh-review__product {
  font-size: .76rem;
  color: var(--rh-gold);
  letter-spacing: .03em;
  margin-top: .25rem;
}

/* ---------- newsletter ---------- */
.rh-newsletter {
  padding: clamp(2.75rem, 4.5vw, 4rem) 1rem;
  background: var(--rh-ink);
  color: #fff;
}
.rh-newsletter__box {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}
.rh-newsletter__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid rgba(216,195,171,.5);
  border-radius: 50%;
  color: var(--rh-gold-soft);
  margin-bottom: 1rem;
  font-size: 1.05rem;
}
.rh-newsletter__title {
  font-size: clamp(1.35rem, 2.3vw, 1.9rem);
  font-weight: 600;
  letter-spacing: -.01em;
  line-height: 1.25;
  margin: 0 0 .6rem;
}
.rh-newsletter__desc { color: rgba(255,255,255,.72); font-size: .95rem; line-height: 1.65; max-width: 46ch; }
.rh-newsletter__form {
  display: flex;
  gap: .6rem;
  align-items: stretch;
}
.rh-newsletter__input {
  flex: 1 1 auto;
  min-width: 0;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.24);
  color: #fff;
  padding: .95rem 1rem;
  font-size: .92rem;
  border-radius: 2px;
  transition: border-color .2s var(--rh-ease), background-color .2s var(--rh-ease);
}
.rh-newsletter__input::placeholder { color: rgba(255,255,255,.45); }
.rh-newsletter__input:focus {
  outline: none;
  border-color: var(--rh-gold-soft);
  background: rgba(255,255,255,.1);
}
.rh-newsletter__btn {
  background: var(--rh-gold);
  border-color: var(--rh-gold);
  color: #1a1a1a;
  padding-inline: 1.7rem;
  white-space: nowrap;
}
.rh-newsletter__btn:hover { background: #c69c78; border-color: #c69c78; color: #1a1a1a; }
.rh-newsletter__privacy {
  margin-top: .7rem;
  font-size: .76rem;
  color: rgba(255,255,255,.45);
  letter-spacing: .02em;
}
.rh-newsletter__status { margin-top: .5rem; font-size: .84rem; }

/* ---------- editorial helper on top of core styles ---------- */
.section-header__title {
  letter-spacing: -.01em;
}

/* ---------- responsive ---------- */
@media (max-width: 1199.98px) {
  .rh-cats__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 991.98px) {
  .rh-hero { min-height: 520px; padding: 4.5rem 1rem; }
  .rh-newsletter__box { grid-template-columns: 1fr; }
  .rh-newsletter__desc { max-width: none; }
}
@media (max-width: 575.98px) {
  .rh-hero { min-height: 460px; padding: 3.75rem 1rem; }
  .rh-hero__actions .rh-btn { width: 100%; }
  .rh-cats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rh-newsletter__form { flex-direction: column; }
  .rh-newsletter__btn { width: 100%; }
  .rh-review { padding: 1.4rem 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  .rh-cat, .rh-cat__media img, .rh-btn { transition: none !important; }
  .rh-cat:hover { transform: none; }
  .rh-cat:hover .rh-cat__media img { transform: none; }
}

/* ===========================================================
   Inner pages (CMS pages, contact)
   =========================================================== */
.rh-page-head {
  padding: clamp(2.4rem, 5vw, 4rem) 1rem clamp(2rem, 4vw, 3rem);
  background: var(--rh-ivory);
  border-bottom: 1px solid var(--rh-line);
  text-align: center;
}
.rh-breadcrumb {
  display: flex;
  gap: .5rem;
  justify-content: center;
  align-items: center;
  font-size: .74rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--rh-muted);
  margin-bottom: 1rem;
}
.rh-breadcrumb a { color: var(--rh-muted); text-decoration: none; }
.rh-breadcrumb a:hover { color: var(--rh-gold); }
.rh-page-head__title {
  font-size: clamp(1.8rem, 3.6vw, 2.7rem);
  font-weight: 600;
  letter-spacing: -.015em;
  margin: 0 0 .7rem;
  color: var(--rh-ink);
}
.rh-page-head__sub {
  max-width: 62ch;
  margin: 0 auto;
  color: var(--rh-muted);
  font-size: 1rem;
  line-height: 1.7;
}

.page-content { max-width: 78ch; margin: 0 auto; color: #2f2c28; }
.page-title { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 600; letter-spacing: -.01em; margin-bottom: 1.6rem; }
.page-body { font-size: 1rem; line-height: 1.78; }
.page-body h2 {
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  font-weight: 600;
  letter-spacing: -.005em;
  margin: 2.6rem 0 .9rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--rh-line);
  color: var(--rh-ink);
}
.page-body > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.page-body h3 { font-size: 1.06rem; font-weight: 600; margin: 1.8rem 0 .5rem; color: var(--rh-ink); }
.page-body p { margin-bottom: 1rem; }
.page-body ul, .page-body ol { margin: 0 0 1.2rem 1.1rem; padding-left: .4rem; }
.page-body li { margin-bottom: .5rem; }
.page-body a { color: var(--rh-gold); text-decoration: underline; text-underline-offset: 3px; }
.page-body a:hover { color: var(--rh-ink); }
.page-body strong { font-weight: 600; color: var(--rh-ink); }
.page-body table { font-size: .94rem; margin-bottom: 1.2rem; }
.page-body table th {
  font-size: .74rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--rh-muted);
  font-weight: 600;
  border-bottom: 1px solid var(--rh-line);
}
.page-body table td { border-color: var(--rh-line); padding: .6rem .5rem; }

.rh-contact-aside {
  background: var(--rh-ivory);
  border: 1px solid var(--rh-line);
  padding: 1.9rem 1.7rem;
  height: 100%;
}
.rh-contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.2rem; }
.rh-contact-list li { display: flex; gap: .9rem; align-items: flex-start; }
.rh-contact-list i { color: var(--rh-gold); font-size: 1.05rem; margin-top: .15rem; }
.rh-contact-list__label {
  display: block;
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--rh-muted);
  margin-bottom: .15rem;
}
.rh-contact-list a { color: var(--rh-ink); text-decoration: none; }
.rh-contact-list a:hover { color: var(--rh-gold); }
.rh-eyebrow-sm { letter-spacing: .14em; font-size: .74rem; color: var(--rh-muted); }
.rh-quick-links { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .5rem; }
.rh-quick-links a {
  color: var(--rh-ink);
  text-decoration: none;
  font-size: .92rem;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}
.rh-quick-links a::before { content: ""; width: 14px; height: 1px; background: var(--rh-gold); display: inline-block; }
.rh-quick-links a:hover { color: var(--rh-gold); }
.rh-small-note { font-size: .82rem; color: var(--rh-muted); line-height: 1.6; }

@media (max-width: 767.98px) {
  .page-body h2 { margin-top: 2rem; padding-top: 1.1rem; }
  .rh-contact-aside { padding: 1.4rem 1.2rem; }
}

/* ===========================================================
   Header mega menu — categories + designer brands
   Bounded panel: never full-width, never full-page
   =========================================================== */
.navbar-nav-main .rh-shopnav { position: static; }
.header-main { position: sticky; }
.dropdown-menu.rh-mega {
  position: absolute;
  top: 100%;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  width: min(1060px, calc(100vw - 2.5rem));
  max-height: min(80vh, 660px);
  display: none;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
  margin: 0;
  border: 1px solid var(--rh-line);
  border-radius: 0;
  background: #fff;
  box-shadow: 0 30px 60px -34px rgba(18, 19, 22, .5);
  z-index: 1055;
}
/* 只有 Bootstrap 加上 .show 时才显示；否则默认完全隐藏 */
.dropdown-menu.rh-mega.show { display: flex; }
.rh-mega__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .85rem 1.5rem;
  border-bottom: 1px solid var(--rh-line);
  background: #fff;
}
.rh-mega__eyebrow {
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--rh-muted);
}
.rh-mega__all {
  font-size: .78rem;
  letter-spacing: .04em;
  color: var(--rh-gold);
  text-decoration: none;
  white-space: nowrap;
}
.rh-mega__all:hover { color: var(--rh-ink); }
.rh-mega__body {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  min-height: 0;
  overflow: hidden;
}
.rh-mega__cats {
  background: var(--rh-ivory);
  border-right: 1px solid var(--rh-line);
  padding: .9rem .7rem 1rem;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.rh-mega__catlist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-rows: repeat(14, auto);
  grid-auto-flow: column;
  gap: .05rem .2rem;
}
.rh-mega__catlist a {
  display: block;
  padding: .42rem .6rem;
  font-size: .84rem;
  line-height: 1.3;
  color: var(--rh-ink);
  text-decoration: none;
  border-left: 2px solid transparent;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.rh-mega__catlist a:hover {
  background: #fff;
  border-left-color: var(--rh-gold);
  color: var(--rh-gold);
}
.rh-mega__brands {
  padding: .9rem 1.3rem 1.2rem;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.rh-mega__brandgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(198px, 1fr));
  gap: 0 .9rem;
  margin-top: .55rem;
}
.rh-mega__brand {
  display: block;
  padding: .38rem .1rem;
  font-size: .74rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: #3b3c42;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color .15s ease;
}
.rh-mega__brand:hover { color: var(--rh-gold); }

@media (max-width: 1199.98px) {
  .rh-mega { width: calc(100vw - 2rem); }
  .rh-mega__body { grid-template-columns: 320px minmax(0, 1fr); }
}
@media (max-width: 991.98px) {
  /* 移动端：就地展开，不覆盖整页 */
  .dropdown-menu.rh-mega {
    position: static;
    left: auto;
    transform: none;
    width: 100%;
    max-height: none;
    overflow: visible;
    border: 0;
    box-shadow: none;
  }
  .rh-mega__head { padding: .6rem .4rem; }
  .rh-mega__body { display: block; overflow: visible; }
  .rh-mega__cats { border-right: 0; border-bottom: 1px solid var(--rh-line); padding: .5rem .3rem .6rem; }
  .rh-mega__catlist { gap: 0; }
  .rh-mega__catlist a { white-space: normal; }
  .rh-mega__brands { padding: .7rem .4rem 1rem; }
  .rh-mega__brandgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dropdown-menu.rh-mega.show { display: block; }
}

/* price colour: keep it quiet and editorial */
.product-card .product-price,
.product-card .price,
.product-info .price {
  color: var(--rh-ink) !important;
  font-weight: 600;
}
.product-card .product-price .current-price,
.product-info .price .current-price { color: var(--rh-ink) !important; }

/* CMS page body: neutralise the muted wrapper coming from the rich-text section */
.page-body .text-muted { color: inherit !important; }
.page-body section.py-4 { padding: 0 !important; }
.page-body .section-block { padding: 0 !important; }
.page-body .container { padding-left: 0 !important; padding-right: 0 !important; max-width: none !important; }
