:root {
  --ink: #20231f;
  --ink-soft: #4f554e;
  --muted: #747a72;
  --paper: #f6f3ed;
  --paper-deep: #ece8df;
  --white: #fff;
  --accent: #c85f3d;
  --accent-dark: #9f4429;
  --sage: #78816c;
  --line: rgba(32, 35, 31, .16);
  --line-strong: rgba(32, 35, 31, .28);
  --max: 1320px;
  --shadow: 0 24px 70px rgba(31, 34, 29, .13);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -.012em;
  text-rendering: optimizeLegibility;
}
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }
a { color: inherit; }

.skip-link {
  position: fixed;
  left: 18px;
  top: -80px;
  z-index: 200;
  padding: 12px 16px;
  background: var(--ink);
  color: white;
  text-decoration: none;
}
.skip-link:focus { top: 18px; }

.preview-bar {
  min-height: 31px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 6px 20px;
  background: var(--paper-deep);
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
  text-align: center;
}
.preview-bar span { font-weight: 450; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255, 255, 255, .92);
  border-bottom: 1px solid var(--line);

}
.header-inner {
  width: min(var(--max), calc(100% - 48px));
  height: 70px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 34px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.brand img { flex: 0 0 auto; }
.brand-name {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 17px;
  letter-spacing: -.035em;
}
.brand-name strong { font-weight: 800; }
.brand-name small {
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.site-header nav { grid-column: 2; display: flex; align-items: center; gap: 30px; }
.site-header nav a {
  position: relative;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.site-header nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -8px;
  height: 1px;
  background: var(--ink);
  transition: right .22s ease;
}
.site-header nav a:hover::after { right: 0; }
.cart-button[hidden] { display: none; }
.cart-button {
  grid-column: 3;
  justify-self: end;
  height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-weight: 650;
}
.cart-button svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cart-button b {
  min-width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: white;
  font-size: 11px;
}

.hero {
  width: min(var(--max), calc(100% - 48px));
  min-height: 690px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, .83fr) minmax(520px, 1.17fr);
  align-items: stretch;
  gap: clamp(42px, 6vw, 96px);
  padding: clamp(50px, 7vw, 96px) 0 72px;
}
.hero-copy {
  align-self: center;
  max-width: 590px;
  padding-bottom: 20px;
}
.kicker {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
}
.hero h1,
.catalog-heading h2,
.process h2,
.about h2,
.technical-note h2 {
  margin: 0;
  font-family: ui-rounded, "Avenir Next", "Segoe UI", Helvetica, Arial, sans-serif;
  font-weight: 720;
  letter-spacing: -.055em;
  text-wrap: balance;
}
.hero h1 {
  max-width: 720px;
  font-size: clamp(52px, 6.4vw, 90px);
  line-height: .96;
}
.hero-lead {
  max-width: 590px;
  margin: 30px 0 0;
  color: var(--ink-soft);
  font-size: clamp(18px, 1.65vw, 22px);
  line-height: 1.48;
  letter-spacing: -.025em;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-top: 34px;
}
.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid var(--ink);
  border-radius: 4px;
  text-decoration: none;
  font-weight: 720;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.button.primary { background: var(--ink); color: white; }
.button.primary:hover { background: var(--accent); border-color: var(--accent); transform: translateY(-1px); }
.button:disabled { cursor: not-allowed; opacity: .42; }
.button.wide { width: 100%; }
.text-link {
  color: var(--ink);
  font-size: 15px;
  font-weight: 750;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}
.text-link span { display: inline-block; margin-left: 5px; transition: transform .2s ease; }
.text-link:hover span { transform: translateX(4px); }
.hero-note {
  margin: 30px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
.hero-media {
  position: relative;
  min-height: 580px;
  margin: 0;
  overflow: hidden;
  background: var(--paper);
}
.hero-media img {
  width: 100%;
  height: 100%;
  min-height: 580px;
  object-fit: cover;
  object-position: 52% center;
  filter: saturate(.76) contrast(.98) sepia(.05);
  transition: transform 1.2s cubic-bezier(.2, .65, .2, 1);
}
.hero-media:hover img { transform: scale(1.018); }
.hero-media::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(transparent, rgba(16, 19, 15, .68));
  pointer-events: none;
}
.hero-media figcaption {
  position: absolute;
  z-index: 1;
  left: 28px;
  right: 28px;
  bottom: 24px;
  max-width: 460px;
  color: white;
  font-size: 14px;
  line-height: 1.45;
}

.category-rail {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  display: flex;
  align-items: stretch;
  overflow-x: auto;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  scrollbar-width: none;
}
.category-rail::-webkit-scrollbar { display: none; }
.rail-intro,
.category-rail button {
  min-height: 74px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding: 0 27px;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
}
.rail-intro { padding-left: 0; color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.category-rail button { cursor: pointer; font-size: 14px; font-weight: 650; transition: background .2s ease; }
.category-rail button:hover { background: var(--paper); }
.category-rail button b { color: var(--muted); font-size: 11px; font-weight: 600; }

.catalog-section {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: 112px 0 122px;
}
.catalog-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 36px;
}
.catalog-heading h2 { max-width: 780px; font-size: clamp(38px, 5.2vw, 70px); line-height: 1; }
.catalog-heading > p { margin: 0 0 8px; color: var(--muted); font-size: 13px; }
.search-panel {
  display: grid;
  grid-template-columns: minmax(300px, 1.75fr) repeat(3, minmax(150px, .55fr));
  align-items: center;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--line-strong);
}
.search-box {
  min-height: 70px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding-right: 20px;
  border-right: 1px solid var(--line);
}
.search-box svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.7;
  stroke-linecap: round;
}
.search-box input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 16px;
}
.search-box input::placeholder { color: #94988f; }
kbd {
  padding: 4px 6px;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--muted);
  background: var(--paper);
  font-size: 10px;
  box-shadow: none;
}
.search-panel select {
  width: 100%;
  min-height: 70px;
  padding: 0 36px 0 20px;
  border: 0;
  border-right: 1px solid var(--line);
  outline: 0;
  background-color: white;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}
.search-panel select:last-child { border-right: 0; }
.search-panel input:focus-visible,
.search-panel select:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.active-filters { min-height: 46px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.filter-chip {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  color: var(--ink-soft);
  font-size: 12px;
  cursor: pointer;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 58px 24px;
}
.product-card { min-width: 0; }
.product-open {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.product-open:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
.product-image {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #efede7;
}
.product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 34px;
  filter: saturate(.65);
  transition: transform .4s cubic-bezier(.2, .65, .2, 1), filter .3s ease;
}
.photo-pending {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px 22px 29px;
  background:
    linear-gradient(135deg, transparent 0 48%, rgba(32,35,31,.055) 48% 48.3%, transparent 48.3% 100%),
    #efede7;
}
.photo-pending span {
  margin-bottom: auto;
  color: var(--accent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.photo-pending strong {
  max-width: 90%;
  font-size: clamp(24px, 2.5vw, 38px);
  line-height: 1.02;
  letter-spacing: -.055em;
  text-wrap: balance;
}
.photo-pending small {
  margin-top: 14px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .09em;
}
.product-card:hover .product-image img { transform: scale(1.025); filter: saturate(.92); }
.stock-badge {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 6px 8px;
  background: rgba(255,255,255,.91);
  color: var(--ink);
  font-size: 10px;
  font-weight: 750;

}
.product-info { padding: 17px 0 0; }
.tag-row { min-height: 24px; display: flex; gap: 8px; align-items: center; margin-bottom: 7px; }
.tag { color: var(--sage); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.tag.review { color: var(--accent); }
.product-card h3 {
  min-height: 47px;
  margin: 0;
  font-size: 17px;
  line-height: 1.35;
  letter-spacing: -.025em;
  font-weight: 700;
}
.compatibility { min-height: 20px; margin: 8px 0 0; color: var(--muted); font-size: 12px; }
.product-meta { display: flex; flex-wrap: wrap; gap: 5px 12px; margin: 10px 0 0; color: var(--ink-soft); font-size: 9px; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; }
.product-meta span + span::before { content: '·'; margin-right: 12px; color: var(--line-strong); }
.product-footer { margin-top: 18px; padding-top: 15px; border-top: 1px solid var(--line); }
.price { display: block; font-size: 15px; font-weight: 780; }
.price-note { display: block; min-height: 34px; margin: 4px 0 13px; color: var(--muted); font-size: 11px; line-height: 1.45; }
.card-action {
  min-height: 42px;
  width: 100%;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  text-align: left;
  font-size: 12px;
  font-weight: 780;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
}
.product-open:hover .card-action { color: var(--accent); border-color: var(--accent); }
.empty-state { padding: 60px 0; color: var(--muted); text-align: center; }
.empty-state b { color: var(--ink); font-size: 22px; }
.empty-state p { margin: 7px 0 0; }
.hidden { display: none !important; }
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 72px; }
.pagination button {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
  cursor: pointer;
}
.pagination button.active { border-color: var(--ink); background: var(--ink); color: white; }

.process {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(480px, 1.1fr);
  gap: clamp(60px, 9vw, 150px);
  padding: 116px max(24px, calc((100vw - var(--max)) / 2));
  background: var(--ink);
  color: white;
}
.process-heading { align-self: start; position: sticky; top: 120px; }
.process .kicker { color: #df8a69; }
.process h2 { max-width: 600px; font-size: clamp(46px, 5.6vw, 78px); line-height: .98; }
.process-heading > p:last-child { max-width: 500px; margin: 28px 0 0; color: rgba(255,255,255,.65); font-size: 17px; line-height: 1.6; }
.process-list { margin: 0; padding: 0; list-style: none; }
.process-list li {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 26px;
  padding: 36px 0 40px;
  border-top: 1px solid rgba(255,255,255,.2);
}
.process-list li:last-child { border-bottom: 1px solid rgba(255,255,255,.2); }
.process-list li > span { color: #df8a69; font-size: 12px; font-weight: 800; letter-spacing: .1em; }
.process-list h3 { margin: 0; font-size: clamp(25px, 2.4vw, 35px); line-height: 1.15; letter-spacing: -.035em; }
.process-list p { max-width: 590px; margin: 10px 0 0; color: rgba(255,255,255,.64); font-size: 15px; line-height: 1.6; }

.about {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr);
  gap: clamp(70px, 10vw, 160px);
  padding: 130px 0;
}
.about h2 { max-width: 720px; font-size: clamp(44px, 5.4vw, 74px); line-height: 1.02; }
.about-copy > p:not(.kicker) { max-width: 680px; margin: 26px 0 0; color: var(--ink-soft); font-size: 17px; line-height: 1.7; }
.about-numbers { align-self: end; }
.about-numbers > div {
  display: grid;
  grid-template-columns: 130px 1fr;
  align-items: baseline;
  gap: 20px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}
.about-numbers > div:last-child { border-bottom: 1px solid var(--line); }
.about-numbers strong { font-size: 48px; line-height: 1; letter-spacing: -.055em; }
.about-numbers span { color: var(--muted); font-size: 13px; }

.technical-note {
  padding: 110px max(24px, calc((100vw - var(--max)) / 2));
  background: var(--paper);
}
.technical-note h2 { max-width: 1000px; font-size: clamp(40px, 5vw, 68px); line-height: 1.04; }
.technical-columns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 50px; margin-top: 64px; }
.technical-columns p { margin: 0; color: var(--ink-soft); font-size: 14px; line-height: 1.65; }
.technical-columns strong { display: block; margin-bottom: 7px; color: var(--ink); font-size: 15px; }

footer { padding: 72px max(24px, calc((100vw - var(--max)) / 2)) 26px; background: #171916; color: white; }
.footer-main { display: grid; grid-template-columns: 1.7fr 1fr; gap: 60px; padding-bottom: 70px; }
.footer-brand .brand { color: white; }
.footer-brand p { margin: 16px 0 0; color: rgba(255,255,255,.55); font-size: 14px; }
.footer-main > div:not(.footer-brand) { display: flex; flex-direction: column; gap: 10px; color: rgba(255,255,255,.58); font-size: 13px; }
.footer-main b { margin-bottom: 5px; color: white; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.footer-main a { text-decoration: none; }
.footer-main a:hover { color: white; }
.footer-bottom { display: flex; justify-content: space-between; gap: 30px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.14); color: rgba(255,255,255,.43); font-size: 11px; }
.footer-bottom a { color: inherit; }

.overlay { position: fixed; inset: 0; z-index: 95; background: rgba(17,18,16,.52); opacity: 0; pointer-events: none; transition: opacity .25s ease; }
.overlay.open { opacity: 1; pointer-events: auto; }
.cart-drawer,
.product-detail {
  position: fixed;
  z-index: 100;
  top: 0;
  right: 0;
  width: min(480px, 100%);
  height: 100dvh;
  padding: 30px;
  overflow-y: auto;
  background: white;
  box-shadow: var(--shadow);
  transform: translateX(102%);
  transition: transform .3s cubic-bezier(.2,.75,.2,1);
}
.product-detail {
  width: min(920px, 100%);
}
.cart-drawer.open,
.product-detail.open { transform: translateX(0); }
.drawer-head { display: flex; align-items: start; justify-content: space-between; gap: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { margin: 0; font-size: 34px; letter-spacing: -.04em; }
.drawer-head .kicker { margin-bottom: 6px; }
.icon-button { width: 42px; height: 42px; border: 1px solid var(--line); background: white; color: var(--ink); font-size: 24px; cursor: pointer; }
.cart-items { display: flex; flex-direction: column; }
.cart-line { display: grid; grid-template-columns: 72px 1fr auto; gap: 12px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.cart-line img { width: 72px; height: 82px; object-fit: contain; padding: 8px; background: var(--paper); }
.cart-line h4 { margin: 0 0 8px; font-size: 13px; line-height: 1.3; }
.cart-line > div:last-child { text-align: right; font-size: 12px; }
.qty-controls { display: inline-flex; align-items: center; gap: 10px; }
.qty-controls button { width: 27px; height: 27px; border: 1px solid var(--line); background: white; cursor: pointer; }
.remove { display: block; margin: 8px 0 0 auto; border: 0; background: none; color: var(--accent); font-size: 10px; cursor: pointer; }
.cart-empty { padding: 70px 0; text-align: center; color: var(--muted); }
.cart-empty b { color: var(--ink); font-size: 20px; }
.cart-empty p { margin: 8px auto 0; max-width: 280px; font-size: 13px; }
.cart-summary { padding-top: 24px; }
.subtotal, .checkout-total { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; font-size: 17px; }
.shipping-form { display: grid; grid-template-columns: 1fr auto; gap: 9px; margin: 20px 0; }
.shipping-form label { color: var(--muted); font-size: 11px; }
.shipping-form input { display: block; width: 100%; height: 42px; margin-top: 5px; padding: 0 11px; border: 1px solid var(--line); outline: none; }
.shipping-form button { align-self: end; height: 42px; padding: 0 16px; border: 1px solid var(--ink); background: white; cursor: pointer; }
.shipping-quotes { display: grid; gap: 8px; margin: 14px 0; }
.quote { display: flex; justify-content: space-between; align-items: center; padding: 12px; border: 1px solid var(--line); background: white; text-align: left; cursor: pointer; }
.quote.selected { border-color: var(--ink); }
.quote span { display: flex; flex-direction: column; }
.quote small { color: var(--muted); }
.cart-summary > small { display: block; margin-top: 12px; color: var(--muted); text-align: center; }

.detail-body {
  display: grid;
  grid-template-columns: minmax(260px, .86fr) minmax(0, 1.14fr);
  gap: 30px;
  padding-top: 26px;
}
.detail-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: contain;
  padding: 34px;
  background: var(--paper);
}
.detail-media p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}
.detail-info h2 {
  margin: 8px 0 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.05;
  letter-spacing: -.045em;
}
.detail-description {
  margin: 18px 0 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.65;
}
.detail-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 24px 0 0;
  border-top: 1px solid var(--line);
}
.detail-facts div {
  min-width: 0;
  padding: 14px 12px 14px 0;
  border-bottom: 1px solid var(--line);
}
.detail-facts dt {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.detail-facts dd {
  margin: 5px 0 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.ready-note,
.pending-note {
  margin: 22px 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 13px;
}
.pending-note { border-color: rgba(200,95,61,.35); color: var(--accent-dark); background: rgba(200,95,61,.06); }
.detail-add {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 12px;
  align-items: end;
}
.detail-add label { color: var(--muted); font-size: 11px; }
.detail-add input { display: block; width: 100%; height: 48px; margin-top: 5px; padding: 0 10px; border: 1px solid var(--line); }

dialog { width: min(720px, calc(100% - 30px)); padding: 0; border: 0; box-shadow: var(--shadow); }
dialog::backdrop { background: rgba(17,18,16,.62); }
.checkout-form { padding: 28px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 24px 0; }
.form-grid label { color: var(--muted); font-size: 12px; }
.form-grid input { width: 100%; height: 43px; margin-top: 5px; padding: 0 11px; border: 1px solid var(--line); outline: none; }
.form-grid input:focus { border-color: var(--accent); }
.span-2 { grid-column: span 2; }
.secure-note { margin: 12px 0 0; color: var(--muted); text-align: center; font-size: 11px; }
.toast { position: fixed; z-index: 150; left: 50%; bottom: 26px; max-width: calc(100% - 30px); padding: 12px 17px; background: var(--ink); color: white; font-size: 13px; opacity: 0; transform: translate(-50%, 18px); pointer-events: none; transition: .22s ease; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.reveal, .reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 1100px) {
  .hero { grid-template-columns: .85fr 1.15fr; gap: 42px; }
  .hero h1 { font-size: clamp(50px, 6.5vw, 74px); }
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .search-panel { grid-template-columns: 1.5fr 1fr 1fr; }
  .search-box { grid-column: 1 / -1; border-right: 0; border-bottom: 1px solid var(--line); }
  .search-panel select:last-child { border-right: 0; }
}

@media (max-width: 820px) {
  .header-inner { width: min(100% - 32px, var(--max)); }
  .site-header nav { display: none; }
  .hero { width: 100%; min-height: 0; grid-template-columns: 1fr; gap: 0; padding: 0; }
  .hero-copy { max-width: none; padding: 66px 24px 54px; background: var(--paper); }
  .hero h1 { font-size: clamp(48px, 12vw, 72px); }
  .hero-lead { font-size: 18px; }
  .hero-media, .hero-media img { min-height: 450px; }
  .category-rail { width: 100%; padding-left: 24px; }
  .rail-intro { display: none; }
  .catalog-section { width: min(100% - 40px, var(--max)); padding: 82px 0 90px; }
  .catalog-heading { align-items: start; flex-direction: column; }
  .catalog-heading h2 { font-size: clamp(42px, 10vw, 64px); }
  .catalog-heading > p { margin: 0; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 18px; }
  .process { grid-template-columns: 1fr; gap: 54px; padding: 88px 24px; }
  .process-heading { position: static; }
  .about { width: min(100% - 48px, var(--max)); grid-template-columns: 1fr; gap: 60px; padding: 90px 0; }
  .technical-note { padding: 88px 24px; }
  .technical-columns { grid-template-columns: 1fr; gap: 24px; margin-top: 44px; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .product-detail { width: 100%; }
  .detail-body { grid-template-columns: 1fr; }
  .detail-media img { max-height: 430px; }
}

@media (max-width: 560px) {
  .preview-bar { align-items: flex-start; flex-direction: column; gap: 0; padding: 6px 14px; text-align: left; }
  .header-inner { height: 62px; }
  .brand-name { font-size: 15px; }
  .cart-label { display: none; }
  .hero-copy { padding-top: 52px; }
  .hero h1 { font-size: clamp(46px, 15vw, 62px); }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 20px; }
  .hero-note { max-width: 310px; }
  .hero-media, .hero-media img { min-height: 360px; }
  .hero-media figcaption { left: 20px; right: 20px; bottom: 18px; font-size: 12px; }
  .category-rail button { min-height: 62px; padding: 0 20px; }
  .catalog-section { width: min(100% - 32px, var(--max)); }
  .search-panel { display: block; border-top-color: var(--ink); }
  .search-box { min-height: 62px; padding: 0; border-bottom: 1px solid var(--line); }
  .search-box kbd { display: none; }
  .search-panel select { min-height: 56px; padding-left: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .search-panel select:last-child { border-bottom: 0; }
  .product-grid { grid-template-columns: 1fr 1fr; gap: 40px 12px; }
  .product-image img { padding: 22px; }
  .photo-pending { padding: 15px 13px 20px; }
  .photo-pending span { font-size: 8px; }
  .photo-pending strong { font-size: clamp(17px, 5vw, 26px); }
  .photo-pending small { margin-top: 9px; font-size: 6px; }
  .stock-badge { right: 8px; bottom: 8px; padding: 5px 6px; font-size: 8px; }
  .product-card h3 { min-height: 58px; font-size: 14px; }
  .compatibility { min-height: 34px; font-size: 10px; }
  .product-meta { min-height: 25px; gap: 3px 8px; font-size: 7px; line-height: 1.35; }
  .product-meta span + span::before { margin-right: 8px; }
  .tag { font-size: 8px; }
  .price { font-size: 13px; }
  .price-note { min-height: 48px; font-size: 9px; }
  .card-action { font-size: 10px; }
  .process h2, .about h2, .technical-note h2 { font-size: clamp(40px, 11vw, 56px); }
  .process-list li { grid-template-columns: 40px 1fr; gap: 16px; }
  .about-numbers > div { grid-template-columns: 100px 1fr; }
  .about-numbers strong { font-size: 38px; }
  .footer-main { grid-template-columns: 1fr; gap: 34px; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { flex-direction: column; gap: 10px; }
  .form-grid { grid-template-columns: 1fr; }
  .span-2 { grid-column: span 1; }
  .cart-drawer { padding: 22px; }
  .product-detail { padding: 22px; }
  .detail-facts { grid-template-columns: 1fr; }
  .detail-add { grid-template-columns: 1fr; }
}

@media (max-width: 380px) {
  .product-grid { grid-template-columns: 1fr; }
  .product-card h3, .compatibility, .price-note { min-height: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
