/* Tullamama — TullaHomeschool unit-study shop styles.
   Everything is scoped under .tm-shop so it never touches the shared header/footer. */

.tm-shop {
  --yellow: #F5B800;
  --yellow-light: #FFF3C0;
  --red: #E6452B;
  --brown: #2D2107;
  --brown-mid: #5C3D0E;
  --cream: #FDF8F0;
  --cream-dark: #F5EDD8;
  --navy: #1A2744;
  --tan: #C9A96E;
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--brown);
}
.tm-shop * { box-sizing: border-box; margin: 0; padding: 0; }

/* ── HERO ── */
.tm-shop .hero {
  background: var(--brown);
  position: relative;
  overflow: hidden;
  padding: 60px 20px 80px;
  text-align: center;
  width: 100%;
}
.tm-shop .hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(245,184,0,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.tm-shop .hero-eyebrow {
  display: inline-block;
  background: var(--yellow);
  color: var(--brown);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 2px;
  margin-bottom: 20px;
}
.tm-shop .hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 10vw, 5rem);
  font-weight: 600;
  color: #fff;
  line-height: 1.0;
  margin-bottom: 8px;
  word-break: break-word;
  overflow-wrap: break-word;
}
.tm-shop .hero h1 em { color: var(--yellow); font-style: italic; }
.tm-shop .hero-sub {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1rem, 3vw, 1.4rem);
  color: rgba(255,255,255,0.65);
  font-style: italic;
  margin-bottom: 24px;
}
.tm-shop .hero-desc {
  max-width: 540px;
  margin: 0 auto 32px;
  color: rgba(255,255,255,0.7);
  font-size: 0.95rem;
  line-height: 1.75;
  font-weight: 300;
}
.tm-shop .hero-pillars {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}
.tm-shop .hero-pillar {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.8);
  font-size: 0.75rem;
  padding: 6px 14px;
  border-radius: 40px;
}
.tm-shop .hero-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 50px;
  background: var(--cream);
  clip-path: ellipse(55% 100% at 50% 100%);
}

/* ── PROMISE STRIP ── */
.tm-shop .promise-strip {
  background: var(--yellow);
  padding: 16px 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: 100%;
}
.tm-shop .promise-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--brown);
  font-size: 0.82rem;
  font-weight: 500;
  justify-content: center;
  text-align: center;
}

/* ── SECTION HEADER ── */
.tm-shop .section-header {
  text-align: center;
  padding: 52px 20px 32px;
  width: 100%;
}
.tm-shop .section-eyebrow {
  display: inline-block;
  color: var(--red);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.tm-shop .section-header h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 600;
  color: var(--brown);
  line-height: 1.2;
  margin-bottom: 14px;
}
.tm-shop .section-header p {
  max-width: 520px;
  margin: 0 auto;
  color: var(--brown-mid);
  font-size: 0.93rem;
  line-height: 1.7;
  font-weight: 300;
}

/* ── PRODUCTS GRID ── */
.tm-shop .products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px 56px;
}

/* ── PRODUCT CARD ── */
.tm-shop .product-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 20px rgba(45,33,7,0.08);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  width: 100%;
  transition: transform .18s ease, box-shadow .18s ease;
}
.tm-shop .product-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(45,33,7,0.14); }
.tm-shop .product-card-img {
  background: var(--navy);
  height: 190px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.tm-shop .product-card-img::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, transparent, transparent 28px, rgba(255,255,255,0.04) 28px, rgba(255,255,255,0.04) 29px);
}
.tm-shop .card-stars {
  position: absolute;
  top: 14px;
  left: 0; right: 0;
  text-align: center;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  color: var(--tan);
  opacity: 0.7;
}
.tm-shop .card-series-label {
  position: absolute;
  top: 36px;
  left: 0; right: 0;
  text-align: center;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--tan);
}
.tm-shop .card-title-big {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.0;
  text-align: center;
  position: relative;
  z-index: 1;
}
.tm-shop .card-title-sub {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.95rem;
  font-style: italic;
  color: rgba(255,255,255,0.6);
  text-align: center;
  position: relative;
  z-index: 1;
  margin-top: 4px;
}
.tm-shop .card-badge-strip {
  position: absolute;
  bottom: 0;
  left: 0; right: 0;
  background: var(--red);
  padding: 6px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.tm-shop .card-badge-strip span {
  color: #fff;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  font-weight: 500;
  text-transform: uppercase;
}
.tm-shop .product-card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.tm-shop .card-tag {
  display: inline-block;
  background: var(--yellow-light);
  color: var(--brown);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 3px;
  margin-bottom: 10px;
}
.tm-shop .product-card-body h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--brown);
  margin-bottom: 8px;
  line-height: 1.25;
}
.tm-shop .product-card-body p {
  font-size: 0.88rem;
  color: var(--brown-mid);
  line-height: 1.65;
  font-weight: 300;
  flex: 1;
  margin-bottom: 18px;
}
.tm-shop .card-includes {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 18px;
}
.tm-shop .card-include {
  background: var(--cream-dark);
  color: var(--brown-mid);
  font-size: 0.68rem;
  padding: 4px 10px;
  border-radius: 20px;
}
.tm-shop .btn-primary {
  display: block;
  background: var(--yellow);
  color: var(--brown);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: 4px;
  text-decoration: none;
  letter-spacing: 0.04em;
  text-align: center;
  width: 100%;
}

/* ── COMING SOON / PREVIEW CARD ── */
.tm-shop .coming-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  border: 2px dashed var(--cream-dark);
  display: flex;
  flex-direction: column;
  width: 100%;
  text-decoration: none;
  color: inherit;
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
  opacity: 0.85;
}
.tm-shop a.coming-card:hover { opacity: 1; transform: translateY(-4px); box-shadow: 0 12px 30px rgba(45,33,7,0.12); }
.tm-shop .coming-card-img {
  background: var(--cream-dark);
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
}
.tm-shop .coming-emoji { font-size: 2.6rem; }
.tm-shop .coming-badge {
  display: inline-block;
  background: var(--cream);
  border: 1px solid var(--cream-dark);
  color: var(--tan);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
}
.tm-shop .coming-card-body { padding: 20px; flex: 1; }
.tm-shop .coming-season {
  font-size: 0.7rem;
  color: var(--tan);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.tm-shop .coming-card-body h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--brown);
  margin-bottom: 8px;
}
.tm-shop .coming-card-body p {
  font-size: 0.85rem;
  color: var(--brown-mid);
  line-height: 1.6;
  font-weight: 300;
  margin-bottom: 14px;
}
.tm-shop .notify-link {
  font-size: 0.82rem;
  color: var(--red);
  text-decoration: underline;
  font-weight: 500;
  cursor: pointer;
}

/* ── LEGAL-GUIDE BANNER (cross-link to the TN homeschool guide) ── */
.tm-shop .guide-banner {
  max-width: 1100px;
  margin: 0 auto 56px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  background: var(--brown);
  color: #fff;
  border-radius: 12px;
  padding: 22px 26px;
  text-decoration: none;
}
.tm-shop .guide-banner .gb-icon {
  flex: none;
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--yellow);
  display: grid; place-items: center;
}
.tm-shop .guide-banner .gb-kicker {
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--yellow); margin-bottom: 4px;
}
.tm-shop .guide-banner h3 {
  font-family: 'Cormorant Garamond', serif; font-size: 1.35rem; font-weight: 600; color: #fff; margin-bottom: 3px;
}
.tm-shop .guide-banner p { font-size: 0.85rem; color: rgba(255,255,255,0.7); font-weight: 300; }
.tm-shop .guide-banner .gb-go { flex: none; color: var(--yellow); font-weight: 600; font-size: 0.9rem; }

/* ── HOW IT WORKS ── */
.tm-shop .how-section {
  background: var(--brown);
  padding: 60px 20px;
  width: 100%;
  overflow: hidden;
}
.tm-shop .how-section .section-eyebrow { color: var(--yellow); }
.tm-shop .how-section h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 600;
  color: #fff;
  text-align: center;
  margin-bottom: 40px;
}
.tm-shop .how-steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  max-width: 860px;
  margin: 0 auto;
}
.tm-shop .how-step { text-align: center; }
.tm-shop .how-step-num {
  width: 42px;
  height: 42px;
  border: 2px solid var(--yellow);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--yellow);
}
.tm-shop .how-step h4 {
  color: #fff;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 6px;
}
.tm-shop .how-step p {
  color: rgba(255,255,255,0.55);
  font-size: 0.83rem;
  line-height: 1.6;
  font-weight: 300;
}

/* ── ABOUT ── */
.tm-shop .about-section {
  background: var(--cream-dark);
  padding: 60px 20px;
  width: 100%;
}
.tm-shop .about-inner {
  max-width: 780px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}
.tm-shop .about-quote-col blockquote {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  font-style: italic;
  color: var(--brown);
  line-height: 1.4;
  border-left: 4px solid var(--yellow);
  padding-left: 18px;
}
.tm-shop .about-text-col .section-eyebrow { text-align: left; display: block; margin-bottom: 8px; }
.tm-shop .about-text-col h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--brown);
  margin-bottom: 16px;
}
.tm-shop .about-text-col p {
  font-size: 0.9rem;
  color: var(--brown-mid);
  line-height: 1.75;
  font-weight: 300;
  margin-bottom: 14px;
}
.tm-shop .about-sig {
  color: var(--brown);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  font-style: italic;
  margin-top: 6px;
}

/* ── UNIT DETAIL (preview pages) ── */
.tm-shop .unit-wrap { max-width: 820px; margin: 0 auto; padding: 8px 20px 64px; }
.tm-shop .unit-block { margin-top: 44px; }
.tm-shop .unit-block > .section-eyebrow { text-align: left; display: block; }
.tm-shop .unit-block h2 {
  font-family: 'Cormorant Garamond', serif; font-size: clamp(1.5rem,4vw,2.1rem);
  font-weight: 600; color: var(--brown); margin-bottom: 12px; line-height: 1.2;
}
.tm-shop .unit-block p { color: var(--brown-mid); font-weight: 300; line-height: 1.75; margin-bottom: 14px; font-size: 0.95rem; }
.tm-shop .subject-grid { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 8px; }
.tm-shop .subject {
  background: #fff; border-radius: 10px; padding: 18px 20px;
  box-shadow: 0 2px 14px rgba(45,33,7,0.06);
}
.tm-shop .subject h4 { font-family: 'Cormorant Garamond', serif; font-size: 1.15rem; font-weight: 600; color: var(--brown); margin-bottom: 4px; }
.tm-shop .subject p { font-size: 0.86rem; margin-bottom: 0; }
.tm-shop .unit-cta {
  background: var(--brown); border-radius: 14px; padding: 36px 28px; text-align: center; margin-top: 48px;
}
.tm-shop .unit-cta h2 { font-family: 'Cormorant Garamond', serif; font-size: 1.7rem; font-weight: 600; color: #fff; margin-bottom: 8px; }
.tm-shop .unit-cta p { color: rgba(255,255,255,0.7); font-weight: 300; max-width: 46ch; margin: 0 auto 22px; font-size: 0.92rem; }
.tm-shop .unit-cta a.btn-primary { display: inline-block; width: auto; }
.tm-shop .unit-back { display: inline-block; margin-top: 28px; color: var(--red); font-weight: 500; font-size: 0.88rem; text-decoration: none; }
.tm-shop .unit-back:hover { text-decoration: underline; }

/* ── DESKTOP ENHANCEMENTS (768px+) ── */
@media (min-width: 768px) {
  .tm-shop .hero { padding: 80px 40px 100px; }
  .tm-shop .promise-strip {
    display: flex;
    gap: 40px;
    justify-content: center;
    padding: 18px 40px;
  }
  .tm-shop .promise-item { font-size: 0.87rem; }
  .tm-shop .section-header { padding: 70px 40px 40px; }
  .tm-shop .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    padding: 0 32px 80px;
    gap: 28px;
  }
  .tm-shop .guide-banner { margin-bottom: 80px; }
  .tm-shop .about-inner {
    grid-template-columns: 1fr 2fr;
    gap: 60px;
  }
  .tm-shop .how-steps {
    grid-template-columns: repeat(5, 1fr);
  }
  .tm-shop .subject-grid { grid-template-columns: 1fr 1fr; }
}
