/* ==========================================================================
   DESIGN SYSTEM & CUSTOM VARIABLES (Inspired by Personal Playbook)
   ========================================================================== */
@import url('https://api.fontshare.com/v2/css?f[]=general-sans@400,500,600,700,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Kalam:wght@400;700&family=IBM+Plex+Sans+Thai:wght@300;400;500;600;700&display=swap');

:root {
  /* Brand Colors - New Brand CI v1.0 (Cool White, Gray, Black Theme) */
  --bg-primary: #FFFFFF;      /* Clean White */
  --bg-secondary: #F4F4F6;    /* Cool Minimalist Gray (contrasting background) */
  --bg-dark: #0B0B0B;         /* Matte Black / Charcoal */
  --bg-dark-hover: #1E1E1E;   
  
  --text-primary: #0B0B0B;    /* Deep Charcoal */
  --text-secondary: #555557;  /* Cool Charcoal/Dark Gray */
  --text-muted: #86868B;      /* Cool Muted Gray */
  --text-light: #FFFFFF;      
  
  --accent: #FF1754;          /* Coral Red (Accent) */
  --accent-orange: #FF6A3D;   /* Warm Orange */
  --accent-light: rgba(255, 23, 84, 0.06);    
  --border-color: rgba(11, 11, 11, 0.08);    /* Clean Cool Gray Border */
  --border-color-dark: #2C2C2C;
  
  /* Brand Gradients */
  --gradient-orange: linear-gradient(135deg, #FF1754, #FF6A3D); /* Coral Red to Warm Orange */
  --gradient-brand: linear-gradient(135deg, #FF1754, #FF6A3D, #E7D9F3); /* Signature Brand Gradient */
  
  /* Brand Typography */
  --font-heading: 'General Sans', 'IBM Plex Sans Thai', sans-serif;
  --font-body: 'General Sans', 'IBM Plex Sans Thai', sans-serif;
  --font-handwriting: 'Kalam', cursive;
  --font-logo: 'General Sans', 'IBM Plex Sans Thai', sans-serif;
  
  /* Brand Spacing & Border Radius (CI Specific: Radius 24px) */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;          /* Brand Guideline explicit card radius */
  --radius-full: 9999px;
  
  --shadow-sm: 0 4px 12px rgba(11, 11, 11, 0.02);
  --shadow-md: 0 12px 32px rgba(11, 11, 11, 0.04); /* Shadow: Soft */
  --shadow-lg: 0 20px 48px rgba(11, 11, 11, 0.06);
  
  /* Transitions */
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s ease;
  
  /* Layout */
  --max-width: 1280px;
  --header-height: 80px;
}

.handwritten {
  font-family: var(--font-handwriting) !important;
  font-weight: 700;
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

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

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  border: none;
  background: none;
  outline: none;
}

button {
  cursor: pointer;
}

/* Utility Classes */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.section-padding {
  padding: 8rem 0;
}

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

.text-center { text-align: center; }
.flex { display: flex; }
.grid { display: grid; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 {
  font-size: 4.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 2.75rem;
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}

.accent-text {
  color: var(--accent);
}

@media (max-width: 992px) {
  h1 { font-size: 3.5rem; }
  h2 { font-size: 2.25rem; }
}

@media (max-width: 576px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 1.75rem; }
  p { font-size: 0.95rem; }
}

/* ==========================================================================
   BUTTONS & BADGES
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 2rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition-smooth);
  gap: 0.5rem;
}

.btn-primary {
  background-color: var(--bg-dark);
  color: var(--bg-primary);
}

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

.btn-secondary {
  background-color: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background-color: var(--bg-primary);
  border-color: var(--text-primary);
  transform: translateY(-2px);
}

.btn-icon {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 1rem;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ==========================================================================
   HEADER / NAVIGATION
   ========================================================================== */
body > header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  z-index: 100;
  transition: var(--transition-smooth);
}

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

.logo {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

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

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  font-weight: 500;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-primary);
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.cart-toggle {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.cart-toggle:hover {
  border-color: var(--text-primary);
}

.cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background-color: var(--accent);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg-primary);
}

.menu-toggle {
  display: none;
  font-size: 1.5rem;
}

@media (max-width: 992px) {
  .nav-links {
    display: none; /* Add JS logic to toggle drawer */
  }
  .menu-toggle {
    display: flex;
  }
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
  padding-top: calc(var(--header-height) + 4rem);
  padding-bottom: 5rem;
  overflow: hidden;
  background-color: var(--bg-secondary);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-content {
  max-width: 600px;
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

.trust-avatars {
  display: flex;
}

.trust-avatars img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--bg-primary);
  margin-left: -12px;
}

.trust-avatars img:first-child {
  margin-left: 0;
}

.trust-text {
  font-size: 0.85rem;
}

.trust-stars {
  color: #F5A623;
  margin-bottom: 0.2rem;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-img-wrapper {
  position: relative;
  width: 100%;
  max-width: 460px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
}

.hero-floating-badge {
  position: absolute;
  top: 15%;
  right: -5%;
  transform: rotate(6deg);
  box-shadow: var(--shadow-md);
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(6deg); }
  50% { transform: translateY(-10px) rotate(8deg); }
}

@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }
  .hero-content {
    margin: 0 auto;
  }
  .hero-trust {
    justify-content: center;
  }
  .hero-img-wrapper {
    margin: 0 auto;
  }
}

/* ==========================================================================
   CORE PILLARS (Value Props)
   ========================================================================== */
.pillars {
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  background-color: var(--bg-primary);
  padding: 3rem 0;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
  text-align: center;
}

.pillar-card {
  padding: 1.5rem 1rem;
  transition: var(--transition-smooth);
}

.pillar-icon {
  width: 28px;
  height: 28px;
  margin: 0 auto 1rem;
  color: var(--accent);
}

.pillar-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.pillar-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.4;
  margin: 0;
}

@media (max-width: 992px) {
  .pillars-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 576px) {
  .pillars-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .pillar-card {
    border-bottom: 1px solid var(--border-color);
  }
  .pillar-card:last-child {
    border-bottom: none;
  }
}

/* ==========================================================================
   BRANDING COLLAGE (Asymmetric highlight)
   ========================================================================== */
.branding-section {
  background-color: var(--bg-primary);
}

.branding-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 4rem;
  align-items: center;
}

.branding-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 120px;
  gap: 0.75rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background-color: var(--bg-primary);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item.col-2 { grid-column: span 2; }
.gallery-item.row-2 { grid-row: span 2; }
.gallery-item.row-3 { grid-row: span 3; }

.gallery-item.text-block {
  background-color: #2E2824; /* deep warm brown */
  color: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  text-align: center;
  padding: 1rem;
}

@media (max-width: 992px) {
  .branding-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .branding-gallery {
    grid-auto-rows: 90px;
  }
}

/* ==========================================================================
   PRODUCT CATALOG (Interactive)
   ========================================================================== */
.catalog-section {
  background-color: var(--bg-primary);
}

.catalog-header {
  max-width: 600px;
  margin: 0 auto 3rem;
  text-align: center;
}

.category-cards-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.2rem;
  margin-bottom: 4rem;
}

.category-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem 1rem;
  text-decoration: none;
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: var(--transition-smooth);
  cursor: pointer;
}

.category-card:hover,
.category-card.active {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--text-primary);
  background-color: var(--bg-primary);
}

.category-card-img {
  width: 100%;
  height: 90px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 1.25rem;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  transition: var(--transition-smooth);
}

.category-card-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.category-card-desc {
  font-size: 0.72rem;
  color: var(--text-secondary);
  line-height: 1.4;
  margin: 0;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.product-card {
  background-color: var(--bg-secondary);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: var(--transition-smooth);
}

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

.product-tag {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  background-color: var(--bg-dark);
  color: var(--bg-primary);
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  z-index: 2;
}

.product-tag.coming-soon {
  background-color: var(--accent);
}

.product-img-container {
  height: 200px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 1.25rem;
  border: 1px solid var(--border-color);
  background-color: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.product-card:hover .product-img-container img {
  transform: scale(1.03);
}

.product-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  font-size: 0.8rem;
}

.product-stars {
  color: #F5A623;
}

.product-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  line-height: 1.3;
}

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

.product-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-color);
  padding-top: 1rem;
}

.product-price {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 800;
}

.product-price span {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-secondary);
}

.add-to-cart-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--bg-dark);
  color: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.add-to-cart-btn:hover {
  background-color: var(--accent);
  transform: scale(1.05);
}

@media (max-width: 1200px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 576px) {
  .product-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   EXCLUSIVE BONUSES BANNER
   ========================================================================== */
.bonus-banner {
  background-color: var(--bg-dark);
  color: var(--bg-primary);
  border-radius: var(--radius-lg);
  padding: 4rem;
  margin: 6rem auto;
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 4rem;
  align-items: center;
  box-shadow: var(--shadow-lg);
}

.bonus-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.bonus-mockup {
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  border: 1px solid var(--border-color-dark);
}

.bonus-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background-color: var(--accent);
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.1rem;
  line-height: 1;
  text-align: center;
  box-shadow: var(--shadow-md);
  transform: rotate(-10deg);
}

.bonus-badge span {
  font-size: 0.65rem;
  font-weight: 500;
  text-transform: uppercase;
}

.bonus-content h2 {
  color: white;
  margin-bottom: 1rem;
}

.bonus-content p {
  color: var(--text-muted);
}

.bonus-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  list-style: none;
  margin-top: 2rem;
}

.bonus-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
}

.bonus-list li svg {
  color: var(--accent);
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

@media (max-width: 992px) {
  .bonus-banner {
    grid-template-columns: 1fr;
    padding: 3rem;
    gap: 3rem;
    margin: 4rem auto;
  }
  .bonus-visual {
    max-width: 320px;
    margin: 0 auto;
  }
}

/* ==========================================================================
   PRICING PLANS
   ========================================================================== */
.pricing-section {
  background-color: var(--bg-primary);
}

.pricing-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3rem;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  align-items: flex-start;
}

.pricing-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 3rem 2.5rem;
  transition: var(--transition-smooth);
  position: relative;
}

.pricing-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.pricing-card.popular {
  border: 2px solid var(--text-primary);
  background-color: var(--bg-primary);
}

.popular-tag {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--accent);
  color: white;
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pricing-name {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.pricing-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.pricing-price {
  font-family: var(--font-heading);
  font-size: 2.75rem;
  font-weight: 800;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1.5rem;
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
}

.pricing-features li svg {
  color: var(--accent);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.pricing-features li.disabled {
  color: var(--text-muted);
  text-decoration: line-through;
}

.pricing-features li.disabled svg {
  color: var(--text-muted);
}

.pricing-btn {
  width: 100%;
}

@media (max-width: 992px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }
}

/* ==========================================================================
   TESTIMONIALS (Slider)
   ========================================================================== */
.testimonials-section {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  align-items: center;
}

.testimonial-nav {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.nav-arrow {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.nav-arrow:hover {
  background-color: var(--bg-dark);
  color: var(--bg-primary);
  border-color: var(--bg-dark);
}

.slider-wrapper {
  overflow: hidden;
  position: relative;
  width: 100%;
}

.testimonials-slider {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  gap: 2rem;
}

.testimonial-card {
  min-width: calc(50% - 1rem);
  flex-shrink: 0;
  background-color: var(--bg-secondary);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  padding: 2.5rem;
}

.testimonial-stars {
  color: #F5A623;
  margin-bottom: 1rem;
}

.testimonial-text {
  font-size: 1rem;
  font-style: italic;
  margin-bottom: 2rem;
  color: var(--text-primary);
}

.reviewer-profile {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.reviewer-img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border-color);
}

.reviewer-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
}

.reviewer-title {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

@media (max-width: 992px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .testimonial-card {
    min-width: 100%;
  }
}

/* ==========================================================================
   FAQ ACCORDION
   ========================================================================== */
.faq-section {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition-smooth);
}

.faq-question {
  width: 100%;
  padding: 1.75rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  text-align: left;
}

.faq-icon {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-answer p {
  overflow: hidden;
  padding: 0 2rem 1.75rem;
  margin-bottom: 0;
}

.faq-item.active {
  border-color: var(--text-primary);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-item.active .faq-answer {
  grid-template-rows: 1fr;
}

@media (max-width: 992px) {
  .faq-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

/* ==========================================================================
   FOOTER SECTION
   ========================================================================== */
.footer-cta {
  background-color: var(--bg-dark);
  color: white;
  border-radius: var(--radius-lg);
  padding: 5rem 4rem;
  margin: 6rem auto 3rem;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 5rem;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.4);
}

.footer-cta-mockup {
  position: relative;
  display: flex;
  justify-content: center;
}

.footer-cta-mockup img {
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  transform: rotate(-2deg);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  max-width: 100%;
  height: auto;
  max-height: 280px;
  object-fit: cover;
}

.footer-cta:hover .footer-cta-mockup img {
  transform: scale(1.04) rotate(1deg);
}

.footer-main {
  background-color: var(--bg-dark);
  color: var(--bg-primary);
  padding: 5rem 0 2.5rem;
  border-top: 1px solid var(--border-color-dark);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-brand h3 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.footer-brand h3 span {
  color: var(--accent);
}

.footer-brand p {
  color: var(--text-muted);
  max-width: 320px;
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-col ul a {
  color: var(--text-muted);
  font-size: 0.95rem;
}

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

.footer-bottom {
  border-top: 1px solid var(--border-color-dark);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.social-links {
  display: flex;
  gap: 1.5rem;
}

.social-links a:hover {
  color: var(--accent);
}

@media (max-width: 992px) {
  .footer-cta {
    grid-template-columns: 1fr;
    padding: 3rem;
    gap: 3rem;
    margin: 4rem auto 2rem;
    text-align: center;
  }
  .footer-cta-mockup {
    order: 2;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

@media (max-width: 576px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }
}

/* ==========================================================================
   SLIDING CART SIDEBAR (Drawer)
   ========================================================================== */
.cart-drawer {
  position: fixed;
  top: 0;
  right: -420px;
  width: 420px;
  height: 100vh;
  background-color: var(--bg-secondary);
  box-shadow: var(--shadow-lg);
  border-left: 1px solid var(--border-color);
  z-index: 200;
  display: flex;
  flex-direction: column;
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: right;
}

.cart-drawer.open {
  right: 0;
}

.cart-header {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-close-btn {
  font-size: 1.5rem;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition-fast);
}

.cart-close-btn:hover {
  background-color: var(--bg-primary);
}

.cart-items {
  flex-grow: 1;
  overflow-y: auto;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.cart-item {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.cart-item-img {
  width: 70px;
  height: 70px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 1px solid var(--border-color);
  background-color: var(--bg-primary);
}

.cart-item-info {
  flex-grow: 1;
}

.cart-item-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.cart-item-price {
  font-size: 0.9rem;
  font-weight: 600;
}

.cart-item-remove {
  color: var(--text-muted);
  font-size: 0.8rem;
  text-decoration: underline;
  cursor: pointer;
  margin-top: 0.25rem;
}

.cart-item-remove:hover {
  color: var(--accent);
}

.cart-empty {
  text-align: center;
  color: var(--text-secondary);
  margin-top: 4rem;
}

.cart-footer {
  padding: 2rem;
  border-top: 1px solid var(--border-color);
  background-color: var(--bg-primary);
}

.cart-summary-line {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  font-weight: 700;
  font-size: 1.1rem;
}

.cart-checkout-btn {
  width: 100%;
}

.cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(26, 26, 24, 0.4);
  z-index: 199;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.cart-overlay.open {
  opacity: 1;
  pointer-events: all;
}

@media (max-width: 480px) {
  .cart-drawer {
    width: 100%;
    right: -100%;
  }
}

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

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

.modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(26, 26, 24, 0.6);
  backdrop-filter: blur(4px);
}

.modal-content {
  position: relative;
  background-color: var(--bg-secondary);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  z-index: 2;
  padding: 3rem;
  transition: transform 0.3s ease;
  transform: translateY(20px);
}

.modal.open .modal-content {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 1.5rem;
  cursor: pointer;
}

.checkout-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.5rem 0 2rem;
}

.checkout-tab-btn {
  padding: 0.85rem;
  text-align: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.checkout-tab-btn.active {
  border-color: var(--text-primary);
  background-color: var(--accent-light);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-control {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background-color: var(--bg-primary);
  transition: var(--transition-fast);
}

.form-control:focus {
  border-color: var(--text-primary);
  background-color: var(--bg-secondary);
}

.checkout-qr-wrapper {
  text-align: center;
  padding: 1.5rem;
  background-color: var(--bg-primary);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  margin-bottom: 1.5rem;
}

.checkout-qr-img {
  width: 180px;
  height: 180px;
  margin: 0 auto 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background-color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.file-upload-wrapper {
  position: relative;
  display: block;
}

.file-upload-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem;
  border: 2px dashed var(--border-color);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-fast);
  background-color: var(--bg-primary);
}

.file-upload-btn:hover {
  border-color: var(--text-primary);
  background-color: var(--bg-secondary);
}

.file-upload-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.success-screen {
  text-align: center;
  padding: 2rem 0;
}

.success-icon {
  width: 64px;
  height: 64px;
  color: #2F80ED;
  background-color: #EBF3FF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
}

/* ==========================================================================
   PRODUCT SALES PAGE SPECIFIC (product.html)
   ========================================================================== */
.sales-hero {
  padding-top: calc(var(--header-height) + 5rem);
  padding-bottom: 5rem;
}

.sales-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 5rem;
  align-items: flex-start;
}

.sales-image-sticky {
  position: sticky;
  top: calc(var(--header-height) + 2rem);
}

.sales-image-box {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background-color: var(--bg-secondary);
}

.sales-bullets {
  list-style: none;
  margin: 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sales-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.sales-bullets li svg {
  color: var(--accent);
  width: 22px;
  height: 22px;
  margin-top: 0.15rem;
  flex-shrink: 0;
}

.sales-cta-box {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  margin-top: 2rem;
}

.sales-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 4rem;
}

.sales-feature-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 2rem;
}

@media (max-width: 992px) {
  .sales-hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .sales-image-sticky {
    position: relative;
    top: 0;
  }
  .sales-features-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   BLOG LISTING & POST DETAILS (blog.html & blog-post.html)
   ========================================================================== */
.blog-hero {
  padding-top: calc(var(--header-height) + 5rem);
  padding-bottom: 3.5rem;
}

.blog-hero-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 3rem;
}

.blog-hero-badge {
  position: relative;
  width: 110px;
  height: 110px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-hero-badge svg {
  width: 100%;
  height: 100%;
  animation: spin-clockwise 25s linear infinite;
}

.blog-hero-badge .badge-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
}

@keyframes spin-clockwise {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@media (max-width: 768px) {
  .blog-hero-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 2rem;
  }
  .blog-hero-badge {
    align-self: center;
  }
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem 2rem;
  margin-bottom: 5rem;
}

.blog-categories {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}

.blog-cat-btn {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.6rem 1.5rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  background-color: var(--bg-primary);
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-fast);
}

.blog-cat-btn:hover {
  border-color: var(--text-primary);
  color: var(--text-primary);
}

.blog-cat-btn.active {
  background-color: var(--bg-dark);
  border-color: var(--bg-dark);
  color: var(--text-light);
}

.blog-featured-card {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3.5rem;
  margin-bottom: 4rem;
  text-decoration: none;
  color: inherit;
  align-items: center;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid var(--border-color);
}

.blog-featured-img {
  width: 100%;
  aspect-ratio: 1.6;
  object-fit: cover;
  border-radius: var(--radius-md);
  transition: transform var(--transition-smooth);
}

.blog-featured-card:hover .blog-featured-img {
  transform: scale(1.015);
}

.blog-featured-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.blog-featured-tag {
  background-color: var(--accent-light);
  color: var(--accent);
  border-radius: var(--radius-full);
  padding: 0.3rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 700;
  display: inline-block;
  align-self: flex-start;
}

.blog-featured-title {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.2;
  margin: 0;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.blog-featured-desc {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 0;
}

.blog-featured-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
}

@media (max-width: 992px) {
  .blog-featured-card {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.blog-card {
  background-color: transparent;
  border: none;
  overflow: visible;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.blog-card-img-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  aspect-ratio: 1.6;
  width: 100%;
}

.blog-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.blog-card:hover .blog-card-img {
  transform: scale(1.03);
}

.blog-card-content {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.blog-card-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-primary);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--transition-fast);
}

.blog-card:hover .blog-card-title {
  color: var(--accent);
}

.blog-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.25rem;
}

.blog-card-info {
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.blog-card-cat-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.blog-card-arrow {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-smooth);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  flex-shrink: 0;
}

.blog-card:hover .blog-card-arrow {
  background-color: var(--bg-dark);
  border-color: var(--bg-dark);
  color: var(--text-light);
  transform: rotate(45deg);
}

.post-container {
  max-width: 940px;
  margin: calc(var(--header-height) + 5rem) auto 8rem;
  padding: 0 2rem;
}

.post-header {
  text-align: left;
  margin-bottom: 3.5rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.post-meta {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.post-cover-img {
  width: 100%;
  aspect-ratio: 2.1;
  max-height: 500px;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  margin: 0 auto 4rem;
  display: block;
}

.post-content {
  font-family: 'General Sans', 'IBM Plex Sans Thai', sans-serif;
  font-size: 1.15rem;
  line-height: 1.9;
  color: #292929;
  letter-spacing: -0.003em;
  max-width: 700px;
  margin: 0 auto;
}

.post-content p {
  margin-bottom: 1.75rem;
}

.post-content h2,
.post-content h3 {
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin: 3.5rem 0 1.25rem;
}

.post-content h2 {
  font-size: 1.85rem;
  line-height: 1.3;
}

.post-content h3 {
  font-size: 1.45rem;
  line-height: 1.3;
}

.post-content ul,
.post-content ol {
  margin-bottom: 2rem;
  padding-left: 2rem;
}

.post-content li {
  margin-bottom: 0.75rem;
}

.post-content strong {
  color: var(--text-primary);
}

.post-content blockquote {
  font-style: italic;
  border-left: 3px solid var(--accent);
  padding-left: 1.5rem;
  margin: 2rem 0;
  color: var(--text-secondary);
}

@media (max-width: 992px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   ADMIN DASHBOARD (admin.html)
   ========================================================================== */
.admin-login-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.admin-login-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 4rem 3rem;
  width: 100%;
  max-width: 440px;
  box-shadow: var(--shadow-lg);
}

.admin-layout {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-top: 0;
  background-color: #F4F4F6 !important; /* Premium light gray for main body */
}

.admin-pill-btn {
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-secondary);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.admin-pill-btn:hover {
  color: var(--text-primary);
  background: rgba(11, 11, 11, 0.04);
}
.admin-pill-btn.active {
  background: var(--accent) !important;
  color: var(--text-light) !important;
}
.admin-icon-btn {
  transition: opacity 0.2s ease;
}
.admin-icon-btn:hover {
  opacity: 0.75;
}

.admin-sidebar {
  border-right: 1px solid var(--border-color);
  background-color: #FAFAFA;
  padding: 2.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.admin-sidebar-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-secondary);
  opacity: 0.5;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 1rem 1.2rem 0.25rem;
}

.admin-menu-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem 1.2rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-secondary);
  text-align: left;
  border: none;
  background: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.admin-menu-btn:hover {
  background-color: rgba(0, 0, 0, 0.03);
  color: var(--text-primary);
  transform: translateX(2px);
}

.admin-menu-btn.active {
  background-color: rgba(255, 23, 84, 0.08) !important;
  color: #FF1754 !important;
  font-weight: 700;
}

.admin-menu-btn.logout-btn {
  margin-top: auto;
  color: #EB5757;
}

.admin-menu-btn.logout-btn:hover {
  background-color: #FFEAEA;
}

.admin-content {
  padding: 4rem;
  overflow-y: auto;
}

.admin-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3rem;
}

.admin-panel-section {
  display: none;
}

.admin-panel-section.active {
  display: block;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  background-color: var(--bg-secondary);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  overflow: hidden;
}

.admin-table th,
.admin-table td {
  padding: 1.25rem 1.5rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.admin-table th {
  background-color: var(--bg-primary);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.admin-table tr:last-child td {
  border-bottom: none;
}

.admin-table-img {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 1px solid var(--border-color);
  background-color: var(--bg-primary);
}

.admin-action-links {
  display: flex;
  gap: 0.5rem;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.admin-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-fast);
  text-decoration: none;
  border: 1px solid transparent;
}

.admin-action-btn.edit {
  background-color: var(--bg-primary);
  border-color: var(--border-color);
  color: var(--text-primary);
}

.admin-action-btn.edit:hover {
  background-color: var(--border-color);
}

.admin-action-btn.delete {
  background-color: rgba(235, 87, 87, 0.05);
  border-color: rgba(235, 87, 87, 0.15);
  color: #EB5757;
}

.admin-action-btn.delete:hover {
  background-color: rgba(235, 87, 87, 0.1);
  border-color: rgba(235, 87, 87, 0.3);
}

.admin-action-btn.pin {
  background-color: rgba(47, 128, 237, 0.05);
  border-color: rgba(47, 128, 237, 0.15);
  color: #2F80ED;
}

.admin-action-btn.pin.active {
  background-color: rgba(255, 23, 84, 0.1);
  border-color: rgba(255, 23, 84, 0.2);
  color: #FF1754;
}

.admin-action-btn.pin:hover {
  opacity: 0.9;
}

@media (max-width: 992px) {
  .admin-layout {
    grid-template-columns: 1fr;
  }
  .admin-sidebar {
    flex-direction: row;
    padding: 1rem;
    overflow-x: auto;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
  }
  .admin-content {
    padding: 2rem;
  }
}

/* Base64 preview */
.preview-image-box {
  width: 120px;
  height: 120px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  margin-top: 0.5rem;
  overflow: hidden;
  background-color: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.preview-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* WordPress Style Rich Text Editor */
.editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-bottom: none;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  padding: 0.5rem;
}

.editor-btn {
  background: none;
  border: 1px solid transparent;
  border-radius: 4px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-primary);
  font-weight: 600;
  font-family: inherit;
  transition: all var(--transition-fast);
}

.editor-btn:hover {
  background-color: var(--bg-secondary);
  border-color: var(--border-color);
}

.editor-content-area {
  border: 1px solid var(--border-color);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  min-height: 250px;
  max-height: 380px;
  overflow-y: auto;
  background-color: var(--bg-primary);
  padding: 1.25rem;
  outline: none;
  font-family: 'General Sans', 'IBM Plex Sans Thai', sans-serif;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-primary);
  text-align: left;
}

.editor-content-area:focus {
  border-color: var(--text-primary);
}

.editor-content-area[contenteditable=true]:empty:before {
  content: attr(placeholder);
  color: var(--text-muted);
  pointer-events: none;
  display: block;
}

/* Custom Toggle Switch (Notion/WordPress Style) */
.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 26px;
  flex-shrink: 0;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .4s;
}

input:checked + .slider {
  background-color: var(--accent);
}

input:focus + .slider {
  box-shadow: 0 0 1px var(--accent);
}

input:checked + .slider:before {
  transform: translateX(24px);
}

/* Rounded sliders */
.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

/* Interactive Dark Checklist Styles */
.checklist-item {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid transparent;
}

.checklist-item:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.04);
}

.checklist-item.active {
  background: rgba(255, 255, 255, 0.02);
}

.checklist-item.active .check-box {
  background-color: var(--accent);
  border-color: var(--accent) !important;
}

.checklist-item.active .check-box svg {
  display: block !important;
}

.checklist-item.active .check-text {
  text-decoration: line-through;
  opacity: 0.4;
  color: rgba(255, 255, 255, 0.3) !important;
}

.laptop-container {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.laptop-container:hover {
  transform: scale(1.03) rotate(-1deg);
}

/* Premium Blog Post Layout & Features */
.post-toc-sidebar {
  display: block;
}

.toc-link {
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.2s ease;
  display: block;
  line-height: 1.5;
  padding-left: 12px;
  border-left: 2px solid transparent;
  font-weight: 500;
}

.toc-link:hover {
  color: var(--accent);
  padding-left: 14px;
}

.toc-link.active {
  color: var(--accent) !important;
  font-weight: 700;
  border-left-color: var(--accent);
}

/* Underline mark style for pre-highlighted content */
.post-content mark {
  background: linear-gradient(120deg, rgba(255, 23, 84, 0.15) 0%, rgba(255, 23, 84, 0.15) 100%);
  background-repeat: no-repeat;
  background-size: 100% 0.3em;
  background-position: 0 85%;
  transition: background-size 0.2s ease;
  padding: 0 0.1em;
  color: inherit;
  font-weight: 600;
}

.post-content mark:hover {
  background-size: 100% 100%;
}

/* User Selection Custom Highlight style */
.user-highlight {
  background-color: rgba(255, 23, 84, 0.22);
  padding: 0 2px;
  border-radius: 2px;
}

/* Hover scales */
.share-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

.post-navigation-block a:hover {
  transform: translateX(-4px);
}

.post-navigation-block #nextPostLink:hover {
  transform: translateX(4px);
}

.post-navigation-block a:hover #prevPostTitle,
.post-navigation-block a:hover #nextPostTitle {
  color: var(--accent) !important;
}

/* Responsive sidebar */
@media (max-width: 900px) {
  .post-body-layout {
    flex-direction: column;
    gap: 2rem !important;
  }
  
  .post-toc-sidebar {
    position: relative !important;
    top: 0 !important;
    width: 100% !important;
    max-height: none !important;
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    background-color: var(--bg-secondary);
  }
}

/* ==========================================================================
   PREMIUM SALES PAGE (product.html)
   ========================================================================== */
.sales-section-title {
  text-align: center;
  margin-bottom: 3.5rem;
}
.sales-section-title h2 {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}
.sales-section-title p {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

/* Before & After Panel */
.ba-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 6rem;
}
.ba-card {
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}
.ba-card.before {
  background-color: rgba(255, 23, 84, 0.02);
  border-color: rgba(255, 23, 84, 0.15);
}
.ba-card.after {
  background-color: rgba(46, 204, 113, 0.02);
  border-color: rgba(46, 204, 113, 0.15);
}
.ba-badge {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
}
.ba-card.before .ba-badge {
  background-color: rgba(255, 23, 84, 0.1);
  color: #FF1754;
}
.ba-card.after .ba-badge {
  background-color: rgba(46, 204, 113, 0.1);
  color: #2ECC71;
}
.ba-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.ba-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 1.05rem;
  line-height: 1.6;
}
.ba-list li svg {
  flex-shrink: 0;
  margin-top: 0.25rem;
}

/* Suitable Callout Grid */
.suitable-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 6rem;
}
.suitable-card {
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  background-color: var(--bg-secondary);
}
.suitable-card.yes {
  border-left: 4px solid #2ECC71;
}
.suitable-card.no {
  border-left: 4px solid #FF1754;
}
.suitable-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Offer Value Stack */
.offer-stack-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 3rem;
  margin-bottom: 6rem;
  box-shadow: var(--shadow-md);
}
.offer-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border-color);
}
.offer-item:last-of-type {
  border-bottom: none;
  margin-bottom: 2rem;
}
.offer-item-title {
  font-weight: 600;
  font-size: 1.05rem;
}
.offer-item-price {
  font-weight: 700;
  color: var(--text-secondary);
}

/* Guarantee Panel */
.guarantee-card {
  display: flex;
  gap: 2.5rem;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 3rem;
  align-items: center;
  margin-bottom: 6rem;
}
.guarantee-icon {
  width: 80px;
  height: 80px;
  background-color: rgba(255, 23, 84, 0.05);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}

/* Sticky Purchase Bar */
.sticky-purchase-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border-color);
  padding: 1rem 2rem;
  z-index: 1000;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  box-shadow: 0 -5px 25px rgba(0,0,0,0.05);
}
.sticky-purchase-bar.visible {
  transform: translateY(0);
}
.sticky-bar-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

@media (max-width: 768px) {
  .ba-grid, .suitable-grid {
    grid-template-columns: 1fr;
  }
  .sticky-purchase-bar {
    padding: 1rem;
  }
  .sticky-bar-container {
    flex-direction: column;
    gap: 0.75rem;
    align-items: stretch;
    text-align: center;
  }
}
