/* Y.F METAL - Static website styles */
:root {
  --red: #e60012;
  --red-dark: #c4000f;
  --dark: #1a1a1a;
  --dark-footer: #141414;
  --yellow: #f5c518;
  --navy: #0b1d3a;
  --navy-light: #1a3a6b;
  --gray-bg: #f5f5f5;
  --gray-light: #e8e8e8;
  --gray-text: #666;
  --white: #fff;
  --container: 1200px;
  --font: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: #333;
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-user-select: none;
  user-select: none;
}

input,
textarea,
select,
[contenteditable="true"] {
  -webkit-user-select: text;
  user-select: text;
}

img {
  -webkit-user-drag: none;
  user-drag: none;
  -webkit-touch-callout: none;
}

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

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== TOP BAR ===== */
.top-bar {
  background: var(--dark);
  color: var(--white);
  font-size: 14px;
  height: 40px;
  display: flex;
  align-items: center;
}

.top-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.top-contact {
  display: flex;
  align-items: center;
  gap: 30px;
}

.top-contact a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
}

.top-contact a:hover { color: var(--red); }

.top-contact svg { width: 14px; height: 14px; fill: var(--red); flex-shrink: 0; }

.top-utils {
  display: flex;
  align-items: center;
  gap: 15px;
}

.search-box {
  display: flex;
  align-items: center;
  background: #2a2a2a;
  border-radius: 2px;
  overflow: hidden;
}

.search-box input {
  background: transparent;
  border: none;
  color: var(--white);
  padding: 6px 12px;
  font-size: 13px;
  width: 160px;
  outline: none;
}

.search-box input::placeholder { color: #888; }

.search-box button {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px 10px;
  display: flex;
  align-items: center;
}

.search-box button svg { width: 16px; height: 16px; fill: var(--red); }

.top-divider {
  width: 1px;
  height: 20px;
  background: #444;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--white);
  color: var(--dark);
  padding: 4px 12px;
  border-radius: 2px;
  font-size: 13px;
  cursor: pointer;
  border: none;
}

.lang-switch svg { width: 12px; height: 12px; }

/* ===== MAIN NAV ===== */
.main-nav {
  background: var(--white);
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.main-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  gap: 16px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.nav-quick-contact {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 14px;
  border-left: 1px solid #e8e8e8;
}

.nav-contact-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid #d8dee8;
  background: var(--gray-bg);
  color: var(--navy);
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
}

.nav-contact-btn svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.nav-contact-btn:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
  transform: translateY(-1px);
}

.nav-contact-btn--whatsapp:hover {
  background: #128c7e;
  border-color: #128c7e;
  color: var(--white);
}

.back-top-fab {
  position: fixed;
  right: 20px;
  bottom: 24px;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(196, 30, 30, 0.35);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  z-index: 9000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s, visibility 0.25s, transform 0.25s, bottom 0.2s ease, background 0.2s, box-shadow 0.2s;
}

.back-top-fab.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-top-fab:hover {
  background: var(--navy);
  box-shadow: 0 8px 22px rgba(11, 29, 58, 0.35);
}

.back-top-fab.back-top-fab--above-footer {
  background: var(--navy);
  box-shadow: 0 6px 18px rgba(11, 29, 58, 0.35);
}

.back-top-fab.back-top-fab--above-footer:hover {
  background: var(--red);
  box-shadow: 0 8px 22px rgba(196, 30, 30, 0.35);
}

.back-top-fab svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.back-top-fab-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
}

.logo-icon {
  height: 56px;
  width: auto;
  display: block;
}

.logo-text {
  display: none;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0;
}

.nav-menu li {
  display: flex;
  align-items: center;
}

.nav-menu li + li::before {
  content: "/";
  color: #ccc;
  margin: 0 18px;
  font-weight: 300;
}

.nav-menu a {
  font-size: 15px;
  color: var(--dark);
  font-weight: 500;
  white-space: nowrap;
}

.nav-menu a:hover,
.nav-menu a.active { color: var(--red); }

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  margin: 5px 0;
  transition: 0.3s;
}

/* ===== HERO SLIDER ===== */
.hero-slider {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 5120 / 2520;
  background: var(--white);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease;
  z-index: 0;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

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

.hero-slider--static .slider-arrow {
  display: none;
}

/* Legacy slide layouts (unused) */
.slide-split {
  display: grid;
  grid-template-columns: 55% 45%;
  min-height: 520px;
  position: relative;
}

.slide-dark {
  background: linear-gradient(135deg, rgba(0,0,0,0.85) 0%, rgba(26,26,46,0.9) 50%, rgba(11,29,58,0.85) 100%),
    repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(255,255,255,0.02) 10px, rgba(255,255,255,0.02) 20px);
  background-color: #1a1a2e;
  padding: 60px 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  clip-path: polygon(0 0, 100% 0, 88% 100%, 0 100%);
  z-index: 2;
}

.slide-dark::after {
  content: "";
  position: absolute;
  right: -2px;
  top: 0;
  bottom: 0;
  width: 8px;
  background: var(--yellow);
  transform: skewX(-3deg);
}

.slide-dark h2 {
  font-size: 42px;
  font-weight: 900;
  color: var(--yellow);
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.slide-dark h3 {
  font-size: 36px;
  font-weight: 900;
  color: var(--white);
  text-transform: uppercase;
  margin-bottom: 8px;
  line-height: 1.1;
}

.slide-dark .tagline {
  color: var(--white);
  font-size: 14px;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 30px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--yellow);
  display: inline-block;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 10px;
}

.feature-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.feature-icon {
  width: 36px;
  height: 36px;
  background: rgba(245,197,24,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-icon svg { width: 18px; height: 18px; fill: var(--yellow); }

.feature-item h4 {
  color: var(--yellow);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.feature-item p {
  color: #ccc;
  font-size: 12px;
  line-height: 1.4;
}

.slide-light {
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  position: relative;
}

.slide-light .products-showcase {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  max-width: 400px;
}

.product-thumb {
  width: 80px;
  height: 80px;
  background: var(--gray-bg);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
}

/* Slide 2: Built to lift */
.slide-built {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 480px;
}

.built-left {
  background: var(--white);
  padding: 60px 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.built-left h2 {
  font-size: 38px;
  font-weight: 900;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 30px;
  text-transform: uppercase;
}

.built-products {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.built-product-img {
  width: 140px;
  height: 140px;
  background: var(--gray-bg);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
}

.built-right {
  background: var(--navy);
  clip-path: polygon(12% 0, 100% 0, 100% 100%, 0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  padding: 40px;
}

.built-icon {
  width: 60px;
  height: 60px;
  border: 2px solid rgba(255,255,255,0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.built-icon svg { width: 28px; height: 28px; stroke: var(--white); fill: none; stroke-width: 1.5; }

/* Slide 3: Slogan */
.slide-slogan {
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  text-align: center;
  padding: 80px 20px;
}

.slide-slogan h2 {
  font-size: 56px;
  font-weight: 900;
  color: var(--dark);
  letter-spacing: 8px;
}

.slide-slogan .more-btn {
  display: inline-block;
  margin-top: 30px;
  padding: 10px 40px;
  border: 2px solid var(--red);
  color: var(--red);
  font-size: 16px;
  position: relative;
  transition: all 0.2s;
}

.slide-slogan .more-btn:hover {
  background: var(--red);
  color: var(--white);
}

.slide-slogan .more-btn::after {
  content: "+";
  position: absolute;
  right: -12px;
  bottom: -12px;
  width: 24px;
  height: 24px;
  background: var(--red);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  border-radius: 2px;
}

/* Slider arrows */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: var(--red);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background 0.2s;
}

.slider-arrow:hover { background: var(--red-dark); }
.slider-arrow svg { width: 16px; height: 16px; fill: var(--white); }
.slider-arrow.prev { left: 15px; }
.slider-arrow.next { right: 15px; }

/* ===== SECTIONS COMMON ===== */
.section { padding: 70px 0; }
.section-title {
  text-align: center;
  font-size: 36px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 30px;
}

.section-desc {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px;
  color: var(--gray-text);
  font-size: 15px;
  line-height: 1.8;
}

/* ===== PRODUCTS ===== */
.products-section { background: var(--white); }

.products-section--page {
  padding-top: 48px;
}

.products-category-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin: -20px auto 44px;
  max-width: 900px;
}

.products-category-nav__link {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 4px;
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.products-category-nav__link:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.products-category-nav__link--rigging { background: #0b1d3a; }
.products-category-nav__link--turnbuckles { background: #1a4480; }
.products-category-nav__link--beam { background: #0f4c5c; }

.products-inquiry {
  background: var(--gray-bg);
  padding: 56px 0;
}

.products-inquiry__inner {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}

.products-inquiry__inner h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0;
  width: 100%;
}

.products-inquiry__inner p {
  font-size: 15px;
  color: var(--gray-text);
  line-height: 1.8;
  margin-bottom: 0;
  width: 100%;
}

.products-inquiry__actions {
  width: 100%;
  display: flex;
  justify-content: center;
}

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

.product-card {
  background: var(--gray-bg);
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.product-card-img {
  height: 180px;
  background: var(--gray-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  position: relative;
  overflow: hidden;
}

.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  padding: 0;
  background: var(--white);
  display: block;
}

.product-card-img .thumb {
  position: absolute;
  top: 15px;
  left: 15px;
  width: 60px;
  height: 60px;
  background: var(--white);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.product-card h3 {
  text-align: center;
  padding: 20px;
  font-size: 16px;
  font-weight: 600;
  color: var(--dark);
}

/* ===== CATEGORY PRODUCT CAROUSELS ===== */
.container-wide {
  max-width: 1280px;
}

.category-carousels {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.category-row {
  position: relative;
  scroll-margin-top: 96px;
}

.category-label {
  display: inline-block;
  padding: 10px 22px;
  color: var(--white);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 14px;
  border-radius: 0 4px 4px 0;
}

.category-label--rigging { background: #0b1d3a; }
.category-label--turnbuckles { background: #1a4480; }
.category-label--beam { background: #0f4c5c; }

.category-carousel {
  position: relative;
  padding: 0 48px;
}

.category-carousel-viewport {
  overflow: hidden;
  width: 100%;
}

.category-carousel-track {
  display: flex;
  gap: 16px;
  transition: transform 0.45s ease;
  will-change: transform;
}

.product-slot {
  flex: 0 0 260px;
  width: 260px;
  background: var(--white);
  border: 1px solid #e2e2e2;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.product-slot-image {
  width: 100%;
  height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  cursor: zoom-in;
  padding: 12px;
  box-sizing: border-box;
}

.product-slot-image.has-magnifier::after {
  content: "";
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 28px;
  height: 28px;
  background: rgba(11, 29, 58, 0.75) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M15.5 14h-.79l-.28-.27A6.47 6.47 0 0016 9.5 6.5 6.5 0 109.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z'/%3E%3C/svg%3E") center/16px no-repeat;
  border-radius: 50%;
  pointer-events: none;
  z-index: 3;
}

.product-magnifier-lens {
  position: absolute;
  width: 130px;
  height: 130px;
  border: 3px solid var(--red);
  border-radius: 50%;
  pointer-events: none;
  display: none;
  background-repeat: no-repeat;
  background-color: var(--white);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  z-index: 4;
}

.product-slot-image.is-zooming .product-magnifier-lens,
.product-detail-image.is-zooming .product-magnifier-lens {
  display: block;
}

.product-slot-image.is-zooming img,
.product-detail-image.is-zooming img {
  opacity: 0.35;
}

.product-slot-image img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
  display: block;
  margin: 0 auto;
  pointer-events: none;
  user-select: none;
}

.product-slot-spec {
  min-height: 64px;
  padding: 10px 8px 12px;
  font-size: 12px;
  line-height: 1.45;
  color: #444;
  text-align: center;
  background: var(--gray-bg);
  border-top: 1px solid #e8e8e8;
  white-space: pre-line;
  word-break: break-word;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.product-slot--empty .product-slot-image {
  background: var(--gray-bg);
  border-bottom: 1px dashed #ddd;
}

.product-slot--empty .product-slot-image span {
  font-size: 26px;
  font-weight: 700;
  color: #bbb;
}

.product-slot--empty .product-slot-spec {
  background: var(--gray-bg);
}

.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background 0.2s;
}

.carousel-nav:hover { background: var(--red-dark); }
.carousel-nav:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.carousel-nav svg {
  width: 16px;
  height: 16px;
  fill: var(--white);
}

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

/* ===== PRODUCT ZOOM MODAL ===== */
body.zoom-modal-open { overflow: hidden; }

.zoom-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.zoom-modal.open { display: flex; }

.zoom-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
}

.zoom-modal-panel {
  position: relative;
  z-index: 1;
  width: min(920px, 96vw);
  max-height: 92vh;
  background: var(--white);
  border-radius: 8px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.zoom-modal-close {
  position: absolute;
  top: 10px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: none;
  background: var(--gray-bg);
  border-radius: 50%;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  color: #333;
  z-index: 2;
}

.zoom-modal-close:hover { background: #e0e0e0; }

.zoom-modal-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.zoom-tool {
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid #ddd;
  background: var(--white);
  border-radius: 4px;
  cursor: pointer;
  font-size: 18px;
  font-weight: 700;
}

.zoom-tool:hover { border-color: var(--red); color: var(--red); }

.zoom-level {
  font-size: 14px;
  font-weight: 600;
  min-width: 48px;
  text-align: center;
}

.zoom-modal-stage {
  width: 100%;
  height: min(60vh, 520px);
  background: var(--gray-bg);
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  touch-action: none;
}

.zoom-modal-stage.is-dragging { cursor: grabbing; }

.zoom-modal-stage img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.08s linear;
  transform-origin: center center;
  user-select: none;
  pointer-events: none;
}

.zoom-modal-spec {
  font-size: 14px;
  color: #444;
  text-align: center;
  white-space: pre-line;
  min-height: 1.2em;
}

.zoom-modal-link {
  align-self: center;
  text-align: center;
}

/* ===== WHY CHOOSE US ===== */
.why-section { background: var(--gray-bg); }

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 50px;
  align-items: center;
}

.why-image {
  border-radius: 4px;
  overflow: hidden;
  background: var(--gray-light);
  min-height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.why-image img {
  width: 100%;
  height: 100%;
  min-height: 350px;
  object-fit: cover;
  display: block;
}

.why-image-placeholder {
  width: 100%;
  height: 100%;
  min-height: 350px;
  background: linear-gradient(135deg, #ddd 0%, #bbb 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 14px;
}

.factory-showcase-grid {
  align-items: stretch;
}

.factory-photo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  max-width: 900px;
  margin: 0 auto;
}

.factory-photo-grid--six {
  grid-template-columns: repeat(3, 1fr);
  max-width: 960px;
  gap: 14px;
}

.factory-gallery {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 960px;
  margin: 0 auto;
}

.factory-photo-grid--three {
  grid-template-columns: repeat(3, 1fr);
  max-width: none;
  gap: 14px;
}

.factory-photo-grid--two {
  grid-template-columns: repeat(2, 1fr);
  max-width: calc((100% - 28px) * 2 / 3 + 14px);
  margin: 0 auto;
  gap: 14px;
}

.factory-photo-card {
  margin: 0;
  border-radius: 4px;
  overflow: hidden;
  background: var(--gray-light);
  aspect-ratio: 4 / 3;
}

.factory-photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.why-content h2 {
  font-size: 32px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 35px;
  color: var(--dark);
}

.why-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.why-feature {
  display: flex;
  gap: 15px;
}

.why-feature-icon {
  width: 40px;
  height: 40px;
  background: var(--red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.why-feature-icon svg { width: 20px; height: 20px; fill: var(--white); }

.why-feature h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}

.why-feature p {
  font-size: 13px;
  color: var(--gray-text);
  line-height: 1.7;
}

/* ===== GLOBAL SECTION ===== */
.global-section { background: var(--white); }

.global-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}

.global-text h2 {
  font-size: 36px;
  font-weight: 900;
  color: var(--dark);
  margin-bottom: 25px;
}

.global-text .text-scroll {
  max-height: 280px;
  overflow-y: auto;
  padding-right: 15px;
  font-size: 14px;
  color: var(--gray-text);
  line-height: 1.9;
}

.global-text .text-scroll::-webkit-scrollbar { width: 4px; }
.global-text .text-scroll::-webkit-scrollbar-thumb { background: var(--red); border-radius: 2px; }

.global-map {
  position: relative;
  background: var(--gray-bg);
  border-radius: 8px;
  padding: 30px;
  min-height: 320px;
}

.global-map-canvas {
  position: relative;
  width: 100%;
}

.world-map-svg {
  display: block;
  width: 100%;
  height: auto;
}

.map-dot {
  position: absolute;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 3px rgba(196, 30, 58, 0.22);
  animation: pulse 2s infinite;
  pointer-events: none;
}

.map-dot--hq {
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  box-shadow: 0 0 0 4px rgba(196, 30, 58, 0.28);
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.65; transform: scale(0.92); }
}

.map-label {
  position: absolute;
  background: var(--red);
  color: var(--white);
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  border-radius: 3px;
  white-space: nowrap;
  pointer-events: none;
  transform: translate(-10%, -120%);
}

/* ===== STATS ===== */
.stats-bar {
  background: var(--white);
  padding: 40px 0 70px;
  border-top: 1px solid #eee;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}

.stat-item .number {
  font-size: 48px;
  font-weight: 900;
  color: var(--red);
  line-height: 1;
}

.stat-item .label {
  font-size: 14px;
  color: var(--gray-text);
  margin-top: 8px;
}

/* ===== ABOUT SECTION ===== */
.about-section { background: var(--white); padding: 70px 0; }

.about-text {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  font-size: 15px;
  color: var(--gray-text);
  line-height: 2;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--dark-footer);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.footer-top {
  padding: 50px 0 30px;
  position: relative;
}

.footer-watermark {
  position: absolute;
  top: 20px;
  left: 40px;
  opacity: 0.06;
}

.footer-watermark img { width: 200px; height: auto; }

.footer-divider {
  height: 1px;
  background: #333;
  margin-bottom: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 0.75fr) minmax(0, 1fr);
  gap: 40px 52px;
  align-items: start;
  position: relative;
  z-index: 1;
}

.footer-col {
  min-width: 0;
}

.footer-col-products {
  min-width: 0;
}

.footer-product-menu {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-product-menu-body {
  display: grid;
  grid-template-columns: minmax(120px, 140px) minmax(0, 1fr);
  gap: 12px 20px;
  align-items: start;
}

.footer-category-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-category-btn {
  background: transparent;
  border: 1px solid #444;
  color: #ccc;
  padding: 7px 10px;
  cursor: pointer;
  font-size: 12px;
  line-height: 1.35;
  border-radius: 4px;
  text-align: left;
  width: 100%;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.footer-category-btn:hover {
  color: var(--white);
  border-color: #666;
}

.footer-category-btn.is-active {
  border-color: var(--red);
  color: var(--white);
  background: rgba(196, 30, 30, 0.18);
}

.footer-product-panel {
  max-height: 220px;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: #555 transparent;
}

.footer-product-panel::-webkit-scrollbar {
  width: 6px;
}

.footer-product-panel::-webkit-scrollbar-thumb {
  background: #555;
  border-radius: 3px;
}

.footer-product-list li {
  margin-bottom: 9px;
}

.footer-product-list a {
  color: #ccc;
  font-size: 14px;
  line-height: 1.45;
  display: inline-block;
}

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

.footer-product-list a.is-current {
  color: var(--red);
}

.footer-all-products {
  display: inline-block;
  margin-top: 12px;
  color: var(--red);
  font-size: 14px;
  font-weight: 600;
}

.footer-all-products:hover {
  color: var(--white);
}

.footer-col h3 {
  color: var(--red);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
}

.footer-col ul li { margin-bottom: 10px; }

.footer-col ul a {
  color: #ccc;
  font-size: 14px;
}

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

.footer-contact p {
  font-size: 14px;
  color: #ccc;
  margin-bottom: 6px;
}

.footer-contact .contact-label {
  color: var(--red);
  font-weight: 600;
  margin-top: 15px;
  margin-bottom: 5px;
}

.footer-contact .footer-contact-title + .contact-label,
.footer-contact .footer-contact-title ~ .contact-label:first-of-type {
  margin-top: 0;
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.footer-social a {
  width: 32px;
  height: 32px;
  background: var(--red);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-social svg { width: 16px; height: 16px; fill: var(--white); }

.footer-bg-image {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 45%;
  height: 100%;
  background: linear-gradient(to left, transparent, rgba(20,20,20,0.5)),
    radial-gradient(ellipse at 80% 60%, rgba(230,0,18,0.08) 0%, transparent 60%);
  opacity: 0.6;
  pointer-events: none;
}

.footer-bottom {
  background: var(--red);
  padding: 15px 0;
  text-align: center;
  font-size: 13px;
}

.footer-bottom .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.footer-bottom a { color: var(--white); }
.footer-bottom a:hover { text-decoration: underline; }

/* ===== INNER PAGES ===== */
.page-banner {
  background: linear-gradient(135deg, var(--navy) 0%, #0d2847 100%);
  padding: 80px 0;
  text-align: center;
  color: var(--white);
}

.page-banner h1 {
  font-size: 40px;
  font-weight: 700;
}

.page-content {
  padding: 60px 0;
}

.page-content .container {
  max-width: 900px;
}

.page-content p {
  font-size: 15px;
  color: var(--gray-text);
  line-height: 2;
  margin-bottom: 20px;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 14px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: var(--font);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus { border-color: var(--red); }

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

.form-honey {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.btn-primary {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  border: none;
  padding: 12px 40px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
  line-height: 1.4;
}

.btn-primary:hover { background: var(--red-dark); }

/* ===== PRODUCT DETAIL PAGE ===== */
.product-detail {
  padding: 50px 0 70px;
}

.product-detail .container {
  max-width: 1000px;
}

.product-detail-header {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 40px;
  align-items: start;
  margin-bottom: 50px;
}

.product-detail-image {
  background: var(--white);
  border: 1px solid #eee;
  border-radius: 6px;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  cursor: zoom-in;
  min-height: 320px;
  box-sizing: border-box;
}

.product-detail-image.has-magnifier::after {
  content: "";
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 28px;
  height: 28px;
  background: rgba(11, 29, 58, 0.75) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M15.5 14h-.79l-.28-.27A6.47 6.47 0 0016 9.5 6.5 6.5 0 109.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z'/%3E%3C/svg%3E") center/16px no-repeat;
  border-radius: 50%;
  pointer-events: none;
  z-index: 3;
}

.product-detail-image.is-zooming img {
  opacity: 0.35;
}

.product-detail-image img {
  max-width: 100%;
  max-height: min(480px, 70vh);
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
  display: block;
  margin: 0 auto;
  pointer-events: none;
  user-select: none;
}

.product-detail-category {
  font-size: 13px;
  font-weight: 700;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.product-detail-intro h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.3;
  margin-bottom: 8px;
}

.product-detail-spec-bar {
  display: inline-flex;
  justify-content: flex-start;
  align-items: center;
  gap: 24px;
  padding: 10px 16px;
  margin-bottom: 14px;
  background: var(--white);
  border: 1px solid #e0e0e0;
  border-radius: 4px;
}

.product-detail-spec-item {
  font-size: 15px;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.2;
}

.product-detail-intro p {
  font-size: 15px;
  color: var(--gray-text);
  line-height: 1.8;
  margin-bottom: 24px;
}

.product-detail-section {
  margin-bottom: 40px;
  padding-top: 10px;
  border-top: 1px solid #eee;
}

.product-detail-section h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 16px;
}

.product-detail-section h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  margin: 20px 0 10px;
}

.product-detail-section > p {
  font-size: 15px;
  color: var(--gray-text);
  line-height: 1.8;
  margin-bottom: 12px;
}

.product-detail-list {
  margin: 0 0 12px 20px;
  color: var(--gray-text);
  line-height: 1.8;
}

.product-detail-list li {
  margin-bottom: 8px;
  font-size: 15px;
}

.related-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 16px;
}

.related-product-card {
  display: block;
  border: 1px solid #e8e8e8;
  border-radius: 6px;
  overflow: hidden;
  text-decoration: none;
  color: var(--dark);
  background: var(--white);
  transition: box-shadow 0.2s, border-color 0.2s;
}

.related-product-card:hover {
  border-color: var(--red);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.related-product-card img {
  width: 100%;
  height: 150px;
  object-fit: contain;
  object-position: center;
  padding: 8px;
  box-sizing: border-box;
  background: var(--white);
  display: block;
}

.related-product-card span {
  display: block;
  padding: 10px 8px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
  text-align: center;
  background: var(--gray-bg);
  border-top: 1px solid #e8e8e8;
}

.spec-table-wrap {
  overflow-x: auto;
  margin-bottom: 24px;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.spec-table th,
.spec-table td {
  border: 1px solid #ddd;
  padding: 12px 16px;
  text-align: left;
}

.spec-table th {
  background: var(--navy);
  color: var(--white);
  font-weight: 600;
  width: 35%;
}

.spec-table tbody tr:nth-child(even) {
  background: var(--gray-bg);
}

.product-safety {
  background: #fff8e6;
  border-left: 4px solid #f5c518;
  padding: 20px 24px;
  border-radius: 0 4px 4px 0;
}

.product-safety h4 {
  margin: 0 0 12px;
  color: var(--dark);
}

.product-safety ol {
  margin: 0 0 0 20px;
  color: var(--gray-text);
  line-height: 1.8;
}

.product-inquiry-section {
  background: var(--gray-bg);
  margin-top: 20px;
  padding: 40px;
  border-radius: 6px;
  border-top: none;
}

.product-inquiry-section h3 {
  margin-bottom: 8px;
}

.inquiry-form {
  max-width: 100%;
  margin-top: 24px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 20px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .slide-split { grid-template-columns: 1fr; }
  .slide-dark { clip-path: none; min-height: 400px; }
  .slide-light { min-height: 300px; }
  .slide-built { grid-template-columns: 1fr; }
  .built-right { clip-path: none; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid, .global-grid { grid-template-columns: 1fr; }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px 40px;
  }
  .footer-col-products {
    grid-column: 1 / -1;
  }
  .footer-product-menu-body {
    grid-template-columns: minmax(110px, 130px) minmax(0, 1fr);
    gap: 12px 16px;
  }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .product-detail-header { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .top-contact { gap: 15px; font-size: 12px; }
  .search-box input { width: 100px; }
  .nav-menu { display: none; }
  .nav-menu.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    gap: 15px;
  }
  .nav-menu.open li + li::before { display: none; }
  .mobile-toggle { display: block; }
  .nav-brand { gap: 10px; }
  .nav-quick-contact {
    gap: 6px;
    padding-left: 10px;
  }
  .nav-contact-btn {
    width: 32px;
    height: 32px;
  }
  .nav-contact-btn svg {
    width: 15px;
    height: 15px;
  }
  .back-top-fab {
    right: 14px;
    bottom: 16px;
    width: 44px;
    height: 44px;
  }
  .slide-dark h2 { font-size: 28px; }
  .slide-dark h3 { font-size: 24px; }
  .feature-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; }
  .why-features { grid-template-columns: 1fr; }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .footer-col-products {
    grid-column: auto;
  }
  .footer-product-menu-body {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .footer-category-nav {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .footer-category-btn {
    width: auto;
    flex: 1 1 auto;
  }
  .slide-slogan h2 { font-size: 32px; letter-spacing: 4px; }
  .form-row { grid-template-columns: 1fr; }
  .product-inquiry-section { padding: 24px 20px; }
  .product-detail-intro h2 { font-size: 22px; }
  .product-slot {
    flex: 0 0 200px;
    width: 200px;
  }
  .product-slot-image { height: 200px; }
  .product-slot-spec { min-height: 56px; font-size: 11px; }
  .category-carousel { padding: 0 40px; }
  .carousel-nav { width: 32px; height: 32px; }
  .products-category-nav { gap: 10px; margin-bottom: 32px; }
  .products-category-nav__link {
    padding: 10px 16px;
    font-size: 13px;
  }
  .products-inquiry__inner h2 { font-size: 22px; }
  .factory-photo-grid--six,
  .factory-photo-grid--three,
  .factory-photo-grid--two {
    grid-template-columns: repeat(2, 1fr);
    max-width: 520px;
  }
  .factory-gallery { max-width: 520px; }
}

/* News */
.news-list {
  display: grid;
  gap: 28px;
}

.news-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  padding: 24px;
  border: 1px solid var(--border-light, #e8e8e8);
  border-radius: 8px;
  background: #fff;
  transition: box-shadow 0.2s;
}

.news-card:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.news-card__image img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}

.news-card__date {
  font-size: 13px;
  color: var(--primary, #1a3a5c);
  font-weight: 600;
  margin-bottom: 8px;
}

.news-card__title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.4;
}

.news-card__title a {
  color: var(--dark, #1a1a1a);
  text-decoration: none;
}

.news-card__title a:hover {
  color: var(--primary, #1a3a5c);
}

.news-card__excerpt {
  font-size: 14px;
  color: var(--gray-text);
  line-height: 1.7;
  margin-bottom: 12px;
}

.news-card__read {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary, #1a3a5c);
  text-decoration: none;
}

.news-card__read:hover {
  text-decoration: underline;
}

.news-timeline {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border-light, #e8e8e8);
}

.news-timeline h2 {
  font-size: 22px;
  margin-bottom: 20px;
}

.news-article-meta {
  font-size: 14px;
  color: var(--gray-text);
  margin-bottom: 24px;
}

.news-article-image {
  margin-bottom: 28px;
}

.news-article-image img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 8px;
}

.news-article-content h2 {
  font-size: 22px;
  margin: 32px 0 16px;
  color: var(--dark, #1a1a1a);
}

.news-article-content ul {
  margin: 0 0 20px 20px;
  color: var(--gray-text);
  line-height: 1.9;
}

.news-article-content li {
  margin-bottom: 8px;
}

.news-article-content a {
  color: var(--primary, #1a3a5c);
  font-weight: 600;
}

.news-back-link {
  display: inline-block;
  margin-top: 32px;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary, #1a3a5c);
  text-decoration: none;
}

.news-back-link:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .news-card {
    grid-template-columns: 1fr;
  }
  .news-card__image img {
    height: 200px;
  }
}
