:root {
  --ink: #17212f;
  --muted: #617083;
  --line: #d9e1ea;
  --paper: #ffffff;
  --wash: #f4f7f9;
  --brand: #0d5a6b;
  --brand-2: #d93636;
  --accent: #f0b429;
  --deep: #0e2532;
}

/* i18n upgrade: country selector, RTL support and localized loading states */
.country-selector {
  position: relative;
  z-index: 80;
}

.country-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #fff;
  color: #223346;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(14, 37, 50, 0.06);
  transition: border-color 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.country-toggle:hover,
.country-selector.open .country-toggle {
  border-color: var(--brand);
  background: #f5f5f5;
  box-shadow: 0 12px 28px rgba(13, 90, 107, 0.12);
}

.country-flag {
  display: block;
  flex: 0 0 20px;
  width: 20px;
  height: 15px;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(14, 37, 50, 0.08);
}

.country-name {
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.country-arrow {
  color: #777;
  font-size: 12px;
  line-height: 1;
  transition: transform 0.25s ease;
}

.country-selector.open .country-arrow {
  transform: rotate(180deg);
}

.country-menu {
  position: absolute;
  z-index: 90;
  top: calc(100% + 8px);
  right: 0;
  width: 280px;
  max-height: min(520px, calc(100vh - 120px));
  overflow-y: auto;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(14, 37, 50, 0.18);
}

.country-group-label {
  display: none;
  padding: 9px 10px 6px;
  color: #758391;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.country-option-group + .country-option-group {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid rgba(217, 225, 234, 0.9);
}

.country-menu button {
  display: flex;
  align-items: center;
  gap: 4px;
  width: 100%;
  min-height: 36px;
  padding: 8px 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #223346;
  font-family: inherit;
  font-size: 14px;
  font-weight: 650;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.22s ease, color 0.22s ease, transform 0.22s ease;
}

.country-menu button:hover,
.country-menu button.is-selected {
  background: #eef6f8;
  color: var(--brand);
  transform: translateX(2px);
}

.country-option-flag {
  display: block;
  flex: 0 0 20px;
  width: 20px;
  height: 15px;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(14, 37, 50, 0.08);
}

.site-load-error {
  position: fixed;
  z-index: 9999;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  max-width: min(720px, calc(100vw - 32px));
  padding: 12px 16px;
  border-radius: 10px;
  background: #fff3f1;
  color: #9f1f16;
  box-shadow: 0 16px 42px rgba(33, 37, 41, 0.16);
  font-weight: 700;
}

html[dir="rtl"] body {
  direction: rtl;
}

html[dir="rtl"] .carousel-track,
html[dir="rtl"] .product-carousel,
html[dir="rtl"] .home-banner-carousel,
html[dir="rtl"] .factory-video-stage video,
html[dir="rtl"] .contact-qr,
html[dir="rtl"] .logo-mark {
  direction: ltr;
}

html[dir="rtl"] .main-nav,
html[dir="rtl"] .header-strip,
html[dir="rtl"] .factory-layout,
html[dir="rtl"] .why-choose-layout,
html[dir="rtl"] .about-section,
html[dir="rtl"] .contact-shell,
html[dir="rtl"] .site-footer {
  direction: rtl;
}

html[dir="rtl"] .dropdown {
  left: auto;
  right: 0;
  text-align: right;
}

html[dir="rtl"] .banner-copy,
html[dir="rtl"] .section-head,
html[dir="rtl"] .product-body,
html[dir="rtl"] .detail-body,
html[dir="rtl"] .why-choose-copy,
html[dir="rtl"] .about-section,
html[dir="rtl"] .inquiry-form,
html[dir="rtl"] .contact-main,
html[dir="rtl"] .contact-social {
  text-align: right;
}

html[dir="rtl"] .banner-copy {
  left: auto;
  right: 7vw;
}

html[dir="rtl"] .banner-embroidery .banner-copy,
html[dir="rtl"] .banner-heavy-duty .banner-copy,
html[dir="rtl"] .banner-leather .banner-copy {
  right: auto;
  left: 7vw;
}

html[dir="rtl"] .contact-detail {
  direction: rtl;
}

html[dir="rtl"] .contact-icon {
  transform: scaleX(-1);
}

html[dir="rtl"] .country-menu {
  left: 0;
  right: auto;
}

html[dir="rtl"] .country-menu button {
  text-align: right;
}

html[dir="rtl"] .country-menu button:hover,
html[dir="rtl"] .country-menu button.is-selected {
  transform: translateX(-2px);
}

html[dir="rtl"] input,
html[dir="rtl"] textarea,
html[dir="rtl"] select {
  text-align: right;
}

html[dir="rtl"] .detail-body dl {
  direction: rtl;
}

html[dir="rtl"] .factory-lightbox-counter {
  direction: ltr;
}

@media (max-width: 980px) {
  .country-selector {
    width: 100%;
  }

  .country-toggle {
    justify-content: center;
    width: 100%;
  }

  .country-menu {
    left: 0;
    right: 0;
    width: 100%;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--wash);
  font-family: Arial, "Microsoft YaHei", sans-serif;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

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

.header-strip {
  min-height: 34px;
  padding: 7px clamp(16px, 4vw, 56px);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: #e7f0f3;
  background: var(--deep);
  font-size: 13px;
}

.strip-links,
.nav-actions,
.hero-actions,
.admin-actions,
.footer-links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.strip-links a {
  transition: color 0.25s ease, transform 0.25s ease, text-decoration-color 0.25s ease;
}

.strip-links a:hover {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transform: translateY(-1px) scale(1.03);
}

.main-nav {
  min-height: 74px;
  padding: 0 clamp(16px, 4vw, 56px);
  display: flex;
  align-items: center;
  gap: 22px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 196px;
}

.logo-mark {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  font-weight: 800;
  overflow: hidden;
}

.logo-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}

.logo strong,
.logo small {
  display: block;
}

.logo small {
  color: var(--muted);
  margin-top: 2px;
}

.menu-toggle {
  display: none;
}

.nav-menu {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.nav-menu > a,
.nav-group > a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  color: #263545;
  font-size: 15px;
}

.nav-menu a:hover {
  color: var(--brand-2);
}

.nav-group {
  position: relative;
}

.dropdown {
  position: absolute;
  top: 46px;
  left: 0;
  min-width: 220px;
  display: none;
  padding: 8px;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(14, 37, 50, 0.14);
}

.dropdown a {
  display: block;
  padding: 11px 12px;
  border-radius: 6px;
  color: var(--ink);
}

.dropdown a:hover {
  background: #eef6f8;
}

.nav-group:hover .dropdown {
  display: block;
}

.lang-switch,
.quote-button,
.primary-action,
.secondary-action,
.inquiry-form button,
.admin-actions button {
  border: 1px solid var(--brand);
  border-radius: 6px;
  min-height: 42px;
  padding: 10px 15px;
  cursor: pointer;
}

.quote-button,
.primary-action,
.inquiry-form button,
.admin-actions button {
  color: #fff;
  background: var(--brand-2);
  border-color: var(--brand-2);
}

.lang-switch,
.secondary-action {
  color: var(--brand);
  background: #fff;
}

.hero {
  min-height: calc(100vh - 109px);
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.98fr);
  align-items: center;
  gap: clamp(24px, 5vw, 72px);
  padding: clamp(40px, 7vw, 86px) clamp(16px, 4vw, 56px);
  background:
    linear-gradient(90deg, rgba(14, 37, 50, 0.92), rgba(14, 37, 50, 0.72)),
    repeating-linear-gradient(115deg, #1e5661 0 14px, #214f5a 14px 28px);
  color: #fff;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--brand-2);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 13px;
}

.hero .eyebrow {
  color: var(--accent);
}

.hero h1 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: 0;
}

.hero p {
  max-width: 690px;
  color: #e3edf1;
  line-height: 1.72;
  font-size: 18px;
}

.hero-banner {
  display: block;
  min-height: calc(100vh - 109px);
  padding: 0;
  overflow: hidden;
  background: var(--deep);
}

.home-banner-carousel {
  position: relative;
  min-height: calc(100vh - 109px);
  overflow: hidden;
}

.home-banner-carousel .carousel-track,
.home-banner-carousel .carousel-slide {
  min-height: inherit;
}

.hero-slide {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--deep);
}

.hero-slide img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: none;
}

.hero-slide::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  width: min(52vw, 760px);
  pointer-events: none;
  background: linear-gradient(270deg, rgba(14, 37, 50, 0.2) 0%, rgba(14, 37, 50, 0.16) 68%, rgba(14, 37, 50, 0) 100%);
}

.banner-embroidery::after {
  background: linear-gradient(270deg, rgba(14, 37, 50, 0.18) 0%, rgba(14, 37, 50, 0.15) 68%, rgba(14, 37, 50, 0) 100%);
}

.banner-heavy-duty::after {
  background: linear-gradient(270deg, rgba(14, 37, 50, 0.2) 0%, rgba(14, 37, 50, 0.16) 68%, rgba(14, 37, 50, 0) 100%);
}

.banner-leather::after {
  background: linear-gradient(270deg, rgba(14, 37, 50, 0.2) 0%, rgba(14, 37, 50, 0.16) 68%, rgba(14, 37, 50, 0) 100%);
}

.banner-copy {
  position: absolute;
  z-index: 2;
  color: #fff;
  text-shadow: 0 2px 14px rgba(14, 37, 50, 0.28);
}

.banner-embroidery .banner-copy {
  top: 13%;
  right: clamp(28px, 6vw, 88px);
  width: min(520px, 35vw);
  color: #fff;
}

.banner-heavy-duty .banner-copy {
  top: 18%;
  right: clamp(28px, 6vw, 88px);
  width: min(540px, 35vw);
}

.banner-leather .banner-copy {
  top: 13%;
  right: clamp(28px, 6vw, 88px);
  left: auto;
  width: min(540px, 35vw);
}

.banner-copy .eyebrow {
  margin-bottom: 12px;
  color: var(--accent);
}

.banner-embroidery .banner-copy .eyebrow {
  color: var(--accent);
}

.hero-slide h1,
.hero-slide h2 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.02;
  letter-spacing: 0;
}

.banner-embroidery h2 {
  font-size: clamp(36px, 4.4vw, 56px);
}

.hero-slide p {
  max-width: 620px;
  color: inherit;
  line-height: 1.66;
  font-size: 18px;
}

.banner-copy ul {
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px 14px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  font-size: 16px;
  line-height: 1.45;
}

.banner-copy li {
  position: relative;
  padding-left: 18px;
}

.banner-copy li::before {
  content: "";
  position: absolute;
  top: 0.7em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--accent);
  transform: translateY(-50%);
}

.banner-leather .banner-copy ul {
  grid-template-columns: 1fr;
  max-width: 470px;
  font-size: 16px;
}

.banner-copy .hero-actions {
  margin-top: 26px;
}

.home-banner-carousel .carousel-arrow {
  width: 42px;
  min-height: 42px;
  border-color: rgba(255,255,255,0.34);
  color: var(--deep);
  background: rgba(255,255,255,0.82);
  box-shadow: 0 12px 30px rgba(0,0,0,0.18);
}

.home-banner-carousel .carousel-arrow:hover {
  background: #fff;
}

.home-banner-carousel .carousel-dots {
  bottom: 18px;
}

.home-banner-carousel .carousel-dots span {
  width: 8px;
  height: 8px;
  background: rgba(255,255,255,0.58);
}

.home-banner-carousel .carousel-dots span.active {
  background: #fff;
}

.category-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.category-band a {
  padding: 22px clamp(16px, 3vw, 36px);
  border-right: 1px solid var(--line);
}

.category-band strong,
.category-band span {
  display: block;
}

.category-band span {
  margin-top: 6px;
  color: var(--muted);
}

.section {
  padding: clamp(54px, 7vw, 92px) clamp(16px, 4vw, 56px);
}

.section-head {
  max-width: 860px;
  margin-bottom: 28px;
}

.section-head h2,
.about-section h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.12;
}

.section-head p:last-child,
.about-section p {
  color: var(--muted);
  line-height: 1.7;
}

.filter-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.filter-tabs button {
  border: 1px solid var(--line);
  background: #fff;
  min-height: 38px;
  padding: 8px 13px;
  border-radius: 999px;
  cursor: pointer;
}

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

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

.product-card,
.certificate-grid article,
.case-grid article,
.capability-list article {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.product-card {
  align-self: start;
}

.product-image {
  min-height: 218px;
  position: relative;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 42%, rgba(255,255,255,0.96) 0 30px, transparent 31px),
    repeating-linear-gradient(90deg, var(--tone) 0 16px, color-mix(in srgb, var(--tone), #111 18%) 16px 32px);
}

.product-image::before {
  content: "";
  width: 112px;
  height: 154px;
  border-radius: 14px;
  background:
    radial-gradient(circle at 50% 20px, #fff 0 12px, #dce4eb 13px 22px, transparent 23px),
    repeating-linear-gradient(0deg, var(--tone) 0 7px, color-mix(in srgb, var(--tone), #111 18%) 7px 14px);
  box-shadow: inset 0 0 0 10px rgba(255,255,255,0.24);
}

.real-product-image {
  min-width: 100%;
  height: 218px;
  background-size: contain;
  background-position: center;
  background-color: #f7fafb;
}

.real-product-image img,
.real-detail-image img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
}

.real-product-image img {
  object-fit: contain;
  background: #f7fafb;
}

.real-product-image img[src*="product-polyester-sewing"] {
  object-position: 50% 52%;
}

.real-product-image img[src*="polyester-sewing-gallery-02"] {
  object-position: 50% 56%;
}

.real-product-image img[src*="product-rayon-embroidery"] {
  object-position: 50% 48%;
}

.real-product-image img[src*="product-polyester-embroidery"] {
  object-position: 50% 50%;
}

.real-product-image img[src*="product-industrial-thread"] {
  object-position: 50% 54%;
}

.real-product-image img[src*="product-nylon-sewing"] {
  object-position: 50% 52%;
}

.real-product-image img[src*="color-card-packaging"] {
  object-position: 50% 50%;
}

.real-detail-image img {
  box-sizing: border-box;
  padding: 22px;
  object-fit: contain;
  background: #fff;
}

.real-product-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0) 54%, rgba(14,37,50,0.22));
}

.real-product-image::before {
  display: none;
}

.product-carousel {
  position: relative;
  overflow: hidden;
  background: #f7fafb;
}

.carousel-track {
  display: flex;
  transition: transform 260ms ease;
  will-change: transform;
}

.home-banner-carousel .carousel-track {
  transition: transform 520ms ease;
}

.carousel-slide {
  flex: 0 0 100%;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 34px;
  min-width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  border: 1px solid rgba(255,255,255,0.62);
  border-radius: 999px;
  color: var(--deep);
  background: rgba(255,255,255,0.78);
  cursor: pointer;
  transform: translateY(-50%);
  font-size: 28px;
  line-height: 1;
}

.product-card .carousel-arrow {
  width: 34px;
  min-height: 34px;
  border-color: rgba(14, 37, 50, 0.12);
  color: var(--deep);
  background: rgba(255,255,255,0.82);
}

.carousel-prev {
  left: 10px;
}

.carousel-next {
  right: 10px;
}

.carousel-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 7px;
}

.carousel-dots span {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(255,255,255,0.58);
}

.carousel-dots span.active {
  background: #fff;
}

.product-body {
  padding: 16px;
}

.product-body h3 {
  margin: 0 0 8px;
}

.product-body p,
.product-body li {
  color: var(--muted);
  line-height: 1.58;
}

.product-body ul {
  padding-left: 18px;
}

.product-card button {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--brand);
  color: var(--brand);
  background: #fff;
  border-radius: 6px;
  cursor: pointer;
}

.factory-section,
.inquiry-section,
.admin-section {
  background: #fff;
}

.factory-layout,
.about-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: center;
}

.factory-photo {
  min-height: 460px;
  display: grid;
  place-items: center;
  color: #fff;
  background:
    linear-gradient(rgba(13, 90, 107, 0.38), rgba(14, 37, 50, 0.72)),
    repeating-linear-gradient(90deg, #b7c6ce 0 34px, #d5dde2 34px 68px);
  border-radius: 8px;
}

.real-factory-photo {
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.real-factory-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(13, 90, 107, 0.12), rgba(14, 37, 50, 0.62));
}

.factory-photo span {
  position: relative;
  z-index: 1;
  padding: 10px 14px;
  background: rgba(14, 37, 50, 0.74);
}

.factory-media-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.factory-media-grid figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.factory-media-grid img,
.factory-media-grid video,
.case-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.factory-media-grid figcaption {
  padding: 10px 12px;
  color: var(--muted);
  font-size: 14px;
}

.factory-lightbox-trigger {
  cursor: zoom-in;
}

.factory-video-trigger {
  cursor: zoom-in;
}

.factory-video-trigger video {
  cursor: pointer;
}

.factory-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1600;
  display: grid;
  place-items: center;
  padding: clamp(24px, 4vw, 56px);
  background: rgba(3, 12, 18, 0);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, background 0.3s ease;
}

.factory-lightbox[hidden] {
  display: none;
}

.factory-lightbox.is-open {
  background: rgba(3, 12, 18, 0.78);
  opacity: 1;
  pointer-events: auto;
}

.factory-lightbox-stage {
  position: relative;
  display: grid;
  gap: 14px;
  justify-items: center;
  margin: 0;
  max-width: min(1120px, 88vw);
  max-height: min(760px, 82vh);
  transform: scale(0.96);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.factory-lightbox.is-open .factory-lightbox-stage {
  transform: scale(1);
  opacity: 1;
}

.factory-lightbox-stage.is-switching {
  transform: scale(0.985);
  opacity: 0.28;
}

.factory-lightbox-stage img {
  display: block;
  max-width: min(1120px, 88vw);
  max-height: min(720px, 78vh);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.36);
  cursor: zoom-out;
}

.factory-lightbox-stage figcaption {
  min-height: 20px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  text-align: center;
}

.factory-lightbox-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  color: #102738;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.factory-lightbox-arrow:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.04);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.factory-lightbox-prev {
  left: clamp(16px, 4vw, 58px);
}

.factory-lightbox-next {
  right: clamp(16px, 4vw, 58px);
}

.factory-lightbox-counter {
  position: absolute;
  left: 50%;
  bottom: clamp(18px, 4vw, 38px);
  padding: 7px 14px;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  font-size: 14px;
  backdrop-filter: blur(12px);
  transform: translateX(-50%);
}

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

.factory-video-modal {
  position: fixed;
  inset: 0;
  z-index: 1610;
  display: grid;
  place-items: center;
  padding: clamp(24px, 4vw, 56px);
  background: rgba(3, 12, 18, 0);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, background 0.3s ease;
}

.factory-video-modal[hidden] {
  display: none;
}

.factory-video-modal.is-open {
  background: rgba(3, 12, 18, 0.82);
  opacity: 1;
  pointer-events: auto;
}

.factory-video-stage {
  display: grid;
  gap: 14px;
  justify-items: center;
  margin: 0;
  max-width: min(1120px, 90vw);
  transform: scale(0.96);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.factory-video-modal.is-open .factory-video-stage {
  transform: scale(1);
  opacity: 1;
}

.factory-video-stage video {
  display: block;
  width: min(1120px, 90vw);
  max-height: min(720px, 78vh);
  background: #000;
  border-radius: 8px;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.36);
}

.factory-video-stage p {
  margin: 0;
  min-height: 20px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  text-align: center;
}

body.factory-video-open {
  overflow: hidden;
}

.capability-list {
  display: grid;
  gap: 14px;
}

.capability-list article,
.certificate-grid article,
.case-grid article {
  padding: 18px;
}

.case-grid article {
  padding: 0;
}

@media (hover: hover) and (pointer: fine) and (min-width: 981px) {
  .case-grid article {
    position: relative;
    z-index: 0;
    transition:
      transform 0.3s ease,
      box-shadow 0.3s ease,
      border-color 0.3s ease;
    will-change: transform;
  }

  .case-grid article:hover {
    z-index: 2;
    transform: scale(1.06);
    box-shadow: 0 18px 38px rgba(14, 37, 50, 0.16);
    border-color: rgba(13, 90, 107, 0.22);
  }
}

.case-grid article strong,
.case-grid article p {
  display: block;
  padding-left: 18px;
  padding-right: 18px;
}

.case-grid article strong {
  padding-top: 16px;
}

.case-grid article p {
  padding-bottom: 18px;
}

.certificate-grid span {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 14px;
  color: #fff;
  background: var(--brand);
  border-radius: 999px;
  font-weight: 800;
}

.why-choose-section {
  background: #fff;
}

.why-choose-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.why-choose-copy h2 {
  max-width: 760px;
  margin-bottom: 14px;
}

.why-choose-copy h3 {
  max-width: 760px;
  margin: 0 0 20px;
  color: var(--brand);
  font-size: clamp(20px, 2.4vw, 30px);
  line-height: 1.28;
}

.why-choose-copy p {
  max-width: 760px;
  color: var(--muted);
  line-height: 1.78;
}

.why-choose-lists {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(220px, 0.88fr);
  gap: 18px;
  margin-top: 24px;
}

.why-choose-lists > div {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.why-choose-lists strong {
  display: block;
  margin-bottom: 12px;
  color: var(--deep);
  font-size: 17px;
}

.why-choose-lists ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
}

.why-choose-lists li {
  position: relative;
  padding-left: 18px;
  line-height: 1.45;
}

.why-choose-lists li::before {
  content: "";
  position: absolute;
  top: 0.68em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--brand-2);
  transform: translateY(-50%);
}

.why-choose-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 26px;
}

.why-choose-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 12px;
  color: var(--deep);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
}

.why-choose-media {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--deep);
  box-shadow: 0 22px 54px rgba(14, 37, 50, 0.16);
}

.why-choose-media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 560px;
  object-fit: contain;
  object-position: center;
  background: #e8eef2;
}

.why-choose-media::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 38%;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(14,37,50,0), rgba(14,37,50,0.32));
}

.why-choose-glass-card {
  position: absolute;
  right: 22px;
  bottom: 22px;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  width: min(420px, calc(100% - 44px));
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 8px;
  background: rgba(14, 37, 50, 0.42);
  backdrop-filter: blur(12px);
  box-shadow: 0 16px 42px rgba(0,0,0,0.18);
}

.why-choose-glass-card span {
  display: grid;
  place-items: center;
  min-height: 74px;
  padding: 14px 10px;
  color: #fff;
  background: rgba(255,255,255,0.08);
  font-weight: 800;
  text-align: center;
}

.cases-section {
  background: #f9fbfc;
}

.about-section {
  background: var(--deep);
  color: #fff;
}

.about-section p,
.about-section .eyebrow {
  color: #dbe7ec;
}

.about-section .eyebrow {
  margin-bottom: 10px;
  font-size: 13px;
}

.about-section .about-title {
  margin-bottom: 10px;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  line-height: 1.16;
}

.about-section p:not(.eyebrow) {
  max-width: 680px;
  margin: 0 0 10px;
  line-height: 1.82;
}

.about-section .about-lead {
  margin-top: 10px;
  color: #fff;
  font-size: 1.12em;
  font-weight: 800;
  line-height: 1.58;
}

.about-section .about-support {
  margin-bottom: 0;
  color: #c6d6dd;
  line-height: 1.74;
}

.about-section .about-highlight {
  display: inline;
  color: var(--accent);
  font-size: 1.15em;
  font-weight: 700;
  line-height: 1.1;
  vertical-align: baseline;
}

.about-section .about-highlight-oem {
  display: inline;
  color: var(--accent);
  font-size: 1.09em;
  font-weight: 900;
  line-height: 1;
  vertical-align: baseline;
}

.stats {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.stats div {
  padding: 18px;
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.08);
}

.stats dt {
  font-size: 36px;
  font-weight: 800;
}

.stats dd {
  margin: 8px 0 0;
  color: #dbe7ec;
}

.inquiry-form {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  max-width: 1120px;
}

.inquiry-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 14px;
}

.inquiry-form input,
.inquiry-form select,
.inquiry-form textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
  color: var(--ink);
  background: #fff;
}

.inquiry-form textarea {
  min-height: 116px;
  resize: vertical;
}

.wide {
  grid-column: 1 / -1;
}

.form-status {
  align-self: center;
  margin: 0;
  color: var(--brand);
}

.contact-section {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: 676px;
  padding: 72px 80px 0;
  scroll-margin-top: 118px;
  color: #173f60;
  background: url("/media/images/contact-us-background.jpg") center / cover no-repeat;
}

.contact-section::before,
.contact-section::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: -1;
}

.contact-section::before {
  display: none;
}

.contact-section::after {
  display: none;
}

.contact-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 734px 390px;
  gap: 72px;
  max-width: 1210px;
  margin: 0;
  align-items: start;
}

.contact-main {
  max-width: 734px;
}

.contact-kicker {
  margin: 0;
  color: #143f60;
  font-size: 27px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0;
}

.contact-rule {
  display: block;
  width: 38px;
  height: 2px;
  margin: 25px 0 25px;
  background: #143f60;
  border-radius: 999px;
}

.contact-section h2 {
  max-width: 760px;
  margin: 0;
  color: #143f60;
  font-size: 38px;
  line-height: 1.2;
  font-weight: 800;
}

.contact-details {
  display: grid;
  gap: 18px;
  margin-top: 45px;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 27px;
  color: #223346;
  font-size: 22px;
  line-height: 1.25;
  transition: color 0.25s ease, transform 0.25s ease, text-decoration-color 0.25s ease;
}

.contact-detail-link {
  cursor: pointer;
}

.contact-detail-link:hover {
  color: var(--brand);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transform: translateY(-1px) scale(1.02);
}

.contact-detail-static {
  cursor: default;
}

.contact-icon {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  color: #174766;
  transition: color 0.25s ease, transform 0.25s ease;
}

.contact-detail-link:hover .contact-icon {
  color: var(--brand);
  transform: scale(1.08);
}

.contact-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
  stroke: none;
}

.contact-detail:nth-child(3) .contact-icon svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-qr-wrap {
  margin-top: 35px;
}

.contact-qr {
  position: relative;
  display: grid;
  place-items: center;
  width: 114px;
  aspect-ratio: 1;
  border: 0;
  background: none;
  box-shadow: none;
}

.contact-qr::before,
.contact-qr::after {
  content: none;
}

.contact-qr img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.contact-social {
  padding-top: 0;
}

.social-links {
  display: flex;
  gap: 41px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 42px;
}

.social-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 57px;
  height: 57px;
  color: #fff;
  border-radius: 50%;
  box-shadow: 0 10px 20px rgba(29, 99, 150, 0.12);
  font-weight: 800;
  line-height: 1;
}

.social-icon span,
.social-icon svg {
  position: relative;
  z-index: 1;
}

.social-icon.facebook {
  background: linear-gradient(145deg, #1b94f1, #0e73cf);
  font-family: Arial, sans-serif;
  font-size: 48px;
}

.social-icon.instagram {
  overflow: hidden;
  background:
    radial-gradient(circle at 72% 22%, #ffd66b 0 10%, transparent 12%),
    radial-gradient(circle at 24% 88%, #f6d244 0 18%, transparent 28%),
    linear-gradient(135deg, #5945d8 0%, #c13584 42%, #fd1d1d 70%, #fcb045 100%);
}

.social-icon.instagram span {
  width: 28px;
  height: 28px;
  border: 4px solid #fff;
  border-radius: 10px;
}

.social-icon.instagram span::before,
.social-icon.instagram span::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: #fff;
}

.social-icon.instagram span::before {
  width: 9px;
  height: 9px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: transparent;
  border: 4px solid #fff;
}

.social-icon.instagram span::after {
  width: 5px;
  height: 5px;
  right: 5px;
  top: 5px;
}

.social-icon.linkedin {
  background: linear-gradient(145deg, #1f9fc8, #087da6);
  font-family: Arial, sans-serif;
  font-size: 32px;
}

.social-icon.whatsapp {
  background: linear-gradient(145deg, #2ee66f, #08b84f);
}

.social-icon.whatsapp svg {
  width: 62%;
  height: 62%;
  fill: #fff;
}

.inquiry-table-wrap {
  overflow-x: auto;
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.inquiry-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
}

.inquiry-table th,
.inquiry-table td {
  padding: 11px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.inquiry-table th {
  color: var(--muted);
  background: #f7fafb;
  font-size: 13px;
}

.site-footer {
  padding: 30px clamp(16px, 4vw, 56px);
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: #dbe7ec;
  background: var(--deep);
}

.site-footer p {
  margin: 8px 0 0;
}

.product-dialog {
  width: min(980px, calc(100vw - 32px));
  max-height: min(88vh, 820px);
  border: 0;
  border-radius: 8px;
  padding: 0;
  overflow: auto;
  box-shadow: 0 24px 80px rgba(14, 37, 50, 0.28);
  background: #fff;
}

.product-dialog:not([open]):not(.is-open) {
  display: none;
}

.product-dialog.is-open {
  display: block;
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 1000;
  transform: translate(-50%, -50%);
}

.product-dialog::backdrop {
  background: rgba(14, 37, 50, 0.62);
}

.product-dialog-backdrop {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(14, 37, 50, 0.62);
}

body.modal-open {
  overflow: hidden;
}

#productDetail {
  display: grid;
  grid-template-columns: minmax(360px, 1.05fr) minmax(320px, 0.95fr);
  min-height: min(680px, 88vh);
}

.detail-hero {
  min-height: 420px;
  background:
    radial-gradient(circle at 50% 50%, rgba(255,255,255,0.94) 0 36px, transparent 37px),
    repeating-linear-gradient(90deg, var(--tone) 0 16px, color-mix(in srgb, var(--tone), #111 18%) 16px 32px);
}

.real-detail-image {
  flex: 0 0 100%;
  height: clamp(420px, 48vw, 560px);
  background-color: #fff;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

.detail-carousel {
  min-height: 100%;
  background: #f7fafb;
}

.detail-carousel .carousel-track,
.detail-carousel .carousel-slide {
  height: 100%;
}

.detail-body {
  padding: clamp(24px, 4vw, 38px);
  align-self: center;
}

.detail-body h3 {
  margin: 0 0 8px;
  font-size: 28px;
}

.detail-body dl {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 8px 14px;
}

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

.detail-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

@media (max-width: 980px) {
  .main-nav {
    flex-wrap: wrap;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .menu-toggle {
    margin-left: auto;
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 6px;
  }

  .nav-menu,
  .nav-actions {
    display: none;
    width: 100%;
  }

  .site-header.open .nav-menu,
  .site-header.open .nav-actions {
    display: grid;
    justify-content: stretch;
  }

  .nav-menu > a,
  .nav-group > a {
    width: 100%;
  }

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

  .hero,
  .factory-layout,
  .about-section,
  .why-choose-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-banner,
  .home-banner-carousel {
    min-height: 760px;
  }
  .why-choose-media,
  .why-choose-media img {
    min-height: 420px;
  }

  .banner-copy,
  .banner-embroidery .banner-copy,
  .banner-heavy-duty .banner-copy,
  .banner-leather .banner-copy {
    top: 42px;
    left: 24px;
    right: 24px;
    width: auto;
    max-width: none;
    color: #fff;
  }

  .banner-embroidery img {
    object-position: 44% 58%;
  }

  .banner-heavy-duty img {
    object-position: 50% 55%;
  }

  .banner-leather img {
    object-position: 45% 58%;
  }

  .banner-embroidery::after {
    left: 0;
    right: 0;
    bottom: auto;
    width: auto;
    height: 54%;
    background: linear-gradient(180deg, rgba(14,37,50,0.2) 0%, rgba(14,37,50,0.16) 72%, rgba(14,37,50,0) 100%);
  }

  .banner-heavy-duty::after,
  .banner-leather::after {
    left: 0;
    right: 0;
    bottom: auto;
    width: auto;
    height: 54%;
    background: linear-gradient(180deg, rgba(14,37,50,0.2) 0%, rgba(14,37,50,0.16) 72%, rgba(14,37,50,0) 100%);
  }

  .category-band,
  .product-grid,
  .certificate-grid,
  .case-grid,
  .factory-media-grid,
  .inquiry-form,
  .stats,
  .why-choose-lists {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-section {
    min-height: auto;
    padding: 60px 28px 118px;
  }

  .contact-shell {
    grid-template-columns: 1fr;
    gap: 54px;
  }

  .contact-main {
    max-width: 100%;
  }

  .contact-social {
    padding-top: 0;
  }

  .social-links {
    margin-top: 30px;
  }

  #productDetail {
    grid-template-columns: 1fr;
  }

  .product-dialog {
    width: min(760px, calc(100vw - 24px));
  }

  .detail-hero,
  .real-detail-image {
    min-height: 360px;
    height: 360px;
  }
}

@media (max-width: 640px) {
  .header-strip,
  .site-footer {
    display: grid;
  }

  .hero h1 {
    font-size: 36px;
  }

  .hero-banner,
  .home-banner-carousel,
  .hero-slide h1,
  .hero-slide h2,
  .banner-embroidery h2 {
    font-size: 34px;
  }

  .banner-copy ul {
    grid-template-columns: 1fr;
    gap: 7px;
    margin-top: 16px;
    font-size: 14px;
  }

  .banner-copy .hero-actions {
    align-items: stretch;
    margin-top: 20px;
  }

  .banner-copy .hero-actions a {
    justify-content: center;
  }

  .home-banner-carousel .carousel-arrow {
    width: 36px;
    min-height: 36px;
  }

  .category-band,
  .product-grid,
  .certificate-grid,
  .case-grid,
  .factory-media-grid,
  .inquiry-form,
  .stats,
  .why-choose-lists {
    grid-template-columns: 1fr;
  }

  .contact-section {
    padding: 48px 20px 104px;
  }

  .contact-rule {
    margin: 16px 0 24px;
  }

  .contact-section h2 {
    font-size: 28px;
  }

  .contact-details {
    gap: 14px;
    margin-top: 28px;
  }

  .contact-detail {
    align-items: flex-start;
    gap: 14px;
    font-size: 16px;
  }

  .contact-icon {
    flex-basis: 21px;
    width: 21px;
    height: 21px;
    margin-top: 1px;
  }

  .contact-qr-wrap {
    margin-top: 28px;
  }

  .social-links {
    gap: 16px;
  }

  .social-icon {
    width: 52px;
    height: 52px;
  }

  .why-choose-copy h3 {
    font-size: 20px;
  }

  .why-choose-media,
  .why-choose-media img {
    min-height: 360px;
  }

  .why-choose-glass-card {
    right: 14px;
    bottom: 14px;
    width: calc(100% - 28px);
  }

  .why-choose-glass-card span {
    min-height: 62px;
    padding: 10px 8px;
    font-size: 13px;
  }
.product-dialog {
    width: min(100vw - 18px, 520px);
    max-height: 90vh;
  }

  #productDetail {
    min-height: auto;
  }

  .detail-hero,
  .real-detail-image {
    min-height: 300px;
    height: 300px;
  }

  .real-detail-image img {
    padding: 16px;
  }

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

  .factory-lightbox {
    padding: 20px;
  }

  .factory-lightbox-stage,
  .factory-lightbox-stage img {
    max-width: 92vw;
    max-height: 74vh;
  }

  .factory-lightbox-arrow {
    width: 38px;
    height: 38px;
    min-height: 38px;
    font-size: 28px;
  }

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

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

  .factory-lightbox-counter {
    bottom: 18px;
  }

  .factory-video-modal {
    padding: 20px;
  }

  .factory-video-stage,
  .factory-video-stage video {
    width: 92vw;
    max-height: 74vh;
  }
}
