.product-page {
  --accent: #df655d;
  --ink: #28282a;
  background: #fff;
}
.product-page .header {
  max-width: none;
  padding: 16px 2%;
  display: grid;
  grid-template-columns: 260px 1fr auto;
  gap: 18px;
}
.product-search {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #f6f5f3;
  border: 1px solid #c8c6c3;
  border-radius: 40px;
  padding: 10px 22px;
  color: #777;
  font-size: 16px;
}
.product-search span {
  font-size: 26px;
  line-height: 1;
}
.product-page .header nav {
  grid-row: 2;
  grid-column: 2;
  justify-content: center;
  gap: 55px;
  padding-top: 4px;
}
.product-page .header-actions {
  grid-row: 1;
  grid-column: 3;
}
.product-page .menu-toggle {
  display: block;
}
.product-page .search-link {
  display: none;
}
.product-page main {
  max-width: none;
  padding: 0;
}
.product-layout {
  position: relative;
  display: block;
}
.visual-column {
  display: flow-root;
}
.gallery {
  width: 100%;
  margin: 0;
  height: 560px;
  max-height: none;
  border-radius: 0;
  background: #a0a48f;
}
.gallery > img {
  object-fit: contain;
  width: 100%;
  height: 100%;
}
.gallery .breadcrumb {
  position: absolute;
  top: 24px;
  left: 2%;
  z-index: 2;
  border-radius: 40px;
  background: #faf8f2ed;
  padding: 14px 20px;
  max-width: 65%;
  color: #333;
  display: block;
  line-height: 1.5;
}
.similar-motifs {
  position: absolute;
  right: 3%;
  top: 26px;
  background: white;
  padding: 14px 20px;
  border-radius: 30px;
  font-size: 14px;
  box-shadow: 0 2px 8px #0001;
}
.gallery-prev,
.gallery-next {
  position: absolute;
  top: 46%;
  z-index: 2;
}
.gallery-prev {
  left: 12px;
}
.gallery-next {
  right: 12px;
}
.image-label {
  top: auto;
  bottom: 100px;
  left: 15%;
  font-size: 9px;
}
.expand {
  right: 36%;
  bottom: 22px;
}
.gallery-bottom {
  position: absolute;
  top: 472px;
  left: 15%;
  margin: 0;
  z-index: 2;
}
.gallery-bottom > p {
  display: none;
}
.thumb {
  background: #fff9;
  border: 2px solid white;
  padding: 3px;
  border-radius: 9px;
  position: relative;
}
.thumb.selected {
  border-color: white;
  box-shadow: 0 0 0 2px #3338;
}
.thumb img {
  width: 82px;
  height: 54px;
  border-radius: 5px;
}
.thumb span {
  position: absolute;
  bottom: 5px;
  left: 5px;
  right: 5px;
  color: white;
  background: #0006;
  font-size: 10px;
  border-radius: 3px;
  margin: 0;
}
.product-intro,
.material-overview,
.story,
.editor {
  width: calc(64% - 70px);
  margin-left: 3.5%;
}
.product-intro {
  padding: 22px 0 0;
  display: flex;
  flex-direction: column;
}
.product-intro h1 {
  font-size: 32px;
  line-height: 1.15;
  letter-spacing: -1px;
  margin: 0 0 5px;
  order: -1;
}
.product-intro .eyebrow {
  font-size: 17px;
  letter-spacing: 0;
  font-weight: 400;
  color: #888;
}
.intro-copy {
  font-size: 14px;
  color: #333;
  margin-top: 10px;
}
.material-overview {
  margin-top: 18px;
}
.material-overview h2 {
  font-size: 19px;
  margin-bottom: 8px;
}
.material-overview > div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.material-overview article {
  display: flex;
  align-items: center;
  gap: 15px;
  border: 1px solid #ccc;
  border-radius: 10px;
  padding: 12px;
}
.material-overview article > span {
  font-size: 40px;
  color: #bcbcb5;
}
.material-overview h3 {
  font-size: 15px;
}
.material-overview p {
  font-size: 12px;
  color: #777;
  margin-top: 3px;
}
.configuration {
  position: relative;
  float: right;
  width: 30.5%;
  margin: -198px 3% 30px 0;
  padding: 25px;
  background: rgb(255 255 255 / 90%);
  border-radius: 28px;
  box-shadow: 0 5px 24px #0002;
  z-index: 3;
}
.visual-column {
  overflow: visible;
}
.product-layout {
  display: grid;
  grid-template-columns: 1fr;
}
.visual-column,
.configuration {
  grid-area: 1/1;
}
.configuration {
  align-self: start;
  justify-self: end;
  margin-top: 362px;
  float: none;
}
.from-price {
  margin: 0 0 18px;
  font-size: 17px;
}
.from-price strong {
  font-size: 28px;
  display: inline;
}
.from-price > span {
  font-size: 10px;
}
.configuration fieldset {
  margin: 0 0 18px;
  padding: 0;
  border: 0;
}
.configuration legend {
  font-size: 16px;
  margin-bottom: 10px;
}
.step {
  display: none;
}
.configuration .type-choice legend {
  display: none;
}
.type-options {
  gap: 8px;
}
.type-options label span {
  padding: 8px;
  font-size: 12px;
}
.dimensions {
  gap: 20px;
}
.times {
  display: none;
}
.input-unit {
  border-radius: 30px;
}
.input-unit input {
  padding: 11px 15px;
  font-size: 16px;
}
.configuration .field-note {
  font-size: 10px;
  margin-top: 6px;
}
.material {
  padding: 12px 10px;
  border-radius: 10px;
  gap: 10px;
}
.material strong {
  font-size: 13px;
}
.material > span > small {
  display: none;
}
.material-price {
  font-size: 15px;
  white-space: nowrap;
}
.material-price small {
  display: inline !important;
  font-size: 10px;
  margin-left: 3px;
}
.crop-button {
  padding: 7px 10px;
}
.crop-button img {
  width: 42px;
  height: 36px;
}
.crop-button strong {
  font-size: 12px;
}
.crop-button small {
  font-size: 10px;
}
.configuration fieldset:has(.crop-button) legend {
  display: none;
}
.price-summary {
  padding: 12px 0;
  margin-top: 0;
}
.price-summary > strong {
  font-size: 23px;
}
.price-summary small {
  font-size: 10px;
}
.price-note,
.cart-hint {
  font-size: 10px;
}
.add-button {
  border-radius: 30px;
  padding: 14px;
  justify-content: center;
  gap: 20px;
  background: #df655d;
}
.story {
  padding: 20px 0;
  margin-top: 0;
  border-bottom: 1px solid #ddd;
}
.story h2 {
  font-size: 20px;
}
.story p {
  font-size: 14px;
}
.story .eyebrow {
  display: none;
}
.product-page .faq {
  width: calc(64% - 70px);
  margin: 20px 0 40px 3.5%;
  padding: 0;
  display: block;
}
.faq > div:first-child {
  display: none;
}
.faq details {
  border: 1px solid #ddd;
  border-radius: 8px;
  margin: 6px 0;
  padding: 0 14px;
}
.faq summary {
  padding: 12px 0;
  font-size: 13px;
}
.editor {
  margin-top: 24px;
}
.product-page footer {
  clear: both;
}
@media (min-width: 1600px) {
  .gallery {
    height: 640px;
  }
  .gallery-bottom {
    top: 552px;
  }
  .configuration {
    margin-top: 442px;
  }
}
@media (max-width: 1050px) {
  .product-page .header {
    grid-template-columns: 210px 1fr auto;
  }
  .product-page .header nav {
    gap: 20px;
  }
  .configuration {
    width: 35%;
    margin-right: 2%;
    padding: 20px;
  }
  .product-intro,
  .material-overview,
  .story,
  .editor,
  .product-page .faq {
    width: 57%;
    margin-left: 3%;
  }
  .gallery .breadcrumb {
    font-size: 11px;
  }
  .product-intro h1 {
    font-size: 27px;
  }
}
@media (max-width: 760px) {
  .product-page .header {
    grid-template-columns: 1fr auto;
    padding: 14px 5%;
    gap: 12px;
  }
  .product-page .header-actions {
    grid-column: 2;
  }
  .product-page .brand {
    font-size: 25px;
  }
  .product-search {
    grid-row: 2;
    grid-column: 1/-1;
    font-size: 13px;
    padding: 9px 14px;
  }
  .product-page .header nav {
    display: none;
  }
  .product-layout {
    display: flex;
    flex-direction: column;
  }
  .visual-column {
    display: contents;
  }
  .gallery {
    height: 370px;
    width: 100%;
  }
  .gallery .breadcrumb {
    top: 12px;
    left: 12px;
    max-width: calc(100% - 24px);
    padding: 8px 13px;
  }
  .similar-motifs {
    top: 58px;
    right: 12px;
    font-size: 11px;
    padding: 9px 12px;
  }
  .gallery-bottom {
    top: 292px;
    left: 65px;
  }
  .image-label {
    display: none;
  }
  .expand {
    right: 15px;
    bottom: 15px;
  }
  .gallery-prev,
  .gallery-next {
    width: 36px;
    height: 36px;
  }
  .product-intro,
  .material-overview,
  .story,
  .editor,
  .product-page .faq {
    width: auto;
    margin-left: 5%;
    margin-right: 5%;
  }
  .product-intro {
    order: 1;
  }
  .configuration {
    order: 2;
    position: relative;
    width: 90%;
    margin: 22px 5%;
    padding: 22px;
    align-self: auto;
    border: 1px solid #eee;
  }
  .editor {
    order: 3;
  }
  .material-overview {
    order: 4;
  }
  .story {
    order: 5;
  }
  .material-overview > div {
    grid-template-columns: 1fr;
  }
  .product-intro h1 {
    font-size: 26px;
  }
  .product-page .faq {
    margin-top: 20px;
  }
  .configuration legend {
    font-size: 16px;
  }
}
.product-page .gallery-bottom {
  width: auto;
  max-width: calc(100% - 90px);
}
.product-page .material:has(input:checked) {
  border-color: #df655d;
  background: #fffafa;
}
.product-page .material input:checked + .radio-mark {
  border-color: #df655d;
  background: #df655d;
}
@media (max-width: 760px) {
  .material-overview {
    align-self: stretch;
  }
  .product-page .gallery-bottom {
    right: auto;
  }
}
.gallery-room {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.room-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 3/2;
  overflow: hidden;
  background: #eeeae3;
}
.room-stage .room-background {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
}
.room-plane {
  position: absolute;
}
.room-stage .room-original {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  filter: none;
  opacity: 1;
  mix-blend-mode: normal;
}
.thumb .room-stage {
  width: 82px;
  height: 54px;
  aspect-ratio: auto;
  border-radius: 5px;
}
.thumb .room-stage img {
  border-radius: 0;
}
.thumb .room-stage .room-background {
  width: 100%;
  height: 100%;
}
.thumb .room-stage .room-original {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.thumb span {
  font-size: 8px;
}
.large-room {
  width: min(90vw, 1200px);
}
@media (max-width: 760px) {
  .gallery-bottom {
    left: 50%;
    transform: translateX(-50%);
  }
  .product-page .gallery-bottom {
    max-width: calc(100% - 24px);
  }
  .thumb .room-stage,
  .thumb > img {
    width: 70px;
    height: 47px;
  }
  .gallery-bottom .thumbnails {
    gap: 8px;
  }
}
.product-page .gallery-bottom {
  width: max-content;
}
.thumbnails .thumb {
  flex: none;
}
.thumbnails .thumb > img {
  object-fit: contain;
  background: #f6f4ee;
}

.moodshot-photo { object-fit: contain; display: block; height: auto; max-height: 100%; }

/* Product navigation stays above the image, independent of gallery overlays. */
.product-navigation {display:flex;align-items:center;justify-content:space-between;gap:12px 24px;padding:16px 3%;background:#fff}
.product-navigation .breadcrumb {position:static;margin:0;padding:0;max-width:none;min-width:0;line-height:1.5;font-size:13px;overflow-wrap:anywhere;background:transparent}
.product-navigation .similar-motifs {position:static;flex:none;display:inline-flex;align-items:center;min-height:44px;margin:0;padding:10px 16px;border:1px solid #deddd7;box-shadow:none;font-size:13px}
#gallery {touch-action:pan-y pinch-zoom}
@media (max-width:760px) {
 .product-navigation {flex-wrap:wrap;padding:12px 5%;gap:8px}
 .product-navigation .breadcrumb {flex-basis:100%;font-size:12px}
 .product-navigation .similar-motifs {margin-left:auto}
}

.gallery-motion { position:absolute; inset:0; pointer-events:none; z-index:1; }
.gallery-motion-panel { position:absolute; top:0; width:100%; height:100%; will-change:transform; }
.gallery-motion-panel > img { width:100%; height:100%; object-fit:contain; }
.gallery-moving > #gallery-room, .gallery-moving > #gallery-image { visibility:hidden; }
.gallery .image-label, .gallery .expand { z-index:2; }

/* Keep previews halfway across the gallery edge, with space before the title. */
.product-page .gallery-bottom {
  position: relative;
  top: auto;
  left: 15%;
  margin: 0 0 -20px;
  transform: translateY(-50%);
}
@media (max-width: 760px) {
  .product-page .gallery-bottom {
    left: 50%;
    transform: translate(-50%, -50%);
    flex-shrink: 0;
  }
}

.product-favorite { width:30px; height:30px; }
.product-favorite svg { width:17px; height:17px; }
.product-favorite::after { content:""; position:absolute; inset:-7px; border-radius:50%; }

.product-page #expand-image { display:none; }

/* Persistent slides use native scrolling instead of replacing images mid-gesture. */
#gallery { touch-action:auto; }
.gallery-carousel { position:absolute; inset:0; display:flex; overflow-x:auto; overflow-y:hidden; scroll-snap-type:x mandatory; overscroll-behavior-x:contain; scrollbar-width:none; -webkit-overflow-scrolling:touch; }
.gallery-carousel::-webkit-scrollbar { display:none; }
.gallery-slide { position:relative; flex:0 0 100%; min-width:0; height:100%; scroll-snap-align:start; scroll-snap-stop:always; }
.gallery-slide > img { width:100%; height:100%; object-fit:contain; }
.gallery-slide img { user-select:none; -webkit-user-drag:none; }
.gallery-carousel:focus-visible { outline:3px solid #a34034; outline-offset:-3px; }

/* Compact, type-specific material information. */
.material-detail{border-top:1px solid #e1ded8;margin-top:12px;padding-top:12px;font-size:14px;line-height:1.55}.material-detail summary{cursor:pointer;font-weight:600}.material-detail p{margin:8px 0 0;color:#5f605b}.fixed-material p{margin:0;font-size:14px;line-height:1.55}.fixed-material strong{font-size:16px}
