:root {
  --navy-950: #07162d;
  --navy-900: #0b2554;
  --navy-800: #13386f;
  --blue-600: #245bc6;
  --blue-100: #dcecff;
  --ice-50: #f5f9fd;
  --ice-100: #eaf3fa;
  --ink: #102039;
  --muted: #5d6c80;
  --line: #d9e3ec;
  --coral: #ef6e57;
  --coral-soft: #ffe5de;
  --plum: #7456a7;
  --plum-soft: #eee7f8;
  --teal: #168a8c;
  --teal-soft: #def3f1;
  --white: #ffffff;
  --shadow: 0 20px 70px rgba(20, 48, 83, 0.12);
  --radius-lg: 32px;
  --radius-md: 22px;
  --shell: min(1180px, calc(100vw - 48px));
  color-scheme: light;
  font-family: "Avenir Next", Avenir, "Segoe UI", Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body.is-locked {
  overflow: hidden;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  /* display: block; */
  max-width: 100%;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 100;
  left: 16px;
  top: 16px;
  transform: translateY(-160%);
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--navy-950);
  color: var(--white);
}

.skip-link:focus {
  transform: translateY(0);
}

.announcement {
  min-height: 36px;
  padding: 8px max(24px, calc((100vw - 1180px) / 2));
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  background: var(--navy-950);
  color: #dce9f7;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.announcement p {
  margin: 0;
}

.announcement-note {
  color: #94acc8;
}

.site-header {
  position: sticky;
  z-index: 40;
  top: 0;
  border-bottom: 1px solid rgba(217, 227, 236, 0.82);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
}

.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 1px;
}

.brand-name {
  color: var(--navy-900);
  font-size: 1.14rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  line-height: 1;
}

.brand-name span {
  color: var(--coral);
}

.brand-byline {
  color: var(--muted);
  font-size: 0.66rem;
  letter-spacing: 0.07em;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 34px;
}

.desktop-nav a,
.mobile-nav a {
  position: relative;
  color: #34465e;
  font-size: 0.89rem;
  font-weight: 600;
}

.desktop-nav a::after {
  position: absolute;
  right: 0;
  bottom: -10px;
  left: 0;
  height: 2px;
  background: var(--coral);
  content: "";
  transform: scaleX(0);
  transition: transform 180ms ease;
}

.desktop-nav a:hover::after,
.desktop-nav a:focus-visible::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-button,
.bag-button,
.close-button,
.dialog-close {
  cursor: pointer;
  border: 0;
  background: none;
}

.menu-button {
  display: none;
  min-height: 44px;
  padding: 8px 10px;
  font-size: 0.85rem;
  font-weight: 700;
}

.bag-button {
  min-height: 44px;
  padding: 8px 10px 8px 16px;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  font-size: 0.88rem;
  font-weight: 700;
  transition: border-color 160ms ease, transform 160ms ease;
}

.bag-button:hover {
  border-color: var(--navy-900);
  transform: translateY(-1px);
}

.bag-count2 {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--navy-900);
  color: var(--white);
  font-size: 0.75rem;
}

.mobile-nav {
  width: var(--shell);
  margin-inline: auto;
  padding: 6px 0 20px;
}

.mobile-nav a {
  padding: 14px 4px;
  display: block;
  border-top: 1px solid var(--line);
}

.hero {
  min-height: 650px;
  padding-block: 72px 54px;
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  align-items: center;
  gap: 54px;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.eyebrow {
  margin: 0 0 22px;
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--blue-600);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.eyebrow span {
  width: 28px;
  height: 2px;
  display: block;
  background: currentColor;
}

.eyebrow.light {
  color: #8eb9ff;
}

.hero h1,
.section-heading h2,
.collections-copy h2,
.support-layout h2,
.cart-header h2,
.product-dialog h2 {
  margin: 0;
  color: var(--navy-950);
  font-size: clamp(2.5rem, 5vw, 4.7rem);
  font-weight: 650;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.hero h1 em {
  color: var(--coral);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

.hero-intro {
  max-width: 550px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.75;
}

.hero-actions {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.button {
  min-height: 50px;
  padding: 13px 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.91rem;
  font-weight: 750;
  transition: transform 170ms ease, box-shadow 170ms ease, background 170ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--navy-900);
  color: var(--white);
  box-shadow: 0 12px 28px rgba(11, 37, 84, 0.22);
}

.button-primary:hover {
  background: var(--blue-600);
  box-shadow: 0 16px 34px rgba(36, 91, 198, 0.26);
}

.button-quiet {
  border-color: var(--line);
  background: var(--white);
  color: var(--navy-900);
}

.button-white {
  flex-shrink: 0;
  background: var(--white);
  color: var(--navy-900);
}

.hero-proof {
  margin: 42px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  list-style: none;
}

.hero-proof li {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #45566c;
  font-size: 0.78rem;
  font-weight: 650;
}

.hero-proof span {
  color: var(--coral);
  font-size: 0.7rem;
  font-weight: 800;
}

.hero-visual {
  position: relative;
  min-height: 510px;
  overflow: hidden;
  border-radius: 42% 18px 42% 18px;
  background: var(--ice-100);
  box-shadow: var(--shadow);
  isolation: isolate;
}

.hero-visual::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(245, 249, 253, 0.36), transparent 34%);
  content: "";
  pointer-events: none;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  min-height: 510px;
  object-fit: cover;
  object-position: 65% center;
  transform: scale(1.01);
}

.hero-orbit {
  position: absolute;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 50%;
  pointer-events: none;
}

.orbit-one {
  width: 260px;
  height: 260px;
  top: -90px;
  right: -70px;
}

.orbit-two {
  width: 170px;
  height: 170px;
  right: 72px;
  bottom: -86px;
}

.visual-note {
  position: absolute;
  z-index: 3;
  padding: 14px 17px;
  display: grid;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 12px 30px rgba(28, 58, 89, 0.12);
  backdrop-filter: blur(12px);
}

.visual-note strong {
  color: var(--navy-900);
  font-size: 0.86rem;
}

.visual-note small {
  color: var(--muted);
  font-size: 0.7rem;
}

.note-top {
  top: 24px;
  left: 24px;
  padding-left: 40px;
}

.note-dot {
  position: absolute;
  width: 9px;
  height: 9px;
  top: 19px;
  left: 19px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 5px rgba(22, 138, 140, 0.12);
}

.note-bottom {
  right: 20px;
  bottom: 20px;
}

.need-strip {
  padding-block: 22px;
  background: var(--ice-50);
  border-block: 1px solid var(--line);
}

.need-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.need-card {
  min-height: 96px;
  padding: 20px 19px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.need-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(30, 57, 88, 0.09);
}

.need-coral {
  background: var(--coral-soft);
  color: #8b3527;
}

.need-plum {
  background: var(--plum-soft);
  color: #493276;
}

.need-teal {
  background: var(--teal-soft);
  color: #0b6667;
}

.need-number {
  font-size: 0.68rem;
  font-weight: 800;
  opacity: 0.72;
}

.need-card div {
  display: grid;
  gap: 2px;
}

.need-card strong {
  font-size: 0.96rem;
}

.need-card small {
  color: currentColor;
  font-size: 0.76rem;
  opacity: 0.76;
}

.need-arrow {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: 0.68;
}

.shop-section,
.how-section {
  padding-block: 112px;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr);
  align-items: end;
  gap: 80px;
}

.section-heading h2,
.collections-copy h2,
.support-layout h2,
.cart-header h2,
.product-dialog h2 {
  font-size: clamp(2.25rem, 4vw, 3.7rem);
  line-height: 1.04;
}

.section-heading > p,
.collections-copy > p,
.support-layout > p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.filter-bar {
  margin-top: 44px;
  padding-bottom: 13px;
  display: flex;
  gap: 9px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.filter-chip {
  min-height: 44px;
  padding: 9px 17px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex: 0 0 auto;
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.filter-chip span {
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ice-100);
  color: var(--navy-900);
  font-size: 0.7rem;
}

.filter-chip.is-active {
  border-color: var(--navy-900);
  background: var(--navy-900);
  color: var(--white);
}

.product-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.product-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.product-card[hidden] {
  display: none;
}

.product-image {
  position: relative;
  min-height: 310px;
  overflow: hidden;
  background-image: url("../image/diagnostic-hero.png");
  background-repeat: no-repeat;
  background-size: auto 108%;
}

.image-saliva {
  background-position: 48% center;
}

.image-cow {
  background-position: 69% center;
}

.image-sperm {
  background-position: 94% center;
}

.product-pill {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 8px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--navy-900);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  backdrop-filter: blur(8px);
}

.quick-view {
  position: absolute;
  right: 16px;
  bottom: 16px;
  min-height: 42px;
  padding: 9px 15px;
  cursor: pointer;
  border: 0;
  border-radius: 999px;
  background: rgba(7, 22, 45, 0.88);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 750;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 170ms ease, transform 170ms ease;
}

.product-card:hover .quick-view,
.quick-view:focus-visible {
  opacity: 1;
  transform: translateY(0);
}

.product-body {
  padding: 25px;
}

.product-category {
  margin: 0 0 8px;
  color: var(--blue-600);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.product-body h3 {
  min-height: 58px;
  margin: 0;
  color: var(--navy-950);
  font-size: 1.32rem;
  line-height: 1.25;
}

.product-description {
  min-height: 68px;
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

.product-meta {
  margin-top: 19px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.product-meta span {
  padding: 7px 9px;
  border-radius: 8px;
  background: var(--ice-50);
  color: #52647b;
  font-size: 0.7rem;
  font-weight: 650;
}

.product-buy {
  margin-top: 24px;
  padding-top: 21px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
}

.launch-price {
  display: grid;
  gap: 1px;
}

.launch-price small {
  color: var(--muted);
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.launch-price strong {
  color: var(--navy-900);
  font-size: 0.86rem;
}

.add-button {
  min-height: 44px;
  padding: 10px 16px;
  cursor: pointer;
  border: 1px solid var(--navy-900);
  border-radius: 999px;
  background: var(--white);
  color: var(--navy-900);
  font-size: 0.79rem;
  font-weight: 800;
  transition: background 170ms ease, color 170ms ease;
}

.add-button:hover {
  background: var(--navy-900);
  color: var(--white);
}

.product-women .product-category {
  color: #b34935;
}

.product-animal .product-category {
  color: #0d7375;
}

.product-men .product-category {
  color: #5c418c;
}

.empty-state {
  margin: 28px 0 0;
  padding: 30px;
  border-radius: var(--radius-md);
  background: var(--ice-50);
  color: var(--muted);
  text-align: center;
}

.collections-section {
  position: relative;
  overflow: hidden;
  padding-block: 112px;
  background: var(--navy-950);
  color: var(--white);
}

.collections-section::before {
  position: absolute;
  width: 520px;
  height: 520px;
  top: -330px;
  left: -170px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 50%;
  content: "";
  box-shadow: 0 0 0 90px rgba(255, 255, 255, 0.025), 0 0 0 180px rgba(255, 255, 255, 0.018);
}

.collections-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 86px;
}

.collections-copy {
  align-self: center;
}

.collections-copy h2,
.support-layout h2 {
  color: var(--white);
}

.collections-copy > p {
  max-width: 470px;
  margin-top: 26px;
  color: #aebfd3;
}

.text-link {
  margin-top: 30px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-size: 0.88rem;
  font-weight: 750;
}

.text-link span {
  color: var(--coral);
}

.collection-stack {
  display: grid;
  gap: 10px;
}

.collection-row {
  min-height: 118px;
  padding: 25px 24px;
  display: grid;
  grid-template-columns: 38px 1fr auto;
  align-items: center;
  gap: 16px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 19px;
  background: rgba(255, 255, 255, 0.045);
}

.collection-index {
  font-size: 0.72rem;
  font-weight: 800;
}

.collection-row h3 {
  margin: 0;
  color: var(--white);
  font-size: 1.04rem;
}

.collection-row p {
  margin: 4px 0 0;
  color: #9eb0c5;
  font-size: 0.82rem;
}

.collection-status {
  justify-self: end;
  color: #aebfd3;
  font-size: 0.72rem;
  font-weight: 650;
}

.collection-coral .collection-index {
  color: #ff957f;
}

.collection-plum .collection-index {
  color: #c5a9f7;
}

.collection-teal .collection-index {
  color: #72d9d7;
}

.collection-blue .collection-index {
  color: #8eb9ff;
}

.how-heading {
  align-items: start;
}

.steps-grid {
  margin-top: 50px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.step-card {
  min-height: 270px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
}

.step-card.featured-step {
  background: var(--coral-soft);
  border-color: transparent;
}

.step-number {
  margin-bottom: auto;
  color: var(--coral);
  font-size: 0.74rem;
  font-weight: 800;
}

.step-card h3 {
  margin: 0;
  color: var(--navy-950);
  font-size: 1.25rem;
}

.step-card p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

.support-band {
  padding-block: 64px;
  background: var(--blue-600);
  color: var(--white);
}

.support-layout {
  display: grid;
  grid-template-columns: 1fr 0.9fr auto;
  align-items: center;
  gap: 54px;
}

.support-layout .eyebrow {
  margin-bottom: 14px;
}

.support-layout h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
}

.support-layout > p {
  color: #dce9ff;
}

.site-footer {
  padding-block: 72px 28px;
  background: var(--ice-50);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.65fr 0.65fr 1fr;
  gap: 50px;
}

.footer-brand p,
.footer-note p {
  max-width: 320px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.7;
}

.footer-grid h2 {
  margin: 0 0 16px;
  color: var(--navy-950);
  font-size: 0.76rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.footer-grid > div:not(:first-child) a {
  margin-top: 10px;
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
}

.footer-grid a:hover {
  color: var(--blue-600);
}

.footer-bottom {
  margin-top: 60px;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 30px;
  border-top: 1px solid var(--line);
  color: #718096;
  font-size: 0.7rem;
}

.drawer-backdrop {
  position: fixed;
  z-index: 80;
  inset: 0;
  background: rgba(7, 22, 45, 0.48);
  backdrop-filter: blur(3px);
}

.cart-panel {
  position: fixed;
  z-index: 90;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(440px, 100vw);
  padding: 30px;
  display: flex;
  flex-direction: column;
  background: var(--white);
  box-shadow: -24px 0 64px rgba(7, 22, 45, 0.18);
  transform: translateX(102%);
  transition: transform 240ms ease;
}

.cart-panel.is-open {
  transform: translateX(0);
}

.cart-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.cart-header .eyebrow {
  margin-bottom: 10px;
}

.cart-header h2 {
  font-size: 2rem;
}

.close-button,
.dialog-close {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  font-size: 1.45rem;
}

.cart-items {
  margin-top: 24px;
  display: grid;
  gap: 11px;
  overflow-y: auto;
}

.cart-item {
  padding: 14px;
  display: grid;
  grid-template-columns: 72px 1fr auto;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.cart-thumb {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  background-image: url("../image/diagnostic-hero.png");
  background-size: auto 110%;
}

.cart-item h3 {
  margin: 0;
  color: var(--navy-950);
  font-size: 0.88rem;
  line-height: 1.35;
}

.cart-item small {
  color: var(--muted);
  font-size: 0.7rem;
}

.remove-item {
  width: 34px;
  height: 34px;
  cursor: pointer;
  border: 0;
  border-radius: 50%;
  background: var(--ice-50);
  color: var(--muted);
}

.cart-empty {
  margin: auto 0;
  padding: 30px;
  text-align: center;
}

.cart-empty > span {
  width: 74px;
  height: 74px;
  margin: 0 auto 20px;
  display: grid;
  place-items: center;
  border-radius: 28px 12px 28px 12px;
  background: var(--ice-100);
  color: var(--blue-600);
  font-size: 1.4rem;
  font-weight: 800;
}

.cart-empty h3 {
  margin: 0;
  color: var(--navy-950);
}

.cart-empty p {
  margin: 8px auto 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.cart-footer {
  margin-top: auto;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.cart-footer > div {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.84rem;
}

.cart-footer strong {
  color: var(--navy-900);
}

.checkout-button {
  width: 100%;
  margin-top: 18px;
}

.cart-footer small {
  margin-top: 11px;
  display: block;
  color: var(--muted);
  font-size: 0.7rem;
  text-align: center;
}

.product-dialog {
  width: min(900px, calc(100vw - 32px));
  max-height: min(720px, calc(100vh - 32px));
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 28px;
  background: var(--white);
  box-shadow: 0 30px 100px rgba(7, 22, 45, 0.3);
}

.product-dialog[open] {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.product-dialog::backdrop {
  background: rgba(7, 22, 45, 0.58);
  backdrop-filter: blur(4px);
}

.dialog-close {
  position: absolute;
  z-index: 2;
  top: 18px;
  right: 18px;
}

.dialog-image {
  min-height: 530px;
  background-image: url("../image/diagnostic-hero.png");
  background-repeat: no-repeat;
  background-size: auto 100%;
}

.dialog-content {
  padding: 68px 44px 44px;
  align-self: center;
}

.dialog-content h2 {
  font-size: 2.45rem;
}

.dialog-content > p:not(.product-category) {
  margin: 18px 0 0;
  color: var(--muted);
  line-height: 1.75;
}

.dialog-guidance {
  margin-top: 26px;
  padding: 17px;
  border-radius: 14px;
  background: var(--ice-50);
}

.dialog-guidance strong {
  color: var(--navy-900);
  font-size: 0.78rem;
}

.dialog-guidance p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.6;
}

.dialog-add {
  margin-top: 26px;
}

.toast {
  position: fixed;
  z-index: 110;
  right: 22px;
  bottom: 22px;
  max-width: min(360px, calc(100vw - 44px));
  padding: 14px 18px;
  border-radius: 14px;
  background: var(--navy-950);
  color: var(--white);
  box-shadow: 0 16px 40px rgba(7, 22, 45, 0.24);
  font-size: 0.82rem;
  font-weight: 650;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid rgba(36, 91, 198, 0.34);
  outline-offset: 3px;
}

@media (max-width: 980px) {
  :root {
    --shell: min(100% - 36px, 820px);
  }

  .desktop-nav {
    display: none;
  }

  .menu-button {
    display: inline-flex;
    align-items: center;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .hero-copy {
    max-width: 690px;
  }

  .hero-visual {
    min-height: 480px;
  }

  .hero-visual img {
    min-height: 480px;
  }

  .need-grid,
  .product-grid,
  .steps-grid {
    grid-template-columns: 1fr;
  }

  .need-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .product-grid {
    max-width: 720px;
    margin-inline: auto;
  }

  .product-image {
    min-height: 410px;
    background-size: auto 115%;
  }

  .product-body h3,
  .product-description {
    min-height: 0;
  }

  .section-heading,
  .collections-layout,
  .support-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .collections-copy {
    max-width: 620px;
  }

  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .step-card {
    min-height: 240px;
  }

  .support-layout {
    grid-template-columns: 1fr 1fr;
  }

  .support-layout .button {
    justify-self: start;
  }

  .footer-grid {
    grid-template-columns: 1.3fr 0.7fr 0.7fr;
  }

  .footer-note {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  :root {
    --shell: calc(100% - 28px);
    --radius-lg: 25px;
  }

  .announcement {
    padding-inline: 14px;
    justify-content: center;
    text-align: center;
  }

  .announcement-note {
    display: none;
  }

  .header-inner {
    min-height: 68px;
  }

  .brand-byline {
    display: none;
  }

  .hero {
    padding-block: 54px 34px;
    gap: 34px;
  }

  .hero h1 {
    font-size: clamp(2.6rem, 13vw, 4rem);
  }

  .hero-intro {
    font-size: 1rem;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-proof {
    gap: 12px 16px;
  }

  .hero-visual,
  .hero-visual img {
    min-height: 380px;
  }

  .hero-visual {
    border-radius: 100px 18px 100px 18px;
  }

  .hero-visual img {
    object-position: 69% center;
  }

  .note-top {
    top: 16px;
    left: 16px;
  }

  .note-bottom {
    right: 14px;
    bottom: 14px;
  }

  .need-grid {
    grid-template-columns: 1fr;
  }

  .need-card {
    min-height: 84px;
  }

  .shop-section,
  .how-section,
  .collections-section {
    padding-block: 78px;
  }

  .section-heading {
    gap: 22px;
  }

  .section-heading h2,
  .collections-copy h2 {
    font-size: 2.35rem;
  }

  .filter-bar {
    margin-top: 34px;
    margin-right: -14px;
    padding-right: 14px;
  }

  .product-image {
    min-height: 320px;
    background-size: auto 105%;
  }

  .quick-view {
    opacity: 1;
    transform: none;
  }

  .collection-row {
    min-height: 126px;
    grid-template-columns: 28px 1fr;
  }

  .collection-status {
    grid-column: 2;
    justify-self: start;
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }

  .step-card {
    min-height: 220px;
  }

  .support-layout {
    grid-template-columns: 1fr;
  }

  .support-layout .button {
    width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand,
  .footer-note {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 10px;
  }

  .cart-panel {
    padding: 24px 18px;
  }

  .product-dialog[open] {
    display: block;
    overflow-y: auto;
  }

  .dialog-image {
    min-height: 300px;
    background-size: auto 106%;
  }

  .dialog-content {
    padding: 34px 24px 30px;
  }

  .dialog-content h2 {
    padding-right: 26px;
    font-size: 2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}


/* OpenCart integration */
.oc-search { flex: 0 1 300px; }
.oc-search .form-control { border-radius:999px; border:1px solid var(--line); min-height:44px; padding:10px 16px; }
.oc-search .btn { border-radius:999px; }
.oc-cart a, .oc-cart button { color:var(--navy-900); }
.oc-content { width:100%; }
.watchline-products { margin-top:28px; }
.watchline-products .product-thumb { height:100%; overflow:hidden; border:1px solid var(--line); border-radius:var(--radius-lg); background:#fff; transition:transform 200ms ease,box-shadow 200ms ease; }
.watchline-products .product-thumb:hover { transform:translateY(-6px); box-shadow:var(--shadow); }
.watchline-products .image { background:var(--ice-100); padding:0!important; }
.watchline-products .image img { width:100%; height:310px; object-fit:cover; object-position:center; }
.watchline-products .caption { padding:25px; min-height:190px; }
.watchline-products .caption h4 { margin:0 0 10px; font-size:1.25rem; color:var(--navy-950); }
.watchline-products .caption p { color:var(--muted); }
.watchline-products .price { color:var(--navy-900); font-weight:800; }
.watchline-products .button-group { padding:0 25px 25px; }
.watchline-products .btn-primary { border:1px solid var(--navy-900); border-radius:999px; background:var(--navy-900); }
.watchline-products .btn-light { border-radius:999px; }
.breadcrumb { margin:20px auto; width:var(--shell); background:transparent; }
#product-info.container { max-width:1180px; padding-block:30px 80px; }
#product-info h1 { color:var(--navy-950); font-weight:650; letter-spacing:-.04em; }
#product-info .price-new { color:var(--navy-900); }
#product-info .btn-primary { border-radius:999px; background:var(--navy-900); border-color:var(--navy-900); }
#product-info .form-control, #product-info .form-select { border-radius:12px; border-color:var(--line); }
.product-detail {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 60px;
    margin-bottom: 70px;
}

.product-main-image {
    border-radius: 20px;
    overflow: hidden;
}

.product-main-image img {
    width: 100%;
    display: block;
}

.product-thumbnails {
    display: flex;
    gap: 12px;
    margin-top: 15px;
}

.product-thumbnails a {
    width: 80px;
    height: 80px;
    overflow: hidden;
    border-radius: 10px;
}

.product-thumbnails img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-title {
    font-size: 42px;
    line-height: 1.1;
    margin: 10px 0 20px;
}

.product-meta {
    display: grid;
    gap: 8px;
    margin-bottom: 20px;
}

.product-meta div {
    display: flex;
    gap: 10px;
}

.product-meta span {
    opacity: .65;
}

.product-price {
    margin: 25px 0;
}

.price-current {
    font-size: 32px;
}

.price-old {
    text-decoration: line-through;
    opacity: .55;
    margin-right: 10px;
}

.product-purchase {
    display: flex;
    gap: 12px;
    margin-top: 25px;
}

.quantity-control {
    display: flex;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

.quantity-control button,
.quantity-control input {
    border: 0;
    background: transparent;
    width: 42px;
    text-align: center;
}

.quantity-control input {
    width: 55px;
}

.add-button {
    flex: 1;
}

.product-tabs {
    margin-top: 60px;
}

.product-tab-buttons {
    display: flex;
    gap: 30px;
    border-bottom: 1px solid #ddd;
}

.product-tab-button {
    border: 0;
    background: transparent;
    padding: 15px 0;
    cursor: pointer;
}

.product-tab-button.is-active {
    border-bottom: 2px solid currentColor;
}

.product-tab-panel {
    display: none;
    padding: 30px 0;
}

.product-tab-panel.is-active {
    display: block;
}

.specification-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

@media (max-width: 768px) {

    .product-detail {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .product-title {
        font-size: 30px;
    }

    .product-purchase {
        flex-direction: column;
    }

    .product-tab-buttons {
        overflow-x: auto;
        gap: 20px;
    }

}
@media(max-width:980px){ .oc-search{display:none;} }
