/* ============================================================
   SHOP PUBLIC CSS - PREMIUM 2 THEMES (LIGHT + DARK)
   Phong cách Shopee/Lazada/Tiki
   ============================================================ */

/* ============ RESET & BASE ============ */

/* ============================================================
   MARQUEE BAR - Dòng quảng cáo chạy ngang
   ============================================================ */
/* ============================================================
   MAIN MENU BAR (Như Meme3D)
   ============================================================ */
.main-menu-bar {
  position: sticky;
  top: 0;
  z-index: 998;
  background: white;
  border-bottom: 1px solid #e8e8e8;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  margin-bottom: 20px;
}

[data-theme="dark"] .main-menu-bar {
  background: #1a1a24;
  border-bottom-color: #2d2d3d;
}

.main-menu-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 0 16px;
}

.main-menu-container::-webkit-scrollbar { display: none; }

.main-menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 20px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-secondary);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: var(--transition);
  cursor: pointer;
}

.main-menu-item:hover {
  color: var(--primary);
  background: var(--bg-hover);
}

.main-menu-item.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  background: rgba(238, 77, 45, 0.05);
}

[data-theme="dark"] .main-menu-item.active {
  background: rgba(238, 77, 45, 0.1);
}

.main-menu-item i {
  font-size: 14px;
}

/* Mobile */
@media (max-width: 768px) {
  .main-menu-item {
    padding: 14px 14px;
    font-size: 13px;
  }
  .main-menu-item i {
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .main-menu-item {
    padding: 12px 12px;
    font-size: 12px;
  }
  .main-menu-item span {
    display: none;
  }
}

.marquee-bar {
  position: relative;
  width: 100%;
  height: 40px;
  background: linear-gradient(90deg, #ee4d2d, #ff6b35, #ee4d2d);
  background-size: 200% 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  z-index: 999;
  animation: marqueeGradient 3s linear infinite;
  box-shadow: 0 2px 8px rgba(238, 77, 45, 0.3);
}

@keyframes marqueeGradient {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

.marquee-content {
  display: flex;
  gap: 60px;
  white-space: nowrap;
  animation: marqueeScroll 30s linear infinite;
  padding-left: 100%;
}

.marquee-content:hover {
  animation-play-state: paused;
}

@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: white;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.marquee-item i {
  font-size: 16px;
  animation: marqueeIconPulse 1.5s ease-in-out infinite;
}

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

.marquee-item.hot {
  color: #fff;
  background: rgba(0, 0, 0, 0.2);
  padding: 4px 12px;
  border-radius: 100px;
}

/* Mobile responsive */
@media (max-width: 640px) {
  .marquee-bar { height: 36px; }
  .marquee-item { font-size: 12px; }
  .marquee-content { gap: 40px; }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

/* ============ DARK THEME (DEFAULT) ============ */
:root,
[data-theme="dark"] {
  --primary: #8b5cf6;
  --primary-dark: #7c3aed;
  --primary-light: #a78bfa;
  --primary-glow: rgba(139, 92, 246, 0.4);
  
  --accent: #06b6d4;
  --accent-glow: rgba(6, 182, 212, 0.4);
  
  --buy: #ff6b35;
  --buy-dark: #ea580c;
  --buy-glow: rgba(255, 107, 53, 0.4);
  
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  
  --bg: #0a0a0f;
  --bg-elevated: #12121a;
  --bg-card: #1a1a24;
  --bg-hover: #232330;
  
  --text: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #64748b;
  
  --border: #2d2d3d;
  --border-light: #3d3d4d;
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 30px var(--primary-glow);
  
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============ LIGHT THEME (SHOPEE STYLE) ============ */
[data-theme="light"] {
  --primary: #ee4d2d;
  --primary-dark: #d73211;
  --primary-light: #ff6b35;
  --primary-glow: rgba(238, 77, 45, 0.3);
  
  --accent: #ff6b35;
  --accent-glow: rgba(255, 107, 53, 0.3);
  
  --buy: #ee4d2d;
  --buy-dark: #d73211;
  --buy-glow: rgba(238, 77, 45, 0.3);
  
  --success: #26aa99;
  --warning: #ffc107;
  --danger: #ff424e;
  
  --bg: #f5f5f5;
  --bg-elevated: #ffffff;
  --bg-card: #ffffff;
  --bg-hover: #f8f8f8;
  
  --text: #1a1a1a;
  --text-secondary: #555555;
  --text-muted: #999999;
  
  --border: #e8e8e8;
  --border-light: #f0f0f0;
  
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
  --shadow-glow: 0 0 20px var(--primary-glow);
}

/* ============ GLOBAL ============ */
html, body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

body {
  padding-bottom: 100px;
  position: relative;
  min-height: 100vh;
}

/* ============ DARK THEME BACKGROUND EFFECTS ============ */
[data-theme="dark"] body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: 
    radial-gradient(circle at 20% 20%, rgba(139, 92, 246, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(6, 182, 212, 0.06) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* 3D Grid Pattern */
.bg-layer-1,
.bg-layer-2,
.bg-layer-3,
.bg-layer-4,
.bg-layer-5 {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

/* Chỉ hiện background effects ở dark theme */
[data-theme="light"] .bg-layer-1,
[data-theme="light"] .bg-layer-2,
[data-theme="light"] .bg-layer-3,
[data-theme="light"] .bg-layer-4,
[data-theme="light"] .bg-layer-5 {
  display: none;
}

.bg-layer-1 {
  background: 
    radial-gradient(ellipse at 20% 20%, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(6, 182, 212, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(255, 107, 53, 0.05) 0%, transparent 60%),
    #0a0a0f;
  background-size: 200% 200%;
  animation: gradientShift 15s ease-in-out infinite;
  z-index: -5;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 0%; }
  50% { background-position: 100% 100%; }
}

.bg-layer-2 {
  background-image: 
    linear-gradient(rgba(139, 92, 246, 0.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 92, 246, 0.15) 1px, transparent 1px);
  background-size: 60px 60px;
  transform: perspective(500px) rotateX(60deg);
  transform-origin: center center;
  animation: gridMove 20s linear infinite;
  opacity: 0.4;
  z-index: -4;
  mask-image: linear-gradient(to bottom, transparent 0%, black 30%, black 70%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 30%, black 70%, transparent 100%);
}

@keyframes gridMove {
  0% { background-position: 0 0; }
  100% { background-position: 60px 60px; }
}

.bg-layer-3 {
  z-index: -3;
  overflow: hidden;
}

.particle {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.8) 0%, rgba(139, 92, 246, 0) 70%);
  animation: floatParticle linear infinite;
  will-change: transform, opacity;
}

.particle:nth-child(1) { width: 4px; height: 4px; left: 10%; animation-duration: 18s; animation-delay: 0s; }
.particle:nth-child(2) { width: 6px; height: 6px; left: 25%; animation-duration: 22s; animation-delay: 3s; background: radial-gradient(circle, rgba(6, 182, 212, 0.8) 0%, rgba(6, 182, 212, 0) 70%); }
.particle:nth-child(3) { width: 3px; height: 3px; left: 40%; animation-duration: 20s; animation-delay: 6s; }
.particle:nth-child(4) { width: 5px; height: 5px; left: 55%; animation-duration: 25s; animation-delay: 2s; background: radial-gradient(circle, rgba(255, 107, 53, 0.8) 0%, rgba(255, 107, 53, 0) 70%); }
.particle:nth-child(5) { width: 4px; height: 4px; left: 70%; animation-duration: 19s; animation-delay: 8s; }
.particle:nth-child(6) { width: 7px; height: 7px; left: 85%; animation-duration: 24s; animation-delay: 4s; background: radial-gradient(circle, rgba(6, 182, 212, 0.6) 0%, rgba(6, 182, 212, 0) 70%); }
.particle:nth-child(7) { width: 3px; height: 3px; left: 15%; animation-duration: 21s; animation-delay: 10s; }
.particle:nth-child(8) { width: 5px; height: 5px; left: 45%; animation-duration: 23s; animation-delay: 5s; }
.particle:nth-child(9) { width: 4px; height: 4px; left: 65%; animation-duration: 20s; animation-delay: 12s; background: radial-gradient(circle, rgba(255, 107, 53, 0.6) 0%, rgba(255, 107, 53, 0) 70%); }
.particle:nth-child(10) { width: 6px; height: 6px; left: 92%; animation-duration: 26s; animation-delay: 1s; }

@keyframes floatParticle {
  0% { transform: translateY(100vh) translateX(0) scale(0.5); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-100px) translateX(50px) scale(1); opacity: 0; }
}

.bg-layer-4 {
  z-index: -2;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.3;
  animation: orbFloat 20s ease-in-out infinite;
}

.orb-1 { width: 400px; height: 400px; background: radial-gradient(circle, #8b5cf6 0%, transparent 70%); top: 10%; left: -10%; animation-duration: 25s; }
.orb-2 { width: 500px; height: 500px; background: radial-gradient(circle, #06b6d4 0%, transparent 70%); bottom: -10%; right: -10%; animation-duration: 30s; animation-delay: 5s; }
.orb-3 { width: 300px; height: 300px; background: radial-gradient(circle, #ff6b35 0%, transparent 70%); top: 50%; left: 40%; animation-duration: 35s; animation-delay: 10s; opacity: 0.15; }

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(60px, -80px) scale(1.1); }
  66% { transform: translate(-40px, 60px) scale(0.9); }
}

.bg-layer-5 {
  z-index: -1;
  overflow: hidden;
  opacity: 0.15;
}

.bg-layer-5::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #8b5cf6, #06b6d4, transparent);
  animation: scanLine 8s linear infinite;
  box-shadow: 0 0 20px #8b5cf6;
}

@keyframes scanLine {
  0% { transform: translateY(0); }
  100% { transform: translateY(100vh); }
}

.hidden { display: none !important; }
img { max-width: 100%; height: auto; display: block; }

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

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

/* ============ SHOP CONTAINER ============ */
.shop-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 12px;
  position: relative;
  z-index: 1;
}

@media (min-width: 1400px) {
  .shop-container { max-width: 1320px; }
}

/* ============ LOADING SCREEN ============ */
.loading-screen {
  position: fixed;
  inset: 0;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  z-index: 9999;
}

.spinner {
  width: 60px;
  height: 60px;
  position: relative;
}

.spinner::before,
.spinner::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid transparent;
}

.spinner::before {
  border-top-color: var(--primary);
  border-right-color: var(--primary);
  animation: spin 1s linear infinite;
}

.spinner::after {
  border-bottom-color: var(--accent);
  border-left-color: var(--accent);
  animation: spin 1.5s linear reverse infinite;
  inset: 8px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-screen p {
  color: var(--text-secondary);
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* ============ ERROR SCREEN ============ */
.error-screen {
  position: fixed;
  inset: 0;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 30px;
  text-align: center;
  z-index: 9999;
}

.error-screen i {
  font-size: 80px;
  color: var(--danger);
  opacity: 0.6;
}

.error-screen h2 {
  font-size: 24px;
  font-weight: 800;
  color: var(--text);
}

.error-screen p {
  color: var(--text-secondary);
  font-size: 14px;
  max-width: 400px;
}

/* ============ SHOP HEADER ============ */
.shop-header {
  position: relative;
  background: var(--bg-card);
  margin-bottom: 16px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  margin-top: 12px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

[data-theme="light"] .shop-header {
  border-radius: 0;
  margin-top: 0;
  border: none;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.banner {
  height: 180px;
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 50%, #06b6d4 100%);
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

[data-theme="light"] .banner {
  height: 240px;
  background: linear-gradient(135deg, #ee4d2d 0%, #ff6b35 100%);
}

@media (min-width: 640px) {
  .banner { height: 240px; }
}

[data-theme="dark"] .banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(45deg, transparent 48%, rgba(255,255,255,0.05) 49%, rgba(255,255,255,0.05) 51%, transparent 52%),
    linear-gradient(-45deg, transparent 48%, rgba(255,255,255,0.05) 49%, rgba(255,255,255,0.05) 51%, transparent 52%);
  background-size: 20px 20px;
  opacity: 0.5;
}

.banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(0, 0, 0, 0.3));
}

[data-theme="light"] .banner::after {
  background: linear-gradient(to bottom, transparent 60%, rgba(0, 0, 0, 0.15));
}

.header-content {
  position: relative;
  display: flex;
  gap: 20px;
  padding: 0 24px 24px;
  margin-top: -60px;
  z-index: 2;
  align-items: flex-end;
}

[data-theme="light"] .header-content {
  padding: 0 20px 20px;
  margin-top: -40px;
  background: var(--bg-elevated);
}

.logo-wrapper {
  position: relative;
  flex-shrink: 0;
}

.logo-wrapper img,
.logo-fallback {
  width: 110px;
  height: 110px;
  border-radius: var(--radius);
  border: 4px solid var(--bg-elevated);
  box-shadow: var(--shadow);
  background: var(--bg-elevated);
  object-fit: cover;
  position: relative;
  z-index: 1;
  transition: var(--transition);
}

[data-theme="dark"] .logo-wrapper img,
[data-theme="dark"] .logo-fallback {
  box-shadow: 0 0 0 3px var(--primary), var(--shadow-glow);
}

.logo-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 44px;
  color: var(--primary);
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-hover) 100%);
}

.shop-info {
  flex: 1;
  padding-top: 65px;
  min-width: 0;
}

.shop-info h1 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: 26px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

[data-theme="dark"] .shop-info h1 {
  background: linear-gradient(135deg, var(--text) 0%, var(--primary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.description {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 12px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.shop-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
}

.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--text-secondary);
  transition: var(--transition);
}

[data-theme="light"] .meta-item {
  background: #f5f5f5;
  border-color: transparent;
}

.meta-item:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.meta-item i {
  color: var(--primary);
  font-size: 12px;
}

/* ============ HEADER ACTIONS ============ */
.header-actions {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  gap: 10px;
  z-index: 3;
}

.action-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: var(--transition);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.action-btn:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px var(--primary-glow);
}

.action-btn:active {
  transform: scale(0.95);
}

.theme-toggle {
  background: rgba(255, 255, 255, 0.95);
}

/* ============ FLASH SALE BANNER ============ */
.flash-sale-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  margin: 16px 0;
  background: linear-gradient(135deg, #ee4d2d 0%, #ff6b35 100%);
  border-radius: var(--radius);
  color: white;
  box-shadow: 0 6px 20px rgba(238, 77, 45, 0.4);
  animation: flashPulse 2s ease-in-out infinite;
}

@keyframes flashPulse {
  0%, 100% { box-shadow: 0 6px 20px rgba(238, 77, 45, 0.4); }
  50% { box-shadow: 0 6px 30px rgba(238, 77, 45, 0.6); }
}

.flash-sale-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.flash-sale-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  animation: boltShake 1.5s ease-in-out infinite;
}

@keyframes boltShake {
  0%, 100% { transform: rotate(0deg) scale(1); }
  25% { transform: rotate(-10deg) scale(1.1); }
  75% { transform: rotate(10deg) scale(1.1); }
}

.flash-sale-title {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 1px;
}

.flash-sale-subtitle {
  font-size: 12px;
  opacity: 0.9;
}

.flash-sale-countdown {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 800;
  font-family: 'Space Mono', 'Courier New', monospace;
}

.countdown-box {
  background: rgba(0, 0, 0, 0.3);
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 16px;
  min-width: 36px;
  text-align: center;
  backdrop-filter: blur(10px);
}

.countdown-sep {
  font-size: 18px;
  opacity: 0.8;
}

@media (max-width: 640px) {
  .flash-sale-banner {
    flex-direction: column;
    gap: 12px;
    padding: 12px 16px;
  }
  
  .flash-sale-title { font-size: 16px; }
  .countdown-box { font-size: 14px; padding: 5px 8px; min-width: 30px; }
}

/* ============ VOUCHER BANNER ============ */
.voucher-banner {
  padding: 16px;
  margin: 16px 0;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

[data-theme="light"] .voucher-banner {
  background: linear-gradient(135deg, #fff5f0 0%, #ffe8e0 100%);
  border-color: #ffd4c4;
}

.voucher-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-weight: 700;
  color: var(--primary);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.voucher-header i {
  font-size: 18px;
}

.voucher-list {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.voucher-list::-webkit-scrollbar { display: none; }

.voucher-card {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: white;
  border-radius: 8px;
  border: 1px dashed var(--primary);
  min-width: 180px;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.voucher-card::before {
  content: '';
  position: absolute;
  left: -6px;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg);
}

.voucher-card::after {
  content: '';
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg);
}

.voucher-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--primary-glow);
}

.voucher-icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.voucher-info {
  flex: 1;
  min-width: 0;
}

.voucher-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 2px;
}

.voucher-desc {
  font-size: 11px;
  color: var(--text-muted);
}

/* ============ SEARCH BAR ============ */
.search-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 14px 16px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
  transition: var(--transition);
}

[data-theme="dark"] .search-bar {
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

[data-theme="light"] .search-bar {
  background: white;
  border-bottom: 1px solid #f0f0f0;
}

.search-bar.scrolled {
  box-shadow: var(--shadow);
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  max-width: 700px;
  margin: 0 auto;
}

.search-input-wrapper > i.fa-search {
  position: absolute;
  left: 18px;
  color: var(--text-muted);
  font-size: 15px;
  pointer-events: none;
}

.search-input-wrapper input {
  width: 100%;
  padding: 12px 48px 12px 48px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  font-family: inherit;
  background: var(--bg-card);
  color: var(--text);
  transition: var(--transition);
}

[data-theme="light"] .search-input-wrapper input {
  background: white;
  border: 2px solid var(--primary);
}

.search-input-wrapper input::placeholder {
  color: var(--text-muted);
}

.search-input-wrapper input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

[data-theme="light"] .search-input-wrapper input:focus {
  box-shadow: 0 0 0 3px rgba(238, 77, 45, 0.15);
}

.clear-btn {
  position: absolute;
  right: 14px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-hover);
  color: var(--text-secondary);
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.clear-btn:hover {
  background: var(--danger);
  color: white;
}

/* ============ CATEGORIES ============ */
.categories-wrapper {
  padding: 0 16px 16px;
  margin-bottom: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.categories-wrapper::-webkit-scrollbar { display: none; }

.categories {
  display: flex;
  gap: 10px;
  padding-bottom: 4px;
  max-width: 1200px;
  margin: 0 auto;
}

.cat-btn {
  padding: 10px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}

[data-theme="light"] .cat-btn {
  background: white;
  border-color: var(--border);
}

.cat-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: 0 4px 15px var(--primary-glow);
}

.cat-btn:not(.active):hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

.cat-btn:active {
  transform: scale(0.95);
}

/* ============ PRODUCTS GRID ============ */
.products-container {
  padding: 0 16px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

@media (min-width: 640px) {
  .products-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; }
}

@media (min-width: 900px) {
  .products-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 1200px) {
  .products-grid { grid-template-columns: repeat(5, 1fr); }
}

/* ============ PRODUCT CARD ============ */
.product-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  display: flex;
  flex-direction: column;
}

[data-theme="light"] .product-card {
  border: 1px solid transparent;
  box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .product-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  padding: 1px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: var(--transition);
  pointer-events: none;
}

[data-theme="dark"] .product-card:hover::before {
  opacity: 1;
}

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

[data-theme="dark"] .product-card:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 30px var(--primary-glow);
}

.product-card:active {
  transform: scale(0.98);
}

.product-image {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--bg-elevated);
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover .product-image img {
  transform: scale(1.08);
}

.product-image .placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--text-muted);
  background: linear-gradient(135deg, var(--bg-elevated) 0%, var(--bg-hover) 100%);
  position: relative;
}

.product-image .placeholder i {
  font-size: 48px;
  color: var(--primary);
  opacity: 0.3;
}

.product-image .placeholder span {
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 600;
}

/* Badges */
.badge-featured {
  position: absolute;
  top: 8px;
  left: 8px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  font-size: 10px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px var(--primary-glow);
  z-index: 2;
}

.badge-sale {
  position: absolute;
  top: 8px;
  right: 8px;
  background: linear-gradient(135deg, #ee4d2d, #d73211);
  color: white;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 100px;
  box-shadow: 0 4px 12px rgba(238, 77, 45, 0.4);
  z-index: 2;
}

.badge-favorite {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--primary);
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.badge-favorite::before {
  content: '★ ';
}

/* Product Info */
.product-info {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 8px;
}

.product-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 38px;
}

.product-desc {
  font-size: 12px;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--text-muted);
}

.product-rating .stars {
  color: #ffc107;
  font-size: 11px;
}

.product-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 8px;
  gap: 8px;
}

.product-price {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.price-current {
  font-size: 16px;
  font-weight: 800;
  color: var(--buy);
  letter-spacing: -0.3px;
}

.price-original {
  font-size: 11px;
  color: var(--text-muted);
  text-decoration: line-through;
}

.add-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--buy), var(--buy-dark));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px var(--buy-glow);
  transition: var(--transition);
}

.add-btn:hover {
  transform: scale(1.1) rotate(90deg);
}

/* ============ EMPTY STATE ============ */
.empty-state {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-muted);
}

.empty-state i {
  font-size: 80px;
  opacity: 0.2;
  color: var(--primary);
  margin-bottom: 20px;
}

.empty-state p {
  font-size: 15px;
  color: var(--text-secondary);
}

/* ============ COMBOS SECTION ============ */
.combos-section {
  padding: 20px 16px;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.combos-header {
  margin-bottom: 16px;
}

.combos-header h2 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: 22px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
  color: var(--buy);
}

.combos-header h2 i {
  color: var(--buy);
}

.combos-header p {
  color: var(--text-secondary);
  font-size: 13px;
}

.combos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

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

/* Combo Card */
.combo-card {
  background: var(--bg-card);
  border: 2px solid transparent;
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  display: flex;
  flex-direction: row;
  box-shadow: var(--shadow-sm);
}

.combo-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  padding: 2px;
  background: linear-gradient(135deg, var(--buy), var(--primary), var(--accent));
  -webkit-mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.combo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15), 0 0 30px var(--buy-glow);
}

.combo-image {
  position: relative;
  width: 140px;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--bg-elevated);
  flex-shrink: 0;
}

.combo-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.combo-card:hover .combo-image img {
  transform: scale(1.1);
}

.combo-image .placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--buy);
  font-size: 40px;
  opacity: 0.4;
}

.combo-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 4px 8px;
  border-radius: 100px;
  font-size: 9px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--buy), var(--buy-dark));
  color: white;
  text-transform: uppercase;
  box-shadow: 0 4px 12px var(--buy-glow);
  z-index: 2;
  max-width: 90%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.combo-discount {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 4px 8px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 800;
  background: rgba(239, 68, 68, 0.95);
  color: white;
  z-index: 2;
}

.combo-info {
  flex: 1;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.combo-label {
  font-size: 10px;
  font-weight: 800;
  color: var(--buy);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.combo-name {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.combo-desc {
  font-size: 12px;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.combo-products {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 2px;
}

.combo-product-mini {
  padding: 2px 8px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 10px;
  color: var(--text-secondary);
  font-weight: 600;
}

.combo-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 8px;
}

.combo-price {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.combo-price .price-current {
  font-size: 17px;
  font-weight: 800;
  color: var(--buy);
}

.combo-price .price-original {
  font-size: 11px;
  color: var(--text-muted);
  text-decoration: line-through;
}

.add-combo-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--buy), var(--buy-dark));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px var(--buy-glow);
  transition: var(--transition);
}

.add-combo-btn:hover {
  transform: scale(1.1) rotate(90deg);
}

@media (max-width: 480px) {
  .combo-card { flex-direction: column; }
  .combo-image { width: 100%; aspect-ratio: 16/9; }
}

/* ============ FLOATING CART ============ */
.cart-fab {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  padding: 14px 24px;
  border-radius: 100px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 10px 30px var(--primary-glow);
  font-weight: 700;
  font-size: 14px;
  z-index: 500;
  animation: slideUp 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  min-width: 240px;
  justify-content: center;
  border: none;
  transition: var(--transition);
  cursor: pointer;
}

[data-theme="light"] .cart-fab {
  background: linear-gradient(135deg, var(--buy), var(--buy-dark));
  box-shadow: 0 10px 30px rgba(238, 77, 45, 0.4);
}

.cart-fab:hover {
  transform: translateX(-50%) translateY(-4px);
  box-shadow: 0 15px 40px var(--primary-glow);
}

@keyframes slideUp {
  from { transform: translate(-50%, 100px); opacity: 0; }
  to { transform: translate(-50%, 0); opacity: 1; }
}

.cart-badge {
  background: white;
  color: var(--buy);
  font-size: 12px;
  font-weight: 800;
  min-width: 22px;
  height: 22px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 7px;
  position: absolute;
  top: -6px;
  right: 50px;
  border: 2px solid var(--buy);
  animation: badgePop 0.3s;
}

@keyframes badgePop {
  0% { transform: scale(0); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

.cart-total {
  margin-left: auto;
  padding-left: 14px;
  border-left: 1px solid rgba(255, 255, 255, 0.3);
}

/* ============ FOOTER ============ */
.shop-footer {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
  font-size: 13px;
}

.shop-footer a {
  color: var(--primary);
  font-weight: 700;
  transition: var(--transition);
}

/* ============ MODAL BASE ============ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: fadeIn 0.2s;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.modal-content {
  position: relative;
  background: var(--bg-card);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  display: flex;
  flex-direction: column;
  animation: slideUpModal 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  border: 1px solid var(--border);
  border-bottom: none;
  box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.8);
}

@keyframes slideUpModal {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

@media (min-width: 640px) {
  .modal { align-items: center; }
  .modal-content {
    border-radius: var(--radius-lg);
    max-height: 85vh;
    border-bottom: 1px solid var(--border);
  }
}

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

.modal-header h3 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-header h3 i {
  color: var(--primary);
}

.close-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-hover);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  transition: var(--transition);
}

.close-btn:hover {
  background: var(--danger);
  color: white;
  transform: rotate(90deg);
}

.modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
  -webkit-overflow-scrolling: touch;
}

.modal-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--border);
  background: var(--bg-elevated);
  flex-shrink: 0;
}

/* ============ CART MODAL ============ */
.cart-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cart-item {
  display: flex;
  gap: 12px;
  padding: 12px;
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
}

[data-theme="light"] .cart-item {
  background: white;
  box-shadow: var(--shadow-sm);
  border-color: transparent;
}

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

.cart-item-image {
  width: 68px;
  height: 68px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg);
  flex-shrink: 0;
  border: 1px solid var(--border);
}

.cart-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item-image .placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 24px;
  opacity: 0.5;
}

.cart-item-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.cart-item-name {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cart-item-price {
  font-size: 14px;
  font-weight: 800;
  color: var(--buy);
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.qty-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-hover);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  transition: var(--transition);
  border: 1px solid var(--border);
}

.qty-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.qty-value {
  min-width: 28px;
  text-align: center;
  font-weight: 800;
  font-size: 14px;
}

.remove-btn {
  margin-left: auto;
  color: var(--danger);
  font-size: 15px;
  padding: 8px;
  align-self: flex-start;
  border-radius: 50%;
  transition: var(--transition);
}

.remove-btn:hover {
  background: rgba(239, 68, 68, 0.1);
}

/* ============ CART SUMMARY ============ */
.cart-summary,
.checkout-summary {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  background: var(--bg-elevated);
  border-radius: var(--radius);
  margin-bottom: 14px;
  border: 1px solid var(--border);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: var(--text-secondary);
}

.summary-row.total {
  font-size: 17px;
  font-weight: 800;
  color: var(--text);
  padding-top: 10px;
  border-top: 1px dashed var(--border);
  margin-top: 4px;
}

.summary-row.total span:last-child {
  color: var(--buy);
  font-size: 18px;
}

/* ============ BUTTONS ============ */
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  padding: 14px 24px;
  border-radius: var(--radius);
  font-weight: 800;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: var(--transition);
  width: 100%;
  border: none;
  cursor: pointer;
  letter-spacing: 0.3px;
}

[data-theme="light"] .btn-primary {
  background: linear-gradient(135deg, var(--buy), var(--buy-dark));
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px var(--primary-glow);
}

.btn-primary:active {
  transform: translateY(0) scale(0.98);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn-secondary {
  background: var(--bg-hover);
  color: var(--text);
  padding: 14px 24px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition);
  width: 100%;
  border: 1px solid var(--border);
  cursor: pointer;
}

.btn-lg {
  padding: 16px 24px;
  font-size: 16px;
}

/* ============ FORM ============ */
.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
  background: var(--bg-elevated);
  color: var(--text);
  transition: var(--transition);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

/* ============ PAYMENT OPTIONS ============ */
.payment-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.payment-option {
  position: relative;
  cursor: pointer;
}

.payment-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.payment-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 16px 10px;
  background: var(--bg-elevated);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  transition: var(--transition);
  text-align: center;
}

.payment-card i {
  font-size: 22px;
  color: var(--text-muted);
}

.payment-card span {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
}

.payment-option input:checked + .payment-card {
  border-color: var(--primary);
  background: var(--primary-glow);
}

.payment-option input:checked + .payment-card i,
.payment-option input:checked + .payment-card span {
  color: var(--primary);
}

/* ============ SUCCESS MODAL ============ */
.success-modal {
  text-align: center;
  padding: 40px 28px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  max-width: 460px;
}

.success-icon {
  font-size: 90px;
  color: var(--success);
  margin-bottom: 20px;
  animation: bounceIn 0.7s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes bounceIn {
  0% { transform: scale(0) rotate(-180deg); }
  50% { transform: scale(1.2) rotate(10deg); }
  100% { transform: scale(1) rotate(0); }
}

.success-modal h2 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--success);
}

.success-modal > p {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 24px;
}

.order-code-box {
  background: var(--bg-elevated);
  padding: 20px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.order-code-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary));
  background-size: 200% 100%;
  animation: shimmer 2s linear infinite;
}

@keyframes shimmer {
  to { background-position: -200% 0; }
}

.order-code-box label {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 1.5px;
}

.order-code {
  font-family: 'Space Mono', 'Courier New', monospace;
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 12px;
  letter-spacing: 2px;
  word-break: break-all;
}

.copy-btn {
  padding: 10px 20px;
  background: var(--bg-hover);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  cursor: pointer;
}

.copy-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.success-modal .note {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

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

/* ============ TOAST ============ */
.toast {
  position: fixed;
  bottom: 110px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(26, 26, 36, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: white;
  padding: 14px 24px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  z-index: 2000;
  animation: toastIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-lg);
  max-width: 90vw;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.toast.success {
  background: rgba(16, 185, 129, 0.95);
  border-color: var(--success);
}

.toast.error {
  background: rgba(239, 68, 68, 0.95);
  border-color: var(--danger);
}

@keyframes toastIn {
  from { opacity: 0; transform: translate(-50%, 30px) scale(0.9); }
  to { opacity: 1; transform: translate(-50%, 0) scale(1); }
}

/* ============ MOBILE BOTTOM BAR ============ */
.mobile-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  display: none;
  z-index: 400;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.1);
}

@media (max-width: 640px) {
  .mobile-bottom-bar { display: flex; }
  body { padding-bottom: 160px; }
}

.mob-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 600;
  transition: var(--transition);
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
}

.mob-tab i {
  font-size: 18px;
}

.mob-tab.active {
  color: var(--primary);
}

.mob-cart-badge {
  position: absolute;
  top: 4px;
  right: 25%;
  background: var(--danger);
  color: white;
  font-size: 9px;
  font-weight: 800;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

/* ============ SCROLLBAR ============ */
.modal-body::-webkit-scrollbar {
  width: 6px;
}

.modal-body::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 480px) {
  .shop-info h1 { font-size: 22px; }
  .logo-wrapper img, .logo-fallback { width: 96px; height: 96px; }
  .shop-info { padding-top: 55px; }
  .products-grid { gap: 12px; }
  .products-container { padding: 0 12px 20px; }
  .product-info { padding: 10px 12px 12px; }
  .product-name { font-size: 13px; min-height: 36px; }
  .price-current { font-size: 15px; }
  .add-btn { width: 32px; height: 32px; font-size: 13px; }
  .cart-fab { 
    min-width: 200px; 
    padding: 12px 20px; 
    font-size: 13px;
    bottom: 76px;
  }
  .cart-badge { right: 40px; }
}

/* ============ THEME TRANSITION ============ */
* {
  transition-property: background-color, border-color, color;
  transition-duration: 0.3s;
  transition-timing-function: ease;
}

/* Không transition cho các element động */
.spinner, .spinner::before, .spinner::after,
.particle, .orb, .bg-layer-1, .bg-layer-2,
.product-image img, .combo-image img,
.action-btn, .cart-fab, .add-btn, .add-combo-btn,
.qty-btn, .close-btn, .remove-btn {
  transition: var(--transition);
}

/* ============================================================
   PRODUCT DETAIL MODAL (Shopee style)
   ============================================================ */

.product-detail-modal {
  max-width: 900px !important;
  max-height: 90vh;
}

@media (min-width: 768px) {
  .product-detail-modal .modal-body {
    padding: 0;
  }
}

/* Layout 2 cột: ảnh + info */
.product-detail-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

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

/* Cột trái: Ảnh */
.product-detail-image-section {
  background: var(--bg-elevated);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}

[data-theme="light"] .product-detail-image-section {
  background: #fafafa;
}

.product-detail-main-image {
  aspect-ratio: 1;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
  position: relative;
}

.product-detail-main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-detail-main-image .placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--text-muted);
  background: linear-gradient(135deg, var(--bg-elevated) 0%, var(--bg-hover) 100%);
}

.product-detail-main-image .placeholder i {
  font-size: 80px;
  color: var(--primary);
  opacity: 0.3;
}

/* Badge trên ảnh */
.product-detail-badges {
  position: absolute;
  top: 16px;
  left: 16px;
  display: flex;
  gap: 8px;
  z-index: 2;
}

.product-detail-badges .badge-sale,
.product-detail-badges .badge-featured {
  position: static;
}

/* Cột phải: Info */
.product-detail-info-section {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
  max-height: 90vh;
}

.product-detail-name {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.3;
  color: var(--text);
}

[data-theme="dark"] .product-detail-name {
  background: linear-gradient(135deg, var(--text) 0%, var(--primary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Rating */
.product-detail-rating {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}

.product-detail-rating .stars {
  color: #ffc107;
  font-size: 14px;
  letter-spacing: 2px;
}

.product-detail-rating .rating-count {
  color: var(--text-muted);
}

/* Price */
.product-detail-price {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 16px;
  background: linear-gradient(135deg, rgba(238, 77, 45, 0.05), rgba(255, 107, 53, 0.05));
  border-radius: var(--radius);
  border: 1px solid rgba(238, 77, 45, 0.15);
}

[data-theme="dark"] .product-detail-price {
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.1), rgba(139, 92, 246, 0.05));
  border-color: rgba(255, 107, 53, 0.2);
}

.product-detail-price .price-current {
  font-size: 30px;
  font-weight: 800;
  color: var(--buy);
  letter-spacing: -1px;
}

.product-detail-price .price-original {
  font-size: 16px;
  color: var(--text-muted);
  text-decoration: line-through;
}

.product-detail-price .price-discount {
  background: var(--danger);
  color: white;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 4px;
}

/* Description */
.product-detail-description {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

/* Stock */
.product-detail-stock {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-secondary);
}

.product-detail-stock .stock-value {
  font-weight: 700;
  color: var(--success);
}

.product-detail-stock .stock-value.low {
  color: var(--danger);
}

/* Quantity Selector */
.quantity-selector {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
}

.quantity-selector-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  min-width: 90px;
}

.quantity-controls {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-elevated);
}

.quantity-controls button {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--text);
  background: transparent;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.quantity-controls button:hover {
  background: var(--primary);
  color: white;
}

.quantity-controls button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.quantity-controls input {
  width: 60px;
  height: 40px;
  text-align: center;
  border: none;
  background: transparent;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  font-family: inherit;
  -moz-appearance: textfield;
}

.quantity-controls input::-webkit-outer-spin-button,
.quantity-controls input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Modal Footer with actions */
.product-detail-actions {
  display: flex;
  gap: 12px;
  width: 100%;
}

.product-detail-actions button {
  flex: 1;
  padding: 14px 20px;
  border-radius: var(--radius);
  font-weight: 800;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.btn-add-cart {
  background: linear-gradient(135deg, var(--buy), var(--buy-dark));
  color: white;
  box-shadow: 0 4px 15px var(--buy-glow);
}

.btn-add-cart:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--buy-glow);
}

.btn-buy-now {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  box-shadow: 0 4px 15px var(--primary-glow);
}

[data-theme="light"] .btn-buy-now {
  background: linear-gradient(135deg, var(--buy), var(--buy-dark));
}

.btn-buy-now:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--primary-glow);
}

/* Combo Detail Modal */
.combo-detail-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

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

.combo-detail-products {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  background: var(--bg-elevated);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.combo-detail-products h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.combo-detail-product {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
}

.combo-detail-product-image {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  overflow: hidden;
  background: var(--bg);
  flex-shrink: 0;
}

.combo-detail-product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.combo-detail-product-image .placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 16px;
  background: var(--bg-elevated);
}

.combo-detail-product-info {
  flex: 1;
  min-width: 0;
}

.combo-detail-product-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.combo-detail-product-price {
  font-size: 12px;
  color: var(--text-muted);
}

/* Mobile responsive */
@media (max-width: 640px) {
  .product-detail-modal {
    max-width: 100% !important;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0 !important;
  }

  .product-detail-image-section {
    padding: 16px;
  }

  .product-detail-info-section {
    padding: 16px;
    max-height: none;
  }

  .product-detail-name {
    font-size: 18px;
  }

  .product-detail-price .price-current {
    font-size: 24px;
  }

  .product-detail-actions {
    flex-direction: column;
  }
}

/* ============================================================
   PRODUCT GALLERY - Thumbnails trong modal chi tiết
   ============================================================ */

/* Container ảnh chính + thumbnails */
.product-detail-gallery {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Ảnh chính */
.product-detail-main-image {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
  cursor: zoom-in;
  transition: var(--transition);
}

.product-detail-main-image:hover {
  transform: scale(1.02);
}

.product-detail-main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.product-detail-main-image .placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--text-muted);
  background: linear-gradient(135deg, var(--bg-elevated) 0%, var(--bg-hover) 100%);
}

.product-detail-main-image .placeholder i {
  font-size: 80px;
  color: var(--primary);
  opacity: 0.3;
}

.product-image-counter {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: white;
  padding: 4px 8px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.product-image-counter i {
  font-size: 10px;
}

/* Thumbnails */
.product-detail-thumbnails {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}

.product-detail-thumbnails::-webkit-scrollbar {
  height: 4px;
}

.product-detail-thumbnails::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 2px;
}

.thumbnail-item {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid var(--border);
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  background: var(--bg-elevated);
}

[data-theme="light"] .thumbnail-item {
  background: #f5f5f5;
}

.thumbnail-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.thumbnail-item:hover {
  border-color: var(--primary-light);
  transform: translateY(-2px);
}

.thumbnail-item.active {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary-glow);
}

/* Responsive */
@media (max-width: 640px) {
  .thumbnail-item {
    width: 56px;
    height: 56px;
  }

  .product-detail-thumbnails {
    gap: 6px;
  }
}

/* ============================================================
   WEBSITE IN 3D CHUYÊN NGHIỆP - 5 SECTIONS MỚI
   ============================================================ */

/* ============ SECTION HEADER (dùng chung) ============ */
.section-header-center {
  text-align: center;
  margin-bottom: 40px;
  padding: 0 16px;
}

.section-badge {
  display: inline-block;
  padding: 6px 16px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-radius: 100px;
  margin-bottom: 16px;
  box-shadow: 0 4px 12px var(--primary-glow);
}

.section-title {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: 36px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 12px;
  color: var(--text);
  letter-spacing: -0.5px;
}

[data-theme="dark"] .section-title {
  background: linear-gradient(135deg, var(--text) 0%, var(--primary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-size: 15px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

@media (max-width: 640px) {
  .section-title { font-size: 26px; }
  .section-subtitle { font-size: 14px; }
}

/* ============================================================
   1. HERO SECTION
   ============================================================ */
.hero-section {
  position: relative;
  padding: 60px 20px 80px;
  margin-bottom: 40px;
  overflow: hidden;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
}

@media (max-width: 900px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
}

.hero-text {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid var(--primary);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  align-self: flex-start;
}

@media (max-width: 900px) {
  .hero-badge { align-self: center; }
}

.hero-badge i {
  font-size: 14px;
}

.hero-title {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: 52px;
  font-weight: 800;
  line-height: 1.1;
  color: var(--text);
  letter-spacing: -1px;
  margin: 0;
}

.hero-title span {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@media (max-width: 640px) {
  .hero-title { font-size: 32px; }
}

.hero-desc {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 520px;
}

@media (max-width: 900px) {
  .hero-desc { margin: 0 auto; }
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .hero-actions { justify-content: center; }
}

.btn-hero-primary,
.btn-hero-secondary {
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-hero-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  box-shadow: 0 6px 20px var(--primary-glow);
}

.btn-hero-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px var(--primary-glow);
}

.btn-hero-secondary {
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border);
}

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

.hero-stats {
  display: flex;
  gap: 32px;
  padding-top: 20px;
  margin-top: 12px;
  border-top: 1px solid var(--border);
}

@media (max-width: 900px) {
  .hero-stats { justify-content: center; }
}

@media (max-width: 480px) {
  .hero-stats { gap: 20px; }
}

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

@media (max-width: 900px) {
  .hero-stat { text-align: center; }
}

.stat-num {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: 32px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

/* Hero Visual */
.hero-visual {
  position: relative;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 400px;
  margin: 0 auto;
}

.hero-cube {
  position: relative;
  width: 200px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(6, 182, 212, 0.15));
  border: 2px solid rgba(139, 92, 246, 0.3);
  animation: cubeFloat 6s ease-in-out infinite;
  z-index: 2;
}

.hero-cube i {
  font-size: 100px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 30px var(--primary-glow));
}

@keyframes cubeFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(5deg); }
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.5;
  animation: orbMove 8s ease-in-out infinite;
}

.hero-orb-1 {
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, var(--primary), transparent);
  top: -20px;
  left: -20px;
  animation-delay: 0s;
}

.hero-orb-2 {
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, var(--accent), transparent);
  bottom: -20px;
  right: -20px;
  animation-delay: 2s;
}

.hero-orb-3 {
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, var(--buy), transparent);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: 4s;
}

@keyframes orbMove {
  0%, 100% { transform: scale(1) translate(0, 0); opacity: 0.5; }
  50% { transform: scale(1.2) translate(20px, -20px); opacity: 0.7; }
}

/* ============================================================
   2. SERVICES SECTION
   ============================================================ */
.services-section {
  padding: 60px 20px;
  margin-bottom: 40px;
}

.services-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  gap: 24px;
}

.services-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 900px) {
  .services-grid-3 { grid-template-columns: 1fr; }
}

.service-card {
  position: relative;
  padding: 32px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  padding: 2px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: var(--transition);
  pointer-events: none;
}

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

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15), 0 0 30px var(--primary-glow);
}

.service-card-featured {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.05), rgba(6, 182, 212, 0.05));
  border-color: var(--primary);
}

[data-theme="light"] .service-card-featured {
  background: linear-gradient(135deg, #fff5f0, #ffe8e0);
}

.service-icon {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.service-icon-orange {
  background: linear-gradient(135deg, #ff6b35, #ea580c);
  color: white;
  box-shadow: 0 8px 20px rgba(255, 107, 53, 0.4);
}

.service-icon-blue {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: white;
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
}

.service-icon-purple {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
  color: white;
  box-shadow: 0 8px 20px rgba(139, 92, 246, 0.4);
}

.service-icon-cyan {
  background: linear-gradient(135deg, #06b6d4, #0891b2);
  color: white;
  box-shadow: 0 8px 20px rgba(6, 182, 212, 0.4);
}

.service-icon-green {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
}

.service-icon-pink {
  background: linear-gradient(135deg, #ec4899, #db2777);
  color: white;
  box-shadow: 0 8px 20px rgba(236, 72, 153, 0.4);
}

.service-card h3 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  margin: 0;
  letter-spacing: -0.3px;
}

.service-card p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.7;
  margin: 0;
}

.service-features {
  list-style: none;
  padding: 0;
  margin: 8px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.service-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-secondary);
}

.service-features li i {
  color: var(--success);
  font-size: 14px;
  background: rgba(16, 185, 129, 0.15);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.service-btn {
  margin-top: auto;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  transition: var(--transition);
}

.service-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateX(4px);
}

.service-btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  border: none;
  box-shadow: 0 4px 12px var(--primary-glow);
}

.service-btn-primary:hover {
  transform: translateX(4px) translateY(-2px);
  box-shadow: 0 8px 20px var(--primary-glow);
  color: white;
}

/* ============================================================
   3. CAPACITY SECTION
   ============================================================ */
.capacity-section {
  padding: 60px 20px;
  margin-bottom: 40px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.03), rgba(6, 182, 212, 0.03));
}

[data-theme="light"] .capacity-section {
  background: linear-gradient(135deg, #faf5ff, #f0f9ff);
}

.capacity-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

@media (max-width: 900px) {
  .capacity-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.capacity-left {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.capacity-title {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: 36px;
  font-weight: 800;
  line-height: 1.2;
  margin: 0;
  color: var(--text);
  letter-spacing: -0.5px;
}

[data-theme="dark"] .capacity-title {
  background: linear-gradient(135deg, var(--text) 0%, var(--primary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@media (max-width: 640px) {
  .capacity-title { font-size: 26px; }
}

.capacity-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0;
}

.capacity-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 12px;
}

.capacity-feature {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.capacity-feature-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--success), #059669);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.capacity-feature h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 4px;
}

.capacity-feature p {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

.capacity-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.capacity-stat-card {
  padding: 24px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.capacity-stat-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: 0 12px 30px var(--primary-glow);
}

.capacity-stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 6px 16px var(--primary-glow);
}

.capacity-stat-num {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: 32px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.capacity-stat-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

/* ============================================================
   4. PORTFOLIO SECTION
   ============================================================ */
.portfolio-section {
  padding: 60px 20px;
  margin-bottom: 40px;
}

.portfolio-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

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

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

.portfolio-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
}

.portfolio-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.portfolio-image {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 80px;
  color: white;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-image-1 { background: linear-gradient(135deg, #8b5cf6, #06b6d4); }
.portfolio-image-2 { background: linear-gradient(135deg, #ff6b35, #ee4d2d); }
.portfolio-image-3 { background: linear-gradient(135deg, #10b981, #059669); }
.portfolio-image-4 { background: linear-gradient(135deg, #f59e0b, #d97706); }

.portfolio-item:hover .portfolio-image {
  transform: scale(1.15);
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent 60%);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  opacity: 0;
  transition: var(--transition);
  color: white;
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-overlay h4 {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 4px;
  color: white;
}

.portfolio-overlay p {
  font-size: 12px;
  opacity: 0.9;
  margin: 0;
}

.portfolio-cta {
  text-align: center;
  margin-top: 40px;
}

.btn-portfolio {
  padding: 14px 32px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  border: none;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 6px 20px var(--primary-glow);
  transition: var(--transition);
}

.btn-portfolio:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px var(--primary-glow);
}

/* ============================================================
   5. CONTACT SECTION
   ============================================================ */
.contact-section {
  padding: 60px 20px;
  margin-bottom: 40px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.05), rgba(6, 182, 212, 0.05));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

[data-theme="light"] .contact-section {
  background: linear-gradient(135deg, #faf5ff, #f0f9ff);
}

.contact-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: start;
}

@media (max-width: 900px) {
  .contact-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.contact-left {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-title {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: 32px;
  font-weight: 800;
  line-height: 1.2;
  margin: 0;
  color: var(--text);
  letter-spacing: -0.5px;
}

@media (max-width: 640px) {
  .contact-title { font-size: 24px; }
}

.contact-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 20px;
}

.contact-info-item {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: var(--transition);
}

.contact-info-item:hover {
  border-color: var(--primary);
  transform: translateX(4px);
}

.contact-info-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px var(--primary-glow);
}

.contact-info-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
  margin-bottom: 2px;
}

.contact-info-value {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

/* Contact Form */
.contact-form {
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 480px) {
  .contact-form .form-row { grid-template-columns: 1fr; }
}

.contact-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 0;
}

.contact-form .form-group label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.contact-form .form-group input,
.contact-form .form-group select,
.contact-form .form-group textarea {
  padding: 12px 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  transition: var(--transition);
  resize: vertical;
}

.contact-form .form-group input:focus,
.contact-form .form-group select:focus,
.contact-form .form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.contact-form .form-group input::placeholder,
.contact-form .form-group textarea::placeholder {
  color: var(--text-muted);
}

.btn-submit-contact {
  padding: 16px 24px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  border: none;
  border-radius: var(--radius);
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: var(--transition);
  box-shadow: 0 6px 20px var(--primary-glow);
  margin-top: 8px;
}

.btn-submit-contact:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px var(--primary-glow);
}

.btn-submit-contact:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 640px) {
  .hero-section { padding: 40px 16px 60px; }
  .services-section,
  .capacity-section,
  .portfolio-section,
  .contact-section { padding: 40px 16px; }
  
  .contact-form { padding: 24px 20px; }
}
/* ============================================================
   SERVICES SECTION (Như Nshop)
   ============================================================ */
.services-section {
  padding: 60px 20px;
  margin-bottom: 40px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.services-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 60px;
}

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

.services-stat {
  padding: 28px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: var(--transition);
}

.services-stat:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: 0 12px 30px var(--primary-glow);
}

.services-stat-num {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: 42px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 8px;
}

.services-stat-label {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.services-stat-desc {
  font-size: 13px;
  color: var(--text-muted);
}

.services-block {
  margin-bottom: 60px;
}

.services-block-header {
  text-align: center;
  margin-bottom: 32px;
}

.services-block-title {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: 30px;
  font-weight: 800;
  margin: 16px 0 8px;
  letter-spacing: -0.5px;
  color: var(--text);
}

.services-block-desc {
  font-size: 15px;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Benefits */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.benefit-card {
  padding: 24px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: var(--transition);
}

.benefit-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.benefit-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 16px;
  box-shadow: 0 6px 16px var(--primary-glow);
}

.benefit-card h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.benefit-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.pricing-card {
  padding: 28px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.pricing-card h4 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--text);
}

.pricing-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.pricing-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pricing-list li {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 14px;
}

.pricing-list li:last-child { border-bottom: none; }

.pricing-list li span {
  color: var(--text-secondary);
}

.pricing-list li strong {
  color: var(--primary);
  font-weight: 800;
}

/* Materials */
.materials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.material-card {
  padding: 20px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: var(--transition);
}

.material-card:hover {
  border-color: var(--primary-light);
}

.material-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.material-name {
  font-size: 18px;
  font-weight: 800;
  color: var(--primary);
  padding: 4px 12px;
  background: var(--primary-light);
  border-radius: 100px;
}

[data-theme="dark"] .material-name {
  background: rgba(255, 107, 53, 0.15);
}

.material-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.material-card ul li strong {
  color: var(--text);
  font-weight: 700;
}

/* Process */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

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

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

.process-step {
  padding: 24px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  position: relative;
  transition: var(--transition);
}

.process-step:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
}

.process-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  margin-bottom: 16px;
  box-shadow: 0 6px 16px var(--primary-glow);
}

.process-step h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.process-step p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* Tech */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.tech-card {
  padding: 20px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.tech-card h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.tech-card h4 i {
  color: var(--primary);
}

.tech-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

.tech-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: var(--text-secondary);
}

.tech-card ul li::before {
  content: '• ';
  color: var(--primary);
  font-weight: 800;
  margin-right: 6px;
}

.tech-card-wide {
  grid-column: span 2;
}

@media (max-width: 640px) {
  .tech-card-wide { grid-column: auto; }
}

/* Params */
.params-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

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

.param-block {
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.param-block h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.param-block h4 i {
  color: var(--primary);
}

.param-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.param-item {
  padding: 12px;
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--primary);
}

.param-item strong {
  display: block;
  font-size: 14px;
  color: var(--text);
  margin-bottom: 4px;
}

.param-item span {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.infill-scale {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.infill-scale span {
  padding: 10px 8px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-align: center;
  font-weight: 700;
  font-size: 13px;
  color: var(--primary);
}

.param-hint {
  font-size: 13px;
  color: var(--text-muted);
  font-style: italic;
  margin: 0;
}

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.faq-q {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.faq-q i {
  color: var(--primary);
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 2px;
}

.faq-a {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  padding-left: 26px;
}

/* Services CTA */
.services-cta {
  text-align: center;
  padding: 40px 24px;
  background: linear-gradient(135deg, rgba(238, 77, 45, 0.08), rgba(255, 107, 53, 0.08));
  border: 1px solid var(--primary);
  border-radius: var(--radius-lg);
  margin-top: 40px;
}

.services-cta h3 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--text);
}

.services-cta p {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.btn-services-cta {
  padding: 14px 32px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  border: none;
  border-radius: var(--radius);
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 6px 20px var(--primary-glow);
  transition: var(--transition);
}

.btn-services-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px var(--primary-glow);
}

/* ============================================================
   PAGE SYSTEM (SPA)
   ============================================================ */
.page-container {
  min-height: 60vh;
}

.page {
  display: none;
  animation: pageFadeIn 0.3s ease-out;
}

.page.page-active {
  display: block;
}

@keyframes pageFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.page-header {
  text-align: center;
  padding: 40px 20px 20px;
  max-width: 800px;
  margin: 0 auto;
}

.page-title {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: 36px;
  font-weight: 800;
  margin: 16px 0 8px;
  color: var(--text);
  letter-spacing: -0.5px;
}

@media (max-width: 640px) {
  .page-title { font-size: 24px; }
}

.page-subtitle {
  font-size: 15px;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.6;
}

/* Home Featured */
.home-featured-section {
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.home-view-all {
  text-align: center;
  margin-top: 32px;
}

.btn-view-all {
  padding: 14px 28px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  border: none;
  border-radius: var(--radius);
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 6px 20px var(--primary-glow);
  transition: var(--transition);
}

.btn-view-all:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px var(--primary-glow);
}

/* Home Quick Service */
.home-quick-service {
  padding: 60px 20px;
  background: linear-gradient(135deg, rgba(238, 77, 45, 0.05), rgba(255, 107, 53, 0.05));
  margin-top: 40px;
}

[data-theme="dark"] .home-quick-service {
  background: linear-gradient(135deg, rgba(238, 77, 45, 0.1), rgba(255, 107, 53, 0.08));
}

.quick-service-container {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

@media (max-width: 768px) {
  .quick-service-container { grid-template-columns: 1fr; gap: 24px; }
}

.quick-service-info h3 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: 28px;
  font-weight: 800;
  margin: 16px 0 12px;
  color: var(--text);
  line-height: 1.3;
}

.quick-service-info p {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.quick-service-highlights {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.quick-service-highlights div {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text);
}

.quick-service-highlights i {
  color: var(--success);
  background: rgba(16, 185, 129, 0.15);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.quick-service-form {
  background: var(--bg-card);
  padding: 32px 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

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

.quick-service-form input,
.quick-service-form select,
.quick-service-form textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  transition: var(--transition);
}

.quick-service-form input:focus,
.quick-service-form select:focus,
.quick-service-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

/* Contact Info Block */
.contact-info-block {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

/* ============================================================
   MAIN MENU BAR (SPA)
   ============================================================ */
.main-menu-bar {
  position: sticky;
  top: 0;
  z-index: 998;
  background: white;
  border-bottom: 1px solid #e8e8e8;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  margin-bottom: 20px;
}

[data-theme="dark"] .main-menu-bar {
  background: #1a1a24;
  border-bottom-color: #2d2d3d;
}

.main-menu-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 0 16px;
}

.main-menu-container::-webkit-scrollbar { display: none; }

.main-menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 20px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-secondary);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: var(--transition);
  cursor: pointer;
}

.main-menu-item:hover {
  color: var(--primary);
  background: var(--bg-hover);
}

.main-menu-item.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  background: rgba(238, 77, 45, 0.05);
}

[data-theme="dark"] .main-menu-item.active {
  background: rgba(238, 77, 45, 0.1);
}

.main-menu-item i { font-size: 14px; }

@media (max-width: 768px) {
  .main-menu-item { padding: 14px 14px; font-size: 13px; }
  .main-menu-item i { font-size: 13px; }
}

@media (max-width: 480px) {
  .main-menu-item { padding: 12px 12px; font-size: 12px; }
  .main-menu-item span { display: none; }
}
/* ═══════════════════════════════════════════════════════════════ */
/* REDESIGN v2.0 — STICKY HEADER + HERO SLIDER + FLASH SALE       */
/* ═══════════════════════════════════════════════════════════════ */

:root {
  --primary: #ee4d2d;
  --primary-dark: #d73211;
  --primary-light: #ff7337;
  --accent: #ffb800;
  --text: #1a1a1a;
  --text-muted: #757575;
  --bg: #f5f5f5;
  --bg-card: #ffffff;
  --border: #e5e5e5;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,.08);
  --shadow-lg: 0 8px 24px rgba(0,0,0,.12);
  --radius: 12px;
  --radius-sm: 8px;
  --header-h: 64px;
  --nav-h: 48px;
}

* { box-sizing: border-box; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, sans-serif;
  margin: 0;
  padding: 0;
}

/* ═══ MARQUEE BAR ═══ */
.marquee-bar {
  background: linear-gradient(90deg, #ee4d2d, #ff7337);
  color: #fff;
  height: 36px;
  overflow: hidden;
  position: sticky;
  top: 0;
  z-index: 1001;
  display: flex;
  align-items: center;
}
.marquee-content {
  display: flex;
  animation: marquee-scroll 30s linear infinite;
  white-space: nowrap;
  padding-left: 100%;
}
.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 40px;
  font-size: 13px;
  font-weight: 500;
}
.marquee-item i { color: #ffb800; }
@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* ═══ STICKY HEADER ═══ */
.shop-header-sticky {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  transition: box-shadow .3s;
}
.shop-header-sticky.scrolled {
  box-shadow: 0 4px 16px rgba(0,0,0,.12);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  height: var(--header-h);
}

/* Logo + Shop name */
.header-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}
.header-brand .logo-wrapper {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  overflow: hidden;
  background: linear-gradient(135deg, #ee4d2d, #ff7337);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(238,77,45,.3);
}
.header-brand .logo-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.header-brand .logo-fallback {
  color: #fff;
  font-size: 22px;
}
.brand-info h1 {
  font-size: 18px;
  font-weight: 800;
  margin: 0;
  line-height: 1.1;
  color: var(--text);
  letter-spacing: -0.3px;
}
.brand-tagline {
  font-size: 11px;
  color: var(--text-muted);
  display: block;
  margin-top: 2px;
}

/* Search bar */
.header-search {
  flex: 1;
  max-width: 480px;
}
.header-search .search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background: #f5f5f5;
  border: 2px solid transparent;
  border-radius: 8px;
  padding: 0 14px;
  transition: all .2s;
}
.header-search .search-input-wrapper:focus-within {
  background: #fff;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(238,77,45,.1);
}
.header-search .search-input-wrapper i {
  color: var(--text-muted);
  font-size: 14px;
}
.header-search input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  padding: 10px 12px;
  font-size: 14px;
  color: var(--text);
  font-family: inherit;
}
.header-search input::placeholder { color: #999; }

/* Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.header-hotline {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: #fff5f2;
  border-radius: 20px;
  text-decoration: none;
  color: var(--primary);
  transition: all .2s;
}
.header-hotline:hover {
  background: #ffe5dc;
  transform: translateY(-1px);
}
.header-hotline i {
  font-size: 14px;
  width: 28px;
  height: 28px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.header-hotline .hotline-text small {
  font-size: 10px;
  color: var(--text-muted);
  display: block;
  line-height: 1;
}
.header-hotline .hotline-text strong {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
}
.action-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: #f5f5f5;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  transition: all .2s;
  position: relative;
}
.action-btn:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}
.cart-btn .cart-count-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--primary);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  padding: 0 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
}

/* ═══ STICKY NAV TABS ═══ */
.shop-nav-sticky {
  position: sticky;
  top: var(--header-h);
  z-index: 999;
  background: #fff;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav-inner::-webkit-scrollbar { display: none; }
.nav-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 14px 16px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: all .2s;
  cursor: pointer;
}
.nav-item i { font-size: 13px; }
.nav-item:hover {
  color: var(--primary);
  background: #fef6f4;
}
.nav-item.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  font-weight: 700;
}

/* ═══ PAGE CONTAINER ═══ */
.page-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}
.page { display: none; }
.page.page-active { display: block; animation: fadeIn .3s; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ═══ HERO SLIDER ═══ */
.hero-slider {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  height: 380px;
  margin-bottom: 32px;
  box-shadow: var(--shadow-md);
  background: linear-gradient(135deg, #ee4d2d, #ff7337);
}
.slider-track {
  display: flex;
  height: 100%;
  transition: transform .5s cubic-bezier(.4,0,.2,1);
}
.slider-slide {
  min-width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 40px 60px;
  color: #fff;
  background-size: cover;
  background-position: center;
  position: relative;
}
.slider-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.5), rgba(0,0,0,.1));
}
.slider-slide-content {
  position: relative;
  z-index: 2;
  max-width: 60%;
}
.slider-slide-content h2 {
  font-size: 40px;
  font-weight: 800;
  margin: 0 0 12px;
  line-height: 1.1;
  letter-spacing: -1px;
}
.slider-slide-content p {
  font-size: 16px;
  margin: 0 0 24px;
  opacity: .95;
}
.slider-slide-content .slider-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: #fff;
  color: var(--primary);
  border-radius: 30px;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  transition: all .2s;
  border: none;
  cursor: pointer;
}
.slider-slide-content .slider-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,.2);
}
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,.9);
  border: none;
  color: var(--primary);
  font-size: 16px;
  cursor: pointer;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s;
  box-shadow: var(--shadow-md);
}
.slider-btn:hover { background: #fff; transform: translateY(-50%) scale(1.1); }
.slider-btn.prev { left: 20px; }
.slider-btn.next { right: 20px; }
.slider-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 3;
}
.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,.5);
  border: none;
  cursor: pointer;
  transition: all .2s;
}
.slider-dot.active {
  background: #fff;
  width: 28px;
  border-radius: 5px;
}

/* ═══ FLASH SALE ═══ */
.flash-sale-section {
  background: linear-gradient(135deg, #ff416c, #ff4b2b);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 32px;
  color: #fff;
  box-shadow: 0 8px 24px rgba(255,65,108,.3);
}
.flash-sale-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}
.flash-sale-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 1px;
}
.flash-sale-title i {
  font-size: 26px;
  filter: drop-shadow(0 0 8px rgba(255,255,0,.8));
  animation: flash-pulse 1s infinite;
}
@keyframes flash-pulse {
  0%,100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}
.flash-sale-countdown {
  display: flex;
  align-items: center;
  gap: 6px;
}
.countdown-label {
  font-size: 13px;
  opacity: .9;
  margin-right: 6px;
}
.countdown-box {
  background: #fff;
  color: #ff4b2b;
  font-weight: 800;
  font-size: 16px;
  padding: 6px 10px;
  border-radius: 6px;
  min-width: 40px;
  text-align: center;
  font-family: 'Space Mono', monospace;
  box-shadow: 0 2px 6px rgba(0,0,0,.15);
}
.countdown-sep {
  font-weight: 800;
  font-size: 18px;
}
.flash-sale-link {
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border: 1px solid rgba(255,255,255,.4);
  border-radius: 20px;
  transition: all .2s;
}
.flash-sale-link:hover { background: rgba(255,255,255,.15); }
.flash-sale-products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}
.flash-product-card {
  background: #fff;
  border-radius: var(--radius-sm);
  overflow: hidden;
  color: var(--text);
  cursor: pointer;
  transition: transform .2s;
}
.flash-product-card:hover { transform: translateY(-4px); }
.flash-product-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
}
.flash-product-card .flash-product-info {
  padding: 10px;
}
.flash-product-card .flash-product-info h4 {
  font-size: 13px;
  margin: 0 0 6px;
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.flash-product-card .flash-product-price {
  color: #ff4b2b;
  font-weight: 800;
  font-size: 15px;
}
.flash-product-card .flash-product-price del {
  color: #999;
  font-size: 12px;
  font-weight: 400;
  margin-left: 6px;
}

/* ═══ SECTION HEADER ═══ */
.section-header-center {
  text-align: center;
  margin-bottom: 32px;
}
.section-badge {
  display: inline-block;
  padding: 6px 16px;
  background: linear-gradient(135deg, #ee4d2d, #ff7337);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: 20px;
  margin-bottom: 12px;
  box-shadow: 0 4px 12px rgba(238,77,45,.3);
}
.section-title {
  font-size: 28px;
  font-weight: 800;
  margin: 0 0 8px;
  color: var(--text);
  letter-spacing: -0.5px;
}
.section-subtitle {
  color: var(--text-muted);
  font-size: 15px;
  margin: 0;
}

/* ═══ CATEGORY GRID ═══ */
.category-section {
  margin-bottom: 40px;
}
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 16px;
}
.category-item {
  background: #fff;
  border-radius: var(--radius);
  padding: 24px 16px;
  text-align: center;
  cursor: pointer;
  transition: all .25s;
  box-shadow: var(--shadow-sm);
  border: 2px solid transparent;
  text-decoration: none;
  color: var(--text);
}
.category-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}
.category-item .category-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 12px;
  border-radius: 16px;
  background: linear-gradient(135deg, #fff5f2, #ffe5dc);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  transition: all .2s;
}
.category-item:hover .category-icon {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  transform: rotate(-6deg) scale(1.05);
}
.category-item .category-name {
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 4px;
}
.category-item .category-count {
  font-size: 12px;
  color: var(--text-muted);
}

/* ═══ PORTFOLIO ═══ */
.portfolio-section {
  margin-bottom: 40px;
}
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.portfolio-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}
.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s;
}
.portfolio-item:hover img { transform: scale(1.08); }
.portfolio-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.85), transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
  color: #fff;
  opacity: 0;
  transition: opacity .3s;
}
.portfolio-item:hover .portfolio-item-overlay { opacity: 1; }
.portfolio-item-overlay h4 {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 700;
}
.portfolio-item-overlay p {
  margin: 0;
  font-size: 12px;
  opacity: .9;
}

/* ═══ TESTIMONIALS ═══ */
.testimonials-section {
  margin-bottom: 40px;
}
.testimonials-track {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.testimonial-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  transition: all .25s;
  border-left: 4px solid var(--primary);
}
.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.testimonial-stars {
  color: #ffb800;
  font-size: 14px;
  margin-bottom: 10px;
}
.testimonial-content {
  font-size: 14px;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 14px;
  font-style: italic;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 10px;
}
.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ee4d2d, #ff7337);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
}
.testimonial-info h5 {
  margin: 0 0 2px;
  font-size: 14px;
  font-weight: 700;
}
.testimonial-info span {
  font-size: 12px;
  color: var(--text-muted);
}

/* ═══ FOOTER ═══ */
.shop-footer {
  background: #1a1a1a;
  color: #fff;
  margin-top: 40px;
}
.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px 20px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
}
.footer-col h4 {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 16px;
  color: #fff;
}
.footer-col p, .footer-col a {
  display: block;
  color: #aaa;
  text-decoration: none;
  font-size: 13px;
  margin-bottom: 8px;
  transition: color .2s;
}
.footer-col a:hover { color: var(--primary); }
.footer-col p i { margin-right: 8px; color: var(--primary); }
.social-links {
  display: flex;
  gap: 8px;
}
.social-links a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #2a2a2a;
  display: flex !important;
  align-items: center;
  justify-content: center;
  color: #fff !important;
  transition: all .2s;
}
.social-links a:hover {
  background: var(--primary);
  transform: translateY(-2px);
}
.footer-bottom {
  border-top: 1px solid #2a2a2a;
  padding: 16px 20px;
  text-align: center;
  font-size: 13px;
  color: #888;
}
.footer-bottom a { color: var(--primary); text-decoration: none; }

/* ═══ FLOATING BUTTONS ═══ */
.zalo-float-btn {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 999;
  background: #0068ff;
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 12px 20px 12px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0,104,255,.4);
  transition: all .25s;
}
.zalo-float-btn:hover { transform: translateY(-3px) scale(1.03); }
.zalo-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50px;
  background: #0068ff;
  animation: zalo-pulse 2s infinite;
  z-index: -1;
}
@keyframes zalo-pulse {
  0% { transform: scale(1); opacity: .6; }
  100% { transform: scale(1.15); opacity: 0; }
}
.zalo-label {
  font-weight: 700;
  font-size: 13px;
  white-space: nowrap;
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 900px) {
  .header-inner { gap: 12px; padding: 8px 12px; }
  .brand-info h1 { font-size: 15px; }
  .brand-tagline { display: none; }
  .header-search { max-width: none; }
  .header-hotline .hotline-text { display: none; }
  .header-hotline { padding: 6px; }
  .header-hotline i { width: 32px; height: 32px; }
  .nav-item span { display: none; }
  .nav-item { padding: 14px 12px; }
  .nav-item i { font-size: 16px; }
  .hero-slider { height: 280px; }
  .slider-slide { padding: 24px; }
  .slider-slide-content h2 { font-size: 24px; }
  .slider-slide-content p { font-size: 13px; }
  .section-title { font-size: 22px; }
  .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    padding: 24px 16px 16px;
  }
  .zalo-label { display: none; }
  .zalo-float-btn { padding: 14px; }
}

@media (max-width: 600px) {
  .header-search { display: none; }
  .header-actions .action-btn:not(.cart-btn) { display: none; }
  .slider-slide-content { max-width: 100%; }
  .slider-slide-content h2 { font-size: 20px; }
  .slider-btn { width: 36px; height: 36px; font-size: 13px; }
  .footer-container { grid-template-columns: 1fr; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
}
/* ═══════════════════════════════════════════════════════════════ */
/* DARK MODE — Mặc định + Toggle                                  */
/* ═══════════════════════════════════════════════════════════════ */

html[data-theme="dark"] {
  --primary: #ff5722;
  --primary-dark: #e64a19;
  --primary-light: #ff7043;
  --accent: #ffb800;
  --text: #e8e8e8;
  --text-muted: #a0a0a0;
  --bg: #0f0f0f;
  --bg-card: #1a1a1a;
  --border: #2a2a2a;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.5);
  --shadow-md: 0 4px 12px rgba(0,0,0,.4);
  --shadow-lg: 0 8px 24px rgba(0,0,0,.6);
}

/* Body dark */
html[data-theme="dark"] body {
  background: var(--bg);
  color: var(--text);
}

/* Sticky header dark */
html[data-theme="dark"] .shop-header-sticky {
  background: #1a1a1a;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0,0,0,.5);
}
html[data-theme="dark"] .shop-nav-sticky {
  background: #1a1a1a;
  border-color: var(--border);
}
html[data-theme="dark"] .nav-item {
  color: #a0a0a0;
}
html[data-theme="dark"] .nav-item:hover {
  background: #2a2a2a;
  color: var(--primary);
}
html[data-theme="dark"] .nav-item.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* Search dark */
html[data-theme="dark"] .header-search .search-input-wrapper {
  background: #2a2a2a;
}
html[data-theme="dark"] .header-search .search-input-wrapper:focus-within {
  background: #1a1a1a;
  border-color: var(--primary);
}
html[data-theme="dark"] .header-search input {
  color: #e8e8e8;
}
html[data-theme="dark"] .header-search input::placeholder {
  color: #666;
}

/* Action buttons dark */
html[data-theme="dark"] .action-btn {
  background: #2a2a2a;
  color: #e8e8e8;
}
html[data-theme="dark"] .action-btn:hover {
  background: var(--primary);
  color: #fff;
}
html[data-theme="dark"] .header-hotline {
  background: #2a1a15;
}

/* Cards dark */
html[data-theme="dark"] .category-item,
html[data-theme="dark"] .product-card,
html[data-theme="dark"] .testimonial-card,
html[data-theme="dark"] .pricing-card,
html[data-theme="dark"] .benefit-card,
html[data-theme="dark"] .service-card,
html[data-theme="dark"] .material-card,
html[data-theme="dark"] .tech-card,
html[data-theme="dark"] .process-step,
html[data-theme="dark"] .faq-item,
html[data-theme="dark"] .contact-info-block,
html[data-theme="dark"] .contact-form,
html[data-theme="dark"] .quick-service-form,
html[data-theme="dark"] .combo-card {
  background: var(--bg-card);
  color: var(--text);
  border-color: var(--border);
}

html[data-theme="dark"] .category-item:hover {
  border-color: var(--primary);
}

html[data-theme="dark"] .category-item .category-icon {
  background: linear-gradient(135deg, #2a1a15, #3a2419);
}

html[data-theme="dark"] .section-title,
html[data-theme="dark"] .page-title,
html[data-theme="dark"] .services-block-title,
html[data-theme="dark"] .product-card h3,
html[data-theme="dark"] .product-name,
html[data-theme="dark"] .benefit-card h4,
html[data-theme="dark"] .service-card h3,
html[data-theme="dark"] .material-name,
html[data-theme="dark"] .tech-card h4,
html[data-theme="dark"] .process-step h4,
html[data-theme="dark"] .faq-q {
  color: var(--text);
}

html[data-theme="dark"] .section-subtitle,
html[data-theme="dark"] .page-subtitle,
html[data-theme="dark"] .product-desc,
html[data-theme="dark"] .benefit-card p,
html[data-theme="dark"] .service-card p,
html[data-theme="dark"] .faq-a {
  color: var(--text-muted);
}

/* Inputs dark */
html[data-theme="dark"] input,
html[data-theme="dark"] textarea,
html[data-theme="dark"] select {
  background: #2a2a2a;
  color: #e8e8e8;
  border-color: #3a3a3a;
}
html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder {
  color: #666;
}

/* Footer dark */
html[data-theme="dark"] .shop-footer {
  background: #000;
}
html[data-theme="dark"] .footer-col p,
html[data-theme="dark"] .footer-col a {
  color: #888;
}
html[data-theme="dark"] .footer-bottom {
  border-top-color: #1a1a1a;
}

/* Modal dark */
html[data-theme="dark"] .modal-content {
  background: #1a1a1a;
  color: var(--text);
}
html[data-theme="dark"] .modal-header {
  border-bottom-color: var(--border);
}
html[data-theme="dark"] .modal-footer {
  border-top-color: var(--border);
}
html[data-theme="dark"] .close-btn {
  background: #2a2a2a;
  color: #e8e8e8;
}

/* Theme icon */
html[data-theme="dark"] #themeIcon::before {
  content: '\f185'; /* sun icon */
}

/* Smooth transition */
html, body, .shop-header-sticky, .shop-nav-sticky,
.category-item, .product-card, .modal-content {
  transition: background-color .3s, color .3s, border-color .3s;
}
/* ═══════════════════════════════════════════════════════════════ */
/* FIX STICKY HEADER — Không bị mất khi scroll                    */
/* ═══════════════════════════════════════════════════════════════ */

/* Đảm bảo không có parent nào chặn sticky */
html, body {
  overflow-x: hidden;
  overflow-y: auto;
  height: auto;
  min-height: 100vh;
}

.shop-container,
#app {
  overflow: visible !important;
  transform: none !important;
  filter: none !important;
  perspective: none !important;
  will-change: auto !important;
  contain: none !important;
}

/* Force sticky cho header */
.shop-header-sticky {
  position: -webkit-sticky !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 1000 !important;
}

/* Menu sticky ngay dưới header */
.shop-nav-sticky {
  position: -webkit-sticky !important;
  position: sticky !important;
  top: 64px !important;  /* Chiều cao header */
  z-index: 999 !important;
}

/* Khi có marquee bar, đẩy cả header và nav xuống */
.marquee-bar:not([style*="display: none"]) ~ .shop-header-sticky {
  top: 36px;
}

.marquee-bar:not([style*="display: none"]) ~ .shop-header-sticky ~ .shop-nav-sticky {
  top: 100px; /* 36 + 64 */
}

/* Nếu header bị co lại khi scroll */
.shop-header-sticky.scrolled .header-inner {
  height: 56px;
}

.shop-header-sticky.scrolled ~ .shop-nav-sticky {
  top: 56px;
}

/* Mobile */
@media (max-width: 900px) {
  .shop-nav-sticky {
    top: 56px !important;
  }
  .shop-header-sticky .header-inner {
    height: 56px;
  }
}
/* ═══════════════════════════════════════════════════════════════ */
/* MARQUEE BAR - CHUYỂN XUỐNG CHÂN TRANG (FOOTER)                 */
/* ═══════════════════════════════════════════════════════════════ */

/* 1. Đảm bảo thanh chạy có màu nền đẹp và bo góc trên */
.marquee-bar {
  position: relative !important; /* Bỏ sticky */
  top: auto !important;
  height: 40px;
  background: linear-gradient(90deg, #ee4d2d, #ff6b35, #ee4d2d);
  border-radius: 12px 12px 0 0; /* Bo góc trên để nối liền với Footer */
  margin-top: 20px;
  z-index: 10;
}

/* 2. Đưa Footer lên trên thanh Marquee (để nó không bị che) */
.shop-footer {
  margin-top: 0 !important; 
}

/* ═══════════════════════════════════════════════════════════════ */
/* MARQUEE BAR - GLASSMORPHISM (TRONG SUỐT, MỜ, TINH TẾ)           */
/* ═══════════════════════════════════════════════════════════════ */

.marquee-bar {
  position: fixed !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  top: auto !important;
  margin-top: 0 !important;
  border-radius: 0 !important;
  z-index: 9999 !important;
  
  /* Hiệu ứng kính mờ */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  
  /* Màu nền siêu nhẹ, viền trên mỏng để phân tách với nội dung */
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
  
  /* Bỏ animation nền gradient cam cũ */
  background: transparent;
  animation: none !important;
}

/* Chế độ TỐI (Dark Mode) - Nền đen mờ */
[data-theme="dark"] .marquee-bar {
  background: rgba(20, 20, 25, 0.65) !important; /* Nền tối bán trong suốt */
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Chế độ SÁNG (Light Mode) - Nền trắng mờ */
[data-theme="light"] .marquee-bar {
  background: rgba(255, 255, 255, 0.75) !important; /* Nền trắng bán trong suốt */
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

/* Chỉnh màu chữ cho phù hợp với từng chế độ */
.marquee-item {
  color: var(--text-secondary) !important; /* Dùng màu chữ phụ để đỡ chói */
  font-weight: 600 !important;
  font-size: 13px !important;
  text-transform: none !important; /* Bỏ viết hoa toàn bộ, trông mềm mại hơn */
}

/* Icon vẫn giữ màu cam đỏ điểm nhấn nhưng mờ hơn chút */
.marquee-item i {
  color: var(--primary) !important;
  opacity: 0.8;
}

/* Nếu có item HOT thì nền cũng chỉ hơi highlight nhẹ */
.marquee-item.hot {
  background: rgba(238, 77, 45, 0.1) !important;
  color: var(--primary) !important;
}

/* Đảm bảo nội dung không bị thanh này che mất khi cuộn tới cuối */
body {
  padding-bottom: 40px !important; 
}

/* Xử lý cho Mobile (nếu có thanh bottom bar) */
@media (max-width: 640px) {
  .mobile-bottom-bar:not(.hidden) ~ .marquee-bar {
    bottom: 60px !important; 
  }
  body {
    padding-bottom: 100px !important;
  }
}
/* ═══ SORT BAR ═══ */
.sort-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-bottom: 20px;
  padding: 0 16px;
}
.sort-label {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 600;
}
.sort-select {
  padding: 8px 32px 8px 16px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 14px;
}
.sort-select:focus {
  outline: none;
  border-color: var(--primary);
}
/* ═══════════════════════════════════════════════════════════════ */
/* SỬA LỖI GIAO DIỆN TRANG SẢN PHẨM (SORT BAR & FLASH SALE)       */
/* ═══════════════════════════════════════════════════════════════ */

/* 1. Đưa thanh Sắp xếp xuống dưới, ngang hàng với Danh mục cho đẹp */
.sort-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: -10px; /* Kéo lên một chút để không bị hở */
  margin-bottom: 20px;
  padding: 0 16px;
}
@media (max-width: 640px) {
  .sort-bar {
    margin-top: 0;
    margin-bottom: 12px;
    justify-content: flex-start;
  }
}

/* 2. Làm cho Flash Sale nhỏ lại, chia thành 5 cột giống Shopee */
.flash-sale-banner {
  margin: 16px 16px 24px 16px; /* Thêm khoảng cách 2 bên */
}

.flash-sale-products {
  display: grid;
  grid-template-columns: repeat(5, 1fr); /* 5 cột trên desktop */
  gap: 12px;
  padding: 0 16px 16px 16px;
}

/* Responsive cho Flash Sale */
@media (max-width: 1024px) {
  .flash-sale-products { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 768px) {
  .flash-sale-products { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 480px) {
  .flash-sale-products { grid-template-columns: repeat(2, 1fr); }
}

/* Chỉnh lại thẻ sản phẩm trong Flash Sale cho nhỏ gọn */
.flash-product-card {
  width: 100% !important;
  margin: 0 !important;
}
.flash-product-card img {
  height: 140px; /* Chiều cao ảnh cố định */
  object-fit: cover;
}
.flash-product-info h4 {
  font-size: 13px;
  line-height: 1.4;
  margin-bottom: 4px;
  -webkit-line-clamp: 2;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
/* ═══════════════════════════════════════════════════════════════ */
/* ĐÁNH GIÁ SAO & LƯỢT BÁN TRÊN THẺ SẢN PHẨM                     */
/* ═══════════════════════════════════════════════════════════════ */

.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 4px 0 8px 0;
  font-size: 11px;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #ffb800;
}

.product-rating .stars {
  font-size: 10px;
  letter-spacing: -1px;
}

.product-rating .rating-score {
  color: var(--text-muted);
  font-size: 11px;
  margin-left: 2px;
}

.product-sold {
  color: var(--text-muted);
  font-size: 11px;
}
/* ═══════════════════════════════════════════════════════════════ */
/* GỌN LẠI THẺ SẢN PHẨM THEO CHUẨN LAZADA/SHOPEE                  */
/* ═══════════════════════════════════════════════════════════════ */

.product-info {
  padding: 10px 12px 12px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 4px; /* Giảm khoảng cách giữa các dòng */
}

.product-desc {
  font-size: 12px;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 4px;
}

.product-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 38px;
  margin-bottom: 0;
}

.product-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto; /* Đẩy giá xuống dưới cùng */
  padding-top: 8px;
  gap: 8px;
  border-top: 1px dashed var(--border); /* Thêm đường kẻ mờ */
}
/* ═══ STAR RATING ═══ */
.star-rating {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 4px;
}
.star-rating input { display: none; }
.star-rating label {
  font-size: 32px;
  color: var(--border);
  cursor: pointer;
  transition: color 0.2s;
}
.star-rating input:checked ~ label,
.star-rating label:hover,
.star-rating label:hover ~ label {
  color: #ffb800;
}
/* ═══════════════════════════════════════════════════════════════ */
/* SỬA LỖI CHỮ DÍNH NHAU TRONG TAB CHI TIẾT                       */
/* ═══════════════════════════════════════════════════════════════ */

.product-detail-description {
  white-space: pre-wrap !important; /* Giữ nguyên xuống dòng khi nhập */
  word-break: break-word !important; /* Tự động xuống dòng nếu chữ quá dài */
  line-height: 1.6 !important;
  color: var(--text-secondary) !important;
  font-size: 14px !important;
  padding: 10px 0;
}
/* ═══════════════════════════════════════════════════════════════ */
/* SỬA LỖI CHỮ MỜ TRONG MODAL CHI TIẾT SẢN PHẨM                   */
/* ═══════════════════════════════════════════════════════════════ */

/* 1. Sửa màu chữ tên sản phẩm (trắng sáng, rõ nét) */
.product-detail-name {
  color: #ffffff !important; /* Màu trắng sáng */
  font-weight: 700 !important;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5) !important; /* Thêm đổ bóng nhẹ để nổi bật */
  -webkit-text-fill-color: #ffffff !important; /* Ghi đè hiệu ứng gradient nếu có */
  background: none !important;
}

/* 2. Sửa màu chữ "Chưa có đánh giá" cho sáng hơn một chút */
.product-detail-rating .rating-count {
  color: #b0b0b0 !important; /* Xám sáng hơn */
}

/* 3. Đảm bảo màu chữ ở phần mô tả cũng rõ ràng */
.product-detail-description {
  color: #e0e0e0 !important;
}
/* ═══════════════════════════════════════════════════════════════ */
/* HIỆU ỨNG SAO SÁNG/MỜ (GIỐNG SHOPEE)                            */
/* ═══════════════════════════════════════════════════════════════ */

/* Phần hiển thị điểm số và sao ở đầu Modal */
.product-detail-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0 16px;
  font-size: 14px;
}

/* Số điểm (VD: 4.8) */
.product-detail-rating .rating-score {
  color: var(--primary);
  font-weight: 700;
  font-size: 16px;
}

/* Các ngôi sao */
.product-detail-rating .stars-display {
  color: #ffb800;
  font-size: 16px;
  letter-spacing: 2px;
}

/* Số lượng đánh giá / Đã bán */
.product-detail-rating .rating-count {
  color: var(--text-muted);
  font-size: 13px;
}

/* Phần bình luận của từng khách (hiển thị sao nhỏ) */
.review-item-stars {
  color: #ffb800;
  font-size: 13px;
  letter-spacing: 1px;
}
/* ═══════════════════════════════════════════════════════════════ */
/* SỬA LỖI CHỮ BỊ TRÙNG TRONG Ô TÌM KIẾM HEADER                    */
/* ═══════════════════════════════════════════════════════════════ */

/* 1. Đảm bảo không có ký tự giả nào được chèn vào input */
#headerSearchInput::before,
#headerSearchInput::after,
.header-search input::before,
.header-search input::after {
  content: none !important;
  display: none !important;
}

/* 2. Đảm bảo khung bao ngoài không bị lặp nội dung */
.search-input-wrapper::before,
.search-input-wrapper::after {
  content: none !important;
  display: none !important;
}

/* 3. Xóa bỏ bất kỳ thẻ input ẩn nào bị thừa (nếu có) */
.header-search input:not(#headerSearchInput) {
  display: none !important;
}
/* ═══════════════════════════════════════════════════════════════ */
/* SỬA LỖI ICON KÍNH LÚP ĐÈ LÊN CHỮ                              */
/* ═══════════════════════════════════════════════════════════════ */

/* 1. Định vị lại icon kính lúp nằm gọn bên trái */
.header-search .search-input-wrapper > i.fa-search {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 15px;
  pointer-events: none;
  z-index: 2;
}

/* 2. Đẩy chữ sang phải để không bị icon đè lên */
.header-search input {
  padding-left: 44px !important; 
  padding-right: 16px !important;
  width: 100%;
  height: 100%;
  background: transparent;
  border: none;
  outline: none;
  font-size: 14px;
  color: var(--text);
}

/* 3. Đảm bảo khung bao ngoài có vị trí relative để icon căn theo */
.header-search .search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--bg-elevated);
  border: 2px solid var(--border);
  border-radius: 30px;
  height: 42px;
  transition: border-color 0.2s;
}

.header-search .search-input-wrapper:focus-within {
  border-color: var(--primary);
}
/* ═══════════════════════════════════════════════════════════════ */
/* ĐỊNH NGHĨA LẠI BẢNG MÀU CHO CHẾ ĐỘ SÁNG (LIGHT MODE)            */
/* ═══════════════════════════════════════════════════════════════ */

[data-theme="light"] {
  --primary: #ee4d2d;
  --primary-light: #fff5f2;
  --accent: #ff6b35;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --info: #3b82f6;
  
  --text: #1a1a1a;
  --text-secondary: #666666;
  --text-muted: #999999;
  
  --bg: #f5f5f5;
  --bg-card: #ffffff;
  --bg-elevated: #ffffff;
  --bg-hover: #f8f8f8;
  
  --border: #e5e5e5;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  
  --buy: #ee4d2d;
  --buy-dark: #d73211;
}

/* Ghi đè màu nền và chữ cho toàn bộ body khi ở chế độ Sáng */
[data-theme="light"] body {
  background: var(--bg);
  color: var(--text);
}

/* Ghi đè màu cho các thành phần cụ thể (để tránh bị dính màu tối) */
[data-theme="light"] .shop-header-sticky,
[data-theme="light"] .shop-nav-sticky,
[data-theme="light"] .marquee-bar,
[data-theme="light"] .product-card,
[data-theme="light"] .order-card,
[data-theme="light"] .modal-content {
  background: var(--bg-card);
  border-color: var(--border);
  color: var(--text);
}

[data-theme="light"] .header-search .search-input-wrapper {
  background: #f5f5f5;
}

[data-theme="light"] .header-search input {
  color: var(--text);
}

[data-theme="light"] .nav-item {
  color: var(--text-secondary);
}

[data-theme="light"] .nav-item.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

[data-theme="light"] .product-name,
[data-theme="light"] .product-detail-name {
  color: var(--text) !important;
}

[data-theme="light"] .product-desc {
  color: var(--text-secondary);
}

/* ═══════════════════════════════════════════════════════════════ */
/* NÂNG CẤP GIAO DIỆN 2026-11 — thẻ Flash Sale, desktop rộng, thanh thông báo */
/* ═══════════════════════════════════════════════════════════════ */
.flash-sale-section{padding:22px 24px;border-radius:20px;background:linear-gradient(135deg,#ff3d6e 0%,#ff6a3d 100%)}
.flash-sale-products{padding:0;gap:16px}
.flash-product-card{position:relative;background:#fff;color:#1b1b2f;border-radius:14px;box-shadow:0 4px 14px rgba(0,0,0,.18);transition:transform .22s,box-shadow .22s;display:flex;flex-direction:column}
.flash-product-card:hover{transform:translateY(-5px);box-shadow:0 14px 28px rgba(0,0,0,.28)}
.flash-product-thumb{position:relative;aspect-ratio:1/1;background:#f1f2f6;display:grid;place-items:center;color:#c2c6d4;font-size:34px;overflow:hidden}
.flash-product-card img{width:100%;height:100%!important;object-fit:cover;transition:transform .35s}
.flash-product-card:hover img{transform:scale(1.06)}
.flash-badge{position:absolute;top:8px;left:8px;background:#ffeb3b;color:#d0121b;font-weight:800;font-size:12px;padding:3px 8px;border-radius:6px;box-shadow:0 2px 6px rgba(0,0,0,.2)}
.flash-product-card .flash-product-info{position:relative;padding:12px 14px 14px;display:flex;flex-direction:column;gap:6px;flex:1}
.flash-product-card .flash-product-info h4{color:#1b1b2f!important;font-size:14px;line-height:1.35;font-weight:600;min-height:2.7em;margin:0}
.flash-product-card .flash-product-price{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 8px;color:#e8312f;font-size:17px;font-weight:800;padding-right:40px}
.flash-product-card .flash-product-price del{color:#9aa0b4;font-size:12px;font-weight:500;margin:0}
.flash-buy-btn{position:absolute;right:12px;bottom:12px;width:36px;height:36px;border:0;border-radius:50%;background:linear-gradient(135deg,#ff3d6e,#ff6a3d);color:#fff;display:grid;place-items:center;cursor:pointer;box-shadow:0 4px 10px rgba(255,61,110,.4);transition:transform .15s}
.flash-buy-btn:hover{transform:scale(1.12)}
.flash-sale-products{grid-template-columns:repeat(auto-fit,minmax(200px,1fr))}
@media (max-width:900px){.flash-sale-products{grid-template-columns:repeat(2,1fr)!important;gap:10px}.flash-sale-section{padding:16px 12px}.flash-product-card .flash-product-price{font-size:15px}}
/* Thanh thông báo dưới/trên */
.marquee-bar{height:42px;box-shadow:0 -2px 12px rgba(0,0,0,.25)}
.marquee-item{font-weight:600;letter-spacing:.2px}
/* Thẻ sản phẩm: hover rõ hơn */
.product-card{transition:transform .22s,box-shadow .22s,border-color .22s}
.product-card:hover{transform:translateY(-4px);box-shadow:0 14px 30px rgba(0,0,0,.35)}
.product-name{font-weight:600;line-height:1.4}
/* Desktop rộng: mở khung để hai bên không trống */
@media (min-width:1280px){
  .header-inner,.nav-inner,.main-menu-container,.shop-container,.page-container,.products-container,.home-featured-section,.quick-service-container,.footer-container,.services-section,.combos-section,.portfolio-grid,.services-grid,.contact-container,.capacity-container,.categories,main{max-width:1440px}
}
@media (min-width:1700px){
  .header-inner,.nav-inner,.main-menu-container,.shop-container,.page-container,.products-container,.home-featured-section,.quick-service-container,.footer-container,.services-section,.combos-section,.portfolio-grid,.services-grid,.contact-container,.capacity-container,.categories,main{max-width:1680px}
  body{font-size:16px}
  .flash-sale-title{font-size:26px}
}
.section-header-center,.section-header-center *{text-align:center}
.section-header-center p,.section-subtitle{margin-left:auto;margin-right:auto}
