:root {
  --bg: #070707;
  --surface: #141414;
  --surface-2: #1d1a17;
  --ink: #fff7ed;
  --muted: #c9b9a7;
  --line: rgba(255, 122, 24, 0.26);
  --accent: #ff6a00;
  --accent-dark: #ff9b3d;
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.45);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 18% 0, rgba(255, 106, 0, 0.16), transparent 30%),
    linear-gradient(180deg, #0a0a0a, var(--bg) 360px);
  color: var(--ink);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
select {
  cursor: pointer;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto auto;
  gap: 18px;
  align-items: center;
  min-height: 72px;
  padding: 12px clamp(16px, 4vw, 42px);
  border-bottom: 1px solid rgba(255, 122, 24, 0.24);
  background: rgba(7, 7, 7, 0.94);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  width: 76px;
  height: 34px;
  filter: invert(1) contrast(1.1);
  object-fit: cover;
  object-position: left center;
}

.brand strong {
  display: block;
  font-size: 0.98rem;
  letter-spacing: 0;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px;
  background: #0d0d0d;
}

.top-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.9rem;
}

.top-nav a:hover {
  background: rgba(255, 106, 0, 0.14);
  color: var(--ink);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.language-select,
.sort-wrap select,
.search-wrap input,
.quote-form input,
.quote-form textarea {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  outline: none;
}

::placeholder {
  color: #9e8d7a;
  opacity: 1;
}

.language-select {
  min-height: 38px;
  border-radius: 999px;
  padding: 0 12px;
}

.language-select:focus,
.sort-wrap select:focus,
.search-wrap input:focus,
.quote-form input:focus,
.quote-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 106, 0, 0.18);
}

.cart-button,
.primary-button,
.primary-link,
.secondary-link,
.segments button,
.icon-button {
  border: 0;
  transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.cart-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--accent);
  color: #160b03;
  font-weight: 900;
}

.cart-button:hover,
.primary-button:hover,
.primary-link:hover {
  transform: translateY(-1px);
}

.cart-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #0b0b0b;
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 700;
}

main {
  width: min(1480px, 100%);
  margin: 0 auto;
}

.intro-band {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
  gap: 24px;
  align-items: stretch;
  padding: 36px clamp(16px, 4vw, 42px) 24px;
  background:
    linear-gradient(120deg, rgba(7, 7, 7, 0.92), rgba(18, 11, 6, 0.84)),
    url("assets/products/catalog-cover.jpg") center / cover no-repeat;
}

.intro-copy {
  max-width: 830px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
  letter-spacing: 0;
}

.intro-copy p:last-child,
.section-heading p,
.catalog-band p,
.contact-band p {
  color: var(--muted);
  line-height: 1.6;
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  align-self: end;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.facts div {
  min-width: 0;
  padding: 18px;
  background: rgba(17, 17, 17, 0.92);
}

.facts dt {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.facts dd {
  margin: 6px 0 0;
  font-size: 1.35rem;
  font-weight: 800;
}

.shop-area {
  padding: 28px clamp(16px, 4vw, 42px) 48px;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(260px, 0.6fr);
  gap: 24px;
  align-items: end;
  margin-bottom: 22px;
}

.section-heading h2,
.catalog-band h2,
.contact-band h2 {
  margin: 0;
  font-size: clamp(1.5rem, 2.8vw, 2.4rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.section-heading p {
  margin: 0;
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 0.55fr) minmax(260px, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 20px;
}

.search-wrap input {
  width: 100%;
  min-height: 44px;
  border-radius: 8px;
  padding: 0 14px;
}

.segments {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #0f0f0f;
}

.segments button {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  white-space: nowrap;
}

.segments button.active {
  background: var(--accent);
  color: #160b03;
  font-weight: 900;
}

.sort-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.86rem;
  white-space: nowrap;
}

.sort-wrap select {
  min-height: 42px;
  border-radius: 8px;
  padding: 0 12px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.product-card {
  display: grid;
  grid-template-rows: 210px auto;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.product-card:hover {
  border-color: rgba(255, 138, 42, 0.62);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.38);
}

.product-image {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  overflow: visible;
  background: #fff7ed;
}

.product-image img {
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  display: block;
  object-fit: contain;
  object-position: center;
  padding: 16px;
}

.badge {
  position: absolute;
  left: 12px;
  top: 12px;
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(11, 11, 11, 0.88);
  color: var(--accent-dark);
  font-size: 0.72rem;
  font-weight: 800;
}

.product-body {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: start;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.product-card h3 {
  min-height: 2.6em;
  margin: 0;
  font-size: 1rem;
  line-height: 1.28;
}

.product-copy {
  min-height: 3.2em;
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.specs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 58px;
  align-content: start;
}

.specs span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #0e0e0e;
  color: #f1dfca;
  font-size: 0.76rem;
  font-weight: 700;
}

.price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.price {
  color: var(--accent-dark);
  font-size: 1rem;
  font-weight: 900;
}

.moq {
  color: var(--muted);
  font-size: 0.78rem;
}

.card-actions {
  display: grid;
  grid-template-columns: 0.8fr 1fr;
  gap: 8px;
}

.secondary-button,
.outline-button {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0f0f0f;
  color: var(--ink);
  font-weight: 800;
}

.primary-button,
.primary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 8px;
  padding: 0 16px;
  background: var(--accent);
  color: #160b03;
  font-weight: 900;
}

.primary-button {
  width: 100%;
}

.secondary-button:hover,
.outline-button:hover,
.secondary-link:hover {
  border-color: rgba(255, 138, 42, 0.68);
  background: #1a120d;
}

.empty-state {
  padding: 30px 0;
  color: var(--muted);
  text-align: center;
}

.catalog-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  padding: 36px clamp(16px, 4vw, 42px);
  border-top: 1px solid var(--line);
  background: #0f0f0f;
}

.contact-band {
  padding: 42px clamp(16px, 4vw, 42px);
  border-top: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 106, 0, 0.06), transparent),
    #0b0b0b;
}

.catalog-band p {
  max-width: 780px;
  margin: 12px 0 0;
}

.contact-shell {
  display: grid;
  gap: 24px;
}

.contact-intro p {
  max-width: 860px;
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.contact-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  min-height: 164px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(20, 20, 20, 0.9);
}

.contact-card:hover {
  border-color: rgba(255, 138, 42, 0.68);
  background: #181818;
}

.contact-card-primary {
  border-color: rgba(255, 106, 0, 0.72);
  background: linear-gradient(135deg, rgba(255, 106, 0, 0.14), rgba(20, 20, 20, 0.96));
}

.contact-icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: var(--accent);
  color: #160b03;
  font-weight: 900;
}

.contact-card strong,
.contact-card small,
.contact-card em {
  display: block;
}

.contact-card strong {
  margin-bottom: 5px;
  font-size: 1rem;
}

.contact-card small {
  color: var(--accent-dark);
  font-weight: 900;
  overflow-wrap: anywhere;
}

.contact-card em {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.88rem;
  font-style: normal;
  line-height: 1.45;
}

.wechat-card {
  cursor: default;
}

.wechat-qr {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
  width: 58px;
  height: 58px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 106, 0, 0.2), rgba(0, 0, 0, 0.28)),
    #111;
}

.wechat-qr span {
  border-radius: 3px;
  background: var(--accent);
}

.wechat-qr span:nth-child(2),
.wechat-qr span:nth-child(3) {
  background: #ffb36b;
}

.secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 16px;
  background: #0f0f0f;
  color: var(--ink);
  font-weight: 800;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 40;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  width: min(440px, 100vw);
  height: 100dvh;
  padding: 18px;
  background: #101010;
  box-shadow: var(--shadow);
  transform: translateX(105%);
  transition: transform 0.2s ease;
}

.cart-drawer.open {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.drawer-header h2 {
  margin: 0;
}

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: #1f1f1f;
  color: var(--accent-dark);
  font-size: 1.5rem;
  line-height: 1;
}

.cart-items {
  display: grid;
  align-content: start;
  gap: 10px;
  overflow: auto;
  padding: 14px 2px;
}

.cart-line {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
}

.cart-line img {
  width: 58px;
  height: 58px;
  box-sizing: border-box;
  object-fit: contain;
  object-position: center;
  border-radius: 6px;
  background: #fff7ed;
}

.cart-line strong {
  display: block;
  font-size: 0.88rem;
}

.cart-line small {
  color: var(--muted);
}

.quantity-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.quantity-controls button {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #161616;
  color: var(--ink);
  font-weight: 900;
}

.cart-summary {
  border-top: 1px solid var(--line);
  padding: 14px 0;
}

.cart-summary p {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 6px;
}

.cart-summary small {
  color: var(--muted);
  line-height: 1.45;
}

.quote-form {
  display: grid;
  gap: 10px;
}

.quote-form label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.quote-form input,
.quote-form textarea {
  width: 100%;
  border-radius: 8px;
  padding: 10px;
  resize: vertical;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: rgba(10, 12, 16, 0.55);
}

.product-modal {
  position: fixed;
  inset: 50% auto auto 50%;
  z-index: 45;
  width: min(980px, calc(100vw - 28px));
  max-height: calc(100dvh - 28px);
  overflow: auto;
  border-radius: 8px;
  background: #111;
  box-shadow: var(--shadow);
  transform: translate(-50%, -46%) scale(0.98);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.product-modal.open {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  pointer-events: auto;
}

.modal-close {
  position: sticky;
  top: 12px;
  left: calc(100% - 50px);
  z-index: 2;
  margin: 12px 12px 0 auto;
}

.modal-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1fr);
  gap: 24px;
  padding: 0 24px 24px;
}

.modal-layout img {
  width: 100%;
  aspect-ratio: 4 / 3;
  box-sizing: border-box;
  object-fit: contain;
  object-position: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff7ed;
}

.modal-layout h2 {
  margin: 0;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  line-height: 1.05;
}

.modal-layout p {
  color: var(--muted);
  line-height: 1.6;
}

.modal-spec-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0;
}

.modal-spec-grid div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #171717;
}

.modal-spec-grid dt {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.modal-spec-grid dd {
  margin: 4px 0 0;
  font-weight: 800;
}

body.drawer-open,
body.modal-open {
  overflow: hidden;
}

@media (max-width: 1180px) {
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .toolbar {
    grid-template-columns: 1fr;
  }

  .sort-wrap {
    justify-self: start;
  }
}

@media (max-width: 840px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .top-nav {
    grid-column: 1 / -1;
    justify-content: center;
    order: 3;
  }

  .intro-band,
  .section-heading,
  .catalog-band,
  .modal-layout {
    grid-template-columns: 1fr;
  }

  .facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .catalog-band {
    align-items: start;
  }

  .contact-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .site-header {
    gap: 10px;
    min-height: auto;
  }

  .brand-mark {
    width: 56px;
  }

  .brand small,
  .top-nav {
    display: none;
  }

  .header-actions {
    gap: 6px;
  }

  .cart-button span:first-child {
    display: none;
  }

  .intro-band {
    padding-top: 24px;
  }

  h1 {
    font-size: 2rem;
  }

  .facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .facts div {
    padding: 12px 10px;
  }

  .facts dd {
    font-size: 1.08rem;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .product-card {
    grid-template-rows: 230px auto;
  }

  .card-actions {
    grid-template-columns: 1fr;
  }

  .modal-spec-grid {
    grid-template-columns: 1fr;
  }
}
