.lab-route-only { display: none; }

html[data-storefront-view="lab-home"] .lab-home-only { display: block; }

.lab-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}
.lab-section-heading > div { min-width: 0; }
.lab-section-heading .section-kicker { color: var(--green-2); }
.lab-section-heading h2 {
  margin: 5px 0 0;
  font-size: clamp(29px, 3vw, 42px);
  line-height: 1.04;
  letter-spacing: -.045em;
}
.lab-section-heading > a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 13px;
  background: var(--soft);
  color: var(--green);
  text-decoration: none;
  font-size: 11px;
  font-weight: 850;
}
.lab-section-heading > a:hover { background: #e5ece6; }
.lab-section-heading > a span { font-size: 17px; }

.lab-collections-section { padding-block: 48px 54px; }
.lab-collection-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.lab-collection-card {
  min-width: 0;
  min-height: 116px;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 10px 28px rgba(22, 55, 42, .055);
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.lab-collection-card:hover {
  transform: translateY(-2px);
  border-color: #cbd8ce;
  box-shadow: 0 16px 34px rgba(22, 55, 42, .09);
}
.lab-collection-card__icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 17px;
  background: var(--yellow-soft);
  font-size: 26px;
}
.lab-collection-card > span:nth-child(2) {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.lab-collection-card b { font-size: 15px; line-height: 1.2; }
.lab-collection-card small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
}
.lab-collection-card > span:last-child {
  color: #9aa39c;
  font-size: 20px;
  transition: transform .18s ease;
}
.lab-collection-card:hover > span:last-child { transform: translateX(3px); }

.lab-product-shelf-section { padding-block: 48px 54px; }
.lab-product-shelf-section--deals {
  border-block: 1px solid #dfe8e1;
  background: #edf5f0;
}
.lab-product-shelf {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(210px, 1fr);
  gap: 13px;
  overflow-x: auto;
  padding: 2px 1px 10px;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline proximity;
  scrollbar-width: thin;
  scrollbar-color: #cad5cc transparent;
}
.lab-product-shelf > .product-card {
  min-width: 0;
  scroll-snap-align: start;
  contain: none;
}
.lab-product-shelf .skeleton-card { min-height: 380px; }

.lab-pwa-banner {
  grid-template-columns: 70px minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  margin-block: 48px 58px;
  padding: 24px;
  border-radius: 26px;
  background: var(--green);
  color: #fff;
  box-shadow: 0 18px 44px rgba(23, 63, 53, .17);
}
html[data-storefront-view="lab-home"] .lab-pwa-banner { display: grid; }
.lab-pwa-banner[hidden] { display: none !important; }
.lab-pwa-banner__mark {
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  border-radius: 21px;
  background: var(--yellow);
  color: var(--green);
}
.lab-pwa-banner__mark svg {
  width: 39px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.lab-pwa-banner__copy { min-width: 0; }
.lab-pwa-banner .section-kicker { color: #9bd1b8; }
.lab-pwa-banner h2 {
  margin: 5px 0 5px;
  font-size: clamp(24px, 2.5vw, 34px);
  line-height: 1.05;
  letter-spacing: -.04em;
}
.lab-pwa-banner p {
  max-width: 720px;
  margin: 0;
  color: #cbded5;
  font-size: 11px;
  line-height: 1.5;
}
.lab-pwa-banner .secondary-button {
  min-height: 48px;
  padding-inline: 18px;
  border: 0;
  background: var(--yellow);
  color: var(--green);
  font-size: 11px;
  font-weight: 850;
}

.product-dialog.product-dialog--enhanced {
  width: min(1080px, calc(100% - 24px));
  max-height: calc(100dvh - 24px);
  overflow: hidden;
  border-radius: 30px;
}
.product-dialog--enhanced #product-dialog-content { min-height: 0; }
.product-dialog--enhanced .dialog-close {
  z-index: 6;
  top: 20px;
  right: 20px;
  width: 48px;
  height: 48px;
}
.product-detail--enhanced {
  position: relative;
  display: flex;
  min-height: 0;
  flex-direction: column;
}
.lab-product-viewport {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  grid-template-areas:
    "media copy"
    "related copy";
  max-height: calc(100dvh - 24px);
  overflow: auto;
}
.product-detail--enhanced .product-detail-media {
  grid-area: media;
  min-width: 0;
  min-height: 410px;
  display: block;
  padding: 0;
  background: #f4f6f2;
}
.product-detail-main-media {
  position: relative;
  width: 100%;
  min-height: 410px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  padding: 68px 58px 34px;
}
.product-detail-main-media .image-shell { width: 100%; min-height: 310px; }
.product-detail-main-media img { max-height: 350px; }
.product-detail--enhanced .product-detail-copy {
  grid-area: copy;
  min-width: 0;
  min-height: 620px;
  justify-content: flex-start;
  padding: 86px 42px 30px;
}
.lab-product-actions {
  position: absolute;
  z-index: 5;
  top: 20px;
  right: 78px;
  display: flex;
  gap: 8px;
  margin: 0;
}
.lab-product-round-action {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .94);
  color: #778179;
  box-shadow: 0 5px 16px rgba(32, 46, 38, .08);
  cursor: pointer;
}
.lab-product-round-action svg {
  width: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.lab-product-round-action.is-favorite { background: rgba(255, 255, 255, .96); color: #e65c55; }
.lab-product-round-action.is-favorite svg { fill: currentColor; }
.product-detail--enhanced .product-detail-copy h2 {
  margin-top: 8px;
  font-size: clamp(29px, 2.6vw, 39px);
  line-height: 1.05;
  letter-spacing: -.052em;
  overflow-wrap: anywhere;
}
.lab-product-meta { color: var(--muted); font-size: 12px; }
.lab-product-price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 21px 0 0;
}
.lab-product-price strong { color: var(--green); font-size: 32px; }
.lab-product-price del { color: #9aa29c; font-size: 14px; }
.product-detail--enhanced .product-detail-weight-hint {
  margin: 5px 0 0 !important;
  line-height: 1.35;
}
.lab-product-services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: auto;
}
.lab-product-services span {
  min-height: 62px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px;
  border-radius: 15px;
  background: var(--soft);
  color: #536059;
  font-size: 9px;
  font-weight: 750;
  line-height: 1.35;
}
.lab-product-services i {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 8px;
  background: #dcebe0;
  color: var(--green-2);
  font-style: normal;
  font-weight: 950;
}
.lab-product-purchase { margin-top: 12px; padding-top: 0; }
.lab-product-purchase--mobile { display: none; }
.lab-product-related {
  grid-area: related;
  min-width: 0;
  padding: 0 20px 22px;
  background: #f4f6f2;
}
.lab-product-related__heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.lab-product-related h3 {
  margin: 0;
  font-size: 17px;
  letter-spacing: -.035em;
}
.lab-product-related__heading span { color: var(--muted); font-size: 9px; font-weight: 700; }
.lab-product-related-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(138px, 34%);
  grid-template-columns: none;
  gap: 8px;
  overflow-x: auto;
  padding: 1px 1px 8px;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline proximity;
  scrollbar-width: thin;
  scrollbar-color: #cad5cc transparent;
}
.lab-related-product {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #dfe5df;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(22, 55, 42, .045);
  scroll-snap-align: start;
}
.lab-related-product__media {
  position: relative;
  height: 90px;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 10px;
  background: linear-gradient(145deg, #fbfcfa, #eef2ed);
}
.lab-related-product__media > a { position: absolute; inset: 0; display: grid; place-items: center; padding: 10px; }
.lab-related-product__media .image-shell { width: 100%; height: 100%; min-height: 0; pointer-events: none; }
.lab-related-product__media img { mix-blend-mode: multiply; }
.lab-related-product__copy { min-width: 0; padding: 8px 9px 10px; }
.lab-related-product__copy a {
  height: 2.7em;
  display: -webkit-box;
  overflow: hidden;
  color: var(--ink);
  font-size: 9px;
  font-weight: 720;
  line-height: 1.35;
  text-decoration: none;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.lab-related-product__copy strong { display: block; margin-top: 5px; color: var(--green); font-size: 13px; }
.lab-related-product-control { position: absolute; z-index: 3; right: 7px; bottom: 7px; left: 7px; display: flex; justify-content: flex-end; }
.lab-related-product-add {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--green);
  box-shadow: 0 5px 16px rgba(22, 55, 42, .14);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}
.lab-related-product-add.is-disabled { color: #929a94; cursor: not-allowed; opacity: .72; }
.lab-related-product-stepper {
  width: 100%;
  height: 32px;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 32px;
  align-items: center;
  overflow: hidden;
  border-radius: 10px;
  background: var(--green);
  color: #fff;
  box-shadow: 0 5px 16px rgba(22, 55, 42, .16);
}
.lab-related-product-stepper button { height: 100%; border: 0; background: transparent; color: #fff; cursor: pointer; font-size: 18px; }
.lab-related-product-stepper button:disabled { cursor: not-allowed; opacity: .45; }
.lab-related-product-stepper span { overflow: hidden; font-size: 9px; font-weight: 850; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.lab-related-product.is-unavailable .lab-related-product__media img { filter: grayscale(1); opacity: .4; }
.lab-related-product-skeleton {
  min-width: 0;
  min-height: 151px;
  display: grid;
  grid-template-rows: 90px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid #dfe5df;
  border-radius: 16px;
  background: #fff;
  scroll-snap-align: start;
}
.lab-related-product-skeleton__media,
.lab-related-product-skeleton__copy i,
.lab-related-product-skeleton__copy b {
  display: block;
  background: linear-gradient(100deg, #edf0ed 25%, #fafbfa 42%, #edf0ed 58%);
  background-size: 300% 100%;
  animation: shimmer 1.35s infinite;
}
.lab-related-product-skeleton__media { background-color: #f1f4f0; }
.lab-related-product-skeleton__copy { display: grid; align-content: start; gap: 6px; padding: 9px; }
.lab-related-product-skeleton__copy i,
.lab-related-product-skeleton__copy b { height: 9px; border-radius: 999px; }
.lab-related-product-skeleton__copy i:nth-child(2) { width: 82%; }
.lab-related-product-skeleton__copy b { width: 58%; height: 13px; margin-top: 2px; }
.lab-product-related-loading {
  min-height: 128px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: var(--soft);
  color: var(--muted);
  font-size: 11px;
}

.lab-install-dialog,
.account-review-dialog {
  width: min(520px, calc(100% - 24px));
  overflow: auto;
  padding: 34px;
  border-radius: 28px;
  background: #fff;
}
.lab-install-dialog .section-kicker,
.account-review-dialog .section-kicker { color: var(--green-2); }
.lab-install-dialog h2,
.account-review-dialog h2 {
  margin: 7px 48px 8px 0;
  font-size: 32px;
  line-height: 1.08;
  letter-spacing: -.045em;
}
.lab-install-dialog > p,
.account-review-dialog form > p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
.lab-install-steps { display: grid; gap: 8px; margin: 22px 0; }
.lab-install-step {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: 15px;
  background: var(--soft);
}
.lab-install-step > b {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--yellow);
  color: var(--green);
}
.lab-install-step span { display: flex; flex-direction: column; }
.lab-install-step span b { font-size: 11px; }
.lab-install-step small { margin-top: 3px; color: var(--muted); font-size: 9px; line-height: 1.4; }
.lab-install-dialog > .primary-button { width: 100%; }

.account-order-progress {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 4px 0;
  padding: 16px 8px 12px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
}
.account-order-progress::before {
  content: "";
  position: absolute;
  top: 23px;
  right: 12%;
  left: 12%;
  height: 3px;
  border-radius: 3px;
  background: #e5e9e5;
}
.account-order-progress span {
  position: relative;
  padding-top: 24px;
  color: #9ba39e;
  font-size: 8px;
  font-weight: 750;
  text-align: center;
}
.account-order-progress span::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: 0;
  left: 50%;
  width: 12px;
  height: 12px;
  transform: translateX(-50%);
  border: 3px solid #fff;
  border-radius: 50%;
  background: #dce2dd;
  box-shadow: 0 0 0 1px #dce2dd;
}
.account-order-progress span.is-complete::before,
.account-order-progress span.is-current::before {
  background: var(--green-2);
  box-shadow: 0 0 0 1px var(--green-2);
}
.account-order-progress span.is-complete,
.account-order-progress span.is-current { color: var(--green); }
.account-order-review {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 15px;
  background: var(--soft);
}
.account-order-review__copy { min-width: 0; display: flex; flex-direction: column; }
.account-order-review__copy b { font-size: 11px; }
.account-order-review__copy small { margin-top: 3px; color: var(--muted); font-size: 9px; line-height: 1.4; }
.account-order-review__stars { color: #e8b21d; font-size: 18px !important; letter-spacing: 1px; }
.account-order-review button {
  min-height: 38px;
  padding: 0 12px;
  border: 0;
  border-radius: 11px;
  background: var(--yellow);
  color: var(--green);
  cursor: pointer;
  font-size: 9px;
  font-weight: 850;
}

.account-review-dialog form { display: block; }
.account-review-rating,
.account-review-tags { margin: 22px 0 0; padding: 0; border: 0; }
.account-review-rating legend,
.account-review-tags legend { margin-bottom: 9px; font-size: 10px; font-weight: 850; }
.account-review-rating > div {
  width: fit-content;
  display: flex;
  flex-direction: row-reverse;
}
.account-review-rating input { position: absolute; opacity: 0; }
.account-review-rating label {
  color: #dfe3df;
  cursor: pointer;
  font-size: 38px;
  line-height: 1;
}
.account-review-rating label:hover,
.account-review-rating label:hover ~ label,
.account-review-rating input:checked ~ label { color: #e8b21d; }
.account-review-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.account-review-tags legend { width: 100%; }
.account-review-tags input { position: absolute; opacity: 0; }
.account-review-tags span {
  min-height: 38px;
  display: flex;
  align-items: center;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
  font-size: 9px;
  font-weight: 760;
}
.account-review-tags input:checked + span {
  border-color: var(--green-2);
  background: #e9f3ec;
  color: var(--green);
}
.account-review-comment { display: flex; flex-direction: column; gap: 7px; margin-top: 20px; }
.account-review-comment > span { font-size: 10px; font-weight: 850; }
.account-review-comment textarea {
  width: 100%;
  resize: vertical;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: 0;
  font-size: 11px;
  line-height: 1.5;
}
.account-review-comment textarea:focus {
  border-color: var(--green-2);
  box-shadow: 0 0 0 3px rgba(35, 106, 80, .1);
}
.account-review-dialog .form-error { margin-top: 13px; }
.account-review-dialog .account-save-button { width: 100%; margin-top: 17px; }

@media (max-width: 900px) {
  .lab-collection-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 650px) {
  .lab-section-heading { align-items: flex-start; }
  .lab-section-heading h2 { font-size: 30px; }
  .lab-section-heading > a { min-height: 38px; padding-inline: 11px; }
  .lab-collections-section,
  .lab-product-shelf-section { padding-block: 36px 40px; }
  .lab-collection-grid { grid-template-columns: 1fr; gap: 9px; }
  .lab-collection-card { min-height: 100px; padding: 14px; border-radius: 18px; }
  .lab-collection-card__icon { width: 50px; height: 50px; border-radius: 15px; font-size: 23px; }
  .lab-product-shelf {
    display: flex;
    gap: 10px;
  }
  .lab-product-shelf > .product-card { flex: 0 0 min(76vw, 264px); }
  .lab-pwa-banner {
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 14px;
    margin-block: 36px 44px;
    padding: 19px;
    border-radius: 22px;
  }
  .lab-pwa-banner__mark { width: 54px; height: 54px; border-radius: 17px; }
  .lab-pwa-banner__mark svg { width: 31px; }
  .lab-pwa-banner h2 { font-size: 23px; }
  .lab-pwa-banner p { margin-top: 7px; }
  .lab-pwa-banner .secondary-button { grid-column: 1 / -1; width: 100%; }
  .product-dialog.product-dialog--enhanced {
    width: calc(100% - 12px);
    height: calc(100dvh - 12px);
    max-height: calc(100dvh - 12px);
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 24px;
    clip-path: inset(0 round 24px);
  }
  .product-dialog--enhanced #product-dialog-content { height: 100%; }
  .product-dialog--enhanced .dialog-close { z-index: 7; top: 12px; right: 12px; width: 44px; height: 44px; }
  .product-detail--enhanced { height: 100%; padding-top: 68px; }
  .product-detail--enhanced::before {
    content: "";
    position: absolute;
    z-index: 4;
    top: 0;
    right: 0;
    left: 0;
    height: 68px;
    border-bottom: 1px solid var(--line);
    border-radius: 24px 24px 0 0;
    background: #fff;
  }
  .lab-product-viewport {
    display: flex;
    min-height: 0;
    flex: 1 1 auto;
    flex-direction: column;
    max-height: none;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .product-detail--enhanced .product-detail-media { min-height: 0; flex: 0 0 auto; }
  .product-detail-main-media { min-height: 330px; padding: 64px 30px 20px; }
  .product-detail-main-media .image-shell { min-height: 240px; }
  .product-detail-main-media img { max-height: 265px; }
  .product-detail--enhanced .product-detail-copy { min-height: 0; flex: 0 0 auto; padding: 27px 18px 22px; }
  .lab-product-actions { z-index: 6; top: 12px; right: 64px; }
  .lab-product-round-action { width: 44px; height: 44px; }
  .product-detail--enhanced .product-detail-copy h2 { margin-right: 0; font-size: 28px; }
  .lab-product-services { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .lab-product-services span { min-height: 68px; align-items: flex-start; flex-direction: column; padding: 9px; font-size: 8px; }
  .lab-product-purchase--desktop { display: none; }
  .lab-product-purchase--mobile {
    z-index: 8;
    display: block;
    flex: 0 0 auto;
    margin: 0;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 -10px 28px rgba(23, 63, 53, .08);
  }
  .lab-product-purchase--mobile .add-button,
  .lab-product-purchase--mobile .quantity-control,
  .lab-product-purchase--mobile .unavailable-control { height: 52px; }
  .lab-product-related { flex: 0 0 auto; padding: 4px 12px 20px; }
  .lab-product-related__heading { margin-inline: 4px; }
  .lab-product-related-grid {
    grid-auto-flow: row;
    grid-template-columns: 1fr;
    gap: 8px;
    overflow: visible;
    padding: 0;
    scroll-snap-type: none;
  }
  .lab-related-product {
    min-height: 96px;
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    scroll-snap-align: none;
  }
  .lab-related-product-skeleton {
    min-height: 96px;
    grid-template-columns: 96px minmax(0, 1fr);
    grid-template-rows: 1fr;
    scroll-snap-align: none;
  }
  .lab-related-product-skeleton__media { width: 96px; height: 96px; }
  .lab-related-product-skeleton__copy { align-content: center; padding: 14px 12px; }
  .lab-related-product__media { width: 96px; height: 96px; }
  .lab-related-product-stepper {
    height: 34px;
    grid-template-columns: 24px minmax(0, 1fr) 24px;
  }
  .lab-related-product-stepper button { font-size: 16px; }
  .lab-related-product-stepper span { font-size: 8px; }
  .lab-related-product__copy { padding: 14px 12px 10px; }
  .lab-related-product__copy a { height: 2.8em; font-size: 10px; }
  .lab-related-product__copy strong { margin-top: 7px; font-size: 14px; }
  .lab-install-dialog,
  .account-review-dialog {
    width: calc(100% - 14px);
    padding: 29px 20px 22px;
    border-radius: 24px;
  }
  .lab-install-dialog h2,
  .account-review-dialog h2 { font-size: 27px; }
  .account-order-review { align-items: stretch; grid-template-columns: 1fr; }
  .account-order-review button { width: 100%; }
}
