/* ============================================
   Ruikangle Technology - Main Stylesheet
   Indoor Sports Playground Manufacturer
   ============================================ */

/* --- CSS Variables --- */
:root {
  --primary: #1a56db;
  --primary-dark: #1040b0;
  --primary-light: #e8effd;
  --accent: #f97316;
  --accent-dark: #ea580c;
  --dark: #111827;
  --dark-2: #1f2937;
  --gray: #6b7280;
  --gray-light: #9ca3af;
  --gray-lighter: #e5e7eb;
  --bg: #f9fafb;
  --white: #ffffff;
  --whatsapp: #25D366;
  --whatsapp-dark: #128C7E;
  --success: #10b981;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 25px -3px rgba(0,0,0,0.1), 0 4px 10px -4px rgba(0,0,0,0.1);
  --shadow-xl: 0 20px 40px -5px rgba(0,0,0,0.15);
  --transition: all 0.3s ease;
  --max-width: 1200px;
  --header-height: 72px;
}

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

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans SC', 'Noto Sans KR', 'Noto Sans Thai', Roboto, sans-serif;
  color: var(--dark);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

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

/* --- Container --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Header --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-lighter);
  z-index: 1000;
  transition: var(--transition);
}

.header.scrolled { box-shadow: var(--shadow); }

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark);
}

.logo-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.3rem;
  font-weight: 800;
}

.logo-img-wrap {
  display: flex;
  align-items: center;
  margin-right: 8px;
}

.logo-img-wrap img {
  height: 40px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 8px;
}

.nav-links a {
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--gray);
  transition: var(--transition);
}

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

/* --- Site locale (CN ↔ EN official sites) --- */
.site-locale {
  display: inline-flex;
  align-items: center;
  margin-left: 12px;
  border: 1px solid var(--gray-lighter);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--white);
}

.site-locale-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 8px 10px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0;
  white-space: nowrap;
  color: var(--gray);
  text-decoration: none;
  transition: var(--transition);
}

.site-locale-link + .site-locale-link {
  border-left: 1px solid var(--gray-lighter);
}

.site-locale-link:hover {
  color: var(--primary);
  background: var(--primary-light);
}

.site-locale-link.active {
  color: #fff;
  background: var(--primary);
}

/* --- Language Switcher --- */
.lang-switcher {
  position: relative;
  margin-left: 10px;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid var(--gray-lighter);
  border-radius: var(--radius-sm);
  background: var(--white);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--dark);
  transition: var(--transition);
}

.lang-btn:hover { border-color: var(--primary); }

.lang-btn .arrow { font-size: 0.65rem; transition: transform 0.3s; }

.lang-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  background: var(--white);
  border: 1px solid var(--gray-lighter);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  min-width: 150px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: var(--transition);
  z-index: 1001;
}

.lang-dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-dropdown li {
  padding: 10px 16px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.2s;
  white-space: nowrap;
}

.lang-dropdown li:hover { background: var(--primary-light); color: var(--primary); }
.lang-dropdown li.active { background: var(--primary-light); color: var(--primary); font-weight: 600; }

/* --- Mobile Menu --- */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: var(--transition);
}

.mobile-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.mobile-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* --- Hero Carousel --- */
.hero-carousel {
  margin-top: var(--header-height);
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 85vh;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.carousel-slide {
  min-width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-slide:nth-child(1) { background: linear-gradient(135deg, #0f172a 0%, #1e40af 60%, #3b82f6 100%); }
.carousel-slide:nth-child(2) { background: linear-gradient(135deg, #1a0a2e 0%, #4a1942 50%, #8b2252 100%); }
.carousel-slide:nth-child(3) { background: linear-gradient(135deg, #0c1a0b 0%, #14532d 50%, #16a34a 100%); }
.carousel-slide:nth-child(4) { background: linear-gradient(135deg, #1e1b4b 0%, #4338ca 50%, #818cf8 100%); }
.carousel-slide:nth-child(5) { background: linear-gradient(135deg, #1c1917 0%, #b45309 50%, #f59e0b 100%); }

.carousel-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  z-index: 0;
}

.carousel-slide:nth-child(1)::after {
  content: '';
  position: absolute;
  right: -80px;
  top: 50%;
  transform: translateY(-50%);
  width: 500px;
  height: 500px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.08);
  z-index: 0;
}

.carousel-slide:nth-child(2)::after {
  content: '';
  position: absolute;
  right: 5%;
  top: 10%;
  width: 350px;
  height: 350px;
  background: rgba(255,255,255,0.03);
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  z-index: 0;
  animation: morph 8s ease-in-out infinite;
}

.carousel-slide:nth-child(3)::after {
  content: '';
  position: absolute;
  left: -60px;
  bottom: -60px;
  width: 400px;
  height: 400px;
  border: 2px solid rgba(255,255,255,0.06);
  border-radius: 50%;
  z-index: 0;
}

.carousel-slide:nth-child(4)::after {
  content: '';
  position: absolute;
  right: 8%;
  bottom: 15%;
  width: 300px;
  height: 300px;
  background: rgba(255,255,255,0.03);
  border-radius: 60% 40% 30% 70% / 50% 45% 55% 50%;
  z-index: 0;
  animation: morph 10s ease-in-out infinite reverse;
}

.carousel-slide:nth-child(5)::after {
  content: '';
  position: absolute;
  right: -50px;
  top: 20%;
  width: 380px;
  height: 380px;
  border: 3px solid rgba(255,255,255,0.06);
  border-radius: 40% 60% 60% 40% / 40% 40% 60% 60%;
  z-index: 0;
}

@keyframes morph {
  0%, 100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
  50% { border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%; }
}

.carousel-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: white;
  max-width: 960px;
  padding: 40px 24px;
  animation: fadeInUp 0.8s ease;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.carousel-content .slide-badge {
  display: inline-block;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(4px);
  padding: 10px 22px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 20px;
  letter-spacing: 1px;
  border: 1px solid rgba(255,255,255,0.15);
}

.carousel-content h2 {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
}

.carousel-content .hero-subtitle {
  font-size: 1.15rem;
  opacity: 0.95;
  margin-bottom: 14px;
  letter-spacing: 0.04em;
  font-weight: 500;
  line-height: 1.5;
}

.carousel-content .hero-tags {
  font-size: 0.92rem;
  opacity: 0.82;
  margin-bottom: 28px;
  line-height: 1.6;
  letter-spacing: 0.02em;
}

.carousel-content p {
  font-size: 1.15rem;
  opacity: 0.9;
  margin-bottom: 32px;
  line-height: 1.7;
}

.carousel-content .slide-btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Carousel Controls */
.carousel-arrows {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.2);
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.carousel-arrows:hover {
  background: rgba(255,255,255,0.25);
  transform: translateY(-50%) scale(1.1);
}

.carousel-arrows.prev { left: 24px; }
.carousel-arrows.next { right: 24px; }

.carousel-dots {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 10;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.4);
  background: transparent;
  cursor: pointer;
  transition: var(--transition);
}

.carousel-dot.active {
  background: white;
  border-color: white;
  transform: scale(1.2);
}

.carousel-dot:hover { border-color: white; }

/* --- Horizontal Scroll helpers (legacy cards reused elsewhere) --- */
.scroll-section {
  padding: 80px 0;
}

.scroll-section .section-header { margin-bottom: 40px; }

/* --- Homepage Product Categories --- */
.product-categories-section {
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 48%, #f8fafc 100%);
}

.home-cat-list {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.home-cat-block {
  padding-bottom: 8px;
  border-bottom: 1px solid #e5e7eb;
}

.home-cat-block:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.home-cat-head {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  margin-bottom: 18px;
  transition: var(--transition);
}

.home-cat-head:hover h3 { color: var(--primary); }
.home-cat-head:hover .home-cat-link { transform: translateX(4px); }

.home-cat-icon {
  font-size: 1.6rem;
  line-height: 1;
}

.home-cat-head h3 {
  margin: 0;
  font-size: 1.35rem;
  color: var(--dark);
  flex: 1;
}

.home-cat-link {
  font-size: 0.9rem;
  color: var(--primary);
  font-weight: 600;
  white-space: nowrap;
  transition: var(--transition);
}

.home-cat-products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.home-cat-product {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.home-cat-product:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.home-cat-product-img {
  aspect-ratio: 4 / 3;
  background: #eef2ff;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-cat-product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-cat-product-placeholder {
  font-size: 2.5rem;
}

.home-cat-product-info {
  padding: 14px 16px 16px;
}

.home-cat-product-info h4 {
  margin: 0 0 6px;
  font-size: 1rem;
  color: var(--dark);
}

.home-cat-product-info p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--gray);
  line-height: 1.45;
  min-height: 2.5em;
}

.home-cat-empty {
  grid-column: 1 / -1;
  padding: 24px;
  text-align: center;
  color: var(--gray);
  background: #f9fafb;
  border-radius: var(--radius);
}

/* --- Homepage Solutions by Industry --- */
.solutions-section {
  background: #fff;
}

.solutions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.solution-card {
  display: block;
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  min-height: 280px;
  isolation: isolate;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.solution-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
}

.solution-card-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.solution-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.solution-card:hover .solution-card-media img {
  transform: scale(1.05);
}

.solution-card-ph {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  background: linear-gradient(135deg, #1e293b, #334155);
  color: #fff;
}

.solution-card-body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 28px 20px 20px;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.88) 0%, rgba(15, 23, 42, 0.45) 55%, transparent 100%);
  color: #fff;
}

.solution-card-body h3 {
  margin: 0 0 8px;
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
}

.solution-card-body p {
  margin: 0 0 12px;
  font-size: 0.9rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.88);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.solution-card-cta {
  font-size: 0.85rem;
  font-weight: 600;
  color: #93c5fd;
  letter-spacing: 0.02em;
}

.h-scroll-wrapper {
  position: relative;
  overflow: hidden;
}

.h-scroll {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding: 8px 4px 24px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.h-scroll::-webkit-scrollbar { display: none; }

.h-scroll > * {
  scroll-snap-align: start;
  flex-shrink: 0;
}

/* Clickable product card link wrapper */
.product-card-hot-link {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: var(--radius);
  flex-shrink: 0;
  transition: var(--transition);
  cursor: pointer;
}
.product-card-hot-link:hover { transform: translateY(-6px); }

.product-card-hot {
  width: 300px;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  flex-shrink: 0;
}

.product-card-hot:hover { transform: translateY(-6px); box-shadow: var(--shadow-xl); }

.product-card-hot .product-img-placeholder {
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
}

.product-card-hot .product-info { padding: 20px; }
.product-card-hot h3 { font-size: 1.15rem; margin-bottom: 8px; color: var(--dark); }
.product-card-hot p { font-size: 0.9rem; color: var(--gray); margin-bottom: 12px; line-height: 1.5; }

.h-scroll-btns {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-bottom: 16px;
}

.h-scroll-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--gray-lighter);
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  color: var(--dark);
}

.h-scroll-btn:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* --- Home Cases Grid --- */
.cases-grid-sm {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.case-card-sm {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.case-card-sm:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.case-card-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #e5e7eb;
}

.case-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

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

.case-card-sm .case-info { padding: 16px 18px 18px; }
.case-card-sm .case-country {
  font-size: 0.88rem;
  color: var(--gray);
  margin-bottom: 6px;
  font-weight: 600;
}
.case-card-sm h4 {
  font-size: 1.1rem;
  color: var(--dark);
  margin: 0 0 10px;
  line-height: 1.35;
}
.case-card-sm .case-meta {
  font-size: 0.88rem;
  color: var(--gray);
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.case-card-sm .case-more {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary);
}

/* --- Home News Grid --- */
.news-grid-sm {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.news-card-sm {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  cursor: pointer;
}

.news-card-sm:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.news-card-sm .news-img-placeholder {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}

.news-card-sm .news-info { padding: 18px; }
.news-card-sm h4 { font-size: 1rem; color: var(--dark); margin-bottom: 6px; line-height: 1.4; }
.news-card-sm .news-date { font-size: 0.8rem; color: var(--gray); }
.news-card-sm .news-excerpt { font-size: 0.85rem; color: var(--gray); margin-top: 8px; line-height: 1.5; }

.section-footer-link {
  text-align: center;
  margin-top: 32px;
}

.section-footer-link a {
  color: var(--primary);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
}

.section-footer-link a:hover { text-decoration: underline; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  white-space: nowrap;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: white;
}

.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(249,115,22,0.4);
}

.btn-outline {
  background: transparent;
  color: white;
  border: 2px solid rgba(255,255,255,0.3);
}

.btn-outline:hover {
  border-color: white;
  background: rgba(255,255,255,0.1);
  transform: translateY(-2px);
}

.btn-whatsapp {
  background: var(--whatsapp);
  color: white;
}

.btn-whatsapp:hover {
  background: var(--whatsapp-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37,211,102,0.4);
}

/* --- Section Common --- */
.section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header h2 {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 12px;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--gray);
  max-width: 600px;
  margin: 0 auto;
}

/* --- About split (factory photo + highlights) --- */
.about-section {
  background: #f8fafc;
}

.about-split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.about-media {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  min-height: 420px;
  background: linear-gradient(135deg, #0f172a, #1e3a5f);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.18);
}

.about-media img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  display: block;
}

.about-copy h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 16px;
  line-height: 1.2;
}
.about-desc {
  margin: 0 0 22px;
  color: #475569;
  font-size: 0.98rem;
  line-height: 1.75;
  max-width: 42em;
}
.about-highlights {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.about-highlights li {
  position: relative;
  padding: 14px 18px 14px 48px;
  font-size: 1.05rem;
  font-weight: 600;
  color: #0f172a;
  background: #fff;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.about-highlights li::before {
  content: '';
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
}

.about-copy .btn {
  min-width: 160px;
}

.stat-card {
  text-align: center;
  padding: 28px 18px;
  min-width: 0;
  overflow: hidden;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

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

.stat-number {
  font-size: clamp(1.75rem, 2.4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  margin-top: 8px;
  color: var(--gray);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* --- Features --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 28px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid transparent;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 20px;
}

.feature-icon.blue { background: #dbeafe; color: #2563eb; }
.feature-icon.orange { background: #ffedd5; color: #ea580c; }
.feature-icon.green { background: #d1fae5; color: #059669; }
.feature-icon.purple { background: #ede9fe; color: #7c3aed; }

.feature-card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--dark);
}

.feature-card p {
  color: var(--gray);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* --- Products Grid --- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  cursor: pointer;
}

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

.product-img {
  height: 220px;
  background: linear-gradient(135deg, var(--primary-light), #e0e7ff);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  color: var(--primary);
  position: relative;
  overflow: hidden;
}

.product-img::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(to top, rgba(0,0,0,0.3), transparent);
}

.product-info {
  padding: 20px;
}

.product-info h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
  color: var(--dark);
}

.product-info p {
  color: var(--gray);
  font-size: 0.9rem;
  margin-bottom: 14px;
  line-height: 1.6;
}

.product-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.tag {
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 500;
  background: var(--primary-light);
  color: var(--primary);
}

/* --- Cases Grid --- */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.case-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

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

.case-img {
  height: 200px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.case-img.t1 { background: linear-gradient(135deg, #fef3c7, #fbbf24); color: #92400e; }
.case-img.t2 { background: linear-gradient(135deg, #dbeafe, #3b82f6); color: #1e3a8a; }
.case-img.t3 { background: linear-gradient(135deg, #d1fae5, #10b981); color: #064e3b; }
.case-img.t4 { background: linear-gradient(135deg, #ede9fe, #8b5cf6); color: #4c1d95; }
.case-img.t5 { background: linear-gradient(135deg, #fce7f3, #ec4899); color: #831843; }
.case-img.t6 { background: linear-gradient(135deg, #e0e7ff, #6366f1); color: #312e81; }

.case-location {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  background: rgba(0,0,0,0.6);
  color: white;
  backdrop-filter: blur(4px);
}

.case-info {
  padding: 20px;
}

.case-info h3 { font-size: 1.1rem; margin-bottom: 10px; }

.case-meta {
  display: flex;
  gap: 16px;
  color: var(--gray);
  font-size: 0.85rem;
}

/* --- CTA Section --- */
.cta-section {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  text-align: center;
  padding: 80px 24px;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.cta-section h2 {
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 12px;
  position: relative;
}

.cta-section p {
  font-size: 1.1rem;
  opacity: 0.85;
  margin-bottom: 32px;
  position: relative;
}

.cta-section .cta-subtitle:empty {
  display: none;
}

.cta-actions {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  align-items: center;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 170px;
  padding: 14px 22px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  color: #fff;
  border: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
  filter: brightness(1.05);
  color: #fff;
}

.cta-btn-whatsapp { background: #22c55e; }
.cta-btn-email { background: #3b82f6; }
.cta-btn-quote { background: #f97316; }

/* --- Contact Page --- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: start;
}

.contact-info-side {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
}

.contact-info-side h3 {
  font-size: 1.4rem;
  margin-bottom: 24px;
}

.contact-item {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--gray-lighter);
}

.contact-item:last-child { border-bottom: none; }

.contact-item-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-item-icon.c-wa { background: #dcfce7; color: var(--whatsapp); }
.contact-item-icon.c-em { background: #dbeafe; color: #2563eb; }
.contact-item-icon.c-ph { background: #ffedd5; color: #ea580c; }
.contact-item-icon.c-ad { background: #ede9fe; color: #7c3aed; }
.contact-item-icon.c-wx { background: #d1fae5; color: #059669; }
.contact-item-icon.c-fb { background: #dbeafe; color: #1877F2; }
.contact-item-icon.c-ig { background: #ffe4e6; color: #E4405F; }

.contact-item strong { display: block; font-size: 0.85rem; color: var(--gray); margin-bottom: 2px; }
.contact-item span { font-size: 1rem; font-weight: 500; }

/* Contact Addresses */
.contact-addresses {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.contact-addresses span {
  display: block;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--dark);
}

.contact-form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
}

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

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--dark);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--gray-lighter);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: inherit;
  transition: var(--transition);
  background: var(--bg);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,86,219,0.1);
  background: white;
}

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

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

/* --- News Page --- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.news-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

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

.news-img {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}

.news-img.n1 { background: linear-gradient(135deg, #dbeafe, #60a5fa); color: #1e40af; }
.news-img.n2 { background: linear-gradient(135deg, #d1fae5, #34d399); color: #064e3b; }
.news-img.n3 { background: linear-gradient(135deg, #ffedd5, #fb923c); color: #7c2d12; }
.news-img.n4 { background: linear-gradient(135deg, #ede9fe, #a78bfa); color: #4c1d95); }
.news-img.n5 { background: linear-gradient(135deg, #fce7f3, #f472b6); color: #831843; }
.news-img.n6 { background: linear-gradient(135deg, #e0e7ff, #818cf8); color: #312e81; }

.news-body { padding: 20px; }

.news-date {
  font-size: 0.85rem;
  color: var(--gray-light);
  margin-bottom: 8px;
}

.news-body h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  line-height: 1.4;
}

.news-body p {
  color: var(--gray);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 14px;
}

.news-link {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
}

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

/* --- WhatsApp Module --- */
.whatsapp-widget {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
}

.whatsapp-toggle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: white;
  border: none;
  cursor: pointer;
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37,211,102,0.4);
  transition: var(--transition);
  position: relative;
}

.whatsapp-toggle:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 32px rgba(37,211,102,0.5);
}

.whatsapp-toggle .pulse {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 3px solid var(--whatsapp);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.4); opacity: 0; }
}

.whatsapp-panel {
  position: absolute;
  bottom: 76px;
  right: 0;
  width: 360px;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  display: none;
  flex-direction: column;
}

.whatsapp-panel.open { display: flex; }

.whatsapp-header {
  background: var(--whatsapp);
  color: white;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.whatsapp-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.whatsapp-header h4 { font-size: 1rem; }
.whatsapp-header p { font-size: 0.8rem; opacity: 0.85; }

.whatsapp-body {
  padding: 16px;
  min-height: 200px;
  max-height: 300px;
  overflow-y: auto;
  background: #efeae2;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23d4d0c8' fill-opacity='0.3'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.whatsapp-msg {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.9rem;
  line-height: 1.5;
  word-break: break-word;
}

.whatsapp-msg.received {
  align-self: flex-start;
  background: white;
  border-top-left-radius: 0;
}

.whatsapp-msg.sent {
  align-self: flex-end;
  background: #d9fdd3;
  border-top-right-radius: 0;
}

.whatsapp-quick-replies {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 16px;
  background: white;
  border-top: 1px solid #e5e7eb;
}
.wa-sales-contacts { padding:10px 14px;display:flex;gap:8px;overflow-x:auto;background:#f8fafc;border-top:1px solid #e5e7eb; }
.wa-sales-card { min-width:200px;display:flex;gap:9px;align-items:center;padding:8px;background:#fff;border:1px solid #dcfce7;border-radius:10px; }
.wa-sales-card img { width:64px;height:64px;object-fit:contain;border-radius:6px;border:1px solid #e5e7eb; }
.wa-sales-card div { min-width:0;display:flex;flex-direction:column;align-items:flex-start; }
.wa-sales-card strong { font-size:13px;color:#111827; }
.wa-sales-card small { font-size:11px;color:#6b7280;margin:2px 0 5px; }
.wa-sales-card a { font-size:11px;font-weight:700;color:#128c7e;text-decoration:none; }

.whatsapp-quick-btn {
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.8rem;
  border: 1px solid var(--gray-lighter);
  background: white;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.whatsapp-quick-btn:hover {
  background: #dcfce7;
  border-color: var(--whatsapp);
  color: var(--whatsapp-dark);
}

.whatsapp-input-area {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  background: white;
  border-top: 1px solid #e5e7eb;
}

.whatsapp-input-area input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--gray-lighter);
  border-radius: 50px;
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
}

.whatsapp-input-area input:focus { border-color: var(--whatsapp); }

.whatsapp-send {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: white;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  flex-shrink: 0;
}

.whatsapp-send:hover { background: var(--whatsapp-dark); }

.whatsapp-footer {
  padding: 10px 16px;
  background: white;
  border-top: 1px solid var(--gray-lighter);
  text-align: center;
}

.whatsapp-footer a {
  color: var(--whatsapp);
  font-weight: 600;
  font-size: 0.85rem;
}

/* Homepage decoration: hide inactive modules */
.home-section-hidden,
[data-home-section][hidden] {
  display: none !important;
}

/* --- Footer --- */
.footer {
  background: var(--dark-2);
  color: var(--gray-light);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-grid-5 {
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1.2fr;
  gap: 28px 32px;
}

.footer-brand p {
  margin-top: 14px;
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}

.footer-social a:hover {
  background: rgba(255,255,255,0.18);
  transform: translateY(-2px);
  color: #fff;
}

.footer-col h4 {
  color: white;
  font-size: 1rem;
  margin-bottom: 18px;
  font-weight: 600;
}

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

.footer-col ul li a,
.footer-address {
  color: var(--gray-light);
  font-size: 0.9rem;
  transition: color 0.2s;
  text-decoration: none;
  line-height: 1.5;
}

.footer-col ul li a:hover { color: white; }

.footer-contact-list li {
  word-break: break-word;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  text-align: center;
  font-size: 0.85rem;
}

/* --- Page Banner (inner pages) --- */
.page-banner {
  margin-top: var(--header-height);
  padding: 60px 0;
  background: linear-gradient(135deg, var(--primary), #0f172a);
  color: white;
  text-align: center;
}

.page-banner h1 {
  font-size: 2.6rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.page-banner p {
  font-size: 1.1rem;
  opacity: 0.85;
}

/* --- Main Category Tabs (Products Page) --- */
.main-cat-tabs {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.main-cat-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  border: 2px solid var(--gray-lighter);
  background: white;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--dark);
}

.main-cat-tab:hover {
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 4px 12px rgba(59,130,246,0.12);
  transform: translateY(-1px);
}

.main-cat-tab.active {
  background: linear-gradient(135deg, var(--primary), #2563eb);
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(59,130,246,0.35);
}

.mc-icon {
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mc-count {
  background: rgba(255,255,255,0.25);
  padding: 1px 8px;
  border-radius: 12px;
  font-size: 0.78rem;
  font-weight: 700;
}

.main-cat-tab:not(.active) .mc-count {
  background: var(--gray-lighter);
  color: var(--gray);
}

/* --- Main Category Block --- */
.main-cat-block {
  margin-bottom: 48px;
}

.main-cat-title-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--gray-lighter);
}

.main-cat-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--dark);
  margin: 0;
  position: relative;
}

.main-cat-thumb {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 10px;
  background: var(--gray-lighter);
  padding: 4px;
}

/* --- Sub-Category Section --- */
.subcat-section {
  margin-bottom: 40px;
}

.subcat-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.subcat-header-line {
  width: 4px;
  height: 26px;
  background: linear-gradient(180deg, var(--primary), var(--accent));
  border-radius: 3px;
}

.subcat-header h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--dark);
  margin: 0;
}

.subcat-count {
  font-size: 0.82rem;
  color: var(--gray);
  background: var(--gray-lighter);
  padding: 2px 10px;
  border-radius: 12px;
}

/* Sub-category cover image header */
.subcat-cover {
  position: relative;
  height: 140px;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 20px;
}

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

.subcat-cover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(30,58,138,0.75), rgba(59,130,246,0.55));
  display: flex;
  align-items: center;
  padding: 0 28px;
}

.subcat-cover-overlay h3 {
  color: white;
  font-size: 1.35rem;
  font-weight: 800;
  margin: 0;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* --- Products Grid 5:5 (Two Column) --- */
.products-grid-5050 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

/* --- Product Card 50:50 Image Focused --- */
.product-card-5050 {
  background: white;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  transition: all 0.35s ease;
  cursor: pointer;
  border: 1px solid rgba(0,0,0,0.05);
}

.product-card-5050:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.14);
  border-color: rgba(59,130,246,0.2);
}

.prod-5050-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: linear-gradient(135deg, #f0f4ff, #e0e7ff);
}

.prod-5050-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card-5050:hover .prod-5050-img-wrap img {
  transform: scale(1.08);
}

.prod-5050-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
}

.prod-5050-badges {
  position: absolute;
  bottom: 10px;
  left: 10px;
  display: flex;
  gap: 6px;
  z-index: 2;
}

.prod-badge {
  background: rgba(0,0,0,0.65);
  color: #fff;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.73rem;
  font-weight: 600;
  backdrop-filter: blur(4px);
}

.prod-badge-video {
  background: rgba(220,38,38,0.8);
}

/* Hover overlay on image */
.prod-5050-hover {
  position: absolute;
  inset: 0;
  background: rgba(37,99,235,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.product-card-5050:hover .prod-5050-hover {
  opacity: 1;
}

.prod-5050-hover span {
  background: white;
  color: var(--primary);
  padding: 8px 22px;
  border-radius: 30px;
  font-size: 0.88rem;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
  letter-spacing: 0.5px;
}

.prod-5050-info {
  padding: 16px 18px;
}

.prod-5050-info h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  margin: 0 0 6px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.prod-5050-info p {
  font-size: 0.85rem;
  color: var(--gray);
  margin: 0;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* --- Filter Tabs (legacy, kept for compatibility) --- */
.filter-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-tab {
  padding: 10px 22px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  border: 2px solid var(--gray-lighter);
  background: white;
  cursor: pointer;
  transition: var(--transition);
}

.filter-tab:hover { border-color: var(--primary); color: var(--primary); }

.filter-tab.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* --- Toast --- */
.toast {
  position: fixed;
  top: 90px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--success);
  color: white;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 600;
  z-index: 2000;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.toast.show { opacity: 1; }

/* --- Responsive --- */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .products-grid-5050 { grid-template-columns: repeat(2, 1fr); }
  .cases-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid-5 { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 2.6rem; }
  .hero-visual { width: 400px; height: 400px; right: -100px; }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .about-split { grid-template-columns: 1fr; gap: 28px; }
  .about-media,
  .about-media img { min-height: 280px; }
  .home-cat-products { grid-template-columns: repeat(2, 1fr); }
  .solutions-grid { grid-template-columns: repeat(2, 1fr); }
  .about-video-grid { grid-template-columns: repeat(2, 1fr); }
  .process-flow { flex-wrap: wrap; gap: 8px 0; }
  .process-step { flex: 1 1 30%; }
  .process-step h3 { font-size: 0.92rem; }
  .process-arrow:nth-child(6),
  .process-arrow:nth-child(12) { display: none; }
  .container { padding: 0 24px; }
}

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

  .nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: white;
    padding: 16px;
    border-bottom: 1px solid var(--gray-lighter);
    box-shadow: var(--shadow-lg);
  }

  .hero { min-height: 70vh; }
  .hero h1 { font-size: 2rem; }
  .hero p { font-size: 1rem; }
  .hero-visual { display: none; }

  .features-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: 1fr; }
  .home-cat-products { grid-template-columns: 1fr; }
  .home-cat-head h3 { font-size: 1.15rem; }
  .solutions-grid { grid-template-columns: 1fr; }
  .solution-card { min-height: 240px; }
  .cases-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid-5 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }

  .section-header h2 { font-size: 1.8rem; }
  .cta-section h2 { font-size: 1.8rem; }
  .cta-actions { flex-direction: column; align-items: stretch; max-width: 320px; margin: 0 auto; }
  .cta-btn { width: 100%; min-width: 0; }

  .whatsapp-panel { width: calc(100vw - 56px); right: 0; }
  .whatsapp-widget { right: 16px; bottom: 20px; }

  /* Container padding */
  .container { padding: 0 16px; }

  /* Language switcher mobile */
  .lang-switch { position: relative; margin-right: 8px; }
  .site-locale-link { padding: 7px 8px; font-size: 0.72rem; }
  .lang-btn { padding: 7px 10px; font-size: 0.82rem; }
}

/* --- Thai font fix --- */
:lang(th) { font-family: 'Noto Sans Thai', 'Sarabun', sans-serif; }

/* --- Responsive: Carousel --- */
@media (max-width: 768px) {
  .hero-carousel { min-height: 350px; }
  .carousel-content h2 { font-size: 1.8rem; }
  .carousel-content p,
  .carousel-content .hero-subtitle { font-size: 0.95rem; }
  .carousel-content .hero-tags { font-size: 0.78rem; padding: 0 8px; }
  .carousel-arrows { width: 36px; height: 36px; font-size: 0.9rem; }
  .carousel-arrows.prev { left: 10px; }
  .carousel-arrows.next { right: 10px; }
  .carousel-dots { bottom: 20px; gap: 8px; }
  .carousel-dot { width: 10px; height: 10px; }

  /* Home sections on mobile */
  .cases-grid-sm,
  .news-grid-sm { grid-template-columns: 1fr; }
  .product-card-hot { width: 260px; }

  /* Products page - 50:50 grid on mobile */
  .products-grid-5050 { grid-template-columns: 1fr; gap: 14px; }
  .main-cat-tabs { gap: 8px; margin-bottom: 24px; }
  .main-cat-tab { padding: 9px 16px; font-size: 0.85rem; }
  .main-cat-title-row { flex-wrap: wrap; }
  .subcat-cover { height: 100px; border-radius: 10px; }
  .subcat-cover-overlay h3 { font-size: 1.05rem; }

  /* Testimonials mobile */
  .testimonials-grid { grid-template-columns: 1fr; }
  .testimonial-card { max-width: 100%; }

  /* Video mobile */
  .about-video-grid { grid-template-columns: 1fr; }
  .process-flow { flex-direction: column; align-items: stretch; max-width: 420px; }
  .process-arrow { padding-top: 0; text-align: center; }
  .process-arrow-h { display: none; }
  .process-arrow-v { display: inline; }
  .about-video-slot { max-width: 100%; border-radius: 12px; }
  .about-video-slot video { border-radius: 12px; }

  /* Share buttons mobile */
  .share-buttons { gap: 8px; }
  .share-btn { width: 38px; height: 38px; font-size: 0.9rem; }
}

/* --- Testimonials Section --- */
.testimonials-section {
  padding: 70px 0;
  background: linear-gradient(135deg, #f0f4ff 0%, #f8fafd 50%, #fef3e7 100%);
}
.testimonials-header {
  text-align: center;
  margin-bottom: 48px;
}
.testimonials-header h2 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 8px;
}
.testimonials-header p {
  color: var(--gray);
  font-size: 1.05rem;
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial-card {
  background: white;
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}
.testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.1);
}
.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 16px;
  right: 24px;
  font-size: 4rem;
  color: var(--primary);
  opacity: 0.12;
  font-family: Georgia, serif;
  line-height: 1;
}
.testimonial-stars {
  font-size: 1rem;
  margin-bottom: 14px;
  letter-spacing: 2px;
}
.testimonial-stars .star-filled { color: #f59e0b; }
.testimonial-stars .star-empty { color: #e5e7eb; }
.testimonial-content {
  font-size: 0.92rem;
  line-height: 1.7;
  color: #4b5563;
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid #f3f4f6;
}
.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.testimonial-avatar img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}
.testimonial-info h5 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--dark);
  margin: 0 0 2px;
}
.testimonial-info span {
  font-size: 0.8rem;
  color: var(--gray);
}
.testimonial-country {
  margin-left: auto;
  font-size: 0.85rem;
  white-space: nowrap;
}

/* --- How We Work / Process --- */
.process-section {
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 55%, #f8fafc 100%);
}
.process-flow {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 0;
  max-width: 1200px;
  margin: 0 auto;
}
.process-step {
  flex: 1 1 0;
  min-width: 0;
  text-align: center;
  padding: 8px 6px;
}
.process-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary, #2563eb);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.process-icon {
  font-size: 1.8rem;
  line-height: 1;
  margin-bottom: 10px;
}
.process-icon .process-icon-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}
.process-step h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  color: var(--dark);
  line-height: 1.35;
}
.process-step p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--gray);
  line-height: 1.5;
}
.process-arrow {
  flex: 0 0 auto;
  align-self: center;
  padding-top: 28px;
  color: var(--primary, #2563eb);
  font-size: 1.4rem;
  font-weight: 700;
  opacity: 0.85;
}
.process-arrow-v { display: none; }
.process-arrow-h { display: inline; }

/* --- Video Section --- */
.about-video-section {
  padding: 50px 0;
  text-align: center;
}
.about-video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1280px;
  margin: 0 auto;
}
.about-video-item {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.about-video-slot {
  aspect-ratio: 16 / 9;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,0.12);
  background: #0f172a;
}
.about-video-slot iframe,
.about-video-slot video {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  object-fit: cover;
  background: #000;
}
.about-video-label {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--dark);
  letter-spacing: 0.02em;
}
.about-video-slot .video-placeholder,
.about-video-grid > .video-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1e293b, #334155);
  color: white;
  gap: 8px;
  transition: opacity 0.3s;
}
.about-video-grid > .video-placeholder { min-height: 320px; }
.about-video-slot .video-placeholder:hover { opacity: 0.9; }
.about-video-placeholder-icon {
  font-size: 2.4rem;
  line-height: 1;
}
.about-video-slot .video-placeholder p {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}
.about-video-slot .video-placeholder small {
  opacity: 0.75;
  font-size: 0.8rem;
}

/* --- Social Share Buttons --- */
.share-section {
  padding: 40px 0;
  text-align: center;
}
.share-section h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 16px;
}
.share-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  color: white;
  font-size: 1.1rem;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
}
.share-btn:hover {
  transform: scale(1.12);
  box-shadow: 0 4px 14px rgba(0,0,0,0.2);
}
.share-btn.whatsapp { background: #25D366; }
.share-btn.facebook { background: #1877F2; }
.share-btn.twitter { background: #1DA1F2; }
.share-btn.linkedin { background: #0A66C2; }
.share-btn.email { background: #EA4335; }
.share-btn.copy { background: #6B7280; }
.share-btn.wechat { background: #07C160; }

.share-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 20000;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

/* Unified product/news/case detail image presentation */
.detail-gallery-frame {
  position: relative;
  width: 100%;
  height: clamp(280px, 48vw, 500px);
  border-radius: 10px;
  overflow: hidden;
  margin: 0 auto 18px;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-detail-gallery { border-radius: 0; margin-bottom: 0; }
.detail-gallery-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  display: block;
  margin: 0 auto;
}
.rich-detail-content img,
.rich-detail-content img.img-adaptive-center,
.rich-detail-content img.img-original-center {
  display: block !important;
  width: auto !important;
  max-width: 100% !important;
  height: auto !important;
  margin: 18px auto !important;
  object-fit: contain;
}
.rich-detail-content img.img-full-width {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  margin: 18px auto !important;
  object-fit: contain;
}
.rich-detail-content figure.image { max-width:100%;margin:18px auto;text-align:center; }
.rich-detail-content figure.image img { margin-left:auto !important;margin-right:auto !important; }

/* --- Tablet Responsive Additions --- */
@media (max-width: 1280px) {
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .products-grid-5050 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .testimonials-grid { grid-template-columns: 1fr; }
  .about-video-slot { max-width: 100%; border-radius: 12px; }
}

/* --- Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible { opacity: 1; transform: translateY(0); }

/* --- Download Center --- */
.download-section { background: var(--bg); }
.download-intro {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 32px;
  color: var(--gray);
  font-size: 0.98rem;
  line-height: 1.75;
}
.dl-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 0 0 36px;
  flex-wrap: wrap;
}
.dl-tab {
  padding: 10px 26px;
  border: 1px solid var(--gray-lighter);
  border-radius: 999px;
  background: var(--white);
  color: var(--gray);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.dl-tab:hover {
  color: var(--primary);
  border-color: var(--primary);
  background: var(--primary-light);
}
.dl-tab.active {
  color: #fff;
  border-color: var(--primary);
  background: linear-gradient(135deg, var(--primary), #0f172a);
  box-shadow: 0 8px 20px rgba(26,86,219,.28);
}
.dl-panel { display: none; }
.dl-panel.active { display: block; }
.download-empty {
  text-align: center;
  color: var(--gray-light);
  padding: 48px 16px;
}
.app-list { max-width: 920px; margin: 0 auto; }
.app-row {
  display: flex;
  align-items: center;
  gap: 24px;
  background: var(--white);
  border: 1px solid var(--gray-lighter);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.app-row:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: #c7d7fb;
}
.app-row-icon {
  width: 80px;
  height: 80px;
  border-radius: 18px;
  object-fit: cover;
  background: var(--primary-light);
  flex-shrink: 0;
}
.app-row-info { flex: 1; min-width: 0; }
.app-row-info h2 {
  font-size: 1.2rem;
  margin: 0 0 4px;
  color: var(--dark);
}
.app-row-info .en {
  font-size: 0.75rem;
  color: var(--gray-light);
  margin-bottom: 8px;
}
.app-row-info p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--gray);
  line-height: 1.65;
}
.app-row-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 176px;
  flex-shrink: 0;
}
.dl-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 0;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
}
.dl-btn svg { width: 17px; height: 17px; fill: currentColor; }
.dl-btn.android {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 16px rgba(249,115,22,.28);
}
.dl-btn.android:hover { background: var(--accent-dark); transform: translateY(-1px); }
.dl-btn.ios { background: var(--dark); color: #fff; }
.dl-btn.ios:hover { background: var(--dark-2); }
.dl-btn.disabled {
  background: #f3f4f6;
  color: #9ca3af;
  pointer-events: none;
  box-shadow: none;
}
.app-row-qr { width: 104px; text-align: center; flex-shrink: 0; }
.app-row-qr .qrgen {
  width: 96px;
  height: 96px;
  margin: 0 auto 6px;
  border: 1px solid var(--gray-lighter);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}
.app-row-qr .qrgen img,
.app-row-qr .qrgen canvas {
  width: 96px !important;
  height: 96px !important;
  display: block;
  margin: 0;
  border: 0;
}
.app-row-qr span { font-size: 0.75rem; color: var(--gray-light); }
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}
.catalog-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--gray-lighter);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  color: inherit;
}
.catalog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.catalog-thumb {
  aspect-ratio: 4 / 3;
  background: var(--primary-light);
  overflow: hidden;
}
.catalog-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.catalog-info { padding: 16px 18px 18px; }
.catalog-info h3 {
  font-size: 1rem;
  margin: 0 0 8px;
  color: var(--dark);
}
.catalog-cta {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary);
}
@media (max-width: 992px) {
  .catalog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .app-row {
    flex-direction: column;
    text-align: center;
    padding: 22px 18px;
  }
  .app-row-actions { width: 100%; max-width: 280px; }
  .app-row-qr { display: none; }
  .catalog-grid { grid-template-columns: 1fr; }
}
