.shop-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
}

html,
body {
  overflow-x: hidden;
}

:root {
  --accent: #0078ad;
  --muted: #6d6d6d;
}

body {
  font-size: 18px;
}

.section-title p,
.legal-copy p,
.faq-answer p,
.profile-summary-section,
.checkout-panel,
.cart-info p,
.notice,
.empty-state p {
  font-size: 18px;
}

.has-modal {
  overflow: hidden;
}

.commerce-hero,
.page-hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: min(760px, 92vh);
  padding: 154px 0 88px;
  color: #fff;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(9, 18, 31, 0.92) 0%, rgba(9, 18, 31, 0.74) 42%, rgba(9, 18, 31, 0.18) 100%),
    var(--hero-image) center / cover no-repeat;
}

.page-hero {
  min-height: 460px;
  padding: 136px 0 76px;
}

.commerce-hero:after,
.page-hero:after {
  content: "";
  position: absolute;
  left: -12vw;
  right: -12vw;
  bottom: -1px;
  height: 58px;
  background: url("../img/modesta-wave-divider.svg") center bottom / 142% 100% no-repeat;
}

.commerce-hero > .container,
.page-hero > .container {
  position: relative;
  z-index: 1;
}

.commerce-hero-inner,
.page-hero-inner {
  position: relative;
  width: min(720px, 100%);
  margin: 0;
}

.commerce-hero-inner {
  margin: 0 auto;
  text-align: center;
}

.page-hero-inner.page-hero-centered {
  width: min(850px, 100%);
  margin: 0 auto;
  text-align: center;
}

.commerce-hero .eyebrow,
.page-hero .eyebrow {
  color: #fff;
  align-items: flex-start;
  text-align: left;
}

.commerce-hero .eyebrow {
  align-items: center;
  text-align: center;
}

.commerce-hero .eyebrow:before,
.page-hero .eyebrow:before {
  margin-left: 0;
  background: var(--accent);
}

.commerce-hero .eyebrow:before {
  margin-left: auto;
  margin-right: auto;
}

.page-hero-inner.page-hero-centered .eyebrow {
  align-items: center;
  text-align: center;
}

.page-hero-inner.page-hero-centered .eyebrow:before {
  margin-left: auto;
  margin-right: auto;
}

.commerce-hero h1,
.page-hero h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(46px, 6.4vw, 82px);
  font-weight: 300;
  line-height: 0.98;
  text-transform: uppercase;
}

.page-hero h1 {
  max-width: 850px;
  font-size: clamp(40px, 5vw, 64px);
}

.commerce-hero p,
.page-hero p {
  max-width: 650px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(21px, 2vw, 27px);
  line-height: 1.28;
}

.hero-blue-word {
  color: #fff;
}

.page-hero p {
  font-size: 22px;
}

.page-hero-inner.page-hero-centered p {
  margin-left: auto;
  margin-right: auto;
}

.commerce-hero .hero-actions {
  justify-content: center;
}

.commerce-hero .hero-actions .btn.reveal {
  opacity: 1;
  transform: none;
}

.commerce-trust-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
}

.commerce-trust-strip span {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 6px 11px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  font-size: 15px;
  text-transform: uppercase;
}

.compact-section {
  padding-top: 72px;
}

.commerce-card {
  min-height: 100%;
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.commerce-card i,
.pluspoints-card-icon {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: var(--accent);
  margin-bottom: 18px;
}

.commerce-card i {
  font-size: 32px;
}

.pluspoints-card-icon img {
  display: block;
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.commerce-card h2,
.routine-copy h2,
.comparison-band h2 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 300;
  line-height: 1.05;
  text-transform: uppercase;
}

.commerce-card p,
.routine-copy p {
  margin: 0;
  color: #5f6871;
}

.routine-copy .eyebrow,
.comparison-band .eyebrow,
.product-detail-copy .eyebrow {
  align-items: flex-start;
  text-align: left;
}

.routine-copy .eyebrow:before,
.comparison-band .eyebrow:before,
.product-detail-copy .eyebrow:before {
  margin-left: 0;
}

.routine-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1.25fr);
  gap: 36px;
  align-items: center;
}

.routine-copy .btn {
  margin-top: 24px;
}

.routine-steps {
  display: block;
}

.comparison-band {
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.partner-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

.partner-card {
  display: grid;
  align-content: start;
  justify-items: center;
  min-height: 230px;
  padding: 30px 24px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  text-align: center;
}

.partner-card img {
  display: block;
  width: min(190px, 82%);
  height: 66px;
  object-fit: contain;
  margin: 0 auto 18px;
}

.partner-card h3 {
  margin: 0 0 8px;
  color: var(--blue);
  font-size: 24px;
  font-weight: 300;
  line-height: 1.1;
}

.partner-card p {
  margin: 0;
  color: #5f6871;
  font-size: 18px;
  line-height: 1.35;
}

.routine-showcase {
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.routine-slider {
  position: relative;
  display: grid;
  gap: 14px;
}

.routine-slider-window {
  position: relative;
  display: grid;
  min-height: 500px;
  background:
    linear-gradient(90deg, rgba(9, 18, 31, 0.9), rgba(9, 18, 31, 0.66) 48%, rgba(9, 18, 31, 0.18)),
    url("../img/heroes/hero-product.png") center / cover no-repeat;
  border: 1px solid #dce7f1;
  overflow: hidden;
}

.routine-slide {
  grid-area: 1 / 1;
  display: grid;
  grid-template-columns: minmax(260px, 0.58fr);
  align-items: center;
  width: 100%;
  min-height: 500px;
  padding: clamp(30px, 5vw, 58px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.routine-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.routine-slide img {
  width: min(100%, 150px);
  max-height: 230px;
  object-fit: contain;
  filter: none;
  box-shadow: none;
}

.routine-slide-products {
  display: none;
}

.routine-slide-products a {
  display: grid;
  place-items: center;
  width: min(31%, 150px);
  min-width: 88px;
  min-height: 260px;
  padding: 14px;
  background: #fff;
  border: 1px solid #e3e9ef;
}

.routine-slide-empty {
  display: block;
  width: 100%;
  min-height: 260px;
  background: #fff;
}

.routine-slider-controls {
  position: absolute;
  right: 24px;
  bottom: 24px;
  z-index: 2;
  display: flex;
  gap: 8px;
}

.routine-slider-controls button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
}

.routine-steps b {
  display: block;
  color: var(--accent);
  font-size: 18px;
  line-height: 1;
}

.routine-steps h3 {
  margin: 10px 0 12px;
  color: #fff;
  font-size: clamp(34px, 4.4vw, 54px);
  font-weight: 300;
  line-height: 1;
  text-transform: uppercase;
}

.routine-steps p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  line-height: 1.45;
}

.featured-product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.featured-product-card {
  display: grid;
  min-height: 100%;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.featured-product-image {
  display: grid;
  place-items: center;
  min-height: 340px;
  padding: 28px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.featured-product-image img {
  width: min(82%, 245px);
  max-height: 340px;
  object-fit: contain;
  filter: none;
  box-shadow: none;
}

.featured-product-body {
  display: grid;
  gap: 12px;
  padding: 24px;
}

.product-kicker {
  color: var(--accent);
  font-size: 15px;
  line-height: 1;
  text-transform: uppercase;
}

.featured-product-body h3 {
  margin: 0;
  color: var(--ink);
  font-size: 30px;
  font-weight: 300;
  line-height: 1.05;
  text-transform: uppercase;
}

.product-card-title a {
  display: grid;
  gap: 5px;
}

.product-main-title {
  display: block;
}

.product-tagline {
  display: block;
  color: #5f6871;
  font-size: 0.68em;
  font-weight: 300;
  line-height: 1.18;
}

.featured-product-body p {
  margin: 0;
  color: #65717c;
  font-size: 18px;
  line-height: 1.45;
}

.featured-buy-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 4px;
}

.featured-buy-row > strong {
  color: #09233d;
  font-size: 24px;
  font-weight: 600;
  white-space: nowrap;
}

.inline-add-form {
  display: block;
  margin: 0;
}

.comparison-band {
  display: grid;
  grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1fr);
  gap: 30px;
  align-items: start;
}

.comparison-band p {
  margin: 0;
  color: #5f6871;
  font-size: 18px;
  line-height: 1.5;
}

.partner-list {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.partner-list > strong {
  color: #09233d;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.2;
  text-transform: uppercase;
}

.partner-item {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-height: 54px;
  padding: 6px 0;
}

.partner-item img {
  display: block;
  width: 100%;
  max-height: 30px;
  object-fit: contain;
  object-position: left center;
}

.partner-item span {
  color: #09233d;
  font-size: 16px;
  line-height: 1.25;
}

.comparison-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.comparison-points article {
  min-height: 170px;
  padding: 20px;
  background: #f6f9fc;
  border: 1px solid #dce7f1;
}

.comparison-points i {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  background: currentColor !important;
  border: 0;
  color: #0078ad !important;
  font-size: 28px;
}

.comparison-points strong {
  display: block;
  margin-bottom: 8px;
  color: #09233d;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.25;
  text-transform: uppercase;
}

.comparison-points span {
  display: block;
  color: #5f6871;
  font-size: 17px;
  line-height: 1.4;
}

.shop-product {
  min-height: 100%;
}

.shop-product-image {
  min-height: 360px;
  background: #fff;
}

.shop-product-image a {
  display: grid;
  place-items: center;
  min-height: inherit;
}

.shop-product-image img {
  width: min(82%, 320px);
  max-height: 430px;
  object-fit: contain;
  filter: none;
  box-shadow: none;
}

.shop-product-body h3 a {
  color: inherit;
}

.product-detail-link {
  display: inline-flex;
  width: max-content;
  margin: 4px 0 16px;
  color: var(--accent);
  font-size: 17px;
  line-height: 1.2;
  text-transform: uppercase;
}

.product-detail-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  gap: 46px;
  align-items: start;
}

.product-detail-media {
  display: grid;
  place-items: center;
  min-height: 600px;
  padding: 34px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.product-detail-media img {
  width: min(100%, 420px);
  max-height: 560px;
  object-fit: contain;
  filter: none;
  box-shadow: none;
}

.product-detail-copy h1 {
  margin: 0 0 18px;
  color: var(--ink);
  font-size: clamp(42px, 5vw, 66px);
  font-weight: 300;
  line-height: 1.02;
  text-transform: uppercase;
}

.product-detail-copy h1 small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 22px;
  line-height: 1.2;
}

.lead-copy {
  margin: 22px 0;
  color: #4d4d4d;
  font-size: 18px;
  line-height: 1.45;
}

.product-description-copy {
  display: grid;
  gap: 18px;
}

.product-description-copy p {
  margin: 0;
}

.detail-buy {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 26px 0;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.detail-purchase-row {
  display: grid;
  grid-template-columns: minmax(190px, 1fr) minmax(0, auto);
  gap: 12px;
  align-items: center;
  justify-content: stretch;
}

.detail-price {
  align-self: center;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #09233d;
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.detail-price small {
  color: #65717c;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  text-transform: uppercase;
}

.detail-purchase-row .btn {
  min-height: 48px;
  white-space: nowrap;
}

.detail-action-block {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  justify-content: flex-end;
  gap: 12px;
}

.detail-purchase-row .qty-field {
  display: flex;
  align-items: center;
  gap: 10px;
  align-self: center;
}

.detail-purchase-row .qty-field span {
  margin-bottom: 0;
}

.detail-purchase-row .qty-field input {
  width: 86px;
}

.detail-buy label span {
  display: block;
  margin-bottom: 6px;
  color: var(--blue);
  font-size: 15px;
  text-transform: uppercase;
}

.detail-buy input,
.detail-buy select {
  width: 100%;
  min-height: 48px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  color: var(--blue);
  font: inherit;
  background: #fff;
}

.detail-buy-facts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  padding-top: 4px;
}

.detail-buy-facts > span {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  padding: 6px 10px;
  background: #f6f9fc;
  border: 1px solid #dce7f1;
  color: #09233d;
  font-size: 15px;
  line-height: 1.2;
  text-transform: uppercase;
}

.product-documents {
  margin-top: 28px;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.product-documents .eyebrow {
  align-items: flex-start;
  text-align: left;
}

.product-documents .eyebrow:before {
  margin-left: 0;
}

.product-documents h2 {
  margin: 0 0 18px;
  color: var(--ink);
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 300;
  line-height: 1.05;
  text-transform: uppercase;
}

.sds-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.sds-link {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 56px;
  padding: 12px 14px;
  background: #f6f9fc;
  border: 1px solid #dce7f1;
}

.sds-flag {
  font-size: 24px;
  line-height: 1;
}

.sds-link strong {
  color: var(--accent);
  font-size: 20px;
  line-height: 1;
}

.sds-link span {
  color: #09233d;
  font-size: 15px;
  line-height: 1.25;
}

.hazard-section {
  margin-top: 18px;
}

.hazard-pictograms {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 0 0 22px;
}

.hazard-pictogram {
  display: grid;
  justify-items: center;
  gap: 10px;
  width: 96px;
  color: #09233d;
  font-size: 13px;
  line-height: 1.15;
  text-align: center;
}

.hazard-pictogram b {
  position: relative;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  color: #09233d;
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
}

.hazard-pictogram b:before {
  content: "";
  position: absolute;
  inset: 4px;
  z-index: -1;
  background: #fff;
  border: 5px solid #d8232a;
  transform: rotate(45deg);
}

.hazard-pictogram b {
  isolation: isolate;
  text-shadow: 0 0 0 #09233d;
}

.hazard-pictogram small {
  color: #5f6871;
  font-size: 13px;
  line-height: 1.2;
  text-transform: uppercase;
}

.hazard-list {
  display: grid;
  gap: 12px;
  margin: 0;
}

.hazard-list div {
  display: grid;
  gap: 4px;
  padding: 12px 0;
  border-top: 1px solid #dce7f1;
}

.hazard-list dt {
  color: var(--accent);
  font-size: 15px;
  line-height: 1.2;
  text-transform: uppercase;
}

.hazard-list dd {
  margin: 0;
  color: #253240;
  font-size: 17px;
  line-height: 1.45;
}

.shop-dialog-backdrop {
  position: fixed;
  z-index: 120;
  inset: 0;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgba(9, 18, 31, 0.68);
}

.shop-dialog-backdrop.is-open {
  display: grid;
}

.shop-dialog {
  position: relative;
  width: min(520px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 32px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.shop-dialog .eyebrow {
  align-items: flex-start;
  color: var(--accent);
  text-align: left;
}

.shop-dialog .eyebrow:before {
  margin-left: 0;
  background: var(--accent);
}

.shop-dialog h2 {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 38px;
  font-weight: 300;
  line-height: 1.05;
  text-transform: uppercase;
}

.shop-dialog p {
  margin: 0 0 20px;
  color: #52606c;
  font-size: 18px;
  line-height: 1.45;
}

.shop-dialog label {
  display: block;
  margin-bottom: 12px;
}

.shop-dialog label span {
  display: block;
  margin-bottom: 5px;
  color: var(--blue);
  font-size: 15px;
  text-transform: uppercase;
}

.shop-dialog input {
  width: 100%;
  min-height: 48px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  color: var(--blue);
  font: inherit;
}

.dialog-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 16px;
}

.account-choice p,
.guest-order-form p {
  margin: 0 0 14px;
  color: #4d4d4d;
  font-size: 18px;
  line-height: 1.55;
}

.account-password-fields {
  display: none;
  margin: 12px 0 16px;
}

.account-password-fields.is-visible {
  display: block;
}

.account-password-meter,
.password-help,
.password-strength {
  grid-column: 1 / -1;
}

.password-help {
  display: block;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.35;
}

.password-strength {
  margin-top: 8px;
  color: #7a5a16;
  font-size: 16px;
  line-height: 1.35;
}

.password-strength[data-strength="4"],
.password-strength[data-strength="5"] {
  color: #1d7d46;
}

.account-register-form .terms-check {
  grid-column: 1 / -1;
}

.terms-check {
  align-items: flex-start;
}

.terms-check input {
  margin-top: 4px;
}

.dialog-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--blue);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.account-pill {
  min-width: 38px;
  min-height: 36px;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.shop-toast {
  position: fixed;
  z-index: 120;
  right: 24px;
  top: 104px;
  max-width: min(360px, calc(100vw - 34px));
  padding: 14px 18px;
  background: #eaf8ed;
  border: 1px solid #b9dec2;
  color: #09233d;
  box-shadow: 0 20px 60px rgba(39, 45, 59, 0.16);
  font-size: 18px;
  line-height: 1.25;
  text-transform: uppercase;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

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

.shop-toast.error {
  background: rgba(160, 40, 40, 0.08);
  border-color: rgba(160, 40, 40, 0.35);
}

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

@media (max-width: 860px) {
  .commerce-hero,
  .page-hero {
    min-height: auto;
    padding: 126px 0 86px;
    background:
      linear-gradient(90deg, rgba(9, 18, 31, 0.92), rgba(9, 18, 31, 0.66)),
      var(--hero-image) center / cover no-repeat;
  }

  .routine-layout,
  .comparison-band {
    grid-template-columns: 1fr;
  }

  .featured-product-grid,
  .comparison-points,
  .partner-grid {
    grid-template-columns: 1fr;
  }

  .routine-slide {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .routine-slider-window {
    min-height: 0;
  }

  .routine-slide-products {
    min-height: 250px;
  }

  .product-detail-layout,
  .detail-buy,
  .detail-purchase-row {
    grid-template-columns: 1fr;
  }

  .detail-purchase-row {
    justify-content: stretch;
  }

  .detail-action-block {
    justify-content: flex-start;
    justify-self: start;
  }

  .product-detail-media {
    min-height: 420px;
  }

}

@media (max-width: 700px) {
  .shop-grid {
    grid-template-columns: 1fr;
  }

  .shop-product-image {
    min-height: 300px;
  }

  .routine-steps {
    display: block;
  }

  .shop-dialog {
    padding: 26px 20px;
  }

  .shop-toast {
    left: 17px;
    right: 17px;
    top: 92px;
    max-width: none;
  }

  .detail-action-block {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .detail-action-block .btn {
    width: 100%;
  }
}

.btn:hover,
.card:hover,
.commerce-card:hover,
.featured-product-card:hover,
.product-card:hover,
.compact-product:hover,
.surface-card:hover,
.shop-product:hover,
.brand-project:hover {
  transform: none !important;
}

.reveal {
  opacity: 1;
  transform: none;
}
