/* Product page: approved reference /product?item=scarab-candle, 2026-09-15.
 * Source cascade order retained. Shared styles come from apogey.css.
 * Gallery contain/cover and all product accent variants support the catalog.
 * Layout dimensions use rem with the source 16px root.
 */
.product-page-top {
  background: var(--paper);
  padding: 2.125rem 0 6.875rem;
}
.back-link {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #6b6159;
  align-items: center;
  gap: 0.6875rem;
  margin: 0.625rem 0 2.125rem;
  font-size: 0.6875rem;
  display: inline-flex;
}
.back-link svg {
  width: 1rem;
}
.product-page-grid {
  grid-template-columns: 7fr 5fr;
  align-items: start;
  gap: clamp(3rem, 7vw, 6.875rem);
  display: grid;
}
.product-gallery {
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  display: grid;
}
.product-gallery figure {
  background: #d7cbbd;
  margin: 0;
  overflow: hidden;
}
.product-gallery img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}
.product-gallery-main {
  aspect-ratio: 1.35;
  grid-column: 1/-1;
}
.product-gallery > figure:not(.product-gallery-main) {
  aspect-ratio: 1;
}
.product-gallery > figure:nth-child(2) img {
  object-position: 15% 8%;
  transform: scale(1.7);
}
.product-gallery > figure:nth-child(3) img {
  object-position: 50% 45%;
}
.product-info {
  padding-top: 2.1875rem;
  position: sticky;
  top: 7rem;
}
.product-info h1 {
  letter-spacing: -0.045em;
  margin-top: 1.625rem;
  font-family: Belarus, Impact, sans-serif;
  font-size: clamp(3.7rem, 5.8vw, 6.3rem);
  font-weight: 400;
  line-height: 0.9;
}
.product-price {
  margin-top: 2rem;
  font-size: 1.5rem;
  font-weight: 600;
}
.stock-status {
  color: #5d644d;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: 1px solid #5d644d59;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.875rem;
  padding: 0.5rem 0.625rem;
  font-size: 0.6875rem;
  display: inline-flex;
}
.stock-status svg {
  width: 0.875rem;
}
.product-intro {
  color: #5f564f;
  max-width: 31.875rem;
  margin-top: 2rem;
  font-size: 1rem;
  line-height: 1.7;
}
.product-details-grid {
  grid-template-columns: 3fr 9fr;
  gap: 2rem;
  display: grid;
}
.product-description h2 {
  max-width: 61.25rem;
}
.rich-text-columns {
  grid-template-columns: 1fr 1fr;
  gap: 1.875rem 3.4375rem;
  margin-top: 4.5rem;
  display: grid;
}
.rich-text-columns > div {
  border-top: 1px solid var(--line);
  padding-top: 1.25rem;
}
.rich-text-columns h3 {
  font-family: Belarus, Impact, sans-serif;
  font-size: 1.625rem;
  font-weight: 400;
}
.rich-text-columns p {
  color: #665c54;
  margin-top: 0.9375rem;
  font-size: 0.875rem;
  line-height: 1.65;
}
.specs-grid {
  grid-template-columns: 5fr 5fr;
  gap: 5rem;
  display: grid;
}
.specs-grid h2 {
  margin-top: 1.625rem;
  font-size: clamp(3.2rem, 5vw, 5.5rem);
}
.specs-grid dl {
  border-top: 1px solid #ffffff3d;
  margin: 0;
}
.specs-grid dl > div {
  border-bottom: 1px solid #ffffff3d;
  grid-template-columns: 11.25rem 1fr;
  gap: 1.5rem;
  padding: 1.125rem 0;
  display: grid;
}
.specs-grid dt {
  color: #ffffff80;
  font-size: 0.75rem;
}
.specs-grid dd {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.5;
}
.delivery-card-grid {
  border-left: 1px solid var(--line);
  border-top: 1px solid var(--line);
  grid-template-columns: repeat(3, 1fr);
  display: grid;
}
.delivery-card-grid article {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  min-height: 18.75rem;
  padding: 1.5625rem;
  position: relative;
}
.delivery-card-grid article > svg {
  width: 1.75rem;
  height: 1.75rem;
}
.delivery-card-grid span {
  letter-spacing: 0.14em;
  color: #756a62;
  font-size: 0.625rem;
  position: absolute;
  top: 1.6875rem;
  right: 1.5rem;
}
.delivery-card-grid h3 {
  margin-top: 6.5rem;
  font-family: Belarus, Impact, sans-serif;
  font-size: 2.375rem;
  font-weight: 400;
}
.delivery-card-grid p {
  color: #675d55;
  margin-top: 0.75rem;
  font-size: 0.875rem;
}
@media (width<=1100px) {
  .product-page-grid {
    gap: 2.75rem;
  }
  .delivery-card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (width<=760px) {
  .product-page-grid,
  .product-details-grid,
  .specs-grid {
    grid-template-columns: 1fr;
  }
  .rich-text-columns {
    grid-template-columns: 1fr;
    margin-top: 2.75rem;
  }
  .product-page-top {
    padding-bottom: 4.6875rem;
  }
  .product-gallery {
    gap: 0.5rem;
  }
  .product-gallery-main {
    aspect-ratio: 0.92;
  }
  .product-info {
    padding-top: 1.125rem;
    position: static;
  }
  .product-info h1 {
    font-size: clamp(3.7rem, 16vw, 5.3rem);
  }
  .specs-grid {
    gap: 2.625rem;
  }
  .specs-grid dl > div {
    grid-template-columns: 1fr;
    gap: 0.4375rem;
  }
  .delivery-card-grid {
    grid-template-columns: 1fr;
  }
  .delivery-card-grid article {
    min-height: 15.625rem;
  }
}
.rich-text-columns h3,
.delivery-card-grid h3 {
  letter-spacing: -0.02em;
  font-family:
    Belarus,
    Arial Black,
    Impact,
    sans-serif;
  font-weight: 400;
}
.product-card--lemon {
  --card-accent: var(--paper-deep);
}
.product-accent--lemon {
  --page-accent: var(--paper-deep);
}
.product-gallery {
  gap: 0.75rem;
}
.product-gallery figure {
  background: var(--milk);
  border: 2px solid var(--ink);
  border-radius: 1.375rem;
  padding: 0.75rem;
}
.product-gallery figure img {
  border-radius: 0.8125rem;
}
.product-gallery figure.fit-contain img {
  object-fit: contain;
}
.product-gallery--single .product-gallery-main {
  aspect-ratio: 1;
  grid-column: 1/-1;
}
.stock-status {
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 62.4375rem;
}
.product-details-section {
  background: var(--paper);
}
.specs-section {
  color: var(--milk);
  background: var(--blue);
}
.delivery-card-grid {
  border: 0;
  gap: 0.75rem;
}
.delivery-card-grid article {
  border: 2px solid var(--ink);
  border-radius: 1.25rem;
}
.delivery-card-grid article:nth-child(3) {
  background: var(--coral);
}
@media (width<=760px) {
  .product-page-top {
    padding-top: 1.5rem;
  }
  .product-gallery figure {
    border-radius: 1rem;
    padding: 0.5rem;
  }
  .product-info h1 {
    font-size: clamp(3.4rem, 15vw, 5rem);
  }
}
.product-card--lemon {
  --card-accent: var(--sunshine);
}
.product-card--mint {
  --card-accent: var(--olive);
}
.product-card--peach {
  --card-accent: var(--ketchup);
}
.product-card--pink {
  --card-accent: var(--sunshine);
}
.product-card--ice {
  --card-accent: var(--sky);
}
.product-page-top {
  --page-accent: var(--sunshine);
  background: var(--page-accent);
}
@supports (color: color-mix(in lab, red, red)) {
  .product-page-top {
    background: color-mix(in srgb, var(--page-accent) 28%, var(--paper));
  }
}
.product-accent--blue {
  --page-accent: var(--sky);
}
.product-accent--coral {
  --page-accent: var(--ketchup);
}
.product-accent--violet,
.product-accent--lemon {
  --page-accent: var(--sunshine);
}
.product-accent--mint {
  --page-accent: var(--olive);
}
.product-accent--peach {
  --page-accent: var(--ketchup);
}
.product-accent--pink {
  --page-accent: var(--sunshine);
}
.product-accent--ice {
  --page-accent: var(--sky);
}
.product-info h1 {
  color: var(--chestnut);
}
.specs-section {
  background: var(--chestnut);
}
.specs-section h2 {
  color: var(--sunshine);
}
.product-delivery {
  background: var(--paper-deep);
}
.delivery-card-grid article:first-child {
  background: var(--sunshine);
}
.delivery-card-grid article:nth-child(2) {
  background: var(--sky);
}
.delivery-card-grid article:nth-child(3) {
  color: var(--milk);
  background: var(--ketchup);
}
.related-section {
  background: var(--paper);
}
.product-info h1 {
  color: var(--ink);
}
.specs-section {
  color: var(--ink);
  background: var(--sky);
}
.specs-section h2 {
  color: var(--ink);
}
.product-info h1,
.product-description h2,
.specs-grid h2,
.product-delivery h2,
.delivery-card-grid h3 {
  letter-spacing: 0;
  font-kerning: normal;
  text-wrap: balance;
  font-stretch: 100%;
}
.product-page-grid {
  grid-template-columns: minmax(0, 7fr) minmax(21.875rem, 4.3fr);
}
.product-info {
  border: 2px solid var(--ink);
  box-shadow: 0.625rem 0.6875rem 0 var(--sky);
  background: #fffaf3e6;
  border-radius: 1.5rem;
  padding: 2rem;
}
.product-info h1 {
  color: var(--ink);
  margin-top: 1.25rem;
  font-size: clamp(3.25rem, 4.5vw, 5rem);
  line-height: 0.96;
}
.product-price {
  margin-top: 1.25rem;
}
.stock-status {
  margin-top: 0.75rem;
}
.product-intro {
  color: #222a24c2;
  margin-top: 1.5rem;
}
.rich-text-columns {
  margin-top: 3.625rem;
}
.rich-text-columns h3 {
  letter-spacing: 0;
}
.specs-section {
  color: var(--ink);
  background: var(--sky);
  padding-block: 4.875rem;
}
.specs-grid {
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(3rem, 7vw, 5.625rem);
}
.specs-grid h2 {
  color: var(--ink);
  margin-top: 1.25rem;
  font-size: clamp(3rem, 4.2vw, 4.7rem);
  line-height: 0.96;
}
.specs-grid dl,
.specs-grid dl > div {
  border-color: #222a2461;
}
.specs-grid dl > div {
  padding: 0.8125rem 0;
}
.specs-grid dt {
  color: #222a24ad;
  font-size: 0.8125rem;
  font-weight: 700;
}
.specs-grid dd {
  color: var(--ink);
  font-size: 0.9375rem;
}
.product-delivery .section-heading-row {
  margin-bottom: 3.875rem;
}
.product-delivery .section-heading-row h2 {
  margin-top: 1.25rem;
}
.delivery-card-grid article {
  min-height: 16.875rem;
  padding: 1.5rem;
  color: var(--ink) !important;
}
.delivery-card-grid article > img {
  object-fit: contain;
  width: 6.25rem;
  height: 6.25rem;
}
.delivery-card-grid span {
  color: var(--ink);
  font-size: 1.125rem;
  font-weight: 800;
}
.delivery-card-grid h3 {
  margin-top: 1.9375rem;
}
.delivery-card-grid p {
  max-width: 18.75rem;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: #222a24c2 !important;
}
@media (width<=760px) {
  .product-page-grid {
    grid-template-columns: 1fr;
  }
  .product-info {
    box-shadow: 0.4375rem 0.5rem 0 var(--sky);
    padding: 1.5625rem 1.25rem;
    position: static;
  }
  .specs-grid {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }
  .specs-grid dl > div {
    grid-template-columns: 1fr;
    gap: 0.375rem;
  }
  .delivery-card-grid article {
    min-height: 15.3125rem;
  }
}
.product-gallery.product-gallery--slider {
  grid-template-columns: 6rem minmax(0, 1fr);
  align-items: start;
  gap: 1.125rem;
  display: grid;
}
.product-thumbnails {
  flex-direction: column;
  gap: 0.875rem;
  display: flex;
}
.product-thumbnail {
  aspect-ratio: 1;
  opacity: 0.5;
  cursor: pointer;
  background: 0 0;
  border: 0;
  border-radius: 0.9375rem;
  width: 6rem;
  padding: 0;
  transition:
    opacity 0.2s,
    transform 0.2s;
  overflow: hidden;
}
.product-thumbnail:hover,
.product-thumbnail.is-active {
  opacity: 1;
  transform: translate(0.25rem);
}
.product-thumbnail img {
  object-fit: cover;
  border-radius: 0.9375rem;
  width: 100%;
  height: 100%;
  padding: 0 !important;
  transform: none !important;
}
.product-gallery--slider.fit-contain .product-thumbnail img {
  object-fit: contain;
  background: var(--milk);
}
.product-gallery--slider .product-gallery-main {
  aspect-ratio: 1.03;
  background: var(--milk);
  border: 0;
  border-radius: 1.625rem;
  grid-column: auto;
  width: 100%;
  margin: 0;
  padding: 0;
  position: relative;
  overflow: hidden;
}
.product-gallery--slider .product-gallery-main img {
  object-fit: cover;
  border-radius: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  transform: none !important;
}
.product-gallery--slider.fit-contain .product-gallery-main img {
  object-fit: contain;
  padding: clamp(1.25rem, 4vw, 3rem);
}
.product-gallery-arrow {
  z-index: 2;
  width: 3.375rem;
  height: 3.375rem;
  color: var(--ink);
  cursor: pointer;
  background: #fffaf3f2;
  border: 0;
  border-radius: 50%;
  place-items: center;
  padding: 0;
  display: grid;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  box-shadow: 0 0.5rem 1.5rem #222a2424;
}
.product-gallery-arrow--prev {
  left: 1.5rem;
}
.product-gallery-arrow--next {
  right: 1.5rem;
}
.product-gallery-arrow svg {
  width: 1.5rem;
  height: 1.5rem;
}
.stock-status {
  color: var(--ink);
  background: 0 0;
  border: 0;
  border-radius: 0;
  margin-top: 0.875rem;
  padding: 0;
  font-size: 0.75rem;
  font-weight: 700;
}
.stock-status i {
  background: var(--olive);
  border-radius: 50%;
  width: 0.5rem;
  height: 0.5rem;
}
.delivery-card-grid article > .semantic-sticker {
  width: 6.25rem;
}
@media (width<=760px) {
  .product-gallery.product-gallery--slider {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .product-gallery--slider .product-gallery-main {
    aspect-ratio: 0.94;
    border-radius: 1.25rem;
    grid-row: 1;
  }
  .product-thumbnails {
    flex-direction: row;
    grid-row: 2;
    overflow-x: auto;
  }
  .product-thumbnail {
    flex: 0 0 4.875rem;
    width: 4.875rem;
  }
  .product-thumbnail:hover,
  .product-thumbnail.is-active {
    transform: none;
  }
  .product-gallery-arrow {
    width: 2.875rem;
    height: 2.875rem;
  }
  .product-gallery-arrow--prev {
    left: 0.875rem;
  }
  .product-gallery-arrow--next {
    right: 0.875rem;
  }
}
.product-order-note {
  color: #222a24c2;
  margin-top: 0.625rem;
  font-size: 0.8125rem;
  line-height: 1.5;
}
.specs-grid dd {
  font-weight: 500;
}

/* Keep vertical scrolling and pinch zoom available during gallery swipes. */
.product-gallery--slider .product-gallery-main {
  touch-action: pan-y pinch-zoom;
}
