:root {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-soft: #eef4ff;
  --text: #162033;
  --muted: #5d6b82;
  --line: #d9e1ef;
  --brand: #2054d7;
  --brand-dark: #163b95;
  --accent: #f59e0b;
  --success: #0f766e;
  --warning: #b45309;
  --radius-lg: 28px;
  --radius-md: 20px;
  --shadow: 0 18px 50px rgba(22, 32, 51, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

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

img {
  max-width: 100%;
  display: block;
}

.shell {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  background: #0d1728;
  color: #d4def2;
  font-size: 14px;
}

.topbar-inner,
.nav-row,
.section-heading,
.hero-layout,
.content-layout,
.intro-grid,
.footer-grid,
.detail-grid,
.quote-layout,
.breadcrumb-row,
.hero-actions,
.slider-dots,
.thumbnail-row,
.chip-row,
.product-card-foot,
.sidebar-head,
.carousel-actions {
  display: flex;
  gap: 16px;
}

.topbar-inner,
.nav-row,
.section-heading,
.sidebar-head,
.breadcrumb-row {
  justify-content: space-between;
  align-items: center;
}

.topbar-inner {
  padding: 10px 0;
}

.topbar-inner p {
  margin: 0;
}

.topbar-links {
  display: flex;
  gap: 18px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(244, 247, 251, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(217, 225, 239, 0.8);
}

.nav-row {
  padding: 18px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  font-weight: 700;
}

.brand small {
  display: block;
  color: var(--muted);
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-weight: 600;
  align-items: center;
}

.main-nav a:hover,
.text-link:hover {
  color: var(--brand);
}

.nav-item {
  position: relative;
}

.has-mega-menu > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.mega-menu {
  position: absolute;
  top: calc(100% + 18px);
  left: 50%;
  transform: translateX(-50%);
  width: min(960px, calc(100vw - 32px));
  padding-top: 10px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: 0.2s ease;
}

.has-mega-menu:hover .mega-menu,
.has-mega-menu:focus-within .mega-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mega-menu-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  padding: 24px;
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.mega-menu-column ul {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
}

.mega-menu-column li + li {
  margin-top: 8px;
}

.mega-parent-link {
  font-weight: 700;
  color: var(--brand);
}

.mega-menu-column p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.message-stack {
  padding-top: 20px;
}

.message {
  padding: 14px 18px;
  border-radius: 14px;
  margin-bottom: 10px;
}

.message-success {
  background: rgba(15, 118, 110, 0.12);
  color: var(--success);
}

.message-warning {
  background: rgba(180, 83, 9, 0.12);
  color: var(--warning);
}

.hero-section {
  padding: 0;
}

.hero-section .shell {
  width: 100%;
  max-width: none;
  margin: 0;
}

.hero-layout {
  align-items: stretch;
  min-height: 100vh;
  padding: 32px 16px;
}

.section-block {
  padding: 32px 0;
}

.hero-copy,
.hero-slider,
.sidebar-card,
.product-card,
.empty-box,
.info-panel,
.gallery-panel,
.detail-panel,
.quote-info,
.quote-form-panel {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.hero-copy,
.detail-panel,
.quote-info,
.quote-form-panel {
  padding: 36px;
}

.hero-copy {
  flex: 1.1;
  background: linear-gradient(140deg, #0f1f39, #2054d7);
  color: #fff;
}

.hero-copy h1,
.detail-panel h1,
.section-heading h2,
.intro-grid h2,
.quote-info h2 {
  margin: 0 0 16px;
  line-height: 1.15;
}

.hero-copy h1 {
  font-size: clamp(34px, 5vw, 56px);
}

.hero-description,
.detail-summary {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.88);
}

.detail-summary {
  color: var(--muted);
}

.section-kicker,
.slide-eyebrow,
.product-category {
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  color: var(--accent);
  font-weight: 700;
}

.highlight-list,
.check-list,
.footer-list,
.category-tree {
  margin: 0;
  padding: 0;
  list-style: none;
}

.highlight-list li,
.check-list li,
.footer-list li {
  margin-top: 10px;
}

.button,
.button-outline,
.carousel-button,
.thumb-button,
.variant-chip,
.variant-card {
  border: 0;
  cursor: pointer;
  transition: 0.2s ease;
}

.button,
.button-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 700;
}

.button {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
}

.button-outline {
  color: var(--brand);
  border: 1px solid rgba(32, 84, 215, 0.22);
  background: transparent;
}

.carousel-button {
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-weight: 700;
}

.button:hover,
.button-outline:hover,
.carousel-button:hover,
.thumb-button:hover,
.variant-chip:hover,
.variant-card:hover {
  transform: translateY(-1px);
}

.hero-slider {
  position: relative;
  flex: 1;
  overflow: hidden;
  min-height: 100vh;
  background: var(--surface);
}

.hero-slide {
  display: none;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(140deg, #0f1f39, #2054d7);
}

.hero-slide.is-active {
  display: flex;
  flex-direction: column;
  position: relative;
  min-height: 100%;
}

.hero-slide-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slide-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-slide-body {
  position: relative;
  z-index: 1;
  max-width: 560px;
  padding: 32px 28px 80px;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.hero-slide-body .slide-eyebrow {
  color: var(--accent);
  text-shadow: none;
}

.hero-slide-body h2 {
  margin: 0 0 16px;
  font-size: clamp(24px, 3vw, 36px);
}

.hero-slide-body p {
  margin: 0 0 20px;
  opacity: 0.95;
}

.hero-slide-body .button {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.slider-dots {
  position: absolute;
  left: 28px;
  bottom: 28px;
  z-index: 2;
}

.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: rgba(32, 84, 215, 0.2);
}

.slider-dot.is-active {
  background: var(--brand);
}

.carousel-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 5 * 18px) / 6);
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding-bottom: 4px;
  max-height: 320px;
}

.category-card {
  scroll-snap-align: start;
  background: var(--surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.category-card img,
.category-placeholder,
.product-card-media,
.product-card-media img,
.gallery-main,
.gallery-main img {
  aspect-ratio: 4 / 3;
}

.category-card img,
.product-card-media img,
.gallery-main img,
.thumb-button img,
.variant-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-card div {
  padding: 16px 18px 20px;
}

.category-placeholder,
.image-placeholder,
.gallery-main {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(32, 84, 215, 0.12), rgba(245, 158, 11, 0.14));
  color: var(--brand);
  font-size: 48px;
  font-weight: 700;
}

.content-layout,
.intro-grid,
.detail-grid,
.quote-layout {
  align-items: flex-start;
}

.content-layout {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 24px;
}

.sidebar-card {
  padding: 22px;
  position: sticky;
  top: 96px;
}

.category-tree li {
  margin-top: 8px;
}

.category-tree ul {
  list-style: none;
  padding-left: 16px;
  margin: 8px 0 0;
  border-left: 1px solid var(--line);
}

.category-tree a {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  color: var(--muted);
}

.category-tree a.is-selected,
.category-tree a:hover {
  background: var(--surface-soft);
  color: var(--brand);
}

.catalog-content {
  min-width: 0;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.secondary-grid {
  margin-top: 20px;
}

.product-card {
  overflow: hidden;
  border: 1px solid rgba(217, 225, 239, 0.95);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 60px rgba(22, 32, 51, 0.16);
}

.product-card-media {
  position: relative;
  display: block;
  padding: 18px 18px 0;
}

.product-card-media-inner {
  aspect-ratio: 4 / 3;
  border-radius: 22px;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(32, 84, 215, 0.12), transparent 34%),
    linear-gradient(180deg, #f9fbff, #edf3fb);
  display: grid;
  place-items: center;
}

.product-card-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 18px;
  transition: transform 0.25s ease;
}

.product-card:hover .product-card-media img {
  transform: scale(1.04);
}

.product-card-badge {
  position: absolute;
  top: 30px;
  left: 30px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(13, 23, 40, 0.82);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.product-card-body {
  padding: 20px;
}

.product-card h3 {
  margin: 0 0 10px;
  font-size: 22px;
}

.product-card p {
  margin: 0;
  color: var(--muted);
}

.product-card-body > p:not(.product-category) {
  min-height: 52px;
}

.product-card-foot {
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
}

.text-link {
  font-weight: 700;
}

.price-text,
.price-contact {
  font-size: 18px;
  color: var(--brand);
}

.price-contact {
  color: #dc2626;
}

.large {
  font-size: 32px;
}

.empty-box {
  padding: 28px;
}

.intro-grid,
.quote-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.info-panel {
  padding: 28px;
}

.breadcrumb-row {
  color: var(--muted);
  margin-bottom: 20px;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 24px;
}

.gallery-panel,
.quote-form-panel {
  padding: 24px;
}

.thumbnail-row {
  flex-wrap: wrap;
  margin-top: 18px;
}

.thumb-button {
  width: 84px;
  height: 84px;
  padding: 0;
  border-radius: 18px;
  overflow: hidden;
  background: transparent;
  border: 2px solid transparent;
}

.thumb-button.is-active {
  border-color: var(--brand);
}

.variant-group,
.variant-list,
.detail-description {
  margin-top: 28px;
}

.product-attribute-group + .product-attribute-group {
  margin-top: 18px;
}

.product-attribute-group h4 {
  margin: 0 0 10px;
  font-size: 16px;
}

.selection-summary,
.selected-variant {
  margin-top: 18px;
}

.selected-variant {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(32, 84, 215, 0.08);
  color: var(--brand-dark);
}

.selected-variant-inline {
  margin-bottom: 18px;
}

.selection-note {
  margin: 0;
  color: var(--muted);
}

.chip-row {
  flex-wrap: wrap;
}

.variant-chip,
.size-pill {
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-weight: 600;
}

.size-pill {
  display: inline-flex;
}

.variant-card {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  background: var(--surface-soft);
  border: 1px solid transparent;
  text-align: left;
  margin-top: 12px;
}

.variant-card.is-active,
.variant-chip.is-active {
  border-color: var(--brand);
  background: rgba(32, 84, 215, 0.08);
}

.variant-chip.is-active {
  color: var(--brand-dark);
}

.variant-card img {
  width: 72px;
  height: 72px;
  border-radius: 16px;
}

.color-swatch {
  width: 16px;
  height: 16px;
  display: inline-block;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  margin-right: 8px;
  vertical-align: middle;
}

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

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}

.form-field-full {
  grid-column: 1 / -1;
}

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #fff;
  font: inherit;
}

.form-field ul.errorlist {
  margin: 0;
  padding: 0;
  list-style: none;
  color: #b91c1c;
  font-size: 14px;
}

.form-errors ul {
  margin: 0 0 18px;
  padding: 14px 16px;
  list-style: none;
  color: #b91c1c;
  background: rgba(185, 28, 28, 0.08);
  border-radius: 16px;
}

.is-hidden {
  display: none !important;
}

.site-footer {
  margin-top: 24px;
  padding: 42px 0 56px;
  background: #0d1728;
  color: #d7e0ef;
}

.footer-grid {
  align-items: flex-start;
}

.footer-grid > div {
  flex: 1;
}

@media (max-width: 1024px) {
  .content-layout,
  .detail-grid,
  .quote-layout,
  .hero-layout,
  .intro-grid {
    grid-template-columns: 1fr;
    display: grid;
  }

  .sidebar-card {
    position: static;
  }

  .mega-menu {
    left: 0;
    transform: none;
    width: min(720px, calc(100vw - 32px));
  }

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

  .carousel-track {
    grid-auto-columns: calc((100% - 2 * 18px) / 3);
  }
}

@media (max-width: 760px) {
  .topbar-inner,
  .nav-row,
  .footer-grid,
  .product-card-foot,
  .section-heading {
    flex-direction: column;
    align-items: flex-start;
  }

  .main-nav,
  .topbar-links {
    flex-wrap: wrap;
  }

  .mega-menu {
    position: static;
    transform: none;
    width: 100%;
    padding-top: 8px;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    display: none;
  }

  .has-mega-menu:hover .mega-menu,
  .has-mega-menu:focus-within .mega-menu {
    display: block;
  }

  .mega-menu-grid {
    grid-template-columns: 1fr;
    padding: 18px;
  }

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

  .large {
    font-size: 26px;
  }

  .carousel-track {
    grid-auto-columns: calc((100% - 18px) / 2);
  }
}
