/* ===== VYOJIN hero v2 — full width, 3 vertical panels. Load AFTER style.css ===== */
.rh {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  width: 100%;
  background: #fff;
}

.rh-panel {
  position: relative;
  display: block;
  overflow: hidden;
  background: #3a0f27;
  /* tall portrait panels that fit the screen under the header */
  height: clamp(520px, calc(100vh - 190px), 860px);
}

.rh-panel video,
.rh-panel img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 1s ease;
}
.rh-panel:hover video,
.rh-panel:hover img { transform: scale(1.03); }

/* single small button on the middle image */
.rh-cta {
  position: absolute;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%);
  padding: 14px 28px;
  background: #fff;
  color: #3a0f27;
  font-family: "Figtree", sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .04em;
  white-space: nowrap;
  transition: background .25s, color .25s;
}
.rh-panel:hover .rh-cta { background: #3a0f27; color: #fff; }

/* Mobile: swipe sideways through the 3 panels */
@media (max-width: 800px) {
  .rh {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .rh::-webkit-scrollbar { display: none; }
  .rh-panel {
    flex: 0 0 82%;
    height: 72vh;
    min-height: 420px;
    scroll-snap-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rh-panel video, .rh-panel img { transition: none; }
}

/* ---- Option B: Instagram embed panels ---- */
.rh-embed { cursor: default; }
.rh-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}

/* ===== SHOP BY STYLE (For Her / For Him) ===== */
.sb { padding-top: 13px; padding-bottom: 24px; }

.sb-head { text-align: center; margin-bottom: 32px; }
.sb-head h2 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-weight: 500;
  font-size: clamp(30px, 3.2vw, 44px);
  color: #3a0f27;
}
.sb-rule { display: block; width: 56px; height: 1px; background: #c9a45c; margin: 16px auto 0; }

.sb-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.sb-card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 380px;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  background: radial-gradient(120% 90% at 0% 0%, #4d1634 0%, #3a0f27 70%);
  box-shadow: 0 18px 40px -22px rgba(58, 15, 39, .55);
}
/* gold inner frame */
.sb-card::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(214, 179, 112, .38);
  pointer-events: none;
  z-index: 2;
}

.sb-text {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 12px 40px 40px;
}
.sb-label {
  font-family: "Figtree", sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #d6b370;
  margin-bottom: 14px;
}
.sb-text h3 {
  margin: 0 0 12px;
  font-family: "Cormorant Garamond", serif;
  font-weight: 500;
  font-size: clamp(34px, 3.4vw, 52px);
  line-height: 1.05;
  color: #fff;
}
.sb-text p {
  margin: 0 0 26px;
  max-width: 26ch;
  font-family: "Figtree", sans-serif;
  font-size: 15px;
  line-height: 1.65;
  color: rgba(255, 255, 255, .75);
}
.sb-btn {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  background: #d6b370;
  color: #3a0f27;
  font-family: "Figtree", sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: .03em;
  transition: background .25s;
}
.sb-btn i { font-style: normal; transition: transform .25s; }
.sb-card:hover .sb-btn { background: #fff; }
.sb-card:hover .sb-btn i { transform: translateX(5px); }

.sb-img { position: relative; overflow: hidden; }
.sb-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .9s ease;
}
.sb-card:hover .sb-img img { transform: scale(1.04); }
/* soft blend from the plum panel into the photo */
.sb-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #3a0f27 0%, rgba(58, 15, 39, 0) 38%);
}

@media (max-width: 960px) {
  .sb-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .sb-card { grid-template-columns: 1fr; min-height: 0; }
  .sb-img { order: -1; aspect-ratio: 4 / 3.4; }
  .sb-img::after { background: linear-gradient(0deg, #3a0f27 0%, rgba(58, 15, 39, 0) 40%); }
  .sb-text { padding: 26px 26px 34px; }
}
@media (prefers-reduced-motion: reduce) {
  .sb-card *, .sb-btn i { transition: none !important; }
}

/* ===== Shop by style: photo fit fix (head never cut) ===== */
@media (min-width: 561px) {
  .sb-card {
    grid-template-columns: 0.8fr 1.2fr;   /* wider photo area */
    min-height: 430px;                    /* taller card = more of the photo visible */
  }
}
.sb-img img {
  object-fit: cover;
  object-position: center 0% !important;  /* always anchor to the top */
  transform-origin: center top;           /* zoom from the top so the head stays in */
}
.sb-card:nth-child(2) .sb-img img {
  object-position: 70% 0% !important;     /* men's photo: shift to keep him centred */
}

/* ===== Hero: mobile auto-slider (overrides the earlier mobile block) ===== */
.rh-dots { display: none; }

@media (max-width: 800px) {
  .rh { gap: 0; }
  .rh-panel {
    flex: 0 0 100%;
    height: clamp(420px, 120vw, 640px);
    min-height: 0;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }
  .rh-cta { bottom: 24px; }

  .rh-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 14px 0 6px;
    background: #fff;
  }
  .rh-dots button {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: #d9cdbb;
    cursor: pointer;
    transition: width .3s, background .3s;
  }
  .rh-dots button.is-active { width: 24px; background: #3a0f27; }
}