/* ==========================================================================
   YINDEE - Modern Responsive Minimalist Luxury Design System
   Primary Accent: rgb(0, 102, 240) | Cross-Platform Desktop/Tablet/Mobile
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Prompt:wght@200;300;400;500;600&display=swap');

:root {
  --primary-color: rgb(0, 102, 240);
  --primary-hover: rgb(0, 85, 210);
  --primary-subtle: rgba(0, 102, 240, 0.04);
  --primary-border: rgba(0, 102, 240, 0.12);
  --bg-body: #FBFBFD;
  --card-bg: #FFFFFF;
  --text-main: #0A0D14;
  --text-muted: #64748B;
  --text-subtle: #94A3B8;
  --border-color: rgba(0, 0, 0, 0.06);
  --border-hover: rgba(0, 102, 240, 0.25);
  --shadow-subtle: 0 4px 20px -2px rgba(0, 0, 0, 0.02);
  --shadow-card: 0 12px 36px -6px rgba(10, 13, 20, 0.03);
  --shadow-hover: 0 20px 48px -8px rgba(0, 102, 240, 0.09);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 9999px;
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --accent-green: #059669;
}

html, body {
  max-width: 100vw;
  overflow-x: hidden;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Prompt', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 300;
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.1px;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-hover);
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Top Announcement Bar */
.top-announcement-bar {
  background-color: #0A0D14;
  color: #E2E8F0;
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.3px;
  text-align: center;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.top-announcement-bar a {
  color: #60A5FA;
  font-weight: 400;
  margin-left: 6px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Glassmorphism Header Navbar */
header.navbar {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand-logo {
  font-size: 22px;
  font-weight: 500;
  color: var(--text-main);
  letter-spacing: 3px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 6px;
}

.brand-logo .dot-accent {
  width: 6px;
  height: 6px;
  background-color: var(--primary-color);
  border-radius: 50%;
  display: inline-block;
}

.nav-menu {
  display: flex;
  gap: 24px;
  align-items: center;
  list-style: none;
}

.nav-link {
  font-size: 13.5px;
  font-weight: 300;
  color: var(--text-main);
  letter-spacing: 0.2px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-link:hover {
  color: var(--primary-color);
}

/* Minimal Luxury Buttons & Badges */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  font-size: 13px;
  font-weight: 400;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
  letter-spacing: 0.2px;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--primary-color);
  color: #ffffff;
  box-shadow: 0 4px 16px -2px rgba(0, 102, 240, 0.35);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 22px -2px rgba(0, 102, 240, 0.45);
}

.btn-secondary {
  background-color: #0A0D14;
  color: #ffffff;
}

.btn-secondary:hover {
  background-color: #1E293B;
  transform: translateY(-1px);
}

.btn-outline {
  background-color: transparent;
  border-color: var(--border-color);
  color: var(--text-main);
}

.btn-outline:hover {
  background-color: var(--primary-subtle);
  border-color: var(--primary-border);
  color: var(--primary-color);
}

.badge {
  display: inline-block;
  padding: 2px 9px;
  font-size: 11px;
  font-weight: 400;
  border-radius: var(--radius-pill);
}

.badge-aud {
  background-color: var(--primary-subtle);
  color: var(--primary-color);
  border: 1px solid var(--primary-border);
}

/* Minimal Hero Banner */
.hero-wrapper {
  padding: 24px 0 12px 0;
}

.hero-card {
  background: linear-gradient(135deg, #0A0D14 0%, #111C44 100%);
  border-radius: var(--radius-lg);
  color: #ffffff;
  padding: 56px 48px;
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 40px;
  align-items: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 40px -12px rgba(10, 13, 20, 0.12);
}

.hero-title {
  font-size: clamp(24px, 3.2vw, 38px);
  font-weight: 400;
  line-height: 1.35;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.hero-subtitle {
  font-size: 14px;
  color: #94A3B8;
  font-weight: 300;
  margin-bottom: 32px;
  max-width: 480px;
  line-height: 1.7;
}

.hero-image-wrap {
  width: 100%;
  height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image-wrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 16px 28px rgba(0, 0, 0, 0.35));
}

/* Feature Ticker */
.feature-ticker-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 36px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border-color);
  flex-wrap: wrap;
}

.ticker-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 300;
  color: var(--text-main);
}

.ticker-item .symbol {
  color: var(--primary-color);
  font-size: 12px;
}

/* Statement Section */
.statement-section {
  padding: 48px 20px;
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
}

.statement-title {
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 300;
  color: var(--text-main);
  line-height: 1.55;
  letter-spacing: -0.3px;
}

/* Product Cards & Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.product-card {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: var(--border-hover);
}

.product-image-wrap {
  width: 100%;
  height: 200px;
  background-color: #FFFFFF;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  border-bottom: 1px solid var(--border-color);
}

.product-image-wrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:hover .product-image-wrap img {
  transform: scale(1.05);
}

.product-info {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-category {
  font-size: 10.5px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 6px;
  font-weight: 400;
}

.product-title {
  font-size: 13.5px;
  font-weight: 400;
  color: var(--text-main);
  margin-bottom: 12px;
  line-height: 1.45;
}

.product-price-box {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px dashed var(--border-color);
}

.price-thb-text {
  font-size: 18px;
  font-weight: 500;
  color: var(--primary-color);
}

.est-shipping-note {
  font-size: 11.5px;
  color: var(--accent-green);
  margin-top: 2px;
  font-weight: 300;
}

/* Minimal Luxury Weight Promo Cards & Progress Bar */
.weight-promo-card {
  padding: 12px 14px;
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  border: 1px solid var(--border-color);
  background: #ffffff;
  box-shadow: var(--shadow-subtle);
}

.weight-promo-card.info {
  background: var(--primary-subtle);
  border-color: var(--primary-border);
}

.weight-promo-card.success {
  background: #F0FDF4;
  border-color: #BBF7D0;
}

.weight-progress-bar {
  width: 100%;
  height: 6px;
  background-color: rgba(0, 0, 0, 0.06);
  border-radius: var(--radius-pill);
  margin-top: 8px;
  overflow: hidden;
}

.weight-progress-fill {
  height: 100%;
  background-color: var(--primary-color);
  border-radius: var(--radius-pill);
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Stepper Timeline */
.stepper-wrapper {
  margin: 28px 0;
  padding: 32px;
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-color);
}

.stepper-steps {
  display: flex;
  justify-content: space-between;
  position: relative;
}

.stepper-steps::before {
  content: '';
  position: absolute;
  top: 19px;
  left: 10%;
  right: 10%;
  height: 1px;
  background-color: var(--border-color);
  z-index: 1;
}

.step-item {
  position: relative;
  z-index: 2;
  text-align: center;
  flex: 1;
}

.step-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 400;
  margin: 0 auto 10px auto;
  transition: var(--transition);
  font-size: 12.5px;
}

.step-item.completed .step-circle {
  background-color: var(--accent-green);
  border-color: var(--accent-green);
  color: #ffffff;
}

.step-item.active .step-circle {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: #ffffff;
  box-shadow: 0 0 0 4px rgba(0, 102, 240, 0.12);
}

.step-title {
  font-size: 12.5px;
  font-weight: 300;
  color: var(--text-main);
}

/* Toast Notifications */
#toast-container {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  padding: 13px 20px;
  border-radius: var(--radius-md);
  color: #ffffff;
  font-size: 13px;
  font-weight: 300;
  box-shadow: var(--shadow-hover);
  animation: slideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.toast-success { background-color: var(--accent-green); }
.toast-error { background-color: #EF4444; }
.toast-info { background-color: #0A0D14; }

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ==========================================================================
   Live Chat Floating Widget (Minimalist Luxury UI Redesign)
   ========================================================================== */

.chat-widget-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary-color);
  color: #ffffff;
  border: none;
  box-shadow: 0 8px 24px -2px rgba(0, 102, 240, 0.4);
  cursor: pointer;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.chat-widget-btn:hover {
  transform: scale(1.06);
  box-shadow: 0 12px 28px -2px rgba(0, 102, 240, 0.5);
}

.chat-window {
  display: none;
  position: fixed;
  bottom: 96px;
  right: 28px;
  width: 380px;
  height: 540px;
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 20px 48px -8px rgba(10, 13, 20, 0.18);
  z-index: 9998;
  flex-direction: column;
  overflow: hidden;
  animation: slideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.chat-window.active { display: flex; }

@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.chat-header {
  background: linear-gradient(135deg, #0A0D14 0%, #111C44 100%);
  color: #ffffff;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-header-title { font-size: 14.5px; font-weight: 500; letter-spacing: 0.3px; color: #fff; }
.chat-header-status { font-size: 11.5px; color: #94A3B8; font-weight: 300; margin-top: 2px; }

.chat-body {
  flex: 1;
  padding: 18px;
  overflow-y: auto;
  background: #FBFBFD;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Guest Lead Capture Form Card */
.chat-lead-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 22px 18px;
  box-shadow: var(--shadow-card);
  margin: auto 0;
}

.chat-lead-card label {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-main);
  display: block;
  margin-bottom: 5px;
}

.chat-lead-card input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 13px;
  outline: none;
  font-family: inherit;
  margin-bottom: 14px;
}

.chat-lead-card input:focus {
  border-color: var(--primary-color);
}

.chat-bubble {
  max-width: 82%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.55;
  word-break: break-word;
}

.chat-bubble.customer {
  align-self: flex-end;
  background: var(--primary-color);
  color: #ffffff;
  border-bottom-right-radius: 3px;
  box-shadow: 0 4px 12px rgba(0, 102, 240, 0.2);
}

.chat-bubble.agent {
  align-self: flex-start;
  background: #ffffff;
  color: var(--text-main);
  border: 1px solid var(--border-color);
  border-bottom-left-radius: 3px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.chat-bubble.system {
  align-self: center;
  background: #E2E8F0;
  color: #475569;
  font-size: 11px;
  border-radius: 20px;
  padding: 6px 14px;
  text-align: center;
}

.chat-footer {
  padding: 12px 16px;
  background: #ffffff;
  border-top: 1px solid var(--border-color);
  display: flex;
  gap: 8px;
  align-items: center;
}

.chat-icon-action-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: var(--bg-body);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: var(--transition);
  flex-shrink: 0;
}

.chat-icon-action-btn:hover {
  background: var(--primary-subtle);
  color: var(--primary-color);
  border-color: var(--primary-border);
}

.chat-footer input[type="text"] {
  flex: 1;
  padding: 9px 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  font-size: 13px;
  outline: none;
  font-family: inherit;
}

.chat-footer input[type="text"]:focus {
  border-color: var(--primary-color);
}

.chat-send-btn {
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 500;
  flex-shrink: 0;
}

.btn-rec-active {
  background-color: #EF4444 !important;
  color: #ffffff !important;
  animation: pulse 1s infinite alternate;
}

@keyframes pulse {
  from { transform: scale(1); }
  to { transform: scale(1.08); }
}

/* ==========================================================================
   Responsive Adaptations (PC / iPad / Mobile)
   ========================================================================== */

/* Tablet & iPad (768px - 1023px) */
@media (max-width: 1023px) {
  .container { padding: 0 20px; }
  .nav-menu { gap: 16px; }
  .hero-card {
    grid-template-columns: 1fr;
    padding: 40px 32px;
    text-align: center;
  }
  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-image-wrap { height: 220px; }
  .feature-ticker-bar { gap: 20px; }
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
}

/* Mobile Devices (<768px) */
@media (max-width: 767px) {
  .top-announcement-bar { font-size: 11px; padding: 8px 12px; }
  .nav-container { 
    height: auto; 
    padding: 12px 0; 
    flex-direction: column; 
    gap: 12px; 
  }
  .brand-logo { font-size: 19px; letter-spacing: 2px; }
  .nav-menu { flex-wrap: wrap; justify-content: center; gap: 12px; }
  .nav-link { font-size: 12.5px; }
  .btn { padding: 8px 16px; font-size: 12.5px; }
  
  .hero-wrapper { padding: 12px 0 6px 0; }
  .hero-card { padding: 28px 20px; border-radius: var(--radius-md); }
  .hero-title { font-size: 22px; }
  .hero-subtitle { font-size: 13px; margin-bottom: 20px; }
  .hero-image-wrap { height: 180px; }
  .statement-section { padding: 32px 16px; }
  
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 16px; }
  .product-image-wrap { height: 150px; padding: 10px; }
  .product-info { padding: 12px; }
  .product-title { font-size: 12.5px; margin-bottom: 8px; }
  .price-thb-text { font-size: 16px; }
  
  .stepper-steps {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
  .stepper-steps::before {
    top: 10%;
    bottom: 10%;
    left: 18px;
    width: 1px;
    height: auto;
  }
  .step-item {
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
  }
  .step-circle { margin: 0; width: 34px; height: 38px; font-size: 11.5px; }
  
  #toast-container { bottom: 85px; right: 16px; left: 16px; }
  .chat-widget-btn { bottom: 85px; right: 16px; width: 50px; height: 50px; font-size: 22px; }
  .chat-window { bottom: 146px; right: 16px; left: 16px; width: auto; height: 480px; }
}

/* Global Generic Helper */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* ==========================================================================
   Hero Banner Slider Engine
   ========================================================================== */
.hero-slider-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 40px -12px rgba(10, 13, 20, 0.12);
}

.hero-slider-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  width: 100%;
}

.hero-slide-item {
  min-width: 100%;
  box-sizing: border-box;
}

/* Slider Controls */
.slider-arrow-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  font-size: 18px;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.slider-arrow-btn:hover {
  background: rgba(255, 255, 255, 0.9);
  color: #0A0D14;
}

.slider-arrow-btn.prev { left: 16px; }
.slider-arrow-btn.next { right: 16px; }

.slider-dots-box {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: var(--transition);
}

.slider-dot.active {
  width: 28px;
  border-radius: var(--radius-pill);
  background: var(--primary-color);
}