/* Louis Furniture — Industrial B2B Theme */
:root {
  --gray-950: #0f1114;
  --gray-900: #1a1d21;
  --gray-800: #2d3339;
  --gray-700: #434b54;
  --gray-600: #5c6670;
  --gray-500: #7a8490;
  --gray-400: #9aa3ad;
  --gray-300: #c5cbd1;
  --gray-200: #e3e6ea;
  --gray-100: #f0f2f4;
  --gray-50: #f8f9fa;
  --white: #ffffff;
  --accent: #3d4f5f;
  --max-width: 1200px;
  --header-height: 72px;
  --radius: 2px;
  --shadow: 0 1px 3px rgba(15, 17, 20, 0.08);
  --shadow-lg: 0 8px 24px rgba(15, 17, 20, 0.1);
  --font: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-zh: "Noto Sans SC", "PingFang SC", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font);
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body.lang-zh { font-family: var(--font-zh), var(--font); }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  width: min(100% - 2.5rem, var(--max-width));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  gap: 1.5rem;
}

.logo {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-950);
  white-space: nowrap;
}

.logo span {
  font-weight: 400;
  color: var(--gray-500);
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-desktop a {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gray-600);
  transition: color 0.2s;
}

.nav-desktop a:hover,
.nav-desktop a.active {
  color: var(--gray-950);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.lang-switcher {
  position: relative;
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gray-700);
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s;
}

.lang-toggle:hover { background: var(--gray-200); }

.lang-menu {
  display: none;
  position: absolute;
  top: calc(100% + 0.35rem);
  right: 0;
  min-width: 160px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius);
  overflow: hidden;
}

.lang-switcher.open .lang-menu { display: block; }

.lang-menu button {
  display: block;
  width: 100%;
  padding: 0.55rem 1rem;
  font-size: 0.8125rem;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--gray-700);
  transition: background 0.15s;
}

.lang-menu button:hover,
.lang-menu button.active {
  background: var(--gray-100);
  color: var(--gray-950);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--gray-800);
  transition: transform 0.2s, opacity 0.2s;
}

.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  display: none;
  position: fixed;
  inset: var(--header-height) 0 0 0;
  background: var(--white);
  padding: 1.5rem;
  border-top: 1px solid var(--gray-200);
  z-index: 99;
}

.nav-mobile.open { display: block; }

.nav-mobile a {
  display: block;
  padding: 0.85rem 0;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--gray-700);
  border-bottom: 1px solid var(--gray-100);
}

.nav-mobile a.active { color: var(--gray-950); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.btn-primary {
  background: var(--gray-950);
  color: var(--white);
  border-color: var(--gray-950);
}

.btn-primary:hover {
  background: var(--gray-800);
  border-color: var(--gray-800);
}

.btn-outline {
  background: transparent;
  color: var(--gray-950);
  border-color: var(--gray-300);
}

.btn-outline:hover {
  border-color: var(--gray-950);
  background: var(--gray-50);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Hero */
.hero {
  background: var(--gray-950);
  color: var(--white);
  padding: 5rem 0 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: end;
}

.hero-content { padding-bottom: 5rem; }

.hero-label {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

.hero p {
  font-size: 1.0625rem;
  color: var(--gray-300);
  max-width: 32rem;
  margin-bottom: 2rem;
}

.hero-image {
  aspect-ratio: 1 / 1;
  background: var(--white);
  border: 1px solid var(--gray-200);
  overflow: hidden;
  position: relative;
}

.hero-fallback {
  width: 100%;
  height: 100%;
  min-height: 280px;
}

.hero-carousel {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-viewport {
  width: 100%;
  height: 100%;
  overflow: hidden;
  touch-action: pan-y pinch-zoom;
}

.hero-track {
  display: flex;
  height: 100%;
  transition: transform 0.45s ease;
  will-change: transform;
}

.hero-slide {
  flex: 0 0 100%;
  height: 100%;
}

.hero-slide-link {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  background: var(--white);
}

.hero-slide-link img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.hero-slide-label {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  padding: 0.25rem 0.6rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-950);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--gray-200);
}

.hero-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 1px solid var(--gray-200);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--gray-950);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.hero-nav-prev { left: 0.65rem; }
.hero-nav-next { right: 0.65rem; }

.hero-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.65rem;
  display: flex;
  justify-content: center;
  gap: 0.35rem;
  z-index: 2;
}

.hero-dot {
  width: 0.4rem;
  height: 0.4rem;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.22);
  cursor: pointer;
}

.hero-dot.is-active {
  background: var(--gray-950);
  transform: scale(1.15);
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: var(--white);
}

.home-video-wrap {
  max-width: 960px;
  margin: 0 auto;
  border: 1px solid var(--gray-200);
  background: var(--gray-950);
  overflow: hidden;
}

.home-video-wrap video {
  display: block;
  width: 100%;
  height: auto;
}

/* Sections */
section { padding: 5rem 0; }

.section-header {
  margin-bottom: 3rem;
}

.section-label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 0.75rem;
}

.section-header h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--gray-950);
  margin-bottom: 0.75rem;
}

.section-header p {
  color: var(--gray-600);
  max-width: 36rem;
}

.bg-gray { background: var(--gray-50); }
.bg-dark { background: var(--gray-900); color: var(--white); }

.bg-dark .section-header .section-label { color: var(--gray-400); }

.bg-dark .section-header h2 { color: var(--white); }

.bg-dark .section-header p { color: var(--gray-400); }

/* Feature grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--gray-200);
  border: 1px solid var(--gray-200);
}

.feature-card {
  background: var(--white);
  padding: 2rem;
}

.feature-card .num {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--gray-400);
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray-950);
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.9375rem;
  color: var(--gray-600);
}

/* Product cards */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.product-card {
  border: 1px solid var(--gray-200);
  background: var(--white);
  transition: box-shadow 0.2s;
}

.product-card:hover { box-shadow: var(--shadow-lg); }

.product-card-image {
  aspect-ratio: 4/3;
  background: var(--gray-100);
  overflow: hidden;
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: var(--white);
  padding: 0.35rem;
  transition: transform 0.4s;
}

.product-card:hover .product-card-image img { transform: scale(1.03); }

.product-card-body { padding: 1.25rem 1.5rem 1.5rem; }

.product-tag {
  display: inline-block;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 0.5rem;
}

.product-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray-950);
  margin-bottom: 0.35rem;
}

.product-card p {
  font-size: 0.875rem;
  color: var(--gray-600);
}

.product-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.product-card-sku {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--gray-500);
  letter-spacing: 0.04em;
}

.catalog-category + .catalog-category {
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 1px solid var(--gray-200);
}

.catalog-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--gray-200);
}

.catalog-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-700);
  background: var(--white);
  border: 1px solid var(--gray-200);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.catalog-tab:hover {
  border-color: var(--gray-400);
  color: var(--gray-950);
}

.catalog-tab.active {
  color: var(--white);
  background: var(--gray-950);
  border-color: var(--gray-950);
}

.catalog-tab-count {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.08);
}

.catalog-tab.active .catalog-tab-count {
  background: rgba(255, 255, 255, 0.18);
}

.catalog-panel-header {
  margin-bottom: 1.5rem;
}

.text-muted { color: var(--gray-500); }

.catalog-loading {
  padding: 2rem 0;
  text-align: center;
}

.page-hero-compact { padding: 1.5rem 0 0; }

.detail-back {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-600);
  margin-bottom: 0.5rem;
}

.detail-back:hover { color: var(--gray-950); }

.detail-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  margin-bottom: 0.75rem;
}

.detail-breadcrumb-sep {
  color: var(--gray-400);
  user-select: none;
}

.detail-breadcrumb-current {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-950);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 0.45fr);
  gap: 2.5rem;
  align-items: start;
}

.detail-gallery {
  width: 100%;
  max-width: 640px;
}

.detail-gallery-main {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--white);
  border: 1px solid var(--gray-200);
  overflow: hidden;
}

.detail-gallery-fallback {
  width: 100%;
  height: 100%;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-carousel {
  position: relative;
  width: 100%;
  height: 100%;
}

.gallery-viewport {
  width: 100%;
  height: 100%;
  overflow: hidden;
  touch-action: pan-y pinch-zoom;
}

.gallery-track {
  display: flex;
  height: 100%;
  transition: transform 0.35s ease;
  will-change: transform;
}

.gallery-slide {
  flex: 0 0 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
}

.gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 1px solid var(--gray-200);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--gray-950);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s;
}

.gallery-nav:hover {
  background: var(--white);
  border-color: var(--gray-950);
}

.gallery-nav-prev { left: 0.75rem; }
.gallery-nav-next { right: 0.75rem; }

.gallery-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.75rem;
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  z-index: 2;
}

.gallery-dot {
  width: 0.45rem;
  height: 0.45rem;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

.gallery-dot.is-active {
  background: var(--gray-950);
  transform: scale(1.15);
}

.gallery-color-view {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
}

.gallery-color-view[hidden] {
  display: none;
}

.gallery-color-view img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.detail-gallery-main.is-color .gallery-carousel {
  visibility: hidden;
  pointer-events: none;
}

.detail-gallery-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.detail-thumb {
  width: 72px;
  height: 72px;
  padding: 0;
  border: 2px solid var(--gray-200);
  background: var(--white);
  cursor: pointer;
  overflow: hidden;
}

.detail-thumb.active { border-color: var(--gray-950); }

.detail-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-sku {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 0.5rem;
}

.detail-info h1 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 0.35rem;
}

.detail-category {
  font-size: 0.9375rem;
  color: var(--gray-600);
  margin-bottom: 1rem;
}

.detail-desc {
  font-size: 0.9375rem;
  color: var(--gray-700);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.detail-specs-section {
  padding-top: 0;
}

.detail-specs-section .detail-specs {
  margin: 0;
  padding: 0;
  background: none;
  border: none;
}

.detail-spec-line {
  font-size: 1.125rem;
  line-height: 1.85;
  margin: 0 0 0.65rem;
  color: var(--gray-950);
}

.detail-spec-line:last-child {
  margin-bottom: 0;
}

.detail-spec-label {
  font-weight: 700;
  color: var(--gray-900);
}

.detail-spec-value {
  font-weight: 500;
  color: var(--gray-800);
}

.detail-section { padding: 2.5rem 0; }

.detail-section h2 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.color-swatches {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 1rem;
}

.color-swatches-wrap {
  position: relative;
  padding: 0 2.75rem;
}

.color-swatches-wrap:not(.is-scrollable) {
  padding: 0;
}

.color-swatches-wrap:not(.is-scrollable) .color-swatches-nav {
  display: none;
}

.color-swatches-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 1rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  grid-template-columns: none;
}

.color-swatches-row::-webkit-scrollbar {
  display: none;
}

.color-swatches-row .color-swatch {
  flex: 0 0 100px;
  width: 100px;
}

.color-swatches-nav {
  position: absolute;
  top: calc(50% - 0.75rem);
  z-index: 2;
  transform: translateY(-50%);
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 1px solid var(--gray-200);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: var(--gray-950);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.color-swatches-nav:disabled {
  opacity: 0.35;
  cursor: default;
}

.color-swatches-nav-prev { left: 0; }
.color-swatches-nav-next { right: 0; }

.gallery-color-view .gallery-color-nav {
  z-index: 4;
}

.color-swatch {
  margin: 0;
  text-align: center;
}

.color-swatch-img {
  aspect-ratio: 1;
  border: 1px solid var(--gray-200);
  background: var(--gray-50);
  overflow: hidden;
}

.color-swatch-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.color-swatch figcaption {
  font-size: 0.75rem;
  color: var(--gray-600);
  margin-top: 0.35rem;
  line-height: 1.3;
}

.color-swatch-btn {
  cursor: pointer;
  border: 2px solid transparent;
  border-radius: 2px;
  padding: 0.15rem;
  transition: border-color 0.15s;
}

.color-swatch-btn:hover {
  border-color: var(--gray-300);
}

.color-swatch-btn.is-active {
  border-color: var(--gray-950);
}

.color-swatch-btn:focus-visible {
  outline: 2px solid var(--gray-950);
  outline-offset: 2px;
}

/* Scene gallery — below colors, tabbed by setting */
.scene-section {
  border-top: 1px solid var(--gray-200);
}

.scene-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.scene-tab {
  padding: 0.45rem 1rem;
  border: 1px solid var(--gray-200);
  background: var(--white);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-700);
  cursor: pointer;
  border-radius: 2px;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.scene-tab:hover {
  border-color: var(--gray-400);
}

.scene-tab.is-active {
  border-color: var(--gray-900);
  background: var(--gray-900);
  color: var(--white);
}

.scene-tab:focus-visible {
  outline: 2px solid var(--gray-900);
  outline-offset: 2px;
}

.scene-gallery-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-items: start;
  max-width: min(100%, 880px);
}

.scene-gallery-panel .detail-gallery-main {
  margin-bottom: 0;
  min-width: 0;
  width: 100%;
}

/* 右侧与主图同尺寸的方框，缩略图网格缩放填充 */
.scene-gallery-aside {
  aspect-ratio: 1 / 1;
  min-width: 0;
  border: 1px solid var(--gray-200);
  background: var(--gray-50);
  padding: 0.45rem;
  overflow: hidden;
  box-sizing: border-box;
}

.scene-gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.35rem;
  height: 100%;
  margin-top: 0;
  overflow-x: hidden;
  overflow-y: auto;
  align-content: start;
  -webkit-overflow-scrolling: touch;
}

.scene-gallery-thumbs .detail-thumb {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .scene-gallery-panel {
    grid-template-columns: 1fr;
    max-width: 100%;
  }

  .scene-gallery-aside {
    aspect-ratio: auto;
    max-height: none;
    padding: 0.5rem;
  }

  .scene-gallery-thumbs {
    grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
    height: auto;
    max-height: 240px;
  }
}

.detail-media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.detail-media-item {
  border: 1px solid var(--gray-200);
  background: var(--gray-50);
  aspect-ratio: 4/3;
  overflow: hidden;
}

.detail-media-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.detail-video-wrap video {
  width: 100%;
  max-width: 720px;
  border: 1px solid var(--gray-200);
  background: var(--black);
}

.detail-not-found {
  padding: 4rem 0 6rem;
  text-align: center;
}

.detail-not-found h1 { margin-bottom: 0.75rem; }

.detail-not-found-sku {
  font-weight: 700;
  color: var(--gray-700);
  margin: 1rem 0 1.5rem;
}

.resource-content {
  max-width: 42rem;
  line-height: 1.75;
  color: var(--gray-700);
}

.resource-content h2 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--gray-950);
  margin: 2rem 0 0.75rem;
}

.resource-content h2:first-child { margin-top: 0; }

.resource-content p { margin-bottom: 1rem; }

/* Markets */
.market-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.market-tag {
  padding: 0.4rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--gray-700);
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
}

.bg-dark .market-tag {
  background: var(--gray-800);
  border-color: var(--gray-700);
  color: var(--gray-300);
}

/* Stats bar */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--gray-200);
  border: 1px solid var(--gray-200);
}

.stat-item {
  background: var(--white);
  padding: 2rem;
  text-align: center;
}

.stat-item strong {
  display: block;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--gray-950);
  margin-bottom: 0.25rem;
}

.stat-item span {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gray-500);
}

/* CTA band */
.cta-band {
  padding: 4rem 0;
  background: var(--gray-100);
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
}

.cta-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.cta-band h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gray-950);
  margin-bottom: 0.35rem;
}

.cta-band p { color: var(--gray-600); }

/* Page hero (inner pages) */
.page-hero {
  padding: 4rem 0 3rem;
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
}

.page-hero h1 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--gray-950);
  margin-bottom: 0.75rem;
}

.page-hero p {
  color: var(--gray-600);
  max-width: 40rem;
  font-size: 1.0625rem;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.about-grid h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gray-950);
  margin-bottom: 1rem;
}

.about-grid p {
  color: var(--gray-600);
  margin-bottom: 1rem;
}

.about-grid p:last-child { margin-bottom: 0; }

.about-page-top {
  padding: 3rem 0 1rem;
}

.about-intro {
  max-width: 52rem;
}

.about-intro h1 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--gray-950);
  margin-bottom: 1.25rem;
}

.about-intro p {
  font-size: 0.9375rem;
  color: var(--gray-600);
  line-height: 1.75;
  margin-bottom: 1rem;
}

.about-advantages {
  display: grid;
  gap: 2rem;
}

.about-advantage {
  padding: 1.5rem 1.75rem;
  background: var(--white);
  border: 1px solid var(--gray-200);
}

.about-advantage h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray-950);
  margin-bottom: 0.75rem;
}

.about-advantage p {
  font-size: 0.9375rem;
  color: var(--gray-600);
  line-height: 1.75;
  margin-bottom: 0.75rem;
}

.about-advantage p:last-child { margin-bottom: 0; }

.about-list {
  margin: 0.5rem 0 1rem 1.25rem;
  padding: 0;
}

.about-list li {
  font-size: 0.9375rem;
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 0.35rem;
}

.about-vision {
  max-width: 52rem;
}

.about-vision h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gray-950);
  margin-bottom: 1.25rem;
}

.about-vision p {
  font-size: 0.9375rem;
  color: var(--gray-600);
  line-height: 1.75;
  margin-bottom: 1rem;
}

.timeline {
  border-left: 2px solid var(--gray-200);
  padding-left: 1.5rem;
}

.timeline-item {
  margin-bottom: 1.5rem;
}

.timeline-item strong {
  display: block;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--gray-950);
  margin-bottom: 0.25rem;
}

.timeline-item p {
  font-size: 0.9375rem;
  color: var(--gray-600);
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 4rem;
  align-items: start;
}

.contact-info h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gray-950);
  margin-bottom: 1.5rem;
}

.contact-item {
  margin-bottom: 1.5rem;
}

.contact-item label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 0.35rem;
}

.contact-item a,
.contact-item p {
  font-size: 1rem;
  color: var(--gray-800);
}

.contact-item a:hover { color: var(--gray-950); text-decoration: underline; }

.contact-highlight {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 1.5rem;
  padding: 0.75rem 1rem;
  background: var(--gray-50);
  border-left: 3px solid var(--gray-950);
}

.contact-item-note {
  font-size: 0.8125rem !important;
  color: var(--gray-500) !important;
  margin-top: 0.35rem;
  line-height: 1.5;
}

.contact-social {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--gray-200);
}

.contact-social h3 {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--gray-950);
  margin-bottom: 0.75rem;
}

.social-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.social-links li + li { margin-top: 0.35rem; }

.social-links a {
  font-size: 0.9375rem;
  color: var(--gray-700);
  transition: color 0.2s;
}

.social-links a:hover {
  color: var(--gray-950);
  text-decoration: underline;
}

.footer-social {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--gray-800);
}

.footer-social-label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 0.35rem;
}

.footer-social a {
  display: inline-block;
  font-size: 0.8125rem;
  padding: 0.15rem 0.5rem 0.15rem 0;
  margin-right: 0.25rem;
}

.contact-form {
  border: 1px solid var(--gray-200);
  padding: 2rem;
  background: var(--white);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-group { margin-bottom: 1rem; }

.form-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gray-600);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  font-size: 0.9375rem;
  font-family: inherit;
  color: var(--gray-800);
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gray-500);
  background: var(--white);
}

.form-group textarea { min-height: 120px; resize: vertical; }

.form-note {
  font-size: 0.8125rem;
  color: var(--gray-500);
  margin-top: 0.75rem;
}

.form-success {
  display: none;
  padding: 1rem;
  margin-top: 1rem;
  font-size: 0.875rem;
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  color: var(--gray-700);
}

.form-success.show { display: block; }

/* Spec table */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  margin-top: 1rem;
}

.spec-table th,
.spec-table td {
  padding: 0.65rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--gray-200);
}

.spec-table th {
  font-weight: 600;
  color: var(--gray-600);
  width: 40%;
  background: var(--gray-50);
}

.spec-table td { color: var(--gray-800); }

/* Footer */
.site-footer {
  background: var(--gray-950);
  color: var(--gray-400);
  padding: 3rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}

.footer-brand .logo {
  color: var(--white);
  margin-bottom: 0.75rem;
}

.footer-brand p {
  font-size: 0.875rem;
  line-height: 1.7;
  max-width: 22rem;
}

.footer-col h4 {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 1rem;
}

.footer-col a {
  display: block;
  font-size: 0.875rem;
  padding: 0.25rem 0;
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--white); }

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--gray-800);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8125rem;
}

/* Image fallback */
.img-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--gray-100) 0%, var(--gray-200) 100%);
  color: var(--gray-400);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-grid,
  .about-grid,
  .contact-grid { grid-template-columns: 1fr; }

  .hero-content { padding-bottom: 2rem; }
  .hero-image { max-height: 360px; }

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

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

  .catalog-nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 1rem;
    -webkit-overflow-scrolling: touch;
  }

  .catalog-tab { flex: 0 0 auto; }

  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-desktop { display: none; }
  .menu-toggle { display: flex; }

  .detail-gallery-main,
  .detail-gallery {
    max-width: 100%;
  }

  .feature-grid,
  .product-grid,
  .stats-bar { grid-template-columns: 1fr; }

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

  section { padding: 3.5rem 0; }
  .hero { padding-top: 3rem; }
}

/* Image lightbox */
.js-lightbox { cursor: zoom-in; }

body.lightbox-open { overflow: hidden; }

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-lightbox[hidden] { display: none !important; }

.image-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
}

.image-lightbox-stage {
  position: relative;
  z-index: 1;
  max-width: min(96vw, 1200px);
  max-height: 92vh;
  padding: 0 3rem;
}

.image-lightbox-img {
  display: block;
  max-width: 100%;
  max-height: 86vh;
  margin: 0 auto;
  object-fit: contain;
  background: var(--white);
}

.image-lightbox-caption {
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
  font-size: 0.875rem;
  margin: 0.75rem 0 0;
}

.image-lightbox-close,
.image-lightbox-nav {
  position: absolute;
  z-index: 2;
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  cursor: pointer;
  line-height: 1;
}

.image-lightbox-close {
  top: 1rem;
  right: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  font-size: 1.75rem;
}

.image-lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  font-size: 2rem;
}

.image-lightbox-prev { left: 1rem; }
.image-lightbox-next { right: 1rem; }

.image-lightbox-close:hover,
.image-lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.22);
}
