/* ==========================================================================
   Engagement ring product detail page
   Image left, info right. Navy ink on white, no gold. Consistent with the
   catalog page's visual language.
   ========================================================================== */

:root {
  --rd-bg: #ffffff;
  --rd-ink: #0a1532;
  --rd-muted: #6b6b70;
  --rd-text: #2a334d;
  --rd-hairline: rgba(10, 21, 50, 0.12);
}

.rd-page {
  background: var(--rd-bg);
  color: var(--rd-ink);
  padding: 160px 24px 72px; /* sticky-nav clearance + bottom spacing */
  font-family: "Inter", Arial, Helvetica, sans-serif;
  max-width: 1280px;
  margin: 0 auto;
}
@media (max-width: 900px) {
  .rd-page {
    padding-top: 120px;
  }
}
@media (min-width: 769px) and (max-width: 1024px) {
  .rd-page {
    padding-top: 118px;
  }
}

/* Breadcrumb */
.rd-crumb {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rd-muted);
  margin-bottom: 36px;
}
.rd-crumb a {
  color: var(--rd-muted);
  text-decoration: none;
  transition: color 240ms ease;
}
.rd-crumb a:hover {
  color: var(--rd-ink);
}
.rd-crumb-sep {
  margin: 0 10px;
  opacity: 0.45;
}

/* Two-column product layout */
.rd-product {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: start;
}
@media (min-width: 900px) {
  .rd-product {
    grid-template-columns: 1.15fr 1fr;
    gap: 80px;
  }
}

/* LEFT: image */
.rd-media-frame {
  aspect-ratio: 1 / 1;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
@media (min-width: 900px) {
  .rd-media {
    position: sticky;
    top: 160px;
  }
}
.rd-media-frame img {
  width: 88%;
  height: 88%;
  object-fit: contain;
  transition: transform 700ms cubic-bezier(0.2, 0.65, 0.25, 1);
}
.rd-media-frame:hover img {
  transform: scale(1.04);
}

/* Thumbnail strip — shown only when a product has more than one photo.
   Scrolls horizontally on narrow screens rather than wrapping. */
.rd-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}
.rd-thumb {
  flex: 0 0 auto;
  width: 74px;
  height: 74px;
  padding: 0;
  background: #fff;
  border: 1px solid var(--cat-hairline, rgba(10, 21, 50, 0.12));
  border-radius: 6px;
  cursor: pointer;
  overflow: hidden;
  transition:
    border-color 200ms ease,
    box-shadow 200ms ease;
}
.rd-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.rd-thumb:hover {
  border-color: rgba(10, 21, 50, 0.35);
}
.rd-thumb.is-active {
  border-color: #b89860;
  box-shadow: 0 0 0 1px #b89860;
}
@media (max-width: 900px) {
  .rd-thumb {
    width: 62px;
    height: 62px;
  }
}

/* Editorial variant — men's bands are styled photos with real backgrounds,
   so the hero image fills its frame instead of floating on white. */
.rd-page--editorial .rd-media-frame {
  background: #11110f;
  border-radius: 12px;
}
.rd-page--editorial .rd-media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* RIGHT: info */
.rd-info {
  padding-top: 8px;
}

.rd-title {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 500;
  font-size: clamp(2.2rem, 4vw, 3rem);
  letter-spacing: 0.005em;
  line-height: 1.1;
  margin: 0 0 12px;
  color: var(--rd-ink);
}
.rd-caption {
  font-size: 16px;
  line-height: 1.55;
  color: var(--rd-text);
  margin: 0 0 22px;
  max-width: 440px;
}

.rd-rule {
  border: none;
  border-top: 1px solid var(--rd-hairline);
  margin: 8px 0 22px;
}

/* Static spec rows (Metal, etc.) */
.rd-spec-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0 16px;
  font-size: 15px;
}
.rd-spec-label {
  color: var(--rd-muted);
  font-size: 13px;
  letter-spacing: 0.06em;
}
.rd-spec-value {
  color: var(--rd-ink);
  font-weight: 500;
}

/* Metal swatches — links to the same design in its other golds. Self
   contained because the detail pages don't load catalog.css. */
.rd-metals {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0 16px;
}
.rd-metal-list {
  display: flex;
  gap: 10px;
}
.rd-metal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid transparent;
  text-decoration: none;
  transition:
    border-color 200ms ease,
    transform 200ms ease;
}
.rd-metal:hover {
  border-color: rgba(10, 21, 50, 0.4);
  transform: scale(1.06);
}
.rd-metal.is-active {
  border-color: #b89860;
}
.rd-swatch {
  display: block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid rgba(10, 21, 50, 0.18);
}
.rd-swatch-white {
  background: linear-gradient(135deg, #f5f5f7 0%, #d8d8dc 100%);
}
.rd-swatch-yellow {
  background: linear-gradient(135deg, #f3d999 0%, #c79f4a 100%);
}
.rd-swatch-rose {
  background: linear-gradient(135deg, #f4cbb4 0%, #c98975 100%);
}
.rd-swatch-two-tone {
  background: linear-gradient(135deg, #f3d999 0% 50%, #e2e2e6 50% 100%);
}

/* Ring size select */
.rd-size-label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--rd-muted);
  margin: 4px 0 12px;
}
.rd-size-wrap {
  position: relative;
  display: inline-block;
  margin-bottom: 32px;
}
.rd-size {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background: #fff;
  border: 1px solid var(--rd-ink);
  border-radius: 4px;
  font-family: inherit;
  font-size: 16px;
  color: var(--rd-ink);
  padding: 12px 44px 12px 18px;
  min-width: 130px;
  cursor: pointer;
  transition:
    border-color 200ms ease,
    box-shadow 200ms ease;
}
.rd-size:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(10, 21, 50, 0.12);
}
.rd-size-chev {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--rd-ink);
  display: inline-flex;
}

/* Long description */
.rd-detail {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--rd-text);
  margin: 4px 0 32px;
  max-width: 460px;
}

/* CTA button (matches our standard navy → black hover pattern) */
.rd-cta-btn {
  display: block;
  width: 100%;
  max-width: 460px;
  text-align: center;
  background: var(--rd-ink);
  color: #fff;
  text-decoration: none;
  padding: 22px 28px;
  font-family: "Inter", sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  border-radius: 6px;
  transition:
    background-color 320ms ease,
    transform 320ms ease,
    box-shadow 320ms ease;
  box-shadow: 0 4px 14px rgba(10, 21, 50, 0.18);
}
.rd-cta-btn:hover {
  background: #000;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(10, 21, 50, 0.28);
}

/* Expert link below the button */
.rd-expert {
  display: inline-block;
  margin-top: 18px;
  font-size: 14px;
  font-weight: 500;
  color: var(--rd-ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.rd-expert:hover {
  color: #000;
}

/* ==========================================================================
   "Need a Diamond Expert?" pull-up modal
   Slides up from below with a soft scrim. Four cards in a 2x2 grid
   stagger-fade in. White cards, navy ink, no gold.
   ========================================================================== */
.rd-modal {
  position: fixed;
  inset: 0;
  z-index: 9999; /* must clear the sticky site navbar */
  display: flex;
  align-items: flex-end; /* anchored bottom so it "pulls up" */
  justify-content: center;
  pointer-events: none;
}
.rd-modal.is-open {
  pointer-events: auto;
}

.rd-modal-scrim {
  position: absolute;
  inset: 0;
  background: rgba(10, 21, 50, 0.42);
  opacity: 0;
  transition: opacity 320ms ease;
  z-index: 1;
}
.rd-modal.is-open .rd-modal-scrim {
  opacity: 1;
}

.rd-modal-sheet {
  position: relative;
  z-index: 2;
  background: #fff;
  width: min(1080px, 100%);
  max-height: 92vh;
  border-radius: 28px 28px 0 0;
  padding: 48px 44px 56px;
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform 420ms cubic-bezier(0.2, 0.65, 0.25, 1);
  box-shadow: 0 -24px 60px rgba(10, 21, 50, 0.18);
}
.rd-modal.is-open .rd-modal-sheet {
  transform: translateY(0);
}

/* Desktop: float the sheet instead of stuck to bottom, with full rounding */
@media (min-width: 900px) {
  .rd-modal {
    align-items: center;
    padding: 24px;
  }
  .rd-modal-sheet {
    border-radius: 28px;
    max-height: 88vh;
    transform: translateY(30px);
    opacity: 0;
    transition:
      transform 420ms cubic-bezier(0.2, 0.65, 0.25, 1),
      opacity 320ms ease;
  }
  .rd-modal.is-open .rd-modal-sheet {
    transform: translateY(0);
    opacity: 1;
  }
}

.rd-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(10, 21, 50, 0.06);
  border: none;
  color: var(--rd-ink);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    background-color 240ms ease,
    transform 240ms ease;
}
.rd-modal-close:hover {
  background: rgba(10, 21, 50, 0.12);
  transform: scale(1.04);
}

.rd-modal-head {
  text-align: center;
  max-width: 540px;
  margin: 0 auto 32px;
}
.rd-modal-eyebrow {
  font-size: 11px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--rd-muted);
  margin: 0 0 10px;
}
.rd-modal-title {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 500;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  letter-spacing: 0.005em;
  line-height: 1.1;
  margin: 0 0 10px;
  color: var(--rd-ink);
}
.rd-modal-sub {
  font-size: 14.5px;
  color: var(--rd-text);
  margin: 0;
}

/* 3 long horizontal rectangles side by side. Stacks on small screens. */
.rd-modal-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 760px) {
  .rd-modal-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }
}

/* A few of the cards are <button> elements (open modals) instead of <a>s
   — reset native button styling so they match the anchor cards. */
.rd-opt-button {
  font-family: inherit;
  background: none;
  text-align: left;
  cursor: pointer;
  padding: 0;
  width: 100%;
}

/* Each contact card: horizontal layout with icon left, label right */
.rd-opt {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  background: #fff;
  border: 1px solid var(--rd-hairline);
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  min-height: 112px;
  transform: translateY(18px);
  opacity: 0;
  transition:
    transform 480ms cubic-bezier(0.2, 0.65, 0.25, 1),
    opacity 480ms cubic-bezier(0.2, 0.65, 0.25, 1),
    box-shadow 320ms ease,
    border-color 240ms ease;
  transition-delay: calc(120ms + var(--rd-i, 0) * 80ms);
}
.rd-modal.is-open .rd-opt {
  transform: translateY(0);
  opacity: 1;
}
.rd-opt:hover {
  border-color: rgba(10, 21, 50, 0.4);
  box-shadow: 0 16px 32px rgba(10, 21, 50, 0.1);
}

/* Icon slot on the left */
.rd-opt-art {
  width: 112px;
  flex-shrink: 0;
  background: #f7f7f8;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--rd-hairline);
  transition: background-color 320ms ease;
}
.rd-opt:hover .rd-opt-art {
  background: #f1f2f4;
}
.rd-opt-art svg {
  width: 56px;
  height: auto;
}

/* Label + chevron on the right */
.rd-opt-row {
  flex: 1;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.rd-opt-label {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 500;
  font-size: 18px;
  color: var(--rd-ink);
  letter-spacing: 0.005em;
  line-height: 1.25;
}
.rd-opt-arrow {
  color: var(--rd-ink);
  flex-shrink: 0;
  transition: transform 320ms cubic-bezier(0.2, 0.65, 0.25, 1);
}
.rd-opt:hover .rd-opt-arrow {
  transform: translateX(4px);
}

@media (max-width: 600px) {
  .rd-crumb,
  .rd-info {
    text-align: center;
  }

  .rd-caption,
  .rd-detail,
  .rd-spec-row,
  .rd-cta-btn {
    margin-left: auto;
    margin-right: auto;
  }

  .rd-expert,
  button.rd-expert {
    display: block;
    width: 100%;
    text-align: center;
  }

  .rd-modal-sheet {
    padding: 36px 22px 32px;
  }
  .rd-opt-art {
    width: 96px;
  }
  .rd-opt-art svg {
    width: 48px;
  }
  .rd-opt-row {
    padding: 16px 18px;
  }
  .rd-opt-label {
    font-size: 16px;
  }
}

/* ==========================================================================
   Schedule a Viewing form (uses .rd-modal scaffolding above)
   ========================================================================== */
.rd-form-sheet {
  max-width: 720px;
}

.rd-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 4px;
}
.rd-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.rd-field-label {
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--rd-muted);
}
.rd-field input,
.rd-field textarea {
  font-family: inherit;
  font-size: 15px;
  color: var(--rd-ink);
  background: #fff;
  border: 1px solid var(--rd-hairline);
  border-radius: 8px;
  padding: 13px 14px;
  outline: none;
  transition:
    border-color 200ms ease,
    box-shadow 200ms ease;
  width: 100%;
  resize: vertical;
}
.rd-field input:focus,
.rd-field textarea:focus {
  border-color: var(--rd-ink);
  box-shadow: 0 0 0 3px rgba(10, 21, 50, 0.1);
}
.rd-field input::placeholder,
.rd-field textarea::placeholder {
  color: rgba(10, 21, 50, 0.35);
}

/* Helper copy under a field (e.g. lead-time note under Preferred Date) */
.rd-field-help {
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--rd-muted);
  margin-top: 8px;
  display: block;
}
.rd-field-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width: 600px) {
  .rd-field-row {
    grid-template-columns: 1fr 1fr;
  }
}

.rd-form-error {
  margin: 0;
  color: #b3261e;
  font-size: 13px;
}
.rd-form-submit {
  margin: 10px auto 0;
  display: block;
}

/* Success state */
.rd-form-success {
  text-align: center;
  padding: 12px 8px 8px;
}
.rd-form-success-icon {
  margin: 0 auto 18px;
}
.rd-form-success .rd-modal-title {
  margin-bottom: 12px;
}
.rd-form-success .rd-cta-btn {
  margin-top: 28px;
  width: auto;
  display: inline-block;
}

/* The expert link is now a button — strip default button styling */
button.rd-expert {
  font-family: inherit;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-align: left;
}

/* "Not found" fallback (when URL has a missing ring id) */
.rd-missing {
  text-align: center;
  padding: 80px 20px;
  color: var(--rd-muted);
}
.rd-missing a {
  color: var(--rd-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 600px) {
  button.rd-expert {
    width: 100%;
    text-align: center;
  }
}

@media (min-width: 769px) and (max-width: 899px) {
  .rd-crumb,
  .rd-info {
    text-align: center;
  }

  .rd-caption,
  .rd-detail,
  .rd-spec-row,
  .rd-cta-btn {
    margin-left: auto;
    margin-right: auto;
  }

  button.rd-expert {
    width: 100%;
    text-align: center;
  }
}
