/* Materials page — reference 04 */
.materials-head { padding: 30px 0 18px; }
.materials-head h1 { margin: 0 0 16px; font-size: clamp(32px, 3.6vw, 46px); font-weight: 700; letter-spacing: -.02em; color: #111; }
.materials-collection { display: flex; align-items: center; gap: 12px; font-size: 15px; margin-bottom: 10px; }
.materials-collection select { height: 42px; min-width: 220px; border: 1px solid #cfcfcf; background: #fff; padding: 0 14px; font-size: 14px; color: #111; }
.materials-compare { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 15px; color: #111; margin: 0; }
.materials-compare select { height: 36px; max-width: 380px; border: 1px solid #cfcfcf; background: #fff; padding: 0 10px; font-size: 13px; color: #111; }

.materials-layout { display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 38px; align-items: start; padding: 10px 0 26px; }
.materials-product img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; display: block; background: #f5f4f0; }
.materials-product .m-code { margin: 12px 0 2px; font-size: 13px; color: #111; }
.materials-product .m-name { margin: 0 0 8px; font-size: 16px; font-weight: 600; color: #111; }
.materials-product a { font-size: 13px; color: var(--accent, #e85a1a); }

.material-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.material-table th, .material-table td { border-bottom: 1px solid #e5e5e5; padding: 13px 12px; text-align: left; vertical-align: top; color: #111; }
.material-table thead th { border-bottom: 1px solid #111; vertical-align: bottom; padding: 0 12px 14px; }
.material-table tbody th { width: 132px; font-weight: 500; }
.mat-option { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: #666; }
.mat-name { margin-top: 2px; font-size: 18px; font-weight: 600; }
.mat-selected { margin-top: 2px; min-height: 15px; font-size: 12px; color: var(--accent, #e85a1a); }
.mat-swatch { width: 100%; aspect-ratio: 4 / 3; margin-bottom: 10px; background-color: #f5f4f0; background-repeat: no-repeat; background-size: 200% 200%; }
.material-table td.selected, .material-table th.selected { background: #fff6f0; }
.material-table thead th.selected { box-shadow: inset 0 0 0 1px var(--accent, #e85a1a); }
.material-table .mat-actions { padding-top: 14px; }
.choose-material { width: 100%; height: 44px; border: 1px solid #111; background: #fff; color: #111; font-size: 14px; cursor: pointer; }
.choose-material.is-selected { background: var(--accent, #e85a1a); border-color: var(--accent, #e85a1a); color: #fff; }
.materials-note { border-top: 1px solid #e5e5e5; padding: 14px 0 34px; font-size: 12px; color: #666; }

@media (max-width: 900px) {
  .materials-layout { grid-template-columns: 1fr; gap: 24px; }
  .material-table { display: block; overflow-x: auto; }
  .material-table tbody th { width: 110px; }
}
