/* ============================================================================
   style.css - วิสาหกิจชุมชน 100 พัน มะพร้าวไทย (360° Showcase & S-O-R Hub)
   ============================================================================ */

:root {
  --bg-cream: #faf7f0;
  --bg-soft: #f2ece0;
  --bg-card: #ffffff;
  --primary: #14452f;
  --primary-mid: #1d5d40;
  --primary-light: #e7f3ec;
  --accent: #c78d32;
  --accent-light: #f6e7c8;
  --accent-dark: #9c6a1b;
  --line-green: #06c755;
  --line-dark: #05a847;
  --youtube-red: #e62117;
  --tiktok-dark: #111111;
  --oncyber-purple: #5b3df5;
  --text-main: #1b2821;
  --text-muted: #55665c;
  --border-color: #e2dac9;
  --shadow-sm: 0 4px 14px rgba(20, 69, 47, 0.06);
  --shadow-md: 0 12px 32px rgba(20, 69, 47, 0.11);
  --shadow-lg: 0 20px 48px rgba(20, 69, 47, 0.16);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Prompt', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-cream);
  color: var(--text-main);
  line-height: 1.65;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

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

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

/* ============================================================================
   TOP OMNI-CHANNEL BAR (ด้านที่ 6: PEOU สลับช่องทางสะดวก ไม่ซับซ้อน)
   ============================================================================ */
.omni-topbar {
  background: linear-gradient(90deg, #0e3322 0%, #194f36 50%, #0e3322 100%);
  color: #ffffff;
  font-size: 0.84rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.omni-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.omni-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  color: #f3dfb9;
}

.omni-pills {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.omni-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.omni-pill:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.24);
}

.omni-pill.line { background: rgba(6, 199, 85, 0.25); border-color: #06c755; }
.omni-pill.web { background: rgba(199, 141, 50, 0.28); border-color: #e4ab4c; }
.omni-pill.yt { background: rgba(230, 33, 23, 0.28); border-color: #ff6259; }
.omni-pill.tt { background: rgba(255, 255, 255, 0.16); border-color: #00f2fe; }
.omni-pill.meta { background: rgba(91, 61, 245, 0.32); border-color: #9f8cff; }

/* ============================================================================
   MAIN NAVBAR
   ============================================================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 247, 240, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 4px 20px rgba(20, 69, 47, 0.05);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 16px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-emblem {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--primary) 0%, #26784f 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.05rem;
  box-shadow: 0 6px 16px rgba(20, 69, 47, 0.22);
  flex-shrink: 0;
  border: 2px solid var(--accent-light);
}

.brand-logo-img {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  object-fit: contain;
  background: #ffffff;
  padding: 3px;
  border: 1.5px solid var(--border-color);
  box-shadow: 0 4px 12px rgba(20, 69, 47, 0.12);
  flex-shrink: 0;
}

.brand-text h1 {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
}

.brand-text p {
  font-size: 0.76rem;
  color: var(--text-muted);
}

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

.nav-link {
  padding: 8px 13px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-main);
  transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
  background: var(--primary-light);
  color: var(--primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-cart-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 15px;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--border-color);
  color: var(--primary);
  font-weight: 600;
  font-size: 0.86rem;
  transition: var(--transition);
}

.btn-cart-badge:hover {
  background: var(--accent-light);
  border-color: var(--accent);
}

.cart-count {
  background: var(--accent);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 700;
  min-width: 21px;
  height: 21px;
  padding: 0 6px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-line-nav {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--line-green);
  color: #fff;
  font-weight: 600;
  font-size: 0.86rem;
  box-shadow: 0 6px 16px rgba(6, 199, 85, 0.25);
  transition: var(--transition);
}

.btn-line-nav:hover {
  background: var(--line-dark);
  transform: translateY(-1px);
}

/* ============================================================================
   HERO & 360° INTERACTIVE PRODUCT STUDIO
   ============================================================================ */
.hero-section {
  padding: 32px 0 48px;
  background:
    radial-gradient(circle at 12% 15%, rgba(199, 141, 50, 0.13), transparent 38%),
    radial-gradient(circle at 88% 20%, rgba(20, 69, 47, 0.1), transparent 42%),
    linear-gradient(180deg, #faf7f0 0%, #f3ede0 100%);
  border-bottom: 1px solid var(--border-color);
}

.hero-header {
  text-align: center;
  max-width: 860px;
  margin: 0 auto 28px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.84rem;
  font-weight: 600;
  margin-bottom: 12px;
  border: 1px solid rgba(20, 69, 47, 0.15);
}

.hero-title {
  font-size: clamp(1.75rem, 3.3vw, 2.6rem);
  font-weight: 700;
  color: var(--primary);
  line-height: 1.25;
  margin-bottom: 10px;
}

.hero-title span {
  color: var(--accent-dark);
}

.hero-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto;
}

/* Studio Layout */
.studio-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: stretch;
}

.viewer-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.viewer-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.viewer-badge-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.badge-360 {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary);
  color: #fff;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
}

.badge-category {
  background: var(--accent-light);
  color: var(--accent-dark);
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
}

.viewer-mode-tabs {
  display: inline-flex;
  background: var(--bg-soft);
  padding: 4px;
  border-radius: 999px;
  border: 1px solid var(--border-color);
}

.mode-tab {
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: var(--transition);
}

.mode-tab.active {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(20, 69, 47, 0.2);
}

/* Stage Area */
.viewer-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  max-height: 460px;
  background: radial-gradient(circle at 50% 45%, #ffffff 0%, #f4efe4 75%, #e8dfd0 100%);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  user-select: none;
  touch-action: pan-y;
}

.viewer-stage.dragging {
  cursor: grabbing;
}

.viewer-stage video,
.viewer-stage img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  background: transparent;
}

.viewer-stage img.hidden,
.viewer-stage video.hidden {
  display: none;
}

.viewer-hint-overlay {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(20, 69, 47, 0.84);
  backdrop-filter: blur(8px);
  color: #fff;
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  pointer-events: none;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  transition: opacity 0.3s ease;
}

.viewer-angle-pill {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border-color);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 5px 12px;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}

.viewer-nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border-color);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  z-index: 5;
}

.viewer-nav-arrow:hover {
  background: var(--primary);
  color: #fff;
}

.viewer-nav-arrow.prev { left: 12px; }
.viewer-nav-arrow.next { right: 12px; }

/* Scrub Slider Bar */
.viewer-controls-bar {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-soft);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
}

.scrub-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary);
  white-space: nowrap;
}

.scrub-slider {
  flex: 1;
  accent-color: var(--primary);
  height: 6px;
  cursor: pointer;
}

.btn-autospin {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  background: #fff;
  color: var(--primary);
  border: 1px solid var(--border-color);
  transition: var(--transition);
  white-space: nowrap;
}

.btn-autospin.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* Product Details Panel (Right Column of Studio) */
.details-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.product-counter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.product-counter {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
}

.product-highlight-badge {
  background: #fff3dc;
  color: #9e6710;
  border: 1px solid #f0d399;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
}

.studio-product-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.3;
  margin-bottom: 10px;
}

.studio-price-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--border-color);
}

.studio-price {
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--accent-dark);
}

.studio-price-note {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.studio-desc {
  font-size: 0.94rem;
  color: var(--text-main);
  margin-bottom: 16px;
}

.studio-benefits-box {
  background: var(--bg-soft);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-bottom: 14px;
  border-left: 4px solid var(--primary);
}

.studio-benefits-box h4 {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
}

.studio-benefits-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.studio-benefits-list li {
  font-size: 0.85rem;
  color: var(--text-main);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.studio-benefits-list li::before {
  content: "✓";
  color: var(--primary);
  font-weight: 700;
}

.studio-usage {
  font-size: 0.83rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  background: #fdfbf7;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

.studio-cta-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}

.btn-buy-line {
  grid-column: span 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #06c755 0%, #049f43 100%);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  box-shadow: 0 8px 22px rgba(6, 199, 85, 0.28);
  transition: var(--transition);
}

.btn-buy-line:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(6, 199, 85, 0.36);
}

.btn-add-interest {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  transition: var(--transition);
}

.btn-add-interest:hover {
  background: var(--primary-mid);
}

.btn-share-product {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  color: var(--primary);
  border: 1px solid var(--border-color);
  font-size: 0.88rem;
  font-weight: 600;
  transition: var(--transition);
}

.btn-share-product:hover {
  background: var(--accent-light);
  border-color: var(--accent);
}

/* 16-Product Quick Strip Carousel */
.selector-strip-wrapper {
  margin-top: 24px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
}

.selector-strip-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.selector-strip-header h3 {
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--primary);
}

.selector-filter-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.filter-pill {
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 500;
  background: var(--bg-soft);
  color: var(--text-muted);
  border: 1px solid transparent;
  transition: var(--transition);
}

.filter-pill.active,
.filter-pill:hover {
  background: var(--primary);
  color: #fff;
}

.selector-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(135px, 1fr));
  gap: 10px;
}

.thumb-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px;
  border-radius: var(--radius-sm);
  background: var(--bg-cream);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-align: left;
}

.thumb-item:hover {
  border-color: var(--accent);
  background: #fff;
}

.thumb-item.active {
  border-color: var(--primary);
  background: var(--primary-light);
  box-shadow: 0 4px 12px rgba(20, 69, 47, 0.12);
}

.thumb-item img {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  background: #fff;
}

.thumb-info {
  overflow: hidden;
}

.thumb-name {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.thumb-price {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--accent-dark);
}

/* ============================================================================
   SECTION COMMON STYLES
   ============================================================================ */
.section {
  padding: 64px 0;
}

.section-alt {
  background: var(--bg-soft);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.section-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 40px;
}

.section-tag {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--accent-light);
  color: var(--accent-dark);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(1.5rem, 2.6vw, 2.15rem);
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
}

.section-desc {
  color: var(--text-muted);
  font-size: 0.96rem;
}

/* ============================================================================
   5 DIGITAL CHANNELS S-O-R HUB (เชื่อมโยงสื่อทั้ง 5 ช่องทาง)
   ============================================================================ */
.channels-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.channel-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  padding: 22px 18px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

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

.channel-num {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--accent-dark);
  margin-bottom: 8px;
}

.channel-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 14px;
  color: #fff;
}

.channel-card.c-line .channel-icon { background: var(--line-green); }
.channel-card.c-web .channel-icon { background: var(--primary); }
.channel-card.c-yt .channel-icon { background: var(--youtube-red); }
.channel-card.c-tt .channel-icon { background: var(--tiktok-dark); }
.channel-card.c-meta .channel-icon { background: var(--oncyber-purple); }

.channel-card h3 {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.channel-card p {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.channel-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.83rem;
  font-weight: 600;
  background: var(--bg-soft);
  color: var(--primary);
  transition: var(--transition);
}

.channel-card:hover .channel-btn {
  background: var(--primary);
  color: #fff;
}

/* ============================================================================
   COMMUNITY STORY & EMBEDDED YOUTUBE (ด้านที่ 2 & ด้านที่ 3)
   ============================================================================ */
.story-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 32px;
  align-items: center;
}

.story-content-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.story-highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 20px 0;
}

.story-stat {
  background: var(--bg-soft);
  border-radius: var(--radius-sm);
  padding: 14px 12px;
  text-align: center;
  border: 1px solid var(--border-color);
}

.story-stat strong {
  display: block;
  font-size: 1.35rem;
  color: var(--primary);
  font-weight: 700;
}

.story-stat span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.story-paragraph {
  font-size: 0.95rem;
  color: var(--text-main);
  margin-bottom: 14px;
  text-align: justify;
}

.story-links-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.btn-outline-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1.5px solid var(--primary);
  color: var(--primary);
  font-weight: 600;
  font-size: 0.88rem;
  transition: var(--transition);
}

.btn-outline-primary:hover {
  background: var(--primary);
  color: #fff;
}

.video-showcase-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 20px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
}

.video-iframe-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #000;
}

.video-iframe-container iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-caption-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.video-caption-bar h4 {
  font-size: 1rem;
  color: var(--primary);
}

.video-caption-bar p {
  font-size: 0.83rem;
  color: var(--text-muted);
}

.btn-yt-channel {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--youtube-red);
  color: #fff;
  font-size: 0.84rem;
  font-weight: 600;
  transition: var(--transition);
}

.btn-yt-channel:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* ============================================================================
   ONCYBER 3D METAVERSE & TIKTOK SHORT VIDEO HUB (ด้านที่ 4 & ด้านที่ 5)
   ============================================================================ */
.immersive-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
}

.metaverse-card,
.tiktok-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.meta-stage {
  position: relative;
  width: 100%;
  height: 360px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: radial-gradient(circle at center, #2a1b6e 0%, #0f0c24 100%);
  border: 1px solid rgba(91, 61, 245, 0.3);
  margin: 16px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.meta-stage iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.meta-placeholder {
  text-align: center;
  color: #fff;
  padding: 24px;
  max-width: 460px;
}

.meta-placeholder-icon {
  font-size: 3rem;
  margin-bottom: 12px;
}

.meta-placeholder h4 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.meta-placeholder p {
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 18px;
}

.meta-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-meta-load {
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--oncyber-purple);
  color: #fff;
  font-weight: 600;
  font-size: 0.86rem;
  transition: var(--transition);
}

.btn-meta-load:hover {
  background: #4728e0;
}

.btn-meta-external {
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  font-weight: 600;
  font-size: 0.86rem;
  transition: var(--transition);
}

.btn-meta-external:hover {
  background: rgba(255, 255, 255, 0.28);
}

.tiktok-reels-preview {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 16px 0;
}

.reel-mini-card {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 9 / 12;
  background: #111;
  border: 1px solid var(--border-color);
  cursor: pointer;
}

.reel-mini-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.reel-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 10px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.82));
  color: #fff;
  font-size: 0.76rem;
  font-weight: 500;
}

.btn-tiktok-main {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  background: #111111;
  color: #ffffff;
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
}

.btn-tiktok-main:hover {
  background: #2b2b2b;
}

/* ============================================================================
   FULL 16 PRODUCTS CATALOG WITH SEARCH & FILTER (ด้านที่ 6, 7, 9)
   ============================================================================ */
.catalog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--bg-card);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.search-box {
  flex: 1;
  min-width: 240px;
  position: relative;
}

.search-box input {
  width: 100%;
  padding: 11px 16px 11px 40px;
  border-radius: 999px;
  border: 1px solid var(--border-color);
  background: var(--bg-cream);
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--text-main);
}

.search-box input:focus {
  outline: 2px solid var(--primary);
  background: #fff;
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.catalog-sort {
  display: flex;
  align-items: center;
  gap: 10px;
}

.catalog-sort select {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-color);
  background: var(--bg-cream);
  font-family: inherit;
  font-size: 0.86rem;
  color: var(--text-main);
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 20px;
}

.product-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
}

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

.product-card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #f6f2e9;
  overflow: hidden;
  cursor: pointer;
}

.product-card-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
  transition: transform 0.35s ease;
}

.product-card:hover .product-card-media img {
  transform: scale(1.05);
}

.card-badge-top {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(20, 69, 47, 0.9);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
}

.btn-card-360 {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--primary);
  border: 1px solid var(--border-color);
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

.product-card-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-card-cat {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--accent-dark);
  margin-bottom: 4px;
}

.product-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
  line-height: 1.35;
}

.product-card-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 14px;
  flex: 1;
}

.product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--border-color);
}

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

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

.btn-sm-360 {
  padding: 7px 11px;
  border-radius: 8px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 600;
  transition: var(--transition);
}

.btn-sm-360:hover {
  background: var(--primary);
  color: #fff;
}

.btn-sm-buy {
  padding: 7px 12px;
  border-radius: 8px;
  background: var(--line-green);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  transition: var(--transition);
}

.btn-sm-buy:hover {
  background: var(--line-dark);
}

/* ============================================================================
   AI CHATBOT & LINE OA SECTION (ด้านที่ 1: AI Chatbot 24 ชม. & Rich Menu)
   ============================================================================ */
.chatbot-showcase-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 28px;
  align-items: stretch;
}

.line-qr-card {
  background: linear-gradient(145deg, #14452f 0%, #0d2e1f 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-md);
}

.line-qr-box {
  display: flex;
  align-items: center;
  gap: 20px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 18px;
  border-radius: var(--radius-md);
  margin: 20px 0;
  flex-wrap: wrap;
}

.line-qr-box img {
  width: 136px;
  height: 136px;
  border-radius: 12px;
  background: #fff;
  padding: 8px;
}

.line-qr-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.88rem;
  color: #e4f2ea;
}

.chat-sim-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.chat-sim-header {
  background: var(--primary);
  color: #fff;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-status-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #22e56e;
  margin-right: 6px;
}

.chat-messages {
  padding: 20px;
  height: 270px;
  overflow-y: auto;
  background: #f5f2ea;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-bubble {
  max-width: 85%;
  padding: 11px 15px;
  border-radius: 16px;
  font-size: 0.88rem;
  line-height: 1.5;
}

.chat-bubble.bot {
  background: #ffffff;
  color: var(--text-main);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
  border: 1px solid var(--border-color);
}

.chat-bubble.user {
  background: var(--line-green);
  color: #ffffff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.chat-quick-questions {
  padding: 12px 16px;
  background: #fff;
  border-top: 1px solid var(--border-color);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chat-q-btn {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 600;
  transition: var(--transition);
}

.chat-q-btn:hover {
  background: var(--primary);
  color: #fff;
}

.chat-input-row {
  display: flex;
  border-top: 1px solid var(--border-color);
  background: #fff;
  padding: 10px 14px;
  gap: 8px;
}

.chat-input-row input {
  flex: 1;
  border: 1px solid var(--border-color);
  border-radius: 999px;
  padding: 9px 14px;
  font-family: inherit;
  font-size: 0.86rem;
}

.chat-input-row button {
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  font-size: 0.84rem;
}

/* ============================================================================
   e-WOM REVIEWS & SOCIAL SHARING SECTION (ด้านที่ 8, 9, 10)
   ============================================================================ */
.ewom-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
}

.reviews-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.review-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 20px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.review-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.review-author {
  font-weight: 700;
  color: var(--primary);
  font-size: 0.94rem;
}

.review-stars {
  color: #f4a622;
  font-size: 0.95rem;
}

.review-product-tag {
  display: inline-block;
  font-size: 0.76rem;
  background: var(--accent-light);
  color: var(--accent-dark);
  padding: 3px 10px;
  border-radius: 999px;
  font-weight: 600;
  margin-bottom: 8px;
}

.review-comment {
  font-size: 0.88rem;
  color: var(--text-main);
}

.review-form-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 26px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

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

.form-group label {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 5px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 13px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background: var(--bg-cream);
  font-family: inherit;
  font-size: 0.88rem;
}

.share-bar-box {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px dashed var(--border-color);
}

.share-buttons-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.btn-share-social {
  flex: 1;
  min-width: 120px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  text-align: center;
  color: #fff;
  transition: var(--transition);
}

.btn-share-social.line { background: var(--line-green); }
.btn-share-social.fb { background: #1877f2; }
.btn-share-social.copy { background: var(--primary); }

/* ============================================================================
   MODAL (ตะกร้าสินค้าสนใจ & QR Code)
   ============================================================================ */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(12, 34, 23, 0.65);
  backdrop-filter: blur(5px);
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop.open {
  display: flex;
}

.modal-box {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  max-width: 540px;
  width: 100%;
  padding: 26px;
  box-shadow: var(--shadow-lg);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

.modal-close {
  font-size: 1.4rem;
  color: var(--text-muted);
}

.cart-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
}

.btn-cart-right-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 7px 12px;
  border-radius: 8px;
  background: var(--line-green);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 3px 10px rgba(6, 199, 85, 0.25);
  transition: var(--transition);
}

.btn-cart-right-link:hover {
  background: var(--line-dark);
  transform: translateY(-1px);
}

/* ============================================================================
   FOOTER & FLOATING QUICK BAR
   ============================================================================ */
.footer {
  background: #0e3020;
  color: #d9e8df;
  padding: 48px 0 90px;
  font-size: 0.88rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 28px;
}

.footer h4 {
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: 12px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

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

.floating-dock {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  background: rgba(20, 69, 47, 0.95);
  backdrop-filter: blur(12px);
  padding: 8px 12px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.dock-item {
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 7px 13px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
  white-space: nowrap;
}

.dock-item:hover {
  background: rgba(255, 255, 255, 0.18);
}

.dock-item.dock-line {
  background: var(--line-green);
}

.toast {
  position: fixed;
  bottom: 80px;
  right: 20px;
  background: var(--primary);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  font-size: 0.88rem;
  font-weight: 600;
  z-index: 400;
  opacity: 0;
  transform: translateY(15px);
  pointer-events: none;
  transition: var(--transition);
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================================
   RESPONSIVE MEDIA QUERIES
   ============================================================================ */
@media (max-width: 1024px) {
  .studio-grid,
  .story-grid,
  .immersive-grid,
  .chatbot-showcase-grid,
  .ewom-grid {
    grid-template-columns: 1fr;
  }
  .channels-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .studio-cta-group {
    grid-template-columns: 1fr;
  }
  .btn-buy-line {
    grid-column: span 1;
  }
  .floating-dock {
    width: calc(100% - 24px);
    justify-content: space-around;
    overflow-x: auto;
  }
  .dock-item span.dock-text {
    display: none;
  }
}
