:root {
  --bg: #ffffff;
  --surface: #f7f9fb;
  --line: #e5e7eb;
  --text: #182230;
  --muted: #667085;
  --brand: #2563eb;
  --brand-dark: #1d4ed8;
  --accent: #0f766e;
  --shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.modal-open {
  overflow: hidden;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 0 7vw;
  border-bottom: 1px solid rgba(229, 231, 235, 0.86);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
}

.brand {
  display: grid;
  gap: 2px;
  min-width: 130px;
}

.brand span,
.eyebrow {
  color: var(--brand);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.brand strong {
  font-size: 20px;
  line-height: 1;
}

.nav {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--muted);
  font-weight: 700;
}

.nav a {
  white-space: nowrap;
}

.button.primary {
  color: #fff;
  background: var(--brand);
  border-color: var(--brand);
}

.language-buttons {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
}

.language-button {
  height: 34px;
  min-width: 48px;
  padding: 0 12px;
  border: 0;
  color: var(--muted);
  background: transparent;
}

.language-button.active {
  color: #fff;
  background: var(--brand);
}

.hero {
  position: relative;
  display: grid;
  min-height: calc(100vh - 76px);
  overflow: hidden;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, #f7fbff 0%, #eef6f4 100%);
}

.hero-media.has-image {
  background-position: center;
  background-size: cover;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,0.96) 0%, rgba(255,255,255,0.78) 42%, rgba(255,255,255,0.2) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: center;
  gap: 22px;
  width: min(620px, 86vw);
  padding: 7vw;
}

.hero h1 {
  margin: 0;
  font-size: clamp(52px, 9vw, 112px);
  line-height: 0.92;
  letter-spacing: 0;
}

.hero p {
  margin: 0;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.7;
}

.hero-actions,
.controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.button,
button,
select {
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-weight: 800;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
}

button,
select {
  padding: 0 16px;
}

button {
  cursor: pointer;
}

.button.ghost {
  color: var(--brand);
  border-color: rgba(37, 99, 235, 0.28);
}

.section {
  padding: 72px 7vw;
}

.intro,
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
}

.intro {
  border-bottom: 1px solid var(--line);
}

.intro p,
.section-heading p {
  max-width: 720px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

h2 {
  margin: 8px 0 0;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1;
  letter-spacing: 0;
}

.category-tabs {
  display: flex;
  gap: 10px;
  padding: 28px 0 18px;
  overflow-x: auto;
}

.category-tabs button {
  flex: 0 0 auto;
}

.category-tabs button.active {
  color: #fff;
  background: var(--text);
  border-color: var(--text);
}

.status {
  padding: 24px 0;
  color: var(--muted);
  font-weight: 700;
}

.status:empty {
  display: none;
}

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

.product-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.product-card:hover,
.product-card:focus-visible {
  border-color: rgba(37, 99, 235, 0.34);
  box-shadow: 0 22px 60px rgba(37, 99, 235, 0.12);
  outline: none;
  transform: translateY(-3px);
}

.product-image {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: #fff;
}

.product-body {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.product-title {
  margin: 0;
  font-size: 20px;
  line-height: 1.25;
}

.product-desc {
  min-height: 46px;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.size-row {
  display: grid;
  gap: 4px;
  padding: 12px;
  border-radius: 12px;
  background: var(--surface);
}

.size-row span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.size-row strong {
  color: var(--text);
  font-size: 14px;
  line-height: 1.45;
}

.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 6px;
}

.price {
  color: #c2410c;
  font-size: 22px;
  font-weight: 900;
}

.tag {
  color: var(--accent);
  font-weight: 800;
}

.contact {
  background: var(--surface);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.contact-card {
  display: grid;
  gap: 8px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.contact-card span {
  color: var(--muted);
  font-weight: 700;
}

.contact-card strong {
  font-size: 22px;
}

.detail-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
}

.detail-modal.open {
  display: block;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.48);
}

.detail-panel {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(940px, calc(100vw - 32px));
  max-height: min(760px, calc(100vh - 32px));
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 30px 90px rgba(15, 23, 42, 0.28);
  transform: translate(-50%, -50%);
}

.detail-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.92);
  font-size: 28px;
  line-height: 1;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr);
  gap: 0;
}

.detail-image {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 460px;
  object-fit: contain;
  background: #fff;
}

.detail-body {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 48px 40px;
}

.detail-body h2 {
  font-size: clamp(32px, 4vw, 52px);
}

.detail-price {
  color: #c2410c;
  font-size: 30px;
  font-weight: 900;
}

.detail-desc {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.detail-badges,
.spec-values {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.detail-badges span,
.spec-values em {
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-style: normal;
  font-weight: 800;
}

.spec-list {
  display: grid;
  gap: 16px;
  padding-top: 6px;
}

.spec-list h3 {
  margin: 0;
  font-size: 18px;
}

.spec-group {
  display: grid;
  gap: 10px;
}

.spec-group > span {
  color: var(--muted);
  font-weight: 900;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 26px 7vw;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

@media (max-width: 900px) {
  .site-header {
    padding: 0 20px;
  }

  .nav {
    gap: 12px;
    font-size: 14px;
  }

  .nav a {
    display: none;
  }

  .hero-content,
  .section {
    padding: 56px 20px;
  }

  .intro,
  .section-heading {
    display: grid;
    align-items: start;
  }

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

@media (max-width: 560px) {
  .brand strong {
    font-size: 17px;
  }

  .hero {
    min-height: 680px;
  }

  .hero-media::after {
    background: linear-gradient(180deg, rgba(255,255,255,0.96) 0%, rgba(255,255,255,0.82) 52%, rgba(255,255,255,0.36) 100%);
  }

  .hero p {
    font-size: 17px;
  }

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

  .detail-layout {
    grid-template-columns: 1fr;
  }

  .detail-image {
    min-height: 280px;
    max-height: 360px;
  }

  .detail-body {
    padding: 28px 20px 32px;
  }

  .footer {
    display: grid;
  }
}
