:root {
  font: 16px/1.5 system-ui, sans-serif;
  color: #14202c;
  background: #f9fafb;
  --navy: #111c28;
  --paper: #fff;
  --muted: #53606e;
  --line: #dbe1e7;
  --accent: #ffbb4f;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
html:has(dialog[open]) { overflow: hidden; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
button:disabled { opacity: .5; cursor: default; }
.wrap { width: min(100% - 3rem, 1280px); margin-inline: auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
:focus-visible { outline: 3px solid #ad6800; outline-offset: 3px; }
.environment { background: #ffedc9; color: #422a08; text-align: center; font-size: .875rem; font-weight: 650; padding: .38rem 1rem; }
.site-header { background: var(--paper); }
.header-row { min-height: 84px; display: flex; align-items: center; gap: clamp(1rem, 4vw, 3.7rem); }
.wordmark { color: inherit; text-decoration: none; white-space: nowrap; font-size: 1.55rem; font-weight: 900; letter-spacing: -.075em; display: inline-flex; align-items: center; gap: .14em; }
.wordmark strong { font-weight: 540; }
.mark { margin-right: .35rem; display: flex; gap: 2px; transform: skewX(-23deg); }
.mark i { display: block; width: 5px; height: 19px; background: #d88a16; }
.mark i:first-child { opacity: .45; }
.mark i:nth-child(2) { opacity: .7; }
.search { display: flex; flex: 1; align-items: stretch; background: #f4f6f8; border: 1px solid var(--line); border-radius: .4rem; }
.search input { font-size: .95rem; min-width: 0; width: 100%; min-height: 44px; border: 0; background: transparent; color: inherit; padding: .65rem .8rem; }
.search button { border: 0; background: transparent; color: var(--navy); padding-inline: .8rem; font-weight: 680; }
.header-actions { display: flex; align-items: center; gap: 1rem; white-space: nowrap; }
.header-actions a, .footer-row > a:not(.wordmark) { text-underline-offset: .2em; font-weight: 650; }
.cart-button, .secondary, .order-actions button, .stepper button, .remove { border: 1px solid var(--line); padding: .53rem .75rem; background: var(--paper); color: var(--navy); border-radius: .36rem; font-weight: 670; min-height: 43px; }
.cart-button { background: var(--navy); color: #fff; border-color: var(--navy); }
.cart-button span { min-width: 1.55em; display: inline-block; margin-left: .25em; border-radius: .3rem; background: var(--accent); color: #14202c; font-size: .88rem; text-align: center; }
.category-menu { background: var(--navy); color: #f6f8fb; }
.category-row { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.5rem); overflow-x: auto; }
.category-row a { display: block; padding: .79rem .05rem .66rem; border-bottom: 3px solid transparent; font-size: .94rem; text-decoration: none; white-space: nowrap; font-weight: 650; }
.category-row a:hover, .category-row a[aria-current] { border-color: var(--accent); }
.category-row a:focus-visible { outline-offset: -3px; }
.hero { position: relative; min-height: clamp(370px, 34vw, 490px); background: #101925; display: grid; align-items: center; color: #fff; isolation: isolate; overflow: hidden; }
.hero > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 60% center; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #0e1722e8, #0e1722bb 32%, #0e17223b 62%, transparent 84%); }
.hero-content { padding-block: 3rem; }
.hero h1 { max-width: 570px; font-size: clamp(2.9rem, 6.4vw, 5.65rem); line-height: .99; letter-spacing: -.071em; font-weight: 790; text-wrap: balance; }
.hero p { max-width: 390px; color: #e0e6ef; font-size: 1.1rem; margin-block: 1.35rem 1.55rem; }
.primary { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; padding: .66rem 1.12rem; background: var(--accent); color: #1c1e22; border-radius: .38rem; border: 1px solid transparent; font-weight: 760; text-decoration: none; }
.primary:hover { background: #ffd185; }
.service-strip { background: var(--paper); border-bottom: 1px solid var(--line); }
.services { display: grid; grid-template-columns: repeat(3, 1fr); padding-block: 1.1rem; }
.services p { padding-inline: clamp(.9rem, 3vw, 1.7rem); border-left: 2px solid #edaa41; }
.services strong, .services span { display: block; }
.services span, .muted { color: var(--muted); }
.services span { font-size: .875rem; }
.catalog { padding-block: 2.8rem 4rem; scroll-margin-top: 1rem; }
.catalog-heading { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 1.25rem; }
.catalog h2, .order h1 { font-size: clamp(1.85rem, 3vw, 2.7rem); line-height: 1.1; letter-spacing: -.045em; }
#results-count { margin-top: .28rem; }
.sort { display: flex; align-items: center; gap: .55rem; font-size: .875rem; font-weight: 650; }
select { color: var(--navy); background: var(--paper); border: 1px solid var(--line); border-radius: .38rem; min-height: 44px; padding: .45rem .62rem; }
.products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.15rem; }
.product { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: .6rem; background: var(--paper); }
.product-media { background: #efefed; aspect-ratio: 1.18; border: none; padding: 0; width: 100%; display: block; overflow: hidden; }
.product-media img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; display: block; transition: transform .2s ease; }
.product-media:hover img { transform: scale(1.05); }
.product-body { display: grid; grid-template-rows: auto auto 1fr auto auto; flex: 1; gap: .4rem; padding: 1rem; }
.product-meta { color: #506071; font-size: .88rem; font-weight: 650; }
.product h3 { line-height: 1.25; font-size: 1.18rem; letter-spacing: -.018em; }
.product-description { color: var(--muted); font-size: .91rem; }
.price { font-size: 1.44rem; letter-spacing: -.025em; margin-top: .15rem; }
.price small { font-size: .78rem; font-weight: 550; color: var(--muted); letter-spacing: normal; }
.product-body button { margin-top: .35rem; align-self: end; }
.empty-state, .error { padding: .8rem 1rem; border-radius: .45rem; }
.empty-state { background: #edf0f4; }
.error { color: #781d12; background: #ffebe7; margin-block: .8rem; }
.site-footer { background: var(--navy); color: #f6f8fb; padding-block: 1.35rem; }
.footer-row { display: flex; gap: 1.25rem; align-items: center; }
.footer-row .wordmark { margin-right: auto; }
dialog { color: var(--navy); background: var(--paper); border: none; padding: 0; border-radius: .65rem; box-shadow: 0 1.7rem 6rem #08142648; }
dialog::backdrop { background: #071019ad; }
.product-dialog { width: min(760px, 100% - 1.6rem); max-height: min(90vh, 720px); }
.product-dialog > .close { position: absolute; top: .6rem; right: .65rem; }
.close { width: 43px; height: 43px; font-size: 1.65rem; line-height: 1; border: 1px solid var(--line); border-radius: .35rem; color: var(--navy); background: var(--paper); }
.product-detail { display: grid; grid-template-columns: 1fr 1fr; }
.product-detail > img, .product-detail > .product-media { width: 100%; height: 100%; min-height: 245px; object-fit: contain; background: #efefed; }
.detail-body { padding: 2.8rem 1.25rem 1.3rem; display: flex; align-items: start; flex-direction: column; gap: .55rem; }
.detail-body h2 { font-size: 1.65rem; line-height: 1.15; letter-spacing: -.03em; }
.detail-body select, .detail-body .primary { width: 100%; }
.detail-form { width: 100%; }
.detail-form label { display: block; margin-block: .45rem; font-weight: 650; }
.detail-form button { margin-top: .5rem; }
.cart-dialog { width: min(500px, 100%); max-width: 100%; max-height: none; height: 100dvh; margin: 0 0 0 auto; border-radius: 0; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: .85rem 1.2rem; border-bottom: 1px solid var(--line); gap: .75rem; }
.drawer-body { padding: 1.1rem 1.2rem 2rem; }
.cart-list, .order-items { margin: 0; padding: 0; list-style: none; }
.cart-list li, .order-items li { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.cart-line-details small { display: block; color: var(--muted); }
.stepper { display: inline-flex; align-items: center; gap: .38rem; font-variant-numeric: tabular-nums; }
.stepper button, .remove { padding-inline: .57rem; }
.remove { font-size: .875rem; }
.totals { margin: .8rem 0 1.1rem; }
.totals div { display: flex; justify-content: space-between; }
.totals dd { margin-left: 0; font-variant-numeric: tabular-nums; }
.totals .total { font-weight: 760; font-size: 1.18rem; margin-top: .35rem; }
#checkout label { display: block; font-size: .9rem; font-weight: 630; margin-bottom: .65rem; }
#checkout input { width: 100%; min-height: 43px; padding: .5rem .66rem; display: block; margin-top: .2rem; border: 1px solid #aab6c2; border-radius: .4rem; }
#checkout fieldset { margin: .9rem 0 .6rem; border: 1px solid var(--line); border-radius: .45rem; padding: .7rem .8rem; min-width: 0; }
#checkout legend { font-weight: 720; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: .55rem; }
.checkout-button { width: 100%; }
.checkout-caption { text-align: center; font-size: .875rem; margin-top: .65rem; }
.order { padding-block: 2.5rem 4rem; max-width: 760px; }
.back-link { text-underline-offset: .23em; }
.order-panel { margin-top: 1rem; background: #fff; border: 1px solid var(--line); border-radius: .6rem; padding: clamp(1rem, 3vw, 1.7rem); }
.status { margin-block: .75rem; color: #34495a; }
#order-total { margin-block: .8rem; font-size: 1.2rem; font-weight: 750; }
.order-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .65rem; }
.download { font-weight: 750; text-underline-offset: .2em; }
@media (max-width: 990px) {
  .products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .header-row { gap: 1.2rem; }
}
@media (max-width: 700px) {
  .wrap { width: calc(100% - 1.5rem); }
  .header-row { gap: .65rem; flex-wrap: wrap; justify-content: space-between; padding-block: .55rem; }
  .header-actions { gap: .6rem; font-size: .875rem; }
  .wordmark { font-size: 1.25rem; }
  .search { flex: 1 0 100%; order: 3; }
  .category-row { gap: 1.2rem; }
  .hero { min-height: 380px; }
  .hero::before { background: linear-gradient(90deg, #08111bf0, #08111b8c 69%, #08111b55); }
  .hero h1 { max-width: 350px; }
  .hero p { max-width: 300px; }
  .services { grid-template-columns: 1fr; gap: .55rem; padding-block: .85rem; }
  .services p { padding-inline: .65rem; }
  .services strong, .services span { display: inline; }
  .services strong { margin-right: .4rem; }
  .products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
  .product-body { padding: .72rem; }
  .product-description { display: none; }
  .product h3 { font-size: 1.03rem; }
  .catalog { padding-block: 1.9rem 2.5rem; }
  .sort { display: block; }
  .sort select { display: block; }
}
@media (max-width: 405px) {
  .product-detail { display: block; }
  .product-detail > img { max-height: 240px; }
  .detail-body { padding-top: 1rem; }
  .footer-row { gap: .65rem; font-size: .9rem; }
  .order-items li { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
