/* Small, opinionated base tweaks */
body { background: #171717; color: #e9ecef; }
a { color: inherit; }

.brand-dot{
  width: 14px; height: 14px; border-radius: 999px;
  background: #0d6efd;
  display:inline-block;
}

/* Readability (dev-friendly) */
.text-muted {
  color: rgba(233,236,239,.78) !important;
}

/* Cards */
.card{
  background: #201e1c;                 /* neutral-warm charcoal */
  border: 1px solid rgba(255,255,255,.14);
  color: rgba(233,236,239,.92);
}


.card .text-muted {
  color: rgba(233,236,239,.80) !important;
}

.btn-outline-light { border-color: rgba(255,255,255,.25); }

/* Enhanced: only when blur is supported */
@supports ((-webkit-backdrop-filter: blur(10px)) or (backdrop-filter: blur(10px))){
  .mdx-nav{
    background-color: rgba(18,18,18,.92);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
  }
}

:root{
  --nav-h: 64px;          /* actual nav height */
  --hero-gap: 8px;       /* space between sticky nav and hero content */
}

.mdx-nav{ min-height: var(--nav-h); }

.hero{
  padding: calc(var(--nav-h) + var(--hero-gap)) 0 64px;

  background:
    linear-gradient(90deg, rgba(0,0,0,.70) 0%, rgba(0,0,0,.35) 55%, rgba(0,0,0,.15) 100%),
    radial-gradient(1200px 520px at 10% 14%, rgba(255, 120, 70, .20), transparent 40%),
    radial-gradient(900px 420px at 84% 8%, rgba(130, 80, 255, .18), transparent 40%),
    linear-gradient(rgba(0,0,0,.60), rgba(0,0,0,.60)),
    url("/assets/img/hero/hero-bg.jpg");

  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.hero h1{ letter-spacing: -0.02em; }


/* SLP hero: no image, stronger gradients */
.hero.slp-hero{
  background:
    radial-gradient(1200px 520px at 12% 12%, rgba(255, 120, 70, .38), transparent 52%),
    radial-gradient(900px 420px at 84% 8%, rgba(130, 80, 255, .34), transparent 50%),
    radial-gradient(700px 360px at 50% 0%, rgba(255,255,255,.06), transparent 60%),
    linear-gradient(to bottom, rgba(0,0,0,.25) 0%, rgba(23,23,23,.92) 70%, #171717 100%);
}

@media (max-width: 576px) {
  .path-whats-inside {
    display: none;
  }
}

/* Shared cover frame */
.cover-7x8,
.cover-4x5 {
  width: 100%;
  aspect-ratio: auto; /* overridden below */
  overflow: hidden;
  border-radius: 0;
  background: transparent;
}

/* Ratios */
.cover-7x8 { aspect-ratio: 7 / 8; }
.cover-4x5 { aspect-ratio: 4 / 5; }

/* Images: NO CROP (works whether img is direct child or wrapped in <a>) */
.cover-7x8 img,
.cover-4x5 img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
}

/* lesson compensation (same issue: remove > img) */
.cover-4x5.is-lesson img,
.cover-7x8.is-lesson img{
  transform: scale(1.16);
  transform-origin: center center;
}


.cover-4x5.is-lesson,
.cover-7x8.is-lesson{
  overflow: visible;
}


/* Downloads thumbs: keep it simple */
td.dl-cover{
  width: 140px;              /* pick your column width */
  vertical-align: middle;
}

/* center whatever helper outputs */
td.dl-cover .dl-cover-wrap{
  display:flex;
  align-items:center;
  justify-content:center;
}

/* disable the ratio box + clipping for downloads only */
td.dl-cover .cover-7x8,
td.dl-cover .cover-4x5{
  width: 110px;              /* thumb width */
  max-width: 110px;
  aspect-ratio: auto !important;   /* IMPORTANT */
  overflow: visible !important;    /* IMPORTANT */
  padding: 0 !important;
}

/* if wrapped in <a>, don't let it mess layout */
td.dl-cover .cover-7x8 > a,
td.dl-cover .cover-4x5 > a{
  display:block;
}

/* actual image sizing: cannot crop */
td.dl-cover .cover-7x8 img,
td.dl-cover .cover-4x5 img{
  display:block;
  width: 100% !important;
  height: auto !important;         /* IMPORTANT */
  object-fit: contain;              /* harmless with height:auto */
  transform: none !important;       /* kills is-lesson scaling too */
}





/* Recommended start â€“ responsive fix */
@media (max-width: 768px) {
  .recommended-start {
    flex-direction: column;
    align-items: stretch;
  }

  .recommended-start .flex-shrink-0 {
    width: 100% !important;
    max-width: 160px;
  }

  .recommended-start .text-nowrap {
    width: 100%;
  }

  .recommended-start .text-nowrap .btn {
    width: 100%;
  }
}

/* Step cards should read as the primary container (subtle warm-neutral) */
.border.step-card{
  border-color: rgba(170, 150, 125, .55) !important;  /* warm gray */
  border-width: 2px !important;
  background: rgba(170, 150, 125, .02) !important;    /* barely warm lift */
}

/* Inner recommendation cards should be secondary */
.recommendation-card{
  background: #151821 !important;
  border: 1px solid rgba(255,255,255,.08) !important;
}

/* Any generic inner bordered boxes inside step cards (your product blocks) */
.step-card .border.rounded-3{
  border-color: rgba(255,255,255,.08) !important;
}

/* Inner hover keeps the warmer accent */
.recommendation-card:hover,
.step-card .border.rounded-3:hover{
  border-color: rgba(235, 190, 120, .35) !important;
}

/* Step hover slightly brighter (keep this warm hover) */
.border.step-card:hover{
  border-color: rgba(235, 190, 120, .75) !important;
}


/* =========================
   SLP (Bootstrap-based) polish
   ========================= */

main.slp{
  /* if your site already sets body bg, this will still look consistent */
  color: rgba(255,255,255,.92);
}

/* Section rhythm */
.slp .slp-section{
  margin-bottom: 2.25rem; /* replaces “mb-5 feel” but you can keep mb-5 too */
}
@media (min-width: 992px){
  .slp .slp-section{ margin-bottom: 2.75rem; }
}

/* HERO */
.slp .slp-hero .slp-heroCard{
  background:
    radial-gradient(1200px 400px at 20% 0%, rgba(126,200,255,.16), transparent 60%),
    radial-gradient(900px 380px at 80% 10%, rgba(255,255,255,.06), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.03), transparent 60%);
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
  border-color: rgba(255,255,255,.10) !important;
}
.slp .slp-heroMeta{
  display:flex;
  gap: .5rem;
  flex-wrap: wrap;
}

@media (max-width: 991.98px){
  .slp-heroCopy{ max-width: 32rem; }
}


/* Pills / chips */
.slp .slp-pill{
  display:inline-flex;
  align-items:center;
  gap:.35rem;
  padding: 6px 10px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  background: rgba(255,255,255,.03);
  color: rgba(255,255,255,.72);
  font-size: 12px;
}
.slp .slp-chip{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(126,200,255,.60);
  background: rgba(126,200,255,.14);
  color: rgba(255,255,255,.92);
  font-size: 12px;
}

/* Typography tweaks */
.slp h2.h4, .slp h2.h5{
  letter-spacing: -.01em;
}
.slp .text-muted{
  color: rgba(255,255,255,.68) !important;
}

/* TRUST STRIP cards */
.slp .slp-section .rounded-4.border{
  border-color: rgba(255,255,255,.10) !important;
}

/* VIDEO frames */
.slp .slp-videoFrame{
  background: #000;
  border-color: rgba(255,255,255,.10) !important;
  box-shadow: 0 8px 26px rgba(0,0,0,.28);
}
.slp .slp-videoGrid .slp-videoFrame{
  /* keeps multiple embeds visually consistent */
}

/* SAMPLES list-group (dark theme) */
.slp .slp-samples .list-group-item{
  background: rgba(255,255,255,.03);
  color: rgba(255,255,255,.90);
  border-color: rgba(255,255,255,.10);
}
.slp .slp-samples .list-group-item:hover{
  background: rgba(126,200,255,.08);
  border-color: rgba(126,200,255,.35);
}

/* SKU cards */
.slp .slp-skuCard{
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 8px 26px rgba(0,0,0,.28);
}


.slp .slp-skuMedia{
  background: rgba(0,0,0,.22);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.slp .slp-skuMedia .cover-4x5,
.slp .slp-skuMedia .cover-7x8{
  /* you wanted no crop / no background */
  background: transparent !important;
}
.slp .slp-skuMedia img{
  filter: drop-shadow(0 12px 20px rgba(0,0,0,.35));
}

.slp .slp-skuActions .btn{
  border-radius: 8px;
}

.slp-skuFooter{
  border-top: 1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.12);
  padding: 10px 12px;
}

.slp-cues{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
}

.slp-cue{
  display:inline-flex;
  align-items:center;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.72);
  font-size: 11px;
  line-height: 1.2;
  white-space: nowrap;
}

/* AMAZON — subtle secondary link */
.slp-cue-amazon{
  border: none;
  background: transparent;
  color: rgba(255,255,255,.65);
  font-size: 13px;
  font-weight: 500;
  text-decoration: underline;
  padding: 0;
}

.slp-cue-amazon:hover{
  color: rgba(255,255,255,.9);
  text-decoration: underline;
}




/* Buttons: improve contrast on dark */
.slp .btn-outline-light{
  border-color: rgba(255,255,255,.18);
}
.slp .btn-outline-light:hover{
  border-color: rgba(126,200,255,.55);
  background: rgba(126,200,255,.10);
}

.slp .slp-skuMedia .cover-4x5{
  max-width: 240px;
  margin: 0 auto;
}

/* ===== PRICE BLOCK ===== */
.slp-priceBlock{
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Badge row */
.slp-priceTop{
  display: flex;
  align-items: center;
}

/* Main price row */
.slp-priceRow{
  display:flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: nowrap;
  min-width: 0;
}

/* Price + currency group */
.slp-priceNow,
.slp-priceWas{
  display:flex;
  align-items: baseline;
  gap: 6px;
  white-space: nowrap;
  min-width: 0;
}

/* Current price */
.slp-price{
  font-size: 26px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

/* Crossed price */
.slp-was{
  font-size: 14px;
  line-height: 1;
  text-decoration: line-through;
  opacity: .6;
  white-space: nowrap;
}

/* Currency */
.slp-currency{
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
  opacity: .85;
  white-space: nowrap;
}

.slp-currency-muted{
  opacity: .55;
}

/* Badge */
.slp-saleBadge{
  white-space: nowrap;
}

.slp-saleBadge{
  background: transparent;
  color: #c96b1a;
  border: 1px solid #c96b1a;
  font-weight: 600;
  font-size: 0.75rem;
  padding: 3px 10px;
  border-radius: 999px;
}

.slp .slp-bundleBox{
  background:
    radial-gradient(900px 260px at 15% 0%, rgba(255, 120, 70, .20), transparent 60%),
    radial-gradient(800px 240px at 85% 0%, rgba(130, 80, 255, .18), transparent 60%),
    rgba(255,255,255,.04);
  border-color: rgba(255, 170, 120, .28) !important;
  box-shadow: 0 12px 34px rgba(0,0,0,.35);
}

/* Small screens */
@media (max-width: 576px){
  .slp-price{ font-size: 24px; }
}

/* Only for supplementary lessons */
.slp-supp .slp-skuMedia{
  max-width: 240px;
  margin: 0 auto;
}
.slp-supp .cover-7x8{ width:100%; }


.path-card-img{
  aspect-ratio: 16 / 9;
  width: 100%;
  height: auto;          /* fallback */
  object-fit: cover;     /* consistent crop */
}

.path-card-img{
  filter: saturate(0.92) contrast(1.08) brightness(0.88);
}

/* "Taste" section */
.taste-section{
  padding: 36px 0;

  background:
    radial-gradient(1200px 420px at 50% 0%, rgba(255,255,255,.06), rgba(0,0,0,0) 60%),
    radial-gradient(1200px 420px at 50% 100%, rgba(255,255,255,.06), rgba(0,0,0,0) 60%);
}

.taste-title{
  text-align: center;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin: 0 0 14px;
}

.taste-video-wrap{
  max-width: 980px;               /* similar feel to your screenshot */
  border-radius: 16px;
  overflow: hidden;               /* rounds the iframe corners */
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 10px 40px rgba(0,0,0,.55);
  background: #000;
}

@media (max-width: 992px){
  .taste-video-wrap{ max-width: 100%; }
}

/* Jazz Standards: light panel for white sample images */
.js-whitePanel{
  background: #f4f4f4;
  color: #1b1b1b;
  border-color: rgba(0,0,0,.12) !important;
  box-shadow: 0 12px 34px rgba(0,0,0,.25);
}

.js-whiteMuted{
  color: rgba(0,0,0,.70) !important;
}

.js-whiteTile{
  background: rgba(255,255,255,.75);
  border: 1px solid rgba(0,0,0,.10);
  border-radius: 14px;
  padding: 12px;
  height: 100%;
}

.js-whiteImg{
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.js-heroCard{
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
  border-color: rgba(255,255,255,.10) !important;
}


/* Match the "Books in Volume 5 (C)" heading vibe */
.slp-sectionTitle{
  font-weight: 800;
  font-size: clamp(22px, 2.2vw, 34px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #111;
}

.slp-sectionSubtitle{
  font-size: 16px;
  line-height: 1.55;
  color: rgba(0,0,0,.55);
}


/* Less padding inside the white card */
.slp-tightCard{
  padding: 16px;
}
@media (min-width: 768px){
  .slp-tightCard{ padding: 22px; }
}
@media (min-width: 992px){
  .slp-tightCard{ padding: 26px; }
}

/* Make the right-side image area larger and easier to read */
.js-xfadeFrame{
  position: relative;
  width: 100%;
  height: clamp(220px, 26vw, 340px);  /* BIGGER than aspect-ratio */
  overflow: hidden;
  background: transparent;
}

/* Keep full notation visible */
.js-xfadeFrame img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 300ms linear;
  will-change: opacity;
}
.js-xfadeFrame img.is-active{ opacity: 1; }

/* Optional: on large screens, reduce left/right “breathing room” further */
@media (min-width: 992px){
  .slp-belowHero .col-lg-5{ padding-right: 10px; }
  .slp-belowHero .col-lg-7{ padding-left: 10px; }
}

@media (prefers-reduced-motion: reduce){
  .js-xfadeFrame img{ transition: none; }
  .js-xfadeFrame img:first-child{ opacity: 1; }
}


/* Featured card: keep it compact */
.slp-featuredMedia .cover-4x5,
.slp-featuredMedia .cover-7x8{
  max-height: 420px;   /* adjust: 360–460 usually feels right */
  margin: 0 auto;
}
@media (max-width: 576px){
  .slp-featuredMedia .cover-4x5,
  .slp-featuredMedia .cover-7x8{ max-height: 340px; }
}

.mdx-consent{
  position:fixed;
  left:16px;
  right:16px;
  bottom:16px;
  z-index:9999;
}

.mdx-consent__inner{
  max-width:980px;
  margin:0 auto;
  background:#1f1f1f;
  color:#fff;
  border:1px solid #333;
  border-radius:12px;
  padding:14px;
  box-shadow:0 10px 30px rgba(0,0,0,.35);
}

.mdx-consent__row{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
}

.mdx-consent__text{
  font-size:14px;
  line-height:1.4;
  max-width:700px;
}

.mdx-consent__text a{
  color:#7ec8ff;
  text-decoration:none;
}

.mdx-consent__text a:hover{
  text-decoration:underline;
}

.mdx-consent__actions{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}

.mdx-consent__btn{
  padding:8px 12px;
  border-radius:10px;
  font-size:13px;
  cursor:pointer;
}

.mdx-consent__btn--ghost{
  border:1px solid #777;
  background:transparent;
  color:#fff;
}

.mdx-consent__btn--primary{
  border:1px solid #7ec8ff;
  background:#7ec8ff;
  color:#000;
}

/* tessituramac.phtml – page-scoped styles */
.tess-hero{
  position: relative;
  color: #fff;
  min-height: 420px;
  background: url("/tessituraassets/hero-bg.jpg") center/cover no-repeat;
}
.tess-hero::before{
  content:"";
  position:absolute; inset:0;
  background: rgba(0,0,0,.70);
}
.tess-hero .tess-hero-inner{
  position: relative;
  padding: 72px 0;
}
.tess-section{
  padding: 56px 0;
}
.tess-section--dark{
  background:#111;
  color:#fff;
}
.tess-card{
  background:#201e1c;
  border:1px solid rgba(255,255,255,.14);
  border-radius: 14px;
}
.tess-grid-text p{
  margin: 0;
}

/* Tessitura video grid */
.tess-section{ padding: 56px 0; }
.tess-section--dark{ background:#2b2f3a; color:#fff; }

.tess-videoCard{
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 10px 26px rgba(0,0,0,.35);
  background:#000;
}

.tess-videoThumb{
  width:100%;
  height:auto;
  display:block;
  transition: transform .18s ease;
}

a:hover .tess-videoThumb{ transform: scale(1.05); }

.tess-videoTitle{
  margin-top: 8px;
  text-align:center;
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255,255,255,.95);
}

/* Tessitura: full-width banner video */
.tess-videoBanner{
  width: 100%;
  overflow: hidden;
  background: #000;
}

.tess-videoBanner__video{
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Tessitura bullets (Bootstrap-friendly, matches your warm-dark theme) */
.tess-bullets{
  margin: 0;
  padding-left: 1.1rem; /* matches list-disc feel */
}
.tess-bullets li{
  margin: 0.25rem 0;
}

/* Responsive 16:9 video frame */
.tess-videoFrame{
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.10);
  background: #000;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
}
.tess-videoFrame iframe{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Light variant for video cards */
.tess-videoCard--light{
  border-color: rgba(0,0,0,.10);
  box-shadow: 0 10px 26px rgba(0,0,0,.18);
}

.tess-videoTitle--dark{
  color: rgba(0,0,0,.82);
}

/* Tessitura use-case table */
.tess-table{
  background:#fff;
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 14px;
  overflow: hidden; /* helps with rounded corners on some browsers */
}

.tess-table thead th{
  background: rgba(0,0,0,.06);
  color: rgba(0,0,0,.88);
  border-bottom: 1px solid rgba(0,0,0,.12);
  font-weight: 700;
}

.tess-table td, .tess-table th{
  padding: 14px 16px;
  vertical-align: top;
}

.tess-table tbody tr:nth-child(even){
  background: rgba(0,0,0,.02);
}

.tess-muted-on-light{ color: rgba(0,0,0,.6) !important; }

.tess-heroNote{
  font-size: 13px;
  line-height: 1.35;
  opacity: .85;
}
.tess-heroNote b{ opacity: .95; }



/* MTH hero: App Store-style buttons ONLY (leave .btn-primary alone) */
.mth-cta .btn-outline-light{
  background: rgba(24,24,24,.92);
  border: 1px solid rgba(255,255,255,.28);
  color: rgba(255,255,255,.95);
  border-radius: 14px;
  padding: 12px 18px;
  box-shadow: 0 10px 24px rgba(0,0,0,.35);
}

.mth-cta .btn-outline-light:hover{
  background: rgba(34,34,34,.95);
  border-color: rgba(255,255,255,.40);
  color: #fff;
}

.mth-cta .btn-outline-light:focus{
  box-shadow: 0 0 0 .25rem rgba(126,200,255,.25);
}

/* Banner strip: no extra white padding below the image */
.mth-banner{ padding-bottom: 0 !important; }


/* Dark table that actually stays dark (Bootstrap var override) */
.table-darkish{
  --bs-table-color: rgba(233,236,239,.92);
  --bs-table-bg: transparent;
  --bs-table-border-color: rgba(255,255,255,.10);

  --bs-table-striped-color: rgba(233,236,239,.92);
  --bs-table-striped-bg: rgba(255,255,255,.03);

  --bs-table-hover-color: rgba(233,236,239,.92);
  --bs-table-hover-bg: rgba(255,255,255,.06);
}

/* Ensure links inside don’t revert to default blue-on-dark weirdness */
.table-darkish a{ color: inherit; }

/* Bundles page: collage preview */
.bundle-preview{
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)); /* 4x3 = 12 */
  gap: 6px;
  padding: 10px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 14px;
  background: rgba(0,0,0,.18);
}

/* Force the helper output to behave like a tiny thumb */
.bundle-preview .cover-4x5,
.bundle-preview .cover-7x8{
  width: 100%;
  aspect-ratio: 1 / 1;         /* square grid tiles */
  overflow: hidden;
}

.bundle-preview img{
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;           /* collage feel */
  transform: none !important;  /* avoid lesson scaling rules leaking in */
  border-radius: 10px;
}

/* Keep the card top tight */
.card .bundle-preview{
  margin-bottom: 10px;
}

/* =========================
   CART (mobile layout)
   ========================= */

/* Default: hide mobile list on desktop */
#cartMobileList{ display:none; }

@media (max-width: 991.98px){

  /* Hide table on mobile; show mobile list */
  #cartTable{ display:none !important; }
  #cartMobileList{ display:block !important; }

  .cartm-item{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    padding:10px 0;
    border-top:1px solid rgba(255,255,255,.10);
  }

  .cartm-left{
    display:flex;
    flex-direction:column;
    gap:6px;
    max-width: 62%;
    min-width: 0;
  }

  /* cover box already handled by .cover-7x8 / .cover-4x5 */
  .cartm-left .cover-7x8,
  .cartm-left .cover-4x5{
    max-width: 92px;          /* thumb size on iPhone */
  }

  .cartm-code{
    font-size: 12px;
    line-height: 1.2;
    opacity: .78;
    word-break: break-word;
  }

  .cartm-right{
    display:flex;
    flex-direction:column;
    align-items:flex-end;
    gap:8px;
    flex: 0 0 auto;
  }

  .cartm-price{
    font-weight: 700;
    white-space: nowrap;
  }

  .cartm-remove{
    padding:6px 10px;
  }
}

/* =========================
   CART (desktop table covers) — FIXED THUMB HEIGHT
   ========================= */
td.cartd-item{ vertical-align: top; }

.cartd-left{
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  text-decoration: none;
}

/* Force a real thumb box so it can’t collapse into a strip */
.cartd-left .cover-4x5,
.cartd-left .cover-7x8{
  width: 96px !important;
  max-width: 96px !important;
  height: 120px !important;          /* <- key line */
  overflow: hidden;
}

/* Ensure the image actually fills that box (no crop) */
.cartd-left .cover-4x5 img,
.cartd-left .cover-7x8 img{
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
  transform: none !important;         /* avoids any lesson scaling leaking in */
}

/* =========================
   Mobile bottom bar (Cart + Account)
   ========================= */
.mdx-mbar{ display:none; }

@media (max-width: 991.98px){
  .mdx-mbar{
    display:flex;
    position:fixed;
    left:0; right:0; bottom:0;
    z-index: 9998;
    justify-content: space-around;
    gap: 10px;

    /* match mdx-nav */
    background-color: rgba(18,18,18,.92);
    border-top: 1px solid rgba(255,255,255,.10);

    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
  }
}

  /* Prevent content being hidden behind bar */
  body{
    padding-bottom: calc(64px + env(safe-area-inset-bottom));
  }

  .mdx-mbar__item{
    position:relative;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:4px;

    text-decoration:none;
    color: rgba(233,236,239,.92);
    min-width: 90px;
    padding: 6px 8px;
    border-radius: 12px;
  }

  .mdx-mbar__item:active{
    background: rgba(255,255,255,.06);
  }

  .mdx-mbar__icon{
    font-size: 18px;
    line-height: 1;
  }

  .mdx-mbar__label{
    font-size: 12px;
    opacity: .82;
    line-height: 1.1;
  }

  .mdx-mbar__badge{
    position:absolute;
    top: 2px;
    right: 20px;
    font-size: 11px;
    line-height: 1;
    padding: 4px 6px;
    border-radius: 999px;
    background: #0d6efd;
    color: #fff;
    border: 1px solid rgba(255,255,255,.18);
  }
}



.cart-collage{
  display:grid;
  grid-template-columns:repeat(2, 1fr);
  gap:6px;
  width:100%;
  max-width:110px;       /* fits your 140px column */
}
.cart-collage-cell .cover-4x5,
.cart-collage-cell .cover-7x8{
  width:100%;
}
.cart-collage-empty{
  aspect-ratio: 4 / 5;
  border:1px solid rgba(255,255,255,.12);
  border-radius:10px;
  background: rgba(255,255,255,.04);
}
