@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* Reset & Base Variables */
:root {
  --primary-color: #10B981; /* Nền tảng màu xanh tươi của lá cây - Tailwind Emerald 500 */
  --primary-dark: #047857;
  --secondary-color: #F59E0B; /* Màu cam Shopee-like nổi bật cho các tag sale, nút bấm quan trọng */
}

body {
  font-family: 'Inter', sans-serif;
  background-color: #F3F4F6; /* Xám nhạt như background Shopee */
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Hide scrollbar for layout ngang */
.hide-scrollbar::-webkit-scrollbar {
  display: none;
}
.hide-scrollbar {
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
}

/* Product Card Hover Effect chuẩn Shopee */
.product-card {
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
  border-bottom: 2px solid transparent;
}

.product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-bottom: 2px solid var(--primary-color);
  z-index: 10;
}

/* Biến thể checkbox custom (Product Detail) */
.variant-btn {
  transition: all 0.2s;
}
.variant-btn.active {
  border-color: var(--primary-color);
  color: var(--primary-color);
  background-color: #ECFDF5; /* Emerald 50 */
}

/* Checkbox filter custom styling */
.checkbox-filter {
  accent-color: var(--primary-color);
  width: 1.2rem;
  height: 1.2rem;
}

/* Line clamp cho tên sản phẩm (hiển thị tối đa 2 dòng, cắt bằng dấu 3 chấm) */
.line-clamp-2 {
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

/* Flash sale progress bar striped animation */
.progress-bar-striped {
  background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
  background-size: 1rem 1rem;
}
