/* ============================================
   SmileIT - Main Stylesheet
   บริษัท สไมล์ ไอที จำกัด
   ============================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
  --primary: #0066CC;
  --primary-dark: #004C99;
  --primary-light: #0099FF;
  --primary-bg: #E8F4FD;
  --white: #FFFFFF;
  --dark: #1a1a2e;
  --text: #333333;
  --text-light: #666666;
  --gray-light: #F8F9FA;
  --gray-border: #E0E0E0;
  --line-green: #06C755;
  --line-green-dark: #05a847;
  --sale-red: #E53935;
  --star-gold: #FFB400;
  --gradient-blue: linear-gradient(135deg, #0066CC 0%, #0099FF 50%, #00BBFF 100%);
  --gradient-hero: linear-gradient(135deg, #0a1628 0%, #0d2b5e 30%, #0066CC 70%, #0099FF 100%);
  --gradient-card: linear-gradient(145deg, #ffffff 0%, #f0f7ff 100%);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 16px 60px rgba(0, 0, 0, 0.15);
  --shadow-blue: 0 8px 30px rgba(0, 102, 204, 0.25);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --font-main: 'Kanit', sans-serif;
  --container-max: 1200px;
  --nav-height: 72px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-main);
  font-weight: 300;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul, ol {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  font-family: var(--font-main);
  cursor: pointer;
  border: none;
  outline: none;
  background: none;
}

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

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.3;
  color: var(--dark);
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.6rem); }
h4 { font-size: clamp(1rem, 2.5vw, 1.2rem); }

p {
  font-weight: 300;
  line-height: 1.8;
}

/* ---------- Section Titles ---------- */
.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  display: inline-block;
  position: relative;
  padding-bottom: 16px;
  margin-bottom: 12px;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--gradient-blue);
  border-radius: 2px;
}

.section-title p {
  color: var(--text-light);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-family: var(--font-main);
  font-weight: 400;
  font-size: 1rem;
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: var(--gradient-blue);
  color: var(--white);
  box-shadow: var(--shadow-blue);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(0, 102, 204, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--primary);
  transform: translateY(-2px);
}

.btn-outline-blue {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline-blue:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-blue);
}

.btn-secondary {
  background: #f0f7ff;
  color: var(--primary);
  border-color: #d0e7ff;
}

.btn-secondary:hover {
  background: var(--primary);
  color: var(--white) !important;
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 102, 204, 0.18);
}

.btn-line {
  background: var(--line-green);
  color: var(--white) !important;
  border-color: var(--line-green);
}

.btn-line:hover {
  background: var(--line-green-dark);
  color: var(--white) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(6, 199, 85, 0.35);
}

.btn-sm {
  padding: 10px 24px;
  font-size: 0.9rem;
}

.btn-lg {
  padding: 16px 40px;
  font-size: 1.1rem;
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
  border-bottom-color: var(--gray-border);
}

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

.nav-logo-group {
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 1001;
}

.header-dealer-badge {
  display: flex;
  align-items: center;
  transition: opacity 0.2s ease;
}

.header-dealer-badge:hover {
  opacity: 0.9;
}

.header-dealer-badge img {
  height: 45px;
  width: auto;
  display: block;
  object-fit: contain;
}

@media (max-width: 768px) {
  .header-dealer-badge {
    display: none;
  }
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary);
  z-index: 1001;
}

.nav-logo .logo-icon {
  width: 40px;
  height: 40px;
  background: var(--gradient-blue);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 800;
  font-size: 1.1rem;
}

.nav-logo span {
  background: var(--gradient-blue);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.nav-links a {
  padding: 8px 18px;
  border-radius: 50px;
  font-weight: 400;
  font-size: 0.95rem;
  color: var(--text);
  position: relative;
  transition: var(--transition);
}

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

.nav-links a.active {
  font-weight: 500;
}

.nav-contact-btn {
  margin-left: 12px;
}

/* Mobile hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  cursor: pointer;
  z-index: 1001;
  padding: 4px 0;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2.5px;
  background: var(--dark);
  border-radius: 2px;
  transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: translateX(-10px);
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--gradient-hero);
  overflow: hidden;
  padding-top: var(--nav-height);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 20% 80%, rgba(0, 153, 255, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(0, 102, 204, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.hero-shapes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
}

.hero-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.06;
  background: var(--white);
}

.hero-shape:nth-child(1) {
  width: 400px;
  height: 400px;
  top: -100px;
  right: -100px;
  animation: floatShape 8s ease-in-out infinite;
}

.hero-shape:nth-child(2) {
  width: 250px;
  height: 250px;
  bottom: -50px;
  left: -50px;
  animation: floatShape 10s ease-in-out infinite reverse;
}

.hero-shape:nth-child(3) {
  width: 150px;
  height: 150px;
  top: 40%;
  right: 15%;
  animation: floatShape 6s ease-in-out infinite 2s;
}

.hero-shape:nth-child(4) {
  width: 80px;
  height: 80px;
  top: 20%;
  left: 10%;
  animation: floatShape 7s ease-in-out infinite 1s;
  border-radius: var(--radius-lg);
  transform: rotate(45deg);
}

/* Grid pattern overlay */
.hero-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding-top: 40px;
  padding-bottom: 40px;
}

.hero-content {
  color: var(--white);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 300;
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.9);
}

.hero-badge .badge-dot {
  width: 8px;
  height: 8px;
  background: var(--line-green);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

.hero-content h1 {
  color: var(--white);
  font-size: clamp(2.2rem, 5.5vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero-content h1 .text-gradient {
  background: linear-gradient(135deg, #ffffff 0%, #a8d8ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-content p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 36px;
  max-width: 520px;
  font-weight: 300;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-stat {
  text-align: center;
}

.hero-stat .stat-number {
  display: block;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--white);
}

.hero-stat .stat-label {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 300;
}

/* Hero image / illustration area */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image-wrapper {
  position: relative;
  width: 100%;
  max-width: 480px;
}

.hero-image-card {
  position: relative;
  z-index: 1;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.09) 100%);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 32px;
  padding: 48px 40px 40px;
  text-align: center;
  color: var(--white);
  box-shadow: 
    0 30px 60px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: border-color 0.5s ease, box-shadow 0.5s ease;
}

.hero-image-card:hover {
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 
    0 40px 80px rgba(0, 102, 204, 0.15),
    0 0 40px rgba(0, 153, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.hero-image-card svg,
.hero-image-card img {
  width: 100%;
  max-width: 320px;
  height: auto;
  margin: 0 auto 20px;
}

.hero-image-floating-wrapper {
  animation: floatPrinter 5s ease-in-out infinite;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

@keyframes floatPrinter {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px);
  }
}

.hero-main-image {
  border-radius: var(--radius-md);
  object-fit: contain;
  filter: drop-shadow(0 15px 30px rgba(0, 102, 204, 0.25));
  transition: var(--transition);
}

.hero-image-card:hover .hero-main-image {
  transform: scale(1.03);
  filter: drop-shadow(0 20px 40px rgba(0, 102, 204, 0.35));
}


.hero-image-card .card-label {
  font-size: 0.9rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.7);
}

/* Floating badges around hero image */
.hero-float-badge {
  position: absolute;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 20px;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 
    0 10px 40px rgba(0, 102, 204, 0.06), 
    0 1px 3px rgba(0, 0, 0, 0.02),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  z-index: 10;
  animation: floatBadge 6s ease-in-out infinite;
  white-space: nowrap;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-float-badge:hover {
  transform: scale(1.04) translateY(-8px);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 
    0 20px 50px rgba(0, 102, 204, 0.12), 
    0 4px 12px rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 102, 204, 0.25);
}

.hero-float-badge.top-right {
  top: 10%;
  right: -25px;
  animation-delay: 0.5s;
}

.hero-float-badge.bottom-left {
  bottom: 15%;
  left: -35px;
  animation-delay: 1.5s;
}

.hero-float-badge .badge-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
  position: relative;
}

.hero-float-badge .badge-icon.blue {
  background: linear-gradient(135deg, rgba(0, 102, 204, 0.1) 0%, rgba(0, 153, 255, 0.2) 100%);
  color: #0066cc;
  box-shadow: 0 0 12px rgba(0, 102, 204, 0.1);
}

.hero-float-badge .badge-icon.green {
  background: linear-gradient(135deg, rgba(6, 199, 85, 0.1) 0%, rgba(6, 199, 85, 0.2) 100%);
  color: #06C755;
  box-shadow: 0 0 12px rgba(6, 199, 85, 0.1);
}

.hero-float-badge .badge-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero-float-badge .badge-title {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--dark);
  line-height: 1.3;
}

.hero-float-badge .badge-subtitle {
  font-size: 0.75rem;
  color: var(--text-light);
  line-height: 1.3;
}

/* Copier Screen Glow & Scanner Laser Animations */
@keyframes scanLaser {
  0%, 100% {
    transform: translateY(0);
    opacity: 0.3;
  }
  10%, 90% {
    opacity: 1;
  }
  50% {
    transform: translateY(24px);
    opacity: 1;
  }
}

@keyframes scanGlow {
  0%, 100% {
    transform: translateY(0);
    height: 0;
    opacity: 0;
  }
  10%, 90% {
    opacity: 0.15;
  }
  50% {
    transform: translateY(0);
    height: 24px;
    opacity: 0.15;
  }
}

@keyframes ledPulse {
  0% {
    fill: rgba(0, 153, 255, 0.4);
    filter: drop-shadow(0 0 1px rgba(0, 153, 255, 0.4));
  }
  100% {
    fill: rgba(0, 153, 255, 1);
    filter: drop-shadow(0 0 6px rgba(0, 153, 255, 0.9));
  }
}

.scanner-laser {
  animation: scanLaser 4s ease-in-out infinite;
  transform-origin: top;
}

.scanner-glow {
  animation: scanGlow 4s ease-in-out infinite;
  transform-origin: top;
}

.copier-led-active {
  animation: ledPulse 2s infinite alternate;
}

/* ============================================
   WHY CHOOSE US / SERVICES
   ============================================ */
.services {
  padding: 100px 0;
  background: var(--white);
}

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

@media (min-width: 1025px) {
  .services-grid .service-card:last-child {
    grid-column: 2;
  }
}

.service-card {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-blue);
  transform: scaleX(0);
  transition: transform 0.4s ease;
  transform-origin: left;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  background: var(--primary-bg);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  transition: var(--transition);
}

.service-card:hover .service-icon {
  background: var(--gradient-blue);
  transform: scale(1.1) rotate(-5deg);
}

.service-card:hover .service-icon span {
  filter: brightness(0) invert(1);
}

.service-card h3 {
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 10px;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--text-light);
  font-weight: 300;
}

/* ============================================
   PRODUCTS SECTION
   ============================================ */
.products {
  padding: 100px 0;
  background: var(--gray-light);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-slow);
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

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

.product-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 3;
  padding: 5px 12px;
  border-radius: 30px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--white) !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: linear-gradient(135deg, #64748b 0%, #475569 100%); /* Default slate gray background */
}

/* SALE Badge */
.product-badge.sale,
.product-badge.badge-sale {
  background: linear-gradient(135deg, #ef4444 0%, #f97316 100%) !important;
}

/* NEW Badge */
.product-badge.new,
.product-badge.badge-new {
  background: linear-gradient(135deg, #0066cc 0%, #0099ff 100%) !important;
}

/* RENTAL Badge */
.product-badge.rental,
.product-badge.badge-rental {
  background: linear-gradient(135deg, #06c755 0%, #10b981 100%) !important;
}

/* USED Badge */
.product-badge.used,
.product-badge.badge-used {
  background: linear-gradient(135deg, #ff9500 0%, #ffb84d 100%) !important;
}

/* HOT Badge */
.product-badge.hot,
.product-badge.badge-hot {
  background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%) !important;
}

/* RECOMMENDED Badge */
.product-badge.recommended,
.product-badge.badge-recommended {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%) !important;
}

.product-image {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: linear-gradient(135deg, #f0f4f8 0%, #e8eef5 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-image svg {
  width: 60%;
  max-width: 140px;
  height: auto;
  transition: var(--transition-slow);
  opacity: 0.7;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
  transition: var(--transition-slow);
}

.product-card:hover .product-image svg,
.product-card:hover .product-image img {
  transform: scale(1.06);
  opacity: 1;
}

.product-image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background: linear-gradient(to top, rgba(255, 255, 255, 0.9), transparent);
  pointer-events: none;
}

.product-info {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-info .product-brand {
  font-size: 0.75rem;
  color: var(--primary);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.product-info h3,
.product-info .product-name {
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 6px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 2.7rem; /* Fixed height for 2 lines to ensure perfect vertical alignment */
}

.product-info .product-spec,
.product-info .product-desc {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 14px;
  font-weight: 300;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 2.4rem; /* Fixed height for 2 lines to ensure perfect vertical alignment */
}

.product-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 14px;
  margin-top: auto;
}

.product-price .price-current {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--primary);
}

.product-price .price-old {
  font-size: 0.85rem;
  color: #999;
  text-decoration: line-through;
  font-weight: 300;
}

.product-price .price-ask {
  font-size: 1rem;
  font-weight: 500;
  color: var(--primary);
}

.product-actions {
  display: flex;
  gap: 8px;
}

.product-actions .btn {
  flex: 1;
  padding: 10px 16px;
  font-size: 0.82rem;
  border-radius: var(--radius-sm);
}

.products-footer {
  text-align: center;
}

/* ============================================
   TRUST / STATS SECTION
   ============================================ */
.trust {
  padding: 60px 0;
  background: linear-gradient(135deg, #0056b3 0%, #007bf5 50%, #0099ff 100%);
  position: relative;
  overflow: hidden;
}

.trust::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 15% 15%, rgba(255, 255, 255, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 85% 85%, rgba(255, 255, 255, 0.08) 0%, transparent 45%);
  pointer-events: none;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  position: relative;
  z-index: 1;
}

.trust-item {
  text-align: center;
  color: var(--white);
  padding: 24px 20px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.05);
}

.trust-item:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15), 0 0 20px rgba(255, 255, 255, 0.1);
}

.trust-icon {
  width: 54px;
  height: 54px;
  margin: 0 auto 16px auto;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.trust-item:hover .trust-icon {
  background: var(--white);
  border-color: var(--white);
  transform: scale(1.1) rotate(360deg);
  box-shadow: 0 10px 25px rgba(255, 255, 255, 0.3);
}

.trust-number {
  font-size: 2.1rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 6px;
  letter-spacing: -1px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.trust-label {
  font-size: 0.95rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.95);
  letter-spacing: 0.5px;
}

/* ============================================
   CTA BANNER
   ============================================ */
.cta-banner {
  padding: 80px 0;
  background: var(--white);
}

.cta-inner {
  background: var(--gradient-hero);
  border-radius: var(--radius-xl);
  padding: 60px 40px;
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.cta-inner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 400px;
  height: 400px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  pointer-events: none;
}

.cta-inner::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -20%;
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 50%;
  pointer-events: none;
}

.cta-inner h2 {
  color: var(--white);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.cta-inner p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.05rem;
  margin-bottom: 32px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 1;
}

.cta-inner .cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

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

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-image {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-content h2 {
  margin-bottom: 20px;
}

.about-content p {
  color: var(--text-light);
  margin-bottom: 16px;
}

.about-features {
  margin: 24px 0;
}

.about-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 16px;
}

.about-feature-item .feature-check {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: var(--primary-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 0.8rem;
  margin-top: 2px;
}

.about-feature-item p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text);
}

/* ============================================
   CONTACT INFO BAR
   ============================================ */
.contact-bar {
  background: var(--dark);
  color: var(--white);
  padding: 14px 0;
  font-size: 0.85rem;
}

.contact-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.contact-bar-left,
.contact-bar-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.contact-bar a {
  color: rgba(255, 255, 255, 0.8);
  transition: var(--transition);
}

.contact-bar a:hover {
  color: var(--primary-light);
}

.contact-bar-item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.8);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 80px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-col h4 {
  color: var(--white);
  font-weight: 500;
  font-size: 1.05rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 12px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 3px;
  background: var(--primary-light);
  border-radius: 2px;
}

.footer-about p {
  font-size: 0.9rem;
  line-height: 1.8;
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.6);
}

.footer-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-logo .logo-icon {
  width: 36px;
  height: 36px;
  background: var(--gradient-blue);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 800;
  color: var(--white);
}

.footer-links a {
  display: block;
  padding: 6px 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  font-weight: 300;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--primary-light);
  padding-left: 8px;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer-contact-item .icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  margin-top: 0;
}

.footer-contact-item a {
  color: rgba(255, 255, 255, 0.6);
}

.footer-contact-item a:hover {
  color: var(--primary-light);
}

.footer-line-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--line-green);
  color: var(--white) !important;
  padding: 10px 22px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 400;
  margin-top: 8px;
  transition: var(--transition);
}

.footer-line-btn:hover {
  background: var(--line-green-dark);
  color: var(--white) !important;
  transform: translateY(-2px);
}

.footer-facebook-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #1877F2;
  color: var(--white) !important;
  padding: 10px 22px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 400;
  margin-top: 8px;
  transition: var(--transition);
}

.footer-facebook-btn:hover {
  background: #145dbf;
  color: var(--white) !important;
  transform: translateY(-2px);
}

.footer-social-wrapper {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-bottom {
  padding: 24px 0;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 300;
}

/* ============================================
   LINE FLOATING BUTTON
   ============================================ */
.line-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.line-float-btn {
  width: 60px;
  height: 60px;
  background: var(--line-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.6rem;
  box-shadow: 0 4px 20px rgba(6, 199, 85, 0.4);
  transition: var(--transition);
  animation: linePulse 2.5s ease-in-out infinite;
  position: relative;
}

.line-float-btn::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--line-green);
  animation: linePulseRing 2.5s ease-out infinite;
  z-index: -1;
}

.line-float-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(6, 199, 85, 0.5);
}

.line-float-btn svg {
  width: 32px;
  height: 32px;
  fill: var(--white);
}

.line-float-label {
  background: var(--dark);
  color: var(--white);
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 400;
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
}

/* ============================================
   BACK TO TOP
   ============================================ */
.back-to-top {
  display: none !important; /* Hide completely as requested to prevent overlapping with LINE button */
  position: fixed;
  bottom: 100px;
  right: 32px;
  width: 44px;
  height: 44px;
  background: var(--white);
  color: var(--primary);
  border: 1px solid var(--gray-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: var(--transition);
  box-shadow: var(--shadow-md);
  cursor: pointer;
}

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

.back-to-top:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  transform: translateY(-3px);
}

/* ============================================
   BREADCRUMBS
   ============================================ */
.breadcrumbs {
  padding: 14px 0;
  background: var(--gray-light);
  border-bottom: 1px solid var(--gray-border);
}

.breadcrumbs-list {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-light);
  flex-wrap: wrap;
}

.breadcrumbs-list a {
  color: var(--primary);
  font-weight: 400;
}

.breadcrumbs-list a:hover {
  text-decoration: underline;
}

.breadcrumbs-list .separator {
  color: var(--gray-border);
  font-size: 0.7rem;
}

/* ============================================
   PAGE HEADER
   ============================================ */
.page-header {
  padding: 100px 0 60px;
  background: var(--gradient-hero);
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
  margin-top: var(--nav-height);
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 20% 50%, rgba(0, 153, 255, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(0, 102, 204, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.page-header h1 {
  color: var(--white);
  position: relative;
  z-index: 1;
  margin-bottom: 12px;
}

.page-header p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.1rem;
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin: 0 auto;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-section {
  padding: 100px 0;
}

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

.contact-info-cards {
  display: grid;
  gap: 20px;
}

.contact-info-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.contact-info-card:hover {
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.contact-info-card .card-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: var(--primary-bg);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--primary);
}

.contact-info-card h4 {
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.contact-info-card p {
  font-size: 0.9rem;
  color: var(--text-light);
}

/* Contact form */
.contact-form {
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-border);
}

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

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

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-main);
  font-size: 0.95rem;
  font-weight: 300;
  transition: var(--transition);
  background: var(--white);
  color: var(--text);
}

.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(0, 102, 204, 0.1);
}

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

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

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

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

@keyframes floatShape {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(5deg);
  }
}

@keyframes floatBadge {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes linePulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes linePulseRing {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }
  100% {
    transform: scale(1.8);
    opacity: 0;
  }
}

@keyframes pulse-dot {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
}

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

/* Scroll-triggered animation classes */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

.animate-on-scroll.delay-1 { transition-delay: 0.1s; }
.animate-on-scroll.delay-2 { transition-delay: 0.2s; }
.animate-on-scroll.delay-3 { transition-delay: 0.3s; }
.animate-on-scroll.delay-4 { transition-delay: 0.4s; }
.animate-on-scroll.delay-5 { transition-delay: 0.5s; }

/* Hero animations */
.hero-content > * {
  animation: fadeInUp 0.8s ease-out forwards;
  opacity: 0;
}

.hero-content > *:nth-child(1) { animation-delay: 0.1s; }
.hero-content > *:nth-child(2) { animation-delay: 0.25s; }
.hero-content > *:nth-child(3) { animation-delay: 0.4s; }
.hero-content > *:nth-child(4) { animation-delay: 0.55s; }
.hero-content > *:nth-child(5) { animation-delay: 0.7s; }

.hero-visual {
  animation: fadeInRight 1s ease-out 0.4s forwards;
  opacity: 0;
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* Tablet & below */
@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .hero-content p {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-visual {
    order: -1;
  }

  .hero-image-wrapper {
    max-width: 360px;
    margin: 0 auto;
  }

  .hero-float-badge {
    display: none;
  }

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

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

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

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* Mobile */
@media (max-width: 768px) {
  :root {
    --nav-height: 64px;
  }

  .container {
    padding: 0 16px;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 1000;
  }

  .nav-links.active {
    opacity: 1;
    visibility: visible;
  }

  .nav-links a {
    font-size: 1.2rem;
    padding: 14px 28px;
  }

  .nav-contact-btn {
    margin-left: 0;
    margin-top: 12px;
  }

  .hero {
    min-height: auto;
    padding: 120px 0 60px;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-stats {
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero-stat .stat-number {
    font-size: 1.4rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .service-card {
    padding: 28px 24px;
  }

  .products-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .product-image {
    height: 200px;
  }

  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .trust-number {
    font-size: 1.7rem;
  }

  .cta-inner {
    padding: 40px 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .contact-form {
    padding: 24px;
  }

  .section-title {
    margin-bottom: 36px;
  }

  .services,
  .products,
  .about-section,
  .contact-section {
    padding: 60px 0;
  }

  .trust,
  .cta-banner {
    padding: 50px 0;
  }

  .line-float {
    bottom: 20px;
    right: 20px;
  }

  .line-float-btn {
    width: 54px;
    height: 54px;
  }

  .line-float-label {
    display: none;
  }

  .back-to-top {
    bottom: 84px;
    right: 24px;
  }

  .contact-bar-left,
  .contact-bar-right {
    gap: 14px;
  }

  .page-header {
    padding: 60px 0 40px;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  .hero-stat {
    min-width: 100px;
  }

  .trust-grid {
    grid-template-columns: 1fr 1fr;
  }

  .product-actions {
    flex-direction: column;
  }

  .cta-inner .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
}

/* Large screens */
@media (min-width: 1200px) {
  .container {
    padding: 0 40px;
  }

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

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-white { color: var(--white); }
.text-light { color: var(--text-light); }
.fw-300 { font-weight: 300; }
.fw-400 { font-weight: 400; }
.fw-500 { font-weight: 500; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

/* Prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* ============================================
   PRODUCT FILTER SECTION & NO-RESULTS
   ============================================ */
.filter-section {
  padding: 24px 0;
  background: var(--white);
  border-bottom: 1px solid var(--gray-border);
  position: sticky;
  top: var(--nav-height, 70px);
  z-index: 99;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
  transition: all 0.3s ease;
}

.filter-section.scrolled {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.filter-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.filter-btn {
  background: var(--white);
  border: 1px solid var(--gray-border);
  color: var(--text-light);
  padding: 10px 22px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 400;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
}

.filter-btn.active {
  background: var(--gradient-blue);
  border-color: transparent;
  color: var(--white);
  box-shadow: 0 4px 15px rgba(0, 102, 204, 0.25);
}

.filter-count {
  background: var(--primary-bg);
  color: var(--primary);
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 20px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.filter-btn.active .filter-count {
  background: rgba(255, 255, 255, 0.2);
  color: var(--white);
}

/* No Results Message */
.no-results {
  display: none;
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--text-light);
}

.no-results.visible {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  animation: fadeInUp 0.4s ease forwards;
}

.no-results svg {
  width: 64px;
  height: 64px;
  color: #ccc;
}

.no-results p {
  font-size: 1.1rem;
  font-weight: 300;
  margin: 0;
}

/* Filtered Cards transition */
.product-card.filtered-out {
  opacity: 0;
  transform: scale(0.95);
  pointer-events: none;
}

@media (max-width: 768px) {
  .filter-section {
    padding: 14px 0;
  }

  .filter-buttons {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 4px 16px;
    margin: 0 -16px;
    -webkit-overflow-scrolling: touch;
  }
  
  .filter-buttons::-webkit-scrollbar {
    display: none;
  }

  .filter-btn {
    white-space: nowrap;
    padding: 8px 16px;
    font-size: 0.85rem;
  }
}

/* ============================================
   PRODUCT DETAIL MODAL
   ============================================ */
.product-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.product-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(26, 26, 46, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal-container {
  position: relative;
  width: 90%;
  max-width: 1000px;
  max-height: 90vh;
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  overflow-y: auto;
  z-index: 10001;
  transform: translateY(30px) scale(0.95);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.product-modal.open .modal-container {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  background: var(--gray-light);
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--text-light);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  z-index: 10002;
}

.modal-close:hover {
  background: #e0e4eb;
  color: var(--dark);
  transform: rotate(90deg);
}

.modal-content {
  padding: 40px;
}

.modal-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.3fr;
  gap: 36px;
}

.modal-image-side {
  background: var(--gray-light);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  height: 440px;
}

.modal-image-wrapper {
  width: 100%;
  height: calc(100% - 75px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-thumbnails {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 15px;
}

.modal-thumb {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--gray-border);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  overflow: hidden;
  transition: var(--transition);
}

.modal-thumb:hover {
  border-color: var(--primary-light);
  transform: translateY(-2px);
}

.modal-thumb.active {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.modal-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 2px;
}

.modal-image-wrapper img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.modal-info-side {
  display: flex;
  flex-direction: column;
}

.modal-info-side .product-badge {
  align-self: flex-start;
  margin-bottom: 12px;
  font-size: 0.8rem;
  padding: 6px 16px;
  border-radius: 50px;
  font-weight: 500;
  color: var(--white);
  display: none; /* hidden if empty */
}

.modal-info-side .modal-brand {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.modal-info-side h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 12px;
  line-height: 1.3;
}

.modal-info-side .product-price {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 24px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.modal-spec-section {
  flex-grow: 1;
  margin-bottom: 24px;
}

.modal-spec-section h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-spec-list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 320px;
  overflow-y: auto;
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  background: var(--gray-light);
}

.modal-spec-list li {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 8px;
  padding-left: 14px;
  position: relative;
}

.modal-spec-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
}

.modal-spec-list li:last-child {
  margin-bottom: 0;
}

.modal-actions {
  margin-top: auto;
}

@media (max-width: 768px) {
  .modal-container {
    width: 95%;
  }
  
  .modal-content {
    padding: 30px 20px;
  }
  
  .modal-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .modal-image-side {
    height: auto;
    min-height: 280px;
  }
  
  .modal-image-wrapper {
    height: 200px;
  }
  
  .modal-info-side h2 {
    font-size: 1.3rem;
  }
}

/* ============================================
   SVG ICON SYSTEM OVERRIDES
   ============================================ */
.service-icon svg,
.contact-card-icon svg,
.other-contact-icon svg,
.vm-icon svg,
.trust-icon svg,
.icon svg {
  width: 1em;
  height: 1em;
  stroke: currentColor;
  fill: none;
  vertical-align: middle;
  display: inline-block;
}

.service-icon svg {
  width: 32px;
  height: 32px;
  color: var(--primary);
  transition: var(--transition);
}

.service-card:hover .service-icon svg {
  color: var(--white);
  transform: scale(1.1) rotate(-5deg);
}

.trust-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--white);
  transition: all 0.5s ease;
}

.trust-item:hover .trust-icon svg {
  stroke: var(--primary);
}

.vm-icon svg {
  width: 44px;
  height: 44px;
  color: var(--primary);
}

.contact-card-icon svg {
  width: 36px;
  height: 36px;
  color: var(--primary);
}

.other-contact-icon svg {
  width: 24px;
  height: 24px;
}

.email-icon svg {
  color: #d93025;
}

.fb-icon svg {
  color: #1877f2;
  fill: currentColor;
}

.icon svg {
  width: 16px;
  height: 16px;
  color: var(--primary-light);
}

/* ============================================
   BRANDS SECTION
   ============================================ */
.brands-section {
  padding: 60px 0;
  background: var(--gray-light);
  border-bottom: 1px solid var(--gray-border);
}

.brands-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 24px;
  max-width: 800px;
  margin: 0 auto;
}

.brand-badge {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: 50px;
  padding: 10px 24px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-light);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  text-decoration: none;
  display: inline-block;
}

.brand-badge:hover {
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.dealer-badge-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.dealer-badge-link {
  display: inline-block;
  transition: var(--transition);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: #222;
  border: 1px solid rgba(0, 0, 0, 0.15);
}

.dealer-badge-link img {
  height: 90px;
  display: block;
  object-fit: contain;
  transition: var(--transition);
}

.dealer-badge-link:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

@media (max-width: 480px) {
  .dealer-badge-link img {
    height: 60px;
  }
}
