/* ========================================
   VAPE SHOP THAILAND - Global Styles
   Dark purple + teal + Line green (#06C755)
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Thai:wght@300;400;500;600;700;800;900&family=Prompt:wght@300;400;500;600;700;800;900&family=Kanit:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --bg-dark: #0d0a1a;
  --bg-card: #1a1333;
  --bg-card-hover: #231a45;
  --bg-surface: #140f28;
  --purple-deep: #2d1b69;
  --purple-mid: #6c3ce0;
  --purple-light: #a78bfa;
  --purple-glow: rgba(108,60,224,0.3);
  --teal: #2dd4bf;
  --teal-dim: #14b8a6;
  --teal-glow: rgba(45,212,191,0.25);
  --line-green: #06C755;
  --line-green-hover: #05b34c;
  --line-green-glow: rgba(6,199,85,0.35);
  --text-primary: #f0edf7;
  --text-secondary: #b8b0cc;
  --text-muted: #7a7194;
  --gold: #f5c542;
  --red-stock: #ef4444;
  --border-color: rgba(108,60,224,0.2);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;
  --font-body: 'Noto Sans Thai', 'Prompt', sans-serif;
  --font-display: 'Kanit', 'Prompt', sans-serif;
  --shadow-card: 0 4px 24px rgba(0,0,0,0.4);
  --shadow-glow-purple: 0 0 40px rgba(108,60,224,0.15);
  --shadow-glow-green: 0 0 30px rgba(6,199,85,0.2);
  --max-width: 1200px;
  --header-h: 70px;
}

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

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

body {
  font-family: var(--font-body);
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100vh;
}

body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 10%, rgba(108,60,224,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 90%, rgba(45,212,191,0.06) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

a { color: var(--teal); text-decoration: none; transition: color .2s; }
a:hover { color: var(--purple-light); }

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

/* ---- Container ---- */
.container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 20px; position: relative; z-index: 1; }

/* ========== HEADER / NAV ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13,10,26,0.85);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-color);
  height: var(--header-h);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.logo .accent { color: var(--teal); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.6rem;
  cursor: pointer;
  padding: 8px;
  z-index: 110;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}

.nav-menu a {
  display: block;
  padding: 8px 14px;
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: all .2s;
  white-space: nowrap;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--text-primary);
  background: rgba(108,60,224,0.15);
}

.nav-cta {
  background: var(--line-green) !important;
  color: #fff !important;
  font-weight: 600 !important;
  border-radius: var(--radius-sm) !important;
}

.nav-cta:hover {
  background: var(--line-green-hover) !important;
  box-shadow: var(--shadow-glow-green);
}

/* Mobile nav */
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-menu {
    position: fixed;
    top: 0; right: -100%;
    width: 280px; height: 100vh;
    background: var(--bg-surface);
    flex-direction: column;
    padding: 80px 24px 40px;
    gap: 4px;
    transition: right .35s cubic-bezier(.4,0,.2,1);
    box-shadow: -4px 0 30px rgba(0,0,0,0.5);
    overflow-y: auto;
    z-index: 105;
  }
  .nav-menu.open { right: 0; }
  .nav-menu a { font-size: 1rem; padding: 12px 16px; width: 100%; }
  .nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 102;
  }
  .nav-overlay.open { display: block; }
}

/* ========== HERO ========== */
.hero {
  padding: 80px 0 60px;
  text-align: center;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: -40px; left: 50%; transform: translateX(-50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(108,60,224,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 16px;
  position: relative;
}

.hero h1 .highlight {
  background: linear-gradient(135deg, var(--teal), var(--purple-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero .subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 32px;
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all .25s;
  text-decoration: none;
}

.btn-line {
  background: var(--line-green);
  color: #fff;
  box-shadow: 0 4px 20px rgba(6,199,85,0.25);
}

.btn-line:hover {
  background: var(--line-green-hover);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(6,199,85,0.35);
}

.btn-line-lg {
  padding: 18px 48px;
  font-size: 1.15rem;
  border-radius: var(--radius-lg);
}

.btn-outline {
  background: transparent;
  color: var(--teal);
  border: 2px solid var(--teal);
}

.btn-outline:hover {
  background: rgba(45,212,191,0.1);
  color: var(--teal);
  transform: translateY(-2px);
}

.btn-purple {
  background: var(--purple-mid);
  color: #fff;
}

.btn-purple:hover {
  background: #7c4dff;
  color: #fff;
  transform: translateY(-2px);
}

/* ========== PRODUCT CARDS ========== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin: 40px 0;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all .3s;
  position: relative;
}

.product-card:hover {
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow-purple);
  border-color: rgba(108,60,224,0.4);
}

.product-card .card-img {
  width: 100%;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--purple-deep), var(--bg-surface));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  text-align: center;
  padding: 20px;
  position: relative;
}

.product-card .card-img .stock-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--line-green);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: 0.02em;
}

.product-card .card-img .stock-badge.out {
  background: var(--red-stock);
}

.product-card .card-body {
  padding: 20px;
}

.product-card .card-body h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.product-card .card-body .price-line {
  color: var(--gold);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.product-card .card-body .card-desc {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.product-card .card-actions .btn {
  flex: 1;
  padding: 10px 12px;
  font-size: 0.82rem;
}

/* ========== SECTION ========== */
.section {
  padding: 60px 0;
  position: relative;
  z-index: 1;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 800;
  text-align: center;
  margin-bottom: 12px;
}

.section-sub {
  text-align: center;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 40px;
}

/* ========== SPEC TABLE ========== */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 0.92rem;
}

.spec-table th,
.spec-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.spec-table th {
  background: rgba(108,60,224,0.1);
  color: var(--purple-light);
  font-weight: 600;
  width: 38%;
  white-space: nowrap;
}

.spec-table td {
  color: var(--text-secondary);
}

.spec-table tr:hover td {
  background: rgba(108,60,224,0.05);
}

/* ========== FEATURES / STEPS ========== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin: 40px 0;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  transition: all .3s;
}

.feature-card:hover {
  border-color: rgba(45,212,191,0.3);
  box-shadow: 0 0 30px rgba(45,212,191,0.08);
}

.feature-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple-deep), rgba(45,212,191,0.2));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.8rem;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.88rem;
}

/* Steps */
.steps {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin: 40px 0;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.step-num {
  width: 52px; height: 52px;
  min-width: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple-mid), var(--teal-dim));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
}

.step-content h3 {
  font-family: var(--font-display);
  font-weight: 700;
  margin-bottom: 4px;
}

.step-content p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* ========== QR CODE PLACEHOLDER ========== */
.qr-block {
  background: var(--bg-card);
  border: 2px dashed var(--line-green);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  max-width: 320px;
  margin: 32px auto;
}

.qr-placeholder {
  width: 180px; height: 180px;
  background: #fff;
  border-radius: var(--radius-md);
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  font-size: 0.8rem;
}

.qr-block p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* ========== CTA SECTION ========== */
.cta-section {
  background: linear-gradient(135deg, rgba(6,199,85,0.1), rgba(108,60,224,0.1));
  border: 1px solid rgba(6,199,85,0.2);
  border-radius: var(--radius-xl);
  padding: 48px 32px;
  text-align: center;
  margin: 48px 0;
}

.cta-section h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.cta-section p {
  color: var(--text-secondary);
  margin-bottom: 24px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* ========== TRUST / CHAT SCREENSHOTS ========== */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin: 32px 0;
}

.trust-screenshot {
  aspect-ratio: 9/16;
  max-height: 320px;
  background: linear-gradient(180deg, var(--bg-card), var(--bg-surface));
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  text-align: center;
  padding: 16px;
}

/* ========== FLAVORS ========== */
.flavor-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}

.flavor-tag {
  padding: 6px 16px;
  background: rgba(108,60,224,0.12);
  border: 1px solid rgba(108,60,224,0.25);
  border-radius: 20px;
  font-size: 0.82rem;
  color: var(--purple-light);
  transition: all .2s;
}

.flavor-tag:hover {
  background: rgba(108,60,224,0.22);
  border-color: var(--purple-light);
}

/* ========== FOOTER ========== */
.site-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  padding: 48px 0 24px;
  margin-top: 60px;
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  margin-bottom: 32px;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--text-primary);
}

.footer-col ul {
  list-style: none;
}

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

.footer-col ul a {
  color: var(--text-secondary);
  font-size: 0.88rem;
  transition: color .2s;
}

.footer-col ul a:hover {
  color: var(--teal);
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* ========== FLOATING LINE BUTTON ========== */
.floating-line {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 200;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--line-green);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 24px rgba(6,199,85,0.4);
  transition: all .3s;
  animation: pulse-line 2s infinite;
  cursor: pointer;
  text-decoration: none;
}

.floating-line:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 32px rgba(6,199,85,0.55);
}

.floating-line svg {
  width: 34px;
  height: 34px;
  fill: #fff;
}

@keyframes pulse-line {
  0%, 100% { box-shadow: 0 4px 24px rgba(6,199,85,0.4); }
  50% { box-shadow: 0 4px 40px rgba(6,199,85,0.6); }
}

/* ========== BREADCRUMB ========== */
.breadcrumb {
  padding: 16px 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--text-muted);
}

.breadcrumb a:hover {
  color: var(--teal);
}

.breadcrumb span {
  margin: 0 6px;
}

/* ========== FAQ ========== */
.faq-list {
  max-width: 750px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border-color);
}

.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color .2s;
}

.faq-q:hover { color: var(--teal); }

.faq-q::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--purple-light);
  transition: transform .3s;
}

.faq-item.open .faq-q::after {
  content: '−';
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.8;
}

.faq-item.open .faq-a {
  max-height: 500px;
  padding-bottom: 18px;
}

/* ========== PROSE (for about, privacy, etc) ========== */
.prose {
  max-width: 750px;
  margin: 0 auto;
}

.prose h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  margin: 36px 0 12px;
  color: var(--text-primary);
}

.prose h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  margin: 24px 0 8px;
}

.prose p {
  margin-bottom: 16px;
  color: var(--text-secondary);
}

.prose ul, .prose ol {
  margin: 12px 0 20px 24px;
  color: var(--text-secondary);
}

.prose li {
  margin-bottom: 6px;
}

/* ========== IMAGE PLACEHOLDER ========== */
.img-placeholder {
  background: linear-gradient(135deg, var(--purple-deep), var(--bg-surface));
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  text-align: center;
  padding: 20px;
  min-height: 200px;
}

/* ========== TAGS / BADGES ========== */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
}

.badge-green { background: var(--line-green); color: #fff; }
.badge-purple { background: var(--purple-mid); color: #fff; }
.badge-teal { background: var(--teal-dim); color: #fff; }

/* ========== UTILITY ========== */
.text-center { text-align: center; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.gap-row { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

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

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

/* ========== RESPONSIVE ========== */
@media (max-width: 600px) {
  .hero { padding: 50px 0 40px; }
  .section { padding: 40px 0; }
  .product-grid { grid-template-columns: 1fr; gap: 16px; }
  .features-grid { grid-template-columns: 1fr; }
  .cta-section { padding: 32px 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .floating-line { width: 54px; height: 54px; bottom: 16px; right: 16px; }
  .floating-line svg { width: 28px; height: 28px; }
  .btn-line-lg { padding: 14px 32px; font-size: 1rem; }
}
