/* SunClock product page body, based on Figma frame 2295:339. */
.sunclock-main {
  display: flex;
  flex-direction: column;
  gap: 66px;
  padding: 66px 0;
}

.sunclock-title h1 {
  margin: 0;
  color: #000;
  font: 500 clamp(56px, 7.4vw, 100px)/.8 var(--sans);
  letter-spacing: -.08em;
}

.section-label {
  margin: 0;
  color: var(--orange);
  font: 400 24px/1.2 var(--sans);
  letter-spacing: 0;
}

.clock-section,
.idea-section,
.idea-quote-section,
.process-gallery {
  min-width: 0;
}

.clock-section,
.idea-section {
  width: min(100%, 1400px);
  margin-right: auto;
  margin-left: auto;
}

.clock-section > .section-label,
.idea-section > .section-label,
.idea-quote-section > .section-label {
  margin-bottom: 25px;
}

.clock-overview {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: start;
  gap: 20px;
}

.clock-hero-image,
.idea-image,
.process-frame {
  position: relative;
  min-width: 0;
  margin: 0;
  overflow: hidden;
}

.clock-hero-image {
  aspect-ratio: 646 / 419;
  background: #eee;
}

.clock-hero-image img {
  position: absolute;
  left: -14.65%;
  top: -16.5%;
  width: 129.5%;
  height: 133.1%;
  max-width: none;
  object-fit: fill;
}

.clock-details {
  display: flex;
  flex-direction: column;
  gap: 15px;
  min-width: 0;
  color: #000;
}

.clock-purchase,
.clock-description,
.product-info {
  min-width: 0;
  padding: 0 15px;
}

.clock-purchase {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.clock-name,
.detail-heading {
  margin: 0;
  font: 400 24px/1.15 var(--sans);
  letter-spacing: 0;
}

.clock-price-row {
  display: flex;
  align-items: center;
  gap: 30px;
}

.clock-price {
  margin: 0;
  font: 400 24px/1 var(--mono);
  white-space: nowrap;
}

.clock-price-row .button {
  height: 46px;
}

.clock-description {
  padding-top: 0;
}

.clock-divider,
.spec-divider {
  display: block;
  width: 100%;
  height: auto;
}

.clock-description .clock-divider {
  margin-bottom: 14px;
}

.clock-description .detail-heading {
  margin-bottom: 14px;
}

.clock-copy {
  font: 400 14px/1.18 var(--mono);
}

.clock-copy p {
  margin: 0 0 14px;
}

.clock-copy p:last-child {
  margin-bottom: 0;
}

.clock-copy .shipping-note {
  margin-top: 14px;
  font-weight: 700;
}

.product-info-gap {
  display: block;
  width: 100%;
  height: 22px;
  object-fit: fill;
}

.product-info {
  padding-top: 1px;
}

.product-info .detail-heading {
  margin-bottom: 14px;
  padding-bottom: 14px;
  background: url("/assets/sunclock/divider-long.svg") left bottom / 100% 1px no-repeat;
}

.product-specs {
  margin: 0;
  font: 400 11px/1.3 var(--mono);
  color: #2d2d2d;
}

.spec-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr);
  gap: 20px;
  align-items: center;
  min-height: 34px;
  padding: 7px 0;
}

.spec-row::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: url("/assets/sunclock/divider-short.svg") left bottom / 100% 1px no-repeat;
  content: "";
}

.spec-row dt,
.spec-row dd {
  margin: 0;
}

.spec-row dd {
  text-align: left;
}

.idea-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2.05fr);
  align-items: start;
  gap: 20px;
}

.idea-copy {
  font: 400 14px/1.18 var(--mono);
  color: #000;
}

.idea-copy p {
  margin: 0 0 14px;
}

.idea-copy p:last-child {
  margin-bottom: 0;
}

.idea-image {
  aspect-ratio: 869.435 / 440.449;
  background: #f5f5f5;
}

.idea-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.idea-quote-section {
  text-align: center;
}

.idea-quote-section > .section-label {
  margin-bottom: 25px;
}

.idea-quote {
  max-width: 780px;
  margin: 0 auto;
  color: #000;
  font: 400 24px/1.15 var(--sans);
}

.process-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.process-frame {
  aspect-ratio: 425 / 506;
  background: #f2f0ea;
}

.process-frame img {
  position: absolute;
  display: block;
  max-width: none;
}

.process-room img {
  left: -13.8%;
  top: -54.8%;
  width: 128.2%;
  height: 161.6%;
  object-fit: fill;
}

.process-sketch .sketch-background {
  left: 0;
  top: -118.4%;
  width: 210.8%;
  height: 313.5%;
  object-fit: fill;
}

.process-sketch .sketch-foreground {
  left: -32.7%;
  top: -1.5%;
  width: 185.6%;
  height: 103.45%;
  object-fit: fill;
}

.process-light img {
  left: -.5%;
  top: -13.95%;
  width: 101.2%;
  height: 113.35%;
  object-fit: fill;
}

/* Product page navigation stays aligned with the current shared header. */
.product-page .site-header {
  display: block;
}

.product-page .nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  height: 46px;
  margin-top: 0;
}

.product-page .nav-links {
  display: contents;
}

.product-page .brand {
  flex: 0 0 270px;
  width: 270px;
  height: 22px;
  aspect-ratio: auto;
  margin: 0;
  opacity: 1;
  animation: none;
}

.product-page .brand img {
  display: block;
  width: 270px;
  height: 22px;
  object-fit: contain;
  object-position: left center;
}

.product-page .nav,
.product-page main,
.product-page .footer {
  opacity: 1;
  animation: none;
}

.product-page,
.product-page *,
.product-page *::before,
.product-page *::after {
  animation: none !important;
  transition: none !important;
}

html:has(.product-page) {
  scroll-behavior: auto;
}

@media (max-width: 900px) {
  .sunclock-main {
    gap: 50px;
    padding-top: 42px;
    padding-bottom: 50px;
  }

  .clock-overview,
  .idea-layout {
    grid-template-columns: 1fr;
  }

  .clock-hero-image {
    aspect-ratio: 646 / 419;
  }

  .clock-details {
    gap: 20px;
  }

  .idea-image {
    aspect-ratio: 869.435 / 440.449;
  }

  .process-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .process-light {
    grid-column: 1 / -1;
    width: calc(50% - 10px);
    justify-self: center;
  }
}

@media (max-width: 760px) {
  .product-page .nav {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    gap: 14px 10px;
    width: 100%;
    height: auto;
    min-height: 0;
    margin-top: 0;
  }

  .product-page .nav-links {
    display: none;
  }

  .product-page .nav.is-open .nav-links {
    display: flex;
  }

  .product-page .brand {
    grid-column: 1 / -1;
    grid-row: 1;
    flex: none;
    width: 100%;
    height: auto;
    aspect-ratio: 1315 / 105;
  }

  .product-page .brand img {
    width: 100%;
    height: 100%;
  }

  .product-page .menu-toggle {
    grid-column: 1;
    grid-row: 2;
    margin: 0;
  }

  .product-page .nav > .button {
    grid-column: 3;
    grid-row: 2;
    justify-self: end;
    margin: 0;
  }
}

@media (max-width: 600px) {
  .sunclock-main {
    gap: 38px;
    padding-top: 30px;
    padding-bottom: 38px;
  }

  .sunclock-title h1 {
    font-size: clamp(54px, 16vw, 86px);
  }

  .section-label {
    font-size: 20px;
  }

  .clock-section > .section-label,
  .idea-section > .section-label,
  .idea-quote-section > .section-label {
    margin-bottom: 16px;
  }

  .clock-hero-image {
    aspect-ratio: 1 / 1;
  }

  .clock-hero-image img {
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  .clock-purchase,
  .clock-description,
  .product-info {
    padding-right: 0;
    padding-left: 0;
  }

  .clock-name,
  .detail-heading {
    font-size: 21px;
  }

  .clock-price {
    font-size: 20px;
  }

  .clock-price-row {
    gap: 20px;
  }

  .clock-copy {
    font-size: 13px;
  }

  .spec-row {
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    gap: 12px;
  }

  .idea-quote {
    font-size: 21px;
  }

  .process-gallery {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .process-frame,
  .process-light {
    grid-column: auto;
    width: 100%;
    aspect-ratio: 425 / 506;
  }
}
