/* NA Bundle builder — Aesop-style editorial showcase for the starter set
   and other future bundles. Image-led product trio + totals + CTA.
   Sizes are 1rem = 10px (Dawn root: font-size: 62.5%). */

.na-bundle {
  position: relative;
  background: var(--nbb-bg, #efe9df);
  color: var(--nbb-text, #1f1f1d);
}

.na-bundle__inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 clamp(2rem, 4vw, 6rem);
}

/* Intro */
.na-bundle__intro {
  text-align: center;
  margin-bottom: clamp(4rem, 6vw, 8rem);
  max-width: 56ch;
  margin-left: auto;
  margin-right: auto;
}
.na-bundle__eyebrow {
  font-size: 1.2rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.62;
  margin: 0 0 1.6rem;
  font-weight: 500;
}
.na-bundle__title {
  font-size: clamp(3.6rem, 5vw, 6rem);
  line-height: 1.05;
  letter-spacing: -0.005em;
  margin: 0 0 2rem;
}
.na-bundle__lede {
  font-size: clamp(1.6rem, 1.6vw, 1.8rem);
  line-height: 1.7;
  opacity: 0.78;
  margin: 0;
}

/* Product trio */
.na-bundle__products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(2.4rem, 3vw, 4.8rem);
  margin-bottom: clamp(4rem, 5vw, 6.4rem);
}
@media screen and (max-width: 749px) {
  .na-bundle__products {
    grid-template-columns: 1fr;
  }
}

.na-bundle__product {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  text-align: left;
}

.na-bundle__product-media {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  background: rgba(31, 31, 29, 0.05);
  overflow: hidden;
  text-decoration: none;
}
.na-bundle__product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.na-bundle__product-media:hover img {
  transform: scale(1.03);
}

.na-bundle__product-meta {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.na-bundle__product-name {
  font-size: clamp(2rem, 2.2vw, 2.4rem);
  line-height: 1.2;
  margin: 0;
  font-weight: 400;
}
.na-bundle__product-name a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.na-bundle__product-name a:hover {
  border-bottom-color: currentColor;
}
.na-bundle__product-note {
  font-size: 1.45rem;
  line-height: 1.55;
  opacity: 0.74;
  margin: 0;
}
.na-bundle__product-price {
  font-size: 1.45rem;
  letter-spacing: 0.04em;
  margin: 0.4rem 0 0;
  font-variant-numeric: tabular-nums;
}

/* Cart card — totals + CTA */
.na-bundle__cart {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(2.4rem, 3vw, 4rem);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(31, 31, 29, 0.16);
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.na-bundle__totals {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.na-bundle__totals-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 1.5rem;
  line-height: 1.5;
  gap: 1.6rem;
}
.na-bundle__totals-row small {
  font-size: 1.2rem;
  letter-spacing: 0.06em;
  opacity: 0.62;
  display: block;
}
.na-bundle__totals-row--bundle {
  font-size: 1.7rem;
  font-weight: 500;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(31, 31, 29, 0.18);
}
.na-bundle__totals-row--save {
  font-size: 1.4rem;
  color: var(--nbb-accent, #4a4a45);
  letter-spacing: 0.04em;
}

.na-bundle__cta {
  width: 100%;
  padding: 1.8rem 2rem;
  background: var(--nbb-accent, #2a2a26);
  color: #fff;
  border: none;
  font-family: inherit;
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.na-bundle__cta:hover { opacity: 0.86; }
.na-bundle__cta[disabled] { opacity: 0.4; cursor: not-allowed; }
.na-bundle__cta[data-loading='true'] { opacity: 0.7; }
.na-bundle__cta[data-loading='true']::after {
  content: '…';
  margin-left: 0.4em;
}

.na-bundle__cta-note {
  font-size: 1.3rem;
  line-height: 1.5;
  margin: 0;
  text-align: center;
  opacity: 0.7;
  min-height: 2rem;
}
.na-bundle__cta-note[data-state='error']   { color: #b22222; opacity: 1; }
.na-bundle__cta-note[data-state='success'] { color: #2a7a3a; opacity: 1; }

/* Why these three */
.na-bundle__pairings {
  margin-top: clamp(4rem, 6vw, 8rem);
  padding: clamp(3rem, 4vw, 5rem) 0;
  border-top: 1px solid rgba(31, 31, 29, 0.16);
  text-align: center;
  max-width: 64ch;
  margin-left: auto;
  margin-right: auto;
}
.na-bundle__pairings-title {
  font-family: 'Libre Baskerville', var(--font-heading-family), serif;
  font-size: clamp(2.4rem, 2.8vw, 3.2rem);
  line-height: 1.2;
  font-weight: 400;
  margin: 0 0 1.6rem;
}
.na-bundle__pairings-text {
  font-size: 1.6rem;
  line-height: 1.7;
  opacity: 0.78;
}
.na-bundle__pairings-text p { margin: 0 0 1.6rem; }
.na-bundle__pairings-text p:last-child { margin-bottom: 0; }

/* Cart drawer prompt — "Complete the starter set" */
.na-bundle-prompt {
  margin: 1.6rem 0;
  padding: 1.6rem;
  border: 1px solid rgba(var(--color-foreground), 0.16);
  background: rgba(var(--color-foreground), 0.03);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.na-bundle-prompt[hidden] { display: none; }
.na-bundle-prompt__heading {
  font-family: 'Libre Baskerville', var(--font-heading-family), serif;
  font-size: 1.6rem;
  line-height: 1.3;
  font-weight: 400;
  margin: 0;
}
.na-bundle-prompt__text {
  font-size: 1.3rem;
  line-height: 1.5;
  opacity: 0.78;
  margin: 0;
}
.na-bundle-prompt__missing {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 0.4rem 0;
}
.na-bundle-prompt__missing-item {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0.8rem;
  font-size: 1.2rem;
  border: 1px solid rgba(var(--color-foreground), 0.18);
  border-radius: 999px;
  text-decoration: none;
  color: inherit;
}
.na-bundle-prompt__cta {
  width: 100%;
  padding: 1.2rem 1.6rem;
  background: rgb(var(--color-foreground));
  color: rgb(var(--color-background));
  border: none;
  font-family: inherit;
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 0.2s ease;
}
.na-bundle-prompt__cta:hover { opacity: 0.86; }
.na-bundle-prompt__cta[data-loading='true'] { opacity: 0.6; cursor: progress; }

.na-bundle-prompt__success {
  font-size: 1.3rem;
  line-height: 1.5;
  margin: 0.4rem 0 0;
  color: #2a7a3a;
}

/* Dark mode */
html[data-na-theme='dark'] .na-bundle {
  --nbb-bg: rgb(24, 24, 21);
  --nbb-text: rgb(246, 241, 235);
  --nbb-accent: rgb(246, 241, 235);
}
html[data-na-theme='dark'] .na-bundle__cta {
  background: rgb(246, 241, 235);
  color: rgb(24, 24, 21);
}
html[data-na-theme='dark'] .na-bundle__cart {
  background: rgba(31, 31, 28, 0.6);
  border-color: rgba(246, 241, 235, 0.16);
}
html[data-na-theme='dark'] .na-bundle__totals-row--bundle {
  border-top-color: rgba(246, 241, 235, 0.2);
}
html[data-na-theme='dark'] .na-bundle__pairings {
  border-top-color: rgba(246, 241, 235, 0.16);
}
