/* ══════════════════════════════════════════════════════════
   Studio Nocturne — site-wide header / toggle layer
   Loaded via the CMS Header UDT ({mpc_css file='css/studio-nocturne.css'})
   and directly in header.php for member-area pages.

   Scope: header bar background + hamburger MENU toggle button only.
   Drawer styles live inline in mobilemenu.php (scoped to .menu-container).
   ══════════════════════════════════════════════════════════ */

/* ── 1. Header bar — pure black ─────────────────────────── */
header.static,
header.absolute {
  background: #0a0a0a !important;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
/* The CMS header uses the design-tool class name below. This project does not
   ship Tailwind, so provide its intended zero-bottom-padding utility here. */
header.static.pb-\[0px\] {
  padding-bottom: 0 !important;
}

/* ── 2. Hamburger MENU toggle button ─────────────────────── */

/* Grid layout: MENU/CLOSE label (::after, col 1) + bars (col 2). */
header .mobile-menu {
  display: grid !important;
  grid-template-columns: auto 20px !important;
  grid-template-rows: repeat(3, 2px) !important;
  column-gap: 10px !important;
  row-gap: 5px !important;
  align-items: center !important;
  align-content: center !important;
  justify-content: center !important;
  text-align: center;
  position: static !important;      /* in-flow: flex row places it last */
  transform: none !important;
  flex-shrink: 0;
  min-width: 52px;
  min-height: 44px;
  width: auto;
  height: auto;
  border: 1px solid rgba(187,214,226,.32) !important;
  border-radius: 4px !important;
  background: rgba(255,255,255,.035) !important;
  color: #fff !important;
  padding: .5rem .85rem !important;
  cursor: pointer;
  z-index: 9999;
  transition: background .2s, border-color .2s !important;
}

/* Guests on mobile — ensure grid so button renders correctly */
@media screen and (max-width: 900px) {
  header .mobile-menu {
    display: inline-grid !important;
  }
}

/* ── CSS-drawn hamburger: three bars placed in grid col 2 ─── */
header .mobile-menu .line-1,
header .mobile-menu .line-2,
header .mobile-menu .line-3 {
  display: block !important;
  width: 20px !important;
  height: 2px !important;
  background: #fff !important;
  border: none !important;
  border-top: none !important;
  border-radius: 1px;
  margin: 0 !important;
  align-self: center !important;
  grid-column: 2 !important;
  /* transition controlled per-property below */
  transition: transform .28s ease, opacity .2s ease !important;
  will-change: transform, opacity;
}

/* Explicit row placement */
header .mobile-menu .line-1 { grid-row: 1 !important; }
header .mobile-menu .line-2 { grid-row: 2 !important; }
header .mobile-menu .line-3 { grid-row: 3 !important; }

/* Suppress any ::before content (old red dot lived here) */
header .mobile-menu::before {
  content: none !important;
  display: none !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* ── "MENU" / "CLOSE" label: grid col 1, spans all 3 bar rows ── */
header .mobile-menu::after {
  content: 'MENU' !important;
  display: block !important;
  grid-column: 1 !important;
  grid-row: 1 / 4 !important;
  align-self: center !important;
  position: static !important;
  background: transparent !important;
  box-shadow: none !important;
  color: rgba(255,255,255,.65) !important;
  font-size: .5rem !important;
  font-weight: 800 !important;
  letter-spacing: .2em !important;
  text-transform: uppercase !important;
  white-space: nowrap !important;
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif !important;
  line-height: 1 !important;
  margin: 0 !important;
  pointer-events: none !important;
}
/* Keep the existing text close control outside the phone-specific treatment. */
header .mobile-menu.toggle::after,
header.menu-open .mobile-menu::after {
  content: 'CLOSE' !important;
}

/* ── 3. Hide the full text nav — hamburger handles all navigation ── */
header nav.menu {
  display: none !important;
}

/* ── 4. Header outer row: logo always inline with MENU at every viewport ──
   media.css @media(max-width:900px) sets display:block on this element;
   we must override it with !important to keep the flex row at all widths.  */
header > div.flex {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 14px 0 !important;
}
header .logo {
  margin-top: 0 !important;
  padding-top: 0 !important;
  flex-shrink: 1;
  min-width: 0;
  display: flex !important;
  align-items: center !important;
}
header .logo > a {
  display: flex !important;
  align-items: center !important;
  line-height: 0 !important;
}
header .logo img {
  display: block !important;
  margin: 0 !important;
  vertical-align: middle !important;
}
header .menu,
header .menu-cart {
  margin-top: 0 !important;
}

/* ── 5. Header-right flex row: [cart] [Get Started] [Login] [MENU] ── */
header .header-right {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding-top: 0 !important;
  margin-top: 0 !important;
}

header nav.menu-cart {
  display: flex !important;
  align-items: center !important;
  margin-top: 0 !important;
}

/* ── 5b. At narrow viewports hide the cart/login strip — MENU only ──
   Must appear AFTER the unconditional display:flex rule above so the
   media-query declaration wins the cascade at ≤900px.              */
@media screen and (max-width: 900px) {
  header nav.menu-cart {
    display: none !important;
  }
}
header nav.menu-cart ul {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
header nav.menu-cart li {
  margin: 0 !important;
  padding: 0 !important;
}

/* ── 5. Guest CTA buttons — 4px radius ─────────────────────── */
/* "Get Started" orange button */
header nav.menu-cart a.button-signup {
  display: inline-block !important;
  background: #ff8618 !important;
  color: #fff !important;
  border-radius: 4px !important;
  padding: .45rem 1.1rem !important;
  font-size: .82rem !important;
  font-weight: 700 !important;
  letter-spacing: .03em !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  border: none !important;
  margin: 0 !important;
  line-height: 1.4 !important;
}
header nav.menu-cart a.button-signup:hover {
  background: #e07610 !important;
}
/* "Login" plain link → subtle outlined button */
header nav.menu-cart a#_logout {
  display: inline-block !important;
  border-radius: 4px !important;
  border: 1px solid rgba(255,255,255,.28) !important;
  color: #fff !important;
  padding: .45rem .85rem !important;
  font-size: .82rem !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  background: transparent !important;
  letter-spacing: .02em !important;
  line-height: 1.4 !important;
}
header nav.menu-cart a#_logout:hover {
  background: rgba(255,255,255,.08) !important;
  border-color: rgba(255,255,255,.5) !important;
}

/* ── Animate bars into × when drawer is open ─────────────── */
/* Icon height: 2px + 5px gap + 2px + 5px gap + 2px = 16px total.
   line-1 center = 1px, line-3 center = 15px, icon center = 8px.
   translateY moves each bar to overlap at the center before rotating,
   without disturbing the flex flow of sibling elements. */
header .mobile-menu.toggle .line-1,
header.menu-open .mobile-menu .line-1 {
  transform: translateY(7px) rotate(45deg) !important;
  margin: 0 !important;
}
/* line-2 fades out in place (keep margin so layout is stable) */
header .mobile-menu.toggle .line-2,
header.menu-open .mobile-menu .line-2 {
  opacity: 0 !important;
}
/* line-3 moves up 7px to meet line-1 at center, rotates counter */
header .mobile-menu.toggle .line-3,
header.menu-open .mobile-menu .line-3 {
  transform: translateY(-7px) rotate(-45deg) !important;
  margin: 0 !important;
}

/* Hover / focus */
header .mobile-menu:hover,
header .mobile-menu:focus-visible {
  background: rgba(255,134,24,.88) !important;
  border-color: rgba(255,134,24,1) !important;
}
header .mobile-menu:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

/* On phones, the opened fixed control is a compact close target rather than
   a second text label. The untouched closed state above remains the MENU
   button at every viewport. */
@media screen and (max-width: 640px) {
  header .mobile-menu.toggle,
  header.menu-open .mobile-menu {
    display: inline-grid !important;
    grid-template-columns: 20px !important;
    grid-template-rows: repeat(3, 2px) !important;
    column-gap: 0 !important;
    row-gap: 5px !important;
    width: 44px !important;
    min-width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
    padding: 0 !important;
    box-sizing: border-box;
    background: rgba(13,25,33,.96) !important;
  }
  header .mobile-menu.toggle::after,
  header.menu-open .mobile-menu::after {
    content: none !important;
    display: none !important;
  }
  header .mobile-menu.toggle .line-1,
  header .mobile-menu.toggle .line-2,
  header .mobile-menu.toggle .line-3,
  header.menu-open .mobile-menu .line-1,
  header.menu-open .mobile-menu .line-2,
  header.menu-open .mobile-menu .line-3 {
    grid-column: 1 !important;
  }
  header .mobile-menu.toggle:active,
  header.menu-open .mobile-menu:active {
    background: rgba(255,134,24,.72) !important;
  }
}

/* ── 3. Accessibility / reduced-motion ──────────────────── */
@media (prefers-reduced-motion: reduce) {
  header .mobile-menu,
  header .mobile-menu .line-1,
  header .mobile-menu .line-2,
  header .mobile-menu .line-3 {
    transition-duration: .01ms !important;
  }
}

/* ═══════════════════════════════════════════════════════
   SHOP PAGE — Magazine Lead redesign
   ═══════════════════════════════════════════════════════ */

/* Match main area to the grey card background — eliminates the white gap */
.mpc-shop-main {
  background: #f3f3f4 !important;
}

/* Full-bleed shop grid wrapper — remove the 96% width indent */
.mpc-shop-grid-wrap {
  width: 100% !important;
  max-width: 100% !important;
}

/* Hide old search bar + category sidebar on the new shop layout */
.mpc-shop-fullwidth .category-col-sidebar { display: none !important; }

/* Full-width content column */
.mpc-gallery-full {
  width: 100% !important;
  max-width: 100% !important;
  padding-left: 0 !important;
}

/* ── Hero strip ───────────────────────────────────────── */
.mpc-shop-hero {
  background: #0a0a0a;
  padding: 20px 24px 24px;
}

.mpc-hero-strip {
  display: flex;
  gap: 16px;
  height: 224px;
  max-width: 1280px;
  margin: 0 auto;
}

.mpc-hero-featured {
  flex: 2.2;
  border-radius: 16px;
  overflow: hidden;
  background: #222 no-repeat center center / cover;
  position: relative;
  display: block;
  text-decoration: none !important;
}

.mpc-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top right, rgba(0,0,0,.8), rgba(0,0,0,.3), rgba(0,0,0,.1));
  pointer-events: none;
}

/* Also a bottom vignette */
.mpc-hero-featured::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.5) 0%, transparent 50%);
  pointer-events: none;
}

/* "Featured this week" — dark translucent pill, orange text (matches mockup) */
.mpc-hero-featured-label {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(4px);
  color: #ff8618;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  padding: 6px 14px;
  border-radius: 0 0 12px 0;
}

/* Eyebrow: category · difficulty */
.mpc-hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px !important;
  font-weight: 700 !important;
  color: rgba(255,255,255,.5) !important;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin: 0 0 2px !important;
}

.mpc-hero-dot {
  color: rgba(255,255,255,.25);
  font-weight: 400;
}

/* Stars + price row */
.mpc-hero-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px !important;
}

.mpc-hero-stars {
  display: flex;
  gap: 2px;
}

.mpc-hero-stars .fas.fa-star {
  font-size: 11px;
  color: #f59e0b;
}

.mpc-hero-price {
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #fff !important;
}

.mpc-hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  z-index: 1;
}

.mpc-hero-eyebrow {
  font-size: 10px !important;
  font-weight: 700 !important;
  color: rgba(255,255,255,.5) !important;
  text-transform: uppercase;
  letter-spacing: .12em;
  margin: 0 0 4px !important;
}

.mpc-hero-title {
  font-size: 20px !important;
  font-weight: 700 !important;
  color: #fff !important;
  line-height: 1.3 !important;
  margin: 0 0 16px !important;
  max-width: 280px;
}

.mpc-hero-actions { display: flex; align-items: center; gap: 8px; }

.mpc-btn-preview {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ff8618;
  color: #fff !important;
  font-size: 14px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 12px;
  transition: background .15s;
  text-decoration: none !important;
}

.mpc-hero-featured:hover .mpc-btn-preview { background: #e07610; }

/* ── All Access panel ────────────────────────────────── */
.mpc-hero-allaccess {
  flex: 1;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #0c0c0c;
  border: 1px solid rgba(255,255,255,.05);
}

.mpc-allaccess-image {
  position: relative;
  overflow: hidden;
  flex: 0 0 58%;
}

.mpc-allaccess-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.mpc-allaccess-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.5) 0%, rgba(0,0,0,.1) 50%, #0c0c0c 100%);
}

.mpc-allaccess-badge {
  position: absolute;
  top: 10px;
  left: 12px;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  padding: 4px 10px;
  border-radius: 999px;
}

.mpc-allaccess-content {
  flex: 1;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px 16px;
}

.mpc-allaccess-title {
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #fff !important;
  line-height: 1.3;
  margin: 0 0 4px !important;
}

.mpc-allaccess-title span { color: #ff8618; }

.mpc-allaccess-sub {
  font-size: 10px !important;
  color: rgba(255,255,255,.7) !important;
  margin: 0 !important;
}

.mpc-btn-trial {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ff8618;
  color: #fff !important;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 12px;
  text-decoration: none !important;
  transition: background .15s;
  flex-shrink: 0;
  white-space: nowrap;
}

.mpc-btn-trial:hover { background: #e07610; }

/* ── Slim filter bar ─────────────────────────────────── */
.mpc-filter-bar {
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #e5e5e5;
  position: sticky;
  top: 0;
  z-index: 100;
}

.mpc-filter-bar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 46px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.mpc-filter-label {
  font-size: 14px;
  font-weight: 700;
  color: #111;
  white-space: nowrap;
}

.mpc-filter-divider {
  width: 1px;
  height: 16px;
  background: #ddd;
  flex-shrink: 0;
}

.mpc-filter-select-wrap { display: flex; }

.mpc-filter-select {
  appearance: none;
  -webkit-appearance: none;
  background: #f5f5f5 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23999' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 10px center;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 5px 28px 5px 10px;
  font-size: 13px;
  color: #444;
  cursor: pointer;
  transition: border-color .15s;
}

.mpc-filter-select:hover,
.mpc-filter-select:focus {
  border-color: #ff8618;
  outline: none;
}

.mpc-search-wrap { position: relative; flex: 1; max-width: 240px; }

.mpc-search-icon {
  position: absolute;
  left: 9px;
  top: 50%;
  transform: translateY(-50%);
  width: 13px;
  height: 13px;
  color: #aaa;
  pointer-events: none;
}

.mpc-search-input {
  width: 100%;
  background: #f5f5f5;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 5px 10px 5px 30px;
  font-size: 13px;
  color: #333;
  transition: border-color .15s, box-shadow .15s;
  box-sizing: border-box;
}

.mpc-search-input:focus {
  outline: none;
  border-color: #ff8618;
  box-shadow: 0 0 0 3px rgba(255,134,24,.1);
}

.mpc-filter-count {
  margin-left: auto;
  font-size: 12px;
  color: #999;
  white-space: nowrap;
}

.mpc-filter-mobile-btn {
  display: none !important;
  align-items: center;
  gap: 6px;
  background: none;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 5px 12px;
  font-size: 13px;
  color: #555;
  cursor: pointer;
  text-decoration: none;
}

@media (max-width: 768px) {
  /* Filter button first, search input fills remaining space */
  .mpc-filter-bar-inner     { flex-wrap: nowrap; }
  .mpc-filter-mobile-btn    { display: flex !important; order: 1; flex-shrink: 0; }
  .mpc-search-wrap          { display: flex !important; order: 2; flex: 1; max-width: none; }
  .mpc-filter-select-wrap,
  .mpc-filter-divider,
  .mpc-filter-label,
  .mpc-filter-count         { display: none !important; }

  /* Header: hide cart / Get Started / Login — logo + MENU only */
  header nav.menu-cart      { display: none !important; }

  /* Hero */
  .mpc-shop-hero            { padding: 12px 12px 16px; }
  .mpc-hero-strip           { height: auto; flex-direction: column; }
  .mpc-hero-featured        { height: 200px; flex: none; }
  .mpc-hero-allaccess       { flex: none; height: 180px; }
}

/* ── Mobile filter button active state ───────────────── */
.mpc-filter-mobile-btn {
  background: none;
  border: 1px solid #ddd;
  cursor: pointer;
  font-family: inherit;
}

.mpc-filter-mobile-btn--active {
  background: #111 !important;
  border-color: #111 !important;
  color: #fff !important;
}

/* ── Mobile filter drop-down panel ──────────────────── */
.mpc-mobile-filter-panel {
  display: none;
  background: #fff;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  overflow: hidden;
}

.mpc-mobile-filter-panel--open {
  display: block;
}

.mpc-mobile-filter-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mpc-mobile-select {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  background: #f5f5f5 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23999' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 12px center;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 10px 36px 10px 12px;
  font-size: 14px;
  color: #444;
}

.mpc-mobile-select:focus {
  outline: none;
  border-color: #ff8618;
}

.mpc-mobile-search-wrap {
  position: relative;
}

.mpc-mobile-search-wrap .mpc-search-icon {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  color: #aaa;
  pointer-events: none;
}

.mpc-mobile-search-input {
  width: 100%;
  background: #f5f5f5;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 10px 12px 10px 34px;
  font-size: 14px;
  color: #333;
  box-sizing: border-box;
}

.mpc-mobile-search-input:focus {
  outline: none;
  border-color: #ff8618;
  box-shadow: 0 0 0 3px rgba(255,134,24,.1);
}

/* ── Lesson card grid ────────────────────────────────── */

/* 4-column CSS grid replacing the old flexbox layout */
#lessons_content.category-view.grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 20px !important;
  padding: 24px !important;
  list-style: none !important;
  margin: 0 !important;
  float: none !important;
  width: auto !important;
}

@media (max-width: 1100px) {
  #lessons_content.category-view.grid { grid-template-columns: repeat(3, 1fr) !important; }
}
@media (max-width: 720px) {
  #lessons_content.category-view.grid { grid-template-columns: repeat(2, 1fr) !important; gap: 12px !important; padding: 12px !important; }
}
@media (max-width: 480px) {
  #lessons_content.category-view.grid { grid-template-columns: 1fr !important; }
}

/* Card shell */
.mpc-lesson-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #f0f0f0;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
  display: flex !important;
  flex-direction: column !important;
  transition: box-shadow .2s, transform .2s;
  width: auto !important;
  min-width: 0 !important;
  float: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.mpc-lesson-card:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,.13);
  transform: translateY(-2px);
}

/* Checkout cross-sells stack at phone widths; separate siblings only. */
@media screen and (max-width: 767px) {
  .cross-sell .dashboard-lessons > .mpc-lesson-card + .mpc-lesson-card {
    margin-top: 16px !important;
  }
}

/* Square image */
.mpc-card-image {
  aspect-ratio: 1 / 1;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  background: #ddd;
}

.mpc-card-img-link {
  display: block;
  width: 100%;
  height: 100%;
}

.mpc-card-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  border-radius: 0 !important;
}

.mpc-card-img-vignette {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.28) 0%, transparent 55%);
  pointer-events: none;
}

/* Difficulty pill on the image */
.mpc-card-difficulty-pill {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  pointer-events: none;
}

/* Wishlist heart — top right, appears on hover */
.mpc-card-wishlist {
  position: absolute !important;
  top: 10px !important;
  right: 10px !important;
  width: 28px !important;
  height: 28px !important;
  background: rgba(255,255,255,.9) !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  opacity: 0 !important;
  transition: opacity .2s !important;
  box-shadow: 0 1px 4px rgba(0,0,0,.15) !important;
  font-size: 12px !important;
  color: #aaa !important;
  float: none !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
}

.mpc-lesson-card:hover .mpc-card-wishlist { opacity: 1 !important; }
.mpc-lesson-card:focus-within .mpc-card-wishlist { opacity: 1 !important; }
.mpc-card-wishlist .fa-heart { color: #f43f5e !important; }
.mpc-card-wishlist .fa-heart-o,
.mpc-card-wishlist .far.fa-heart { color: #aaa !important; }

/* Card body */
.mpc-card-body {
  padding: 14px 14px 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0;
}

/* Orange difficulty label */
.mpc-card-level {
  font-size: 10px !important;
  font-weight: 700 !important;
  color: #ff8618 !important;
  text-transform: uppercase !important;
  letter-spacing: .1em !important;
  margin: 0 0 4px !important;
  line-height: 1 !important;
}

/* Title */
.mpc-card-title-link { text-decoration: none !important; }

.mpc-card-img-link:focus-visible,
.mpc-card-title-link:focus-visible,
.mpc-card-wishlist:focus-visible,
.mpc-card-add:focus-visible {
  outline: 3px solid #1d6fa5 !important;
  outline-offset: 3px;
}

.mpc-card-title {
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #111 !important;
  line-height: 1.35 !important;
  margin: 0 0 5px !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Stars */
.mpc-card-stars {
  display: flex;
  gap: 2px;
  margin-bottom: 10px;
}

.mpc-card-stars .fas.fa-star {
  font-size: 10px;
  color: #f59e0b;
}

/* Footer row: price + Add button */
.mpc-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.mpc-card-price {
  font-size: 16px !important;
  font-weight: 700 !important;
  color: #111 !important;
}

/* Currency symbol */
.mpc-price-currency {
  font-size: 11px;
  font-weight: 600;
  vertical-align: super;
  line-height: 0;
}

/* USD label from template */
.mpc-card-price small {
  font-size: 9px !important;
  font-weight: 500 !important;
  color: #aaa !important;
  letter-spacing: .04em;
  margin-left: 2px;
}

.mpc-card-price s,
.mpc-card-price del {
  color: #bbb;
  font-weight: 400;
  font-size: 12px;
  margin-right: 4px;
}

.mpc-card-add {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #ff8618;
  color: #fff !important;
  border: none;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  padding: 7px 13px;
  cursor: pointer;
  transition: background .15s;
  white-space: nowrap;
}

.mpc-card-add:hover { background: #e07610; }
.mpc-card-add:disabled {
  cursor: wait;
  opacity: .7;
}

/* ── Load More button ─────────────────────────────────── */
.mpc-load-more-btn {
  display: inline-block;
  background: #fd8c26;
  color: #fff;
  border: none;
  border-radius: 24px;
  padding: 12px 40px;
  font-size: 15px;
  font-family: sofia-pro, sans-serif;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  transition: background .15s;
}
.mpc-load-more-btn:hover { background: #e07610; }

/* ═══════════════════════════════════════════════════════
   RELATED LESSONS GRID — lesson detail page (/lessons/*)
   ═══════════════════════════════════════════════════════ */

/* Section heading — left-aligned, padded to match grid edges */
.mpc-related-heading {
  font-family: sofia-pro, sans-serif !important;
  font-size: 22px !important;
  font-weight: 900 !important;
  color: #111921 !important;
  text-transform: uppercase !important;
  letter-spacing: .06em !important;
  margin: 0 !important;
  padding: 24px 24px 0 !important;
  line-height: 1.2 !important;
}

/* 4-column CSS grid, full width inside the grey section */
.mpc-related-grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 20px !important;
  padding: 20px 24px 24px !important;
  list-style: none !important;
  margin: 0 !important;
}

@media (max-width: 1100px) {
  .mpc-related-grid { grid-template-columns: repeat(3, 1fr) !important; }
}
@media (max-width: 720px) {
  .mpc-related-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 480px) {
  .mpc-related-grid { grid-template-columns: 1fr !important; }
}

/* ═══════════════════════════════════════════════════════
   GALLERY GRID FULL-BLEED — lesson detail + watch pages
   Removes the 89 % width constraint on .gallery-grid
   while preserving vertical rhythm and figure spacing.
   Applied only to Teacher/student paintings sections via
   the gallery-grid--full modifier class.
   ═══════════════════════════════════════════════════════ */

.gallery-grid--full {
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 24px !important;
  padding-right: 24px !important;
}

/* Counter the existing -15px negative margin on .gallery-grid .flex
   so figure gutters stay consistent when the outer constraint is removed */
.gallery-grid--full .flex {
  margin-left: 0 !important;
}
