/* 
  ศิลป์ผ้าป่าละอู (Suebsarnthor) - 360° Landing Page Styles
  Luxury Thai Craft Aesthetic
*/

:root {
  --primary-navy: #14213d;
  --secondary-navy: #1f3158;
  --dark-navy: #0d1527;
  --gold-primary: #d4af37;
  --gold-hover: #b8972a;
  --gold-light: #fef7e6;
  --gold-glow: rgba(212, 175, 55, 0.35);
  --thai-terracotta: #a84b2c;
  --thai-indigo: #2c4a6f;
  --thai-sage: #4a7c59;
  --bg-cream: #faf7f2;
  --bg-card: #ffffff;
  --text-main: #2b2d42;
  --text-muted: #6c757d;
  --text-light: #f8f9fa;
  --border-color: #e9ecef;
  --shadow-sm: 0 4px 12px rgba(20, 33, 61, 0.05);
  --shadow-md: 0 10px 30px rgba(20, 33, 61, 0.1);
  --shadow-lg: 0 20px 50px rgba(20, 33, 61, 0.15);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --font-heading: 'Prompt', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Sarabun', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-cream);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .brand-text {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--primary-navy);
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.25s ease;
}

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

button {
  font-family: var(--font-heading);
  cursor: pointer;
  border: none;
  outline: none;
  transition: all 0.25s ease;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ==================== TOP ANNOUNCEMENT ==================== */
.announcement-bar {
  background: linear-gradient(90deg, #14213d 0%, #2c4a6f 100%);
  color: #fff;
  padding: 8px 16px;
  font-size: 0.88rem;
  text-align: center;
  font-family: var(--font-heading);
  letter-spacing: 0.3px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

.announcement-bar .badge-gold {
  background: var(--gold-primary);
  color: var(--dark-navy);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
}

.sound-toggle-btn {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.sound-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.25);
}
.sound-toggle-btn.playing {
  background: var(--gold-primary);
  color: var(--dark-navy);
  font-weight: 600;
}

/* ==================== HEADER ==================== */
.main-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

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

.logo-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--gold-primary) 0%, #a84b2c 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 15px var(--gold-glow);
}

.logo-icon svg {
  width: 28px;
  height: 28px;
}

.brand-text h1 {
  font-size: 1.35rem;
  line-height: 1.2;
  color: var(--primary-navy);
  font-weight: 700;
  letter-spacing: -0.3px;
}

.brand-text p {
  font-size: 0.78rem;
  color: var(--thai-terracotta);
  font-weight: 500;
  letter-spacing: 0.5px;
}

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

.nav-links a {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--primary-navy);
  position: relative;
  padding: 6px 0;
}

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

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold-primary);
  transition: width 0.25s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold-primary) 0%, #c59b27 100%);
  color: #fff;
  padding: 10px 22px;
  border-radius: 30px;
  font-size: 0.95rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 15px var(--gold-glow);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #e5be48 0%, #d4af37 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
}

.btn-outline {
  border: 1.5px solid var(--primary-navy);
  color: var(--primary-navy);
  padding: 9px 20px;
  border-radius: 30px;
  font-size: 0.95rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
}
.btn-outline:hover {
  background: var(--primary-navy);
  color: #fff;
  transform: translateY(-2px);
}

/* ==================== HERO SECTION ==================== */
.hero-section {
  position: relative;
  padding: 80px 0 60px;
  background: radial-gradient(circle at 10% 20%, rgba(212, 175, 55, 0.08) 0%, transparent 40%),
              radial-gradient(circle at 90% 80%, rgba(44, 74, 111, 0.08) 0%, transparent 45%);
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--gold-primary);
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 0.88rem;
  color: var(--primary-navy);
  font-weight: 600;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

.hero-badge .pulse-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #27ae60;
  box-shadow: 0 0 0 0 rgba(39, 174, 96, 0.7);
  animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(39, 174, 96, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(39, 174, 96, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(39, 174, 96, 0); }
}

.hero-title {
  font-size: 3.2rem;
  line-height: 1.18;
  margin-bottom: 22px;
  color: var(--primary-navy);
  font-weight: 700;
}

.hero-title span.gold-gradient {
  background: linear-gradient(135deg, #b8860b 0%, #d4af37 50%, #a84b2c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: #4a5568;
  line-height: 1.7;
  margin-bottom: 30px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 35px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding-top: 25px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.stat-item h3 {
  font-size: 1.8rem;
  color: var(--primary-navy);
  font-weight: 700;
}
.stat-item h3 span {
  color: var(--gold-primary);
}
.stat-item p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Hero Visual Banner */
.hero-visual {
  position: relative;
}

.hero-card-preview {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 4px solid #fff;
  background: #fff;
}

.hero-card-preview img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.floating-360-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(20, 33, 61, 0.9);
  color: var(--gold-primary);
  padding: 8px 16px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 8px;
  backdrop-filter: blur(5px);
  border: 1px solid var(--gold-primary);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  animation: float-badge 3s ease-in-out infinite;
}

@keyframes float-badge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.hero-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
  background: linear-gradient(to top, rgba(13, 21, 39, 0.95) 0%, rgba(13, 21, 39, 0.4) 70%, transparent 100%);
  color: #fff;
}

.hero-card-overlay h4 {
  color: #fff;
  font-size: 1.25rem;
  margin-bottom: 4px;
}
.hero-card-overlay p {
  font-size: 0.88rem;
  color: #d1d5db;
}

/* ==================== 360 INTERACTIVE STUDIO ==================== */
.studio-section {
  padding: 80px 0;
  background: #fff;
  position: relative;
}

.section-head {
  text-align: center;
  max-width: 750px;
  margin: 0 auto 50px;
}

.section-subtitle-tag {
  display: inline-block;
  color: var(--thai-terracotta);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.section-title {
  font-size: 2.4rem;
  line-height: 1.25;
  margin-bottom: 15px;
  color: var(--primary-navy);
}

.section-desc {
  font-size: 1.05rem;
  color: #64748b;
}

/* Studio Workspace Grid */
.studio-workspace {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 35px;
  background: var(--bg-cream);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(212, 175, 55, 0.2);
  margin-bottom: 40px;
}

/* 360 Viewer Canvas */
.viewer-card {
  display: flex;
  flex-direction: column;
}

.viewer-viewport-wrap {
  position: relative;
  background: #ffffff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: inset 0 2px 10px rgba(0,0,0,0.03);
  border: 1px solid var(--border-color);
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}

#viewer-container {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 480px;
  cursor: grab;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#viewer-container.is-dragging {
  cursor: grabbing;
}

#viewer-video {
  width: 100%;
  max-height: 480px;
  object-fit: contain;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  transform-origin: center center;
}

/* Drag Guide Overlay */
.viewer-guide-overlay {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(20, 33, 61, 0.75);
  color: #fff;
  padding: 6px 18px;
  border-radius: 30px;
  font-size: 0.82rem;
  font-family: var(--font-heading);
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 8px;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: opacity 0.3s ease;
}

.is-dragging .viewer-guide-overlay {
  opacity: 0;
}

/* Degree Indicator Badge */
.angle-indicator-badge {
  position: absolute;
  top: 18px;
  left: 18px;
  background: rgba(20, 33, 61, 0.9);
  color: var(--gold-primary);
  border: 1px solid var(--gold-primary);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.88rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  backdrop-filter: blur(5px);
  z-index: 10;
}

/* Quick Angle Presets */
.angle-presets {
  position: absolute;
  top: 18px;
  right: 18px;
  display: flex;
  gap: 6px;
  z-index: 10;
}

.angle-btn {
  background: rgba(255, 255, 255, 0.9);
  color: var(--primary-navy);
  border: 1px solid var(--border-color);
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.angle-btn:hover {
  background: var(--primary-navy);
  color: #fff;
}

/* Hotspots */
#hotspots-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 15;
}

.hotspot-pin {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 32px;
  height: 32px;
  cursor: pointer;
  pointer-events: auto;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.pin-pulse {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--gold-primary);
  opacity: 0.6;
  animation: hotspot-pulse 1.8s infinite;
}

@keyframes hotspot-pulse {
  0% { transform: scale(0.6); opacity: 0.8; }
  100% { transform: scale(1.6); opacity: 0; }
}

.pin-dot {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 24px;
  height: 24px;
  background: var(--gold-primary);
  border: 2px solid #fff;
  border-radius: 50%;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: bold;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.pin-tooltip {
  display: none;
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(20, 33, 61, 0.95);
  color: #fff;
  padding: 12px 16px;
  border-radius: 10px;
  width: 220px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
  border: 1px solid var(--gold-primary);
  backdrop-filter: blur(8px);
  z-index: 30;
  pointer-events: auto;
}

.pin-tooltip h5 {
  color: var(--gold-primary);
  font-size: 0.92rem;
  margin-bottom: 4px;
}
.pin-tooltip p {
  font-size: 0.8rem;
  color: #e2e8f0;
  line-height: 1.4;
}

.hotspot-pin.active .pin-tooltip {
  display: block;
}

/* 360 Controls Toolbar */
.viewer-controls-bar {
  margin-top: 15px;
  display: flex;
  align-items: center;
  gap: 16px;
  background: #fff;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.btn-control {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--bg-cream);
  color: var(--primary-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color);
  transition: all 0.2s ease;
}
.btn-control:hover {
  background: var(--gold-primary);
  color: #fff;
  border-color: var(--gold-primary);
}

.btn-control.playing {
  background: var(--primary-navy);
  color: var(--gold-primary);
}

.slider-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
}

.slider-wrap input[type=range] {
  width: 100%;
  height: 6px;
  border-radius: 5px;
  background: #e2e8f0;
  outline: none;
  accent-color: var(--gold-primary);
  cursor: pointer;
}

.zoom-controls {
  display: flex;
  gap: 6px;
}

.btn-tool {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--bg-cream);
  color: var(--primary-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color);
  font-size: 0.9rem;
}
.btn-tool:hover {
  background: var(--primary-navy);
  color: #fff;
}

/* Product Detail Panel (Right Side) */
.product-detail-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.panel-header {
  margin-bottom: 15px;
}

.otop-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fef3c7;
  color: #92400e;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 10px;
}

#product-title {
  font-size: 1.9rem;
  line-height: 1.25;
  color: var(--primary-navy);
  margin-bottom: 6px;
}

#product-subtitle {
  font-size: 0.98rem;
  color: var(--thai-terracotta);
  font-weight: 500;
}

.price-container {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 18px 0;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

#product-price {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--primary-navy);
  font-family: var(--font-heading);
}

#product-regular-price {
  font-size: 1.2rem;
  color: #94a3b8;
  text-decoration: line-through;
}

.save-badge {
  background: #fee2e2;
  color: #b91c1c;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.78rem;
  font-weight: 700;
}

#product-desc {
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.65;
  margin-bottom: 20px;
}

.highlights-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

#product-highlights {
  list-style: none;
  margin-bottom: 25px;
}

#product-highlights li {
  font-size: 0.9rem;
  color: #334155;
  margin-bottom: 8px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.check-icon {
  color: var(--thai-sage);
  font-weight: bold;
}

.panel-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn-buy-primary {
  width: 100%;
  background: linear-gradient(135deg, #27ae60 0%, #219653 100%);
  color: #fff;
  padding: 14px 24px;
  border-radius: 12px;
  font-size: 1.05rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
}
.btn-buy-primary:hover {
  background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(39, 174, 96, 0.4);
}

.btn-external-official {
  width: 100%;
  background: #fff;
  color: var(--primary-navy);
  border: 1.5px solid var(--border-color);
  padding: 12px 24px;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.btn-external-official:hover {
  border-color: var(--primary-navy);
  background: var(--bg-cream);
}

/* 360 Product Selector Carousel (Bottom) */
.carousel-wrapper {
  margin-top: 30px;
}

.carousel-title-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.carousel-title-bar h3 {
  font-size: 1.25rem;
  color: var(--primary-navy);
}

.carousel-title-bar span {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.product-carousel {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 10px 4px 20px;
  scrollbar-width: thin;
  scrollbar-color: var(--gold-primary) #e2e8f0;
}

.product-carousel::-webkit-scrollbar {
  height: 6px;
}
.product-carousel::-webkit-scrollbar-thumb {
  background: var(--gold-primary);
  border-radius: 10px;
}

.carousel-item {
  flex: 0 0 170px;
  scroll-snap-align: start;
  background: #fff;
  border-radius: var(--radius-md);
  padding: 10px;
  border: 2px solid transparent;
  box-shadow: var(--shadow-sm);
  text-align: left;
  transition: all 0.25s ease;
}

.carousel-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.carousel-item.active {
  border-color: var(--gold-primary);
  background: var(--gold-light);
  box-shadow: 0 8px 20px var(--gold-glow);
}

.thumb-wrap {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  height: 120px;
  background: #f1f5f9;
  margin-bottom: 8px;
}

.thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumb-wrap .badge-360 {
  position: absolute;
  top: 6px;
  right: 6px;
  background: rgba(20, 33, 61, 0.9);
  color: var(--gold-primary);
  padding: 2px 6px;
  border-radius: 12px;
  font-size: 0.68rem;
  font-weight: 700;
}

.thumb-info .thumb-title {
  font-size: 0.85rem;
  line-height: 1.3;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.thumb-info .thumb-price {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--thai-terracotta);
}

/* ==================== 4 PILLARS SECTION ==================== */
.pillars-section {
  padding: 80px 0;
  background: var(--bg-cream);
  border-top: 1px solid rgba(212, 175, 55, 0.15);
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
}

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

.pillar-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 30px 22px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease;
  position: relative;
  overflow: hidden;
}
.pillar-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold-primary);
}

.pillar-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--gold-light);
  color: var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.pillar-icon svg {
  width: 30px;
  height: 30px;
}

.pillar-card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--primary-navy);
}

.pillar-card p {
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.6;
}

/* ==================== HERITAGE PROCESS ==================== */
.heritage-section {
  padding: 90px 0;
  background: #fff;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  position: relative;
  margin-top: 40px;
}

.step-card {
  background: var(--bg-cream);
  border-radius: var(--radius-md);
  padding: 30px 20px;
  position: relative;
  border: 1px solid rgba(0,0,0,0.05);
}

.step-number {
  position: absolute;
  top: -15px;
  left: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary-navy);
  color: var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.step-card h4 {
  font-size: 1.15rem;
  margin-top: 10px;
  margin-bottom: 10px;
  color: var(--primary-navy);
}

.step-card p {
  font-size: 0.88rem;
  color: #64748b;
  line-height: 1.6;
}

/* ==================== FULL CATALOG SECTION ==================== */
.catalog-section {
  padding: 90px 0;
  background: var(--bg-cream);
}

.filter-bar {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 45px;
  flex-wrap: wrap;
}

.filter-btn {
  background: #fff;
  color: var(--primary-navy);
  border: 1px solid var(--border-color);
  padding: 10px 22px;
  border-radius: 30px;
  font-size: 0.92rem;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary-navy);
  color: var(--gold-primary);
  border-color: var(--primary-navy);
  transform: translateY(-2px);
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}

.catalog-card {
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

.catalog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold-primary);
}

.card-img-wrap {
  position: relative;
  height: 220px;
  background: #f8fafc;
  overflow: hidden;
}

.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.catalog-card:hover .card-img-wrap img {
  transform: scale(1.06);
}

.card-360-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(20, 33, 61, 0.9);
  color: var(--gold-primary);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  backdrop-filter: blur(4px);
}

.card-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  color: #fff;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
}

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

.card-category {
  font-size: 0.75rem;
  color: var(--thai-terracotta);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.card-title {
  font-size: 1.05rem;
  line-height: 1.35;
  margin-bottom: 8px;
  color: var(--primary-navy);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-desc {
  font-size: 0.85rem;
  color: #64748b;
  line-height: 1.5;
  margin-bottom: 18px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid rgba(0,0,0,0.06);
}

.price-box {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.price-box .current-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-navy);
}

.price-box .reg-price {
  font-size: 0.82rem;
  color: #94a3b8;
  text-decoration: line-through;
}

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

.btn-card-360 {
  background: var(--bg-cream);
  color: var(--primary-navy);
  border: 1px solid var(--border-color);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 700;
}
.btn-card-360:hover {
  background: var(--gold-primary);
  color: #fff;
  border-color: var(--gold-primary);
}

.btn-card-buy {
  background: var(--primary-navy);
  color: #fff;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
}
.btn-card-buy:hover {
  background: #27ae60;
}

/* ==================== COMMUNITY STORY BANNER ==================== */
.story-banner-section {
  padding: 90px 0;
  background: linear-gradient(135deg, var(--dark-navy) 0%, var(--primary-navy) 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}

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

.story-content h2 {
  color: #fff;
  font-size: 2.6rem;
  line-height: 1.25;
  margin-bottom: 20px;
}
.story-content h2 span {
  color: var(--gold-primary);
}

.story-content p {
  color: #cbd5e1;
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 20px;
}

.story-quote {
  border-left: 3px solid var(--gold-primary);
  padding-left: 18px;
  font-style: italic;
  color: #f1f5f9;
  margin: 25px 0;
  font-size: 1rem;
}

.story-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.story-img-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 220px;
  border: 2px solid rgba(212, 175, 55, 0.3);
}

.story-img-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.story-img-item:hover img {
  transform: scale(1.05);
}

/* ==================== FOOTER ==================== */
.site-footer {
  background: var(--dark-navy);
  color: #94a3b8;
  padding: 80px 0 30px;
  border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-col h4 {
  color: #fff;
  font-size: 1.15rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 35px;
  height: 2px;
  background: var(--gold-primary);
}

.footer-about p {
  font-size: 0.92rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
}
.footer-links li {
  margin-bottom: 12px;
}
.footer-links a {
  font-size: 0.92rem;
  color: #cbd5e1;
}
.footer-links a:hover {
  color: var(--gold-primary);
  padding-left: 5px;
}

.contact-info li {
  display: flex;
  gap: 12px;
  font-size: 0.9rem;
  color: #cbd5e1;
  margin-bottom: 14px;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
  color: #64748b;
}

/* ==================== MODALS ==================== */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(13, 21, 39, 0.8);
  backdrop-filter: blur(6px);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.modal-overlay.is-active {
  display: flex;
}

.modal-card {
  background: #fff;
  border-radius: var(--radius-lg);
  max-width: 480px;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: 0 25px 60px rgba(0,0,0,0.4);
  position: relative;
  animation: modal-enter 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modal-enter {
  0% { transform: scale(0.92) translateY(20px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}

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

.modal-header h3 {
  color: #fff;
  font-size: 1.25rem;
}

.modal-close {
  background: transparent;
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
}
.modal-close:hover {
  color: var(--gold-primary);
}

.modal-body {
  padding: 24px;
}

.inquiry-prod-preview {
  display: flex;
  gap: 16px;
  align-items: center;
  background: var(--bg-cream);
  padding: 14px;
  border-radius: var(--radius-md);
  margin-bottom: 22px;
}

.inquiry-prod-preview img {
  width: 75px;
  height: 75px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.line-qr-box {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
  margin-bottom: 18px;
}

.line-qr-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 12px;
}

.line-qr-wrapper {
  background: #ffffff;
  padding: 10px;
  display: inline-block;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(6, 199, 85, 0.15);
  border: 2px solid #06c755;
  transition: transform 0.2s ease;
}

.line-qr-wrapper:hover {
  transform: scale(1.03);
}

.line-qr-img {
  width: 170px;
  height: 170px;
  display: block;
  object-fit: contain;
  border-radius: 6px;
}

.line-qr-hint {
  font-size: 0.82rem;
  color: #64748b;
  margin-top: 10px;
  line-height: 1.4;
}

.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn-line-chat {
  background: #06c755;
  color: #fff;
  padding: 14px;
  border-radius: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 1rem;
}
.btn-line-chat:hover {
  background: #05b34c;
}

.btn-website-direct {
  background: #fff;
  color: var(--primary-navy);
  border: 1.5px solid var(--border-color);
  padding: 12px;
  border-radius: 10px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 0.95rem;
}
.btn-website-direct:hover {
  background: #f8fafc;
  border-color: var(--primary-navy);
}

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-badge {
    margin: 0 auto 20px;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-stats {
    justify-content: center;
  }
  .studio-workspace {
    grid-template-columns: 1fr;
  }
  .pillars-grid, .process-steps {
    grid-template-columns: repeat(2, 1fr);
  }
  .catalog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .story-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .hero-title {
    font-size: 2.2rem;
  }
  .catalog-grid {
    grid-template-columns: 1fr;
  }
  .pillars-grid, .process-steps {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .viewer-viewport-wrap, #viewer-container {
    min-height: 360px;
  }
  #viewer-video {
    max-height: 360px;
  }
}
