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

:root {
  --primary-color: #ff6b35;
  --secondary-color: #4CAF50;
  --accent-color: #e91e63;
  --dark-bg: #1a1a2e;
  --card-bg: #ffffff;
  --text-dark: #333;
  --text-light: #666;
  --border-color: #e0e0e0;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-hover: 0 6px 20px rgba(0,0,0,0.12);
  --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

/* Spinner animation for lazy loading */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--gradient-1);
  background-attachment: fixed;
  color: var(--text-dark);
  line-height: 1.6;
  padding-bottom: 0;
}

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

/* Header */
header {
  background: var(--gradient-2);
  color: white;
  padding: 12px 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

/* Zalo Banner - Premium Design */
.zalo-banner {
  background: linear-gradient(135deg, #0068FF 0%, #0095FF 50%, #00B4FF 100%);
  color: white;
  padding: 16px 0;
  box-shadow: 0 4px 12px rgba(0,104,255,0.3);
  animation: slideDown 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  position: relative;
  overflow: hidden;
}

.zalo-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  animation: rotateBg 20s linear infinite;
}

@keyframes rotateBg {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.zalo-banner-content {
  display: flex;
  align-items: center;
  gap: 20px;
  position: relative;
  padding: 0 50px 0 0;
  z-index: 1;
}

/* Left Section - AI Icon */
.zalo-banner-left {
  display: flex;
  align-items: center;
}

.zalo-banner-icon-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.zalo-banner-icon {
  font-size: 3rem;
  animation: float 3s ease-in-out infinite;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  25% { transform: translateY(-10px) rotate(-5deg); }
  50% { transform: translateY(0px) rotate(0deg); }
  75% { transform: translateY(-10px) rotate(5deg); }
}

.zalo-banner-badge {
  position: absolute;
  bottom: -5px;
  right: -5px;
  background: linear-gradient(135deg, #FF6B35 0%, #FF8C42 100%);
  color: white;
  font-size: 0.65rem;
  font-weight: 900;
  padding: 3px 8px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(255,107,53,0.4);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 2px 8px rgba(255,107,53,0.4); }
  50% { transform: scale(1.1); box-shadow: 0 4px 12px rgba(255,107,53,0.6); }
}

/* Center Section - Content */
.zalo-banner-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.zalo-banner-title {
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1.3;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.zalo-highlight {
  background: linear-gradient(90deg, #ffffff 0%, #e0f2ff 50%, #ffffff 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shine 3s linear infinite;
}

@keyframes shine {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

.zalo-banner-features {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.feature-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,0.2);
  transition: all 0.3s ease;
}

.feature-item:hover {
  background: rgba(255,255,255,0.25);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.feature-icon {
  font-size: 1rem;
  animation: bounce 2s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.2s);
}

.feature-item:nth-child(1) .feature-icon { animation-delay: 0s; }
.feature-item:nth-child(2) .feature-icon { animation-delay: 0.3s; }
.feature-item:nth-child(3) .feature-icon { animation-delay: 0.6s; }

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.feature-text {
  white-space: nowrap;
}

/* Right Section - CTA Button */
.zalo-banner-right {
  display: flex;
  align-items: center;
}

.zalo-banner-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: white;
  color: #0068FF;
  padding: 12px 24px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.zalo-banner-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(0,104,255,0.1);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.zalo-banner-btn:hover::before {
  width: 300px;
  height: 300px;
}

.zalo-banner-btn:hover {
  background: #f0f8ff;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 6px 20px rgba(0,104,255,0.4);
  border-color: white;
}

.btn-icon {
  font-size: 1.3rem;
  animation: ring 2s ease-in-out infinite;
  position: relative;
  z-index: 1;
}

@keyframes ring {
  0%, 100% { transform: rotate(0deg); }
  10%, 30% { transform: rotate(-15deg); }
  20%, 40% { transform: rotate(15deg); }
  50% { transform: rotate(0deg); }
}

.btn-text {
  position: relative;
  z-index: 1;
}

/* Close Button */
.zalo-banner-close {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255,255,255,0.3);
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.5rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  line-height: 1;
  padding: 0;
  z-index: 2;
}

.zalo-banner-close:hover {
  background: rgba(255,255,255,0.3);
  transform: translateY(-50%) scale(1.15) rotate(90deg);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
  .zalo-banner {
    padding: 12px 0;
  }
  
  .zalo-banner-content {
    flex-direction: column;
    gap: 12px;
    padding: 10px 45px 10px 10px;
    text-align: center;
  }
  
  .zalo-banner-left {
    width: 100%;
    justify-content: center;
  }
  
  .zalo-banner-icon {
    font-size: 2.5rem;
  }
  
  .zalo-banner-center {
    width: 100%;
    align-items: center;
  }
  
  .zalo-banner-title {
    font-size: 1rem;
    text-align: center;
  }
  
  .zalo-banner-features {
    justify-content: center;
    gap: 8px;
  }
  
  .feature-item {
    font-size: 0.7rem;
    padding: 4px 10px;
  }
  
  .feature-icon {
    font-size: 0.9rem;
  }
  
  .zalo-banner-right {
    width: 100%;
  }
  
  .zalo-banner-btn {
    width: 100%;
    justify-content: center;
    padding: 12px 20px;
    font-size: 0.9rem;
  }
  
  .zalo-banner-close {
    top: 10px;
    right: 10px;
    transform: none;
    width: 28px;
    height: 28px;
    font-size: 1.3rem;
  }
  
  .zalo-banner-close:hover {
    transform: scale(1.15) rotate(90deg);
  }
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}

.header-brand h1 {
  font-size: 1.1rem;
  font-weight: 800;
  margin: 0;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
  letter-spacing: -0.3px;
}

.header-domain {
  font-size: 0.7rem;
  opacity: 0.85;
  margin: 2px 0 0 0;
  font-weight: 400;
}

.header-info {
  text-align: right;
}

.tagline {
  font-size: 0.7rem;
  opacity: 0.9;
  font-weight: 400;
  margin: 0 0 4px 0;
}

.header-stats {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.stat-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255,255,255,0.2);
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 600;
  backdrop-filter: blur(5px);
}

.stat-icon {
  font-size: 0.9rem;
}

/* Browser Warning Overlay */
.browser-warning-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease-out;
}

.browser-warning-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.browser-warning-modal {
  position: relative;
  background: white;
  border-radius: 20px;
  padding: 24px 20px;
  margin: 20px;
  max-width: 400px;
  width: calc(100% - 40px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  z-index: 10001;
  animation: slideUp 0.4s ease-out;
}

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

.browser-warning-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.browser-warning-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.browser-warning-header h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-dark);
}

.browser-warning-content p {
  margin: 0 0 20px 0;
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.5;
}

.browser-warning-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.step-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.step-number {
  background: var(--gradient-2);
  color: white;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.step-text {
  flex: 1;
  font-size: 0.85rem;
  color: var(--text-dark);
  line-height: 1.5;
  padding-top: 4px;
}

.step-text strong {
  color: var(--primary-color);
  font-weight: 700;
}

.browser-warning-arrow {
  position: fixed;
  top: 60px;
  right: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
  z-index: 10002;
}

.arrow-line {
  width: 3px;
  height: 60px;
  background: linear-gradient(180deg, transparent 0%, var(--primary-color) 100%);
  margin-bottom: -5px;
  animation: pulseArrowLine 1.5s ease-in-out infinite;
  transform-origin: bottom;
}

.arrow-head {
  font-size: 2.5rem;
  color: var(--primary-color);
  animation: pulseArrowHead 1.5s ease-in-out infinite;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

@keyframes pulseArrowLine {
  0%, 100% {
    opacity: 1;
    height: 60px;
  }
  50% {
    opacity: 0.5;
    height: 50px;
  }
}

@keyframes pulseArrowHead {
  0%, 100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  50% {
    opacity: 0.6;
    transform: translateY(-5px) scale(1.1);
  }
}

/* Prevent interaction with content behind overlay */
body.has-browser-warning {
  overflow: hidden;
}

body.has-browser-warning > *:not(.browser-warning-overlay) {
  pointer-events: none;
  user-select: none;
}

header h1 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 4px;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
  letter-spacing: -0.3px;
}

.tagline {
  font-size: 0.75rem;
  opacity: 0.9;
  font-weight: 400;
}

.header-stats {
  font-size: 0.7rem;
  opacity: 0.85;
  margin-top: 4px;
  font-weight: 500;
}

.header-stats span {
  font-weight: 700;
  color: rgba(255,255,255,0.95);
}

/* Main Content */
main {
  padding: 12px 8px 20px;
  max-width: 100%;
}

/* Filters Section - Mobile First */
.filters {
  background: white;
  padding: 12px;
  border-radius: 16px;
  box-shadow: var(--shadow);
  margin-bottom: 15px;
}

.search-box {
  margin-bottom: 10px;
}

.search-box input {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid var(--border-color);
  border-radius: 30px;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  background: #f8f9fa;
}

.search-box input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(255,107,53,0.1);
  background: white;
}

.sort-options select {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid var(--border-color);
  border-radius: 30px;
  font-size: 0.95rem;
  background: #f8f9fa;
  cursor: pointer;
  transition: all 0.3s ease;
}

.sort-options select:focus {
  outline: none;
  border-color: var(--primary-color);
  background: white;
}

/* Quick Filters */
.quick-filters {
  background: white;
  padding: 12px;
  border-radius: 16px;
  box-shadow: var(--shadow);
  margin-bottom: 15px;
}

.quick-filters-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.quick-filter-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.quick-filter-btn {
  padding: 10px 16px;
  border: 2px solid var(--border-color);
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  background: white;
  color: var(--text-dark);
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

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

.quick-filter-btn.active {
  background: var(--gradient-2);
  border-color: transparent;
  color: white;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.quick-filter-btn:hover:not(.active) {
  border-color: var(--primary-color);
  background: rgba(255,107,53,0.05);
}

/* Time Buttons */
.time-buttons {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 15px;
  background: white;
  padding: 12px;
  border-radius: 16px;
  box-shadow: var(--shadow);
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
}

.time-buttons::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.time-button {
  padding: 10px 18px;
  border: none;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  white-space: nowrap;
  flex-shrink: 0;
}

.time-button:active {
  transform: scale(0.95);
}

.time-button.active {
  transform: scale(1.05);
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 15px;
}

.stat-item {
  background: white;
  padding: 15px 10px;
  border-radius: 16px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: all 0.3s ease;
}

.stat-item:active {
  transform: scale(0.95);
}

.stat-number {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 4px;
}

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

/* Countdown Section */
.countdown-section {
  margin-bottom: 20px;
}

.countdown-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.countdown-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  animation: pulse 3s ease-in-out infinite;
}

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

.countdown-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 15px;
  position: relative;
  z-index: 1;
}

.countdown-icon {
  font-size: 2rem;
  animation: pulse-icon 2s ease-in-out infinite;
}

@keyframes pulse-icon {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.countdown-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.countdown-timer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 20px 0;
  position: relative;
  z-index: 1;
}

/* LIVE mode styling */
.countdown-timer.live-mode .countdown-value {
  font-size: 2.5rem;
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 50%, #ff6b35 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: liveGradient 2s ease infinite, livePulse 1.5s ease-in-out infinite;
  font-weight: 900;
  letter-spacing: 2px;
}

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

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

.countdown-item {
  background: rgba(255,255,255,0.25);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 12px 16px;
  min-width: 70px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  border: 1px solid rgba(255,255,255,0.3);
  transition: transform 0.2s ease, background 0.2s ease;
}

.countdown-item:hover {
  background: rgba(255,255,255,0.3);
  transform: translateY(-2px);
}

.countdown-value {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
  font-variant-numeric: tabular-nums;
}

.countdown-label {
  font-size: 0.7rem;
  font-weight: 600;
  opacity: 0.9;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.countdown-separator {
  font-size: 2rem;
  font-weight: 800;
  opacity: 0.8;
  margin: 0 -4px;
}

.countdown-subtitle {
  font-size: 0.85rem;
  opacity: 0.9;
  margin: 0;
  position: relative;
  z-index: 1;
  font-weight: 500;
}

/* Products Grid - Mobile Optimized */
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 30px;
}

.product-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}

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

.discount-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  background: var(--gradient-2);
  color: white;
  padding: 4px 10px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 0.8rem;
  z-index: 10;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.stock-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  background: rgba(46, 125, 50, 0.9);
  color: white;
  padding: 3px 8px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.65rem;
  z-index: 10;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  backdrop-filter: blur(5px);
}

.product-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  background: #f5f5f5;
}

.product-card h3 {
  padding: 8px 8px 6px;
  font-size: 0.8rem;
  line-height: 1.3;
  color: var(--text-dark);
  min-height: 52px;
  max-height: 52px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
  word-break: break-word;
}

.price-info {
  padding: 0 8px 6px;
  display: flex;
  align-items: baseline;
  gap: 4px;
  flex-wrap: wrap;
}

.current-price {
  font-size: 1rem;
  font-weight: 800;
  color: #e74c3c;
}

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

.product-meta {
  padding: 0 8px 8px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  font-size: 0.65rem;
  color: var(--text-light);
  gap: 4px;
}

.stock {
  display: none; /* Ẩn phần stock cũ trong meta */
}

.time-slot {
  background: #fff3e0;
  color: #e65100;
  padding: 2px 6px;
  border-radius: 8px;
  font-size: 0.6rem;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.buy-button {
  display: block;
  margin: 0 8px 8px;
  padding: 10px;
  background: var(--gradient-1);
  color: white;
  text-align: center;
  text-decoration: none;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.85rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.buy-button:active {
  transform: scale(0.95);
}

/* Loading */
.loading {
  text-align: center;
  padding: 60px 20px;
}

.spinner {
  border: 4px solid rgba(255,255,255,0.3);
  border-top: 4px solid var(--primary-color);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Footer */
footer {
  background: rgba(26, 26, 46, 0.98);
  color: white;
  padding: 30px 0 15px;
  margin-top: 50px;
}

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

.footer-section {
  text-align: left;
}

.footer-title {
  font-size: 1.2rem;
  font-weight: 800;
  margin: 0 0 10px 0;
  color: white;
}

.footer-subtitle {
  font-size: 0.9rem;
  font-weight: 700;
  margin: 0 0 12px 0;
  color: rgba(255,255,255,0.9);
}

.footer-desc {
  font-size: 0.85rem;
  line-height: 1.5;
  opacity: 0.8;
  margin: 0 0 10px 0;
}

.footer-domain {
  margin: 8px 0 0 0;
}

.footer-domain a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: opacity 0.3s ease;
}

.footer-domain a:hover {
  opacity: 0.8;
}

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

.footer-links li {
  font-size: 0.85rem;
  opacity: 0.85;
}

.footer-links a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
}

.footer-links a:hover {
  color: var(--primary-color);
  transform: translateX(3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  text-align: center;
}

.footer-bottom p {
  margin: 6px 0;
  font-size: 0.75rem;
  opacity: 0.7;
}

/* Bottom Navigation - Mobile Only */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(10px);
  box-shadow: 0 -1px 8px rgba(0,0,0,0.08);
  display: flex;
  justify-content: space-around;
  padding: 6px 0 calc(6px + env(safe-area-inset-bottom));
  z-index: 999;
  border-top: 1px solid rgba(0,0,0,0.05);
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 4px 12px;
  color: var(--text-light);
  text-decoration: none;
  font-size: 0.6rem;
  font-weight: 500;
  transition: all 0.2s ease;
  cursor: pointer;
  flex: 1;
}

.bottom-nav-item.active {
  color: var(--primary-color);
}

.bottom-nav-item .icon {
  font-size: 1.1rem;
}

.bottom-nav-item span:not(.icon) {
  display: none; /* Ẩn text trên mobile, chỉ hiển thị icon */
}

/* Responsive - Tablet and Desktop */
@media (min-width: 769px) {
  header {
    padding: 15px 0;
  }

  .header-brand h1 {
    font-size: 1.5rem;
  }

  .header-domain {
    font-size: 0.8rem;
  }

  .tagline {
    font-size: 0.85rem;
  }

  .stat-badge {
    font-size: 0.8rem;
    padding: 6px 14px;
  }

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

  .footer-section {
    text-align: left;
  }

  .bottom-nav-item span:not(.icon) {
    display: block; /* Hiển thị text trên desktop */
  }

  main {
    padding: 20px;
  }

  .filters {
    padding: 20px;
    display: flex;
    flex-direction: row;
    gap: 15px;
  }

  .search-box {
    flex: 1;
    min-width: 300px;
    margin-bottom: 0;
  }

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

  .product-card img {
    height: 240px;
  }

  .stat-number {
    font-size: 2.5rem;
  }

  .stats {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .stat-item {
    padding: 25px;
  }

  .countdown-card {
    padding: 30px;
  }

  .countdown-title {
    font-size: 1.4rem;
  }

  .countdown-item {
    min-width: 90px;
    padding: 16px 20px;
  }

  .countdown-value {
    font-size: 2.5rem;
  }

  .countdown-separator {
    font-size: 2.5rem;
  }

  body {
    padding-bottom: 0;
  }

  .bottom-nav {
    display: none;
  }

  .quick-filters {
    padding: 15px;
  }

  .time-buttons {
    padding: 15px;
  }
}

@media (min-width: 1200px) {
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
  }

  .product-card img {
    height: 280px;
  }
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.product-card {
  animation: fadeIn 0.5s ease-out;
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}
