/* ============================================
   潮玩GO - AI Smart Shopping Assistant
   Fresh, Vibrant, Youthful Light Theme

   Color Palette:
   - Background: #FFFFFF (white), #F7F8FA (warm gray)
   - Primary: #FF6B4A (vibrant coral)
   - Secondary: #4A7CFF (electric blue)
   - Tertiary: #2DD4A8 (mint green)
   - Text: #1A1A2E (charcoal), #555555 (medium)
   - Light BG: #F0F4FF (light blue), #FFF5F3 (light coral)
   ============================================ */

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

:root {
  --white: #FFFFFF;
  --bg-light: #F7F8FA;
  --coral: #FF6B4A;
  --coral-dark: #E85A3A;
  --blue: #4A7CFF;
  --blue-dark: #3A65D4;
  --mint: #2DD4A8;
  --text-dark: #1A1A2E;
  --text-medium: #555555;
  --text-light: #888888;
  --light-blue-bg: #F0F4FF;
  --light-coral-bg: #FFF5F3;
  --border-light: #E8ECF0;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.1);
  --shadow-coral: 0 4px 20px rgba(255, 107, 74, 0.25);
  --shadow-blue: 0 4px 20px rgba(74, 124, 255, 0.25);
  --gradient-coral: linear-gradient(135deg, #FF6B4A, #FF8F42);
  --gradient-blue: linear-gradient(135deg, #4A7CFF, #7B5CFF);
  --gradient-mint: linear-gradient(135deg, #2DD4A8, #4A7CFF);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 999px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Noto Sans SC", sans-serif;
  background-color: var(--white);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

::selection {
  background: rgba(255, 107, 74, 0.2);
  color: var(--text-dark);
}

/* ---- Typography ---- */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.3;
}

.text-gradient-coral {
  background: var(--gradient-coral);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-blue {
  background: var(--gradient-blue);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---- Container ---- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Buttons ---- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: var(--gradient-coral);
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  font-family: inherit;
  box-shadow: var(--shadow-coral);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(255, 107, 74, 0.35);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: var(--white);
  color: var(--text-dark);
  font-size: 0.95rem;
  font-weight: 600;
  border: 2px solid var(--border-light);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  font-family: inherit;
}

.btn-secondary:hover {
  border-color: var(--coral);
  color: var(--coral);
}

/* ---- Promo Bar ---- */
.promo-bar {
  background: var(--gradient-coral);
  color: var(--white);
  text-align: center;
  padding: 10px 16px;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.promo-inner {
  max-width: 1200px;
  margin: 0 auto;
}

/* ---- Header ---- */
.header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0 24px;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-icon {
  font-size: 1.5rem;
}

.logo-text {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-dark);
}

.logo-highlight {
  color: var(--coral);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 8px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-medium);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  transition: all 0.3s ease;
}

.nav-links a:hover {
  color: var(--coral);
  background: var(--light-coral-bg);
}

.header-search {
  flex: 1;
  max-width: 360px;
  position: relative;
}

.search-input {
  width: 100%;
  padding: 10px 44px 10px 16px;
  border: 2px solid var(--border-light);
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-family: inherit;
  background: var(--bg-light);
  transition: all 0.3s ease;
  outline: none;
}

.search-input:focus {
  border-color: var(--blue);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(74, 124, 255, 0.1);
}

.search-btn {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 8px;
}

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

.nav-icon-btn {
  background: none;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-md);
  transition: background 0.3s ease;
  position: relative;
}

.nav-icon-btn:hover {
  background: var(--bg-light);
}

.cart-badge {
  position: absolute;
  top: 2px;
  right: 0;
  background: var(--coral);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 8px;
}

/* ---- Hero ---- */
.hero {
  background: linear-gradient(180deg, var(--light-blue-bg) 0%, var(--white) 100%);
  padding: 80px 24px 60px;
  text-align: center;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--blue);
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--mint);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}

.hero h1 {
  margin-bottom: 32px;
}

.hero-line1 {
  display: block;
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text-medium);
  margin-bottom: 8px;
}

.hero-line2 {
  display: block;
  font-size: 3.5rem;
  font-weight: 900;
  letter-spacing: -1px;
  margin-bottom: 12px;
}

.hero-line3 {
  display: block;
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--text-medium);
}

/* Hero Search Bar */
.hero-search-bar {
  display: flex;
  align-items: center;
  max-width: 600px;
  margin: 0 auto 24px;
  background: var(--white);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-full);
  padding: 6px 6px 6px 20px;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
}

.hero-search-bar:focus-within {
  border-color: var(--coral);
  box-shadow: 0 4px 20px rgba(255, 107, 74, 0.15);
}

.hero-search-icon {
  font-size: 1.2rem;
  margin-right: 12px;
}

.hero-search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1rem;
  font-family: inherit;
  background: transparent;
  color: var(--text-dark);
}

.hero-search-input::placeholder {
  color: var(--text-light);
}

.hero-search-btn {
  padding: 12px 28px;
  background: var(--gradient-coral);
  color: var(--white);
  border: none;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.3s ease;
}

.hero-search-btn:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-coral);
}

/* Hero Tags */
.hero-tags {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.hero-tag {
  padding: 6px 16px;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  color: var(--text-medium);
  cursor: pointer;
  transition: all 0.3s ease;
}

.hero-tag:hover {
  border-color: var(--coral);
  color: var(--coral);
  background: var(--light-coral-bg);
}

/* Hero Stats */
.hero-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
}

.hero-stat {
  text-align: center;
}

.stat-num {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-dark);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-top: 4px;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border-light);
}

/* ---- Sections ---- */
.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--bg-light);
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-light);
}

/* ---- Product Grid ---- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
  border-top: 3px solid var(--coral);
  transition: all 0.3s ease;
}

.product-card:nth-child(even) {
  border-top-color: var(--blue);
}

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

.product-card:hover .product-img::after {
  opacity: 1;
}

.product-img {
  height: 220px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.05);
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Gradient placeholder images */
.gradient-coral-orange {
  background: linear-gradient(135deg, #FF6B4A, #FF8F42, #FFB347);
}
.gradient-blue-purple {
  background: linear-gradient(135deg, #4A7CFF, #7B5CFF, #A855F7);
}
.gradient-green-blue {
  background: linear-gradient(135deg, #2DD4A8, #4A7CFF);
}
.gradient-purple-pink {
  background: linear-gradient(135deg, #7B5CFF, #EC4899);
}
.gradient-orange-yellow {
  background: linear-gradient(135deg, #FF8F42, #FBBF24);
}
.gradient-blue-green {
  background: linear-gradient(135deg, #4A7CFF, #2DD4A8);
}

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--white);
  z-index: 2;
}

.badge-hot { background: var(--gradient-coral); }
.badge-new { background: var(--gradient-blue); }
.badge-limited { background: linear-gradient(135deg, #7B5CFF, #EC4899); }
.badge-star { background: linear-gradient(135deg, #FF8F42, #FBBF24); color: var(--text-dark); }

.wishlist-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 2;
}

.wishlist-btn:hover {
  background: var(--coral);
  color: var(--white);
  transform: scale(1.1);
}

.product-info {
  padding: 16px;
}

.product-brand {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.product-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
  line-height: 1.4;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.stars {
  color: #FBBF24;
  font-size: 0.85rem;
}

.sales {
  font-size: 0.8rem;
  color: var(--text-light);
}

.ai-reason {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--light-blue-bg);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  font-size: 0.8rem;
  color: var(--text-medium);
}

.ai-badge {
  padding: 2px 8px;
  background: var(--gradient-blue);
  color: var(--white);
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 600;
  white-space: nowrap;
}

.product-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.product-price {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--coral);
}

.btn-add-cart {
  padding: 8px 20px;
  background: var(--gradient-coral);
  color: var(--white);
  border: none;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.3s ease;
}

.btn-add-cart:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-coral);
}

/* ---- Scene Grid ---- */
.scene-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.scene-card {
  border-radius: var(--radius-lg);
  padding: 40px 24px;
  text-align: center;
  color: var(--white);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.scene-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  padding: 3px;
  background: linear-gradient(135deg, rgba(255,255,255,0.5), rgba(255,255,255,0));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.scene-card:hover::before {
  opacity: 1;
}

.scene-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.scene-gradient-1 { background: linear-gradient(135deg, #FF6B4A, #FF8F42); }
.scene-gradient-2 { background: linear-gradient(135deg, #4A7CFF, #7B5CFF); }
.scene-gradient-3 { background: linear-gradient(135deg, #7B5CFF, #EC4899); }
.scene-gradient-4 { background: linear-gradient(135deg, #2DD4A8, #4A7CFF); }

.scene-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.scene-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.scene-card p {
  font-size: 0.9rem;
  opacity: 0.9;
  margin-bottom: 12px;
}

.scene-count {
  font-size: 0.8rem;
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
}

/* ---- Flash Sale ---- */
.flash-countdown {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}

.countdown-label {
  font-size: 0.9rem;
  color: var(--text-medium);
  margin-right: 4px;
}

.countdown-block {
  background: var(--text-dark);
  color: var(--white);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 1.2rem;
  font-weight: 700;
  min-width: 44px;
  text-align: center;
  animation: flashPulse 2s infinite;
}

.countdown-sep {
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text-dark);
}

@keyframes flashPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

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

.flash-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
  transition: all 0.3s ease;
}

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

.flash-img {
  height: 160px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.flash-discount {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--coral);
  color: var(--white);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.9rem;
}

.flash-info {
  padding: 16px;
}

.flash-info h4 {
  font-size: 0.95rem;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.flash-prices {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.flash-price {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--coral);
}

.flash-original {
  font-size: 0.9rem;
  color: var(--text-light);
  text-decoration: line-through;
}

.flash-progress {
  height: 6px;
  background: var(--light-coral-bg);
  border-radius: 3px;
  margin-bottom: 6px;
  overflow: hidden;
}

.flash-bar {
  height: 100%;
  background: var(--gradient-coral);
  border-radius: 3px;
  transition: width 0.5s ease;
}

.flash-sold {
  font-size: 0.8rem;
  color: var(--coral);
  font-weight: 500;
}

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

.community-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
  transition: all 0.3s ease;
}

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

.community-img {
  height: 200px;
}

.community-info {
  padding: 16px;
}

.community-user {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.community-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
}

.community-name {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-dark);
}

.community-time {
  font-size: 0.75rem;
  color: var(--text-light);
}

.community-info > p {
  font-size: 0.9rem;
  color: var(--text-medium);
  margin-bottom: 12px;
  line-height: 1.5;
}

.community-actions {
  display: flex;
  gap: 16px;
  font-size: 0.8rem;
  color: var(--text-light);
}

/* ---- Trust ---- */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
}

.trust-item {
  text-align: center;
  padding: 32px 16px;
  background: var(--light-blue-bg);
  border-radius: var(--radius-lg);
  transition: all 0.3s ease;
}

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

.trust-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.trust-item h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.trust-item p {
  font-size: 0.8rem;
  color: var(--text-light);
}

/* ---- Brand Values ---- */
.section-values {
  background: linear-gradient(135deg, var(--light-coral-bg) 0%, var(--light-blue-bg) 100%);
  padding: 80px 0;
}

.values-content {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.values-content h2 {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--text-dark);
  margin-bottom: 16px;
}

.values-desc {
  font-size: 1.05rem;
  color: var(--text-medium);
  line-height: 1.8;
  margin-bottom: 40px;
}

.values-list {
  display: flex;
  justify-content: center;
  gap: 40px;
}

.value-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.value-number {
  font-size: 2rem;
  font-weight: 900;
  background: var(--gradient-coral);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.value-text {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
}

/* ---- Footer ---- */
.footer {
  background: var(--text-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-brand .logo-text {
  color: var(--white);
}

.footer-brand p {
  margin-top: 12px;
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.footer-social a {
  font-size: 1.3rem;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.footer-social a:hover {
  transform: scale(1.2);
}

.footer-col h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 16px;
}

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

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

.footer-col a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-bottom a:hover {
  color: var(--coral);
}

/* ---- AI Chat Widget ---- */
.chat-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
}

.chat-toggle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--gradient-coral);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-coral);
  animation: chatBounce 3s infinite;
  transition: transform 0.3s ease;
}

.chat-toggle:hover {
  transform: scale(1.1);
  animation: none;
}

.chat-toggle-icon {
  font-size: 1.6rem;
}

@keyframes chatBounce {
  0%, 100% { transform: translateY(0); }
  15% { transform: translateY(-8px); }
  30% { transform: translateY(0); }
  45% { transform: translateY(-4px); }
  60% { transform: translateY(0); }
}

.chat-panel {
  position: absolute;
  bottom: 72px;
  right: 0;
  width: 380px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: none;
  flex-direction: column;
  border: 1px solid var(--border-light);
}

.chat-panel.open {
  display: flex;
}

.chat-header {
  background: var(--gradient-coral);
  color: var(--white);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.chat-avatar {
  font-size: 1.5rem;
}

.chat-header h4 {
  font-size: 1rem;
  font-weight: 700;
}

.chat-status {
  font-size: 0.75rem;
  opacity: 0.9;
}

.chat-close {
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.3rem;
  cursor: pointer;
  padding: 4px;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.chat-close:hover {
  opacity: 1;
}

.chat-body {
  padding: 20px;
  max-height: 320px;
  overflow-y: auto;
}

.chat-message {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.chat-message.bot {
  align-items: flex-start;
}

.chat-message.user {
  justify-content: flex-end;
}

.chat-msg-avatar {
  font-size: 1.3rem;
  flex-shrink: 0;
}

.chat-bubble {
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 0.9rem;
  line-height: 1.5;
  max-width: 280px;
}

.chat-message.bot .chat-bubble {
  background: var(--bg-light);
  color: var(--text-dark);
  border-bottom-left-radius: 4px;
}

.chat-message.user .chat-bubble {
  background: var(--gradient-coral);
  color: var(--white);
  border-bottom-right-radius: 4px;
}

.chat-quick-commands {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.chat-cmd {
  padding: 8px 14px;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.3s ease;
  color: var(--text-medium);
}

.chat-cmd:hover {
  border-color: var(--coral);
  color: var(--coral);
  background: var(--light-coral-bg);
}

.chat-input-area {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid var(--border-light);
}

.chat-input {
  flex: 1;
  padding: 10px 16px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.3s ease;
}

.chat-input:focus {
  border-color: var(--coral);
}

.chat-send {
  padding: 10px 20px;
  background: var(--gradient-coral);
  color: var(--white);
  border: none;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.3s ease;
}

.chat-send:hover {
  box-shadow: var(--shadow-coral);
}

/* ---- Cookie Banner ---- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--white);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
  padding: 20px 24px;
  border-top: 3px solid var(--coral);
}

.cookie-banner-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cookie-text {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cookie-emoji {
  font-size: 2rem;
  flex-shrink: 0;
}

.cookie-text p {
  font-size: 0.9rem;
  color: var(--text-medium);
  line-height: 1.5;
}

.cookie-text a {
  color: var(--blue);
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.btn-cookie-accept {
  padding: 10px 24px;
  background: var(--gradient-coral);
  color: var(--white);
  border: none;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.3s ease;
}

.btn-cookie-accept:hover {
  box-shadow: var(--shadow-coral);
}

.btn-cookie-reject {
  padding: 10px 24px;
  background: var(--bg-light);
  color: var(--text-medium);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.3s ease;
}

.btn-cookie-reject:hover {
  border-color: var(--text-medium);
}

.btn-cookie-settings {
  padding: 10px 24px;
  background: transparent;
  color: var(--blue);
  border: 1px solid var(--blue);
  border-radius: var(--radius-full);
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.3s ease;
}

.btn-cookie-settings:hover {
  background: var(--light-blue-bg);
}

/* ---- Cookie Preferences Modal ---- */
.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.cookie-modal-overlay.open {
  display: flex;
}

.cookie-modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  max-width: 520px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}

.cookie-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-light);
}

.cookie-modal-header h3 {
  font-size: 1.2rem;
  font-weight: 700;
}

.cookie-modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-light);
  padding: 4px;
  transition: color 0.3s ease;
}

.cookie-modal-close:hover {
  color: var(--text-dark);
}

.cookie-modal-body {
  padding: 24px;
}

.cookie-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-light);
}

.cookie-option:last-child {
  border-bottom: none;
}

.cookie-option-info {
  flex: 1;
  margin-right: 16px;
}

.cookie-option-info h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.cookie-option-info p {
  font-size: 0.8rem;
  color: var(--text-light);
}

/* Toggle Switch */
.toggle {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.toggle input {
  display: none;
}

.toggle-slider {
  width: 44px;
  height: 24px;
  background: var(--border-light);
  border-radius: 12px;
  position: relative;
  transition: background 0.3s ease;
}

.toggle-slider::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  background: var(--white);
  border-radius: 50%;
  top: 2px;
  left: 2px;
  transition: transform 0.3s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.toggle input:checked + .toggle-slider {
  background: var(--coral);
}

.toggle input:checked + .toggle-slider::after {
  transform: translateX(20px);
}

.toggle.disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

.toggle-label {
  font-size: 0.75rem;
  color: var(--text-light);
}

.cookie-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 16px 24px;
  border-top: 1px solid var(--border-light);
}

/* ---- Scroll Reveal Animation ---- */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delay for grid items */
.product-card.scroll-reveal:nth-child(1) { transition-delay: 0.05s; }
.product-card.scroll-reveal:nth-child(2) { transition-delay: 0.1s; }
.product-card.scroll-reveal:nth-child(3) { transition-delay: 0.15s; }
.product-card.scroll-reveal:nth-child(4) { transition-delay: 0.2s; }
.product-card.scroll-reveal:nth-child(5) { transition-delay: 0.25s; }
.product-card.scroll-reveal:nth-child(6) { transition-delay: 0.3s; }

.scene-card.scroll-reveal:nth-child(1) { transition-delay: 0.05s; }
.scene-card.scroll-reveal:nth-child(2) { transition-delay: 0.1s; }
.scene-card.scroll-reveal:nth-child(3) { transition-delay: 0.15s; }
.scene-card.scroll-reveal:nth-child(4) { transition-delay: 0.2s; }

/* ---- Cookie Policy Page ---- */
.policy-page {
  background: var(--white);
}

.policy-page .header {
  position: relative;
}

.policy-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 24px 80px;
}

.policy-content h1 {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.policy-content .subtitle {
  color: var(--text-light);
  margin-bottom: 48px;
  font-size: 0.9rem;
}

.policy-section {
  margin-bottom: 40px;
}

.policy-section h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--coral);
  display: inline-block;
}

.policy-section p {
  color: var(--text-medium);
  margin-bottom: 12px;
  line-height: 1.8;
}

.policy-section ul {
  margin: 12px 0;
  padding-left: 24px;
  color: var(--text-medium);
}

.policy-section li {
  margin-bottom: 8px;
  line-height: 1.7;
}

.cookie-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 0.9rem;
}

.cookie-table th {
  background: var(--light-blue-bg);
  color: var(--text-dark);
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  border-bottom: 2px solid var(--blue);
}

.cookie-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-medium);
  vertical-align: top;
}

.cookie-table tr:hover td {
  background: var(--bg-light);
}

.policy-back {
  margin-top: 48px;
  text-align: center;
}

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

@media (max-width: 768px) {
  .header-inner {
    flex-wrap: wrap;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 16px;
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-md);
    z-index: 99;
  }

  .nav-links.mobile-open {
    display: flex;
  }

  .header-search {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .hero-line2 {
    font-size: 2.5rem;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .scene-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .flash-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .community-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .values-list {
    flex-direction: column;
    gap: 20px;
    align-items: center;
  }

  .cookie-banner-inner {
    flex-direction: column;
    text-align: center;
  }

  .cookie-actions {
    flex-wrap: wrap;
    justify-content: center;
  }

  .chat-panel {
    width: 320px;
    right: -12px;
  }

  .hero-stats {
    gap: 20px;
  }

  .stat-num {
    font-size: 1.4rem;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 48px 16px 40px;
  }

  .hero-line2 {
    font-size: 2rem;
  }

  .hero-search-bar {
    flex-direction: column;
    border-radius: var(--radius-lg);
    padding: 12px;
  }

  .hero-search-btn {
    width: 100%;
  }

  .hero-search-icon {
    display: none;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .scene-grid {
    grid-template-columns: 1fr;
  }

  .community-grid {
    grid-template-columns: 1fr;
  }

  .trust-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .chat-panel {
    width: calc(100vw - 48px);
    right: -12px;
  }

  .section-header h2 {
    font-size: 1.5rem;
  }

  .promo-bar {
    font-size: 0.75rem;
  }

  .hero-tags {
    gap: 8px;
  }

  .hero-tag {
    font-size: 0.75rem;
    padding: 4px 12px;
  }
}
