:root {
  --bg: #ffffff;
  --bg-soft: #f5f7fa;
  --bg-dark: #111827;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #e5e7eb;
  --primary: #174ea6;
  --primary-dark: #0f3675;
  --accent: #f59e0b;
  --radius: 18px;
  --shadow: 0 18px 45px rgba(17, 24, 39, 0.10);
  --max: 1180px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Pretendard", "Noto Sans KR", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.top-bar {
  background: var(--bg-dark);
  color: #e5e7eb;
  font-size: 14px;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
}

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.04em;
}

.logo img {
  width: 160px;
  height: 50px;
  object-fit: contain;
}

.nav {
  display: flex;
  align-items: center;
  gap: 34px;
  font-size: 16px;
  font-weight: 650;
}

.nav a {
  padding: 24px 0;
  color: #374151;
}

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

.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: -20px;
  display: none;
  min-width: 220px;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.dropdown:hover .dropdown-menu {
  display: grid;
  gap: 4px;
}

.dropdown-menu a {
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 15px;
}

.dropdown-menu a:hover {
  background: var(--bg-soft);
}

.mobile-menu-btn {
  display: none;
  border: 0;
  background: var(--primary);
  color: #fff;
  border-radius: 12px;
  padding: 10px 13px;
  font-weight: 800;
}

.hero {
  min-height: 500px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(17,24,39,0.86), rgba(17,24,39,0.45), rgba(17,24,39,0.10)),
    url("/assets/images/company/hero-factory.jpg") center/cover no-repeat;
  display: grid;
  align-items: center;
}

.hero-content {
  width: min(760px, 100%);
  padding: 90px 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.hero h1,
.page-hero h1 {
  margin: 0;
  font-size: clamp(38px, 5vw, 68px);
  line-height: 1.08;
  letter-spacing: -0.06em;
}

.hero p {
  margin: 24px 0 34px;
  font-size: 20px;
  color: #e5e7eb;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
  border: 1px solid transparent;
}

.btn.primary {
  background: var(--primary);
  color: #fff;
}

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

.btn.light {
  background: #fff;
  color: #111827;
}

.btn.outline {
  border-color: #d1d5db;
  color: #111827;
  background: #fff;
}

.section {
  padding: 92px 0;
}

.section.soft {
  background: var(--bg-soft);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 34px;
}

.section-title {
  margin: 0;
  font-size: clamp(30px, 3vw, 44px);
  line-height: 1.16;
  letter-spacing: -0.05em;
}

.section-desc {
  max-width: 620px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.grid {
  display: grid;
  gap: 24px;
}

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

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

.grid.cols-1 {
  grid-template-columns: repeat(1, 1fr);
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(17,24,39,0.04);
}

.card-body {
  padding: 24px;
}

.card h3 {
  margin: 0 0 10px;
  font-size: 23px;
  letter-spacing: -0.04em;
}

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

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

.card-body-product h3 {
  margin: 0 0 4px;
  font-size: 18px;
  letter-spacing: -0.04em;
}

.card-body-product p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.card-img {
  aspect-ratio: 4 / 3;
  background: #e5e7eb;
  object-fit: cover;
  width: 100%;
}

.card-design-img {
  aspect-ratio: 5 / 3;
  background: #e5e7eb;
  object-fit: cover;
  width: 100%;
}

.feature {
  padding: 28px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
}

.feature strong {
  display: block;
  font-size: 20px;
  margin-bottom: 8px;
}

.page-hero {
  padding: 48px 0;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(17,24,39,0.86), rgba(17,24,39,0.55)),
    url("../assets/images/company/factory-front.jpg") center/cover no-repeat;
}

.breadcrumb {
  margin-top: 18px;
  color: #d1d5db;
}

.product-detail {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 46px;
  align-items: center;
}

.product-image {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #e5e7eb;
}

.spec-list {
  display: grid;
  gap: 12px;
  margin: 24px 0;
}

.spec-list div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.spec-list span {
  color: var(--muted);
}

.table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}

.table th,
.table td {
  padding: 15px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.table th {
  background: #f9fafb;
  font-weight: 800;
}

.notice {
  padding: 22px 24px;
  border-radius: var(--radius);
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e3a8a;
}

.contact-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.contact-item {
  padding: 26px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #fff;
}

.footer {
  background: #111827;
  color: #d1d5db;
  padding: 54px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.4fr;
  gap: 30px;
}

.footer strong {
  color: #fff;
  font-size: 22px;
}

.footer small {
  color: #9ca3af;
}

.kakao-map-placeholder {
  min-height: 380px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: #e5e7eb;
  color: #6b7280;
  border: 1px solid var(--line);
  text-align: center;
  padding: 12px;
}

@media (max-width: 920px) {
  .top-bar { display: none; }

  .header-inner {
    height: auto;
    padding: 16px 0;
    align-items: flex-start;
  }

  .mobile-menu-btn {
    display: inline-flex;
  }

  .nav {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    width: 100%;
    padding: 16px 20px 24px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .nav.open {
    display: grid;
    gap: 4px;
  }

  .nav a {
    padding: 12px 0;
  }

  .dropdown-menu {
    position: static;
    display: grid;
    box-shadow: none;
    border: 0;
    padding: 0 0 0 16px;
  }

  .grid.cols-3,
  .grid.cols-2,
  .product-detail,
  .contact-box,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 560px;
  }

  .section {
    padding: 66px 0;
  }

  .section-head {
    display: block;
  }
}

@media (max-width: 520px) {
  .container {
    width: min(100% - 28px, var(--max));
  }

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

  .btn {
    width: 100%;
  }
}

/* Product navigation and paginated galleries */
.content-layout {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 34px;
  align-items: start;
}

.product-sidebar {
  position: sticky;
  top: 104px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 18px;
  box-shadow: 0 8px 24px rgba(17,24,39,0.04);
}

.product-sidebar-title {
  margin: 0 0 14px;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.category-group {
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.category-group:first-of-type { border-top: 0; }

.category-main {
  display: block;
  font-weight: 850;
  color: #111827;
  margin-bottom: 6px;
}

.category-main:hover,
.category-sub a:hover,
.category-sub a.active {
  color: var(--primary);
}

.category-sub {
  display: grid;
  gap: 5px;
  margin: 0;
  padding-left: 13px;
  list-style: none;
}

.category-sub a {
  display: block;
  color: var(--muted);
  font-size: 14px;
  padding: 2px 0;
}

.subcategory-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
  margin-bottom: 20px;
}

.subcategory-head h3 {
  margin: 0;
  font-size: 30px;
  letter-spacing: -0.05em;
}

.product-card-link {
  display: block;
  transition: transform .18s ease, box-shadow .18s ease;
}

.product-card-link:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
}

.pagination button {
  min-width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
}

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

.pagination button:disabled {
  opacity: .35;
  cursor: not-allowed;
}

@media (max-width: 920px) {
  .content-layout { grid-template-columns: 1fr; }
  .product-sidebar { position: static; }
  .category-sub { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
  .category-sub { grid-template-columns: 1fr; }
  .subcategory-head { display: block; }
  .subcategory-head h3 { font-size: 25px; }
}


/* v3 product navigation refinements */
.mobile-product-note { display: none; margin-bottom: 24px; }
.product-section[hidden] { display: none !important; }
.product-content { min-width: 0; }
.product-dropdown-menu .sub-mobile-link { padding-left: 24px; color: var(--muted); font-size: 14px; }
.product-list-grid { align-items: stretch; }
.product-list-grid .card { height: 100%; }

@media (max-width: 920px) {
  .product-sidebar { display: none; }
  .product-desktop-notice { display: none; }
  .mobile-product-note { display: block; }
  .product-list-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 14px; }
  .product-list-grid .card-body { padding: 14px; }
  .product-list-grid .card-body h3 { font-size: 17px; margin-bottom: 4px; }
  .product-list-grid .card-body p { font-size: 13px; line-height: 1.45; }
  .product-list-grid .card-img { aspect-ratio: 1 / 1; }
}

@media (max-width: 520px) {
  .product-list-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .pagination { gap: 6px; flex-wrap: wrap; }
  .pagination button { min-width: 34px; height: 34px; }
}


/* v4 refinements */
.product-detail-compact { align-items: start; }
.product-detail-compact h3 { margin-top: 0; font-size: 26px; letter-spacing: -0.04em; }
@media (max-width: 920px) {
  .nav.open {
    max-height: calc(100vh - 76px);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
  .product-dropdown-menu { max-height: none; }
  body.menu-open { overflow: hidden; }
}


/* simple01-test */
.product-detail .product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* accordion-sidebar-v2: 기존 제품목차 구조 유지 */
.product-sidebar .category-group {
  border-bottom: 1px solid var(--line);
  padding: 6px 0;
}

.product-sidebar .category-group:last-child {
  border-bottom: 0;
}

.product-sidebar .category-main {
  position: relative;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 12px 4px !important;
  font-weight: 850;
  color: var(--text);
  cursor: pointer;
}

.product-sidebar .category-main::after {
  content: "+";
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: var(--bg-soft);
  color: var(--primary);
  font-size: 18px;
  line-height: 1;
  flex: 0 0 auto;
}

.product-sidebar .category-group.open .category-main::after {
  content: "−";
}

.product-sidebar .category-sub {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0 0 10px 12px;
}

.product-sidebar .category-group.open .category-sub {
  display: grid;
  gap: 4px;
}

.product-sidebar .category-sub a {
  display: block;
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 15px;
}

.product-sidebar .category-sub a:hover,
.product-sidebar .category-sub a.active {
  background: var(--bg-soft);
  color: var(--primary);
  font-weight: 800;
}


/* header-mobile-accordion */
@media (min-width: 921px) {
  .header .dropdown-menu {
    display: none !important;
  }
}

@media (max-width: 920px) {
  .header .dropdown {
    display: block;
  }

  .header .dropdown > a {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .header .dropdown > a::after {
    content: "+";
    width: 24px;
    height: 24px;
    border-radius: 999px;
    display: inline-grid;
    place-items: center;
    background: var(--bg-soft);
    color: var(--primary);
    font-size: 18px;
    line-height: 1;
    flex: 0 0 auto;
  }

  .header .dropdown.open > a::after {
    content: "−";
  }

  .header .dropdown-menu {
    position: static !important;
    display: none !important;
    min-width: 0;
    padding: 4px 0 8px 14px !important;
    margin: 0;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
  }

  .header .dropdown.open > .dropdown-menu {
    display: grid !important;
    gap: 4px;
  }

  .header .mobile-subgroup {
    border-left: 2px solid var(--line);
    padding-left: 10px;
  }

  .header .mobile-subtoggle {
    width: 100%;
    border: 0;
    background: transparent;
    color: var(--text);
    padding: 10px 0;
    font: inherit;
    font-weight: 800;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    text-align: left;
  }

  .header .mobile-subtoggle::after {
    content: "+";
    width: 22px;
    height: 22px;
    border-radius: 999px;
    display: inline-grid;
    place-items: center;
    background: var(--bg-soft);
    color: var(--primary);
    font-size: 16px;
    line-height: 1;
  }

  .header .mobile-subgroup.open > .mobile-subtoggle::after {
    content: "−";
  }

  .header .mobile-subpanel {
    display: none;
    padding: 0 0 8px 10px;
  }

  .header .mobile-subgroup.open > .mobile-subpanel {
    display: grid;
    gap: 2px;
  }

  .header .mobile-subpanel a {
    padding: 8px 0 !important;
    color: var(--muted);
    font-size: 14px;
  }
}


/* product-detail construction gallery */
.product-construction-section {
  border-top: 1px solid var(--line);
}

.construction-photo-grid {
  align-items: stretch;
}

.construction-photo-card {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.04);
}

.construction-photo-media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #e5e7eb;
}

.construction-photo-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.construction-photo-media:hover img {
  transform: scale(1.035);
}

.construction-photo-placeholder {
  display: none;
  position: absolute;
  inset: 0;
  place-items: center;
  padding: 20px;
  color: var(--muted);
  font-weight: 800;
  text-align: center;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.72), rgba(229,231,235,0.9));
}

.construction-photo-media.is-missing img {
  display: none;
}

.construction-photo-media.is-missing .construction-photo-placeholder {
  display: grid;
}

@media (max-width: 920px) {
  .construction-photo-grid.grid.cols-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
}


/* inline-photo-gallery */
.inline-construction-gallery {
  margin-top: 48px;
}

.inline-construction-gallery .construction-gallery-head {
  margin-bottom: 24px;
}


/* hybrid-inline-product-data */
.inline-product-root .inline-detail-table {
  margin-top: 32px;
}

.inline-procurement-table {
  margin-top: 36px;
}

.inline-procurement-table h2 {
  margin: 0 0 18px;
  font-size: 24px;
  letter-spacing: -0.04em;
}

.construction-gallery-head h2 {
  margin: 0 0 0;
  font-size: 24px;
  letter-spacing: -0.04em;
}

/* company-intro factory slider */
.factory-slider {
  position: relative;
  max-width: 1040px;
  margin: 0 auto;
}

.factory-slider-viewport {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #111827;
  box-shadow: var(--shadow);
  outline: none;
  touch-action: pan-y;
}

.factory-slider-viewport:focus-visible {
  box-shadow:
    0 0 0 4px rgba(37, 99, 235, 0.18),
    var(--shadow);
}

.factory-slider-track {
  display: flex;
  width: 100%;
  transition: transform 0.42s ease;
  will-change: transform;
}

.factory-slide {
  flex: 0 0 100%;
  margin: 0;
  aspect-ratio: 16 / 9;
  background: #e5e7eb;
}

.factory-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
}

.factory-slider-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  padding: 0 0 4px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.64);
  color: #fff;
  font-size: 40px;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
  transition:
    background 0.2s ease,
    transform 0.2s ease;
  backdrop-filter: blur(8px);
}

.factory-slider-arrow:hover,
.factory-slider-arrow:focus-visible {
  background: rgba(17, 24, 39, 0.88);
  transform: translateY(-50%) scale(1.05);
}

.factory-slider-prev {
  left: 20px;
}

.factory-slider-next {
  right: 20px;
}

.factory-slider-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  margin-top: 20px;
}

.factory-slider-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
}

.factory-slider-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #cbd5e1;
  cursor: pointer;
  transition:
    width 0.22s ease,
    background 0.22s ease;
}

.factory-slider-dot.is-active {
  width: 28px;
  background: var(--primary);
}

.factory-slider-count {
  display: flex;
  gap: 4px;
  min-width: 42px;
  color: var(--muted);
  font-size: 14px;
}

.factory-slider-count strong {
  color: var(--text);
}

/* company-intro certificate gallery */
.certificate-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.certificate-card {
  position: relative;
  display: block;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.04);
  cursor: zoom-in;
}

.certificate-card img {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: contain;
  background: #f8fafc;
  transition:
    transform 0.28s ease,
    filter 0.28s ease;
}

.certificate-card-overlay {
  position: absolute;
  left: 50%;
  bottom: 24px;
  z-index: 1;
  padding: 10px 18px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.78);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
  opacity: 0;
  transform: translate(-50%, 10px);
  transition:
    opacity 0.24s ease,
    transform 0.24s ease;
  backdrop-filter: blur(8px);
}

.certificate-card:hover img,
.certificate-card:focus-visible img {
  transform: scale(1.025);
  filter: brightness(0.72);
}

.certificate-card:hover .certificate-card-overlay,
.certificate-card:focus-visible .certificate-card-overlay {
  opacity: 1;
  transform: translate(-50%, 0);
}

.certificate-card:focus-visible {
  outline: 4px solid rgba(37, 99, 235, 0.2);
  outline-offset: 3px;
}

/* same-page image lightbox */
.image-lightbox[hidden] {
  display: none;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: grid;
  place-items: center;
  padding: 32px;
  background: rgba(3, 7, 18, 0.88);
  opacity: 0;
  transition: opacity 0.2s ease;
  backdrop-filter: blur(5px);
}

.image-lightbox.is-open {
  opacity: 1;
}

.image-lightbox-dialog {
  position: relative;
  display: grid;
  place-items: center;
  max-width: min(920px, 94vw);
  max-height: 92vh;
}

.image-lightbox img {
  display: block;
  max-width: 100%;
  max-height: 88vh;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.48);
  object-fit: contain;
}

.image-lightbox-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0 0 4px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.82);
  color: #fff;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.image-lightbox-close:hover,
.image-lightbox-close:focus-visible {
  background: #111827;
}

body.image-lightbox-open {
  overflow: hidden;
}

@media (max-width: 920px) {
  .factory-slider-arrow {
    width: 46px;
    height: 46px;
    font-size: 34px;
  }

  .factory-slider-prev {
    left: 12px;
  }

  .factory-slider-next {
    right: 12px;
  }

  .certificate-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .certificate-card-overlay {
    bottom: 16px;
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

@media (max-width: 520px) {
  .factory-slider-viewport {
    border-radius: 16px;
  }

  .factory-slider-arrow {
    width: 40px;
    height: 40px;
    font-size: 30px;
  }

  .factory-slider-footer {
    margin-top: 15px;
  }

  .certificate-gallery {
    gap: 12px;
  }

  .certificate-card {
    border-radius: 14px;
  }

  .certificate-card-overlay {
    bottom: 10px;
    padding: 8px 12px;
    font-size: 12px;
  }

  .image-lightbox {
    padding: 14px;
  }

  .image-lightbox-dialog {
    max-width: 100%;
  }

  .image-lightbox img {
    max-height: 90vh;
    border-radius: 8px;
  }

  .image-lightbox-close {
    top: 8px;
    right: 8px;
    width: 40px;
    height: 40px;
    font-size: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .factory-slider-track,
  .factory-slider-arrow,
  .factory-slider-dot,
  .certificate-card img,
  .certificate-card-overlay,
  .image-lightbox {
    transition: none;
  }
}


/* example-page image lightbox trigger */
.example-lightbox-trigger {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  overflow: hidden;
}

.example-lightbox-trigger .card-img {
  transition:
    transform 0.28s ease,
    filter 0.28s ease;
}

.example-lightbox-overlay {
  position: absolute;
  left: 50%;
  bottom: 18px;
  z-index: 1;
  padding: 9px 16px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.78);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
  opacity: 0;
  transform: translate(-50%, 10px);
  transition:
    opacity 0.24s ease,
    transform 0.24s ease;
  backdrop-filter: blur(8px);
}

.example-lightbox-trigger:hover .card-img,
.example-lightbox-trigger:focus-visible .card-img {
  transform: scale(1.035);
  filter: brightness(0.72);
}

.example-lightbox-trigger:hover .example-lightbox-overlay,
.example-lightbox-trigger:focus-visible .example-lightbox-overlay {
  opacity: 1;
  transform: translate(-50%, 0);
}

.example-lightbox-trigger:focus-visible {
  outline: 4px solid rgba(37, 99, 235, 0.2);
  outline-offset: -4px;
}

@media (max-width: 920px) {
  .example-lightbox-overlay {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .example-lightbox-trigger .card-img,
  .example-lightbox-overlay {
    transition: none;
  }
}


/* product-list inline detail */
.product-section.is-inline-detail-open {
  scroll-margin-top: 112px;
}

.product-list-inline-detail[hidden] {
  display: none;
}

.product-list-inline-detail-head {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 24px;
}

.product-list-inline-back {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--primary);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.product-list-inline-back:hover,
.product-list-inline-back:focus-visible {
  color: var(--primary-dark);
  text-decoration: underline;
}

.product-list-inline-gallery {
  margin-top: 54px;
  padding-top: 46px;
  border-top: 1px solid var(--line);
}

.product-list-inline-gallery-head {
  margin-bottom: 24px;
}

.product-list-inline-detail .product-image img {
  width: 100%;
  height: auto;
}

@media (max-width: 920px) {
  .product-list-inline-detail-head {
    margin-bottom: 18px;
  }

  .product-list-inline-gallery {
    margin-top: 42px;
    padding-top: 36px;
  }
}

/* product-list inline detail hidden-state fix */
.product-section > .subcategory-head[hidden],
.product-section > .product-list-grid[hidden],
.product-section > .pagination[hidden],
.product-section > .product-list-inline-detail[hidden] {
  display: none !important;
}


/* shared product color-chart lightbox */
.color-chart-lightbox .image-lightbox-dialog {
  width: min(1100px, 94vw);
}

.color-chart-lightbox img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 88vh;
  object-fit: contain;
}

button.btn {
  font: inherit;
  cursor: pointer;
}


/* product photo same-page lightbox */
button.construction-photo-media {
  width: 100%;
  padding: 0;
  border: 0;
  color: inherit;
  font: inherit;
  cursor: zoom-in;
  text-align: left;
}

button.construction-photo-media:focus-visible {
  outline: 4px solid rgba(37, 99, 235, 0.24);
  outline-offset: -4px;
}

button.construction-photo-media:disabled {
  cursor: default;
}

.construction-photo-zoom {
  position: absolute;
  left: 50%;
  bottom: 18px;
  z-index: 2;
  padding: 9px 16px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.78);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
  opacity: 0;
  transform: translate(-50%, 10px);
  transition:
    opacity 0.24s ease,
    transform 0.24s ease;
  backdrop-filter: blur(8px);
}

.construction-photo-media:hover .construction-photo-zoom,
.construction-photo-media:focus-visible .construction-photo-zoom {
  opacity: 1;
  transform: translate(-50%, 0);
}

.construction-photo-media.is-missing .construction-photo-zoom {
  display: none;
}

.product-photo-lightbox .image-lightbox-dialog {
  max-width: min(1200px, 94vw);
}

.product-photo-lightbox img {
  display: block;
  max-width: 100%;
  max-height: 88vh;
  object-fit: contain;
}

@media (max-width: 920px) {
  .construction-photo-zoom {
    bottom: 12px;
    padding: 8px 13px;
    font-size: 12px;
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .construction-photo-zoom {
    transition: none;
  }
}


/* contact page */
.contact-page-head {
  max-width: 760px;
  margin-bottom: 34px;
}

.contact-page-head .section-desc {
  margin-bottom: 0;
}

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

.contact-channel-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.05);
}

.contact-channel-card.contact-channel-primary {
  border-color: #bfdbfe;
  background: linear-gradient(145deg, #eff6ff, #fff 72%);
}

.contact-channel-label {
  margin-bottom: 14px;
  color: var(--primary);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.contact-channel-card strong {
  max-width: 100%;
  color: var(--text);
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.2;
  letter-spacing: -0.04em;
  overflow-wrap: anywhere;
}

.contact-channel-card p {
  flex: 1;
  margin: 15px 0 24px;
  color: var(--muted);
}

.contact-email-address {
  font-size: clamp(20px, 2.2vw, 28px) !important;
}

.contact-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.contact-info-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  margin-top: 30px;
}

.contact-guide-card,
.contact-file-card {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.contact-guide-card h3,
.contact-file-card h3 {
  margin: 8px 0 22px;
  font-size: 26px;
  letter-spacing: -0.04em;
}

.contact-check-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-check-list li {
  display: grid;
  grid-template-columns: 126px minmax(0, 1fr);
  gap: 18px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

.contact-check-list li:last-child {
  border-bottom: 0;
}

.contact-check-list strong {
  color: var(--text);
}

.contact-check-list span {
  color: var(--muted);
}

.contact-file-card {
  background: var(--bg-soft);
}

.contact-file-card > p {
  margin: 0 0 22px;
  color: var(--muted);
}

.contact-file-note {
  display: grid;
  gap: 6px;
  margin-bottom: 24px;
  padding: 18px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
}

.contact-file-note span {
  color: var(--muted);
  font-size: 14px;
}

.copy-feedback {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 50;
  margin: 0;
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.94);
  color: #fff;
  font-weight: 800;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 14px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.copy-feedback.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 920px) {
  .contact-channel-grid,
  .contact-info-layout {
    grid-template-columns: 1fr;
  }

  .contact-channel-card,
  .contact-guide-card,
  .contact-file-card {
    padding: 26px;
  }
}

@media (max-width: 520px) {
  .contact-page-head {
    margin-bottom: 26px;
  }

  .contact-channel-grid {
    gap: 16px;
  }

  .contact-channel-card,
  .contact-guide-card,
  .contact-file-card {
    padding: 22px;
  }

  .contact-action-row {
    width: 100%;
  }

  .contact-check-list li {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .copy-feedback {
    bottom: 18px;
    width: calc(100% - 36px);
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .copy-feedback {
    transition: none;
  }
}


/* SEO and accessibility refinements */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.breadcrumb a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.breadcrumb a:hover {
  opacity: 0.82;
}

.breadcrumb [aria-current="page"] {
  color: #d1d5db;
}

.error-page-inner {
  max-width: 760px;
  text-align: center;
}

.error-code {
  display: block;
  margin-bottom: 12px;
  color: var(--primary);
  font-size: clamp(64px, 12vw, 124px);
  line-height: 1;
  letter-spacing: -0.08em;
}

.error-page .btn-row {
  justify-content: center;
}

@media (max-width: 520px) {
  .error-page .btn-row {
    display: grid;
    width: 100%;
  }
}
