/* Lecture product page - design v1 (scoped to body.lp-page).
   Visual rules only. No display toggles, IDs, classes or data attributes are changed. */

.lp-page {
  --lp-ink: #1d1d1f;
  --lp-muted: #6e6e75;
  --lp-hair: #e0e0e6;
  --lp-surface: #ffffff;
  --lp-fill: #f3f3f7;
  --lp-accent: #e8485c;
  --lp-accent-tint: #fdedef;
  font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--lp-ink);
  background-color: #f6f6f8 !important;
}

/* Keep the header area as it is; only the page content below it is styled */
.lp-page .main-section { width: 100%; margin: 0; padding: 0 0 64px; }
.lp-page .mobilewidth { max-width: 1312px; margin: 0 auto; padding: 0 64px; box-sizing: border-box; }
.lp-page .main-section .row { display: grid; grid-template-columns: minmax(0, 520px) minmax(0, 1fr); gap: 56px; align-items: start; margin: 40px 0 0; }
.lp-page .main-section .row > [class*="col-"] { width: auto; max-width: none; flex: none; padding: 0; }

/* Image card */
.lp-page .img-card {
  position: relative; width: 100%; height: auto; aspect-ratio: 1 / 1;
  background: var(--lp-surface); border: 1px solid var(--lp-hair); border-radius: 28px;
  padding: 32px; box-shadow: 0 8px 24px rgba(0,0,0,0.05); display: flex; align-items: center; justify-content: center;
}
.lp-page .img-card img { width: 100%; height: 100%; object-fit: contain; border-radius: 16px; }
.lp-page .ribbon {
  position: absolute; top: 22px; left: 22px; z-index: 2; padding: 6px 12px; border-radius: 10px;
  background: var(--lp-accent); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: 0.02em;
}
.lp-page .badge-circle-hours {
  position: absolute; right: 22px; bottom: 22px; z-index: 2; width: 76px; height: 76px; border-radius: 50%;
  background: var(--lp-ink); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.lp-page .hours-number { font-size: 22px; font-weight: 700; line-height: 1; }
.lp-page .hours-text { font-size: 11px; font-weight: 500; opacity: 0.8; }

/* Product info */
.lp-page .product-name {
  margin: 0; font-size: clamp(1.9rem, 3.2vw, 2.75rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.12;
  color: var(--lp-ink); overflow-wrap: break-word;
}
.lp-page .author-name { margin: 12px 0 0 !important; font-size: 15px; color: var(--lp-muted); }
.lp-page .author-name a { color: var(--lp-ink) !important; font-weight: 700; }
.lp-page .author-name span { color: var(--lp-muted) !important; }
.lp-page .product-description { margin: 20px 0 0; font-size: 17px; line-height: 1.6; color: var(--lp-muted); white-space: pre-line; }
.lp-page .divider-line { border-top: 1px solid var(--lp-hair); margin: 28px 0 24px; }

/* Option groups as selectable cards */
.lp-page .attribute-group > p { margin: 0 0 10px; font-size: 15px; font-weight: 700; color: var(--lp-ink); }
.lp-page .attribute-group + .attribute-group { margin-top: 20px !important; }
.lp-page .attribute-group > .d-flex { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.lp-page .attribute-pill {
  position: relative; width: 100%; max-width: none !important; flex-direction: column; align-items: flex-start !important;
  margin: 0 !important; padding: 14px 16px !important; border: 1px solid var(--lp-hair) !important; border-radius: 14px !important;
  background: var(--lp-surface); color: var(--lp-ink); font-size: 15px; line-height: 1.3; transform: none;
}
.lp-page .attribute-pill strong { font-weight: 700; color: var(--lp-ink); }
.lp-page .attribute-pill.active { background: var(--lp-fill); border-color: var(--lp-ink) !important; box-shadow: inset 0 0 0 1px var(--lp-ink); }
.lp-page .attribute-pill.active::after {
  content: ""; position: absolute; top: 14px; right: 14px; width: 16px; height: 16px; border-radius: 50%; background: var(--lp-ink);
}
.lp-page .attribute-pill.active::before {
  content: ""; position: absolute; top: 19px; right: 19px; width: 5px; height: 8px; z-index: 1;
  border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.lp-page .attribute-pill .text-decoration-line-through { color: var(--lp-muted); font-weight: 400; }

/* Add to cart */
.lp-page .add-to-cart { margin-top: 28px !important; }
.lp-page .add-to-cart .btn-dark, .lp-page .add-to-cart button {
  width: 100%; min-height: 56px; padding: 12px 18px; border: 0; border-radius: 14px;
  background: var(--lp-ink); color: #fff; font-size: 15px; font-weight: 700;
}
.lp-page .add-to-cart button:disabled { background: #c9c9cf; color: #fff; }
.lp-page .add-to-cart small { font-size: 11px; font-weight: 400; opacity: 0.8; }
.lp-page p.fs13 { margin: 16px 0 0; font-size: 13px; color: var(--lp-muted); }

/* Sections below the hero */
.lp-page .product-details {
  max-width: 1312px; margin: 56px auto 0; padding: 40px; background: var(--lp-surface);
  border: 1px solid var(--lp-hair); border-radius: 24px; box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.lp-page .product-details h3 { margin: 0; font-size: 26px; font-weight: 700; letter-spacing: -0.02em; color: var(--lp-ink); }
.lp-page .product-details .dividing-line { border-top: 1px solid var(--lp-hair); margin: 16px 0 24px; }
.lp-page .author-info { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 32px; align-items: start; }
.lp-page .author-img { width: 180px; height: 180px; object-fit: cover; border-radius: 20px; }
.lp-page .author-desc h3 { font-size: 22px; margin-bottom: 8px; }
.lp-page .author-desc p { font-size: 16px; line-height: 1.6; color: var(--lp-muted); }
.lp-page .author-desc .btn { border: 0; padding: 0; background: none; font-size: 14px; font-weight: 700; color: var(--lp-ink); }
.lp-page .author-desc .btn a { color: var(--lp-ink) !important; }

.lp-page .videos-wrapper { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.lp-page .video-card {
  position: relative; aspect-ratio: 16 / 9; border-radius: 18px; background: var(--lp-ink); cursor: pointer; overflow: hidden;
}
.lp-page .play-button {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 56px; height: 56px; border-radius: 50%; background: #fff;
}
.lp-page .play-button::after {
  content: ""; position: absolute; left: 22px; top: 18px; border-left: 16px solid var(--lp-ink);
  border-top: 10px solid transparent; border-bottom: 10px solid transparent;
}

/* Responsive */
@media (max-width: 991.98px) {
  .lp-page .mobilewidth { padding: 0 32px; }
  .lp-page .main-section .row { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .lp-page .img-card { max-width: 520px; margin: 0 auto; }
  .lp-page .videos-wrapper { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767.98px) {
  .lp-page .mobilewidth { padding: 0 16px; }
  .lp-page .product-name { font-size: 1.75rem; }
  .lp-page .attribute-group > .d-flex { grid-template-columns: minmax(0, 1fr); }
  .lp-page .product-details { padding: 24px 20px; margin-top: 40px; }
  .lp-page .author-info { grid-template-columns: minmax(0, 1fr); }
  .lp-page .author-img { width: 120px; height: 120px; }
  .lp-page .videos-wrapper { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Breadcrumb (preview) ---------- */
.lp-page .lp-crumbs {
  max-width: 1312px; margin: 0 auto; padding: 24px 64px 0; box-sizing: border-box;
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--lp-muted);
}
.lp-page .lp-crumbs a { color: var(--lp-muted); text-decoration: none; }
.lp-page .lp-crumbs a:hover { color: var(--lp-ink); }
.lp-page .lp-crumbs .lp-crumb-sep { color: #b0b0b8; }
@media (max-width: 991.98px) { .lp-page .lp-crumbs { padding: 20px 32px 0; } }
@media (max-width: 575.98px) { .lp-page .lp-crumbs { padding: 16px 16px 0; } }

/* Space for the sticky header: breadcrumb must start below it */
.lp-page .lp-crumbs { padding-top: var(--lp-header-space, 120px); }
@media (max-width: 991.98px) { .lp-page .lp-crumbs { padding-top: 104px; } }
@media (max-width: 575.98px) { .lp-page .lp-crumbs { padding-top: 92px; } }

/* ---------- Spacing: header, content and footer (final) ---------- */
.lp-page .section-1 { background: transparent !important; height: auto; padding: 0; }
.lp-page .include-header { padding-top: 0 !important; }
.lp-page .lp-crumbs { padding-top: 40px; }
.lp-page .main-section { padding-bottom: 80px; }
.lp-page .product-details:last-of-type { margin-bottom: 0; }
@media (max-width: 991.98px) { .lp-page .lp-crumbs { padding-top: 32px; } .lp-page .main-section { padding-bottom: 64px; } }
@media (max-width: 575.98px) { .lp-page .lp-crumbs { padding-top: 24px; } .lp-page .main-section { padding-bottom: 48px; } }

/* ---------- Option cards (live check): even heights, full width when a group has one option ---------- */
.lp-page .attribute-group > .d-flex { align-items: stretch; }
.lp-page .attribute-group > .d-flex > .attribute-pill:only-child { grid-column: 1 / -1; }
.lp-page .attribute-pill {
  min-height: 84px; display: flex; flex-direction: column; justify-content: center; gap: 6px;
  padding: 14px 40px 14px 16px !important;
}
.lp-page .attribute-pill .text-decoration-line-through { display: inline-block; margin-right: 6px; }
.lp-page .attribute-pill strong { font-size: 15px; }
.lp-page .attribute-pill.active::after { top: 50%; transform: translateY(-50%); right: 14px; }
.lp-page .attribute-pill.active::before { top: calc(50% - 4px); right: 19px; }
@media (max-width: 575.98px) {
  .lp-page .attribute-pill { min-height: 76px; padding: 12px 36px 12px 14px !important; }
}

/* ---------- Header: not sticky on this page, so it never covers the product ---------- */
.lp-page .sticky-nav { position: relative !important; top: auto !important; }

/* ---------- Option groups: 3 per row on desktop, 2 on tablet and phone, 1 on very small screens ---------- */
.lp-page .attribute-group > .d-flex {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(0, 1fr));
  gap: 12px;
}
@media (min-width: 1200px) { .lp-page .attribute-group > .d-flex { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 576px) and (max-width: 1199.98px) { .lp-page .attribute-group > .d-flex { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575.98px) { .lp-page .attribute-group > .d-flex { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 359.98px) { .lp-page .attribute-group > .d-flex { grid-template-columns: minmax(0, 1fr); } }
.lp-page .attribute-group > .d-flex > .attribute-pill:only-child { grid-column: 1 / -1; }

/* ===== Product page only: layout fixes from live check ===== */

/* Left: keep the image beside the options while the user scrolls the options */
.lp-page .main-section > .mobilewidth > .row > [class*="col-md-4"] { position: sticky; top: 24px; align-self: start; }

/* Options: groups with several choices use the full row (3 per row on desktop);
   groups with a single choice sit side by side, 3 per row, so the space is used */
.lp-page .product-attributes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px 16px;
  margin-top: 8px !important;
}
.lp-page .product-attributes > .attribute-group { margin: 0 !important; min-width: 0; }
.lp-page .product-attributes > .attribute-group:has(.attribute-pill + .attribute-pill) { grid-column: 1 / -1; }
.lp-page .attribute-group > p { margin-bottom: 8px; letter-spacing: 0.01em; }

/* Single-choice cards: shorter and tidy */
.lp-page .attribute-group > .d-flex > .attribute-pill:only-child { min-height: 64px; padding: 12px 40px 12px 16px !important; font-size: 14px; }

/* Multi-choice cards keep their size */
.lp-page .attribute-group > .d-flex > .attribute-pill:not(:only-child) { font-size: 14px; }

@media (max-width: 991.98px) {
  .lp-page .product-attributes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-page .main-section > .mobilewidth > .row > [class*="col-md-4"] { position: static; }
}
@media (max-width: 575.98px) {
  .lp-page .product-attributes { grid-template-columns: minmax(0, 1fr); }
  .lp-page .attribute-group > .d-flex > .attribute-pill:only-child { min-height: 56px; }
}

/* ===== Product page only: more space between the header and the main content ===== */
.lp-page .lp-crumbs { padding-top: 56px; }
.lp-page .main-section > .mobilewidth > .row { margin-top: 28px; }
@media (max-width: 991.98px) {
  .lp-page .lp-crumbs { padding-top: 44px; }
  .lp-page .main-section > .mobilewidth > .row { margin-top: 24px; }
}
@media (max-width: 575.98px) {
  .lp-page .lp-crumbs { padding-top: 32px; }
  .lp-page .main-section > .mobilewidth > .row { margin-top: 20px; }
}

/* ===== Product page only: show the full poster (no side cut-off) ===== */
.lp-page .img-card {
  aspect-ratio: 4 / 5 !important; height: auto !important; background: #f1eeec; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.lp-page .img-card img {
  position: static !important; width: 100% !important; height: 100% !important; max-width: 100% !important;
  object-fit: contain !important; border-radius: 16px; margin: 0;
}
