/* Product pages: photography, clear decisions, and the details that matter. */
body[data-experience="atelier"] [data-product-page] {
  --product-paper: #f7f3ec;
  --product-ink: #2c2423;
  --product-plum: #512e36;
  --product-muted: #766b65;
  --product-line: #ddd4c9;
  padding-block: 30px 80px;
  background: var(--product-paper);
  color: var(--product-ink);
}

body[data-experience="atelier"] [data-product-page] .container,
body[data-experience="atelier"] .product-details-section .container {
  width: min(1440px, calc(100% - 96px));
  max-width: none;
}

body[data-experience="atelier"] [data-product-page] .breadcrumbs {
  gap: 10px;
  margin-bottom: 32px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--product-muted);
}

body[data-experience="atelier"] [data-product-page] .breadcrumbs a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

body[data-experience="atelier"] [data-product-page] .product-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.14fr) minmax(0, .86fr);
  gap: clamp(42px, 6vw, 96px);
  align-items: start;
}

.product-gallery { min-width: 0; }
.product-gallery__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
  color: #766b65;
  font: 500 11px/1.5 "Manrope", sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.product-gallery__heading > span:last-child { letter-spacing: .06em; }

body[data-experience="atelier"] .product-gallery .gallery-main {
  position: relative;
  width: 100%;
  height: min(44vw, 680px);
  aspect-ratio: auto;
  border: 1px solid #e8e0d6;
  background: #f1eae2;
  overflow: hidden;
}

body[data-experience="atelier"] .product-gallery .gallery-main img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

/* The estate source is small; keep its real detail crisp instead of enlarging it. */
body[data-experience="atelier"] [data-product-slug="estate-cushion-halo-diamond-ring"] .gallery-main img {
  max-width: 480px;
  max-height: 528px;
  margin: auto;
}

body[data-experience="atelier"] .product-gallery .gallery-zoom-button {
  right: 18px;
  bottom: 18px;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid #ddd4c9;
  border-radius: 50%;
  background: #f7f3ecf2;
  color: #512e36;
  box-shadow: none;
}

body[data-experience="atelier"] .product-gallery .thumbnail-grid {
  display: flex;
  align-items: stretch;
  gap: 10px;
  margin-top: 14px;
  padding: 2px 2px 5px;
  overflow-x: auto;
  scrollbar-width: thin;
  counter-reset: product-view;
}

body[data-experience="atelier"] .product-gallery .thumbnail-button {
  display: grid;
  grid-template-rows: 62px 20px;
  gap: 6px;
  flex: 0 0 76px;
  width: 76px;
  min-height: 90px;
  padding: 5px;
  border: 1px solid transparent;
  border-bottom-color: #ddd4c9;
  background: transparent;
  color: #766b65;
  box-shadow: none;
  transform: none;
  transition: border-color .2s, background .2s;
  counter-increment: product-view;
}

body[data-experience="atelier"] .product-gallery .thumbnail-button::after {
  content: counter(product-view, decimal-leading-zero);
  font: 500 10px/1.4 "Manrope", sans-serif;
  letter-spacing: .08em;
}

body[data-experience="atelier"] .product-gallery .thumbnail-button img {
  width: 100%;
  height: 62px;
  object-fit: contain;
  border-radius: 0;
}

body[data-experience="atelier"] .product-gallery .thumbnail-button.is-active,
body[data-experience="atelier"] .product-gallery .thumbnail-button:hover {
  border-color: #512e36;
  background: #f1e9e2;
  color: #512e36;
  transform: none;
  box-shadow: none;
}

.product-gallery__caption {
  margin: 12px 0 0;
  color: #766b65;
  font: 400 13px/1.7 "Manrope", sans-serif;
}

body[data-experience="atelier"] [data-product-page] .product-info {
  position: static;
  min-width: 0;
  padding-top: 30px;
}

body[data-experience="atelier"] [data-product-page] .product-info > .eyebrow {
  color: #512e36;
  font-size: 11px;
  letter-spacing: .16em;
}
body[data-experience="atelier"] [data-product-page] .product-info > .accent-rule { display: none; }
body[data-experience="atelier"] [data-product-page] .product-info h1 {
  margin: 18px 0 22px;
  max-width: none;
  color: #2c2423;
  font: 400 clamp(42px, 3.7vw, 60px)/1.02 "Cormorant Garamond", Georgia, serif;
  letter-spacing: -.035em;
  text-wrap: balance;
}
body[data-experience="atelier"] [data-product-page] .product-info h1 .product-title-detail {
  display: block;
  margin-top: 15px;
  font: 400 14px/1.6 "Manrope", sans-serif;
  letter-spacing: .015em;
  color: #766b65;
}
body[data-experience="atelier"] [data-product-page] .product-price {
  margin-bottom: 18px;
  color: #512e36;
  font: 500 19px/1.5 "Manrope", sans-serif;
}
body[data-experience="atelier"] [data-product-page] .product-info > .product-meta {
  margin-bottom: 22px;
  padding-bottom: 22px;
  border-bottom: 1px solid #ddd4c9;
  color: #766b65;
  font-size: 14px;
  line-height: 1.7;
}
body[data-experience="atelier"] [data-product-page] .product-info > p {
  max-width: 52ch;
  margin-bottom: 22px;
  color: #5f5551;
  font-size: 15px;
  line-height: 1.85;
}

body[data-experience="atelier"] [data-product-page] .product-action-group {
  gap: 10px;
  margin: 28px 0 18px;
  scroll-margin-top: 160px;
}
body[data-experience="atelier"] [data-product-page] .product-action-group > [data-buy-now],
body[data-experience="atelier"] [data-product-page] .product-action-group > [data-add-to-cart] {
  min-height: 54px;
  padding: 15px 22px;
  border-radius: 0;
  font: 500 14px/1.6 "Manrope", sans-serif;
  letter-spacing: .015em;
  box-shadow: none;
  transform: none;
}
body[data-experience="atelier"] [data-product-page] .product-action-group > [data-buy-now] {
  border: 1px solid #512e36;
  background: #512e36;
  color: #fff9f0;
}
body[data-experience="atelier"] [data-product-page] .product-action-group > [data-buy-now]:hover {
  background: #693e48;
  border-color: #693e48;
}
body[data-experience="atelier"] [data-product-page] .product-action-group > [data-add-to-cart] {
  border: 1px solid #512e36;
  background: transparent;
  color: #512e36;
}
body[data-experience="atelier"] [data-product-page] .product-action-group > a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 0;
  margin: 0 18px 0 0;
  background: transparent;
  color: #512e36;
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 5px;
}
body[data-experience="atelier"] [data-product-page] .product-action-group > a.button {
  flex: 1 0 100%;
  justify-content: center;
  min-height: 54px;
  padding: 15px 22px;
  margin-right: 0;
  border: 1px solid #512e36;
  background: #512e36;
  color: #fff9f0;
  font-size: 14px;
  text-decoration: none;
}
body[data-experience="atelier"] [data-product-page] .product-save-button,
body[data-experience="atelier"] [data-product-page] .product-compare-button,
body[data-experience="atelier"] [data-product-page] .product-share-button {
  min-height: 44px;
  padding: 10px 12px;
  background: transparent;
  color: #766b65;
  font-size: 12px;
}

body[data-experience="atelier"] [data-product-page] .product-order-note {
  max-width: none;
  padding: 18px 20px;
  border-left: 2px solid #512e36;
  background: #efe7df;
  color: #5f5551;
  font-size: 14px;
  line-height: 1.8;
}
.product-order-note a { color: #512e36; text-decoration: underline; text-underline-offset: 4px; }

body[data-experience="atelier"] [data-product-page] .product-notes {
  gap: 0;
  margin-top: 24px;
  padding-top: 0;
  border-top: 1px solid #ddd4c9;
}
body[data-experience="atelier"] [data-product-page] .product-notes li {
  display: grid;
  grid-template-columns: minmax(95px, .75fr) minmax(0, 1.25fr);
  gap: 18px;
  padding: 15px 0;
  border-color: #ddd4c9;
  color: #766b65;
  font-size: 14px;
  line-height: 1.65;
}
body[data-experience="atelier"] [data-product-page] .product-notes strong { color: #2c2423; font-weight: 500; }
.product-detail-links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 18px; }
.product-detail-links a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: #512e36; font: 500 12px/1.5 "Manrope", sans-serif; }
.product-detail-links a:hover { text-decoration: underline; text-underline-offset: 4px; }

body[data-experience="atelier"] .product-details-section {
  padding-block: 75px 85px;
  border-block: 1px solid #ddd4c9;
  background: #eee7de;
  color: #2c2423;
}
.product-details__heading { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 48px; }
.product-section-label { margin: 0 0 16px; color: #766b65; font: 500 11px/1.5 "Manrope", sans-serif; letter-spacing: .14em; text-transform: uppercase; }
.product-details__heading h2 { margin: 0; font: 400 clamp(42px, 4.1vw, 64px)/1.05 "Cormorant Garamond", Georgia, serif; letter-spacing: -.025em; }
.product-details__heading h2 em { font-weight: 400; color: #512e36; }
.product-return-link { display: inline-flex; align-items: center; gap: 24px; min-height: 44px; border-bottom: 1px solid #a8998d; color: #512e36; font: 500 12px/1.6 "Manrope", sans-serif; }
.product-return-link--mobile { display: none; }

body[data-experience="atelier"] .product-details__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0 64px;
  align-items: start;
}
body[data-experience="atelier"] .product-details__grid .product-detail-panel {
  display: grid;
  grid-template-columns: 25px minmax(0, 1fr);
  align-items: start;
  gap: 20px;
  padding: 30px 0 35px;
  border: 0;
  border-top: 1px solid #cfc2b5;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  scroll-margin-top: 150px;
}
.product-detail-panel__number { padding-top: 7px; color: #927c70; font: 500 11px/1.5 "Manrope", sans-serif; }
body[data-experience="atelier"] .product-detail-panel h2,
body[data-experience="atelier"] .product-detail-panel h3 {
  margin: 0 0 18px;
  color: #2c2423;
  font: 400 32px/1.13 "Cormorant Garamond", Georgia, serif;
  letter-spacing: -.015em;
}
body[data-experience="atelier"] .product-detail-panel .eyebrow { display: block; margin-bottom: 14px; color: #766b65; font-size: 10px; }
body[data-experience="atelier"] .product-detail-panel p { margin-bottom: 14px; color: #655952; font-size: 14px; line-height: 1.9; }
body[data-experience="atelier"] .product-detail-panel .stacked-detail li { display: grid; grid-template-columns: minmax(100px, .75fr) minmax(0, 1.25fr); gap: 18px; padding: 13px 0; border-color: #d9ccbf; color: #766b65; font-size: 14px; line-height: 1.7; }
body[data-experience="atelier"] .product-detail-panel .stacked-detail li:first-child { padding-top: 0; }
body[data-experience="atelier"] .product-detail-panel .stacked-detail strong { color: #2c2423; font-weight: 500; }
body[data-experience="atelier"] .product-detail-panel .hero-actions { margin-top: 22px; }
body[data-experience="atelier"] .product-detail-panel .hero-actions a { border: 1px solid #bca999; border-radius: 0; background: transparent; color: #512e36; font-size: 13px; box-shadow: none; }
.product-policy-links { display: flex; flex-wrap: wrap; gap: 5px 24px; margin-top: 18px; }
.product-policy-links a { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; color: #512e36; font: 500 12px/1.6 "Manrope", sans-serif; text-decoration: underline; text-underline-offset: 5px; }

body[data-experience="atelier"] .product-assurances { background: #f7f3ec; }
body[data-experience="atelier"] .product-assurances__intro p,
body[data-experience="atelier"] .product-assurances .assurance-accordion p { font-size: 14px; line-height: 1.85; }
body[data-experience="atelier"] .product-assurances .assurance-accordion summary { font-size: 14px; }

@media (min-width: 1000px) and (min-height: 800px) {
  body[data-experience="atelier"] .product-gallery { position: sticky; top: 132px; }
  body[data-experience="atelier"] .product-gallery .gallery-main { height: min(44vw, 680px, calc(100svh - 325px)); }
}

@media (max-width: 999px) {
  body[data-experience="atelier"] [data-product-page] .container,
  body[data-experience="atelier"] .product-details-section .container { width: calc(100% - 48px); }
  body[data-experience="atelier"] [data-product-page] .product-layout { gap: 32px; }
  body[data-experience="atelier"] [data-product-page] .product-info { padding-top: 24px; }
  body[data-experience="atelier"] [data-product-page] .product-info h1 { font-size: 44px; }
  body[data-experience="atelier"] .product-details__grid { gap: 0 34px; }
}

@media (max-width: 760px) {
  body[data-experience="atelier"] [data-product-page] { padding-block: 22px 45px; }
  body[data-experience="atelier"] [data-product-page] .container,
  body[data-experience="atelier"] .product-details-section .container { width: calc(100% - 36px); }
  body[data-experience="atelier"] [data-product-page] .breadcrumbs { gap: 7px; margin-bottom: 24px; font-size: 11px; }
  body[data-experience="atelier"] [data-product-page] .product-layout { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .product-gallery__heading { margin-bottom: 12px; font-size: 10px; }
  body[data-experience="atelier"] .product-gallery .gallery-main { width: 100%; height: auto; aspect-ratio: 1; }
  body[data-experience="atelier"] .product-gallery .thumbnail-grid { gap: 8px; margin-top: 12px; }
  body[data-experience="atelier"] .product-gallery .thumbnail-button { grid-template-rows: 53px 18px; flex-basis: 65px; width: 65px; min-height: 78px; padding: 4px; }
  body[data-experience="atelier"] .product-gallery .thumbnail-button img { height: 53px; }
  .product-gallery__caption { margin-top: 6px; font-size: 12px; }
  body[data-experience="atelier"] [data-product-page] .product-info { padding-top: 0; }
  body[data-experience="atelier"] [data-product-page] .product-info h1 { max-width: 18ch; margin: 14px 0 18px; font-size: clamp(40px, 9.5vw, 58px); }
  body[data-experience="atelier"] [data-product-page] .product-info > .product-meta { margin-bottom: 18px; padding-bottom: 18px; }
  body[data-experience="atelier"] [data-product-page] .product-info > p { max-width: none; font-size: 14px; }
  body[data-experience="atelier"] [data-product-page] .product-action-group { margin-top: 24px; scroll-margin-top: 140px; }
  body[data-experience="atelier"] [data-product-page] .product-notes li { grid-template-columns: minmax(90px, .7fr) minmax(0, 1.3fr); }
  .product-detail-links { gap: 4px 18px; }
  body[data-experience="atelier"] .product-details-section { padding-block: 48px; }
  .product-details__heading { margin-bottom: 30px; }
  .product-details__heading h2 { font-size: 46px; }
  .product-details__heading > .product-return-link { display: none; }
  .product-return-link--mobile { display: inline-flex; margin-top: 10px; }
  body[data-experience="atelier"] .product-details__grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  body[data-experience="atelier"] .product-details__grid .product-detail-panel { grid-template-columns: 20px minmax(0, 1fr); gap: 14px; padding-block: 26px 30px; scroll-margin-top: 130px; }
  body[data-experience="atelier"] .product-detail-panel h2,
  body[data-experience="atelier"] .product-detail-panel h3 { font-size: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  body[data-experience="atelier"] .product-gallery .thumbnail-button,
  body[data-experience="atelier"] .product-gallery .gallery-main img { transition: none; }
}
