:root {
  --paper: #faf8f4;
  --ink: #242824;
  --muted: #6c7068;
  --line: #dedfd5;
  --accent: #a94d33;
  --accent-dark: #883c27;
  --sage: #e6e9df;
  --white: #fff;
  --radius: 18px;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input {
  font: inherit;
}
button,
a,
input {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button {
  color: inherit;
}
a {
  color: inherit;
  text-decoration: none;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #41647b;
  outline-offset: 4px;
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
button,
fieldset {
  border: 0;
}
img {
  display: block;
  max-width: 100%;
}
button {
  background: none;
}
h1,
h2,
p {
  margin: 0;
}
h1,
h2 {
  font-weight: 500;
  letter-spacing: -0.045em;
}
h2 {
  font-size: 2rem;
  line-height: 1.15;
}
svg {
  width: 24px;
  height: 24px;
}
small,
.small {
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.5;
}
.skip {
  position: fixed;
  left: 15px;
  top: -100px;
  z-index: 50;
  background: white;
  padding: 15px;
}
.skip:focus {
  top: 10px;
}
.build-note {
  background: #e7e9e0;
  text-align: center;
  padding: 9px 18px;
  color: #4b5444;
  font-size: 0.8125rem;
  line-height: 1.5;
}
.header {
  min-height: 100px;
  padding: 20px 4.5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.brand {
  font-size: 2rem;
  font-weight: 750;
  letter-spacing: -0.065em;
  white-space: nowrap;
}
.brand-dot {
  color: var(--accent);
}
nav {
  display: flex;
  gap: 32px;
  font-size: 0.875rem;
}
nav a:hover {
  text-decoration: underline;
  text-underline-offset: 6px;
}
.cart-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  padding: 9px 0;
}
.cart-trigger svg {
  width: 25px;
  height: 25px;
}
#cart-count {
  display: grid;
  place-items: center;
  background: var(--ink);
  color: #fff;
  font-size: 0.75rem;
  border-radius: 50%;
  width: 21px;
  height: 21px;
}
main {
  max-width: 1680px;
  margin: auto;
  padding: 0 4.5%;
}
.breadcrumb {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 25px 0;
  font-size: 0.8125rem;
  color: var(--muted);
}
.breadcrumb span {
  opacity: 0.5;
}
.product-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.48fr) minmax(360px, 1fr);
  gap: 5%;
  align-items: start;
}
.visual-column {
  min-width: 0;
}
.gallery {
  position: relative;
  background: #e4e4da;
  overflow: hidden;
  border-radius: 5px;
  height: 620px;
  max-height: 65vw;
}
.gallery > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.image-label {
  position: absolute;
  left: 22px;
  top: 22px;
  background: #fffffff0;
  padding: 9px 12px;
  border-radius: 30px;
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
}
.round-button {
  border-radius: 50%;
  width: 44px;
  height: 44px;
  background: white;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 1.75rem;
  box-shadow: 0 2px 8px #0000000a;
}
.expand {
  position: absolute;
  bottom: 22px;
  right: 22px;
}
.expand svg {
  width: 19px;
  height: 19px;
}
.gallery-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 18px 0 28px;
  gap: 20px;
}
.gallery-bottom > p {
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.5;
  text-align: right;
}
.thumbnails {
  display: flex;
  gap: 10px;
}
.thumb {
  padding: 4px;
  border: 1px solid transparent;
  border-radius: 5px;
  text-align: center;
}
.thumb img {
  width: 76px;
  height: 53px;
  object-fit: cover;
  border-radius: 2px;
}
.thumb span {
  font-size: 0.75rem;
  display: block;
  margin-top: 6px;
}
.thumb.selected {
  border-color: var(--accent);
}
.configuration {
  padding: 4px 0 0;
  scroll-margin-top: 22px;
}
.eyebrow {
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  font-weight: 600;
  color: #646c5a;
  line-height: 1.6;
  display: block;
}
h1 {
  font-size: clamp(2.5rem, 3.45vw, 4rem);
  line-height: 1.02;
  margin: 16px 0;
}
.intro-copy {
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--muted);
}
.from-price {
  margin: 20px 0 26px;
  font-size: 0.875rem;
}
.from-price strong {
  font-size: 1.375rem;
  font-weight: 500;
}
.from-price > span {
  font-size: 0.75rem;
  color: var(--muted);
  margin-left: 12px;
}
fieldset {
  padding: 25px 0 0;
  margin: 0 0 24px;
  border-top: 1px solid var(--line);
  min-width: 0;
}
legend {
  float: left;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9375rem;
  font-weight: 600;
  margin: 0 0 16px;
  padding: 0;
}
legend + * {
  clear: both;
}
.step {
  font-size: 0.6875rem;
  font-weight: 400;
  color: var(--accent);
  border: 1px solid #d8baa9;
  border-radius: 50%;
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
}
.dimensions {
  display: flex;
  align-items: end;
  gap: 12px;
}
.dimensions label {
  font-size: 0.8125rem;
  flex: 1;
  min-width: 0;
}
.input-unit {
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid #cbcfc4;
  border-radius: 7px;
  margin-top: 7px;
  overflow: hidden;
}
.input-unit:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}
.input-unit input {
  min-width: 0;
  width: 100%;
  padding: 13px 14px;
  border: 0;
  background: none;
  font-size: 1.125rem;
  outline: none;
  font-weight: 500;
  color: var(--ink);
}
.input-unit span {
  padding-right: 14px;
  color: var(--muted);
  font-size: 0.8125rem;
}
.times {
  padding-bottom: 16px;
  color: var(--muted);
}
.field-note {
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--muted);
  margin-top: 10px;
}
.error {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: #a72e21;
  margin-top: 10px;
}
.material {
  display: flex;
  align-items: center;
  gap: 11px;
  border: 1px solid var(--line);
  padding: 15px 14px;
  border-radius: 8px;
  margin-bottom: 9px;
  cursor: pointer;
  position: relative;
  background: #ffffff80;
}
.material:has(input:checked) {
  border-color: #818e70;
  background: #f0f2eb;
  box-shadow: inset 0 0 0 0.5px #818e70;
}
.material:has(input:focus-visible) {
  outline: 3px solid #41647b;
  outline-offset: 3px;
}
.material input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.radio-mark {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  border: 1px solid #a6ac9c;
  border-radius: 50%;
  background: #fff;
}
.material input:checked + .radio-mark {
  border: 5px solid #727e63;
}
.material strong {
  font-size: 0.875rem;
  font-weight: 500;
}
.material small {
  display: block;
  font-size: 0.75rem;
  margin-top: 4px;
}
.material-price {
  margin-left: auto;
  text-align: right;
  white-space: nowrap;
  font-size: 0.875rem;
}
.crop-button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #fff;
}
.crop-button img {
  width: 58px;
  height: 49px;
  object-fit: cover;
  border-radius: 3px;
}
.crop-button strong {
  font-size: 0.875rem;
  font-weight: 500;
}
.crop-button small {
  display: block;
  font-size: 0.75rem;
  margin-top: 4px;
}
.crop-button > span:last-child {
  margin-left: auto;
  font-size: 1.4rem;
  padding: 0 8px;
  color: var(--accent);
}
.price-summary {
  border-top: 1px solid var(--line);
  padding-top: 23px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  font-size: 0.875rem;
}
.price-summary small {
  display: block;
  font-size: 0.75rem;
  margin-top: 6px;
}
.price-summary > strong {
  font-size: 1.85rem;
  font-weight: 500;
  letter-spacing: -0.04em;
  white-space: nowrap;
}
.price-note {
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--muted);
  margin: 11px 0 18px;
}
.primary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--accent);
  color: #fff;
  border-radius: 8px;
  min-height: 55px;
  padding: 16px 22px;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: background 0.15s;
}
.primary:hover {
  background: var(--accent-dark);
}
.add-button {
  width: 100%;
}
.add-button > span:last-child {
  font-size: 1.4rem;
}
.cart-hint {
  font-size: 0.75rem;
  text-align: center;
  margin-top: 13px;
  color: var(--muted);
  line-height: 1.5;
}
.story {
  padding: 35px 4px 10px;
  max-width: 590px;
}
.story h2 {
  margin: 14px 0 18px;
  font-size: 2.5rem;
}
.story p {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.8;
  max-width: 480px;
}
.faq {
  margin: 85px 0 70px;
  padding-top: 45px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 70px;
}
.faq h2 {
  font-size: 2.5rem;
  margin-top: 15px;
}
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
}
.faq details:first-child {
  padding-top: 0;
}
.faq summary {
  cursor: pointer;
  font-size: 0.9375rem;
  line-height: 1.6;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary:after {
  content: "+";
  font-size: 1.25rem;
}
.faq details[open] summary:after {
  content: "−";
}
.faq details p {
  margin-top: 15px;
  color: var(--muted);
  line-height: 1.8;
  font-size: 0.9375rem;
}
footer {
  background: #e8eade;
  padding: 40px 4.5%;
  display: flex;
  align-items: center;
  gap: 28px;
}
footer p {
  font-size: 0.875rem;
  color: #59634e;
}
footer > span {
  margin-left: auto;
  color: #59634e;
  font-size: 0.8125rem;
}
.editor {
  border: 1px solid #d4d8cb;
  background: #f1f2eb;
  padding: 25px;
  border-radius: 10px;
  scroll-margin-top: 20px;
}
.editor-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}
.editor h2 {
  font-size: 1.6rem;
  margin-top: 7px;
}
.text-button {
  font-size: 0.8125rem;
  text-decoration: underline;
  text-underline-offset: 4px;
  padding: 10px 0;
}
.editor-help {
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.65;
  margin: 18px 0;
}
.crop-surround {
  position: relative;
  padding: 27px 30px 16px 0;
  max-width: 560px;
  margin: auto;
}
.crop-stage {
  position: relative;
  aspect-ratio: 350/260;
  overflow: hidden;
  cursor: grab;
  touch-action: none;
  user-select: none;
  max-height: 510px;
  margin: auto;
  background: #deded2;
  border: 2px solid white;
  box-shadow: 0 3px 16px #0001;
}
.crop-stage:active {
  cursor: grabbing;
}
.crop-stage img {
  position: absolute;
  max-width: none;
  pointer-events: none;
}
.crop-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(
      to right,
      transparent 33.1%,
      #fff6 33.1%,
      #fff6 33.4%,
      transparent 33.4%,
      transparent 66.4%,
      #fff6 66.4%,
      #fff6 66.7%,
      transparent 66.7%
    ),
    linear-gradient(
      to bottom,
      transparent 33.1%,
      #fff6 33.1%,
      #fff6 33.4%,
      transparent 33.4%,
      transparent 66.4%,
      #fff6 66.4%,
      #fff6 66.7%,
      transparent 66.7%
    );
}
.width-marker {
  position: absolute;
  top: 0;
  left: 0;
  right: 30px;
  text-align: center;
  font-size: 0.75rem;
  color: var(--muted);
}
.height-marker {
  position: absolute;
  right: 0;
  top: 50%;
  writing-mode: vertical-rl;
  font-size: 0.75rem;
  color: var(--muted);
}
.zoom-control {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 0.8125rem;
  margin: 10px 0 16px;
}
.zoom-control input {
  min-width: 30px;
  flex: 1;
  accent-color: var(--accent);
}
.zoom-control output {
  width: 45px;
  white-space: nowrap;
}
.editor .small {
  font-size: 0.75rem;
}
dialog {
  border: 0;
  color: var(--ink);
  padding: 0;
}
dialog::backdrop {
  background: #1b241c66;
  backdrop-filter: blur(3px);
}
body:has(dialog[open]) {
  overflow: hidden;
}
.cart-dialog {
  margin: 0 0 0 auto;
  width: 510px;
  max-width: 100%;
  height: 100dvh;
  max-height: 100dvh;
  background: var(--paper);
  padding: 30px;
  box-shadow: -10px 0 50px #0001;
}
.drawer-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}
.drawer-heading h2 {
  font-size: 2rem;
  margin-top: 6px;
}
.cart-item {
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 16px;
}
.cart-crop {
  width: 100px;
  overflow: hidden;
  position: relative;
  background: #eee;
  align-self: start;
}
.cart-crop img {
  position: absolute;
  max-width: none;
}
.cart-item h3 {
  font-size: 0.9375rem;
  margin: 0 0 7px;
  font-weight: 500;
}
.cart-item p {
  font-size: 0.8125rem;
  line-height: 1.7;
  color: var(--muted);
}
.item-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 13px;
}
.item-actions button {
  font-size: 0.75rem;
  padding: 5px 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.quantity {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  justify-content: space-between;
}
.quantity-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 0.8125rem;
}
.quantity-controls button {
  width: 27px;
  height: 29px;
}
.item-price {
  font-size: 0.9375rem;
  font-weight: 500;
}
.cart-total {
  display: flex;
  justify-content: space-between;
  font-size: 1.25rem;
  margin: 25px 0 12px;
}
.cart-total strong {
  font-weight: 500;
}
.cart-footer-note {
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 20px;
}
.continue {
  width: 100%;
  justify-content: center;
}
.empty-cart {
  text-align: center;
  padding: 65px 15px;
}
.empty-cart h3 {
  font-size: 1.4rem;
  font-weight: 500;
}
.empty-cart p {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--muted);
  margin: 15px 0 25px;
}
.image-dialog {
  max-width: 94vw;
  max-height: 94dvh;
  background: transparent;
  overflow: visible;
}
.image-dialog > img {
  max-height: 90dvh;
  object-fit: contain;
  border-radius: 5px;
}
.image-dialog > button {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
}
.toast {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  padding: 14px 23px;
  background: var(--ink);
  color: #fff;
  border-radius: 8px;
  z-index: 30;
  max-width: 90vw;
  font-size: 0.875rem;
  box-shadow: 0 5px 30px #0002;
}
[hidden] {
  display: none !important;
}
@media (min-width: 1550px) {
  .gallery {
    height: 740px;
  }
}
@media (max-width: 1100px) {
  .header {
    padding: 22px 4%;
  }
  nav {
    gap: 18px;
  }
  .product-layout {
    gap: 4%;
    grid-template-columns: minmax(0, 1.15fr) minmax(350px, 1fr);
  }
  .gallery {
    height: 560px;
  }
  .gallery-bottom > p {
    display: none;
  }
  .configuration h1 {
    font-size: 2.8rem;
  }
  .material {
    gap: 8px;
    padding: 13px 10px;
  }
  .material strong {
    font-size: 0.8125rem;
  }
  .brand {
    font-size: 1.8rem;
  }
  .cart-label {
    display: none;
  }
}
@media (max-width: 800px) {
  .header {
    min-height: 76px;
    padding: 17px 6%;
  }
  .brand {
    font-size: 1.75rem;
  }
  .header nav {
    display: none;
  }
  .build-note {
    font-size: 0.75rem;
    padding: 8px 5%;
  }
  main {
    padding: 0 6%;
  }
  .breadcrumb {
    font-size: 0.75rem;
    padding: 20px 0;
    gap: 8px;
    flex-wrap: wrap;
  }
  .product-layout {
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  .visual-column {
    display: contents;
  }
  .gallery {
    width: calc(100% + 13.64%);
    margin: 0 -6.82%;
    height: 440px;
    max-height: 100vw;
    border-radius: 0;
    order: 0;
  }
  .gallery-bottom {
    order: 1;
    width: 100%;
    margin: 15px 0 26px;
  }
  .gallery-bottom > p {
    display: block;
    font-size: 0.75rem;
  }
  .configuration {
    order: 2;
    width: 100%;
  }
  .configuration h1 {
    font-size: 2.8rem;
    margin: 13px 0;
    line-height: 1.03;
  }
  .configuration h1 br {
    display: none;
  }
  .from-price {
    margin: 17px 0 24px;
  }
  .product-intro .eyebrow {
    font-size: 0.6875rem;
  }
  .material strong {
    font-size: 0.9375rem;
  }
  .material {
    padding: 16px 14px;
  }
  .material-price {
    font-size: 0.9375rem;
  }
  .price-summary > strong {
    font-size: 2rem;
  }
  .editor {
    order: 3;
    margin-top: 28px;
    width: 100%;
    padding: 20px 15px;
  }
  .editor-heading {
    gap: 10px;
  }
  .editor h2 {
    font-size: 1.4rem;
  }
  .zoom-control {
    gap: 8px;
    font-size: 0.75rem;
  }
  .story {
    order: 4;
    padding-top: 40px;
  }
  .story h2 {
    font-size: 2rem;
  }
  .story p {
    font-size: 0.9375rem;
  }
  .faq {
    margin: 45px 0;
    display: block;
    padding-top: 30px;
  }
  .faq h2 {
    font-size: 2rem;
    margin-bottom: 28px;
  }
  .faq h2 br {
    display: none;
  }
  .faq summary {
    font-size: 0.9375rem;
  }
  footer {
    padding: 30px 6%;
    flex-wrap: wrap;
    gap: 13px;
  }
  footer .brand {
    width: 100%;
  }
  footer p,
  footer > span {
    font-size: 0.75rem;
  }
  .cart-dialog {
    padding: 24px 20px;
  }
  .cart-item {
    grid-template-columns: 85px 1fr;
    gap: 12px;
  }
  .cart-crop {
    width: 85px;
  }
  .image-label {
    left: 18px;
    top: 18px;
    font-size: 0.625rem;
  }
  .crop-stage {
    max-height: 440px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

/* Show the entire ordered rectangle, without a second thumbnail crop. */
.selected-crop-preview{display:block;max-width:100%;background:#eee;align-self:start}
.crop-button .selected-crop-preview{width:42px;height:36px;flex-shrink:0}
.wall-configurator .configuration .crop-button .selected-crop-preview{width:94px;height:94px}
.cart-crop .selected-crop-preview{width:100%;height:120px}
.bag-item .selected-crop-preview{width:100px;height:120px;border-radius:7px}
.checkout-item .selected-crop-preview{width:60px;height:72px;border:1px solid #ddd;border-radius:5px}
@media(max-width:700px){.bag-item .selected-crop-preview{width:70px;height:90px}.clean-checkout .checkout-item .selected-crop-preview{width:48px;height:60px}}
@media(max-width:360px){.wall-configurator .configuration .crop-button .selected-crop-preview{width:76px;height:90px}}
