/* ============================================================
   MONÈRA — ResourceDetails.cshtml.css
   Resource Detail Page  |  Static Razor Page
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400;1,600&family=Inter:wght@300;400;500;600&display=swap');

/* ── Tokens ── */
:root {
  --navy:       #022F38;
  --dark-navy:  #011C22;
  --gold:       #CDA77B;
  --warm-white: #F8F7F4;
  --text:       #112228;
  --muted:      #68757A;
  --border:     #e9e4dc;
  --shadow-sm:  0 2px 12px rgba(1,28,34,.07);
  --shadow-md:  0 8px 32px rgba(1,28,34,.12);
}

*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--warm-white);
  color: var(--text);
  font-size: 15px;
  line-height: 1.65;
  margin: 0;
}

.rd-container { max-width: 1100px; }

/* ─────────────────────────────────────────
   BREADCRUMB
───────────────────────────────────────── */
.rd-breadcrumb {
  padding: 16px 0 0;
  font-size: 13px;
  color: var(--muted);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}
.rd-breadcrumb a {
  color: var(--muted);
  text-decoration: none;
  transition: color .2s;
}
.rd-breadcrumb a:hover { color: var(--gold); }
.rd-sep { margin: 0 7px; }

/* ─────────────────────────────────────────
   RESOURCE HERO
───────────────────────────────────────── */
.resource-hero {
  padding: 32px 0 52px;
}

/* Left column */
.rh-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-right: 40px;
}

.rh-category {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

.rh-left h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(34px, 4.5vw, 52px);
  font-weight: 600;
  color: var(--navy);
  line-height: 1.1;
  margin: 0 0 18px;
}

.rh-desc {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 24px;
  max-width: 460px;
}

/* Meta row */
.rh-meta {
  display: flex;
  align-items: center;
  gap: 0;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.rh-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-right: 18px;
  margin-right: 18px;
  border-right: 1px solid var(--border);
}
.rh-meta-item:last-child {
  border-right: none;
  margin-right: 0;
  padding-right: 0;
}
.rh-meta-item i { font-size: 15px; }

/* Price */
.rh-price {
  margin-bottom: 24px;
}
.rh-price .price-value {
  font-family: 'Cormorant Garamond', serif;
  font-size: 52px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1;
}
.rh-price .price-currency {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  margin-left: 4px;
  vertical-align: middle;
}

/* Action buttons */
.rh-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

/* Trust indicators */
.rh-trust {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
}
.rh-trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--muted);
  padding-right: 16px;
  margin-right: 16px;
  border-right: 1px solid var(--border);
}
.rh-trust-item:last-child {
  border-right: none;
  margin-right: 0;
  padding-right: 0;
}
.rh-trust-item i { font-size: 14px; color: var(--muted); }

/* Right: mockup image */
.rh-right {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.rh-mockup {
  width: 100%;
  max-width: 520px;
  height: auto;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 16px 48px rgba(1,28,34,.15));
}

/* ─────────────────────────────────────────
   BUTTONS
───────────────────────────────────────── */
.btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 14px 26px;
  border: none;
  border-radius: 3px;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background .22s;
}
.btn-gold:hover { background: #b8905f; color: #fff; }

.btn-outline-preview {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--navy);
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  padding: 13px 24px;
  border: 1.5px solid var(--navy);
  border-radius: 3px;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background .22s, color .22s;
}
.btn-outline-preview:hover {
  background: var(--navy);
  color: #fff;
}

/* ─────────────────────────────────────────
   RESOURCE PREVIEW SECTION
───────────────────────────────────────── */
.preview-gallery {
  padding: 60px 0 64px;
  background: #fff;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-heading {
  text-align: center;
  margin-bottom: 12px;
}
.section-heading h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 600;
  color: var(--navy);
  margin: 0;
}
.section-gold-rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 44px;
}
.section-gold-rule::before,
.section-gold-rule::after {
  content: '';
  display: block;
  height: 1px;
  width: 44px;
  background: var(--gold);
}
.section-diamond {
  width: 6px;
  height: 6px;
  background: var(--gold);
  transform: rotate(45deg);
  display: inline-block;
}

/* Carousel wrapper */
.preview-carousel-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0;
}

.preview-carousel {
  display: flex;
  gap: 16px;
  overflow: hidden;
  flex: 1;
  scroll-behavior: smooth;
}

/* Preview card */
.preview-card {
  flex-shrink: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 5px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow .25s, transform .25s;
  cursor: pointer;
}
.preview-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

/* First card: dark cover */
.preview-card.cover-card {
  background: var(--navy);
  min-width: 160px;
  width: 160px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px 18px 20px;
  min-height: 220px;
}
.pc-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px;
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 16px;
}
.pc-cover-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  line-height: 1.3;
  flex: 1;
}
.pc-cover-img {
  width: 100%;
  height: 80px;
  object-fit: cover;
  border-radius: 2px;
  margin-top: 16px;
  opacity: .7;
}

/* Image preview cards */
.preview-card.preview-img-card {
  min-width: 240px;
  width: 240px;
  min-height: 220px;
  padding: 0;
  overflow: hidden;
  position: relative;
}
.pc-img-full {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  display: block;
}
.pc-img-num {
  position: absolute;
  top: 10px;
  left: 10px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  font-weight: 300;
  color: #fff;
  background: rgba(0,0,0,.35);
  padding: 2px 7px;
  border-radius: 3px;
  line-height: 1.4;
  pointer-events: none;
}

/* Content preview cards */
.preview-card.content-card {
  min-width: 200px;
  width: 200px;
  min-height: 220px;
}
.content-card .pc-header {
  padding: 14px 16px 10px;
  border-bottom: 1px solid var(--border);
}
.content-card .pc-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.3;
  margin: 0;
}
.content-card .pc-body {
  padding: 12px 16px;
}
.content-card .pc-preview-img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 2px;
  display: block;
}

/* Placeholder chart inside content card */
.pc-chart-placeholder {
  width: 100%;
  height: 140px;
  background: linear-gradient(135deg, #f0f4f6 0%, #e8eef1 100%);
  border-radius: 2px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 12px;
  gap: 6px;
}
.pc-bar {
  background: var(--navy);
  border-radius: 2px 2px 0 0;
  width: 14px;
  opacity: .7;
  transition: opacity .2s;
}
.pc-bar:nth-child(1) { height: 40%; }
.pc-bar:nth-child(2) { height: 65%; }
.pc-bar:nth-child(3) { height: 50%; }
.pc-bar:nth-child(4) { height: 80%; }
.pc-bar:nth-child(5) { height: 55%; }
.pc-bar:nth-child(6) { height: 90%; }
.pc-bar:nth-child(7) { height: 70%; }

.pc-table-placeholder {
  width: 100%;
  height: 140px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 8px;
  background: #f8f8f6;
  border-radius: 2px;
}
.pc-table-row {
  display: flex;
  gap: 3px;
  flex: 1;
}
.pc-table-cell {
  flex: 1;
  background: #e2ddd5;
  border-radius: 1px;
}
.pc-table-cell.header { background: var(--navy); opacity: .6; }

.pc-donut-placeholder {
  width: 100%;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: #f8f8f6;
  border-radius: 2px;
  padding: 12px;
}
.pc-donut {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 14px solid var(--navy);
  border-right-color: var(--gold);
  border-bottom-color: #a0b8c0;
  flex-shrink: 0;
}
.pc-donut-bars {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
}
.pc-donut-bar {
  height: 6px;
  border-radius: 3px;
  background: #d0d8dc;
}
.pc-donut-bar:nth-child(1) { width: 80%; background: var(--navy); opacity: .5; }
.pc-donut-bar:nth-child(2) { width: 60%; }
.pc-donut-bar:nth-child(3) { width: 70%; }
.pc-donut-bar:nth-child(4) { width: 45%; }

/* Carousel nav arrows */
.carousel-arrow {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  color: var(--muted);
  font-size: 16px;
  transition: border-color .2s, color .2s;
  z-index: 2;
}
.carousel-arrow:hover {
  border-color: var(--navy);
  color: var(--navy);
}
.carousel-arrow.prev { margin-right: 12px; }
.carousel-arrow.next { margin-left: 12px; }

/* Dots */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
}
.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  transition: background .2s;
  border: none;
  padding: 0;
}
.carousel-dot.active { background: var(--gold); }

/* ─────────────────────────────────────────
   WHAT YOU'LL FIND INSIDE
───────────────────────────────────────── */
.inside-section {
  padding: 64px 0 72px;
}

.inside-list {
  max-width: 700px;
  margin: 0 auto;
}

.inside-item {
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
}
.inside-item:first-child { border-top: 1px solid var(--border); }

.inside-item h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 6px;
  line-height: 1.2;
}
.inside-item p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
  line-height: 1.6;
}

/* ─────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────── */
@media (max-width: 991.98px) {
  .rh-left { padding-right: 0; margin-bottom: 36px; }
  .preview-card.cover-card  { min-width: 140px; width: 140px; }
  .preview-card.content-card { min-width: 170px; width: 170px; }
  .preview-card.preview-img-card { min-width: 200px; width: 200px; }
}

@media (max-width: 767.98px) {
  .rh-left h1 { font-size: 32px; }
  .rh-price .price-value { font-size: 40px; }
  .rh-meta { gap: 10px; }
  .rh-meta-item { border-right: none; padding-right: 0; margin-right: 0; }
  .rh-trust { gap: 10px; }
  .rh-trust-item { border-right: none; padding-right: 0; margin-right: 0; }
  .rh-actions { flex-direction: column; align-items: flex-start; }
  .rh-actions .btn-gold,
  .rh-actions .btn-outline-preview { width: 100%; justify-content: center; }
  .preview-card.cover-card  { min-width: 130px; width: 130px; }
  .preview-card.content-card { min-width: 150px; width: 150px; }
  .preview-card.preview-img-card { min-width: 170px; width: 170px; }
  .inside-list { max-width: 100%; }
}


/* ============================================================
   ADDED-TO-CART MODAL
   ============================================================ */

.atc-modal .modal-content {
  border-radius: 14px;
  border: none;
  overflow: hidden;
  position: relative;
}
.atc-modal .modal-body { padding: 0; }
.atc-modal__close {
  position: absolute;
  top: .75rem;
  right: .75rem;
  z-index: 10;
}

/* Left panel */
.atc-left {
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.atc-check {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #fff;
  flex-shrink: 0;
}

.atc-heading {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.55rem;
  font-weight: 600;
  color: var(--navy);
  margin: 0;
}

.atc-buttons {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  width: 100%;
}
.atc-btn-primary,
.atc-btn-secondary {
  width: 100%;
  justify-content: center;
}

/* Trust icons — horizontal 3-col */
.atc-trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  width: 100%;
  margin-top: .25rem;
}
.atc-trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: .25rem;
}
.atc-trust-item i {
  font-size: 1.1rem;
  color: var(--gold);
}
.atc-trust-item span {
  font-size: .7rem;
  color: var(--muted);
  line-height: 1.2;
}

/* Right panel */
.atc-right {
  background: var(--warm-white);
  border-left: 1px solid var(--border);
  padding: 2rem 1.75rem;
}
.atc-right__label {
  font-family: 'Inter', sans-serif;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .85rem;
}

/* Item row */
.atc-item-row {
  display: flex;
  align-items: flex-start;
  gap: .85rem;
  margin-bottom: 1rem;
}
.atc-item-img {
  width: 60px;
  height: 74px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}
.atc-item-cat {
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 .2rem;
}
.atc-item-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 .15rem;
  line-height: 1.3;
}
.atc-item-meta {
  font-size: .75rem;
  color: var(--muted);
  margin: 0;
}

/* Pricing breakdown */
.atc-pricing { margin-bottom: 1rem; }
.atc-pricing-row {
  display: flex;
  justify-content: space-between;
  font-size: .83rem;
  padding: .3rem 0;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}
.atc-pricing-row:last-child { border-bottom: none; }
.atc-pricing-row--total {
  color: var(--text);
  font-weight: 700;
  font-size: .95rem;
}
.atc-pricing-row--total .atc-price-val {
  color: var(--gold);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
}

/* Tip box */
.atc-tip {
  background: #FAF3E7;
  border-left: 3px solid var(--gold);
  border-radius: 0 6px 6px 0;
  padding: .75rem 1rem;
  font-size: .8rem;
  color: var(--text);
  line-height: 1.4;
}
.atc-tip strong { color: var(--gold); }

/* Responsive */
@media (max-width: 767.98px) {
  .atc-right {
    border-left: none;
    border-top: 1px solid var(--border);
  }
}
