/* ==========================================================================
   04-components.css
   Content blocks: hero, inner page header, stats band, why cards, product cards, split sections, therapist cards, price table.
   Load order: 4 of 7 - see README.md ("Stylesheet layer order").
   ========================================================================== */

/* --------------------------------------------------------------------------
   7. Hero - a solid colour panel next to the photograph
   -------------------------------------------------------------------------- */
/* The image no longer sits *behind* the copy, so there is no overlay to tint it
   with. Panel and picture are two blocks side by side, each fully itself. */
.hero { display: grid; background: var(--plum-800); color: #fff; }

.hero-panel {
  display: flex; align-items: center;
  padding: clamp(3rem, 9vw, 6rem) var(--gutter);
  background: var(--plum-800);
}
.hero-copy { max-width: 40rem; margin-inline: auto; width: 100%; }

.hero-title {
  font-size: clamp(2.1rem, 6vw, 3.6rem);
  font-weight: 700; line-height: 1.06; letter-spacing: -.035em;
  color: #fff; margin-bottom: .38em;
}
.hero-lead {
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  color: rgba(255,255,255,.84);
  max-width: 34rem; margin-bottom: 2rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 2.25rem; }

.hero-badges { display: grid; gap: .55rem; }
.hero-badges li {
  display: flex; align-items: flex-start; gap: .5rem;
  font-size: .84rem; color: rgba(255,255,255,.78);
}
.hero-badges .icon { color: var(--sun-400); flex: none; margin-top: .3em; }

.hero-media { background: var(--plum-700); aspect-ratio: 5 / 4; overflow: hidden; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; }

/* --------------------------------------------------------------------------
   8. Inner page header - flat green, no photograph behind the type
   -------------------------------------------------------------------------- */
.page-header {
  background: var(--plum-800); color: #fff;
  padding-block: clamp(2.25rem, 6vw, 4rem);
}
.page-header-title { font-size: clamp(1.9rem, 4.6vw, 3rem); color: #fff; margin-bottom: .35em; letter-spacing: -.03em; }
.page-header-lead { color: rgba(255,255,255,.82); font-size: clamp(1rem, 1.2vw, 1.1rem); margin: 0; max-width: 46rem; }

.breadcrumbs { margin-bottom: 1.5rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; font-size: .8rem; }
.breadcrumbs li + li::before { content: '/'; margin-inline-end: .5rem; color: rgba(255,255,255,.4); }
.breadcrumbs a { color: rgba(255,255,255,.66); }
.breadcrumbs a:hover { color: var(--sun-300); }
.breadcrumbs [aria-current="page"] { color: var(--sun-300); }

/* On the product page the trail sits on cream, so it needs the dark palette. */
.pdp-crumbs .breadcrumbs { margin-bottom: 0; }
.pdp-crumbs .breadcrumbs a { color: var(--ink-soft); }
.pdp-crumbs .breadcrumbs a:hover { color: var(--sun-600); }
.pdp-crumbs .breadcrumbs li + li::before { color: var(--slate-300); }
.pdp-crumbs .breadcrumbs [aria-current="page"] { color: var(--plum-700); font-weight: 500; }

/* --------------------------------------------------------------------------
   9. Stats band
   -------------------------------------------------------------------------- */
.stats-band { background: var(--plum-800); color: #fff; }
.stats-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1px; background: rgba(255,255,255,.12);
  border-inline: 1px solid rgba(255,255,255,.12);
}
.stat {
  display: flex; flex-direction: column; align-items: center; gap: .25rem;
  padding: clamp(1.5rem, 3.5vw, 2.4rem) 1rem;
  background: var(--plum-800); text-align: center;
}
.stat-value {
  font-size: clamp(1.6rem, 3.4vw, 2.35rem); font-weight: 700;
  color: var(--sun-400); letter-spacing: -.03em; line-height: 1;
}
.stat-label { font-size: .78rem; color: rgba(255,255,255,.7); line-height: 1.35; }

/* --------------------------------------------------------------------------
   10. "Why" cards
   -------------------------------------------------------------------------- */
.why-grid {
  display: grid; gap: clamp(1rem, 2vw, 1.5rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr));
}
.why-card {
  position: relative; overflow: hidden;
  padding: clamp(1.5rem, 3vw, 2.1rem);
  background: var(--paper);
  border: 1px solid var(--line-soft);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.why-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--plum-100); }
.why-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 50px; height: 50px; margin-bottom: 1.1rem;
  background: var(--plum-50); color: var(--plum-600);
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
.why-card:hover .why-icon { background: var(--sun-500); color: var(--plum-900); }
/* Two lines is the common case for these titles; reserving the space keeps the
   body copy on a shared baseline across the row. */
.why-card h3 { font-size: 1.06rem; margin-bottom: .45em; min-height: 2.36em; }
.why-card p { font-size: .9rem; color: var(--ink-soft); margin: 0; }
.why-num {
  position: absolute; top: .9rem; inset-inline-end: 1.2rem;
  font-size: 2.4rem; font-weight: 700; line-height: 1;
  color: var(--slate-100); letter-spacing: -.04em; pointer-events: none;
}

/* --------------------------------------------------------------------------
   11. Product cards & catalogue grid
   -------------------------------------------------------------------------- */
.product-grid {
  display: grid; gap: clamp(.85rem, 1.6vw, 1.25rem);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
}

.product-card {
  display: flex; flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line-soft);
  overflow: hidden;
  transition: transform .28s var(--ease), box-shadow .28s var(--ease), border-color .28s var(--ease);
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--plum-100); }
.product-card[hidden] { display: none; }

.product-media { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--plum-100); }
.product-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; transition: transform .6s var(--ease); }
.product-card:hover .product-media img { transform: scale(1.05); }

/* The icon sits in the category line inside the card body, not over the photo,
   so absolute positioning threw it into the card's bottom-right corner. */
.product-icon {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  color: var(--plum-600); margin-inline-end: .35rem;
}

.badge-stack { position: absolute; top: .55rem; left: .55rem; display: flex; flex-direction: column; gap: .3rem; align-items: flex-start; }
.badge {
  padding: .26rem .6rem;
  font-size: .65rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  line-height: 1.4;
}
.badge-bestseller { background: var(--sun-500); color: var(--plum-900); }
.badge-new        { background: var(--plum-600); color: #fff; }
.badge-adult      { background: var(--slate-700); color: #fff; }
.badge-code       { background: rgba(36, 21, 57,.85); color: var(--sun-300); backdrop-filter: blur(6px); letter-spacing: .07em; }

.product-body { display: flex; flex-direction: column; flex: 1; padding: .95rem 1.05rem 1.15rem; }
.product-cat {
  display: flex; align-items: center;
  font-size: .66rem; font-weight: 600; letter-spacing: .11em; text-transform: uppercase;
  color: var(--sun-600); margin: 0 0 .3rem;
}
.product-title { font-size: 1rem; margin: 0 0 .15em; letter-spacing: -.015em; }
.product-title a { color: var(--plum-800); }
.product-title a::after { content: ''; position: absolute; inset: 0; }
.product-card { position: relative; }
.product-title a:hover { color: var(--sun-600); }
.product-sub {
  font-size: .68rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase;
  color: var(--slate-500); margin: 0 0 .6em;
}
.product-text { font-size: .84rem; color: var(--ink-soft); margin: 0 0 .8em; }

.product-meta { display: flex; flex-wrap: wrap; gap: .3rem; margin-bottom: .9rem; }
.product-meta li {
  padding: .18rem .5rem;
  background: var(--cream-2); color: var(--ink-soft); font-size: .68rem; font-weight: 500;
}
.product-meta .meta-flag { background: var(--plum-50); color: var(--plum-700); }

.product-foot {
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  margin-top: auto; padding-top: .85rem; border-top: 1px solid var(--line-soft);
}
.product-price { display: flex; flex-direction: column; line-height: 1.15; }
.product-price small { font-size: .63rem; text-transform: uppercase; letter-spacing: .1em; color: var(--slate-500); }
.product-price strong { font-size: 1.08rem; font-weight: 700; color: var(--plum-700); letter-spacing: -.02em; }
.product-cta { position: relative; z-index: 1; }

/* --------------------------------------------------------------------------
   12. Split sections
   -------------------------------------------------------------------------- */
.split { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split-copy > .section-title { margin-bottom: .7em; }
.split-media img { width: 100%; box-shadow: var(--shadow); aspect-ratio: 4 / 5; object-fit: cover; object-position: center 20%; }

.check-list { display: grid; gap: .8rem; margin-bottom: 1.75rem; }
.check-list li { display: flex; gap: .75rem; align-items: flex-start; font-size: .95rem; }
.check-list .icon { color: var(--plum-500); margin-top: .32em; }

.therapy-list { display: grid; gap: 1.3rem; margin-bottom: .5rem; }
.therapy-item { display: flex; gap: 1.1rem; align-items: flex-start; }
.therapy-num {
  font-size: 1.05rem; font-weight: 700; color: var(--sun-500);
  padding-top: .1em; letter-spacing: -.02em; flex: none;
}
.therapy-item h3 { font-size: 1.02rem; margin-bottom: .25em; }
.therapy-item p { font-size: .9rem; color: var(--ink-soft); margin: 0; }

.info-list { display: grid; gap: 1.1rem; margin-bottom: 1.75rem; }
.info-list li { display: flex; gap: .9rem; align-items: flex-start; }
.info-list .icon { color: var(--sun-600); margin-top: .25em; }
.info-list span { display: flex; flex-direction: column; gap: .1rem; font-size: .95rem; }
.info-list strong {
  font-size: .7rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--slate-500);
}

/* --------------------------------------------------------------------------
   14. Therapist cards - the roster is the storefront's headline product
   -------------------------------------------------------------------------- */
.therapist-grid {
  display: grid; gap: clamp(.85rem, 1.6vw, 1.25rem);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr));
}

.therapist-card {
  display: flex; flex-direction: column;
  background: var(--paper); border: 1px solid var(--line-soft);
  overflow: hidden;
  transition: transform .28s var(--ease), box-shadow .28s var(--ease), border-color .28s var(--ease);
}
.therapist-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--plum-100); }
.therapist-card[hidden] { display: none; }

.therapist-media { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: var(--plum-100); }
.therapist-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 16%; transition: transform .6s var(--ease); }
.therapist-card:hover .therapist-media img { transform: scale(1.05); }

.therapist-code {
  position: absolute; top: 0; inset-inline-start: 0;
  padding: .3rem .65rem;
  background: var(--plum-800); color: var(--sun-300);
  font-size: .7rem; font-weight: 700; letter-spacing: .09em;
}

.therapist-body { display: flex; flex-direction: column; flex: 1; padding: .85rem .95rem 1rem; }

.therapist-rating { display: flex; align-items: center; gap: .35rem; font-size: .78rem; margin: 0 0 .55rem; }
.therapist-rating strong { color: var(--plum-800); }
.therapist-rating span { color: var(--ink-soft); }
.therapist-rating .star { color: var(--sun-500); }

.therapist-skills { display: flex; flex-wrap: wrap; gap: .28rem; margin-bottom: .7rem; }
.therapist-skills li {
  padding: .2rem .5rem;
  background: var(--plum-50); color: var(--plum-700);
  font-size: .66rem; font-weight: 500;
}

.therapist-avail {
  display: flex; align-items: center; gap: .4rem;
  margin: 0 0 .85rem; font-size: .72rem; font-weight: 600; color: var(--plum-600);
}
.therapist-avail .dot {
  width: 7px; height: 7px; flex: none;
  background: var(--online); box-shadow: 0 0 0 3px rgba(47, 191, 113,.22);
}

.therapist-actions { display: flex; align-items: center; gap: .35rem; margin-top: auto; }
.therapist-actions .btn { flex: 1; min-width: 0; }
.therapist-chats { display: flex; gap: .28rem; }
.therapist-chats a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; flex: none;
  background: var(--cream-2); color: var(--plum-700);
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.therapist-chats a:hover { background: var(--plum-700); color: #fff; }
.zalo-mark { font-weight: 800; font-size: .82rem; line-height: 1; }

/* --------------------------------------------------------------------------
   15. Price table
   -------------------------------------------------------------------------- */
.table-wrap {
  overflow-x: auto;
  background: var(--paper);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-sm);
  -webkit-overflow-scrolling: touch;
}
.price-table { width: 100%; min-width: 660px; border-collapse: collapse; }
.price-table th, .price-table td { padding: 1rem 1.15rem; text-align: start; }
.price-table thead th {
  background: var(--plum-800); color: #fff;
  font-size: .76rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  white-space: nowrap;
}
.price-table thead th:first-child { }
.price-table thead th:last-child  { }
.price-table tbody tr + tr { border-top: 1px solid var(--line-soft); }
.price-table tbody tr:hover { background: var(--plum-50); }
.price-table tbody th {
  font-weight: 600; color: var(--plum-800);
  display: flex; flex-direction: column; gap: .15rem;
}
.price-table tbody th small {
  font-size: .7rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase;
  color: var(--slate-500);
}
.price-table td { font-weight: 600; color: var(--plum-700); white-space: nowrap; }
.price-table td.late { color: var(--slate-700); }
.price-table td.late .icon { vertical-align: -3px; margin-inline-end: .25rem; color: var(--sun-600); }
.price-table .dash { color: var(--slate-300); font-weight: 400; }

.promise-grid {
  display: grid; gap: clamp(1rem, 2vw, 1.5rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
}
.promise-card {
  display: flex; flex-direction: column; gap: .9rem; align-items: flex-start;
  padding: clamp(1.35rem, 2.5vw, 1.85rem);
  background: var(--paper); border: 1px solid var(--line-soft);
  font-size: .92rem; color: var(--ink-soft);
}
.promise-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  background: var(--plum-50); color: var(--plum-600);
}
.promise-card p { margin: 0; }
