@charset "UTF-8";
.section.catalogue-section {
  padding-top: 28px;
}
.catalogue-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}
.catalogue-search {
  width: min(460px, 100%);
}
.catalogue-search label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
}
.catalogue-search input {
  width: 100%;
  border: 1px solid #acaea5;
  background: #fff;
  border-radius: 0;
  padding: 12px 14px;
  min-height: 46px;
}
.view-controls {
  display: flex;
  flex-shrink: 0;
}
.view-controls button,
.card-actions button,
.preview-actions button {
  padding: 11px 14px;
  min-height: 44px;
  border: 1px solid #9eaa9a;
  background: transparent;
  color: #252923;
  font-size: 12px;
}
.view-controls button[aria-pressed="true"],
button[data-compare][aria-pressed="true"] {
  background: #252923;
  color: #fff;
}
.filters {
  margin-bottom: 18px;
  gap: 6px;
}
.filters button {
  min-height: 44px;
}
.product-grid {
  gap: 20px 16px;
}
.product-card {
  min-width: 0;
  border: 1px solid #e0ded5;
  display: flex;
  flex-direction: column;
}
.product-card[hidden] {
  display: none;
}
.product-media {
  height: 200px;
  flex-shrink: 0;
}
.product-info {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.product-info h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 24px;
  margin: 8px 0;
  line-height: 1.2;
}
.product-info small {
  font-size: 10px;
}
.card-subtitle {
  font-size: 12px;
  margin: 0 0 14px;
  color: #565e52;
}
.card-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
}
.card-actions button {
  flex: 1;
  padding: 9px 6px;
}
.card-detail-link {
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 4px;
  margin-top: 14px;
  width: max-content;
}
.card-details {
  display: none;
  font-size: 13px;
}
.product-grid[data-view="detailed"] {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.product-grid[data-view="detailed"] .product-card {
  display: grid;
  grid-template-columns: 38% 1fr;
}
.product-grid[data-view="detailed"] .product-media {
  height: 100%;
  min-height: 320px;
}
.product-grid[data-view="detailed"] .card-details {
  display: block;
}
.compare-tray {
  position: fixed;
  z-index: 8;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1000px, calc(100% - 32px));
  background: #252923;
  color: #fff;
  box-shadow: 0 5px 32px #0004;
  border: 1px solid #697360;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.compare-tray[hidden] {
  display: none;
}
.compare-tray strong {
  font-size: 12px;
}
#compare-items {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
#compare-items button {
  background: transparent;
  color: #fff;
  border: 1px solid #88947c;
  font-size: 11px;
  padding: 8px;
  min-height: 36px;
}
.compare-tray-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.compare-tray-actions button {
  background: #e8d8b9;
  border: 1px solid #e8d8b9;
  padding: 12px 15px;
  min-height: 44px;
  color: #252923;
  font-size: 12px;
}
.compare-tray-actions #clear-comparison {
  background: transparent;
  color: #fff;
}
.compare-tray-actions button:disabled {
  background: #46513f;
  color: #eee;
  border-color: #77876b;
  cursor: default;
}
.has-comparison {
  padding-bottom: 140px;
}
.catalogue-feedback {
  position: fixed;
  bottom: 145px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9;
  margin: 0;
  background: #fff;
  color: #252923;
  box-shadow: 0 2px 12px #0002;
  padding: 10px 16px;
  max-width: 90%;
  width: max-content;
  font-size: 12px;
  pointer-events: none;
}
.catalogue-feedback:empty {
  display: none;
}
.dialog-open {
  overflow: hidden;
}
dialog {
  padding: 0;
  width: min(1040px, calc(100% - 32px));
  max-height: 90svh;
  border: 1px solid #c7c5b9;
  background: #f5f2eb;
  color: #252923;
  box-shadow: 0 15px 80px #0005;
}
dialog::backdrop {
  background: #10160ecc;
}
.dialog-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 24px;
  border-bottom: 1px solid #d8d7cf;
  background: #f5f2eb;
  position: sticky;
  top: 0;
  z-index: 2;
}
.dialog-bar > span {
  font-size: 10px;
  letter-spacing: 0.13em;
}
.dialog-bar h2 {
  font-size: 30px;
  margin: 0;
}
.dialog-bar button {
  border: 1px solid #a5aa9e;
  background: transparent;
  padding: 10px 12px;
  min-height: 44px;
  white-space: nowrap;
}
.preview-layout {
  display: grid;
  grid-template-columns: 45% 55%;
}
.preview-sample {
  min-height: 420px;
}
.preview-sample img {
  width: 100%;
  height: 100%;
  max-height: 650px;
  object-fit: cover;
}
.preview-copy {
  padding: 30px;
}
.preview-copy h2 {
  font-size: 40px;
  margin: 16px 0;
}
.preview-copy p {
  font-size: 14px;
}
.preview-copy dl div {
  gap: 20px;
}
.preview-copy dd {
  text-align: right;
}
.preview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.comparison-help {
  margin: 20px 24px;
  font-size: 13px;
  max-width: 720px;
}
.comparison-scroll {
  overflow: auto;
  margin: 0 24px;
}
.comparison-scroll table {
  border-collapse: collapse;
  width: 100%;
  font-size: 13px;
  table-layout: fixed;
  min-width: 660px;
}
.comparison-scroll th,
.comparison-scroll td {
  text-align: left;
  padding: 14px;
  vertical-align: top;
  border: 1px solid #d4d5ca;
  overflow-wrap: anywhere;
}
.comparison-scroll th:first-child {
  width: 125px;
  font-weight: 500;
}
.comparison-scroll thead th {
  font-size: 18px;
  font-family: Georgia, serif;
  font-weight: 400;
}
.comparison-scroll thead img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  margin-bottom: 14px;
}
.comparison-scroll tbody tr:nth-child(odd) {
  background: #eae8df;
}
.comparison-footer {
  padding: 24px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
@media (max-width: 1000px) {
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .product-grid[data-view="detailed"] .product-card {
    grid-template-columns: 1fr;
  }
  .product-grid[data-view="detailed"] .product-media {
    height: 180px;
    min-height: 0;
  }
}
@media (max-width: 750px) {
  .catalogue-toolbar {
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
  }
  .catalogue-search {
    width: 100%;
  }
  .view-controls button {
    flex: 1;
  }
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .product-media {
    height: 165px;
  }
  .product-info {
    padding: 12px;
  }
  .product-info h2 {
    font-size: 21px;
  }
  .card-actions {
    flex-direction: column;
    gap: 6px;
  }
  .product-grid[data-view="detailed"] {
    grid-template-columns: 1fr;
  }
  .product-grid[data-view="detailed"] .product-card {
    grid-template-columns: 32% 1fr;
  }
  .product-grid[data-view="detailed"] .product-media {
    height: 100%;
    min-height: 0;
  }
  .compare-tray {
    bottom: 8px;
    padding: 12px;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    width: calc(100% - 16px);
  }
  .compare-tray-actions button:first-child {
    flex: 1;
  }
  .catalogue-feedback {
    bottom: 195px;
  }
  .has-comparison {
    padding-bottom: 200px;
  }
  .preview-layout {
    grid-template-columns: 1fr;
  }
  .preview-sample {
    min-height: 0;
    height: 210px;
  }
  .preview-copy {
    padding: 22px;
  }
  .preview-copy h2 {
    font-size: 32px;
  }
  .dialog-bar {
    padding: 12px 16px;
  }
  .dialog-bar h2 {
    font-size: 24px;
  }
  .comparison-help {
    margin: 16px;
  }
  .comparison-scroll {
    margin: 0 16px;
  }
  .comparison-footer {
    padding: 16px;
  }
}
@media (max-width: 360px) {
  .product-info {
    padding: 10px;
  }
  .product-info h2 {
    font-size: 19px;
  }
  .product-media {
    height: 135px;
  }
  .card-subtitle {
    font-size: 11px;
  }
  .comparison-footer .button {
    gap: 10px;
  }
}
@media (max-width: 750px) {
  #finish-comparison {
    width: calc(100% - 16px);
  }
  .comparison-scroll {
    margin: 0 12px;
  }
  .comparison-scroll table {
    min-width: 580px;
  }
  .comparison-scroll th,
  .comparison-scroll td {
    padding: 10px;
  }
  .comparison-scroll th:first-child {
    width: 82px;
  }
  .comparison-scroll thead img {
    height: 140px;
  }
}
@media (max-width: 750px) {
  .catalogue-section .filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: thin;
  }
  .catalogue-section .filters button {
    flex-shrink: 0;
  }
}

@media (max-width: 750px) {
  #finish-comparison {
    max-width: calc(100% - 16px);
  }
  .comparison-scroll table {
    min-width: 610px;
  }
  .comparison-scroll table[data-count="2"] {
    min-width: 438px;
  }
  .comparison-scroll th:first-child {
    width: 94px;
    font-size: 12px;
    overflow-wrap: normal;
    position: sticky;
    left: 0;
    z-index: 1;
    background: #f5f2eb;
  }
  .comparison-scroll tbody tr:nth-child(odd) th:first-child {
    background: #eae8df;
  }
}
