/* ─────────────────────────────
  GLOBAL WRAPPER
───────────────────────────── */
.mobile-only {
  display: none;
}

.shop-wrapper {
  width: 100%;
}

.shop-subscriptions {
  padding: 0rem 1rem 4rem 1rem;
  background: var(--primary-bg);
  width: 100%;
}

.subscription-comparison {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 auto;
}

.card-wrapper {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 400px;
  width: 100%;
  position: relative;
  z-index: 1;
}

.card-wrapper::after {
  content: "";
  position: absolute;
  bottom: 0;
  width: 300px;
  height: 20px;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 1) 0%, transparent 80%);
  filter: blur(6px);
  transform: translateY(50%);
  opacity: 0.7;
  z-index: 0;
  transition: all 0.2s ease-in-out;
}

/* ─────────────────────────────
  NEW ROW TYPES
───────────────────────────── */
.description-row {
  margin-top: -1rem;
  margin-bottom: 1.5rem;
}

.tier-caption-row {
  margin: 2rem 0;
  display: flex;
  justify-content: center;
}

.tier-caption-row .feature-col {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.caption-text-col {
  flex: 3;
}

.caption-text {
  font-size: 0.95rem;
  color: #777;
  font-style: italic;
  text-align: center;
  line-height: 1.4;
  max-width: 100%;
  padding: 0 1rem;
}

/* ─────────────────────────────
  LEGEND ROW (SILVER / GOLD / BRONZE)
───────────────────────────── */
.title-row .feature-col {
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.5px;
  color: #333;
  text-transform: uppercase;
}

/* ─────────────────────────────
  PODIUM LAYOUT (SIZING + CENTERING)
───────────────────────────── */
.tier-silver .tier-card-image {
  height: 350px;
  width: auto;
}

.tier-gold .tier-card-image {
  height: 400px;
  width: auto;
}

.tier-bronze .tier-card-image {
  height: 300px;
  width: auto;
}

.tier-card-image {
  transition: all 0.2s ease-in-out;
}

.tier-card-image:hover {
  transform: scale(1.05);
  transition: all 0.2s ease-in-out;
  z-index: 3;
}

.card-wrapper:hover::after {
  height: 35px;
  transition: all 0.2s ease-in-out;
}

.shop-subscriptions {
  padding: revert;
}

.shop-subscriptions.hovering-tier .feature-col {
  opacity: 0.4;
  transition: all 0.2s ease-in-out;
}

.shop-subscriptions.hovering-tier .feature-col.hover-active {
  opacity: 1;
  z-index: 2;
}

.tier-card-image {
  transition: transform 0.25s ease;
  cursor: pointer;
}

.tier-card-image:hover,
.subscription-add-btn:hover img {
  transform: scale(1.05);
  z-index: 3;
}

.card-row {
  align-items: flex-end;
  justify-content: center;
}

.card-row .feature-col {
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.card-row .feature-col.tier-gold {
  order: 2;
}

.card-row .feature-col.tier-silver {
  order: 1;
}

.card-row .feature-col.tier-bronze {
  order: 3;
}

/* ─────────────────────────────
  NO FEATURE DASH
───────────────────────────── */
.feature-col.no-feature {
  color: #aaa;
  font-size: 1.5rem;
  font-weight: normal;
}

.feature-col.no-feature::before {
  content: "—";
  display: inline-block;
}

/* ─────────────────────────────
  ROWS
───────────────────────────── */
.comparison-row {
  display: flex;
  width: 100%;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
}

.card-row,
.button-row {
  align-items: flex-end;
}

.features-row {
  flex-direction: column;
  gap: 0.75rem;
}

/* ─────────────────────────────
  COLUMNS
───────────────────────────── */
.feature-col {
  flex: 1;
  text-align: center;
}

.feature-col.spacer {
  flex: 1.2;
  text-align: right;
  padding-right: 1rem;
}

.tier-card-image {
  width: 100%;
  max-width: 250px;
  height: auto;
  border-radius: 8px;
  vertical-align: bottom;
}

/* ─────────────────────────────
  FEATURE GRID
───────────────────────────── */
.feature-comparison-table {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 0.5rem;
}

.feature-row {
  display: flex;
  justify-content: center;
  gap: 2rem;
  padding: 0.5rem 0;
  position: relative;
  min-height: 56px;
}

.feature-row .feature-label {
  position: absolute;
  font-family: 'Cera Pro';
  text-transform: uppercase;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  width: 160px;
  text-align: left;
  font-weight: 400;
  font-size: 0.95rem;
  color: var(--headings);
  line-height: 1.4;
  white-space: normal;
}

.feature-row.header {
  border-bottom: 1px solid #e0e0e0;
}

.feature-row .feature-col {
  flex: 1;
  text-align: center;
  font-size: 1rem;
  color: var(--headings);
}

/* Checkmark icon */
.feature-col.has-feature .checkmark {
  display: inline-block;
  width: 30px;
  height: 30px;
  background: url('../images/checkmark.svg') no-repeat center center;
  background-size: contain;
  filter: invert(67%) sepia(68%) saturate(319%) hue-rotate(99deg) brightness(87%) contrast(85%);
}

/* Empty cell (no check) */
.feature-col.no-feature {
  color: #aaa;
  font-size: 1.2rem;
  line-height: 1;
}

/* ─────────────────────────────
  ADD TO CART BUTTONS
───────────────────────────── */
.subscription-add-btn {
  display: inline-block;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.subscription-add-btn img {
  width: 200px;
  height: auto;
}

.subscription-add-btn:hover img {
  transform: scale(1.05);
}

[class*=" color-"] {
  font-weight: 500;
  text-transform: uppercase;
  text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.25);
}

.color-gold {
  color: #a57019 !important;
}

.color-silver {
  color: var(--text) !important;
}

.color-bronze {
  color: #CD7F32 !important;
}

.add-to-cart-caption {
  font-size: 0.85rem;
  text-align: center;
  margin-top: 0.25rem;
  opacity: 0.85;
  font-weight: 400;
}

.subscription-hero {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  background: 
    linear-gradient(to bottom, rgba(0, 0, 0, 0.2) 40%, var(--primary-bg) 100%),
    url('../images/blackYellowHex.png') no-repeat center top;
  background-size: cover;
  height: 450px;
  position: relative;
  z-index: 1;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding-bottom: 18rem;
}

.subscription-heading {
  font-size: 2rem;
  color: var(--primary-bg);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.overlap-row {
  position: relative;
  z-index: 2;
  margin-top: -12rem;
}

/* ─────────────────────────────
   SHOP GRID LAYOUT (Courses + Books)
───────────────────────────── */
.shop-grid {
  display: grid;
  justify-content: center;
  gap: 1.5rem;
  padding: 0 1rem;
  margin: 0 auto 4rem;
}

#shop-courses-grid {
  grid-template-columns: repeat(2, 1fr);
}

/* override grid for just the books section */
#shop-books-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;      /* same gutter as before */
  padding: 0 1rem;  /* if you still need your side padding */
  margin: 0 auto 4rem;
}

/* force each card to always be 370px wide */
#shop-books-grid .shop-book-card {
  flex: 0 0 370px;
}

/* full‐viewport overlay */
.nm-shop-placeholder {
  position: fixed;
  top:      0;
  left:     0;
  width:    100vw;
  height:   100vh;
  background: rgba(255,255,255,0.8);
  display:  flex;
  align-items:    center;
  justify-content: center;
  z-index:  9999; /* above everything */
}

/* spinner styling (same size & animation as before) */
.nm-shop-spinner {
  width:  40px;
  height: 40px;
  border: 4px solid rgba(0,0,0,0.1);
  border-top-color: var(--brand);
  border-radius:    50%;
  animation:        nm-spin 1s linear infinite;
}

/* keyframes */
@keyframes nm-spin {
  to { transform: rotate(360deg); }
}

.purchase-options-dropdown {
  position: relative;
  width: 100%;
}

button.purchase-options {
  width: 90%;
}

.shop-book-card,
.shop-course-card,
.purchase-options-dropdown {
  overflow: visible !important;
}

.shop-wrapper {
  overflow: visible !important;
}

.purchase-options-dropdown .purchase-options-menu {
  display:      none;
  position:     absolute;
  top:          100%;
  left:         0;
  width:        100%;
  margin:   0;
  padding:      0;
  list-style:   none;
  background:   #fff;
  border:       1px solid #ccc;
  box-shadow:   0 4px 8px rgba(0,0,0,0.1);
  z-index:      1000;
}

.purchase-options-dropdown .purchase-options-menu.open {
  display: block;
}

.purchase-options-dropdown .purchase-options-menu li + li {
  margin-top: .25em;
}

.purchase-options-dropdown .purchase-options-menu a {
  display:         block;
  padding:         .5em 1em;
  color:           #333;
  text-decoration: none;
}

.purchase-options-dropdown .purchase-options-menu a:hover {
  background: #f5f5f5;
}

/* ─────────────────────────────
   CARD BASE
───────────────────────────── */
/* The top banner */
.shop-course-card::before,
.shop-book-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 50%;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(
    to bottom,
    var(--alt-brand) 0%,
    var(--brand)     100%
  );
  z-index: 0;
}

/* Make sure your image sits on top of the banner */
.shop-course-card img,
.shop-book-card img {
  position: relative;
  z-index: 1;
  max-width: 55%;
  margin: 1rem auto;
}

.shop-course-card img {
  max-width: 70%;
}

/* And the rest of the card content should go above both */
.shop-course-card > *,
.shop-book-card > * {
  position: relative;
  z-index: 2;
}

.shop-course-card,
.shop-book-card {
  position: relative;    /* for the ::before */
  overflow: hidden;
  background: var(--primary-bg);
  border-radius: 8px;
  box-shadow: 1px 4px 12px rgba(0,0,0,0.15);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* CONTENT */
.shop-course-card h3,
.shop-book-card h3 {
  margin: 1rem;
  font-size: 1.25rem;
  text-align: center;
  color: var(--headings);
}
.shop-course-card .price,
.shop-book-card .price {
  margin: 0 1rem 0.5rem;
  font-weight: 500;
  text-align: center;
  color: var(--text);
}
.shop-course-card .note {
  margin: 0 1rem 1rem;
  font-size: 0.9rem;
  text-align: center;
  color: var(--text);
}

/* BUTTONS */
.shop-course-card .btn.add-to-cart,
.shop-book-card .btn.purchase-options {
  margin: 0 1rem 1.5rem;
  padding: 0.75rem;
  border-radius: 25px;
  border: 1px solid var(--brand);
  background: transparent;
  color: var(--brand);
  font-size: 1rem;
  cursor: pointer;
  margin-top: auto;
  transition: background 0.2s, color 0.2s;
}
.shop-course-card .btn.add-to-cart:hover,
.shop-book-card .btn.purchase-options:hover {
  background: var(--brand);
  color: var(--primary-bg);
}

/* ─────────────────────────────
   CTA SECTION
───────────────────────────── */
.shop-cta {
  position: relative;
  background: url('../images/mzaPlaneClouds.png') center/cover no-repeat;
  height: 50vh;
}

.shop-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(76, 147, 205, 0.6);
  pointer-events: none;
}

.shop-cta__inner {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  padding: 4rem 1rem;
  text-align: center;
}

.shop-cta__title {
  font-size: 2rem !important;
  line-height: 1.3;
  margin-bottom: 1.5rem;
  color: var(--primary-bg) !important;
  text-shadow: 0 2px 4px rgba(0,0,0,0.25);
}

.cta-subtitle {
  font-size: 1rem !important;
}

.shop-cta-btn {
  margin-top: 2rem;
}


/* ─────────────────────────────
   MOBILE PODIUM SLIDER
───────────────────────────── */
@media (max-width: 768px) {
  .desktop-only { display: none !important; }
  .mobile-only { display: block !important;   width: 100vw; margin-left: calc(-50vw + 50%); margin-right: calc(-50vw + 50%); }
  .subscription-hero { align-items: center; }

  /* Ensure mobile-only section never scrolls the page */
  .shop-subscriptions.mobile-only {
    position: relative;
    overflow: hidden;    /* clip anything outside */
    margin-top: -18rem;
  }

  .feature-list {
    margin: revert;
  }

  .feature-row .feature-label {
    margin-left: 1rem;
  }

  .mobile-slider {
    position: relative;
    width: 100%;
    height: 400px;       /* match your .card-wrapper height */
    overflow: hidden;    /* hide cards that spill outside */
  }

  /* Base for all slides */
  .mobile-slider .feature-col {
    position: absolute;
    top: 0;
    transition: 
      left 0.4s ease-in-out,
      transform 0.4s ease-in-out,
      opacity 0.4s ease-in-out;
    opacity: 0.5;
  }

  /* Left slot (prev) */
  .mobile-slider .feature-col.prev {
    left: 10%;
    transform: translateX(-50%) scale(0.8);
    z-index: 1;
  }

  /* Center slot (active) */
  .mobile-slider .feature-col.active {
    left: 50%;
    transform: translateX(-50%) scale(1);
    opacity: 1;
    z-index: 2;
  }

  /* Right slot (next) */
  .mobile-slider .feature-col.next {
    left: 90%;
    transform: translateX(-50%) scale(0.8);
    z-index: 1;
  }

  /* Tweak image size if you like */
  .tier-card-image {
    height: 250px !important;
    height: auto !important;
  }

  .mobile-slider-cta {
    text-align: center;
    padding: 1rem;
    background: var(--primary-bg);
  }
  .mobile-tier-name {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    color: #333;
    border-bottom: 1px solid #e0e0e0;
  }
  .mobile-add-btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border: 2px solid var(--brand);
    background: transparent;
    color: var(--brand);
    font-size: 1rem;
    border-radius: 4px;
    transition: background 0.2s, color 0.2s;
    cursor: pointer;
  }
  .mobile-add-btn:hover {
    background: var(--brand);
    color: var(--primary-bg);
  }
  /* IMAGE WRAPPER */
  .shop-course-card img,
  .shop-book-card img {
    max-width: 60%;
    margin: 2rem auto 1rem auto;
  }
  .shop-grid,
  #shop-courses-grid {
    grid-template-columns: repeat(1, 1fr);
  }
}

a[href="#cart"] {
  position: relative;
}

a .cart-icon-badge {
  position: absolute;
  top: 0;
  right: 0;
  min-width: 20px;
  height: 20px;
  background: red;
  color: #fff;
  font-size: 14px;
  line-height: 16px;
  text-align: center;
  border-radius: 50%;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  box-sizing: border-box;
}