:root {
  --navy: #1b263b;
  --navy-soft: #25364e;
  --orange: #c75a1a;
  --orange-dark: #a9430e;
  --petrol: #006d6f;
  --mustard: #f2b134;
  --sand: #f2e8db;
  --sand-soft: #f8f2ea;
  --paper: #fcfbf8;
  --white: #fff;
  --ink: #172235;
  --muted: #667080;
  --line: #dfd7cd;
  --line-strong: #cec2b5;
  --success: #167253;
  --danger: #a52626;
  --shadow-sm: 0 8px 24px rgba(27, 38, 59, .07);
  --shadow-md: 0 18px 48px rgba(27, 38, 59, .11);
  --shadow-lg: 0 30px 90px rgba(12, 19, 31, .25);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --max: 1320px;
  --title: Montserrat, "Segoe UI", sans-serif;
  --body: Lato, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); line-height: 1.5; }
body:has(dialog[open]) { overflow: hidden; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:disabled { cursor: not-allowed; opacity: .52; }
img { display: block; max-width: 100%; }
a { color: inherit; }
[hidden] { display: none !important; }

.skip-link { position: fixed; z-index: 100; top: 12px; left: 12px; padding: 10px 14px; transform: translateY(-160%); border-radius: 8px; background: #fff; box-shadow: var(--shadow-sm); }
.skip-link:focus { transform: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.eyebrow { color: var(--orange); font-size: .7rem; font-weight: 900; letter-spacing: .19em; text-transform: uppercase; }

.site-header {
  position: sticky;
  z-index: 30;
  top: 0;
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 0 max(28px, calc((100vw - var(--max)) / 2));
  border-bottom: 1px solid rgba(27, 38, 59, .09);
  background: rgba(252, 251, 248, .94);
  backdrop-filter: blur(16px);
}
.catalog-brand { display: flex; align-items: center; width: 116px; height: 68px; text-decoration: none; }
.catalog-brand img { width: 100%; height: 100%; object-fit: contain; }
.site-header nav { display: flex; align-items: center; gap: 10px; }
.site-header nav > a,
.nav-custom-project { min-height: 44px; padding: 0 15px; border: 0; border-radius: 10px; background: transparent; color: var(--navy); font-weight: 800; text-decoration: none; cursor: pointer; }
.site-header nav > a:hover,
.nav-custom-project:hover { background: var(--sand-soft); }
.nav-custom-project { border: 1px solid var(--line); background: #fff; }
.cart-nav {
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 8px 0 18px;
  border: 0;
  border-radius: 12px;
  background: var(--navy);
  color: #fff;
  box-shadow: 0 8px 20px rgba(27, 38, 59, .16);
  font-weight: 800;
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.cart-nav:hover { background: var(--navy-soft); transform: translateY(-1px); }
.cart-nav strong { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; background: var(--orange); color: #fff; }

.catalog-section { width: min(var(--max), calc(100% - 56px)); margin: 0 auto; padding: 36px 0 70px; }
.catalog-commercial-hero {
  min-height: 500px;
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(430px, .97fr);
  overflow: hidden;
  border: 1px solid #e4d9cc;
  border-radius: 28px;
  background: linear-gradient(135deg, #fbf7f1 0%, var(--sand) 100%);
  box-shadow: var(--shadow-md);
}
.catalog-commercial-copy { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: center; min-width: 0; padding: 62px 68px; }
.catalog-commercial-copy::after { content: ""; position: absolute; z-index: -1; right: 4%; top: 19%; width: 140px; height: 140px; border: 1px solid rgba(199, 90, 26, .15); transform: rotate(34deg); }
.catalog-commercial-copy h1 { max-width: 660px; margin: 15px 0 20px; color: var(--navy); font-family: var(--title); font-size: clamp(2.9rem, 4.6vw, 4.7rem); line-height: .99; letter-spacing: -.05em; }
.catalog-commercial-copy h1 span { color: var(--orange); }
.catalog-commercial-copy > p { max-width: 530px; margin: 0; color: #4f5b6b; font-size: 1.08rem; }
.catalog-model-count { align-self: flex-start; margin-top: 23px; padding: 8px 13px; border: 1px solid rgba(199, 90, 26, .22); border-radius: 999px; background: rgba(255, 255, 255, .72); color: var(--orange-dark); font-size: .78rem; font-weight: 900; }
.catalog-tools { width: 100%; margin-top: 30px; }
.search-box { position: relative; display: block; }
.search-box svg { position: absolute; z-index: 1; top: 18px; left: 18px; width: 21px; fill: none; stroke: var(--muted); stroke-width: 2; }
.search-box input { width: 100%; height: 58px; padding: 0 18px 0 51px; border: 1px solid rgba(27, 38, 59, .15); border-radius: 12px; outline: 0; background: rgba(255, 255, 255, .94); color: var(--ink); box-shadow: var(--shadow-sm); transition: border-color .2s, box-shadow .2s; }
.search-box input::placeholder { color: #7a8290; }
.search-box input:focus { border-color: var(--orange); box-shadow: 0 0 0 4px rgba(199, 90, 26, .12); }
.search-clear { position: absolute; top: 11px; right: 11px; width: 36px; height: 36px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 9px; background: var(--sand-soft); color: var(--navy); font-size: 1.25rem; cursor: pointer; }
.search-box input:has(+ .search-clear:not([hidden])) { padding-right: 56px; }
.site-header.is-scrolled { box-shadow: 0 10px 28px rgba(27, 38, 59, .08); }

.catalog-commercial-product { position: relative; isolation: isolate; min-width: 0; min-height: 500px; margin: 0; overflow: hidden; background: linear-gradient(145deg, var(--navy-soft), var(--navy)); }
.catalog-commercial-product::before { content: ""; position: absolute; z-index: -1; top: -155px; right: -115px; width: 390px; height: 390px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 50%; }
.catalog-commercial-product::after { content: ""; position: absolute; z-index: -1; right: -70px; bottom: 62px; width: 210px; height: 1px; background: rgba(255, 255, 255, .22); transform: rotate(-12deg); }
.catalog-commercial-accent { position: absolute; z-index: -1; bottom: -86px; left: -70px; width: 245px; height: 245px; border-radius: 50%; background: var(--orange); }
.catalog-commercial-image { position: absolute; inset: 34px 34px 76px; display: grid; place-items: center; overflow: hidden; border: 1px solid rgba(255, 255, 255, .48); border-radius: 22px; background: #fff; box-shadow: 0 24px 55px rgba(7, 14, 25, .3); }
.catalog-commercial-image img { width: 100%; height: 100%; padding: 16px; object-fit: contain; }
.catalog-commercial-product figcaption { position: absolute; right: 30px; bottom: 25px; left: 30px; overflow: hidden; color: #fff; font-family: var(--title); font-size: .82rem; font-weight: 800; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.catalog-commercial-product.is-fallback .catalog-commercial-image img { width: 62%; height: 62%; padding: 0; }

.results-meta { display: flex; align-items: center; min-height: 54px; margin: 20px 2px 10px; border-bottom: 1px solid var(--line); color: var(--muted); }
.results-meta p { margin: 0; font-size: .88rem; font-weight: 800; }
.results-meta p::after { content: ""; display: block; width: 34px; height: 2px; margin-top: 11px; background: var(--orange); }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.product-card { min-width: 0; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-md); background: #fff; cursor: pointer; transition: transform .22s, border-color .22s, box-shadow .22s; }
.product-card:hover { transform: translateY(-4px); border-color: #cdbdad; box-shadow: var(--shadow-md); }
.product-card:focus-visible { outline: 3px solid var(--mustard); outline-offset: 4px; }
.product-card:focus-within { border-color: #cdbdad; box-shadow: var(--shadow-sm); }
.product-photo { position: relative; aspect-ratio: 1 / .82; display: grid; place-items: center; overflow: hidden; border-bottom: 1px solid #e9ded1; background: var(--sand-soft); }
.product-photo img { width: 100%; height: 100%; padding: 12px; object-fit: contain; transition: transform .32s; }
.product-card:hover .product-photo img { transform: scale(1.025); }
.product-body { min-height: 190px; display: flex; flex: 1; flex-direction: column; padding: 20px; }
.product-card h3 { display: -webkit-box; overflow: hidden; margin: 0; color: var(--navy); font-family: var(--title); font-size: 1.02rem; line-height: 1.23; letter-spacing: -.012em; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.product-card p { display: -webkit-box; overflow: hidden; margin: 10px 0 0; color: var(--muted); font-size: .86rem; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.product-actions { display: grid; grid-template-columns: .88fr 1.12fr; gap: 8px; margin-top: auto; padding-top: 18px; }
.button { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 18px; border: 1px solid transparent; border-radius: var(--radius-sm); font-weight: 900; text-decoration: none; cursor: pointer; transition: background .2s, border-color .2s, color .2s, transform .2s; }
.button.primary { background: var(--orange); color: #fff; }
.button.primary:hover { background: var(--orange-dark); }
.button.secondary { border-color: #cbd0d7; background: #fff; color: var(--navy); }
.button.secondary:hover { border-color: var(--navy); background: #f7f8fa; }
.button.full { width: 100%; }
.catalog-empty { padding: 70px 20px; border: 1px dashed var(--line-strong); border-radius: var(--radius-md); background: #fff; color: var(--muted); text-align: center; }
.catalog-empty strong { display: block; color: var(--navy); font-family: var(--title); }
.catalog-empty p { margin-bottom: 0; }

.catalog-footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 23px max(28px, calc((100vw - var(--max)) / 2)); border-top: 3px solid var(--orange); background: var(--navy); color: #dce2e9; font-size: .86rem; }
.catalog-footer p { margin: 0; }
.catalog-footer a { color: #fff; font-weight: 800; text-decoration: none; }
.catalog-footer a:hover { text-decoration: underline; text-underline-offset: 4px; }

.overlay { position: fixed; z-index: 40; inset: 0; background: rgba(12, 19, 31, .64); backdrop-filter: blur(4px); }
.cart-drawer { position: fixed; z-index: 50; top: 0; right: 0; width: min(470px, 100vw); height: 100dvh; display: grid; grid-template-rows: auto 1fr auto; transform: translateX(102%); background: #fff; box-shadow: -20px 0 60px rgba(0, 0, 0, .2); transition: transform .25s ease; }
.cart-drawer.open { transform: none; }
.cart-drawer > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 25px; border-bottom: 1px solid var(--line); }
.cart-drawer h2 { margin: 5px 0 0; color: var(--navy); font-family: var(--title); font-size: 1.55rem; }
.icon-button, .dialog-close { width: 44px; height: 44px; flex: none; display: grid; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--sand-soft); color: var(--navy); font-size: 1.6rem; line-height: 1; cursor: pointer; }
.icon-button:hover, .dialog-close:hover { border-color: #c8b8a6; background: var(--sand); }
.cart-items { overflow: auto; padding: 12px 24px; }
.cart-empty { padding: 70px 16px; color: var(--muted); text-align: center; }
.cart-empty strong { color: var(--navy); font-family: var(--title); }
.cart-row { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 13px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart-row img { width: 76px; height: 76px; padding: 4px; border: 1px solid var(--line); border-radius: 10px; background: var(--sand-soft); object-fit: contain; }
.cart-row strong { display: block; overflow: hidden; color: var(--navy); font-size: .9rem; line-height: 1.25; }
.qty-control { display: flex; align-items: center; gap: 5px; margin-top: 11px; }
.qty-control button { width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--navy); cursor: pointer; }
.qty-control input { width: 54px; height: 34px; border: 1px solid var(--line); border-radius: 8px; text-align: center; }
.cart-remove { align-self: start; padding: 4px; border: 0; background: none; color: var(--orange-dark); font-size: .78rem; font-weight: 800; cursor: pointer; }
.cart-drawer > footer { padding: 19px 24px 24px; border-top: 1px solid var(--line); background: #fff; box-shadow: 0 -12px 30px rgba(27, 38, 59, .06); }
.cart-drawer > footer p { margin: 0 0 13px; color: var(--muted); font-size: .86rem; font-weight: 800; }

dialog { padding: 0; border: 0; border-radius: 22px; outline: 0; background: #fff; color: var(--ink); box-shadow: var(--shadow-lg); }
dialog::backdrop { background: rgba(12, 19, 31, .7); backdrop-filter: blur(5px); }
.dialog-close { position: absolute; z-index: 5; top: 16px; right: 16px; }
.product-dialog { width: min(1100px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow: auto; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(350px, .92fr); }
.detail-gallery { min-width: 0; padding: 30px; background: var(--sand-soft); }
.detail-main-image { aspect-ratio: 4 / 3; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.detail-main-image img { width: 100%; height: 100%; padding: 10px; object-fit: contain; }
.detail-thumbs { display: flex; gap: 9px; overflow-x: auto; padding: 12px 2px 2px; }
.detail-thumbs button { width: 68px; height: 68px; flex: none; overflow: hidden; padding: 3px; border: 2px solid transparent; border-radius: 10px; background: #fff; cursor: pointer; }
.detail-thumbs button.active { border-color: var(--orange); }
.detail-thumbs img { width: 100%; height: 100%; object-fit: contain; }
.detail-copy { display: flex; flex-direction: column; padding: 58px 42px 36px; }
.detail-copy h2 { margin: 12px 0 0; color: var(--navy); font-family: var(--title); font-size: clamp(1.8rem, 3vw, 2.75rem); line-height: 1.08; letter-spacing: -.035em; }
.detail-long { margin: 25px 0; color: #465262; white-space: pre-line; }
.detail-action { display: grid; grid-template-columns: 92px 1fr; align-items: end; gap: 11px; margin-top: auto; padding-top: 22px; border-top: 1px solid var(--line); }
.detail-action label { color: var(--muted); font-size: .78rem; font-weight: 900; }
.detail-action input { width: 100%; height: 46px; margin-top: 5px; padding: 0 10px; border: 1px solid var(--line); border-radius: 9px; }

.request-dialog { width: min(760px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow: auto; padding: 42px; }
.request-heading { padding-right: 42px; }
.request-heading h2 { margin: 8px 0; color: var(--navy); font-family: var(--title); font-size: 2rem; letter-spacing: -.025em; }
.request-heading p { margin: 0; color: var(--muted); }
.custom-project-toggle { display: flex; align-items: flex-start; gap: 13px; margin: 25px 0 18px; padding: 17px; border: 1px solid var(--line); border-radius: 13px; background: var(--sand-soft); cursor: pointer; transition: border-color .2s, background .2s; }
.custom-project-toggle:hover { border-color: #cbb9a6; background: var(--sand); }
.custom-project-toggle input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--orange); }
.custom-project-toggle span { display: grid; gap: 3px; }
.custom-project-toggle strong { color: var(--navy); }
.custom-project-toggle small { color: var(--muted); font-weight: 400; }
.custom-project-fields { margin-bottom: 23px; padding: 20px; border: 1px solid #e4d3c2; border-radius: 14px; background: #fffaf5; }
.custom-project-fields h3 { margin: 0; color: var(--navy); font-family: var(--title); }
.request-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-top: 24px; }
.request-grid label { color: #394557; font-size: .8rem; font-weight: 900; }
.request-grid input:not([type=checkbox]), .request-grid textarea { width: 100%; display: block; margin-top: 6px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 9px; outline: 0; background: #fff; color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.request-grid input:not([type=checkbox]) { min-height: 45px; }
.request-grid textarea { resize: vertical; }
.request-grid input:focus, .request-grid textarea:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(199, 90, 26, .11); }
.request-grid .wide { grid-column: 1 / -1; }
.project-dimensions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.project-dimensions > span, .project-files > span { display: block; margin-bottom: 7px; color: #394557; font-size: .8rem; font-weight: 900; }
.project-dimensions > span { grid-column: 1 / -1; }
.project-files input { width: 100%; display: block; margin-top: 6px; padding: 12px; border: 1px dashed #c6b39f; border-radius: 10px; background: #fff; }
.project-files small { display: block; margin-top: 6px; color: var(--muted); font-weight: 400; }
.project-image-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.project-image-preview { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.project-image-preview img { width: 100%; height: 100%; object-fit: contain; }
.project-image-preview button { position: absolute; top: 6px; right: 6px; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; background: rgba(27, 38, 59, .9); color: #fff; cursor: pointer; }
.consent { display: flex; align-items: flex-start; gap: 9px; font-weight: 400 !important; }
.consent input { margin-top: 4px; accent-color: var(--orange); }
.honeypot { position: absolute !important; left: -10000px; }
.request-selection { margin: 20px 0; padding: 16px; border: 1px solid #e4d5c4; border-radius: 11px; background: var(--sand-soft); }
.request-selection > strong { color: var(--navy); font-family: var(--title); font-size: .9rem; }
.request-selection div div { display: flex; justify-content: space-between; gap: 15px; margin-top: 7px; font-size: .86rem; }
.form-error { padding: 11px 13px; border-left: 3px solid var(--danger); border-radius: 8px; background: #fff0f0; color: var(--danger); }
.success-dialog { width: min(470px, calc(100vw - 32px)); padding: 42px; text-align: center; }
.success-mark { width: 64px; height: 64px; display: grid; place-items: center; margin: 0 auto; border-radius: 18px; background: #e4f4ee; color: var(--success); font-size: 2rem; }
.success-dialog h2 { margin-bottom: 8px; color: var(--navy); font-family: var(--title); }
.success-dialog p { color: var(--muted); }
.success-dialog .button { margin-top: 10px; }

:focus-visible { outline: 3px solid var(--mustard); outline-offset: 3px; }

@media (max-width: 1180px) {
  .catalog-commercial-copy { padding: 52px 48px; }
  .catalog-commercial-copy h1 { font-size: clamp(2.7rem, 5vw, 4rem); }
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .site-header { padding: 0 22px; }
  .site-header nav > a { display: none; }
  .catalog-section { width: min(100% - 40px, var(--max)); }
  .catalog-commercial-hero { min-height: 410px; grid-template-columns: minmax(0, 1.05fr) minmax(300px, .95fr); }
  .catalog-commercial-copy { padding: 42px 36px; }
  .catalog-commercial-copy h1 { font-size: clamp(2.35rem, 5.5vw, 3.35rem); }
  .catalog-commercial-product { min-height: 410px; }
  .catalog-commercial-image { inset: 28px 24px 68px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-layout { grid-template-columns: 1fr; }
  .detail-gallery { padding: 24px; }
  .detail-copy { padding: 34px 28px 28px; }
}

@media (max-width: 620px) {
  html { scroll-padding-top: 74px; }
  .site-header { height: 70px; gap: 8px; padding: 0 12px; }
  .catalog-brand { width: 86px; height: 58px; }
  .site-header nav { gap: 6px; }
  .nav-custom-project { min-height: 42px; max-width: 82px; padding: 0 8px; border-color: transparent; background: transparent; font-size: .69rem; line-height: 1.15; }
  .cart-nav { min-width: 44px; min-height: 44px; padding: 0 7px; border-radius: 10px; }
  .cart-nav span { display: none; }
  .catalog-section { width: calc(100% - 24px); padding: 20px 0 48px; }
  .catalog-commercial-hero { min-height: 0; grid-template-columns: 1fr; border-radius: 20px; }
  .catalog-commercial-copy { padding: 34px 23px 26px; }
  .catalog-commercial-copy::after { display: none; }
  .catalog-commercial-copy h1 { margin: 12px 0 16px; font-size: clamp(2.35rem, 12vw, 3rem); }
  .catalog-commercial-copy > p { font-size: .98rem; }
  .catalog-model-count { margin-top: 18px; }
  .catalog-tools { margin-top: 22px; }
  .search-box input { height: 54px; }
  .search-box svg { top: 16px; }
  .catalog-commercial-product { min-height: 310px; }
  .catalog-commercial-image { inset: 21px 20px 61px; border-radius: 15px; }
  .catalog-commercial-product figcaption { bottom: 18px; font-size: .72rem; }
  .catalog-commercial-accent { width: 155px; height: 155px; }
  .results-meta { margin-top: 14px; }
  .product-grid { grid-template-columns: 1fr; gap: 15px; }
  .product-photo { aspect-ratio: 4 / 3; }
  .product-body { min-height: 175px; padding: 18px; }
  .product-card h3 { font-size: 1rem; }
  .product-actions { grid-template-columns: 1fr 1.18fr; }
  .button { min-height: 45px; padding: 0 13px; }
  .catalog-footer { align-items: flex-start; flex-direction: column; gap: 8px; padding: 20px; }
  .cart-row { grid-template-columns: 64px minmax(0, 1fr); }
  .cart-row img { width: 64px; height: 64px; }
  .cart-remove { grid-column: 2; justify-self: start; padding-left: 0; }
  .detail-gallery { padding: 16px; }
  .detail-copy { padding: 30px 20px 22px; }
  .detail-action { grid-template-columns: 1fr; }
  .request-dialog { padding: 34px 19px 22px; }
  .request-heading { padding-right: 34px; }
  .request-heading h2 { font-size: 1.65rem; }
  .request-grid { grid-template-columns: 1fr; }
  .request-grid .wide { grid-column: auto; }
  .custom-project-fields { padding: 15px; }
  .project-dimensions { grid-template-columns: 1fr; }
  .project-dimensions > span { grid-column: auto; }
  .project-image-list { grid-template-columns: 1fr 1fr; }
  .success-dialog { padding: 34px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
