/* Requested catalog and measurement previews; approved comparison remains unchanged. */
.choice-preview {
  margin: 18px 0 24px;
  color: #625b4d;
  font-size: 12px;
}
.choice-preview summary {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  cursor: pointer;
  list-style: none;
  padding: 10px 0;
  border-bottom: 1px solid #c9bea9;
}
.choice-preview summary::-webkit-details-marker {
  display: none;
}
.choice-preview[open] summary span {
  transform: rotate(45deg);
}
.choice-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.choice-options button {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
  border: 1px solid #c9bea9;
  border-radius: 22px;
  background: transparent;
  color: #4c4b40;
  font: inherit;
  min-height: 40px;
  transition:
    background 0.2s,
    border-color 0.2s;
}
.choice-options button span {
  font-size: 10px;
  opacity: 0.65;
}
.choice-options button:hover {
  background: #e2d8c6;
}
.choice-options button[aria-pressed="true"] {
  background: #ded2bb;
  border-color: #8d8067;
  color: #30382f;
}
.choice-options button:focus-visible,
.choice-preview summary:focus-visible {
  outline: 2px solid #887352;
  outline-offset: 3px;
}
#sizing-preview .choice-preview {
  margin: 18px 0 20px;
}
/* Leave room for focus rings inside the scroll container. */
#filter-sidebar {
  padding: 5px 12px 8px 6px;
  margin-left: -6px;
  scrollbar-color: #b6aa94 transparent;
  scrollbar-gutter: stable;
}
#filter-form {
  --field: #f5efe3;
  --line: #cbbda4;
  --selected: #ddd0b8;
  --ink: #41463b;
}
#filter-form select {
  background-color: var(--field);
  border-color: var(--line);
  min-height: 46px;
  padding-left: 15px;
  border-radius: 24px;
}
#filter-form .price-fields label {
  background: var(--field);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 11px 13px;
  transition:
    background 0.2s,
    border-color 0.2s;
}
#filter-form .price-fields label:focus-within {
  border-color: #8d7a58;
  box-shadow: 0 0 0 2px #8d7a5822;
}
body :is(.catalog-layout, #filter-dialog) .price-fields input:focus-visible {
  outline: none;
}
#filter-form .price-fields input {
  font-size: 13px;
  min-height: 22px;
}
#filter-form .check-row {
  gap: 11px;
  min-height: 40px;
  padding: 8px 3px;
  border-radius: 16px;
  color: var(--ink);
  transition: background 0.18s;
}
#filter-form .check-row:hover {
  background: #e5dccb;
}
#filter-form .check-row input {
  appearance: none;
  -webkit-appearance: none;
  display: grid;
  place-content: center;
  width: 20px;
  height: 20px;
  border: 1px solid #afa187;
  border-radius: 7px;
  background: var(--field);
  transition:
    background 0.18s,
    border-color 0.18s;
  cursor: pointer;
}
#filter-form .check-row input:checked {
  background: #555b49;
  border-color: #555b49;
}
#filter-form .check-row input:checked:after {
  content: "";
  width: 8px;
  height: 4px;
  border-left: 2px solid #fffaf0;
  border-bottom: 2px solid #fffaf0;
  transform: translateY(-1px) rotate(-45deg);
}
body :is(.catalog-layout, #filter-dialog) .check-row input:focus-visible {
  outline: 2px solid #8d7a58;
  outline-offset: 2px;
}
#price-error:empty {
  display: none;
}
#price-error {
  margin: 8px 3px 0;
}
[data-filter-look="2"] #filter-form {
  --field: transparent;
  --line: #a99b81;
}
[data-filter-look="2"] #filter-form .check-row input {
  border-radius: 50%;
}
[data-filter-look="3"] #filter-form {
  --field: #e3d9c8;
  --line: transparent;
}
[data-filter-look="3"] #filter-form :is(select, .price-fields label) {
  box-shadow: inset 0 1px 3px #86765322;
}
[data-filter-look="3"] #filter-form .check-row input {
  border-radius: 50%;
  box-shadow: inset 0 1px 3px #86765322;
}
[data-filter-look="4"] #filter-form {
  padding: 16px;
  background: #e4dac9;
  border-radius: 26px;
  --field: #f7f1e7;
  --line: transparent;
}
[data-filter-look="4"] #filter-form .filters-heading {
  padding-top: 4px;
}
[data-filter-look="4"] #filter-form .check-row input {
  border-radius: 50%;
}
[data-filter-look="5"] #filter-form :is(fieldset, .filter-group) {
  background: #e5dccc;
  border: 0;
  border-radius: 22px;
  padding: 18px 12px;
  margin: 0 0 14px;
}
[data-filter-look="5"] #filter-form fieldset legend {
  float: left;
  width: 100%;
  margin-bottom: 12px;
}
[data-filter-look="5"] #filter-form fieldset:after {
  content: "";
  display: block;
  clear: both;
}
[data-filter-look="6"] #filter-form .check-row {
  padding: 9px 10px;
  margin-bottom: 4px;
  background: #e8e0d1;
}
[data-filter-look="6"] #filter-form .check-row:has(:checked) {
  background: #d7c9b0;
}
[data-filter-look="6"] #filter-form .check-row input {
  border-radius: 50%;
}
[data-filter-look="7"] #filter-form .check-row {
  padding: 9px 12px;
  border: 1px solid #c6b89d;
  margin-bottom: 7px;
  border-radius: 24px;
}
[data-filter-look="7"] #filter-form .check-row:has(:checked) {
  background: #ddd0b8;
  border-color: #8a7e66;
}
[data-filter-look="7"] #filter-form .check-row input {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: transparent;
}
[data-filter-look="7"] #filter-form .check-row input:checked {
  background: #555b49;
}
[data-filter-look="8"] #filter-form :is(select, .price-fields label) {
  border-width: 0 0 1px;
  border-radius: 0;
  background: transparent;
  padding-left: 4px;
}
[data-filter-look="8"] #filter-form .check-row input {
  border-radius: 50%;
  background: transparent;
}
[data-filter-look="8"] #filter-form .check-row input:checked {
  background: #555b49;
}
[data-filter-look="9"] #filter-form .check-row input {
  width: 32px;
  height: 20px;
  border-radius: 20px;
  display: block;
  position: relative;
  background: #d8cebc;
  border-color: #b9ab90;
}
[data-filter-look="9"] #filter-form .check-row input:after {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 50%;
  background: #fff9ef;
  transform: none;
  transition: transform 0.2s;
}
[data-filter-look="9"] #filter-form .check-row input:checked {
  background: #555b49;
  border-color: #555b49;
}
[data-filter-look="9"] #filter-form .check-row input:checked:after {
  transform: translateX(12px);
}
[data-filter-look="10"] #filter-form :is(fieldset, .filter-group) {
  padding-top: 12px;
  padding-bottom: 12px;
}
[data-filter-look="10"] #filter-form .check-row {
  padding: 6px 3px;
  min-height: 34px;
}
[data-filter-look="10"] #filter-form .check-row input {
  border-radius: 50%;
  width: 17px;
  height: 17px;
}
[data-filter-look="10"] #filter-form .price-fields label {
  border-radius: 16px;
  padding: 8px 12px;
}
/* Product gallery: independent controls do not intercept zoom or thumbnail focus. */
.gallery-stage {
  position: relative;
  min-width: 0;
}
.gallery-stage .door-photo {
  position: relative;
  width: 100%;
  overflow: hidden;
}
.gallery-arrow {
  display: inline-grid;
  place-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border: 1px solid #bfb198;
  border-radius: 50%;
  background: #f4eee2ed;
  color: #3c4237;
  font-size: 22px;
  line-height: 1;
  transition:
    background 0.2s,
    transform 0.2s;
  cursor: pointer;
}
.gallery-arrow:hover {
  background: #dfd2bb;
  transform: translateY(-1px);
}
.gallery-arrow:disabled {
  opacity: 0.35;
  cursor: default;
  transform: none;
}
.gallery-stage > .gallery-arrow {
  position: absolute;
  top: 50%;
  z-index: 1;
  margin-top: -22px;
  box-shadow: 0 2px 12px #40321d16;
}
.gallery-stage > .prev {
  left: 14px;
}
.gallery-stage > .next {
  right: 14px;
}
.gallery-arrow[hidden] {
  display: none;
}
/* Measurement help remains next to the underlined variant selector in all ten choices. */
.size-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.size-heading label {
  margin: 0 !important;
}
#sizing-help {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 15px;
  border: 1px solid #b4a487;
  border-radius: 24px;
  background: #e5d8c1;
  color: #414536;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  cursor: pointer;
  transition:
    background 0.2s,
    border-color 0.2s;
}
#sizing-help:hover {
  background: #d8c8ac;
  border-color: #8a7859;
}
#sizing-help svg {
  display: block;
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  flex-shrink: 0;
}
#sizing-help small {
  display: none;
  font-size: 11px;
  font-weight: 400;
  margin-top: 3px;
}
#sizing-help .sizing-arrow {
  margin-left: 3px;
  font-size: 17px;
}
[data-sizing-look="2"] #sizing-help {
  width: 100%;
  background: transparent;
}
[data-sizing-look="3"] #sizing-help {
  width: 100%;
  justify-content: flex-start;
  border: 0;
  border-radius: 16px;
  background: #e5d8c1;
}
[data-sizing-look="3"] #sizing-help .sizing-arrow {
  margin-left: auto;
}
[data-sizing-look="4"] #sizing-help {
  width: 100%;
  justify-content: flex-start;
  border-radius: 18px;
  background: #f6efe3;
  padding: 14px 16px;
}
[data-sizing-look="4"] #sizing-help small {
  display: block;
}
[data-sizing-look="4"] #sizing-help .sizing-arrow {
  margin-left: auto;
}
[data-sizing-look="5"] #sizing-help {
  padding: 2px 10px 2px 2px;
  border: 0;
  background: transparent;
}
[data-sizing-look="5"] #sizing-help svg {
  box-sizing: content-box;
  padding: 11px;
  border-radius: 50%;
  background: #dfd1b9;
}
[data-sizing-look="6"] #sizing-help {
  border-radius: 16px 16px 4px 4px;
  background: #e0d4bf;
  border-width: 0 0 2px;
  border-bottom-color: #a18e6b;
}
[data-sizing-look="7"] #sizing-help {
  width: 100%;
  justify-content: flex-start;
  border: 0;
  border-left: 3px solid #a18e6b;
  border-radius: 0 16px 16px 0;
  background: #e8decc;
}
[data-sizing-look="8"] #sizing-help {
  width: 100%;
  justify-content: flex-start;
  border: 0;
  background: transparent;
  padding-left: 0;
}
[data-sizing-look="8"] #sizing-help small {
  display: block;
}
[data-sizing-look="8"] #sizing-help svg {
  width: 32px;
  height: 32px;
}
[data-sizing-look="9"] #sizing-help {
  background: #55594b;
  border-color: #55594b;
  color: #fffaf0;
}
[data-sizing-look="9"] #sizing-help:hover {
  background: #42483c;
}
[data-sizing-look="10"] #sizing-help {
  border-width: 0 0 1px;
  border-radius: 0;
  background: transparent;
  padding: 8px 0;
  color: #5a4f39;
}
.related-products {
  border-top: 1px solid #c9bda6;
  margin: 64px 0 80px;
  padding-top: 44px;
  min-width: 0;
}
.related-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}
.related-heading h2 {
  font:
    500 clamp(26px, 3vw, 40px) / 1.15 Rubik,
    sans-serif;
  letter-spacing: -1px;
  margin: 12px 0 0;
}
.related-arrows {
  display: flex;
  gap: 10px;
}
.related-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 80px) / 5);
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  position: relative;
  padding: 6px 0 12px;
}
.related-rail::-webkit-scrollbar {
  display: none;
}
.related-rail .product-card {
  min-width: 0;
  scroll-snap-align: start;
}
.related-rail .product-visual {
  aspect-ratio: 2/3;
}
.related-rail .product-name {
  font-size: 14px;
  line-height: 1.4;
  min-height: 40px;
}
.related-rail .product-kind {
  font-size: 10px;
  min-height: 28px;
  margin: 13px 0 8px;
}
.related-rail .product-price {
  margin-top: 15px;
}
.related-rail .product-price strong {
  font-size: 20px;
}
.related-rail .product-price span {
  font-size: 10px;
}
@media (max-width: 1100px) {
  .related-rail {
    grid-auto-columns: calc((100% - 60px) / 4);
  }
  .size-heading {
    align-items: flex-start;
    flex-direction: column;
  }
}
@media (max-width: 900px) {
  #filter-dialog {
    padding: 20px;
  }
  #filter-form {
    padding: 5px;
  }
  .related-rail {
    grid-auto-columns: calc((100% - 40px) / 3);
  }
}
@media (max-width: 600px) {
  .choice-options {
    gap: 6px;
  }
  .choice-options button {
    font-size: 11px;
    padding: 9px 11px;
  }
  .size-heading {
    gap: 10px;
  }
  .related-rail {
    grid-auto-columns: 65%;
    gap: 16px;
  }
  .related-heading {
    align-items: center;
  }
  .related-heading .section-eyebrow {
    font-size: 10px;
  }
  .related-arrows {
    gap: 6px;
  }
  .related-arrows .gallery-arrow {
    width: 38px;
    height: 38px;
  }
  .gallery-stage > .prev {
    left: 8px;
  }
  .gallery-stage > .next {
    right: 8px;
  }
  .related-products {
    margin: 40px 0 55px;
    padding-top: 30px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .choice-options button,
  #sizing-help,
  .gallery-arrow,
  #filter-form * {
    transition: none !important;
  }
}
/* Clear the floated group legend before its fields in the grouped preview. */
[data-filter-look="5"] #filter-form fieldset > legend + * { clear:both; }
[data-filter-look="5"] #filter-form fieldset > select { display:block; }
#dialog.sizing-dialog{width:min(900px,calc(100vw - 32px));max-width:900px;background:#faf6ee}
.sizing-guide{margin-top:26px;color:#393e35}
.sizing-guide section+section{border-top:1px solid #d9ccb5;margin-top:32px;padding-top:28px}
.sizing-guide h3{font-size:22px;font-weight:500;line-height:1.3;margin:0 0 16px}
.sizing-guide p,.sizing-guide li{font-size:15px;line-height:1.7}
.sizing-guide ol{padding-left:24px;margin:0 0 22px}
.sizing-guide li{padding-left:5px;margin-bottom:12px}
.sizing-guide figure{margin:18px 0 22px}
.sizing-guide img{display:block;width:100%;height:auto;border-radius:18px}
.sizing-guide figcaption{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:14px 8px 0;font-size:14px;line-height:1.5;text-align:center}
.sizing-guide figcaption strong{display:block;font-weight:500;color:#393e35}
.sizing-guide figcaption span{font-size:12px;color:#70634e}
.sizing-guide .sizing-note{padding:16px 20px;background:#e9decb;border-radius:16px;margin:18px 0;font-size:14px}
.sizing-guide .guide-measure{margin-top:24px}
@media(max-width:600px){#dialog.sizing-dialog{width:calc(100vw - 24px);padding:24px 18px}.sizing-guide h3{font-size:20px}.sizing-guide p,.sizing-guide li{font-size:14px}.sizing-guide figcaption{gap:8px;margin:12px 0;font-size:13px}.sizing-guide img{border-radius:12px}}
#dialog.sizing-dialog .dialog-kicker,
#dialog:has(.measure-form) .dialog-kicker { color:#74674f; }

/* The incoming frame shares the outgoing frame's exact responsive viewport. */
.gallery-stage .gallery-incoming {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}
.measure-form > button:not(:disabled) { background:#345845; color:#fff; }
.measure-form > button:not(:disabled):hover { background:#284735; }
.measure-form .form-feedback { grid-column:1/-1; margin:0; font-size:13px; line-height:1.6; color:#345845; }
.sizing-guide .guide-image { display:block; margin:0 0 24px; cursor:zoom-in; }
.sizing-guide .guide-image img { width:100%; height:auto; display:block; border-radius:16px; }
/* A complete guide fits the current viewport; the second guide is a tab, not another page length. */
#dialog.sizing-dialog {
  width:min(720px,calc(100vw - 24px));
  max-width:720px;
  height:min(880px,calc(100dvh - 24px));
  max-height:calc(100dvh - 24px);
  padding:24px;
  overflow:hidden;
}
#dialog.sizing-dialog #dialog-content { height:100%; min-height:0; display:flex; flex-direction:column; }
#dialog.sizing-dialog .dialog-title { flex:none; font-size:25px; margin:0; padding-right:30px; }
.sizing-guide.compact-guide { margin-top:16px; min-height:0; flex:1; display:flex; flex-direction:column; gap:12px; }
.guide-tabs { display:flex; justify-content:center; gap:6px; flex:none; }
.guide-tabs button { border:1px solid #cbbb9e; border-radius:24px; padding:10px 18px; font-size:13px; min-height:42px; }
.guide-tabs button[aria-selected=true] { background:#3c4237; color:#fff; border-color:#3c4237; }
.guide-viewport { flex:1; min-height:0; }
.guide-panel { height:100%; }
.guide-panel[hidden] { display:none; }
.compact-guide .guide-image { display:block; height:100%; width:100%; margin:0; }
.compact-guide .guide-image img { width:100%; height:100%; object-fit:contain; border-radius:0; }
.guide-footer { display:flex; align-items:center; justify-content:space-between; gap:10px; flex:none; }
.guide-footer > a { font-size:12px; color:#675a45; padding:10px 0; }
.guide-footer .guide-measure { width:auto; margin:0; padding:10px 16px; min-height:42px; font-size:12px; }
@media(max-width:600px) {
  #dialog.sizing-dialog { padding:18px 14px; }
  #dialog.sizing-dialog .dialog-title { font-size:22px; }
  .sizing-guide.compact-guide { margin-top:12px; gap:10px; }
  .guide-tabs button { padding:9px 14px; font-size:12px; }
  .guide-footer { gap:8px; }
  .guide-footer > a,.guide-footer .guide-measure { font-size:11px; }
  .guide-footer .guide-measure { padding:10px; }
}

/* Compact product captions: content determines height, including wrapped names. */
.product-card .product-info { padding:12px 0 8px; }
.product-card .product-info .product-kind { min-height:0; margin:0 0 5px; line-height:1.4; }
.product-card .product-info .product-name { min-height:0; margin:0; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.product-card .product-info .product-price { margin-top:8px; gap:3px; }
@media(max-width:600px) {
  .product-card .product-info { padding-top:10px; }
  .product-card .product-info .product-kind { margin-bottom:4px; }
  .product-card .product-info .product-price { margin-top:7px; }
}
