/* Functional catalog, product and comparison within the approved warm palette. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.product-name.product-open {
  display: block;
}
.outline-action {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 12px 20px;
  border: 1px solid #b8ad97;
  border-radius: 26px;
  color: #3b4037;
  background: transparent;
  font-size: 13px;
  line-height: 1.4;
  transition:
    background 0.18s,
    border-color 0.18s;
}
.outline-action:hover {
  background: #e3d9c7;
  border-color: #8f8168;
}
.outline-action[aria-pressed="true"] {
  background: #ded4c2;
  border-color: #8f8168;
}
body
  :is(.catalog-layout, .door-page, .compare-page, .measure-form)
  :is(a, button, input, select, textarea):focus-visible {
  outline: 2px solid #8d7a58;
  outline-offset: 3px;
}
.catalog-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 38px;
  margin-top: 28px;
  align-items: start;
}
.catalog-results {
  min-width: 0;
}
.catalog-layout .catalog-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 38px 22px;
  margin: 0;
  scroll-margin-top: 115px;
}
.catalog-layout .product-name {
  font-size: 14px;
  line-height: 1.45;
  min-height: 42px;
}
.catalog-layout .product-price strong {
  font-size: 22px;
}
.catalog-layout .product-kind {
  font-size: 10px;
  min-height: 34px;
}
#filter-sidebar {
  border-top: 1px solid #bfb39e;
  position: sticky;
  top: 108px;
  max-height: calc(100dvh - 125px);
  overflow: auto;
  scrollbar-width: thin;
  padding-right: 8px;
}
.filters-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 23px 0 17px;
}
.filters-heading h2 {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.3px;
}
#filter-form fieldset {
  min-width: 0;
  border: 0;
  padding: 17px 0;
  margin: 0;
  border-bottom: 1px solid #d9cfbd;
}
#filter-form legend {
  padding: 0;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 10px;
}
#filter-form select {
  width: 100%;
  min-height: 43px;
  border: 1px solid #cdbfa5;
  border-radius: 22px;
  background: #f7f1e5;
  padding: 10px 25px 10px 12px;
  color: #414337;
  font: inherit;
  font-size: 12px;
}
.price-fields {
  display: flex;
  gap: 8px;
}
.price-fields label {
  flex: 1;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid #cabca1;
  border-radius: 7px;
  background: #f6f0e5;
}
.price-fields span {
  display: block;
  font-size: 10px;
  color: #81735c;
  margin-bottom: 4px;
}
.price-fields input {
  width: 100%;
  min-width: 0;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-size: 13px;
  color: #383c32;
  -moz-appearance: textfield;
}
.price-fields input::-webkit-inner-spin-button {
  appearance: none;
}
.filter-price-apply {
  padding: 12px 0 0;
  font-size: 11px;
  color: #6a5b42;
}
#price-error {
  font-size: 11px;
  line-height: 1.5;
  color: #8b4e32;
  margin-top: 6px;
}
.check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  line-height: 1.45;
  padding: 7px 0;
  cursor: pointer;
}
.check-row input {
  appearance: auto;
  accent-color: #5b5d49;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin: 0;
}
.filter-group {
  padding: 18px 0;
  border-bottom: 1px solid #d9cfbd;
}
.filter-group summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  padding-bottom: 8px;
}
.filter-group summary::-webkit-details-marker {
  display: none;
}
.filter-group:not([open]) summary span {
  font-size: 0;
}
.filter-group:not([open]) summary span:after {
  content: "+";
  font-size: 16px;
}
.reset-filters {
  color: #73654d;
  font-size: 12px;
  padding: 16px 0;
  text-decoration: underline;
  text-underline-offset: 5px;
}
.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.active-filters button {
  border: 1px solid #cfc3ad;
  border-radius: 20px;
  padding: 8px 12px;
  font-size: 11px;
  text-align: left;
  color: #5a5547;
  display: flex;
  align-items: center;
  gap: 9px;
}
.active-filters .clear-all {
  border-color: transparent;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.active-filters button:hover {
  background: #e1d7c5;
}
.filter-mobile-bar,
.filter-close,
.filter-done {
  display: none;
}
#catalog-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 48px;
}
#catalog-pagination a {
  width: 42px;
  height: 42px;
  border: 1px solid #cbbfa8;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 13px;
}
#catalog-pagination [aria-current] {
  background: #393c36;
  color: #fffdf7;
  border-color: #393c36;
}
.catalog-results .empty-catalog {
  grid-column: 1/-1;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 22px;
  padding: 45px;
  background: #e5dbc9;
  border: 1px solid #d8cbb3;
  border-radius: 10px;
}
.catalog-results .empty-catalog h2 {
  font-size: 28px;
  font-weight: 450;
  letter-spacing: -0.8px;
}
.catalog-results .empty-catalog p {
  font-size: 14px;
  line-height: 1.7;
  max-width: 430px;
  color: #726a5a;
}
.compare-count {
  position: absolute;
  right: 0;
  top: 0;
  background: #66664e;
  color: #fffdf6;
  border-radius: 50%;
  min-width: 15px;
  height: 15px;
  font-size: 9px;
  display: grid;
  place-items: center;
}
.product-page,
.compare-page {
  padding-top: 35px;
  padding-bottom: 85px;
  min-height: 70vh;
}
.breadcrumbs {
  flex-wrap: wrap;
  line-height: 1.7;
}
.door-page {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  gap: 45px 70px;
}
.door-gallery {
  min-width: 0;
}
.door-photo {
  width: 100%;
  padding: 0;
  background: #e2dacd;
  display: flex;
  justify-content: center;
  cursor: zoom-in;
  border-radius: 9px;
  overflow: hidden;
}
.door-gallery #detail-photo {
  width: 100%;
  height: 640px;
  object-fit: contain;
  display: block;
}
.door-gallery .detail-thumbs {
  margin-top: 16px;
  gap: 12px;
}
.door-gallery .detail-thumbs button {
  width: 64px;
  height: 86px;
  overflow: hidden;
  border-radius: 4px;
}
.gallery-hint {
  margin-top: 15px;
  font-size: 11px;
  color: #817863;
}
.door-summary {
  padding-top: 5px;
  min-width: 0;
}
.door-summary .product-kind {
  font-size: 12px;
  min-height: 0;
  margin-bottom: 18px;
  color: #80745c;
}
.door-summary h1 {
  font-size: clamp(28px, 3vw, 43px);
  font-weight: 500;
  line-height: 1.13;
  letter-spacing: -1.4px;
  margin-bottom: 19px;
  overflow-wrap: break-word;
}
.door-stock {
  font-size: 12px;
  color: #5b614c;
  display: flex;
  gap: 7px;
  align-items: center;
}
.door-stock:before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}
.door-summary .detail-price {
  margin-top: 30px;
  font-size: 38px;
  font-weight: 450;
  letter-spacing: -1px;
}
.price-includes {
  font-size: 12px;
  line-height: 1.8;
  color: #686353;
  margin-top: 12px;
}
.door-summary .catalog-notice {
  font-size: 10px;
  line-height: 1.6;
  color: #887c65;
  margin: 12px 0 25px;
}
.door-summary .buy-panel {
  margin-top: 24px;
}
.door-summary .buy-panel .add-to-cart {
  width: 100%;
  display: flex;
  justify-content: space-between;
}
.door-actions {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 12px;
  margin-top: 4px;
}
.door-actions .outline-action {
  padding: 11px;
  font-size: 12px;
}
#compare-feedback,
.product-load-status {
  font-size: 12px;
  line-height: 1.6;
  color: #70634c;
  margin-top: 12px;
}
#compare-feedback a {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.sizing-link {
  padding: 0;
  border-bottom: 1px solid #b9a88a;
  font-size: 12px;
  margin-top: 16px;
  padding-bottom: 6px;
  color: #6a604c;
}
.sizing-link span {
  margin-left: 15px;
}
.door-service {
  display: grid;
  gap: 16px;
  border-top: 1px solid #d6cbb8;
  padding-top: 24px;
  margin-top: 25px;
}
.door-service strong {
  display: block;
  font-size: 12px;
  font-weight: 500;
}
.door-service span {
  display: block;
  font-size: 11px;
  color: #7b715f;
  line-height: 1.7;
  margin-top: 4px;
}
.door-page .product-specs {
  padding-top: 36px;
  margin-top: 20px;
}
.door-page .specs-heading h2 {
  font-size: 29px;
  font-weight: 500;
  letter-spacing: -0.7px;
}
.door-page .product-specs dl {
  background: #fffaf0;
}
.zoom-image {
  display: block;
  margin: 25px auto 0;
  max-height: 72dvh;
  object-fit: contain;
}
button:disabled {
  cursor: default;
}
.door-page button:disabled,
.door-page select:disabled {
  opacity: 0.55;
}
.compare-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 25px;
  margin-bottom: 35px;
}
.compare-heading h1 {
  font-size: 44px;
  letter-spacing: -1.3px;
  font-weight: 450;
  margin-top: 14px;
}
.compare-heading .section-eyebrow {
  font-size: 12px;
  color: #89795c;
}
.compare-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.compare-toolbar .check-row {
  font-size: 13px;
}
.compare-note {
  font-size: 11px;
  color: #81755e;
  line-height: 1.6;
  margin: 10px 0 20px;
}
.compare-scroll {
  max-width: 100%;
  overflow: auto;
  border: 1px solid #d2c4aa;
  border-radius: 8px;
  scrollbar-color: #a29479 #eee6d7;
}
.compare-table {
  border-collapse: separate;
  border-spacing: 0;
  min-width: 100%;
  table-layout: fixed;
  font-size: 13px;
  line-height: 1.7;
  background: #f8f2e7;
}
.compare-table caption {
  position: absolute;
}
.compare-table th,
.compare-table td {
  padding: 18px 20px;
  text-align: left;
  border-right: 1px solid #d9ceba;
  border-bottom: 1px solid #d9ceba;
  vertical-align: top;
  min-width: 240px;
  max-width: 300px;
  overflow-wrap: break-word;
  font-weight: 400;
}
.compare-table tr > :first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  min-width: 180px;
  width: 180px;
  background: #e7ddca;
  color: #6c624e;
  font-size: 12px;
}
.compare-table thead th {
  padding: 22px 20px;
  vertical-align: bottom;
}
.compare-table thead a {
  display: block;
  font-size: 15px;
  font-weight: 450;
  line-height: 1.4;
}
.compare-table thead img {
  width: 100%;
  height: 220px;
  object-fit: contain;
  display: block;
  margin-bottom: 20px;
}
.compare-table thead button {
  color: #8b785b;
  font-size: 11px;
  padding: 14px 0 0;
}
.compare-table .is-different td {
  background: #f2e9d8;
}
.compare-table tr > :last-child {
  border-right: 0;
}
.compare-table tbody tr:last-child > * {
  border-bottom: 0;
}
.comparison-empty {
  padding: 75px 50px;
  background: #e4dac7;
  border-radius: 9px;
}
.comparison-empty h2 {
  font-size: 30px;
  font-weight: 450;
  letter-spacing: -0.6px;
}
.comparison-empty p {
  margin: 20px 0 28px;
  line-height: 1.7;
  color: #756b58;
  max-width: 550px;
}
.measure-form {
  margin-top: 25px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.measure-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #6c624e;
  font-size: 12px;
}
.measure-form label:nth-child(3),
.measure-form label:nth-child(5),
.measure-form .catalog-notice,
.measure-form > button {
  grid-column: 1/-1;
}
.measure-form :is(input, select, textarea) {
  width: 100%;
  min-width: 0;
  border: 1px solid #c9bda5;
  border-radius: 7px;
  background: #f9f3e9;
  padding: 12px;
  color: #3e4137;
  font: inherit;
  font-size: 14px;
}
.measure-form textarea {
  resize: vertical;
}
.measure-form > button:disabled {
  opacity: 0.45;
}
@media (min-width: 1600px) {
  .catalog-layout .catalog-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 1100px) {
  .catalog-layout {
    grid-template-columns: 195px minmax(0, 1fr);
    gap: 25px;
  }
  .catalog-layout .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .door-page {
    gap: 35px;
  }
  .door-gallery #detail-photo {
    height: 540px;
  }
  .door-actions {
    grid-template-columns: 1fr;
  }
  .door-summary h1 {
    font-size: 32px;
  }
}
@media (max-width: 900px) {
  #filter-sidebar {
    display: none;
  }
  .catalog-layout {
    display: block;
    margin-top: 22px;
  }
  .catalog-layout .catalog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .filter-mobile-bar {
    display: block;
    margin: 20px 0;
  }
  .filter-close,
  .filter-done {
    display: block;
  }
  .filter-close {
    font-size: 28px;
    padding: 0 5px;
  }
  .filter-done {
    width: 100%;
    padding: 15px;
    background: #393c36;
    color: #fffdf7;
    border-radius: 25px;
    margin-top: 15px;
    font-size: 13px;
    position: sticky;
    bottom: 0;
  }
  #filter-dialog {
    width: min(430px, calc(100% - 24px));
    max-height: 90dvh;
    background: #eee6d7;
    padding: 8px 24px 24px;
    border-radius: 13px;
    overflow: auto;
  }
  #filter-dialog .filters-heading {
    padding-top: 14px;
  }
  #filter-dialog::backdrop {
    background: #24251d77;
    backdrop-filter: blur(5px);
  }
  .door-page {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
  .door-gallery #detail-photo {
    height: 470px;
  }
  .door-summary .detail-price {
    font-size: 32px;
  }
  .door-summary h1 {
    font-size: 28px;
  }
  .compare-heading h1 {
    font-size: 36px;
  }
}
@media (max-width: 650px) {
  .catalog-layout .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px 14px;
  }
  .catalog-layout .product-name {
    font-size: 12px;
    min-height: 52px;
  }
  .catalog-layout .product-price strong {
    font-size: 19px;
  }
  .catalog-layout .product-kind {
    font-size: 9px;
    min-height: 43px;
  }
  .catalog-results .empty-catalog {
    padding: 26px;
    min-height: 300px;
  }
  .catalog-results .empty-catalog h2 {
    font-size: 24px;
  }
  .door-page {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .product-page,
  .compare-page {
    padding-top: 25px;
    padding-bottom: 50px;
  }
  .product-page .breadcrumbs {
    font-size: 10px;
    gap: 8px;
    margin-bottom: 25px;
  }
  .door-gallery #detail-photo {
    height: auto;
    max-height: 580px;
  }
  .door-summary .product-kind {
    margin-bottom: 12px;
  }
  .door-summary h1 {
    font-size: 32px;
    letter-spacing: -1px;
  }
  .door-actions {
    grid-template-columns: 1fr 1.2fr;
    gap: 8px;
  }
  .door-actions .outline-action {
    font-size: 11px;
    padding: 11px 7px;
  }
  .door-page .product-specs {
    margin-top: 0;
  }
  .door-page .specs-heading h2 {
    font-size: 26px;
  }
  .door-service {
    gap: 16px;
  }
  .door-gallery .detail-thumbs button {
    width: 56px;
    height: 74px;
  }
  .compare-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
  }
  .compare-heading h1 {
    font-size: 32px;
  }
  .compare-heading .outline-action {
    font-size: 12px;
  }
  .compare-toolbar {
    align-items: flex-start;
    gap: 10px;
  }
  .compare-toolbar .check-row {
    font-size: 12px;
  }
  .compare-toolbar .reset-filters {
    padding-top: 7px;
    font-size: 11px;
  }
  .compare-table th,
  .compare-table td {
    min-width: 210px;
    max-width: 240px;
    padding: 15px;
    font-size: 12px;
  }
  .compare-table tr > :first-child {
    min-width: 110px;
    width: 110px;
    font-size: 10px;
    padding: 14px 10px;
  }
  .compare-table thead img {
    height: 180px;
  }
  .compare-table thead a {
    font-size: 13px;
  }
  .comparison-empty {
    padding: 35px 25px;
  }
  .comparison-empty h2 {
    font-size: 26px;
  }
  .measure-form {
    grid-template-columns: 1fr;
  }
  .measure-form > * {
    grid-column: 1 !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  .outline-action {
    transition: none;
  }
}

[data-dialog="compare"] {
  position: relative;
}
