/* Confine the home-page routine product imagery to its own grid column. */
.routine-section .routine-panel {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  min-height: 400px;
  gap: clamp(28px, 4vw, 56px);
  padding: clamp(28px, 4vw, 56px);
  border-radius: 24px;
  isolation: isolate;
}

.routine-section .routine-panel > div { min-width: 0; }

.routine-section .routine-products {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  justify-content: stretch;
  gap: 10px;
  order: 0;
  width: 100%;
  height: auto;
  min-width: 0;
  margin: 0;
  padding: 20px 12px;
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
  transform: none;
}

.routine-section .routine-products > .product-photo {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  height: auto;
  max-height: none;
  aspect-ratio: 1;
  margin: 0;
  object-fit: contain;
}

.routine-section .routine-products > .product-visual:nth-child(n) {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  margin: 0;
  transform: none;
}

.routine-section .routine-panel h2 {
  display: block;
  max-width: 100%;
  overflow: visible;
  -webkit-line-clamp: unset;
  font-size: clamp(2rem, 3vw, 3.25rem);
  line-height: 1.12;
  margin-bottom: 20px;
}

.routine-section .routine-panel p:not(.eyebrow) {
  max-width: 500px;
  line-height: 1.7;
}

.routine-section .routine-mascot {
  z-index: 0;
  right: -60px;
  bottom: -90px;
  width: 300px;
  opacity: .14;
  pointer-events: none;
}

@media (max-width: 900px) {
  .routine-section .routine-panel {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    gap: 30px;
    padding: 36px;
    text-align: center;
  }

  .routine-section .routine-products {
    order: 2;
    max-width: 620px;
    justify-self: center;
  }

  .routine-section .routine-panel p:not(.eyebrow) { margin-inline: auto; }
}

@media (max-width: 540px) {
  .routine-section .routine-panel {
    padding: 28px 20px;
    gap: 26px;
    border-radius: 20px;
  }

  .routine-section .routine-panel h2 {
    font-size: clamp(1.6rem, 7vw, 2rem);
    margin-bottom: 16px;
  }

  .routine-section .routine-products { gap: 4px; padding: 12px 6px; border-radius: 12px; }
  .routine-section .routine-panel .button { width: 100%; }
}
