/* MOCLEN product card refinement inspired by the inset-image card layout in the reference. */
.product-card {
  padding: 12px;
  border-radius: 20px;
  transform-origin: center center;
  transition: transform .34s cubic-bezier(.2, .75, .25, 1), box-shadow .34s cubic-bezier(.2, .75, .25, 1);
}

.product-card-featured {
  border-radius: 20px;
}

.product-image-link {
  border-radius: 12px;
}

.product-card-content {
  padding: 16px 4px 17px;
}

.product-card-featured .product-card-content {
  padding: 16px 5px 18px;
}

.product-image-link img {
  transition: transform .42s cubic-bezier(.22, 1, .36, 1);
}

@media (hover: hover) and (pointer: fine) {
  .motion-ready .product-card[data-reveal].is-visible:hover,
  .motion-ready .product-card[data-reveal]:hover,
  .product-card:hover {
    position: relative;
    z-index: 2;
    transform: translate3d(0, -14px, 0) scale(1.02);
    box-shadow: 0 24px 46px rgba(43, 106, 87, .22), 0 7px 16px rgba(43, 106, 87, .09);
  }

  .product-card:hover .product-image-link img {
    transform: scale(1.04);
  }
}

.motion-ready .product-card[data-reveal].is-visible:focus-within,
.motion-ready .product-card[data-reveal]:focus-within,
.product-card:focus-within {
  position: relative;
  z-index: 2;
  transform: translate3d(0, -14px, 0) scale(1.02);
  box-shadow: 0 24px 46px rgba(43, 106, 87, .22), 0 7px 16px rgba(43, 106, 87, .09);
}

.product-card:focus-within .product-image-link img {
  transform: scale(1.04);
}

/* Match the full-card hover treatment on learning and project cards. */
.article-card,
.atelier-project-tile,
.atelier-showcase-card {
  border-radius: 20px;
  transform-origin: center center;
  transition: transform .34s cubic-bezier(.2, .75, .25, 1), box-shadow .34s cubic-bezier(.2, .75, .25, 1);
}

.article-card-image,
.atelier-project-tile img,
.atelier-showcase-image img {
  transition: transform .42s cubic-bezier(.22, 1, .36, 1);
}

@media (hover: hover) and (pointer: fine) {
  .motion-ready .article-card[data-reveal].is-visible:hover,
  .motion-ready .article-card[data-reveal]:hover,
  .article-card:hover,
  .motion-ready .atelier-project-tile[data-reveal].is-visible:hover,
  .motion-ready .atelier-project-tile[data-reveal]:hover,
  .atelier-project-tile:hover,
  .motion-ready .atelier-showcase-card[data-reveal].is-visible:hover,
  .motion-ready .atelier-showcase-card[data-reveal]:hover,
  .atelier-showcase-card:hover {
    position: relative;
    z-index: 2;
    transform: translate3d(0, -14px, 0) scale(1.02);
    box-shadow: 0 24px 46px rgba(43, 106, 87, .22), 0 7px 16px rgba(43, 106, 87, .09);
  }

  .article-card:hover .article-card-image,
  .atelier-project-tile:hover img,
  .atelier-showcase-card:hover .atelier-showcase-image img {
    transform: scale(1.04);
  }
}

.motion-ready .article-card[data-reveal].is-visible:focus-within,
.motion-ready .article-card[data-reveal]:focus-within,
.article-card:focus-within,
.motion-ready .atelier-project-tile[data-reveal].is-visible:focus-within,
.motion-ready .atelier-project-tile[data-reveal]:focus-within,
.atelier-project-tile:focus-within,
.motion-ready .atelier-showcase-card[data-reveal].is-visible:focus-within,
.motion-ready .atelier-showcase-card[data-reveal]:focus-within,
.atelier-showcase-card:focus-within {
  position: relative;
  z-index: 2;
  transform: translate3d(0, -14px, 0) scale(1.02);
  box-shadow: 0 24px 46px rgba(43, 106, 87, .22), 0 7px 16px rgba(43, 106, 87, .09);
}

.article-card:focus-within .article-card-image,
.atelier-project-tile:focus-within img,
.atelier-showcase-card:focus-within .atelier-showcase-image img {
  transform: scale(1.04);
}

@media (prefers-reduced-motion: reduce) {
  .product-card,
  .product-image-link img,
  .article-card,
  .article-card-image,
  .atelier-project-tile,
  .atelier-project-tile img,
  .atelier-showcase-card,
  .atelier-showcase-image img {
    transition: none;
  }

  .motion-ready .product-card[data-reveal].is-visible:hover,
  .motion-ready .product-card[data-reveal]:hover,
  .product-card:hover,
  .motion-ready .product-card[data-reveal].is-visible:focus-within,
  .motion-ready .product-card[data-reveal]:focus-within,
  .product-card:focus-within,
  .motion-ready .article-card[data-reveal].is-visible:hover,
  .motion-ready .article-card[data-reveal]:hover,
  .article-card:hover,
  .motion-ready .article-card[data-reveal].is-visible:focus-within,
  .motion-ready .article-card[data-reveal]:focus-within,
  .article-card:focus-within,
  .motion-ready .atelier-project-tile[data-reveal].is-visible:hover,
  .motion-ready .atelier-project-tile[data-reveal]:hover,
  .atelier-project-tile:hover,
  .motion-ready .atelier-project-tile[data-reveal].is-visible:focus-within,
  .motion-ready .atelier-project-tile[data-reveal]:focus-within,
  .atelier-project-tile:focus-within,
  .motion-ready .atelier-showcase-card[data-reveal].is-visible:hover,
  .motion-ready .atelier-showcase-card[data-reveal]:hover,
  .atelier-showcase-card:hover,
  .motion-ready .atelier-showcase-card[data-reveal].is-visible:focus-within,
  .motion-ready .atelier-showcase-card[data-reveal]:focus-within,
  .atelier-showcase-card:focus-within {
    transform: none;
  }

  .product-card:hover .product-image-link img,
  .product-card:focus-within .product-image-link img,
  .article-card:hover .article-card-image,
  .article-card:focus-within .article-card-image,
  .atelier-project-tile:hover img,
  .atelier-project-tile:focus-within img,
  .atelier-showcase-card:hover .atelier-showcase-image img,
  .atelier-showcase-card:focus-within .atelier-showcase-image img {
    transform: none;
  }
}

/* Keep the new square mascot logo balanced with the existing header and footer. */
.brand-lockup .brand-logo {
  width: 100px;
  height: 100px;
  object-fit: contain;
}

@media (max-width: 760px) {
  .brand-lockup .brand-logo {
    width: 86px;
    height: 86px;
  }
}

@media (max-width: 520px) {
  .brand-lockup .brand-logo {
    width: 76px;
    height: 76px;
  }
}

/* Personalized gift finder entry point and recommendations. */
.nav-dropdown-all.gift-finder-nav-link {
  margin-top: 7px;
  border-top: 1px solid rgba(43, 106, 87, .13);
  color: #286b58;
}

.gift-finder-nav-link { font-weight: 700; }

/* Product detail image frame and accessible zoom control. */
.atelier-detail-visual .detail-image {
  position: relative;
  border: 1px solid rgba(43, 106, 87, .18);
  border-radius: 14px;
  background: var(--surface, #fffdf9);
  box-shadow: 0 18px 40px rgba(32, 61, 50, .10);
}

.atelier-detail-visual .detail-image img {
  transform-origin: center;
  transition: transform .28s cubic-bezier(.22, 1, .36, 1);
}

@media (hover: hover) and (pointer: fine) {
  .atelier-detail-visual .detail-image.is-zooming img {
    transform: scale(1.7);
    transform-origin: var(--product-zoom-x, 50%) var(--product-zoom-y, 50%);
  }

  .atelier-detail-visual .detail-image.is-zooming {
    cursor: zoom-in;
  }
}

.atelier-detail-visual .detail-image:focus-within img {
  transform: scale(1.08);
}

.detail-image-zoom {
  position: absolute;
  z-index: 2;
  top: 14px;
  right: 14px;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(43, 106, 87, .14);
  border-radius: 50%;
  background: rgba(255, 253, 249, .94);
  color: var(--forest, #286b58);
  cursor: zoom-in;
  box-shadow: 0 5px 16px rgba(32, 61, 50, .16);
  transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease;
}

.detail-image-zoom svg,
.product-image-lightbox-close svg {
  width: 21px;
  height: 21px;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.detail-image-zoom:hover,
.detail-image-zoom:focus-visible {
  transform: scale(1.06);
  background: #fff;
  box-shadow: 0 8px 20px rgba(32, 61, 50, .2);
}

.detail-image-zoom:focus-visible,
.product-image-lightbox-close:focus-visible {
  outline: 3px solid rgba(43, 106, 87, .35);
  outline-offset: 3px;
}

.product-image-lightbox {
  position: fixed;
  width: min(94vw, 1100px);
  max-width: none;
  max-height: 92vh;
  padding: clamp(14px, 2.5vw, 28px);
  overflow: visible;
  border: 1px solid rgba(255, 255, 255, .65);
  border-radius: 18px;
  background: #fffdf9;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .28);
}

.product-image-lightbox[open] {
  display: grid;
  place-items: center;
}

.product-image-lightbox::backdrop {
  background: rgba(25, 39, 33, .76);
  backdrop-filter: blur(3px);
}

.product-image-lightbox > img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: calc(92vh - 56px);
  margin: auto;
  border-radius: 9px;
  object-fit: contain;
}

.product-image-lightbox-close {
  position: absolute;
  z-index: 1;
  top: 8px;
  right: 8px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(43, 106, 87, .14);
  border-radius: 50%;
  background: #fffdf9;
  color: var(--forest, #286b58);
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(32, 61, 50, .12);
}

@media (max-width: 520px) {
  .detail-image-zoom {
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .detail-image-zoom,
  .atelier-detail-visual .detail-image img { transition: none; }

  .atelier-detail-visual .detail-image.is-zooming img,
  .atelier-detail-visual .detail-image:hover img,
  .atelier-detail-visual .detail-image:focus-within img { transform: none; }
}

/* Keep the product-detail eyebrow and level label on a shared, aligned line. */
.product-detail-kicker-row {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 12px;
  min-width: 0;
}

.product-detail-kicker-row .detail-project-sheet,
.product-detail-kicker-row .detail-level-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--sage-deep, #638d70);
  font-family: inherit;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .09em;
  line-height: 1.3;
  text-transform: uppercase;
  white-space: nowrap;
}

.product-detail-kicker-row .detail-project-sheet {
  flex: 0 1 auto;
  min-width: 0;
}

.product-detail-kicker-row .detail-level-kicker {
  flex: 0 0 auto;
}

.product-detail-kicker-row .detail-kicker-divider {
  display: block;
  width: 28px;
  height: 1px;
  flex: 0 0 28px;
  background: var(--peach-deep, #d97858);
}

@media (max-width: 560px) {
  .product-detail-kicker-row {
    flex-wrap: wrap;
    gap: 6px 9px;
  }

  .product-detail-kicker-row .detail-project-sheet,
  .product-detail-kicker-row .detail-level-kicker {
    font-size: .6rem;
    letter-spacing: .055em;
  }

  .product-detail-kicker-row .detail-kicker-divider {
    width: 20px;
    flex-basis: 20px;
  }
}

.gift-finder-promo-card {
  position: relative;
  display: grid;
  min-height: 300px;
  grid-template-columns: minmax(0, 1.2fr) minmax(240px, .8fr);
  align-items: center;
  gap: 32px;
  overflow: hidden;
  padding: clamp(26px, 5vw, 56px);
  border: 1px solid rgba(43, 106, 87, .16);
  border-radius: 24px;
  background: linear-gradient(112deg, #fffdf8 8%, #faf2e5 100%);
  box-shadow: 0 10px 28px rgba(48, 68, 56, .07);
  color: inherit;
  text-decoration: none;
  transform-origin: center;
  transition: transform .34s cubic-bezier(.2, .75, .25, 1), box-shadow .34s cubic-bezier(.2, .75, .25, 1), border-color .2s ease;
}

.gift-finder-promo-copy { position: relative; z-index: 1; max-width: 660px; }
.gift-finder-promo-copy .eyebrow { color: #638d70; }
.gift-finder-promo-copy h2 { max-width: 620px; margin: 12px 0; color: #286b58; font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 700; letter-spacing: -.035em; line-height: 1.06; }
.gift-finder-promo-copy > p { max-width: 570px; margin: 0; color: #63746b; font-size: clamp(1rem, 1.4vw, 1.15rem); line-height: 1.7; }

.gift-finder-promo-cta {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin-top: 23px;
  color: #286b58;
  font-weight: 750;
}

.gift-finder-promo-cta > span { transition: transform .2s ease; }
.gift-finder-promo-card:hover .gift-finder-promo-cta > span { transform: translateX(4px); }

.gift-finder-promo-notes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 23px; }
.gift-finder-promo-notes span { padding: 7px 11px; border: 1px solid rgba(43, 106, 87, .16); border-radius: 999px; background: rgba(255, 255, 255, .58); color: #526d61; font-size: .78rem; }

.gift-finder-promo-art {
  position: relative;
  display: grid;
  min-height: 205px;
  place-items: center;
  isolation: isolate;
}

.gift-finder-promo-art::before {
  position: absolute;
  z-index: -1;
  width: min(290px, 75%);
  aspect-ratio: 1;
  border: 1px solid rgba(43, 106, 87, .16);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .65) 0 47%, transparent 48%), repeating-radial-gradient(circle, transparent 0 11px, rgba(43, 106, 87, .06) 12px 13px);
  content: "";
}

.gift-promo-yarn { position: absolute; width: 102px; aspect-ratio: 1; border: 1px solid rgba(48, 68, 56, .15); border-radius: 50%; box-shadow: inset -9px -10px 15px rgba(42, 54, 43, .1), 0 11px 22px rgba(54, 65, 51, .12); }
.gift-promo-yarn::before,
.gift-promo-yarn::after { position: absolute; inset: 17% 8%; border: 2px solid rgba(255, 255, 255, .38); border-radius: 50%; content: ""; transform: rotate(32deg); }
.gift-promo-yarn::after { inset: 8% 20%; transform: rotate(-32deg); }
.gift-promo-yarn-one { top: 14%; left: 19%; background: radial-gradient(circle at 34% 28%, #c8d0b9, #82967c 72%); }
.gift-promo-yarn-two { right: 14%; bottom: 12%; background: radial-gradient(circle at 34% 28%, #f4e8d4, #d9c29e 72%); }
.gift-promo-yarn-three { top: 12%; right: 14%; width: 72px; background: radial-gradient(circle at 34% 28%, #e7b7a3, #c97959 72%); }
.gift-promo-needle { position: absolute; z-index: -1; top: 14%; left: 49%; width: 4px; height: 76%; border-radius: 4px; background: linear-gradient(90deg, #a9784c, #d5b48b, #8f6542); box-shadow: 2px 3px 5px rgba(48, 45, 36, .12); transform: rotate(39deg); }
.gift-finder-promo-art small { position: absolute; right: 0; bottom: 2px; left: 0; color: #62816d; font-size: .67rem; font-weight: 750; letter-spacing: .19em; text-align: center; }

@media (hover: hover) and (pointer: fine) {
  .gift-finder-promo-card:hover,
  .gift-recommendation-card:hover {
    z-index: 2;
    border-color: rgba(43, 106, 87, .3);
    box-shadow: 0 24px 52px rgba(35, 58, 48, .19), 0 5px 15px rgba(35, 58, 48, .08);
    transform: translate3d(0, -14px, 0) scale(1.02);
  }
}

.gift-quiz-result { display: grid; gap: 30px; }

.gift-result-summary {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(230px, .65fr);
  gap: 24px;
  padding: clamp(20px, 3.3vw, 34px);
  border: 1px solid rgba(43, 106, 87, .16);
  border-radius: 20px;
  background: linear-gradient(115deg, #fffdf8, #f5efe2);
  box-shadow: 0 9px 24px rgba(48, 68, 56, .07);
}

.gift-result-copy h2 { margin: 8px 0 10px; color: #286b58; font-size: clamp(1.45rem, 2.6vw, 2.1rem); line-height: 1.2; }
.gift-result-copy > p { margin: 0; color: #66766d; line-height: 1.65; }
.gift-result-details { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 21px; }
.gift-result-details > span:not(.gift-result-color) { display: grid; gap: 3px; }
.gift-result-details small { color: #7a857d; font-size: .72rem; }
.gift-result-details strong { color: #286b58; font-size: .86rem; }
.gift-result-color { display: inline-flex; align-items: center; gap: 9px; }
.gift-result-color > span:last-child { display: grid; gap: 2px; color: #476655; font-size: .84rem; font-weight: 700; }
.gift-result-color small { color: #78837a; font-size: .7rem; font-weight: 500; }
.gift-result-swatch,
.gift-color-swatch { display: inline-block; flex: 0 0 auto; border: 1px solid rgba(48, 68, 56, .2); border-radius: 50%; background: var(--gift-swatch); box-shadow: inset 0 1px 2px rgba(255, 255, 255, .65); }
.gift-result-swatch { width: 34px; height: 34px; }
.gift-color-swatch { width: 19px; height: 19px; }
.quiz-option.is-gift-color-option { gap: 9px; }
.quiz-option.is-gift-color-option .quiz-option-check { margin-right: 1px; }
.quiz-options.gift-color-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.gift-result-pattern {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 20px;
  border: 1px solid rgba(217, 120, 88, .17);
  border-radius: 16px;
  background: rgba(255, 255, 255, .63);
}

.gift-result-pattern .eyebrow { color: #ca7357; }
.gift-result-pattern > strong { margin-top: 8px; color: #286b58; font-size: 1.15rem; }
.gift-result-pattern > p { margin: 7px 0; color: #6d7a71; font-size: .82rem; line-height: 1.5; }
.gift-result-pattern > a,
.gift-pattern-link { color: #4d8561; font-size: .82rem; font-weight: 700; text-decoration: none; }
.gift-result-pattern > a:hover,
.gift-pattern-link:hover { text-decoration: underline; }

.recommendation-card.gift-recommendation-card {
  border-radius: 18px;
  box-shadow: 0 7px 19px rgba(48, 68, 56, .06);
  transition: transform .34s cubic-bezier(.2, .75, .25, 1), box-shadow .34s cubic-bezier(.2, .75, .25, 1), border-color .2s ease;
}

.gift-recommendation-image { display: block; overflow: hidden; aspect-ratio: 1.24; background: #f2eee6; }
.gift-recommendation-image img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .42s cubic-bezier(.22, 1, .36, 1); }
.gift-recommendation-card:hover .gift-recommendation-image img { transform: scale(1.04); }
.gift-recommendation-card .recommendation-content { padding: 18px; }
.gift-recommendation-card .recommendation-content h3 a { color: inherit; text-decoration: none; }
.gift-recommendation-card .recommendation-content h3 a:hover { color: #286b58; }
.gift-pattern-note { display: grid; gap: 3px; margin: 13px 0 15px; padding: 11px 12px; border-left: 3px solid #d97858; border-radius: 0 10px 10px 0; background: #faf4e9; }
.gift-pattern-note > span { color: #c96f52; font-size: .67rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.gift-pattern-note > strong { color: #286b58; font-size: .91rem; }
.gift-pattern-note > small { color: #718078; font-size: .75rem; }
.gift-pattern-note > a { margin-top: 3px; }

.gift-color-addon {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  border: 1px solid rgba(43, 106, 87, .16);
  border-radius: 16px;
  background: #fffdf8;
}

.gift-color-addon .eyebrow { color: #688b6d; font-size: .69rem; }
.gift-color-addon h3 { margin: 4px 0; color: #286b58; font-size: 1rem; }
.gift-color-addon p { margin: 0 0 6px; color: #6d7a71; font-size: .82rem; line-height: 1.5; }
.gift-color-addon > div > strong { color: #286b58; font-size: .86rem; }
.gift-color-addon .button-secondary,
.gift-color-addon .button-quiet { white-space: nowrap; }
.gift-color-budget-note { margin: -14px 0 0; color: #78837a; font-size: .78rem; line-height: 1.55; }
.gift-quiz-reset { justify-self: center; }

@media (max-width: 760px) {
  .gift-finder-promo-card { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .gift-finder-promo-art { min-height: 180px; }
  .gift-result-summary { grid-template-columns: minmax(0, 1fr); }
  .gift-color-addon { grid-template-columns: minmax(0, 1fr) minmax(0, auto); }
  .gift-color-addon > div { grid-column: 1 / -1; }
}

@media (max-width: 520px) {
  .gift-finder-promo-card { padding: 24px 20px; border-radius: 19px; }
  .gift-finder-promo-copy h2 { font-size: 2rem; }
  .gift-finder-promo-notes span { font-size: .7rem; }
  .gift-result-summary { gap: 14px; padding: 19px; }
  .gift-result-details { gap: 11px 15px; }
  .quiz-options.gift-color-options { grid-template-columns: minmax(0, 1fr); }
  .gift-color-addon { grid-template-columns: minmax(0, 1fr); }
  .gift-color-addon > div { grid-column: auto; }
  .gift-color-addon .button-secondary,
  .gift-color-addon .button-quiet { justify-self: start; }
}

@media (prefers-reduced-motion: reduce) {
  .gift-finder-promo-card,
  .gift-finder-promo-cta > span,
  .gift-recommendation-card,
  .gift-recommendation-image img {
    transition: none !important;
  }
}

/* Compact, single-line price and add-to-cart controls for product cards. */
.product-card-bottom {
  align-items: center;
  flex-wrap: nowrap;
  gap: 8px;
}

.product-card-bottom .price {
  flex: 0 0 auto;
  white-space: nowrap;
  font-size: .9rem;
}

.product-card-bottom .button-quiet {
  flex: 0 0 auto;
  min-width: 0;
  min-height: 32px;
  padding-inline: 10px;
  font-size: .76rem;
  line-height: 1.25;
  white-space: nowrap;
  gap: 5px;
}

.price,
.detail-price,
.cart-line p,
.cart-summary [data-cart-total] {
  white-space: nowrap;
}

.detail-price-row {
  flex-wrap: nowrap;
}

.product-long-description {
  margin-top: 1.5rem;
  color: var(--muted-foreground, #62746d);
  line-height: 1.75;
}

.product-long-description h2 {
  margin: 1.3rem 0 .45rem;
  color: var(--foreground, #286b58);
  font-family: inherit;
  font-size: 1.08rem;
  line-height: 1.35;
}

.product-long-description p {
  margin: .55rem 0 .85rem;
}

.product-long-description ul {
  margin: .4rem 0 1rem;
  padding-left: 1.25rem;
}

.product-long-description li + li {
  margin-top: .3rem;
}

.product-hashtags {
  margin-top: 1.25rem;
  padding-top: .8rem;
  border-top: 1px solid var(--border, #e7ded3);
  color: var(--muted-foreground, #62746d);
  font-size: .82rem;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.product-hashtags strong {
  color: var(--foreground, #286b58);
}

/* A calm, brand-colored breadcrumb capsule for product and guide pages. */
.breadcrumbs,
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  width: fit-content;
  max-width: 100%;
  margin: 16px 0 20px;
  padding: 8px 12px;
  border: 1px solid rgba(43, 106, 87, .16);
  border-radius: 999px;
  background: linear-gradient(120deg, rgba(255, 252, 247, .98), rgba(243, 237, 222, .82));
  box-shadow: 0 4px 14px rgba(43, 75, 59, .07);
  color: #687a72;
  font-family: inherit;
  font-size: .87rem;
  line-height: 1.45;
}

.breadcrumbs > span:not(.crumb-divider),
.breadcrumb > span {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 6px;
}

.breadcrumbs a,
.breadcrumb a {
  padding: 4px 7px;
  border-radius: 999px;
  color: #286b58;
  font-weight: 600;
  text-decoration: none;
  transition: background-color .18s ease, color .18s ease;
}

.breadcrumbs a:hover,
.breadcrumb a:hover {
  background: rgba(43, 106, 87, .09);
  color: #1e5948;
  text-decoration: none;
}

.breadcrumbs a:focus-visible,
.breadcrumb a:focus-visible {
  outline: 2px solid #d97858;
  outline-offset: 2px;
}

.breadcrumbs .crumb-divider {
  display: inline-flex;
  flex: 0 0 7px;
  align-items: center;
  justify-content: center;
  width: 7px;
  height: 14px;
  overflow: hidden;
  color: transparent;
  font-size: 0;
}

.breadcrumbs .crumb-divider::before {
  width: 5px;
  height: 5px;
  border-top: 1.5px solid #9aaa9e;
  border-right: 1.5px solid #9aaa9e;
  content: "";
  transform: rotate(45deg);
}

.breadcrumb .breadcrumb-separator {
  flex: 0 0 7px;
  width: 7px;
  height: 7px;
  color: #9aaa9e;
}

.breadcrumbs > span[aria-current="page"],
.breadcrumb [aria-current="page"] {
  max-width: min(52vw, 440px);
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(43, 106, 87, .09);
  color: #286b58;
  font-weight: 700;
  overflow-wrap: anywhere;
}

@media (max-width: 600px) {
  .breadcrumbs,
  .breadcrumb {
    gap: 4px;
    margin: 12px 0 16px;
    padding: 7px 9px;
    border-radius: 14px;
    font-size: .8rem;
  }

  .breadcrumbs > span[aria-current="page"],
  .breadcrumb [aria-current="page"] {
    max-width: 100%;
  }
}

/* AI product adviser in the fixed contact stack. */
.floating-contact-ai {
  border-color: rgba(43, 106, 87, .28);
  background: linear-gradient(145deg, #fff 35%, #f4ead8 100%);
  color: #286b58;
}

.floating-contact-ai .floating-contact-icon svg {
  width: 27px;
  height: 27px;
}

.floating-contact-ai:hover,
.floating-contact-ai:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(43, 106, 87, .24);
}

.mcs-ai-chat[hidden] {
  display: none !important;
}

.mcs-ai-chat {
  position: fixed;
  z-index: 34;
  right: 86px;
  bottom: 24px;
  display: flex;
  width: min(380px, calc(100vw - 112px));
  height: min(560px, 72vh);
  min-height: 360px;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(43, 106, 87, .18);
  border-radius: 20px;
  background: #fffdf9;
  box-shadow: 0 22px 64px rgba(35, 58, 48, .22), 0 3px 12px rgba(35, 58, 48, .08);
  color: #37534a;
  font-family: inherit;
  animation: mcs-chat-in .2s ease-out both;
}

@keyframes mcs-chat-in {
  from { opacity: 0; transform: translateY(10px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.mcs-ai-chat-header {
  display: flex;
  min-height: 76px;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: #286b58;
  color: #fffdf8;
}

.mcs-ai-avatar {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .44);
  border-radius: 50%;
  background: rgba(255, 255, 255, .14);
  color: #f4d7a7;
  font-size: 23px;
}

.mcs-ai-chat-header > div {
  display: grid;
  gap: 2px;
}

.mcs-ai-chat-header strong {
  font-size: 1rem;
  line-height: 1.25;
}

.mcs-ai-chat-status {
  color: rgba(255, 253, 248, .8);
  font-size: .75rem;
}

.mcs-ai-chat-close {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  margin-left: auto;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 50%;
  background: transparent;
  color: white;
  cursor: pointer;
  font: inherit;
  font-size: 24px;
  line-height: 1;
  transition: background-color .18s ease, transform .18s ease;
}

.mcs-ai-chat-close:hover { background: rgba(255, 255, 255, .15); transform: rotate(90deg); }

.mcs-ai-chat-messages {
  display: flex;
  min-height: 0;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  padding: 17px 14px;
  overscroll-behavior: contain;
  scrollbar-color: rgba(43, 106, 87, .3) transparent;
  scrollbar-width: thin;
}

.mcs-ai-message {
  width: fit-content;
  max-width: 92%;
  padding: 10px 13px;
  border: 1px solid rgba(43, 106, 87, .1);
  border-radius: 15px 15px 15px 4px;
  background: #f5f3ec;
  color: #405d52;
  font-size: .9rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.mcs-ai-message p { margin: 0; }

.mcs-ai-message.is-user {
  align-self: flex-end;
  border-color: #286b58;
  border-radius: 15px 15px 4px 15px;
  background: #286b58;
  color: white;
}

.mcs-ai-product {
  display: grid;
  gap: 3px;
  margin-top: 9px;
  padding: 10px 11px;
  border: 1px solid rgba(43, 106, 87, .18);
  border-radius: 12px;
  background: #fffdf9;
  color: #286b58;
  text-decoration: none;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.mcs-ai-product strong { font-size: .86rem; line-height: 1.35; }
.mcs-ai-product span { color: #68766e; font-size: .78rem; line-height: 1.4; }
.mcs-ai-product:hover { transform: translateY(-2px); border-color: #286b58; box-shadow: 0 6px 14px rgba(43, 106, 87, .12); }

.mcs-ai-quick-prompts {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.mcs-ai-quick-prompts button {
  padding: 7px 10px;
  border: 1px solid rgba(43, 106, 87, .24);
  border-radius: 999px;
  background: #fffdf9;
  color: #286b58;
  cursor: pointer;
  font: inherit;
  font-size: .77rem;
  line-height: 1.25;
  text-align: left;
  transition: background-color .18s ease, border-color .18s ease;
}

.mcs-ai-quick-prompts button:hover { border-color: #286b58; background: #f4ead8; }

.mcs-ai-chat-form {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 13px;
  padding: 7px 7px 7px 14px;
  border: 1px solid rgba(43, 106, 87, .22);
  border-radius: 999px;
  background: #fff;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.mcs-ai-chat-form:focus-within { border-color: #286b58; box-shadow: 0 0 0 3px rgba(43, 106, 87, .1); }
.mcs-ai-chat-form input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; color: #354d44; font: inherit; font-size: .9rem; }
.mcs-ai-chat-form input::placeholder { color: #89938d; }

.mcs-ai-chat-form button {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  border-radius: 50%;
  background: #286b58;
  color: #fff;
  cursor: pointer;
  transition: opacity .18s ease, transform .18s ease;
}

.mcs-ai-chat-form button:hover { transform: scale(1.05); }
.mcs-ai-chat-form button:disabled { cursor: wait; opacity: .55; }
.mcs-ai-chat-form button svg { width: 19px; height: 19px; }

.mcs-ai-chat-privacy {
  margin: 8px 16px 12px;
  color: #7b8880;
  font-size: .68rem;
  line-height: 1.4;
  text-align: center;
}

.mcs-ai-chat button:focus-visible,
.floating-contact-ai:focus-visible,
.mcs-ai-product:focus-visible {
  outline: 2px solid #d97858;
  outline-offset: 3px;
}

@media (max-width: 600px) {
  .mcs-ai-chat {
    right: 12px;
    bottom: 70px;
    width: min(390px, calc(100vw - 24px));
    height: min(590px, calc(100dvh - 100px));
    min-height: min(390px, calc(100dvh - 100px));
    border-radius: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mcs-ai-chat,
  .mcs-ai-chat-close,
  .mcs-ai-product,
  .mcs-ai-quick-prompts button,
  .mcs-ai-chat-form,
  .mcs-ai-chat-form button,
  .floating-contact-ai {
    animation: none !important;
    transition: none !important;
  }
}
