/*
Theme Name: Company Pro
Theme URI: https://yourcompany.com
Author: Your Company
Description: Corporate theme with News, Portfolio, and Products sections
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: company-pro
Tags: business, corporate, custom-menu, featured-images, responsive-layout
*/

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

:root {
  --primary:         #0f35a0;
  --primary-dk:      #07194f;
  --primary-light:   #e8f0fe;
  --accent:          #ff9f1c;
  --accent-light:    #fff3cd;
  --accent-dark:     #e07a00;
  --text:            #1e293b;
  --text-muted:      #64748b;
  --bg-light:        #f8fafc;
  --bg-white:        #ffffff;
  --border:          #e2e8f0;
  --border-focus:    #cbd5e1;
  --radius-sm:       8px;
  --radius:          12px;
  --radius-lg:       16px;
  --shadow-sm:       0 1px 3px 0 rgba(0, 0, 0, 0.05);
  --shadow:          0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-lg:       0 10px 25px -5px rgba(15, 53, 160, 0.08), 0 8px 10px -6px rgba(15, 53, 160, 0.04);
  --shadow-hover:    0 20px 25px -5px rgba(15, 53, 160, 0.12), 0 10px 10px -5px rgba(15, 53, 160, 0.06);
  --transition-fast: 0.15s ease;
  --transition:      0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-bounce: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  --font-body:       'Sarabun', 'Noto Sans Thai', sans-serif;
}

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.8;
  color: var(--text);
  background: var(--bg-light);
  overflow-x: hidden;
  max-width: 100%;
  position: relative;
}

img { max-width: 100%; height: auto; display: block; }
a  { color: var(--primary); text-decoration: none; transition: all var(--transition-fast); }
a:hover { color: var(--primary-dk); }
ul { list-style: none; }

/* === Typography === */
h1, h2, h3, h4, h5 {
  line-height: 1.35;
  font-weight: 700;
  color: var(--primary-dk);
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); font-weight: 800; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; }

p { margin-bottom: 1.25rem; }

/* === Layout === */
.container {
  max-width: 1240px;
  width: 100%;
  margin-inline: auto;
  padding-inline: 1.5rem;
  box-sizing: border-box;
}

.section { padding: 5rem 0; overflow-x: hidden; }
.section-alt { background: var(--bg-white); }

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}
.section-header h2 {
  margin-bottom: 0.75rem;
  position: relative;
  display: inline-block;
}
.section-header .subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0.5rem auto 0;
}
.section-header .line {
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--accent) 0%, #ffc300 100%);
  margin: 1rem auto 0;
  border-radius: 4px;
}

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition-bounce);
  border: 2px solid transparent;
  gap: 0.5rem;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dk) 100%);
  color: var(--bg-white);
  box-shadow: 0 4px 14px rgba(15, 53, 160, 0.3);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(15, 53, 160, 0.4);
  color: var(--bg-white);
}
.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: var(--bg-white);
  transform: translateY(-3px);
  box-shadow: 0 4px 14px rgba(15, 53, 160, 0.2);
}
.btn-white {
  background: var(--bg-white);
  color: var(--primary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.btn-white:hover {
  background: var(--accent);
  color: var(--bg-white);
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(255, 159, 28, 0.3);
}

/* === Header / Navbar === */
#site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  gap: 1rem;
}
.site-logo a {
  display: block;
  text-decoration: none;
}
.site-logo .logo-text {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--primary-dk);
  line-height: 1.1;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dk) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}
.site-logo .logo-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Main Nav */
.main-nav ul {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.main-nav a {
  display: block;
  padding: 0.6rem 1.1rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
}
.main-nav a:hover,
.main-nav .current-menu-item > a,
.main-nav .current-page-ancestor > a {
  color: var(--primary);
  background: rgba(15, 53, 160, 0.06);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.6rem;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--primary-dk);
  border-radius: 2px;
  transition: all var(--transition);
}

/* === Hero Slider === */
/* === Hero Slider === */
.hero-slider {
  position: relative;
  width: 100%;
  height: 560px;
  overflow: hidden;
  background: #020617;
}
@media (max-width: 991px) {
  .hero-slider {
    height: auto;
    min-height: 640px;
  }
}
@media (max-width: 576px) {
  .hero-slider {
    min-height: 580px;
  }
}
.hero-slides {
  position: relative;
  width: 100%;
  height: 100%;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
  display: flex;
  align-items: center;
  z-index: 0;
}
.hero-slide.active {
  opacity: 1;
  z-index: 1;
}

/* Slide background shapes & gradients */
.hero-shape-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}
.hero-shape-bg::after {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.15;
  z-index: -1;
}
.bg-audio {
  background: linear-gradient(135deg, #020617 0%, #07194f 60%, #0c2b8a 100%);
}
.bg-audio::after {
  background: #3b82f6;
  right: -100px;
  top: -100px;
}
.bg-farm {
  background: linear-gradient(135deg, #020617 0%, #052e16 60%, #14532d 100%);
}
.bg-farm::after {
  background: #22c55e;
  right: -100px;
  top: -100px;
}
.bg-solar {
  background: linear-gradient(135deg, #020617 0%, #1c1917 60%, #44403c 100%);
}
.bg-solar::after {
  background: #f97316;
  right: -100px;
  top: -100px;
}

.hero-container {
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: 2rem;
  width: 100%;
}
.hero-row {
  min-height: 560px;
  width: 100%;
  margin: 0;
}
@media (max-width: 991px) {
  .hero-row {
    min-height: 640px;
    padding: 3rem 0;
  }
}
@media (max-width: 576px) {
  .hero-row {
    min-height: 580px;
    padding: 2.5rem 0;
  }
}

/* Glassmorphism Text Box */
.hero-glass-box {
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 2.5rem 3rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  color: #fff;
  opacity: 0;
  transform: translateY(30px);
}
@media (max-width: 991px) {
  .hero-glass-box {
    padding: 2rem;
    text-align: center;
    max-width: 540px;
    margin: 0 auto;
  }
}
@media (max-width: 576px) {
  .hero-glass-box {
    padding: 1.5rem;
  }
}

.hero-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.9rem;
  border-radius: 50px;
  margin-bottom: 1.25rem;
}
.badge-audio {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(96, 165, 250, 0.25);
}
.badge-farm {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border: 1px solid rgba(74, 222, 128, 0.25);
}
.badge-solar {
  background: rgba(249, 115, 22, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.25);
}

.hero-glass-box h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: #fff;
}
.hero-glass-box h2 span {
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-slide:nth-child(1) h2 span {
  background-image: linear-gradient(90deg, #60a5fa, #93c5fd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-slide:nth-child(2) h2 span {
  background-image: linear-gradient(90deg, #4ade80, #86efac);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-slide:nth-child(3) h2 span {
  background-image: linear-gradient(90deg, #fbbf24, #fde047);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-glass-box p {
  font-size: 0.95rem;
  line-height: 1.6;
  opacity: 0.85;
  margin-bottom: 1.75rem;
  color: #cbd5e1;
}
@media (max-width: 576px) {
  .hero-glass-box p {
    font-size: 0.875rem;
    margin-bottom: 1.25rem;
  }
}

.btn-hero-shop {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 2rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
  transition: all 0.25s ease;
  text-decoration: none;
  border: none;
  cursor: pointer;
}
.bg-audio-accent { background: #004ecc; }
.bg-farm-accent { background: #16a34a; }
.bg-solar-accent { background: #ea580c; }

.btn-hero-shop:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  filter: brightness(1.1);
  color: #fff;
}

/* Image Showcase */
.hero-image-col {
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-showcase-img {
  max-height: 440px;
  object-fit: contain;
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.6));
  opacity: 0;
  transform: scale(0.9);
}
@media (max-width: 991px) {
  .hero-showcase-img {
    max-height: 260px;
    margin-bottom: 1.5rem;
  }
}
@media (max-width: 576px) {
  .hero-showcase-img {
    max-height: 200px;
  }
}

/* Slider Controls */
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-arrow:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-50%) scale(1.08);
}
.hero-prev { left: 24px; }
.hero-next { right: 24px; }

@media (max-width: 991px) {
  .hero-arrow {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
  }
  .hero-prev { left: 12px; }
  .hero-next { right: 12px; }
}

.hero-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  gap: 8px;
}
.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  padding: 0;
}
.hero-dot.active,
.hero-dot:hover {
  background: #fff;
  transform: scale(1.25);
  width: 18px;
  border-radius: 4px;
}

/* Progress bar */
.hero-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent, #ff9f1c) 0%, #fbbf24 100%);
  z-index: 6;
  width: 0;
  transition: none;
}
.hero-progress.running {
  transition: width 6s linear;
  width: 100%;
}

/* Active Slide Entrance Animations */
.hero-slide.active .hero-glass-box {
  animation: heroFadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.hero-slide.active .hero-showcase-img {
  animation: heroFadeInScale 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards, heroFloat 5s ease-in-out infinite 0.8s;
}

@keyframes heroFadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes heroFadeInScale {
  to {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes heroFloat {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
}

/* === Cards (shared) === */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}
.card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(226, 232, 240, 0.6);
}
.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(15, 53, 160, 0.15);
}

.card-thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
  background: var(--bg-light);
}
.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.card:hover .card-thumb img {
  transform: scale(1.06);
}

.card-body {
  padding: 1.75rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.card-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  display: flex;
  gap: 1rem;
  align-items: center;
  font-weight: 600;
}
.card-cat-badge {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.85rem;
  border-radius: 50px;
}
.portfolio-tag {
  background: var(--accent-light);
  color: var(--accent-dark);
}
.card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}
.card h3 a {
  color: var(--primary-dk);
}
.card h3 a:hover {
  color: var(--primary);
}
.card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  flex: 1;
  margin-bottom: 1.25rem;
}
.card .read-more {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary);
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.card .read-more::after {
  content: '→';
  transition: transform var(--transition-fast);
}
.card:hover .read-more::after {
  transform: translateX(4px);
}

/* === News Archive === */
.news-grid { }

/* === Product Cards === */
.product-card .card-thumb {
  aspect-ratio: 1/1;
  border-bottom: 1px solid var(--border);
}
.product-price {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary);
  margin-top: auto;
  padding-top: 0.5rem;
}

/* === Single Post === */
.post-header {
  padding: 4.5rem 0 3.5rem;
  background: linear-gradient(180deg, rgba(15, 53, 160, 0.05) 0%, transparent 100%);
  border-bottom: 1px solid var(--border);
}
.post-header-inner {
  max-width: 860px;
  margin-inline: auto;
}
.post-header .post-category {
  color: var(--primary);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.post-header .post-meta {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 1rem;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  align-items: center;
}
.post-featured-image {
  margin: 3rem auto;
  max-width: 900px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.post-content {
  max-width: 860px;
  margin-inline: auto;
  padding: 0 1.5rem 5rem;
}
.post-content h2, .post-content h3 {
  margin: 2rem 0 1rem;
}
.post-content p {
  margin-bottom: 1.5rem;
}
.post-content ul, .post-content ol {
  margin-left: 2rem;
  margin-bottom: 1.5rem;
  list-style: revert;
}
.post-content li {
  margin-bottom: 0.5rem;
}
.post-content blockquote {
  border-left: 5px solid var(--primary);
  padding: 1.25rem 2rem;
  margin: 2rem 0;
  background: var(--bg-white);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  font-size: 1.1rem;
  box-shadow: var(--shadow-sm);
  color: var(--primary-dk);
}
.post-content img {
  border-radius: var(--radius);
  margin: 2rem 0;
  box-shadow: var(--shadow);
}

/* === Portfolio Single === */
.portfolio-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  margin: 2.5rem 0;
}
.portfolio-gallery img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform var(--transition);
}
.portfolio-gallery img:hover {
  transform: scale(1.03);
}
.portfolio-specs {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin: 2.5rem 0;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.portfolio-specs table {
  width: 100%;
  border-collapse: collapse;
}
.portfolio-specs td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.975rem;
}
.portfolio-specs tr:last-child td {
  border-bottom: none;
}
.portfolio-specs td:first-child {
  font-weight: 700;
  width: 35%;
  color: var(--text-muted);
}
.portfolio-specs td:last-child {
  color: var(--primary-dk);
  font-weight: 600;
}

/* === Services Section (Home) === */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2rem;
}
.service-item {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow);
  text-align: center;
  transition: all var(--transition-bounce);
  border: 1px solid rgba(226, 232, 240, 0.6);
}
.service-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(15, 53, 160, 0.15);
}
.service-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 1.75rem;
  box-shadow: 0 4px 10px rgba(15, 53, 160, 0.08);
}
.service-item h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}
.service-item p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.6;
}

/* === Stats Bar === */
.stats-bar {
  background: linear-gradient(135deg, var(--primary-dk) 0%, #061033 100%);
  color: var(--bg-white);
  padding: 4.5rem 0;
  position: relative;
  overflow: hidden;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2.5rem;
  text-align: center;
  position: relative;
  z-index: 1;
}
.stat-number {
  font-size: 3.25rem;
  font-weight: 800;
  background: linear-gradient(135deg, #ffc300 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}
.stat-label {
  font-size: 1.05rem;
  opacity: 0.85;
  margin-top: 0.5rem;
  font-weight: 600;
}

/* === CTA Banner === */
.cta-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dk) 100%);
  color: var(--bg-white);
  padding: 5.5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 10% 20%, rgba(255, 159, 28, 0.15) 0%, transparent 40%);
}
.cta-banner h2 {
  color: var(--bg-white);
  margin-bottom: 1rem;
  font-size: 2.25rem;
  position: relative;
  z-index: 1;
}
.cta-banner p {
  opacity: 0.9;
  margin-bottom: 2.25rem;
  font-size: 1.15rem;
  max-width: 680px;
  margin-inline: auto;
  position: relative;
  z-index: 1;
}
.cta-banner .btn {
  position: relative;
  z-index: 1;
}

/* === Breadcrumb === */
.breadcrumb {
  background: var(--bg-white);
  padding: 1rem 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  font-weight: 600;
  overflow: hidden;
  word-break: break-word;
  overflow-wrap: break-word;
}
.breadcrumb a {
  color: var(--text-muted);
}
.breadcrumb a:hover {
  color: var(--primary);
}
.breadcrumb span + span::before {
  content: '/';
  margin: 0 0.5rem;
  color: #cbd5e1;
}
.breadcrumb span:last-child {
  color: var(--primary-dk);
}

/* === Filter Bar === */
.filter-bar a.btn {
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 700;
  transition: all var(--transition-bounce);
}
.filter-bar a.btn-primary {
  box-shadow: 0 4px 10px rgba(15, 53, 160, 0.2);
}

/* === Pagination === */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 3rem 0 1rem;
  flex-wrap: wrap;
}
.pagination a, .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 0.85rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid var(--border);
  color: var(--text);
  background: var(--bg-white);
  transition: all var(--transition-bounce);
}
.pagination a:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.pagination .current {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--bg-white);
  box-shadow: 0 4px 10px rgba(15, 53, 160, 0.25);
}

/* === Footer === */
#site-footer {
  background: #0b152d;
  color: rgba(255, 255, 255, 0.7);
  border-top: 4px solid var(--accent);
}
.footer-top {
  padding: 5rem 0 3.5rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
}
.footer-brand .logo-text {
  color: var(--bg-white);
  font-size: 1.4rem;
  font-weight: 800;
}
.footer-brand p {
  font-size: 0.95rem;
  margin-top: 1rem;
  line-height: 1.6;
}
.footer-col h4 {
  color: var(--bg-white);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  position: relative;
}
.footer-col h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 35px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}
.footer-col ul li {
  margin-bottom: 0.75rem;
}
.footer-col ul li a {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.95rem;
  display: inline-block;
  transition: all var(--transition-fast);
}
.footer-col ul li a:hover {
  color: var(--accent);
  transform: translateX(4px);
}
.footer-contact-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}
.footer-contact-item span:first-child {
  font-size: 1.1rem;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.5rem 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.45);
}
.footer-bottom a {
  color: rgba(255, 255, 255, 0.55);
}
.footer-bottom a:hover {
  color: var(--accent);
}

/* === Form Styles (Contact etc.) === */
input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: all var(--transition-fast);
  color: var(--text);
}
input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(15, 53, 160, 0.15);
}

/* === Responsive === */
@media (max-width: 1024px) {
  .footer-top { grid-template-columns: 1.5fr 1fr 1fr; gap: 2rem; }
  .footer-top > div:first-child { grid-column: span 3; }
}

@media (max-width: 768px) {
  .header-inner { height: 70px; }
  .main-nav {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--bg-white);
    box-shadow: var(--shadow-lg);
    padding: 1.25rem;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
  }
  .main-nav.open {
    display: block;
    animation: slideDown 0.3s ease-out forwards;
  }
  .main-nav ul {
    flex-direction: column;
    gap: 0.5rem;
    align-items: stretch;
  }
  .main-nav a {
    padding: 0.75rem 1rem;
    font-size: 1rem;
  }
  .nav-toggle { display: flex; }
  .hero { padding: 5rem 0 4rem; }
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
  .footer-top > div:first-child { grid-column: span 1; }
  .footer-bottom .container { flex-direction: column; text-align: center; gap: 0.5rem; }
  
  /* Single Product Layout */
  section.section > .container > div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
}

@media (max-width: 480px) {
  .cards-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.8rem; }
  .hero p { font-size: 1.05rem; }
  .btn { width: 100%; }
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ================================================================
 *  WooCommerce-style Product Pages
 * ================================================================ */

/* --- Shop Layout --- */
.shop-wrap { padding: 2rem 0 4rem; overflow: hidden; max-width: 100%; }
.shop-layout {
  display: grid;
  grid-template-columns: 255px 1fr;
  gap: 2rem;
  align-items: start;
  overflow: hidden;
}

/* --- Sidebar --- */
.shop-sidebar { position: sticky; top: 90px; }
.sidebar-widget {
  background: var(--bg-white, #fff);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: var(--radius, 12px);
  overflow: hidden;
  margin-bottom: 1.25rem;
}
.sidebar-widget-title {
  font-size: .8rem;
  font-weight: 700;
  padding: .8rem 1.1rem;
  background: var(--bg-light, #f8fafc);
  border-bottom: 1px solid var(--border, #e2e8f0);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-muted, #64748b);
}
.sidebar-widget-body { padding: .65rem .9rem; }
.cat-list li { margin-bottom: .05rem; }
.cat-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .875rem;
  color: var(--text, #1e293b);
  padding: .45rem .65rem;
  border-radius: 6px;
  transition: all .2s;
  text-decoration: none;
}
.cat-list a:hover  { background: rgba(15,53,160,.06); color: var(--primary, #0f35a0); }
.cat-list a.active { background: var(--primary, #0f35a0); color: #fff; }
.cat-list a.active .cat-count { background: rgba(255,255,255,.2); color: #fff; }
.cat-count {
  font-size: .7rem; font-weight: 700;
  background: var(--bg-light, #f8fafc);
  color: var(--text-muted, #64748b);
  padding: .1rem .5rem;
  border-radius: 20px; min-width: 22px; text-align: center;
}

/* --- Shop Toolbar --- */
.shop-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: .65rem 1rem;
  background: var(--bg-light, #f8fafc);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: var(--radius, 12px);
  margin-bottom: 1.5rem; gap: .75rem; flex-wrap: wrap;
  min-width: 0; overflow: hidden;
}
.shop-result-count { font-size: .85rem; color: var(--text-muted, #64748b); flex-shrink: 1; min-width: 0; }
.toolbar-right { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; flex-shrink: 0; }
.shop-ordering { display: flex; align-items: center; gap: .4rem; font-size: .85rem; color: var(--text-muted, #64748b); }
.shop-ordering select {
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 6px;
  padding: .35rem 2rem .35rem .75rem;
  font-size: .85rem;
  font-family: var(--font-body, 'Sarabun', sans-serif);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%2364748b'/%3E%3C/svg%3E") no-repeat right .65rem center;
  color: var(--text, #1e293b); cursor: pointer; outline: none; appearance: none;
}
.view-toggle { display: flex; gap: .25rem; }
.view-btn {
  width: 32px; height: 32px;
  border: 1px solid var(--border, #e2e8f0); background: #fff;
  border-radius: 6px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: .95rem; transition: all .2s; color: var(--text-muted, #64748b);
}
.view-btn:hover { border-color: var(--primary, #0f35a0); color: var(--primary, #0f35a0); }
.view-btn.active { background: var(--primary, #0f35a0); color: #fff; border-color: var(--primary, #0f35a0); }

/* --- WC Products Grid --- */
.wc-products-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.15rem; min-width: 0; max-width: 100%; }

/* --- WC Product Card --- */
.wc-product-card {
  background: #fff;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: var(--radius, 12px);
  overflow: hidden;
  transition: box-shadow .25s, transform .25s;
  display: flex; flex-direction: column;
  min-width: 0;
  word-break: break-word;
}
.wc-product-card:hover { box-shadow: 0 12px 32px rgba(15,53,160,.1); transform: translateY(-4px); }

.wc-img-wrap {
  position: relative; overflow: hidden;
  aspect-ratio: 1/1; background: var(--bg-light, #f8fafc);
  display: block; flex-shrink: 0; cursor: pointer;
}
.wc-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; display: block; }
.wc-product-card:hover .wc-img-wrap img { transform: scale(1.06); }
.wc-no-img { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 3.5rem; color: #cbd5e1; }

.wc-hover-actions {
  position: absolute; bottom: 0; left: 0; right: 0;
  display: flex; justify-content: center; gap: .5rem;
  padding: .85rem .75rem;
  background: linear-gradient(transparent, rgba(0,0,0,.5));
  transform: translateY(101%); transition: transform .28s ease;
}
.wc-product-card:hover .wc-hover-actions { transform: translateY(0); }
.wc-hover-btn {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .4rem 1.1rem; border-radius: 40px;
  font-size: .8rem; font-weight: 700; cursor: pointer;
  border: none; white-space: nowrap; text-decoration: none; transition: all .2s;
}
.wc-hover-btn-view { background: #fff; color: var(--primary, #0f35a0); }
.wc-hover-btn-view:hover { background: var(--primary, #0f35a0); color: #fff; }

/* --- Badges --- */
.wc-badges {
  position: absolute; top: .6rem; left: .6rem; z-index: 3;
  display: flex; flex-direction: column; gap: .3rem; pointer-events: none;
}
.wc-badge-tag {
  display: inline-block; padding: .2rem .6rem; border-radius: 4px;
  font-size: .7rem; font-weight: 700; line-height: 1.4; width: fit-content;
}
.badge-sale     { background: #e44c4c; color: #fff; }
.badge-new      { background: #16a34a; color: #fff; }
.badge-featured { background: var(--accent, #ff9f1c); color: #fff; }
.badge-sold     { background: #6b7280; color: #fff; }

/* --- Card Body --- */
.wc-card-body { padding: .9rem 1rem 1rem; display: flex; flex-direction: column; flex: 1; }
.wc-card-cat { font-size: .72rem; color: var(--text-muted, #64748b); margin-bottom: .2rem; }
.wc-card-cat a { color: var(--text-muted, #64748b); }
.wc-card-cat a:hover { color: var(--primary, #0f35a0); }
.wc-card-title { font-size: .95rem; font-weight: 700; margin-bottom: .15rem; line-height: 1.4; }
.wc-card-title a { color: var(--text, #1e293b); }
.wc-card-title a:hover { color: var(--primary, #0f35a0); }
.wc-card-sku { font-size: .7rem; color: #9ca3af; margin-bottom: .3rem; }

/* --- Star Rating --- */
.star-rating { display: inline-flex; gap: 1px; align-items: center; margin-bottom: .35rem; }
.star-rating .star { font-size: .85rem; line-height: 1; color: #d1d5db; }
.star-rating .star.on { color: #f59e0b; }
.star-rating .rating-count { font-size: .72rem; color: var(--text-muted, #64748b); margin-left: .3rem; }

/* --- WC Price --- */
.wc-price { display: flex; align-items: baseline; gap: .45rem; flex-wrap: wrap; margin: .3rem 0; }
.wc-price .price-regular { font-size: .82rem; color: var(--text-muted, #64748b); text-decoration: line-through; }
.wc-price .price-sale    { font-size: 1.15rem; font-weight: 800; color: #e44c4c; }
.wc-price .price-normal  { font-size: 1.1rem;  font-weight: 700; color: var(--primary, #0f35a0); }
.wc-price .price-poa     { font-size: .9rem;   color: var(--text-muted, #64748b); font-style: italic; }

/* --- Stock Badge --- */
.stock-badge {
  display: inline-flex; align-items: center; gap: .3rem;
  font-size: .72rem; font-weight: 700; padding: .2rem .65rem;
  border-radius: 20px; margin: .25rem 0 .5rem;
}
.stock-badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.stock-instock    { background: #d1fae5; color: #065f46; }
.stock-instock::before    { background: #16a34a; }
.stock-outofstock { background: #fee2e2; color: #991b1b; }
.stock-outofstock::before { background: #e44c4c; }
.stock-onorder    { background: #fef3c7; color: #92400e; }
.stock-onorder::before    { background: #f59e0b; }

.wc-card-footer {
  margin-top: auto; padding-top: .75rem;
  display: flex; align-items: center; gap: .5rem; flex-wrap: wrap;
  border-top: 1px solid var(--border, #e2e8f0);
}
.wc-card-btn { font-size: .82rem; padding: .45rem .9rem; }
.wc-card-excerpt { display: none; font-size: .875rem; color: var(--text-muted, #64748b); margin: .35rem 0 .65rem; }

/* --- List View --- */
.wc-products-grid.list-view { grid-template-columns: 1fr; gap: 1rem; }
.wc-products-grid.list-view .wc-product-card { flex-direction: row; }
.wc-products-grid.list-view .wc-img-wrap { width: 190px; min-height: 190px; aspect-ratio: unset; flex-shrink: 0; }
.wc-products-grid.list-view .wc-hover-actions { display: none; }
.wc-products-grid.list-view .wc-card-body { padding: 1.1rem 1.25rem; }
.wc-products-grid.list-view .wc-card-title { font-size: 1.05rem; }
.wc-products-grid.list-view .wc-card-excerpt { display: block; }

/* ----------------------------------------------------------------
 *  Single Product (WooCommerce-style)
 * -------------------------------------------------------------- */
.single-product-wrap { padding: 2rem 0 0; overflow: hidden; max-width: 100%; }
.single-product-main {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 3rem; align-items: start; margin-bottom: 3rem;
}

/* --- Gallery --- */
.product-gallery-wrap { display: flex; flex-direction: column; gap: .65rem; }
.product-gallery-main {
  position: relative; overflow: hidden;
  border-radius: var(--radius, 12px);
  border: 1px solid var(--border, #e2e8f0);
  aspect-ratio: 1/1; background: var(--bg-light, #f8fafc); cursor: zoom-in;
}
.product-gallery-main img { width: 100%; height: 100%; object-fit: contain; transition: opacity .18s ease; }
.zoom-hint {
  position: absolute; bottom: .6rem; right: .6rem;
  background: rgba(0,0,0,.4); color: #fff;
  font-size: .68rem; padding: .2rem .5rem; border-radius: 4px;
  pointer-events: none; opacity: 0; transition: opacity .2s;
}
.product-gallery-main:hover .zoom-hint { opacity: 1; }
.gallery-top-badges { position: absolute; top: .7rem; left: .7rem; z-index: 2; display: flex; flex-direction: column; gap: .3rem; }

.product-gallery-thumbs { display: flex; gap: .5rem; flex-wrap: wrap; }
.gallery-thumb {
  width: 68px; height: 68px; border-radius: 6px; overflow: hidden;
  border: 2px solid var(--border, #e2e8f0); cursor: pointer;
  transition: border-color .2s, opacity .2s; background: var(--bg-light, #f8fafc); flex-shrink: 0;
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb:hover, .gallery-thumb.active { border-color: var(--primary, #0f35a0); }
.gallery-thumb.inactive { opacity: .5; }

/* Lightbox */
.product-lightbox {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.9); z-index: 9999;
  align-items: center; justify-content: center; cursor: zoom-out;
}
.product-lightbox.open { display: flex; }
.product-lightbox img { max-width: 90vw; max-height: 90vh; object-fit: contain; border-radius: 8px; }
.lightbox-close {
  position: absolute; top: 1.25rem; right: 1.5rem;
  color: #fff; font-size: 2rem; cursor: pointer; line-height: 1;
  background: none; border: none; font-weight: 300;
}

/* --- Product Summary --- */
.prod-category { font-size: .8rem; color: var(--text-muted, #64748b); margin-bottom: .35rem; }
.prod-category a { color: var(--primary, #0f35a0); }
.product-summary h1 { font-size: 1.6rem; margin-bottom: .5rem; line-height: 1.3; }
.product-rating-row { display: flex; align-items: center; gap: 1rem; margin-bottom: .75rem; flex-wrap: wrap; }
.star-rating-lg .star { font-size: 1.1rem; }
.rating-link { font-size: .82rem; color: var(--text-muted, #64748b); }
.rating-link:hover { color: var(--primary, #0f35a0); }

.product-price-block {
  padding: 1rem 0;
  border-top: 1px solid var(--border, #e2e8f0);
  border-bottom: 1px solid var(--border, #e2e8f0);
  margin-bottom: 1.25rem;
  display: flex; align-items: baseline; gap: .6rem; flex-wrap: wrap;
}
.main-price { font-size: 2rem; font-weight: 800; color: #e44c4c; line-height: 1; }
.main-price.no-sale { color: var(--primary, #0f35a0); }
.was-price { font-size: .95rem; color: var(--text-muted, #64748b); text-decoration: line-through; }
.discount-badge {
  background: #fee2e2; color: #e44c4c;
  font-size: .72rem; font-weight: 700; padding: .2rem .55rem; border-radius: 4px;
}
.price-poa { font-size: 1.15rem; color: var(--text-muted, #64748b); font-style: italic; }

.product-short-desc { font-size: .925rem; color: var(--text-muted, #64748b); margin-bottom: 1.25rem; line-height: 1.75; }

/* --- Meta Table --- */
.product-meta-table {
  border: 1px solid var(--border, #e2e8f0);
  border-radius: var(--radius, 12px); overflow: hidden; margin-bottom: 1.25rem; font-size: .865rem;
}
.product-meta-row { display: grid; grid-template-columns: 130px 1fr; border-bottom: 1px solid var(--border, #e2e8f0); }
.product-meta-row:last-child { border-bottom: none; }
.product-meta-key {
  padding: .6rem .85rem; background: var(--bg-light, #f8fafc);
  color: var(--text-muted, #64748b); font-weight: 600; border-right: 1px solid var(--border, #e2e8f0);
}
.product-meta-val { padding: .6rem .85rem; color: var(--text, #1e293b); }

/* --- Qty Stepper + Actions --- */
.product-add-row { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; }
.qty-select-row { display: flex; align-items: center; gap: 0.75rem; }
.qty-label { font-size: .875rem; font-weight: 700; white-space: nowrap; }
.qty-stepper {
  display: flex; align-items: stretch;
  border: 2px solid var(--border, #e2e8f0); border-radius: var(--radius, 12px); overflow: hidden; width: fit-content;
}
.qty-stepper button {
  width: 38px; background: var(--bg-light, #f8fafc);
  border: none; cursor: pointer; font-size: 1.2rem; font-weight: 700; color: var(--text, #1e293b);
  transition: background .2s; line-height: 1;
}
.qty-stepper button:hover { background: var(--border, #e2e8f0); }
.qty-stepper input[type="number"] {
  width: 52px; border: none;
  border-left: 2px solid var(--border, #e2e8f0); border-right: 2px solid var(--border, #e2e8f0);
  text-align: center; font-size: 1rem; font-weight: 600; outline: none; padding: .55rem 0;
  -moz-appearance: textfield;
}
.qty-stepper input::-webkit-outer-spin-button,
.qty-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }

.btn-add-rfq-cart {
  background: var(--accent, #ff9f1c); color: #fff;
  border: 2px solid var(--accent, #ff9f1c); padding: .7rem 1.25rem;
  border-radius: var(--radius, 12px); font-weight: 700; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  transition: all 0.25s; font-family: var(--font-body, 'Sarabun', sans-serif); font-size: .95rem;
}
.btn-add-rfq-cart:hover {
  background: var(--accent-dark, #e08400); border-color: var(--accent-dark, #e08400);
  transform: translateY(-2px);
}

.btn-inquire {
  padding: .7rem 1.25rem;
  font-size: .95rem; font-weight: 700; font-family: var(--font-body, 'Sarabun', sans-serif);
  background: transparent; color: var(--primary, #0f35a0);
  border: 2px solid var(--primary, #0f35a0); border-radius: var(--radius, 12px);
  cursor: pointer; transition: all .25s;
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem; text-decoration: none;
}
.btn-inquire:hover { background: var(--primary, #0f35a0); border-color: var(--primary, #0f35a0); color: #fff; transform: translateY(-2px); }
.btn-inquire.out-of-stock {
  background: var(--primary, #0f35a0); color: #fff;
}
.btn-inquire.out-of-stock:hover {
  background: #07194f; border-color: #07194f;
}

.btn-call {
  padding: .7rem 1.1rem; font-size: .9rem; font-weight: 600;
  font-family: var(--font-body, 'Sarabun', sans-serif);
  background: transparent; color: var(--primary, #0f35a0);
  border: 2px solid var(--primary, #0f35a0); border-radius: var(--radius, 12px);
  cursor: pointer; transition: all .25s;
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem; text-decoration: none;
}
.btn-call:hover { background: var(--primary, #0f35a0); color: #fff; transform: translateY(-2px); }

.secondary-actions-row {
  display: inline-flex;
  gap: 1rem;
  align-items: center;
}

/* --- Share --- */
.product-share {
  display: flex; align-items: center; gap: .5rem;
  font-size: .85rem; color: var(--text-muted, #64748b);
  padding-top: 1rem; border-top: 1px solid var(--border, #e2e8f0); flex-wrap: wrap;
}
.share-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--border, #e2e8f0); color: var(--text-muted, #64748b);
  font-size: .8rem; transition: all .2s; text-decoration: none;
}
.share-btn:hover { border-color: var(--primary, #0f35a0); color: var(--primary, #0f35a0); background: rgba(15,53,160,.05); }

/* --- Product Tabs --- */
.product-tabs-section { border-top: 1px solid var(--border, #e2e8f0); padding-top: 2.5rem; margin-bottom: 2.5rem; }
.tab-nav { display: flex; border-bottom: 2px solid var(--border, #e2e8f0); gap: 0; overflow-x: auto; }
.tab-btn {
  padding: .85rem 1.5rem; background: none; border: none;
  font-size: .95rem; font-weight: 600; font-family: var(--font-body, 'Sarabun', sans-serif);
  color: var(--text-muted, #64748b); cursor: pointer;
  border-bottom: 3px solid transparent; margin-bottom: -2px;
  transition: all .2s; white-space: nowrap;
}
.tab-btn:hover { color: var(--text, #1e293b); }
.tab-btn.active { color: var(--primary, #0f35a0); border-bottom-color: var(--primary, #0f35a0); }
.tab-pane { display: none; padding: 2rem 0; }
.tab-pane.active { display: block; }

/* Specs table */
.specs-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.specs-table tr:nth-child(even) { background: var(--bg-light, #f8fafc); }
.specs-table td { padding: .65rem 1rem; border-bottom: 1px solid var(--border, #e2e8f0); }
.specs-table td:first-child { font-weight: 600; width: 35%; color: var(--text-muted, #64748b); border-right: 1px solid var(--border, #e2e8f0); }
.specs-table tr:last-child td { border-bottom: none; }

/* Download list */
.download-list { list-style: none; display: flex; flex-direction: column; gap: .6rem; }
.download-item {
  display: flex; align-items: center; gap: .75rem;
  padding: .85rem 1.1rem; border: 1px solid var(--border, #e2e8f0);
  border-radius: var(--radius, 12px); font-size: .9rem; transition: all .2s;
}
.download-item:hover { background: var(--bg-light, #f8fafc); border-color: var(--primary, #0f35a0); }
.download-item .dl-icon { font-size: 1.4rem; flex-shrink: 0; }
.download-item .dl-name { flex: 1; font-weight: 600; }
.download-item .dl-btn {
  padding: .3rem .85rem; border-radius: 4px;
  background: var(--primary, #0f35a0); color: #fff;
  font-size: .78rem; font-weight: 600; text-decoration: none; transition: background .2s;
}
.download-item .dl-btn:hover { background: #07194f; color: #fff; }

/* --- Related Products --- */
.related-products-section { border-top: 1px solid var(--border, #e2e8f0); padding: 2.5rem 0 3rem; }
.related-products-section h2 {
  font-size: 1.2rem; margin-bottom: 1.5rem;
  display: flex; align-items: center; gap: .75rem;
}
.related-products-section h2::after { content: ''; flex: 1; height: 1px; background: var(--border, #e2e8f0); }
.related-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }

/* --- WC Responsive --- */
@media (max-width: 1100px) {
  .wc-products-grid { grid-template-columns: repeat(2, 1fr); }
  .related-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .shop-layout { grid-template-columns: 1fr; gap: 1rem; }
  .shop-sidebar {
    position: static;
    margin-bottom: 0.5rem;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
  }
  .shop-main {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
  }
  .shop-sidebar .sidebar-widget:nth-child(2) {
    display: none;
  }
  .shop-sidebar .sidebar-widget:first-child {
    background: transparent;
    border: none;
    border-radius: 0;
    margin-bottom: 0;
    overflow: hidden;
  }
  .shop-sidebar .sidebar-widget-title {
    display: none;
  }
  .shop-sidebar .sidebar-widget-body {
    padding: 0;
    overflow: hidden;
  }
  .cat-list {
    display: flex;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    gap: 0.5rem;
    padding: 0.25rem 0.25rem 0.75rem;
    margin: 0;
    scrollbar-width: none;
  }
  .cat-list::-webkit-scrollbar {
    display: none;
  }
  .cat-list li {
    margin-bottom: 0;
    flex: 0 0 auto;
  }
  .cat-list a {
    display: inline-flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--border, #e2e8f0);
    padding: 0.45rem 1rem;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.25s;
    gap: 0.35rem;
    color: var(--text, #1e293b);
  }
  .cat-list a:hover {
    background: rgba(15, 53, 160, 0.06);
    color: var(--primary, #0f35a0);
  }
  .cat-list a.active {
    background: var(--primary, #0f35a0) !important;
    color: #ffffff !important;
    border-color: var(--primary, #0f35a0);
    box-shadow: 0 4px 12px rgba(15, 53, 160, 0.18);
  }
  .cat-list a.active .cat-count {
    background: rgba(255, 255, 255, 0.25) !important;
    color: #ffffff !important;
  }
}
@media (max-width: 768px) {
  .single-product-wrap { overflow-x: hidden; }
  .single-product-main { grid-template-columns: 1fr; gap: 1.75rem; }
  .wc-products-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
  .product-summary h1 { font-size: 1.45rem; }
  .product-add-row {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }
  .qty-select-row {
    justify-content: flex-start;
    gap: 1rem;
    width: 100%;
  }
  .btn-add-rfq-cart {
    width: 100%;
    padding: .85rem 1.25rem;
    font-size: 1rem;
  }
  .secondary-actions-row {
    display: flex;
    width: 100%;
    gap: 0.75rem;
  }
  .secondary-actions-row > * {
    flex: 1;
    padding: .8rem 1rem;
    font-size: 0.9rem;
    justify-content: center;
  }
}
@media (max-width: 560px) {
  .wc-products-grid { grid-template-columns: 1fr; }
  .wc-products-grid.list-view .wc-img-wrap { width: 110px; min-height: 110px; }
  .tab-btn { padding: .75rem .9rem; font-size: .875rem; white-space: nowrap; }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 576px) {
  .product-gallery-thumbs {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: .5rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .product-gallery-thumbs::-webkit-scrollbar {
    display: none;
  }
  .gallery-thumb {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
  }
  .tab-nav {
    scrollbar-width: none;
  }
  .tab-nav::-webkit-scrollbar {
    display: none;
  }
  .product-meta-row {
    grid-template-columns: 1fr;
  }
  .product-meta-key {
    border-right: none;
    border-bottom: 1px solid var(--border, #e2e8f0);
    padding: .5rem .75rem;
  }
  .product-meta-val {
    padding: .5rem .75rem;
  }
  .specs-table, .specs-table tbody, .specs-table tr, .specs-table td {
    display: block;
    width: 100% !important;
  }
  .specs-table tr {
    border-bottom: 1px solid var(--border, #e2e8f0);
  }
  .specs-table tr:last-child {
    border-bottom: none;
  }
  .specs-table td {
    border: none !important;
    padding: .5rem .75rem;
  }
  .specs-table td:first-child {
    font-weight: 700;
    color: var(--text-muted, #64748b);
    background: var(--bg-light, #f8fafc);
    padding-bottom: .25rem;
  }
  .specs-table td:last-child {
    padding-top: .25rem;
    color: var(--text, #1e293b);
  }
  .wc-card-body {
    padding: .75rem;
  }
  .wc-card-title {
    font-size: .875rem;
  }
  .wc-price .price-sale {
    font-size: 1rem;
  }
  .wc-price .price-normal {
    font-size: .95rem;
  }
  .wc-price .price-regular {
    font-size: .75rem;
  }
  .stock-badge {
    font-size: .65rem;
    padding: .15rem .5rem;
  }
  .wc-card-footer {
    padding-top: .5rem;
    gap: .4rem;
  }
  .wc-card-footer .btn {
    width: 100%;
    text-align: center;
    padding: .6rem .5rem !important;
    font-size: .8rem !important;
    min-height: 40px;
  }
  /* Toolbar compact */
  .shop-toolbar { padding: .5rem .75rem; gap: .5rem; }
  .shop-result-count { font-size: .78rem; }
  .shop-ordering > span { display: none; }
  .shop-ordering select { font-size: .8rem; padding: .3rem 1.6rem .3rem .55rem; max-width: 140px; }
  /* Main price smaller on phones */
  .main-price { font-size: 1.6rem; }
  .product-summary h1 { font-size: 1.35rem; }
}
@media (max-width: 400px) {
  .wc-products-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
}

/* --- Contact Page Styles --- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  margin-bottom: 4rem;
}
.contact-info-section {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.contact-info-card {
  background: var(--bg-white, #ffffff);
  border-radius: var(--radius-lg, 16px);
  padding: 2.5rem;
  border: 1px solid var(--border, #e2e8f0);
  box-shadow: var(--shadow, 0 4px 6px -1px rgba(0, 0, 0, 0.05));
}
.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.contact-item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}
.contact-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--primary-light, #e8f0fe);
  color: var(--primary, #0f35a0);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
  box-shadow: 0 4px 8px rgba(15, 53, 160, 0.06);
}
.contact-item-body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--primary-dk, #07194f);
}
.contact-item-body p,
.contact-item-body a {
  font-size: 0.95rem;
  color: var(--text-muted, #64748b);
  margin: 0;
}
.contact-item-body a:hover {
  color: var(--primary, #0f35a0);
}

.social-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}
.social-link-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: var(--radius, 12px);
  border: 1px solid var(--border, #e2e8f0);
  background: var(--bg-white, #ffffff);
  transition: all var(--transition-bounce, 0.4s cubic-bezier(0.34, 1.56, 0.64, 1));
  text-decoration: none;
}
.social-link-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow, 0 4px 6px rgba(0,0,0,0.05));
  border-color: var(--primary, #0f35a0);
}
.social-icon-box {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #fff;
  flex-shrink: 0;
}
.social-icon-box.line { background: #06C755; }
.social-icon-box.facebook { background: #1877F2; }
.social-icon-box.youtube { background: #FF0000; }
.social-icon-box.phone { background: var(--primary, #0f35a0); }

.social-link-info {
  display: flex;
  flex-direction: column;
}
.social-link-info .platform { font-size: 0.75rem; color: var(--text-muted, #64748b); font-weight: 600; }
.social-link-info .handle { font-size: 0.88rem; color: var(--primary-dk, #07194f); font-weight: 700; }

.contact-form-card {
  background: var(--bg-white, #ffffff);
  border-radius: var(--radius-lg, 16px);
  padding: 2.5rem;
  border: 1px solid var(--border, #e2e8f0);
  box-shadow: var(--shadow, 0 4px 6px -1px rgba(0, 0, 0, 0.05));
}
.contact-form-card h2 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  color: var(--primary-dk, #07194f);
}
.contact-form-card .subtitle {
  font-size: 0.92rem;
  color: var(--text-muted, #64748b);
  margin-bottom: 2rem;
}
.form-group-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}
.form-group {
  margin-bottom: 1.25rem;
}
.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primary-dk, #07194f);
  margin-bottom: 0.5rem;
}
.contact-map-section {
  margin-top: 2rem;
  border-radius: var(--radius-lg, 16px);
  overflow: hidden;
  box-shadow: var(--shadow, 0 4px 6px -1px rgba(0, 0, 0, 0.05));
  border: 1px solid var(--border, #e2e8f0);
}

@media (max-width: 900px) {
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

/* ================================================================
 *  Hero Fallback (no posts)
 * ================================================================ */
.hero-static {
  background: linear-gradient(135deg, var(--primary-dk) 0%, #061033 100%);
  padding: 7rem 0 6rem;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.hero-static::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 75% 25%, rgba(255,159,28,.15) 0%, transparent 55%),
              radial-gradient(circle at 20% 80%, rgba(15,53,160,.35) 0%, transparent 55%);
}
.hero-static-content {
  position: relative; z-index: 1;
  max-width: 820px; margin-inline: auto; padding-inline: 1.5rem;
}
.hero-static h1 { color: #fff; margin-bottom: 1.1rem; line-height: 1.2; }
.hero-static p  { font-size: 1.15rem; opacity: .85; margin-bottom: 2rem; max-width: 640px; margin-inline: auto; }
.hero-static-btns { display: flex; gap: 1.1rem; justify-content: center; flex-wrap: wrap; }
.hero-eyebrow {
  display: inline-block;
  background: rgba(255,159,28,.9);
  color: #fff;
  font-size: .72rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  padding: .3rem 1rem; border-radius: 50px;
  margin-bottom: 1.25rem;
}

/* ================================================================
 *  Section Eyebrow Label
 * ================================================================ */
.section-eyebrow {
  display: block;
  font-size: .75rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--primary);
  margin-bottom: .75rem;
}

/* ================================================================
 *  Solutions Spotlight
 * ================================================================ */
.solutions-section {
  background: radial-gradient(circle at center, #182e5c 0%, #0a1329 65%, #030610 100%);
  padding: 6.5rem 0;
  position: relative;
  overflow: hidden;
}
.solutions-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(15, 53, 160, 0.15) 1.5px, transparent 1.5px);
  background-size: 24px 24px;
  pointer-events: none;
  opacity: 0.65;
  z-index: 1;
}
.solutions-section .container {
  position: relative;
  z-index: 2;
}
.solutions-section .section-eyebrow {
  color: #ff9f1c;
  font-weight: 700;
  text-shadow: 0 0 12px rgba(255, 159, 28, 0.4);
}
.solutions-section .section-header h2 {
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}
.solutions-section .section-header .subtitle {
  color: #e2e8f0;
  font-size: 1.1rem;
}
.solutions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
@media (max-width: 960px) {
  .solutions-grid {
    grid-template-columns: 1fr;
  }
}
.solution-card {
  background: linear-gradient(135deg, rgba(13, 25, 48, 0.75) 0%, rgba(8, 15, 30, 0.5) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  color: rgba(255, 255, 255, 0.8);
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2.25rem;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.4), 0 1px 0 0 rgba(255, 255, 255, 0.05) inset;
}
@media (max-width: 1200px) {
  .solution-card {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2.5rem 2rem;
  }
}
/* Glowing background blobs behind mockups */
.solution-card::before {
  content: '';
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  filter: blur(80px);
  z-index: 0;
  pointer-events: none;
  bottom: -40px;
  right: -40px;
  opacity: 0.18;
  transition: opacity 0.4s;
}
.solution-audio::before {
  background: var(--primary);
}
.solution-iot::before {
  background: #16a34a;
}
.solution-card:hover::before {
  opacity: 0.28;
}

.solution-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 35px 70px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.12);
  background: linear-gradient(135deg, rgba(18, 33, 61, 0.85) 0%, rgba(12, 22, 41, 0.6) 100%);
}
.solution-audio:hover {
  border-color: rgba(15, 53, 160, 0.45);
}
.solution-iot:hover {
  border-color: rgba(22, 163, 74, 0.45);
  box-shadow: 0 35px 70px rgba(22, 163, 74, 0.15), 0 0 0 1px rgba(22, 163, 74, 0.12);
}

.solution-card-text {
  display: flex;
  flex-direction: column;
}

.solution-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: var(--radius);
  font-size: 1.8rem;
  margin-bottom: 1.25rem;
}
.solution-audio .solution-icon-wrap {
  background: var(--primary-light);
  color: var(--primary);
}
.solution-iot .solution-icon-wrap {
  background: #d1fae5;
  color: #16a34a;
}

.solution-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  display: block;
}
.solution-audio .solution-label {
  color: #38bdf8;
}
.solution-iot .solution-label {
  color: #34d399;
}

.solution-card h3 {
  font-size: 1.45rem;
  color: #ffffff;
  margin-bottom: 0.85rem;
  line-height: 1.35;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}
.solution-card > p,
.solution-card-text > p {
  font-size: 0.925rem;
  color: #cbd5e1;
  margin-bottom: 1.25rem;
  line-height: 1.7;
}

.solution-features {
  list-style: none;
  margin-bottom: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.solution-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.875rem;
  color: #cbd5e1;
  line-height: 1.5;
}
.solution-features li::before {
  content: '✓';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  min-width: 18px;
  border-radius: 50%;
  font-size: 0.62rem;
  font-weight: 700;
  margin-top: 2px;
}
.solution-audio .solution-features li::before {
  background: var(--primary-light);
  color: var(--primary);
}
.solution-iot .solution-features li::before {
  background: #d1fae5;
  color: #16a34a;
}

.solution-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 0.5rem;
}

.btn-sol-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.875rem;
  text-decoration: none;
  transition: all 0.25s;
  border: none;
  cursor: pointer;
  color: #fff;
}
.solution-audio .btn-sol-primary {
  background: var(--primary);
  box-shadow: 0 4px 12px rgba(15, 53, 160, 0.2);
}
.solution-audio .btn-sol-primary:hover {
  background: var(--primary-dk);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(15, 53, 160, 0.3);
}
.solution-iot .btn-sol-primary {
  background: #16a34a;
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.2);
}
.solution-iot .btn-sol-primary:hover {
  background: #14532d;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(22, 163, 74, 0.3);
}

.btn-sol-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 1.2rem;
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  transition: all 0.25s;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
}
.btn-sol-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.45);
}

/* ================================================================
 *  Interactive Mockups (Minimalist Glassmorphism)
 * ================================================================ */
.solution-mockup {
  background: rgba(10, 18, 36, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 100%;
  min-height: 260px;
}
.mockup-header {
  background: rgba(16, 28, 54, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.65rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.mockup-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.mockup-dot.red { background: #ef4444; }
.mockup-dot.yellow { background: #f59e0b; }
.mockup-dot.green { background: #10b981; }
.mockup-title {
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.5);
  margin-left: 0.5rem;
  font-family: monospace;
}

.mockup-body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  background: linear-gradient(180deg, rgba(13, 23, 46, 0.85) 0%, rgba(8, 14, 28, 0.95) 100%);
}

/* --- IP Audio Control --- */
.mock-zones {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.mock-zone-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all var(--transition-fast);
  text-align: left;
}
.mock-zone-btn:hover {
  border-color: rgba(15, 53, 160, 0.5);
  background: rgba(15, 53, 160, 0.15);
}
.mock-zone-btn.active {
  border-color: var(--primary);
  background: rgba(15, 53, 160, 0.35);
  color: #ffffff;
}
.status-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: inline-block;
}
.status-indicator.active {
  background: #10b981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.3);
  animation: pulseGreen 2s infinite;
}
@keyframes pulseGreen {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
  70% { box-shadow: 0 0 0 4px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.mock-player {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.player-info {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.music-icon {
  font-size: 1.2rem;
  animation: spinSlow 8s linear infinite;
  display: inline-block;
}
.mock-player.playing .music-icon {
  animation: spinSlow 3s linear infinite;
}
@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.player-text {
  display: flex;
  flex-direction: column;
}
.track-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: #ffffff;
}
.track-status {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.5);
}

.eq-waves {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 22px;
  padding-bottom: 2px;
  justify-content: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 0.25rem;
}
.eq-bar {
  width: 3px;
  height: 3px;
  background: var(--primary);
  border-radius: 3px;
  transition: height 0.1s ease;
}
.mock-player.playing .eq-bar:nth-child(1) { animation: eqWave 0.8s ease infinite alternate; }
.mock-player.playing .eq-bar:nth-child(2) { animation: eqWave 1.2s ease infinite alternate; animation-delay: 0.1s; }
.mock-player.playing .eq-bar:nth-child(3) { animation: eqWave 0.9s ease infinite alternate; animation-delay: 0.25s; }
.mock-player.playing .eq-bar:nth-child(4) { animation: eqWave 1.4s ease infinite alternate; animation-delay: 0.05s; }
.mock-player.playing .eq-bar:nth-child(5) { animation: eqWave 1.1s ease infinite alternate; animation-delay: 0.3s; }
.mock-player.playing .eq-bar:nth-child(6) { animation: eqWave 0.7s ease infinite alternate; animation-delay: 0.15s; }
.mock-player.playing .eq-bar:nth-child(7) { animation: eqWave 1.3s ease infinite alternate; animation-delay: 0.2s; }

@keyframes eqWave {
  0% { height: 3px; }
  100% { height: 20px; }
}

.player-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.player-btn-play {
  background: var(--primary);
  color: #ffffff;
  border: none;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  transition: all var(--transition-fast);
}
.player-btn-play:hover {
  background: var(--primary-dk);
  transform: scale(1.1);
}
.volume-control {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex: 1;
  justify-content: flex-end;
}
.volume-control span {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
}
.mock-volume-slider {
  width: 70px;
  height: 4px;
  accent-color: var(--primary);
  cursor: pointer;
}
.vol-percent {
  font-size: 0.7rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.6);
  width: 28px;
  text-align: right;
  font-family: monospace;
}

/* --- IoT Smart Farm Control --- */
.mock-sensors {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}
.sensor-gauge {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 0.85rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 105px;
}
.sensor-value-wrap {
  display: flex;
  align-items: baseline;
  justify-content: center;
  margin-bottom: 0.25rem;
}
.sensor-value-wrap.overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  display: flex;
  align-items: baseline;
  justify-content: center;
}
.sensor-val {
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffffff;
  font-family: monospace;
  line-height: 1;
}
.sensor-gauge[data-type="moist"] .sensor-val {
  color: #10b981;
}
.sensor-unit {
  font-size: 0.75rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.5);
  margin-left: 2px;
  line-height: 1;
}
.sensor-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.5);
}
.gauge-container {
  position: relative;
  width: 60px;
  height: 60px;
  margin-bottom: 0.5rem;
}
.progress-ring {
  transform: rotate(-90deg);
  display: block;
}
.progress-ring-bg {
  stroke: rgba(255, 255, 255, 0.1);
}
.progress-ring-circle {
  transition: stroke-dashoffset 0.5s ease;
  stroke: #10b981;
}

.mock-irrigation {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.irrigation-info {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.irrigation-icon {
  font-size: 1.25rem;
}
.mock-irrigation.active .irrigation-icon {
  animation: pulseIcon 1s ease infinite;
}
@keyframes pulseIcon {
  0% { transform: scale(1); }
  50% { transform: scale(1.15) translateY(-2px); }
  100% { transform: scale(1); }
}
.irrigation-text {
  display: flex;
  flex-direction: column;
}
.irr-status-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #ffffff;
}
.irr-status-value {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.5);
}
.mock-irrigation.active .irr-status-value {
  color: #10b981;
  font-weight: 700;
}

.mock-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}
.mock-switch input { 
  opacity: 0;
  width: 0;
  height: 0;
}
.mock-switch .slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #cbd5e1;
  transition: .4s;
}
.mock-switch .slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
}
.mock-switch input:checked + .slider {
  background-color: #16a34a;
}
.mock-switch input:focus + .slider {
  box-shadow: 0 0 1px #16a34a;
}
.mock-switch input:checked + .slider:before {
  transform: translateX(20px);
}
.mock-switch .slider.round {
  border-radius: 24px;
}
.mock-switch .slider.round:before {
  border-radius: 50%;
}

/* ================================================================
 *  Home Page Products Grid (4 col, WC-style)
 * ================================================================ */
.home-products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

/* ================================================================
 *  Why Choose Us
 * ================================================================ */
.why-us-section { background: var(--bg-light); }
.why-us-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.why-us-item {
  text-align: center;
  padding: 2rem 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: #fff;
  transition: all .3s;
}
.why-us-item:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
}
.why-icon {
  font-size: 2.2rem;
  display: inline-flex; align-items: center; justify-content: center;
  width: 72px; height: 72px;
  background: var(--primary-light, #e8f0fe);
  border-radius: 50%;
  margin: 0 auto 1.2rem;
}
.why-us-item h4 { font-size: 1rem; margin-bottom: .5rem; color: var(--primary-dk); }
.why-us-item p  { font-size: .875rem; color: var(--text-muted); margin: 0; line-height: 1.65; }

/* ================================================================
 *  New Section Responsive
 * ================================================================ */
@media (max-width: 960px) {
  .solutions-grid     { grid-template-columns: 1fr; }
  .home-products-grid { grid-template-columns: repeat(2, 1fr); }
  .why-us-grid        { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .solution-card    { padding: 2rem 1.5rem; }
  .why-us-grid      { gap: 1rem; }
  .home-products-grid { gap: .85rem; }
}
@media (max-width: 400px) {
  .home-products-grid { grid-template-columns: 1fr; }
}

/* ================================================================
 *  RFQ Quote Cart System
 * ================================================================ */
.rfq-cart-toggle {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  border: none;
  box-shadow: 0 4px 20px rgba(15, 53, 160, 0.4);
  cursor: pointer;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  font-size: 1.6rem;
}
.rfq-cart-toggle:hover {
  transform: scale(1.1) translateY(-2px);
  background: var(--primary-dk);
}
.rfq-cart-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  border: 2px solid #fff;
}

.rfq-cart-panel {
  position: fixed;
  top: 0;
  right: -380px;
  width: 380px;
  height: 100vh;
  background: var(--bg-white);
  box-shadow: -4px 0 30px rgba(0,0,0,0.15);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  border-left: 1px solid var(--border);
}
.rfq-cart-panel.open {
  right: 0;
}
@media (max-width: 480px) {
  .rfq-cart-panel {
    width: 100%;
    right: -100%;
  }
}
.rfq-cart-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-light);
}
.rfq-cart-header h3 {
  font-size: 1.1rem;
  margin: 0;
  color: var(--primary-dk);
}
.rfq-cart-close {
  background: none;
  border: none;
  font-size: 1.75rem;
  cursor: pointer;
  color: var(--text-muted);
  transition: color 0.2s;
}
.rfq-cart-close:hover {
  color: red;
}
.rfq-cart-body {
  padding: 1.5rem;
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.rfq-cart-item {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.rfq-cart-item-thumb {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 1px solid var(--border);
}
.rfq-cart-item-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.rfq-cart-item-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary-dk);
  line-height: 1.3;
}
.rfq-cart-item-sku {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.rfq-cart-item-qty-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.25rem;
}
.rfq-cart-item-qty-btn {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  cursor: pointer;
}
.rfq-cart-item-qty {
  font-size: 0.85rem;
  font-weight: 600;
  width: 20px;
  text-align: center;
}
.rfq-cart-item-del {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.1rem;
  padding: 0.25rem;
}
.rfq-cart-item-del:hover {
  color: red;
}
.rfq-cart-footer {
  padding: 1.5rem;
  border-top: 1px solid var(--border);
  background: var(--bg-light);
}
.rfq-cart-empty {
  text-align: center;
  color: var(--text-muted);
  margin-top: 3rem;
  font-size: 0.95rem;
}

/* Add to Cart Toast notification */
.rfq-toast {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  background: var(--primary-dk);
  color: #fff;
  padding: 1rem 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  z-index: 10005;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  transform: translateY(150%);
  transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.rfq-toast.show {
  transform: translateY(0);
}

/* ================================================================
 *  Home Page — Professional Polish Enhancements
 * ================================================================ */

/* --- Service Cards: colored accent top-border + icon tints --- */
.services-grid .service-item:nth-child(1) { border-top: 3px solid var(--primary); }
.services-grid .service-item:nth-child(1) .service-icon {
  background: var(--primary-light); color: var(--primary);
}
.services-grid .service-item:nth-child(2) { border-top: 3px solid var(--accent); }
.services-grid .service-item:nth-child(2) .service-icon {
  background: #fff3e0; color: var(--accent-dark);
}
.services-grid .service-item:nth-child(3) { border-top: 3px solid #16a34a; }
.services-grid .service-item:nth-child(3) .service-icon {
  background: #d1fae5; color: #15803d;
}
.services-grid .service-item:nth-child(4) { border-top: 3px solid #8b5cf6; }
.services-grid .service-item:nth-child(4) .service-icon {
  background: #ede9fe; color: #7c3aed;
}

/* hover tint matches accent */
.services-grid .service-item:nth-child(1):hover { border-color: var(--primary); box-shadow: 0 12px 28px rgba(15,53,160,.1); }
.services-grid .service-item:nth-child(2):hover { border-color: var(--accent); box-shadow: 0 12px 28px rgba(255,159,28,.12); }
.services-grid .service-item:nth-child(3):hover { border-color: #16a34a; box-shadow: 0 12px 28px rgba(22,163,74,.1); }
.services-grid .service-item:nth-child(4):hover { border-color: #8b5cf6; box-shadow: 0 12px 28px rgba(139,92,246,.1); }

/* --- Why Us Items: distinct icon colors per position --- */
.why-us-item:nth-child(1) .why-icon { background: var(--primary-light); color: var(--primary); }
.why-us-item:nth-child(2) .why-icon { background: #d1fae5; color: #15803d; }
.why-us-item:nth-child(3) .why-icon { background: #fee2e2; color: #dc2626; }
.why-us-item:nth-child(4) .why-icon { background: #fef3c7; color: #d97706; }
.why-us-item:nth-child(5) .why-icon { background: #ede9fe; color: #7c3aed; }
.why-us-item:nth-child(6) .why-icon { background: #cffafe; color: #0e7490; }
.why-us-item:nth-child(7) .why-icon { background: #fce7f3; color: #be185d; }
.why-us-item:nth-child(8) .why-icon { background: #fef3c7; color: var(--accent-dark); }

/* matching hover border per position */
.why-us-item:nth-child(1):hover { border-color: var(--primary); box-shadow: 0 8px 24px rgba(15,53,160,.1); }
.why-us-item:nth-child(2):hover { border-color: #16a34a; box-shadow: 0 8px 24px rgba(22,163,74,.1); }
.why-us-item:nth-child(3):hover { border-color: #dc2626; box-shadow: 0 8px 24px rgba(220,38,38,.08); }
.why-us-item:nth-child(4):hover { border-color: #d97706; box-shadow: 0 8px 24px rgba(217,119,6,.08); }
.why-us-item:nth-child(5):hover { border-color: #7c3aed; box-shadow: 0 8px 24px rgba(124,58,237,.08); }
.why-us-item:nth-child(6):hover { border-color: #0e7490; box-shadow: 0 8px 24px rgba(14,116,144,.08); }
.why-us-item:nth-child(7):hover { border-color: #be185d; box-shadow: 0 8px 24px rgba(190,24,93,.08); }
.why-us-item:nth-child(8):hover { border-color: var(--accent); box-shadow: 0 8px 24px rgba(255,159,28,.1); }

/* --- Stats Bar: dot-grid pattern (same as solutions section) --- */
.stats-bar::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.07) 1.5px, transparent 1.5px);
  background-size: 24px 24px;
  pointer-events: none;
}
.stat-item { text-align: center; }
.stat-item:not(:last-child) {
  border-right: 1px solid rgba(255,255,255,0.08);
  padding-right: 2.5rem;
}
.stat-item:not(:first-child) {
  padding-left: 2.5rem;
}
@media (max-width: 768px) {
  .stat-item:not(:last-child) { border-right: none; padding-right: 0; }
  .stat-item:not(:first-child) { padding-left: 0; }
}

/* --- CTA Banner: actions row class --- */
.cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

/* CTA ghost button on dark background */
.cta-banner .btn-sol-ghost {
  color: rgba(255,255,255,0.9);
  border-color: rgba(255,255,255,0.25);
}
.cta-banner .btn-sol-ghost:hover {
  color: #fff;
  border-color: rgba(255,255,255,0.55);
  background: rgba(255,255,255,0.1);
}

/* --- Section "View All" center wrappers (remove inline style) --- */
.section-viewall {
  text-align: center;
  margin-top: 2.5rem;
}

/* ================================================================
 *  Hero — Redesigned Layout (CSS Grid, no Bootstrap dependency)
 * ================================================================ */

/* --- Inner grid layout --- */
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 3rem;
  align-items: center;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 2.5rem 2rem 7rem;
  min-height: 560px;
  box-sizing: border-box;
}

/* --- Content wrap --- */
.hero-content-wrap {
  opacity: 0;
  transform: translateY(32px);
}
.hero-slide.active .hero-content-wrap {
  animation: heroFadeInUp 0.85s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* --- Eyebrow --- */
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  padding: 0.38rem 1rem;
  border-radius: 50px;
  margin-bottom: 1.35rem;
}
.hero-eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
  animation: eyebrowPulse 2s ease-in-out infinite;
}
@keyframes eyebrowPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

/* --- Title --- */
.hero-title {
  font-size: clamp(2rem, 3.8vw, 2.85rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.18;
  margin-bottom: 1.1rem;
  letter-spacing: -0.02em;
}
.hero-title-accent {
  display: inline;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-slide:nth-child(1) .hero-title-accent {
  background-image: linear-gradient(90deg, #60a5fa 0%, #93c5fd 100%);
  -webkit-background-clip: text;
}
.hero-slide:nth-child(2) .hero-title-accent {
  background-image: linear-gradient(90deg, #4ade80 0%, #86efac 100%);
  -webkit-background-clip: text;
}
.hero-slide:nth-child(3) .hero-title-accent {
  background-image: linear-gradient(90deg, #fbbf24 0%, #fde047 100%);
  -webkit-background-clip: text;
}

/* --- Description --- */
.hero-desc {
  font-size: 0.975rem;
  line-height: 1.7;
  color: rgba(203, 213, 225, 0.9);
  margin-bottom: 1.85rem;
  max-width: 480px;
}

/* --- CTA row --- */
.hero-cta-row {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-bottom: 1.75rem;
}
.hero-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.78rem 2rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
  white-space: nowrap;
}
.hero-btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(0,0,0,0.35);
  filter: brightness(1.12);
  color: #fff;
}
.hero-btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.78rem 1.6rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
  white-space: nowrap;
}
.hero-btn-outline:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.09);
  transform: translateY(-2px);
}
.hero-btn-outline::after {
  content: ' →';
  transition: transform 0.2s ease;
  display: inline-block;
}
.hero-btn-outline:hover::after {
  transform: translateX(3px);
}

/* --- Trust chips --- */
.hero-trust-row {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  align-items: center;
}
.hero-trust-chip {
  font-size: 0.78rem;
  color: rgba(203, 213, 225, 0.65);
  font-weight: 600;
}

/* --- Visual wrap --- */
.hero-visual-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transform: scale(0.88) translateY(16px);
}
.hero-slide.active .hero-visual-wrap {
  animation: heroFadeInScale 0.85s cubic-bezier(0.16, 1, 0.3, 1) forwards,
             heroFloat 5.5s ease-in-out infinite 0.85s;
}

/* --- Product image container --- */
.hero-img-container {
  position: relative;
  display: inline-block;
}
.hero-product-img {
  max-height: 420px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 24px 40px rgba(0,0,0,0.65));
  display: block;
}

/* --- Floating info badges --- */
.hero-float-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 14px;
  padding: 0.65rem 1rem;
  color: #fff;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.float-badge-a {
  top: 8%;
  left: -2.75rem;
  animation: floatBadgeA 3.5s ease-in-out infinite;
}
.float-badge-b {
  bottom: 12%;
  right: -2.75rem;
  animation: floatBadgeB 3.5s ease-in-out infinite 1.75s;
}
@keyframes floatBadgeA {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-7px); }
}
@keyframes floatBadgeB {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-7px); }
}
.float-badge-icon { font-size: 1.35rem; flex-shrink: 0; line-height: 1; }
.float-badge-text { display: flex; flex-direction: column; }
.float-badge-title { font-size: 0.8rem; font-weight: 700; color: #fff; line-height: 1.25; }
.float-badge-sub { font-size: 0.68rem; color: rgba(203, 213, 225, 0.75); }

/* --- Tab navigation (replaces old dots) --- */
.hero-tab-nav {
  position: absolute;
  bottom: 1.75rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  gap: 0.2rem;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  padding: 0.3rem;
}
.hero-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1.15rem;
  border-radius: 40px;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: var(--font-body);
  white-space: nowrap;
}
.hero-tab:hover { color: rgba(255, 255, 255, 0.82); background: rgba(255,255,255,0.06); }
.hero-tab.active { background: rgba(255, 255, 255, 0.14); color: #ffffff; }
.hero-tab-icon { font-size: 1rem; line-height: 1; }

/* --- Responsive --- */
@media (max-width: 1050px) {
  .float-badge-a { left: -0.75rem; }
  .float-badge-b { right: -0.75rem; }
}
@media (max-width: 900px) {
  .hero-slider { height: auto; min-height: 680px; }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 2.5rem 1.5rem 6.5rem;
    text-align: center;
    justify-items: center;
    min-height: 680px;
  }
  .hero-content-wrap { order: 2; }
  .hero-visual-wrap { order: 1; }
  .hero-cta-row { justify-content: center; }
  .hero-trust-row { justify-content: center; }
  .hero-desc { margin-left: auto; margin-right: auto; }
  .hero-product-img { max-height: 230px; }
  .float-badge-a { top: -0.75rem; left: 0.25rem; }
  .float-badge-b { bottom: -0.5rem; right: 0.25rem; }
}
@media (max-width: 576px) {
  .hero-slider { min-height: 660px; }
  .hero-inner { padding: 2rem 1.25rem 6.5rem; gap: 1rem; min-height: 660px; }
  .hero-title { font-size: 1.85rem; }
  .hero-desc { font-size: 0.9rem; margin-bottom: 1.35rem; }
  .hero-product-img { max-height: 185px; }
  .hero-float-badge { display: none; }
  .hero-tab-label { display: none; }
  .hero-tab { padding: 0.45rem 0.75rem; }
  .hero-tab-icon { font-size: 1.1rem; }
  .hero-trust-chip { font-size: 0.72rem; }
}

