/* ============================================================
   FG FITNESS GYM — Premium Luxury Website Styles
   Font: Kanit | Colors: #0B0B3D / #000000 / #9A9D9C
   ============================================================ */

/* ── CSS Variables ── */
:root {
  --deep-navy: #0B0B3D;
  --jet-black: #000000;
  --silver-mist: #9A9D9C;
  --accent-red: #C0392B;
  --accent-red-bright: #E74C3C;
  --accent-red-glow: rgba(192, 57, 43, 0.35);
  --gold: #C9A84C;
  --gold-light: #F5D78E;
  --white: #FFFFFF;
  --off-white: #F0F0F0;
  --text-muted: #8A8D8C;
  --glass-bg: rgba(11, 11, 61, 0.45);
  --glass-border: rgba(255,255,255,0.08);
  --card-bg: rgba(11, 11, 61, 0.6);
  --card-border: rgba(255,255,255,0.07);
  --glow-navy: rgba(11, 11, 61, 0.8);
  --shadow-heavy: 0 25px 60px rgba(0,0,0,0.7);
  --shadow-card: 0 8px 32px rgba(0,0,0,0.4);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 36px;
  --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --font: 'Kanit', sans-serif;
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  background: var(--jet-black);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
button { border: none; cursor: pointer; font-family: var(--font); }
ul { list-style: none; }

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
  position: relative;
}

/* ── Section Header ── */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  color: var(--accent-red-bright);
  background: rgba(231, 76, 60, 0.12);
  border: 1px solid rgba(231, 76, 60, 0.3);
  padding: 6px 18px;
  border-radius: 50px;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--silver-mist);
  max-width: 600px;
  margin: 0 auto;
  font-weight: 300;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 24px;
  transition: var(--transition);
  background: transparent;
}

.navbar.scrolled {
  background: rgba(5, 5, 30, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 4px 30px rgba(0,0,0,0.5);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1280px;
  margin: 0 auto;
  height: 76px;
}

.nav-logo { display: flex; align-items: center; }
.logo-img {
  height: 60px;
  width: auto;
  border-radius: 8px;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(192, 57, 43, 0.5));
  transition: var(--transition);
}
.logo-img:hover { transform: scale(1.04); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 400;
  color: rgba(255,255,255,0.8);
  padding: 8px 16px;
  border-radius: 8px;
  transition: var(--transition);
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--accent-red-bright);
  border-radius: 2px;
  transition: width 0.3s ease;
}
.nav-link:hover { color: var(--white); }
.nav-link:hover::after { width: 60%; }

.nav-btn-cta {
  background: linear-gradient(135deg, var(--accent-red), #8B0000);
  color: var(--white) !important;
  padding: 10px 24px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  transition: var(--transition);
  box-shadow: 0 4px 20px var(--accent-red-glow);
  margin-left: 8px;
}
.nav-btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px var(--accent-red-glow);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: var(--accent-red);
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  border: none;
  box-shadow: 0 4px 12px rgba(192,57,43,0.3);
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile-only elements — hidden on desktop */
.mobile-cta { display: none; }
.mobile-menu-btn { display: none; }

.mobile-menu-btn {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}
.mobile-menu-btn:hover { background: rgba(255,255,255,0.15); }
.mobile-menu-btn.open { background: rgba(192,57,43,0.2); border-color: rgba(192,57,43,0.4); }

.mobile-cta-btn {
  white-space: nowrap;
  padding: 9px 18px !important;
  font-size: 0.82rem !important;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0,0,0,0.88) 0%,
    rgba(11,11,61,0.75) 50%,
    rgba(0,0,0,0.6) 100%
  );
}

.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}
.particle {
  position: absolute;
  border-radius: 50%;
  animation: floatParticle linear infinite;
  pointer-events: none;
}
@keyframes floatParticle {
  0% { transform: translateY(0) translateX(0) scale(1); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 0.6; }
  100% { transform: translateY(-80vh) translateX(40px) scale(0.3); opacity: 0; }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: 140px 24px 100px;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(10px);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.7);
  margin-bottom: 28px;
  text-transform: uppercase;
  animation: fadeInDown 0.8s ease both;
}
.badge-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent-red-bright);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(231,76,60,0.7); }
  50% { box-shadow: 0 0 0 8px rgba(231,76,60,0); }
}

.hero-title {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
  animation: fadeInUp 0.9s ease 0.1s both;
}
.title-line-1 {
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 300;
  color: rgba(255,255,255,0.9);
  line-height: 1.1;
}
.title-line-2 {
  font-size: clamp(3.2rem, 7vw, 6rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}
.title-line-2 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--accent-red-bright), #FF6B6B, var(--accent-red));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.65);
  font-weight: 300;
  margin-bottom: 36px;
  line-height: 1.8;
  animation: fadeInUp 0.9s ease 0.2s both;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 44px;
  animation: fadeInUp 0.9s ease 0.3s both;
}
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0 32px 0 0;
}
.stat-item:first-child { padding-left: 0; }
.stat-item > div {
  display: flex;
  align-items: baseline;
}
.stat-number {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  background: linear-gradient(135deg, #fff, #ccc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-plus {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-red-bright);
}
.stat-label {
  font-size: 0.78rem;
  color: var(--silver-mist);
  font-weight: 400;
  letter-spacing: 0.05em;
  margin-top: 2px;
}
.stat-divider {
  width: 1px;
  height: 48px;
  background: rgba(255,255,255,0.15);
  margin: 0 32px 0 0;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeInUp 0.9s ease 0.4s both;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--accent-red), #8B0000);
  color: var(--white);
  padding: 16px 36px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  transition: var(--transition);
  box-shadow: 0 8px 32px var(--accent-red-glow);
  position: relative;
  overflow: hidden;
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 40px var(--accent-red-glow); }
.btn-primary:hover::before { opacity: 1; }
.btn-primary svg { transition: transform 0.3s; }
.btn-primary:hover svg { transform: translateX(4px); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--white);
  padding: 16px 36px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 500;
  transition: var(--transition);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.4);
  transform: translateY(-3px);
}
.btn-ghost.mobile-btn {
  display: none;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 2;
  opacity: 0.6;
  animation: bounce 2s infinite;
}
.scroll-mouse {
  width: 24px; height: 38px;
  border: 2px solid rgba(255,255,255,0.5);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}
.scroll-wheel {
  width: 4px; height: 8px;
  background: rgba(255,255,255,0.7);
  border-radius: 2px;
  animation: scrollWheel 1.8s infinite;
}
@keyframes scrollWheel {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(10px); opacity: 0; }
}
.hero-scroll-indicator span {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.5);
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ============================================================
   MARQUEE BAND
   ============================================================ */
.marquee-band {
  background: linear-gradient(90deg, var(--accent-red) 0%, #8B0000 50%, var(--accent-red) 100%);
  padding: 14px 0;
  overflow: hidden;
  position: relative;
  z-index: 10;
}
.marquee-track {
  display: flex;
  gap: 60px;
  width: max-content;
  animation: marqueeScroll 30s linear infinite;
}
.marquee-track span {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.95);
  white-space: nowrap;
  text-transform: uppercase;
}
@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================================
   PRODUCTS SECTION
   ============================================================ */
.products-section {
  background: linear-gradient(180deg, #000000 0%, #050520 60%, #000000 100%);
}

/* Filter Tabs */
.filter-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 50px;
}
.filter-tab {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.7);
  padding: 10px 24px;
  border-radius: 50px;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 400;
  cursor: pointer;
  transition: var(--transition);
}
.filter-tab:hover, .filter-tab.active {
  background: linear-gradient(135deg, var(--accent-red), #8B0000);
  border-color: var(--accent-red);
  color: var(--white);
  box-shadow: 0 4px 20px var(--accent-red-glow);
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

/* Product Card */
.product-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  backdrop-filter: blur(12px);
  transition: var(--transition);
  position: relative;
  animation: fadeInUp 0.6s ease both;
}
.product-card:hover {
  transform: translateY(-8px);
  border-color: rgba(192,57,43,0.3);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 30px rgba(192,57,43,0.1);
}
.product-card.hidden { display: none; }

.product-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 3;
  background: linear-gradient(135deg, var(--accent-red), #8B0000);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 5px 14px;
  border-radius: 50px;
  box-shadow: 0 4px 12px var(--accent-red-glow);
}

.product-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1/1;
  background: rgba(0,0,0,0.3);
}
.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.product-card:hover .product-img { transform: scale(1.05); }

.product-overlay {
  position: absolute;
  inset: 0;
  background: rgba(11,11,61,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(4px);
}
.product-card:hover .product-overlay { opacity: 1; }

.btn-view {
  background: var(--white);
  color: var(--deep-navy);
  border: none;
  padding: 12px 28px;
  border-radius: 50px;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  transform: translateY(10px);
}
.product-card:hover .btn-view { transform: translateY(0); }
.btn-view:hover { background: var(--accent-red-bright); color: var(--white); }

.product-info {
  padding: 20px;
}
.product-category-tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--accent-red-bright);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.product-name {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}
.product-desc {
  font-size: 0.85rem;
  color: var(--silver-mist);
  font-weight: 300;
  margin-bottom: 14px;
  line-height: 1.6;
}
.product-specs-mini {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}
.product-specs-mini span {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  font-weight: 400;
}

.product-footer {
  display: flex;
  align-items: center;
  gap: 10px;
}
.btn-inquire {
  flex: 1;
  background: linear-gradient(135deg, var(--accent-red), #8B0000);
  color: var(--white);
  border: none;
  padding: 11px 20px;
  border-radius: 50px;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 16px var(--accent-red-glow);
}
.btn-inquire:hover { transform: translateY(-2px); box-shadow: 0 8px 24px var(--accent-red-glow); }

.btn-fb {
  width: 42px; height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(24,119,242,0.15);
  border: 1px solid rgba(24,119,242,0.3);
  border-radius: 50%;
  color: #1877F2;
  transition: var(--transition);
}
.btn-fb:hover { background: #1877F2; color: var(--white); transform: scale(1.1); }

/* ============================================================
   PORTFOLIO SECTION & LIGHTBOX
   ============================================================ */
.portfolio-section {
  background: var(--bg-dark);
  position: relative;
  overflow: hidden;
}
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 40px;
}
.portfolio-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 1 / 1;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.portfolio-item:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 15px 40px rgba(220, 20, 60, 0.3);
}
.portfolio-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.portfolio-item:hover .portfolio-img {
  transform: scale(1.1);
}
.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11,11,61,0.9), transparent);
  opacity: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 20px;
  transition: opacity 0.3s ease;
}
.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}
.portfolio-overlay svg {
  color: var(--white);
  width: 32px;
  height: 32px;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}
.portfolio-item:hover .portfolio-overlay svg {
  transform: translateY(0);
}

/* Lightbox */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.95);
  backdrop-filter: blur(10px);
  z-index: 3000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.lightbox-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  color: var(--white);
  font-size: 2.5rem;
  cursor: pointer;
  z-index: 3010;
  line-height: 1;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  transition: background 0.3s ease;
}
.lightbox-close:hover {
  background: var(--accent-red);
}
.lightbox-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1200px;
  height: 70vh;
  padding: 0 20px;
  position: relative;
}
.lightbox-img {
  max-width: 80%;
  max-height: 100%;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 60px rgba(0,0,0,0.8);
  user-select: none;
}
.lightbox-nav {
  background: rgba(255,255,255,0.1);
  border: none;
  color: var(--white);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
}
.lightbox-nav:hover {
  background: var(--accent-red);
  transform: scale(1.1);
}
.lightbox-dots {
  display: flex;
  gap: 10px;
  margin-top: 30px;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 90vw;
}
.lightbox-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
}
.lightbox-dot.active {
  background: var(--accent-red);
  transform: scale(1.3);
}

/* ============================================================
   WHY US SECTION
   ============================================================ */
.why-us-section {
  background: linear-gradient(180deg, #000000 0%, #03032A 50%, #000000 100%);
  overflow: hidden;
}
.why-us-bg-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(11,11,61,0.8) 0%, transparent 70%);
  pointer-events: none;
}

.why-us-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 60px;
}

.why-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  backdrop-filter: blur(12px);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.why-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-red), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.why-card:hover {
  transform: translateY(-6px);
  border-color: rgba(192,57,43,0.25);
  box-shadow: var(--shadow-card);
}
.why-card:hover::before { opacity: 1; }

.why-icon {
  width: 72px; height: 72px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(192,57,43,0.2), rgba(11,11,61,0.4));
  border: 1px solid rgba(192,57,43,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--accent-red-bright);
  transition: var(--transition);
}
.why-card:hover .why-icon {
  background: linear-gradient(135deg, rgba(192,57,43,0.35), rgba(11,11,61,0.5));
  box-shadow: 0 0 24px rgba(192,57,43,0.3);
}

.why-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 12px;
  line-height: 1.4;
}
.why-card p {
  font-size: 0.88rem;
  color: var(--silver-mist);
  font-weight: 300;
  line-height: 1.7;
}
.why-card-line {
  width: 40px; height: 2px;
  background: linear-gradient(90deg, var(--accent-red), transparent);
  margin-top: 20px;
  border-radius: 2px;
}

/* Stats Banner */
.stats-banner {
  background: linear-gradient(135deg, rgba(11,11,61,0.8), rgba(192,57,43,0.15));
  border: 1px solid rgba(192,57,43,0.2);
  border-radius: var(--radius-xl);
  padding: 44px 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  backdrop-filter: blur(20px);
  box-shadow: 0 8px 40px rgba(0,0,0,0.4);
}

.stat-banner-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
}
.stat-banner-item > div {
  display: flex;
  align-items: baseline;
  justify-content: center;
}
.stat-banner-num {
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--white), var(--silver-mist));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.stat-banner-plus {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-red-bright);
  line-height: 1;
  margin-left: 2px;
}
.stat-banner-label {
  font-size: 0.82rem;
  color: var(--silver-mist);
  font-weight: 300;
  letter-spacing: 0.06em;
  margin-top: 8px;
  display: block !important;
}
.stat-banner-divider {
  width: 1px;
  height: 64px;
  background: rgba(255,255,255,0.1);
  flex-shrink: 0;
}

/* ============================================================
   FAQ SECTION
   ============================================================ */
.faq-section {
  background: linear-gradient(180deg, #000000 0%, #070730 60%, #000000 100%);
}

.faq-grid {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  backdrop-filter: blur(12px);
  transition: border-color 0.3s;
}
.faq-item.open {
  border-color: rgba(192,57,43,0.3);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px;
  background: transparent;
  color: var(--white);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: color 0.3s;
}
.faq-question:hover { color: var(--accent-red-bright); }
.faq-item.open .faq-question { color: var(--accent-red-bright); }

.faq-icon {
  width: 32px; height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  color: var(--silver-mist);
  flex-shrink: 0;
  transition: var(--transition);
}
.faq-item.open .faq-icon {
  background: rgba(192,57,43,0.2);
  color: var(--accent-red-bright);
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}
.faq-answer.open {
  max-height: 300px;
}
.faq-answer p {
  padding: 0 24px 22px;
  font-size: 0.92rem;
  color: var(--silver-mist);
  font-weight: 300;
  line-height: 1.8;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 16px;
}

/* ============================================================
   CONTACT SECTION
   ============================================================ */
.contact-section {
  background: linear-gradient(180deg, #000000 0%, #03032A 60%, #000000 100%);
  overflow: hidden;
}
.contact-bg-glow {
  position: absolute;
  bottom: -200px;
  right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(192,57,43,0.12), transparent 70%);
  pointer-events: none;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

/* Contact Info Cards */
.contact-info-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  backdrop-filter: blur(12px);
  transition: var(--transition);
}
.contact-card:hover {
  transform: translateX(6px);
  border-color: rgba(192,57,43,0.25);
  box-shadow: var(--shadow-card);
}

.contact-card-icon {
  width: 56px; height: 56px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.phone-icon { background: rgba(39,174,96,0.15); border: 1px solid rgba(39,174,96,0.3); color: #27AE60; }
.line-icon { background: rgba(6,199,85,0.15); border: 1px solid rgba(6,199,85,0.3); color: #06C755; }
.fb-icon { background: rgba(24,119,242,0.15); border: 1px solid rgba(24,119,242,0.3); color: #1877F2; }

.contact-card-content h4 {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--silver-mist);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.contact-link {
  display: block;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--white);
  transition: color 0.3s;
}
.contact-link:hover { color: var(--accent-red-bright); }
.contact-sub {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.contact-quick-btns {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}
.quick-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  justify-content: center;
  padding: 13px 16px;
  border-radius: var(--radius-md);
  font-family: var(--font);
  font-size: 0.88rem;
  font-weight: 600;
  transition: var(--transition);
}
.quick-btn-phone {
  background: rgba(39,174,96,0.15);
  border: 1px solid rgba(39,174,96,0.3);
  color: #27AE60;
}
.quick-btn-phone:hover { background: #27AE60; color: white; transform: translateY(-2px); }
.quick-btn-line {
  background: rgba(6,199,85,0.15);
  border: 1px solid rgba(6,199,85,0.3);
  color: #06C755;
}
.quick-btn-line:hover { background: #06C755; color: white; transform: translateY(-2px); }
.quick-btn-fb {
  background: rgba(24,119,242,0.15);
  border: 1px solid rgba(24,119,242,0.3);
  color: #1877F2;
}
.quick-btn-fb:hover { background: #1877F2; color: white; transform: translateY(-2px); }

/* QR Code Box */
.qr-box {
  background: var(--card-bg);
  border: 1px solid rgba(192,57,43,0.2);
  border-radius: var(--radius-xl);
  padding: 36px 40px;
  backdrop-filter: blur(16px);
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 40px rgba(192,57,43,0.08);
}

.qr-box-header { margin-bottom: 28px; }

.qr-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent-red-bright);
  background: rgba(231,76,60,0.12);
  border: 1px solid rgba(231,76,60,0.3);
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 14px;
  text-transform: uppercase;
}

.qr-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 10px;
}

.qr-subtitle {
  font-size: 0.88rem;
  color: var(--silver-mist);
  font-weight: 300;
  line-height: 1.7;
}

/* QR Frame */
.qr-frame-wrap {
  position: relative;
  display: inline-block;
  padding: 14px;
  margin-bottom: 16px;
  background: rgba(255,255,255,0.03);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.06);
  overflow: hidden;
}

.qr-img {
  display: block;
  width: 220px;
  height: 220px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  position: relative;
  z-index: 1;
}

/* Corner markers */
.qr-corner {
  position: absolute;
  width: 22px;
  height: 22px;
  border-color: var(--accent-red-bright);
  border-style: solid;
  z-index: 2;
}
.qr-corner-tl { top: 8px; left: 8px; border-width: 3px 0 0 3px; border-radius: 4px 0 0 0; }
.qr-corner-tr { top: 8px; right: 8px; border-width: 3px 3px 0 0; border-radius: 0 4px 0 0; }
.qr-corner-bl { bottom: 8px; left: 8px; border-width: 0 0 3px 3px; border-radius: 0 0 0 4px; }
.qr-corner-br { bottom: 8px; right: 8px; border-width: 0 3px 3px 0; border-radius: 0 0 4px 0; }

/* Scan line animation */
.qr-scan-line {
  position: absolute;
  left: 14px; right: 14px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-red-bright), transparent);
  z-index: 3;
  animation: scanLine 2.4s ease-in-out infinite;
  box-shadow: 0 0 8px rgba(231,76,60,0.8);
}
@keyframes scanLine {
  0% { top: 14px; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { top: calc(100% - 14px); opacity: 0; }
}

/* Hint text */
.qr-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* Divider */
.qr-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  color: rgba(255,255,255,0.15);
  font-size: 0.78rem;
}
.qr-divider::before, .qr-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.1);
}
.qr-divider span { color: var(--text-muted); white-space: nowrap; letter-spacing: 0.05em; }

/* Social Buttons */
.qr-social-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
}
.qr-social-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1;
  padding: 14px 10px;
  border-radius: var(--radius-md);
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 600;
  transition: var(--transition);
  max-width: 110px;
}
.qr-phone { background: rgba(39,174,96,0.12); border: 1px solid rgba(39,174,96,0.3); color: #27AE60; }
.qr-phone:hover { background: #27AE60; color: white; transform: translateY(-3px); box-shadow: 0 8px 20px rgba(39,174,96,0.3); }
.qr-line { background: rgba(6,199,85,0.12); border: 1px solid rgba(6,199,85,0.3); color: #06C755; }
.qr-line:hover { background: #06C755; color: white; transform: translateY(-3px); box-shadow: 0 8px 20px rgba(6,199,85,0.3); }
.qr-fb { background: rgba(24,119,242,0.12); border: 1px solid rgba(24,119,242,0.3); color: #1877F2; }
.qr-fb:hover { background: #1877F2; color: white; transform: translateY(-3px); box-shadow: 0 8px 20px rgba(24,119,242,0.3); }

/* Contact Form (kept for reference) */
.contact-form-box {

  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xl);
  padding: 44px;
  backdrop-filter: blur(16px);
}
.contact-form-box h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}
.form-subtitle {
  font-size: 0.88rem;
  color: var(--silver-mist);
  margin-bottom: 28px;
  font-weight: 300;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}
.form-group label {
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.04em;
}
.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 300;
  padding: 13px 16px;
  transition: border-color 0.3s, box-shadow 0.3s;
  outline: none;
  resize: vertical;
}
.form-group select option {
  background: #0B0B3D;
  color: white;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,0.3); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: rgba(192,57,43,0.5);
  box-shadow: 0 0 0 3px rgba(192,57,43,0.12);
}

.form-submit-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--accent-red), #8B0000);
  color: var(--white);
  border: none;
  padding: 16px;
  border-radius: 50px;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 6px 24px var(--accent-red-glow);
  margin-top: 4px;
}
.form-submit-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 32px var(--accent-red-glow); }

.form-success {
  text-align: center;
  padding: 40px 20px;
}
.success-icon { font-size: 3rem; margin-bottom: 16px; }
.form-success h4 { font-size: 1.3rem; font-weight: 700; color: var(--white); margin-bottom: 8px; }
.form-success p { color: var(--silver-mist); font-size: 0.95rem; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: linear-gradient(180deg, #000000 0%, #050520 100%);
  border-top: 1px solid rgba(255,255,255,0.06);
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}
.footer-glow {
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px; height: 400px;
  background: radial-gradient(ellipse, rgba(11,11,61,0.7) 0%, transparent 70%);
  pointer-events: none;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.footer-logo {
  width: 140px;
  height: 140px;
  object-fit: contain;
  border-radius: 10px;
  margin-bottom: 16px;
}
.footer-tagline {
  font-size: 0.85rem;
  color: var(--silver-mist);
  font-weight: 300;
  line-height: 1.8;
  margin-bottom: 24px;
}
.footer-socials {
  display: flex;
  gap: 10px;
}
.social-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--silver-mist);
  transition: var(--transition);
}
.social-btn:hover {
  background: var(--accent-red);
  border-color: var(--accent-red);
  color: var(--white);
  transform: scale(1.1);
}

.footer-links-col h5,
.footer-contact-col h5 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.footer-links-col ul li {
  margin-bottom: 10px;
}
.footer-links-col ul li a {
  font-size: 0.88rem;
  color: var(--silver-mist);
  font-weight: 300;
  transition: color 0.3s;
}
.footer-links-col ul li a:hover { color: var(--accent-red-bright); }

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--silver-mist);
}
.footer-contact-item svg { flex-shrink: 0; margin-top: 2px; }
.footer-contact-item div { display: flex; flex-direction: column; gap: 4px; }
.footer-contact-item a {
  font-size: 0.88rem;
  color: var(--silver-mist);
  font-weight: 300;
  transition: color 0.3s;
  display: block;
}
.footer-contact-item a:hover { color: var(--accent-red-bright); }

.footer-bottom {
  padding: 24px 0;
  text-align: center;
}
.footer-bottom p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.3);
  font-weight: 300;
  letter-spacing: 0.04em;
}

/* ============================================================
   PRODUCT MODAL
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal-box {
  background: linear-gradient(135deg, rgba(11,11,61,0.95), rgba(5,5,20,0.98));
  border: 1px solid rgba(192,57,43,0.2);
  border-radius: var(--radius-xl);
  max-width: 1050px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 40px 100px rgba(0,0,0,0.8);
  transform: scale(0.9) translateY(20px);
  transition: transform 0.3s ease;
}
.modal-overlay.open .modal-box {
  transform: scale(1) translateY(0);
}

.modal-close {
  position: absolute;
  top: 16px; right: 20px;
  background: rgba(255,255,255,0.08);
  color: var(--white);
  width: 36px; height: 36px;
  border-radius: 50%;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  z-index: 1;
}
.modal-close:hover { background: var(--accent-red); }

.modal-inner {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
}

.modal-img-side {
  overflow: hidden;
  border-radius: var(--radius-xl) 0 0 var(--radius-xl);
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  /* กรอบรูปคงที่ ไม่ผูกกับจำนวนสเปค → ทุกสินค้าแสดงรูปขนาดเท่ากัน */
  align-self: stretch;
  min-height: 480px;
}
.modal-img {
  width: 100%;
  height: 100%;
  min-height: 480px;
  max-height: 620px;
  object-fit: contain;
  background: #000;
}

.modal-info-side { padding: 40px 36px; }

/* Price Badge */
.modal-price-box {
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(135deg, rgba(192,57,43,0.15), rgba(11,11,61,0.4));
  border: 1px solid rgba(192,57,43,0.35);
  border-radius: var(--radius-md);
  padding: 16px 22px;
  margin-bottom: 20px;
  position: relative;
  overflow: visible;
}
.modal-price-box::before {
  content: '🔥 โปรโมชั่น';
  position: absolute;
  top: -14px; right: 12px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent-red-bright);
  background: rgba(231,76,60,0.12);
  border: 1px solid rgba(231,76,60,0.25);
  padding: 2px 10px;
  border-radius: 50px;
}
.modal-price-original {
  font-size: 0.95rem;
  color: var(--silver-mist);
  font-weight: 400;
  text-decoration: line-through;
  text-decoration-color: rgba(231,76,60,0.7);
  text-decoration-thickness: 2px;
  white-space: nowrap;
}
.modal-price-arrow {
  font-size: 1.1rem;
  color: var(--accent-red-bright);
}
.modal-price-sale {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.modal-price-sale-label {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--accent-red-bright);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.modal-price-sale-value {
  font-size: 1.8rem;
  font-weight: 800;
  background: linear-gradient(135deg, #FF6B6B, var(--accent-red-bright));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
  white-space: nowrap;
}
.modal-price-save {
  margin-left: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: linear-gradient(135deg, var(--accent-red), #8B0000);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  text-align: center;
}
.modal-price-save-label {
  font-size: 0.6rem;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.modal-price-save-value {
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
}

.modal-category {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--accent-red-bright);
  background: rgba(231,76,60,0.12);
  border: 1px solid rgba(231,76,60,0.25);
  padding: 5px 14px;
  border-radius: 50px;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.modal-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 12px;
}
.modal-desc {
  font-size: 0.9rem;
  color: var(--silver-mist);
  margin-bottom: 24px;
  line-height: 1.7;
  font-weight: 300;
}
.modal-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 28px;
}
.modal-spec-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
}
.modal-spec-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  font-weight: 500;
  text-transform: uppercase;
}
.modal-spec-value {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
}

.modal-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.modal-btn-phone, .modal-btn-line, .modal-btn-fb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 50px;
  font-family: var(--font);
  font-size: 0.88rem;
  font-weight: 600;
  transition: var(--transition);
  flex: 1 1 0;
  justify-content: center;
  min-width: 0;
  white-space: nowrap;
}
.modal-btn-phone {
  background: rgba(39,174,96,0.15);
  border: 1px solid rgba(39,174,96,0.3);
  color: #27AE60;
}
.modal-btn-phone:hover { background: #27AE60; color: white; }
.modal-btn-line {
  background: rgba(6,199,85,0.15);
  border: 1px solid rgba(6,199,85,0.3);
  color: #06C755;
}
.modal-btn-line:hover { background: #06C755; color: white; }
.modal-btn-fb {
  background: rgba(24,119,242,0.15);
  border: 1px solid rgba(24,119,242,0.3);
  color: #1877F2;
}
.modal-btn-fb:hover { background: #1877F2; color: white; }

/* ============================================================
   FLOATING CONTACT BUTTONS
   ============================================================ */
.float-contact {
  position: fixed;
  right: 24px;
  bottom: 30px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.float-contact-menu {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: absolute;
  bottom: 100%;
  margin-bottom: 16px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.9);
  transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform-origin: bottom center;
  pointer-events: none;
}
.float-contact.open .float-contact-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.float-btn {
  width: 52px; height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  position: relative;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.float-main-toggle {
  background: var(--accent-red);
  border: none;
  cursor: pointer;
  z-index: 2;
  animation: floatBtnIn 0.5s ease both;
}
.float-main-toggle .toggle-icon-chat { display: block; }
.float-main-toggle .toggle-icon-close { display: none; }
.float-contact.open .toggle-icon-chat { display: none; }
.float-contact.open .toggle-icon-close { display: block; }

.float-main-toggle::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: 50%;
  border: 2px solid var(--accent-red);
  animation: rippleEffect 1.5s infinite;
  z-index: -1;
}

@keyframes rippleEffect {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.6); opacity: 0; }
}

@keyframes floatBtnIn {
  from { transform: scale(0); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.float-phone { background: #27AE60; }
.float-line { background: #06C755; }
.float-fb { background: #1877F2; }

.float-btn:hover { transform: scale(1.1) translateY(-4px); }


.float-tooltip {
  position: absolute;
  right: calc(100% + 12px);
  background: rgba(0,0,0,0.85);
  color: white;
  font-size: 0.78rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(8px);
  transition: var(--transition);
  pointer-events: none;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.1);
}
.float-tooltip::after {
  content: '';
  position: absolute;
  top: 50%; left: 100%;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-left-color: rgba(0,0,0,0.85);
}
.float-btn:hover .float-tooltip {
  opacity: 1;
  transform: translateX(0);
}

/* Back to Top */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 999;
  width: 48px; height: 48px;
  background: linear-gradient(135deg, var(--accent-red), #8B0000);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition);
  box-shadow: 0 4px 20px var(--accent-red-glow);
}
.back-to-top.visible { opacity: 1; transform: translateY(0); }
.back-to-top:hover { transform: translateY(-4px); }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  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); }
}

[data-aos] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-aos="fade-right"] { transform: translateX(-24px); }
[data-aos="fade-left"] { transform: translateX(24px); }
[data-aos].aos-animate {
  opacity: 1;
  transform: translateY(0) translateX(0);
}

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #050520; }
::-webkit-scrollbar-thumb { background: rgba(192,57,43,0.5); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-red-bright); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .why-us-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .contact-layout { grid-template-columns: 1fr; }
  .stats-banner { padding: 36px 32px; }
}

@media (max-width: 768px) {
  .section { padding: 70px 0; }

  /* Mobile Navbar: Logo ซ้าย + ปุ่มสั่งซื้อขวา */
  .nav-links {
    position: fixed;
    top: 68px; left: 0; right: 0;
    background: rgba(5,5,30,0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 32px 20px 40px;
    gap: 20px;
    transform: translateY(-110%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.35s ease, opacity 0.3s ease, visibility 0.35s;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    z-index: 999;
  }
  .nav-links.open {
    transform: translateY(0) !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }

  /* ซ่อนเมนู nav-link และ nav-btn-cta จาก dropdown ยกเว้น nav-link */
  .nav-link {
    width: 100%;
    text-align: center;
    padding: 20px 16px;
    border-radius: 8px;
    font-size: 1.05rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }
  .nav-link:last-of-type { border-bottom: none; }

  /* ซ่อน CTA ใน dropdown */
  .nav-links .nav-btn-cta { display: none; }

  /* แสดง Mobile CTA ข้าง Logo */
  .hamburger { display: flex; }
  .mobile-cta {
    display: flex !important;
    align-items: center;
    gap: 10px;
  }
  .mobile-menu-btn {
    display: flex !important;
  }

  .hero-content { padding: 120px 20px 80px; }
  .hero-stats { flex-wrap: wrap; gap: 20px; }
  .stat-divider { display: none; }
  .stat-item { padding: 0; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn-primary { display: none; }
  .btn-ghost.desktop-btn { display: none; }
  .btn-ghost.mobile-btn { display: inline-flex; width: 100%; justify-content: center; }

  /* สลับรูป Hero บนมือถือ */
  #heroBgImg { content: url('../images/mohero2.webp'); }

  .products-grid { grid-template-columns: 1fr; }

  .why-us-grid { grid-template-columns: 1fr; }
  .stats-banner {
    flex-direction: column;
    gap: 28px;
    padding: 32px 24px;
    text-align: center;
  }
  .stat-banner-divider { width: 80px; height: 1px; }

  .footer-top { grid-template-columns: 1fr; gap: 28px; }

  .modal-inner { grid-template-columns: 1fr; }
  .modal-close { background: var(--accent-red); }
  .modal-img-side { border-radius: var(--radius-xl) var(--radius-xl) 0 0; }
  .modal-img { min-height: 340px; }
  .modal-price-box { flex-wrap: wrap; gap: 10px; overflow: hidden; }
  .modal-price-box::before { top: 6px; }
  .modal-price-save { margin-left: 0; }
  .modal-info-side { padding: 28px 24px; }
  .modal-title { font-size: 1.5rem; }

  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .lightbox-img { max-width: 85%; height: auto; max-height: 60vh; }
  .lightbox-nav { width: 40px; height: 40px; position: absolute; z-index: 10; }
  .lightbox-prev { left: 5px; }
  .lightbox-next { right: 5px; }
  .lightbox-content { padding: 0; justify-content: center; }

  .contact-form-box { padding: 28px 20px; }
  .form-row { grid-template-columns: 1fr; }

  .contact-quick-btns { flex-direction: column; }

  .float-contact { bottom: 80px; right: 16px; }
  .float-btn { width: 46px; height: 46px; }

  .stats-banner .stat-banner-label { display: block !important; }
}

@media (max-width: 480px) {
  .section-title { font-size: 1.6rem; }
  .hero-title .title-line-1 { font-size: 2.2rem; }
  .hero-title .title-line-2 { font-size: 2.6rem; }
  .hero-stats { justify-content: center; }
  .filter-tabs { gap: 8px; }
  .filter-tab { padding: 8px 16px; font-size: 0.8rem; }
  .modal-actions { flex-direction: column; }
}
