:root{--ink:#161e27;--muted:#506070;--light:#f1f4f6;--line:#d4dce2;--accent:#ffb544;--dark:#111922}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--light);color:var(--ink);font:1rem/1.55 "Inter",system-ui,sans-serif}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}button,.button{display:inline-flex;align-items:center;justify-content:center;gap:.45rem;background:var(--accent);color:#171e25;border:1px solid transparent;border-radius:5px;padding:.65rem 1rem;font-weight:750;cursor:pointer}button:hover,.button:hover{filter:brightness(.93)}:focus-visible{outline:3px solid #4279b0;outline-offset:3px}.outline{background:transparent;border-color:currentColor;color:inherit}.notice{text-align:center;background:#273746;color:#fff;padding:.3rem 1rem;font-size:.88rem}header{background:var(--dark);color:#fff;display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.9rem max(4vw,calc((100vw - 1260px)/2));border-bottom:1px solid #374454}.brand{font-weight:900;letter-spacing:.045em;white-space:nowrap}.brand span,em{color:var(--accent);font-style:normal}nav{display:flex;gap:1.5rem}#count{background:var(--accent);color:var(--dark);padding:0 .38rem;border-radius:4px}.hero{background:linear-gradient(90deg,#111922 0%,#111922e0 36%,#11192218 100%),url(hero.webp) right center/cover,#273746;color:white;padding:clamp(4rem,8vw,7rem) max(4vw,calc((100vw - 1260px)/2))}.hero h1{font-size:clamp(2.55rem,6vw,5.2rem);letter-spacing:-.065em;line-height:.98;margin:0}.hero p{color:#e1e7ed;max-width:38ch;margin:1.5rem 0}.hero .button{margin:.25rem .4rem .25rem 0}.catalog,.quote{max-width:1260px;margin:auto;padding:3rem 0;width:min(92%,1260px)}h2{font-size:clamp(1.65rem,3vw,2.5rem);letter-spacing:-.04em;line-height:1.1;margin:0 0 .75rem}.sectionHead{display:flex;justify-content:space-between;align-items:end;gap:1rem;flex-wrap:wrap}.filters{display:flex;flex-wrap:wrap;gap:.55rem;margin:1.35rem 0}.filters button{background:white;border-color:var(--line);font-size:.9rem}.filters button[aria-pressed=true]{background:var(--dark);color:white;border-color:var(--dark)}.products{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr));gap:1rem}.card{background:white;border:1px solid var(--line);border-radius:8px;overflow:hidden;display:flex;flex-direction:column}.cardTop{padding:.65rem 1rem;background:#263746;color:#fff;font-weight:650;font-size:.88rem}.cardBody{padding:1rem;flex:1;display:flex;flex-direction:column;align-items:start}.card h3{margin:0;line-height:1.25}.card p{margin:.4rem 0;color:var(--muted)}.card .price{margin:auto 0 .7rem;padding-top:.75rem;color:var(--ink);font-weight:800}.quote{border-top:1px solid var(--line);display:grid;grid-template-columns:1fr 1fr;gap:2rem}.quote p{max-width:44ch}form{display:grid;gap:.9rem}form button{justify-self:start}label{display:grid;gap:.25rem;font-size:.9rem;font-weight:650}input,select,textarea{width:100%;padding:.6rem .7rem;border-radius:5px;border:1px solid #a6b4bf;background:white;color:var(--ink)}footer{background:var(--dark);color:white;padding:1.5rem max(4vw,calc((100vw - 1260px)/2));display:flex;justify-content:space-between;gap:.75rem;flex-wrap:wrap}dialog{width:min(94vw,560px);max-height:90vh;overflow:auto;border:0;border-radius:10px;padding:1.5rem;color:var(--ink)}dialog::backdrop{background:#111922ba}.close{float:right;padding:.1rem .65rem;font-size:1.3rem;margin-left:.5rem}.hint{color:var(--muted);font-size:.9rem;margin:0}.line{display:flex;align-items:center;justify-content:space-between;gap:.75rem;border-bottom:1px solid var(--line);padding:.75rem 0}.line small{display:block;color:var(--muted)}.line button{padding:.3rem .5rem}.toast{position:fixed;bottom:1rem;right:1rem;background:var(--dark);color:white;padding:.75rem 1rem;border-radius:6px}[hidden]{display:none!important}@media(max-width:650px){header{flex-wrap:wrap}nav{order:3;width:100%}.quote{grid-template-columns:1fr}.hero{background-position:center,right center}}

.catalogLayout{display:grid;grid-template-columns:235px minmax(0,1fr);gap:1.5rem;margin-top:1.35rem;align-items:start}
.catalogNav{background:white;border:1px solid var(--line);border-radius:8px;padding:.6rem}
.catalogNav nav{display:block}.catalogNav ul{margin:0;padding:0;list-style:none}
.catalogNav ul ul{padding-left:.65rem;margin-left:.65rem;border-left:1px solid var(--line)}
.catalogNav :is(button,a){display:block;width:100%;text-align:left;background:white;padding:.45rem .6rem;color:var(--ink);font-size:.9rem}
.catalogNav :is(button,a)[aria-current=true]{background:var(--dark);color:white}
.catalogContent{min-width:0}.catalogContent h3{font-size:1.6rem;line-height:1.2;margin:.25rem 0 .8rem}
.path{margin:0;color:var(--muted);font-size:.9rem}.path:empty{display:none}
.subgroups{display:flex;flex-wrap:wrap;gap:.45rem;margin-bottom:1rem}.subgroups:empty{display:none}
.subgroups :is(button,a){background:white;border-color:var(--line);font-size:.9rem}
#gradeLabel{max-width:16rem;margin-bottom:.8rem}#catalogCount{margin-bottom:.5rem}
.tableScroll{overflow:auto;border:1px solid var(--line);border-radius:8px;background:white}
.tableScroll table{width:100%;border-collapse:collapse;text-align:left;font-size:.88rem}
.tableScroll th,.tableScroll td{padding:.7rem .65rem;border-bottom:1px solid var(--line)}
.tableScroll thead{background:#263746;color:white}.tableScroll tbody tr:last-child>*{border-bottom:0}
.tableScroll td:not(:nth-child(2)){white-space:nowrap}.tableScroll th[scope=row]{min-width:12rem}
.tableScroll small{display:block;color:var(--muted);font-weight:500;font-size:.85rem}
.tableScroll button{font-size:.88rem;padding:.4rem .65rem}.catalogContent p a{text-decoration:underline}
@media(max-width:820px){.catalogLayout{grid-template-columns:1fr}.catalogNav nav>ul{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:.45rem}header nav{flex-wrap:wrap;gap:.6rem 1rem}}
#catalogPages{display:flex;align-items:center;gap:.75rem;margin-top:1rem}#catalogPages button:disabled{opacity:.5;cursor:default}
.paymentMethods{border:1px solid var(--line);border-radius:6px;padding:.55rem .8rem}.paymentMethods legend{font-weight:750}.paymentMethods label{display:flex;align-items:center;gap:.55rem;padding:.35rem 0}.paymentMethods input{width:auto;accent-color:#25374a}#invoiceDetails{display:grid;gap:.75rem}
/* Keep the order action visible while the product table scrolls. */
.tableScroll table{font-size:.775rem;border-collapse:separate;border-spacing:0}
.tableScroll th,.tableScroll td{padding:.29rem .24rem;vertical-align:middle}
.tableScroll thead th{white-space:normal;line-height:1.15}
.tableScroll th[scope=row]{min-width:7.5rem;overflow-wrap:anywhere}
.tableScroll small{font-size:.75rem}
.tableScroll td input{width:3.6rem;min-width:0;padding:.25rem .3rem}
.tableScroll input[name=quantity]{width:2.8rem}
.tableScroll td[data-line-weight],.tableScroll td[data-line-net],.tableScroll td[data-line-gross]{white-space:normal;min-width:3.65rem}
.tableScroll .cartColumn{position:sticky;right:0;z-index:1;box-shadow:-1px 0 var(--line)}
.tableScroll th.cartColumn{background:#263746}
.tableScroll td.cartColumn{background:#fff}
.tableScroll .cartColumn button{white-space:nowrap;font-size:.775rem;padding:.28rem .32rem}

.catalog{max-width:1560px;width:min(97%,1560px)}

.categorySections{display:grid;grid-template-columns:3fr 2fr;gap:1.25rem}
.categorySections h4{margin:.15rem 0 .65rem;color:#263746;font-size:1rem}
.categoryGrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.75rem}
.categoryOther .categoryGrid{grid-template-columns:repeat(2,minmax(0,1fr))}
@media(max-width:1120px){.categorySections{grid-template-columns:1fr}.categoryOther .categoryGrid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:650px){.categoryGrid,.categoryOther .categoryGrid{grid-template-columns:repeat(2,minmax(0,1fr))}}
.categoryGrid :is(button,a){min-height:6rem;padding:.75rem;text-align:center;justify-content:center;overflow-wrap:anywhere;background:#fff;color:#263746;border:1px solid var(--line);border-radius:.5rem;font-weight:700}
.categoryGrid :is(button,a):hover,.categoryGrid :is(button,a):focus-visible{background:#f0f5fa;border-color:#567990}

.infoSection{padding-block:1.5rem;border-top:1px solid var(--line)}
.infoSection p{margin:0;color:var(--muted)}

.serviceGrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;margin:1rem 0}
.serviceGrid article{padding:1rem;border:1px solid var(--line);border-radius:.5rem;background:#fff}
.serviceGrid h3{margin:0 0 .35rem;font-size:1.05rem}
@media(max-width:650px){.serviceGrid{grid-template-columns:1fr}}

.patternTrigger {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  text-decoration: underline dotted;
  text-underline-offset: 0.2em;
  cursor: pointer;
}
.patternPreview {
  position: fixed;
  left: 0;
  z-index: 30;
  margin: 0;
  padding: 6px;
  background: white;
  color: #172433;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  box-shadow: 0 6px 20px #0003;
  pointer-events: none;
}
.patternPreview[hidden], .patternPreview figcaption:empty { display: none; }
.patternPreview img { display: block; width: min(6cm, calc(100vw - 32px), calc(100vh - 32px)); height: auto; aspect-ratio: 1; object-fit: contain; }
.patternPreview figcaption { max-width: 6cm; font-size: 0.8rem; }

.patternPreviewLarge img { width: min(10cm, calc(100vw - 32px), calc(100vh - 64px)); }
.patternPreview img[hidden] { display: none; }

.policyLinks { display: flex; flex-wrap: wrap; gap: .5rem 1rem; }
.policyLinks a, .policyPage a { text-decoration: underline; text-underline-offset: .15em; }
.orderConsent { display: grid; grid-template-columns: auto 1fr; align-items: start; gap: .65rem; margin: .75rem 0; }
.orderConsent input { width: 1.2rem; height: 1.2rem; margin: .15rem 0 0; }
.orderConsent label { cursor: pointer; }
.policyPage { max-width: 52rem; margin: 0 auto; padding: 2rem 1rem 4rem; font-size: 1rem; line-height: 1.6; }
.policyPage h1 { font-size: clamp(2rem, 5vw, 3rem); margin-top: 1.5rem; }
.policyPage h2 { font-size: 1.35rem; margin-top: 1.5rem; }

.requestThanks {
  width: min(29rem, calc(100% - 2rem));
  margin: auto;
  padding: clamp(1.5rem, 5vw, 2.5rem);
  text-align: center;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 1rem;
  box-shadow: 0 1rem 3rem rgb(0 0 0 / 25%);
}
.requestThanks::backdrop { background: rgb(17 25 34 / 60%); }
.requestThanksIcon {
  display: inline-grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: #eaf7ee;
  color: #22653e;
  font-size: 1.5rem;
  font-weight: 700;
}
.requestThanks h2 { margin: 1rem 0 .5rem; }
.requestThanks p { line-height: 1.5; }
.requestThanks form { margin-top: 1.25rem; }

.catalogLinks { padding-block: 1rem 2rem; }
.catalogLinks ul { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; padding: 0; list-style: none; }

.categoryGrid a { display: flex; align-items: center; }
.subgroups a { display: inline-block; padding: .45rem .65rem; border: 1px solid var(--line); border-radius: .35rem; }
.categoryIntro { padding-bottom: 0; }

.catalogThumbnail { width: 56px; height: 56px; object-fit: cover; border-radius: .25rem; vertical-align: middle; margin-inline-end: .5rem; }

@media (max-width: 650px) {
  header { gap: .5rem; padding: .65rem 4%; }
  header > nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .25rem; }
  header > nav a { display: grid; place-items: center; min-height: 44px; text-align: center; font-size: .875rem; }
  #cartButton { min-height: 44px; padding: .4rem .55rem; }
  .hero { padding: 2.75rem 4%; }
  .hero h1 { font-size: clamp(2rem, 8.3vw, 3.25rem); }
  .catalog, .quote { width: 92%; padding-block: 1.75rem; }
  .categoryIntro { padding-bottom: 0; }
  .sectionHead > label, #gradeLabel { width: 100%; max-width: none; }
  input, select, textarea { font-size: 1rem; }
  .catalogLayout { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .catalogNav :is(button,a), .subgroups :is(button,a) { min-height: 44px; }
  .catalogNav :is(button,a) { display: flex; align-items: center; overflow-wrap: anywhere; }
  .catalogNav ul ul { padding-left: .3rem; margin-left: .3rem; }
  .categoryGrid :is(button,a) { min-height: 4rem; }
  .tableScroll { overflow: visible; border: 0; background: transparent; }
  .tableScroll :is(table,tbody) { display: block; font-size: .9rem; }
  .tableScroll thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .tableScroll tbody tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .55rem .75rem;
    padding: .85rem;
    margin-bottom: .75rem;
    background: white;
    border: 1px solid var(--line);
    border-radius: .6rem;
  }
  .tableScroll tbody tr > :is(td,th) { padding: 0; border: 0; min-width: 0; white-space: normal; overflow-wrap: anywhere; }
  .tableScroll tbody tr > :first-child { grid-column: 1 / -1; color: var(--muted); }
  .tableScroll th[scope=row] { grid-column: 1 / -1; font-size: 1.05rem; }
  .tableScroll td[data-label]::before { content: attr(data-label); display: block; color: var(--muted); font-size: .875rem; }
  .tableScroll td input { width: min(4.8rem, 75%); min-height: 44px; }
  .tableScroll input[name=quantity] { width: min(4.8rem, 100%); }
  .tableScroll td[data-line-gross] { font-weight: 750; }
  .tableScroll td.cartColumn { position: static; grid-column: 1 / -1; box-shadow: none; }
  .tableScroll .cartColumn button, #orderSubmit, #quoteForm button { width: 100%; min-height: 44px; font-size: 1rem; }
  #catalogPages { flex-wrap: wrap; }
  #cartDialog { width: calc(100% - 1.25rem); max-height: 90dvh; padding: 1rem; }
  #cartDialog .close { min-width: 44px; min-height: 44px; }
  #cartDialog .line > div { min-width: 0; overflow-wrap: anywhere; }
  #cartDialog .line button { min-height: 44px; }
  .toast { left: .75rem; right: .75rem; }
}

@media (max-width: 360px) {
  .brand { font-size: .85rem; }
  header > nav a { font-size: .8rem; }
}

.measurementChoice {
  position: fixed;
  z-index: 35;
  inset: auto 1rem 1rem auto;
  width: min(26rem, calc(100% - 2rem));
  padding: .9rem 1rem;
  background: white;
  border: 1px solid var(--line);
  border-radius: .6rem;
  box-shadow: 0 .25rem 1rem #0003;
}
.measurementChoice p { margin: 0 0 .65rem; }
.measurementChoice a { text-decoration: underline; }
.measurementChoice div { display: flex; flex-wrap: wrap; gap: .5rem; }
.measurementChoice button, .measurementSettings { min-height: 44px; }
.measurementChoice button:first-child { background: var(--light); }
.measurementSettings { background: transparent; color: inherit; text-decoration: underline; }
