/* The opening view stays quiet; the range and partners continue below it. */
.product-dialog {
  width: min(540px, calc(100vw - 28px));
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  border: 1px solid #ffffffdb;
  border-radius: 28px;
  overflow-y: auto;
  background: #f9faf7f5;
  color: #22272b;
  box-shadow: 0 30px 100px #17202840;
}
.product-dialog::backdrop {
  background: #18202966;
  backdrop-filter: blur(7px);
}
.product-dialog .product-card {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.product-dialog .product-photo {
  height: clamp(140px, 28vh, 250px);
}
.product-dialog-close {
  position: sticky;
  top: 12px;
  float: right;
  z-index: 2;
  margin: 12px 12px -56px 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid #e7d5c2;
  background: #fffffff2;
  color: #784013;
  font-size: 28px;
  cursor: pointer;
}
body:has(.product-dialog[open]) {
  overflow: hidden;
}
.rona-home {
  height: auto;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}
.rona-home main {
  display: block;
  flex: none;
}
.rona-home .hero {
  min-height: calc(100svh - 112px);
  height: auto;
  padding-block: 50px 70px;
  align-content: center;
}
.rona-home .hero h1 {
  font-size: clamp(38px, 5.3vw, 84px);
}
.rona-home .hero-visual {
  height: auto;
}
.rona-home .intro {
  line-height: 1.7;
}
.home-range {
  padding-block: 70px 85px;
}
.home-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}
.home-section-heading h2 {
  margin: 0;
  font-size: clamp(27px, 3vw, 42px);
  letter-spacing: -0.04em;
  line-height: 1.15;
}
.carousel-controls {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.carousel-controls button {
  width: 44px;
  height: 44px;
  border: 1px solid #d876282b;
  border-radius: 50%;
  background: #ffffffa3;
  color: #9a4808;
  font-size: 20px;
  cursor: pointer;
  transition:
    background 0.2s,
    transform 0.2s;
}
.carousel-controls button:hover:not(:disabled) {
  background: #ffe6cd;
  transform: translateY(-2px);
}
.carousel-controls button:disabled {
  opacity: 0.3;
  cursor: default;
}
.range-carousel {
  --gap: 24px;
  display: flex;
  gap: var(--gap);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-block: 8px 25px;
}
.range-carousel::-webkit-scrollbar {
  display: none;
}
.range-preview {
  position: relative;
  flex: 0 0 calc((100% - 2 * var(--gap)) / 3);
  scroll-snap-align: start;
  text-decoration: none;
  color: inherit;
  padding: 30px;
  min-height: 300px;
  border-radius: 26px;
  overflow: hidden;
  box-shadow:
    0 8px 25px #5c321508,
    inset 0 1px 0 #fff;
  transition:
    background 0.25s,
    transform 0.25s;
}
.range-preview:hover {
  transform: translateY(-4px);
  background: #fff7edc9;
}
.range-silhouette {
  color: #ef842c;
  opacity: 0.28;
  height: 120px;
  margin-bottom: 22px;
}
.range-silhouette svg {
  width: 110px;
  height: 110px;
  stroke-width: 0.85;
}
.range-preview h3 {
  font-size: clamp(20px, 1.8vw, 25px);
  letter-spacing: -0.025em;
  margin: 0 0 12px;
  line-height: 1.25;
}
.range-preview p {
  margin: 0;
  color: #61656b;
  max-width: 90%;
  font-size: 15px;
  line-height: 1.65;
}
.range-arrow {
  position: absolute;
  right: 26px;
  top: 26px;
  color: #b66324;
  font-size: 22px;
}
.range-action {
  display: flex;
  justify-content: center;
  margin-top: 16px;
}
.range-action .button {
  gap: 12px;
}
.home-partners {
  padding-block: 30px 90px;
}
.partner-window {
  overflow: hidden;
  padding-block: 20px;
  mask-image: linear-gradient(
    to right,
    transparent,
    black 5%,
    black 95%,
    transparent
  );
}
.rona-theme .partner-track {
  display: flex;
  width: max-content;
  animation: partner-drift 65s linear infinite !important;
}
.partner-set {
  display: flex;
  align-items: center;
  gap: 64px;
  padding-right: 64px;
}
.partner-set a {
  width: 160px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  color: #eb621c;
  font-size: 16px;
  font-weight: 700;
}
.partner-set img {
  max-width: 160px;
  width: auto;
  height: auto;
  max-height: 54px;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.partner-set a:has(span) img {
  width: 38px;
  height: 38px;
}
@keyframes partner-drift {
  from {
    transform: translateX(-50%);
  }
  to {
    transform: translateX(0);
  }
}
.rona-home .site-footer {
  margin-top: 28px;
}
@media (max-width: 900px) {
  .range-carousel {
    --gap: 18px;
  }
  .range-preview {
    flex-basis: calc((100% - var(--gap)) / 2);
    padding: 26px;
  }
}
@media (max-width: 700px) {
  .rona-home .hero {
    min-height: calc(100svh - 94px);
    padding-block: 32px 44px;
    grid-template-rows: auto auto;
    gap: 26px;
  }
  .rona-home .hero h1 {
    font-size: clamp(32px, 8vw, 44px);
  }
  .rona-home .hero-copy {
    text-align: center;
    max-width: 460px;
    justify-self: center;
  }
  .rona-home .hero-visual {
    max-width: 350px;
    padding-bottom: 36px;
  }
  .home-range {
    padding-block: 40px 55px;
  }
  .home-partners {
    padding-block: 20px 55px;
  }
  .home-section-heading {
    gap: 16px;
  }
  .partner-set {
    gap: 40px;
    padding-right: 40px;
  }
}
@media (max-width: 520px) {
  .range-preview {
    flex-basis: 100%;
    min-height: 275px;
  }
  .home-section-heading h2 {
    font-size: 27px;
  }
  .carousel-controls {
    gap: 6px;
  }
  .carousel-controls button {
    width: 40px;
    height: 40px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .range-preview,
  .carousel-controls button {
    transition: none;
  }
}

/* Side controls leave the product previews unobstructed at every width. */
.rona-theme .home-range {
  padding-inline: clamp(54px, 5vw, 90px);
}
.range-shell {
  position: relative;
}
.range-shell .carousel-controls {
  position: absolute;
  inset: 0 -52px 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}
.range-shell .carousel-controls button {
  pointer-events: auto;
}
.home-partners {
  width: 100%;
  max-width: none;
  padding-inline: 0;
}
.partner-set {
  min-width: 100vw;
  justify-content: space-around;
  flex-shrink: 0;
}

.motion-toggle {
  position: relative;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin: 0 24px 12px auto;
  padding: 0;
  border: 1px solid rgba(153, 80, 21, 0.2);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  color: #795031;
  cursor: pointer;
  transition:
    background 0.2s,
    border-color 0.2s;
}
.motion-toggle::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
}
.motion-toggle:hover {
  background: #fff3e6;
  border-color: #b87338;
}
.motion-play-icon,
.motion-paused .motion-pause-icon {
  display: none;
}
.motion-paused .motion-play-icon {
  display: block;
}
.rona-theme .motion-paused .partner-track {
  animation-play-state: paused !important;
}
