html {
      scroll-behavior: smooth;
    }

* {
  max-width: 100%; /*Ngăn phần tử vượt quá màn hình */
  box-sizing: border-box; /* Tính cả padding/border vào width */ 
}


body {
  font-family: Arial, sans-serif;
  background: #f4f4f4;
  margin: 0;
  padding: 0;
  overflow-x: hidden; /* Ngăn chặn scroll ngang */
}

.my-toggler:focus {
  box-shadow: none;
}


header {
  background-color: #007acc;
  color: white;
  padding: 20px;
  text-align: center;
}

img {
  border-radius: 10px;
  max-width: 100%;
  height: auto;
}
.cardproduct {
  width: 100%;
  background: white;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid #f0f0f0;
  overflow: hidden;
}

.cardproduct:hover {
  transform: translateY(-12px);
  box-shadow: 0 20px 40px rgba(0,123,255,0.2);
  border-color: #007bff;
}

.cardproduct:hover img {
  transform: scale(1.05);
}

.cardproduct h5 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #1a1a1a;
  min-height: 50px; /* Đồng nhất chiều cao */
}

.cardproduct p {
  font-size: 22px;
  font-weight: 700;
  color: #ff6b35;
  margin-bottom: 15px;
}

.cardproduct .btn-primary {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  font-weight: 600;
  background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
  border: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,123,255,0.3);
}

.cardproduct .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,123,255,0.5);
}
.card {
 
  background: white;
  padding: 15px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  border-radius: 8px;
}

@media (max-width: 600px) {
  .card {
    width: 90%;
  }
}
.image-container {
    height: 200px; /* Chiều cao cố định cho container ảnh */
    display: flex;
    align-items: center;
}

.qr-fixed {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 100px;
  z-index: 999;
  box-shadow: 0 0 8px rgba(0,0,0,0.2);
}
.popup-overlay {
  background-color: #000; /* fallback */
  background-color: rgba(0,0,0,0.5);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.popup-box {
  position: relative;
  background-color: white;
  padding: 0;
  max-width: 600px;
  width: 90%;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.popup-close {
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 24px;
  color: black;
  cursor: pointer;
  font-weight: bold;
}

.policy-content p {
  margin-bottom: 8px;
  line-height: 1.6;
  text-align: justify;
}

button:focus, .btn:focus, .popup-close:focus {
  outline: 2px solid #007bff;
  outline-offset: 2px;
}
.social-icons a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: white;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 24px;
}

/* Màu riêng cho từng icon */
.social-icons a.github   { color: #000 !important; }
.social-icons a.youtube  { color: #FF0000 !important; }
.social-icons a.facebook { color: #1877F2 !important; }

.social-icons a:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}
.btn-spacing {
    margin-right: 0.5rem;
}

.bg-primary-light {
  background: linear-gradient(135deg, #cfe2ff, #9ec5fe); /* xanh nhạt từ Bootstrap primary */
  padding: 10px 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

form input:focus {
  outline: none;
  border-color: #f57c00;
  box-shadow: 0 0 5px rgba(245, 124, 0, 0.5);
}

form button {
  background-color: #f57c00;
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

form button:hover {
  background-color: #ef6c00;
}
 
    .stars { color: #ffc107; font-size: 18px; cursor: pointer;}   
  /* ✅ MỚI - Responsive trên mobile */
.media { 
  display: flex; 
  gap: 10px; 
  margin-top: 15px;
  overflow-x: auto; /* Cho phép scroll ngang */
  -webkit-overflow-scrolling: touch; /* Smooth scroll trên iOS */
  padding-bottom: 10px; /* Space cho scrollbar */
}

/* Ẩn scrollbar nhưng vẫn scroll được */
.media::-webkit-scrollbar {
  height: 6px;
}

.media::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.media::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 10px;
}

.media::-webkit-scrollbar-thumb:hover {
  background: #555;
}

.media img {
  flex-shrink: 0; /* Không cho ảnh bị co lại */
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.media img:hover {
  transform: scale(1.1);
}

.media video { 
  flex-shrink: 0; /* Không cho video bị co lại */
  max-width: 240px; 
  border-radius: 8px; 
}

/* Responsive cho mobile */
@media (max-width: 576px) {
  .media {
    gap: 8px;
    margin-top: 10px;
  }
  
  .media img {
    width: 80px;
    height: 80px;
  }
  
  .media video {
    max-width: 180px;
  }
}

/* Tablet */
@media (max-width: 768px) and (min-width: 577px) {
  .media img {
    width: 90px;
    height: 90px;
  }
  
  .media video {
    max-width: 200px;
  }
}
    .grid { display: grid; gap: 12px; }
    @media (min-width: 740px){ .grid { grid-template-columns: repeat(2, 1fr); } }
    .muted { color: #666; font-size: 12px; }
    button:hover { background: #f0f0f0; }

  #pagination {
  margin-top: 16px;
}
#pagination .page-btn {
  margin: 0 4px;
  padding: 6px 12px;
  border: 1px solid #ccc;
  background: white;
  cursor: pointer;
  border-radius: 4px;
}

#pagination .page-btn.active {
  background: #007acc;
  color: white;
  cursor: default;
}
.review-card {
  background: white;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  margin-bottom: 20px;
  border-left: 4px solid #007bff;
}

.review-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}

.review-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid #007bff;
}

.review-verified {
  background: #28a745;
  color: white;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo a {
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}


.nav-link:hover {
    color: #3498db;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 3px 0;
    transition: 0.3s;
}

@media screen and (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: #2c3e50;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        margin: 1rem 0;
    }
}

main {
    text-align: center;
}

.img-right {
  position: absolute;
  right: 0;
  /*bottom: 0; /* nếu muốn dính góc phải dưới */
}
/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, #0a1628 0%, #1a3a5c 50%, #0a1628 100%);
  min-height: 600px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 80px 20px;
}

.hero-section::before {
  content: '';
  position: absolute;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.15) 0%, transparent 70%);
  top: -300px;
  left: -200px;
  border-radius: 50%;
  filter: blur(100px);
  animation: pulse 4s ease-in-out infinite;
}

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

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  position: relative;
  z-index: 2;
}

.hero-text {
  flex: 1;
  color: white;
}

.hero-text h1 {
  font-family: 'Orbitron', sans-serif;
  font-size: 56px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 24px;
  text-shadow: 
    0 0 20px rgba(0, 212, 255, 0.5),
    0 0 40px rgba(0, 212, 255, 0.3);
}

.hero-text p {
  font-size: 18px;
  line-height: 1.6;
  opacity: 0.9;
}

.hero-visual {
  flex: 1;
  position: relative;
}

.circuit-img {
  width: 100%;
  max-width: 600px;
  filter: drop-shadow(0 0 40px rgba(0, 212, 255, 0.6))
          drop-shadow(0 0 80px rgba(0, 123, 255, 0.4));
  animation: float 3s ease-in-out infinite;
}

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

/* Responsive */
@media (max-width: 768px) {
  .hero-container {
    flex-direction: column;
    text-align: center;
  }
  
  .hero-text h1 {
    font-size: 36px;
  }
}

.navbar {
  /*background: rgba(10, 22, 40, 0.95) !important; */
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  padding: 15px 0;
}


.navbar-brand {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 1px;
}

.nav-link {
  font-weight: 500;
  padding: 8px 20px !important;
  transition: all 0.3s ease;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: #00d4ff;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover::after {
  width: 80%;
}

@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 32px;
  }
  
  .cardproduct {
    width: 100%;
    margin: 0 0 20px 0;
  }
  
  .row {
    margin: 0 -10px;
  }
  
  .col-6, .col-sm-6 {
    padding: 0 10px;
  }
  
  /* Touch-friendly buttons */
  .btn {
    min-height: 48px;
    font-size: 16px;
  }
}
.background {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 60px 40px;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(102, 126, 234, 0.3);
  color: white;
  text-align: center;
}

.background h3 {
  font-size: 32px;
  margin-bottom: 15px;
  font-weight: 700;
}

.background p {
  font-size: 18px;
  margin-bottom: 30px;
  opacity: 0.9;
}

.background form {
  display: flex;
  gap: 15px;
  max-width: 600px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}

.background input {
  background: rgba(255,255,255,0.9);
  border: 2px solid transparent;
  padding: 15px 20px;
  border-radius: 30px;
  flex: 1;
  min-width: 200px;
}

.background input:focus {
  background: white;
  border-color: #ffd700;
  outline: none;
}

.background button {
  background: #ffd700;
  color: #333;
  padding: 15px 40px;
  border-radius: 30px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.background button:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(255, 215, 0, 0.4);
}
:root {
  --primary-color: #007bff;
  --primary-dark: #0056b3;
  --secondary-color: #6c757d;
  --accent-color: #ff6b35;
  --success-color: #28a745;
  --bg-dark: #0a1628;
  --bg-light: #f8f9fa;
  --text-primary: #1a1a1a;
  --text-secondary: #666;
  --border-radius: 12px;
  --box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  --transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Áp dụng */
.btn-primary {
  background: var(--primary-color);
  transition: var(--transition);
}
/* Loading spinner */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255,255,255,.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
}

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

/* Skeleton loading cho cards */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s ease-in-out infinite;
}

@keyframes loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
/* Primary CTA */
.cta-btn {
  background: linear-gradient(135deg, #ff6b35 0%, #ff8c42 100%);
  color: white;
  padding: 18px 40px;
  border-radius: 50px;
  font-size: 18px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(255,107,53,0.4);
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.cta-btn:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 15px 35px rgba(255,107,53,0.6);
}

.cta-btn::after {
  content: '→';
  margin-left: 10px;
  transition: margin-left 0.3s ease;
}

.cta-btn:hover::after {
  margin-left: 15px;
}
/* ===== STATS SECTION ===== */
.stats-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 80px 20px;
  position: relative;
  overflow: hidden;
  margin: 60px 0;
}

/* Hiệu ứng background động */
.stats-section::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  top: -200px;
  right: -200px;
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}

.stats-section::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
  bottom: -150px;
  left: -150px;
  border-radius: 50%;
  animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% { 
    transform: translateY(0px) scale(1); 
  }
  50% { 
    transform: translateY(-30px) scale(1.1); 
  }
}

/* Stats Grid */
.stats-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  position: relative;
  z-index: 2;
}

/* Stat Item */
.stat-item {
  text-align: center;
  padding: 40px 30px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

/* Hiệu ứng shine khi hover */
.stat-item::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(255, 255, 255, 0.2) 50%,
    transparent 70%
  );
  transform: rotate(45deg);
  transition: all 0.6s ease;
  opacity: 0;
}

.stat-item:hover::before {
  opacity: 1;
  animation: shine 1.5s ease-in-out infinite;
}

@keyframes shine {
  0% {
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
  }
  100% {
    transform: translateX(100%) translateY(100%) rotate(45deg);
  }
}

.stat-item:hover {
  transform: translateY(-15px) scale(1.05);
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* Stat Number */
.stat-number {
  font-size: 56px;
  font-weight: 900;
  color: white;
  margin-bottom: 15px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  font-family: 'Orbitron', 'Arial Black', sans-serif;
  letter-spacing: 2px;
  position: relative;
  display: inline-block;
}

/* Hiệu ứng số đếm lên (optional - cần JavaScript) */
.stat-number.counting {
  animation: countUp 2s ease-out;
}

@keyframes countUp {
  0% {
    opacity: 0;
    transform: scale(0.5) translateY(20px);
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Glow effect cho số */
.stat-number::after {
  content: attr(data-number);
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  color: white;
  filter: blur(20px);
  opacity: 0.5;
  z-index: -1;
}

/* Stat Label */
.stat-label {
  font-size: 18px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  text-transform: uppercase;
  letter-spacing: 2px;
  position: relative;
}

/* Underline animation */
.stat-label::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  width: 0;
  height: 3px;
  background: white;
  transform: translateX(-50%);
  transition: width 0.4s ease;
  border-radius: 2px;
}

.stat-item:hover .stat-label::after {
  width: 60px;
}

/* Icon decoration (optional) */
.stat-item .stat-icon {
  font-size: 40px;
  color: rgba(255, 255, 255, 0.3);
  margin-bottom: 15px;
  transition: all 0.4s ease;
}

.stat-item:hover .stat-icon {
  color: white;
  transform: scale(1.2) rotate(10deg);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
  
  .stat-number {
    font-size: 48px;
  }
  
  .stat-label {
    font-size: 16px;
  }
}

@media (max-width: 576px) {
  .stats-section {
    padding: 60px 15px;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .stat-item {
    padding: 30px 20px;
  }
  
  .stat-number {
    font-size: 42px;
  }
  
  .stat-label {
    font-size: 15px;
    letter-spacing: 1px;
  }
}

/* ===== VARIASI WARNA (Optional) ===== */
/* Nếu muốn mỗi stat item có màu khác nhau */
.stat-item:nth-child(1) {
  background: linear-gradient(135deg, rgba(255,107,53,0.2), rgba(255,140,66,0.2));
  border-color: rgba(255,107,53,0.3);
}

.stat-item:nth-child(2) {
  background: linear-gradient(135deg, rgba(0,212,255,0.2), rgba(0,123,255,0.2));
  border-color: rgba(0,212,255,0.3);
}

.stat-item:nth-child(3) {
  background: linear-gradient(135deg, rgba(40,167,69,0.2), rgba(76,175,80,0.2));
  border-color: rgba(40,167,69,0.3);
}

.stat-item:nth-child(4) {
  background: linear-gradient(135deg, rgba(255,193,7,0.2), rgba(255,215,0,0.2));
  border-color: rgba(255,193,7,0.3);
}

/* ===== ANIMATIONS ON SCROLL (Cần Intersection Observer) ===== */
.stat-item.animate-in {
  animation: slideInUp 0.8s ease-out forwards;
  opacity: 0;
}

.stat-item.animate-in:nth-child(1) { animation-delay: 0.1s; }
.stat-item.animate-in:nth-child(2) { animation-delay: 0.2s; }
.stat-item.animate-in:nth-child(3) { animation-delay: 0.3s; }
.stat-item.animate-in:nth-child(4) { animation-delay: 0.4s; }

@keyframes slideInUp {
  0% {
    opacity: 0;
    transform: translateY(50px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== DARK MODE (Optional) ===== */
@media (prefers-color-scheme: dark) {
  .stats-section {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  }
  
  .stat-item {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
  }
  
  .stat-item:hover {
    background: rgba(255, 255, 255, 0.1);
  }
}
/* ===== TRUST SECTION ===== */
.trust-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 80px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Background pattern */
.trust-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 35px,
      rgba(0,123,255,0.03) 35px,
      rgba(0,123,255,0.03) 70px
    );
  pointer-events: none;
}

/* Title */
.trust-section h3 {
  font-size: 36px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 50px;
  position: relative;
  display: inline-block;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Underline animation for title */
.trust-section h3::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, transparent, #007bff, transparent);
  border-radius: 2px;
  animation: expandWidth 2s ease-in-out infinite;
}

@keyframes expandWidth {
  0%, 100% { width: 80px; opacity: 0.5; }
  50% { width: 120px; opacity: 1; }
}

/* Trust Grid */
.trust-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  position: relative;
  z-index: 2;
}

/* Trust Item */
.trust-item {
  background: white;
  padding: 40px 30px;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

/* Gradient border on hover */
.trust-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 20px;
  padding: 2px;
  background: linear-gradient(135deg, #667eea, #764ba2, #f093fb);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.trust-item:hover::before {
  opacity: 1;
}

.trust-item:hover {
  transform: translateY(-15px) scale(1.03);
  box-shadow: 0 20px 50px rgba(0,123,255,0.2);
}

/* Icon & Image Styles */
.trust-item img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
  transition: all 0.4s ease;
  filter: grayscale(20%);
}

.trust-item:hover img {
  transform: scale(1.1) rotate(5deg);
  filter: grayscale(0%);
}

.trust-item i {
  font-size: 80px;
  color: #007bff;
  margin-bottom: 20px;
  display: block;
  transition: all 0.4s ease;
  background: linear-gradient(135deg, #007bff, #0056b3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.trust-item:hover i {
  transform: scale(1.15) rotate(-5deg);
  background: linear-gradient(135deg, #667eea, #764ba2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Pulse animation for icons */
.trust-item i::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 120px;
  background: rgba(0,123,255,0.1);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
  z-index: -1;
}

@keyframes pulse {
  0%, 100% {
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 1;
  }
}

/* Text */
.trust-item p {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  line-height: 1.6;
  margin: 0;
  transition: color 0.3s ease;
}

.trust-item:hover p {
  color: #007bff;
}

/* Badge/Checkmark effect */
.trust-item::after {
  content: '✓';
  position: absolute;
  top: 15px;
  right: 15px;
  width: 30px;
  height: 30px;
  background: linear-gradient(135deg, #28a745, #20c997);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 18px;
  opacity: 0;
  transform: scale(0);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.trust-item:hover::after {
  opacity: 1;
  transform: scale(1);
}

/* Stagger animation on page load */
.trust-item {
  opacity: 0;
  animation: fadeInUp 0.8s ease-out forwards;
}

.trust-item:nth-child(1) { animation-delay: 0.1s; }
.trust-item:nth-child(2) { animation-delay: 0.2s; }
.trust-item:nth-child(3) { animation-delay: 0.3s; }
.trust-item:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Shine effect on hover */
.trust-item .shine {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(255, 255, 255, 0.6) 50%,
    transparent 70%
  );
  transform: rotate(45deg);
  transition: all 0.6s ease;
  opacity: 0;
}

.trust-item:hover .shine {
  opacity: 1;
  animation: shineEffect 1.5s ease-in-out;
}

@keyframes shineEffect {
  0% {
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
  }
  100% {
    transform: translateX(100%) translateY(100%) rotate(45deg);
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
  .trust-section h3 {
    font-size: 32px;
  }
  
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
  
  .trust-item {
    padding: 35px 25px;
  }
  
  .trust-item img {
    width: 80px;
    height: 80px;
  }
  
  .trust-item i {
    font-size: 70px;
  }
  
  .trust-item p {
    font-size: 15px;
  }
}

@media (max-width: 576px) {
  .trust-section {
    padding: 60px 15px;
  }
  
  .trust-section h3 {
    font-size: 28px;
    margin-bottom: 40px;
  }
  
  .trust-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  
  .trust-item {
    padding: 30px 20px;
  }
  
  .trust-item img {
    width: 70px;
    height: 70px;
  }
  
  .trust-item i {
    font-size: 60px;
  }
  
  .trust-item p {
    font-size: 14px;
  }
}

/* ===== ALTERNATIVE STYLE - Card with border ===== */
.trust-item.bordered {
  border: 3px solid #e9ecef;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.trust-item.bordered:hover {
  border-color: #007bff;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

/* ===== ALTERNATIVE STYLE - Minimal ===== */
.trust-item.minimal {
  background: transparent;
  box-shadow: none;
  border: none;
}

.trust-item.minimal:hover {
  background: rgba(0,123,255,0.05);
  box-shadow: 0 10px 30px rgba(0,123,255,0.1);
}

/* ===== DARK MODE ===== */
@media (prefers-color-scheme: dark) {
  .trust-section {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  }
  
  .trust-section h3 {
    color: white;
  }
  
  .trust-item {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
  }
  
  .trust-item:hover {
    background: rgba(255, 255, 255, 0.1);
  }
  
  .trust-item p {
    color: rgba(255, 255, 255, 0.9);
  }
  
  .trust-item:hover p {
    color: #00d4ff;
  }
}
    /* ===== ZALO CHAT WIDGET ===== */
    .zalo-chat-widget {
      position: fixed;
      bottom: 20px;
      right: 20px;
      z-index: 9999;
      animation: slideInRight 0.5s ease-out;
    }

    .zalo-chat-widget a {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 60px;
      height: 60px;
      background: linear-gradient(135deg, #0068ff 0%, #0180ff 100%);
      border-radius: 50%;
      box-shadow: 0 8px 25px rgba(0, 104, 255, 0.4);
      transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
      position: relative;
      overflow: hidden;
    }

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

    .zalo-chat-widget a:hover::before {
      width: 100px;
      height: 100px;
    }

    .zalo-chat-widget a:hover {
      transform: scale(1.15) translateY(-5px);
      box-shadow: 0 15px 35px rgba(0, 104, 255, 0.6);
    }

    .zalo-chat-widget img {
      width: 35px;
      height: 35px;
      position: relative;
      z-index: 2;
      filter: brightness(0) invert(1);
    }

    /* Pulse ring animation */
    .zalo-chat-widget a::after {
      content: '';
      position: absolute;
      top: 50%;
      left: 50%;
      width: 100%;
      height: 100%;
      border: 2px solid #0068ff;
      border-radius: 50%;
      transform: translate(-50%, -50%);
      animation: pulseRing 2s ease-out infinite;
    }

    @keyframes pulseRing {
      0% {
        width: 100%;
        height: 100%;
        opacity: 1;
      }
      100% {
        width: 150%;
        height: 150%;
        opacity: 0;
      }
    }

    @keyframes slideInRight {
      0% {
        opacity: 0;
        transform: translateX(100px);
      }
      100% {
        opacity: 1;
        transform: translateX(0);
      }
    }

    /* Tooltip */
    .zalo-chat-widget .tooltip-text {
      position: absolute;
      right: 75px;
      top: 50%;
      transform: translateY(-50%);
      background: white;
      color: #333;
      padding: 10px 18px;
      border-radius: 8px;
      font-size: 14px;
      font-weight: 600;
      white-space: nowrap;
      box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
      opacity: 0;
      pointer-events: none;
      transition: all 0.3s ease;
    }

    .zalo-chat-widget .tooltip-text::after {
      content: '';
      position: absolute;
      right: -8px;
      top: 50%;
      transform: translateY(-50%);
      width: 0;
      height: 0;
      border-top: 8px solid transparent;
      border-bottom: 8px solid transparent;
      border-left: 8px solid white;
    }

    .zalo-chat-widget:hover .tooltip-text {
      opacity: 1;
      right: 80px;
    }

    /* ===== MULTI CHAT WIDGET ===== */
    .multi-chat-widget {
      position: fixed;
      bottom: 20px;
      right: 20px;
      z-index: 9999;
      display: flex;
      flex-direction: column;
      gap: 15px;
      align-items: flex-end;
    }

    .chat-button {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 60px;
      height: 60px;
      border-radius: 50%;
      box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
      transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
      position: relative;
      text-decoration: none;
      animation: slideInRight 0.5s ease-out backwards;
    }

    .chat-button:nth-child(1) { animation-delay: 0s; }
    .chat-button:nth-child(2) { animation-delay: 0.1s; }
    .chat-button:nth-child(3) { animation-delay: 0.2s; }
    .chat-button:nth-child(4) { animation-delay: 0.3s; }

    .chat-button:hover {
      transform: scale(1.15) translateY(-5px);
    }

    /* Zalo button */
    .chat-button.zalo {
      background: linear-gradient(135deg, #0068ff 0%, #0180ff 100%);
      box-shadow: 0 8px 25px rgba(0, 104, 255, 0.4);
    }

    .chat-button.zalo:hover {
      box-shadow: 0 15px 35px rgba(0, 104, 255, 0.6);
    }

    /* Facebook button */
    .chat-button.facebook {
      background: linear-gradient(135deg, #1877f2 0%, #0e5bd6 100%);
      box-shadow: 0 8px 25px rgba(24, 119, 242, 0.4);
    }

    .chat-button.facebook:hover {
      box-shadow: 0 15px 35px rgba(24, 119, 242, 0.6);
    }

    /* Phone button */
    .chat-button.phone {
      background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
      box-shadow: 0 8px 25px rgba(40, 167, 69, 0.4);
    }

    .chat-button.phone:hover {
      box-shadow: 0 15px 35px rgba(40, 167, 69, 0.6);
    }

    /* Email button */
    .chat-button.email {
      background: linear-gradient(135deg, #ff6b35 0%, #ff8c42 100%);
      box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
    }

    .chat-button.email:hover {
      box-shadow: 0 15px 35px rgba(255, 107, 53, 0.6);
    }

    .chat-button i {
      font-size: 28px;
      color: white;
      position: relative;
      z-index: 2;
    }

    .chat-button img {
      width: 35px;
      height: 35px;
      position: relative;
      z-index: 2;
      filter: brightness(0) invert(1);
    }

    /* Tooltip cho multi chat */
    .chat-button .tooltip-text {
      position: absolute;
      right: 75px;
      background: white;
      color: #333;
      padding: 8px 15px;
      border-radius: 6px;
      font-size: 13px;
      font-weight: 600;
      white-space: nowrap;
      box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
      opacity: 0;
      pointer-events: none;
      transition: all 0.3s ease;
    }

    .chat-button .tooltip-text::after {
      content: '';
      position: absolute;
      right: -8px;
      top: 50%;
      transform: translateY(-50%);
      width: 0;
      height: 0;
      border-top: 8px solid transparent;
      border-bottom: 8px solid transparent;
      border-left: 8px solid white;
    }

    .chat-button:hover .tooltip-text {
      opacity: 1;
      right: 80px;
    }

    /* Pulse ring cho tất cả buttons */
    .chat-button::after {
      content: '';
      position: absolute;
      top: 50%;
      left: 50%;
      width: 100%;
      height: 100%;
      border: 2px solid currentColor;
      border-radius: 50%;
      transform: translate(-50%, -50%);
      animation: pulseRing 2s ease-out infinite;
      opacity: 0.3;
    }

    /* ===== FLOATING ACTION BUTTON (FAB) ===== */
    .fab-container {
      position: fixed;
      bottom: 20px;
      right: 20px;
      z-index: 9999;
    }

    .fab-main {
      width: 60px;
      height: 60px;
      background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      box-shadow: 0 8px 25px rgba(0, 123, 255, 0.4);
      transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
      position: relative;
    }

    .fab-main:hover {
      transform: scale(1.1) rotate(90deg);
      box-shadow: 0 15px 35px rgba(0, 123, 255, 0.6);
    }

    .fab-main.active {
      transform: rotate(45deg);
    }

    .fab-main i {
      font-size: 28px;
      color: white;
      transition: transform 0.3s ease;
    }

    .fab-options {
      position: absolute;
      bottom: 75px;
      right: 0;
      display: flex;
      flex-direction: column;
      gap: 15px;
      opacity: 0;
      pointer-events: none;
      transition: all 0.3s ease;
    }

    .fab-options.active {
      opacity: 1;
      pointer-events: all;
      bottom: 80px;
    }

    .fab-option {
      display: flex;
      align-items: center;
      gap: 15px;
      animation: slideInRight 0.3s ease-out backwards;
    }

    .fab-option:nth-child(1) { animation-delay: 0s; }
    .fab-option:nth-child(2) { animation-delay: 0.05s; }
    .fab-option:nth-child(3) { animation-delay: 0.1s; }
    .fab-option:nth-child(4) { animation-delay: 0.15s; }

    .fab-option a {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 50px;
      height: 50px;
      border-radius: 50%;
      text-decoration: none;
      transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
      box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    }

    .fab-option a:hover {
      transform: scale(1.15) translateY(-3px);
    }

    .fab-option span {
      background: white;
      color: #333;
      padding: 8px 15px;
      border-radius: 6px;
      font-size: 13px;
      font-weight: 600;
      white-space: nowrap;
      box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
      opacity: 0;
      transition: opacity 0.3s ease;
    }

    .fab-options.active .fab-option span {
      opacity: 1;
    }

    /* ===== RESPONSIVE ===== */
    @media (max-width: 768px) {
      .zalo-chat-widget a,
      .chat-button,
      .fab-main {
        width: 55px;
        height: 55px;
      }

      .chat-button i,
      .fab-main i {
        font-size: 24px;
      }

      .tooltip-text {
        display: none;
      }

      .multi-chat-widget {
        bottom: 15px;
        right: 15px;
        gap: 12px;
      }

      .fab-container {
        bottom: 15px;
        right: 15px;
      }
    }

    /* ===== NOTIFICATION BADGE ===== */
    .notification-badge {
      position: absolute;
      top: -5px;
      right: -5px;
      width: 24px;
      height: 24px;
      background: #ff4444;
      color: white;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 11px;
      font-weight: 700;
      border: 2px solid white;
      animation: bounce 1s ease-in-out infinite;
    }

    @keyframes bounce {
      0%, 100% { transform: translateY(0); }
      50% { transform: translateY(-5px); }
    }
/* ===== REVIEWS SECTION ===== */
.reviews-section {
  padding: 80px 20px;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  position: relative;
}

.reviews-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(180deg, rgba(102, 126, 234, 0.05) 0%, transparent 100%);
  pointer-events: none;
}

/* Section Header */
.section-header {
  position: relative;
  z-index: 2;
}

.section-badge {
  display: inline-block;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 15px;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.section-subtitle {
  font-size: 18px;
  color: #666;
  font-weight: 400;
}

/* Reviews Grid */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

/* Review Card - Redesigned */
.review-card {
  background: white;
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.review-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.review-card:hover::before {
  transform: scaleX(1);
}

.review-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(102, 126, 234, 0.2);
  border-color: #667eea;
}

/* Review Header */
.review-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.review-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.review-info {
  flex: 1;
}

.review-name {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 5px;
}

.review-rating {
  display: flex;
  align-items: center;
  gap: 5px;
}

.review-rating .stars {
  color: #ffc107;
  font-size: 16px;
}

.review-date {
  font-size: 13px;
  color: #999;
  margin-left: 10px;
}

/* Review Content */
.review-comment {
  font-size: 15px;
  line-height: 1.6;
  color: #555;
  margin-bottom: 20px;
}

/* Media Gallery in Reviews */
.review-media {
  display: flex;
  gap: 10px;
  margin-top: 15px;
  overflow-x: auto;
  padding-bottom: 10px;
  -webkit-overflow-scrolling: touch;
}

.review-media::-webkit-scrollbar {
  height: 4px;
}

.review-media::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.review-media::-webkit-scrollbar-thumb {
  background: #667eea;
  border-radius: 10px;
}

.review-media img,
.review-media video {
  flex-shrink: 0;
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid #f0f0f0;
}

.review-media img:hover,
.review-media video:hover {
  transform: scale(1.05);
  border-color: #667eea;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

/* Pagination */
.pagination-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 40px 0;
}

.page-btn {
  min-width: 40px;
  height: 40px;
  padding: 0 15px;
  border: 2px solid #e0e0e0;
  background: white;
  color: #333;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.page-btn:hover:not(.active) {
  background: #f8f9fa;
  border-color: #667eea;
  color: #667eea;
  transform: translateY(-2px);
}

.page-btn.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-color: transparent;
  cursor: default;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

/* Testimonial Quote */
.testimonial-quote {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 60px 40px;
  border-radius: 25px;
  box-shadow: 0 20px 60px rgba(102, 126, 234, 0.3);
  position: relative;
  overflow: hidden;
}

.testimonial-quote::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.quote-link {
  text-decoration: none;
  color: white;
  display: block;
}

.quote-icon {
  font-size: 60px;
  color: rgba(255, 255, 255, 0.3);
  margin-bottom: 20px;
}

.quote-text {
  font-size: 20px;
  line-height: 1.8;
  font-style: italic;
  margin-bottom: 20px;
  color: white;
}

.quote-source {
  display: block;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.9);
  font-style: normal;
}

/* Review Form Container */
.review-form-container {
  max-width: 800px;
  margin: 60px auto 0;
  background: white;
  padding: 40px;
  border-radius: 25px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  border: 2px solid #f0f0f0;
}

.form-header {
  text-align: center;
  margin-bottom: 40px;
}

.form-header h4 {
  font-size: 28px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 10px;
}

.form-header h4 i {
  color: #667eea;
  margin-right: 10px;
}

.form-header p {
  font-size: 16px;
  color: #666;
}

/* Form Styles */
.review-form .form-group {
  margin-bottom: 30px;
}

.review-form label {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: #333;
  margin-bottom: 10px;
}

.review-form label i {
  color: #667eea;
  margin-right: 8px;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 15px 20px;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  font-size: 15px;
  transition: all 0.3s ease;
  font-family: inherit;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

/* Rating Container */
.rating-container {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px 20px;
  background: #f8f9fa;
  border-radius: 12px;
}

.rating-stars {
  display: flex;
  gap: 8px;
}

.rating-stars span {
  font-size: 32px;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #ddd;
}

.rating-stars span[aria-checked="true"] {
  color: #ffc107;
  transform: scale(1.2);
}

.rating-stars span:hover {
  transform: scale(1.3);
}

.rating-text {
  font-size: 16px;
  font-weight: 600;
  color: #667eea;
}

/* File Upload */
.file-upload-wrapper {
  position: relative;
}

.file-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.file-upload-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  border: 3px dashed #e0e0e0;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: #fafafa;
}

.file-upload-label:hover {
  border-color: #667eea;
  background: rgba(102, 126, 234, 0.05);
}

.file-upload-label i {
  font-size: 48px;
  color: #667eea;
  margin-bottom: 15px;
}

.file-upload-label span {
  font-size: 15px;
  color: #666;
  font-weight: 500;
}

/* Media Preview */
.media-preview {
  display: flex;
  gap: 15px;
  margin-top: 20px;
  overflow-x: auto;
  padding-bottom: 10px;
}

.media-preview img,
.media-preview video {
  flex-shrink: 0;
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 12px;
  border: 2px solid #e0e0e0;
}

/* Submit Button */
.submit-btn {
  width: 100%;
  padding: 18px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.submit-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4);
}

.submit-btn i {
  margin-right: 10px;
}

/* Form Message */
.form-message {
  margin-top: 20px;
  padding: 15px;
  border-radius: 8px;
  text-align: center;
  font-weight: 600;
  display: none;
}

.form-message.success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
  display: block;
}

.form-message.error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
  display: block;
}

/* Responsive */
@media (max-width: 768px) {
  .section-title {
    font-size: 32px;
  }

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

  .review-form-container {
    padding: 25px;
  }

  .form-header h4 {
    font-size: 24px;
  }

  .rating-stars span {
    font-size: 28px;
  }

  .quote-text {
    font-size: 16px;
  }
}
/* ===== FOOTER & SOCIAL ICONS ===== */
footer {
  overflow-x: hidden; /* Ngăn tràn */
}

footer .p-4 {
  flex-wrap: wrap; /* Cho phép xuống hàng */
}

.social-icons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap; /* ✅ Cho phép xuống hàng */
  justify-content: center;
}

.social-icons a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: white;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 24px;
  flex-shrink: 0; /* ✅ Không cho co lại */
}

/* Màu riêng cho từng icon */
.social-icons a.github   { color: #000 !important; }
.social-icons a.youtube  { color: #FF0000 !important; }
.social-icons a.facebook { color: #1877F2 !important; }

.social-icons a:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}

/* ===== RESPONSIVE FOOTER ===== */
@media (max-width: 768px) {
  footer .p-4 {
    flex-direction: column; /* ✅ Chuyển sang dọc */
    align-items: center !important;
    text-align: center;
    gap: 30px;
  }
  
  .footer-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
  }
  
  .social-icons {
    justify-content: center;
    width: 100%;
    padding: 0 15px;
  }
  
  .social-icons a {
    width: 44px;
    height: 44px;
    font-size: 20px;
  }
}

@media (max-width: 576px) {
  .social-icons {
    gap: 10px;
  }
  
  .social-icons a {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
}
/* ===== MEDIA IN REVIEWS (Ảnh & Video) ===== */
.media { 
  display: flex; 
  gap: 10px; 
  margin-top: 15px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 10px;
}

/* Scrollbar */
.media::-webkit-scrollbar {
  height: 6px;
}

.media::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.media::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 10px;
}

.media::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* ✅ ẢNH & VIDEO CÙNG KÍCH THƯỚC */
.media img,
.media video {
  flex-shrink: 0;
  width: 100px;
  height: 100px;
  object-fit: cover; /* ✅ Quan trọng: Cắt để vừa khung */
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.3s ease;
  display: block; /* ✅ Loại bỏ space dưới video */
}

.media img:hover,
.media video:hover {
  transform: scale(1.1);
}

/* Responsive cho mobile */
@media (max-width: 576px) {
  .media {
    gap: 8px;
    margin-top: 10px;
  }
  
  .media img,
  .media video {
    width: 80px;
    height: 80px;
  }
}

/* Tablet */
@media (max-width: 768px) and (min-width: 577px) {
  .media img,
  .media video {
    width: 90px;
    height: 90px;
  }
}

/* ===== REVIEW MEDIA (Trong review cards) ===== */
.review-media {
  display: flex;
  gap: 10px;
  margin-top: 15px;
  overflow-x: auto;
  padding-bottom: 10px;
  -webkit-overflow-scrolling: touch;
}

.review-media::-webkit-scrollbar {
  height: 4px;
}

.review-media::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.review-media::-webkit-scrollbar-thumb {
  background: #667eea;
  border-radius: 10px;
}

/* ✅ ẢNH & VIDEO CÙNG KÍCH THƯỚC */
.review-media img,
.review-media video {
  flex-shrink: 0;
  width: 100px;
  height: 100px;
  object-fit: cover; /* ✅ Cắt để vừa khung */
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid #f0f0f0;
  display: block; /* ✅ Loại bỏ space */
}

.review-media img:hover,
.review-media video:hover {
  transform: scale(1.05);
  border-color: #667eea;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

@media (max-width: 576px) {
  .review-media img,
  .review-media video {
    width: 80px;
    height: 80px;
  }
}

/* ===== MEDIA PREVIEW (Form upload) ===== */
.media-preview {
  display: flex;
  gap: 15px;
  margin-top: 20px;
  overflow-x: auto;
  padding: 15px 0;
  min-height: 60px;
  -webkit-overflow-scrolling: touch;
}

.media-preview:empty::before {
  content: 'Chưa có file nào được chọn';
  color: #999;
  font-size: 14px;
  font-style: italic;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

/* ✅ ẢNH & VIDEO TRONG PREVIEW */
.media-preview img,
.media-preview video {
  flex-shrink: 0;
  width: 120px;
  height: 120px;
  object-fit: cover; /* ✅ Cắt để vừa khung */
  border-radius: 12px;
  border: 2px solid #e0e0e0;
  position: relative;
  display: block; /* ✅ Loại bỏ space */
}

/* Preview item wrapper với nút xóa */
.preview-item {
  position: relative;
  flex-shrink: 0;
}

.preview-item img,
.preview-item video {
  width: 120px;
  height: 120px;
  object-fit: cover; /* ✅ Cắt để vừa khung */
  border-radius: 12px;
  border: 2px solid #e0e0e0;
  display: block; /* ✅ Loại bỏ space */
}

.preview-remove {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 28px;
  height: 28px;
  background: #ff4444;
  color: white;
  border: 2px solid white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  transition: all 0.3s ease;
  z-index: 10;
}

.preview-remove:hover {
  background: #cc0000;
  transform: scale(1.1);
}

/* Scrollbar cho preview */
.media-preview::-webkit-scrollbar {
  height: 8px;
}

.media-preview::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.media-preview::-webkit-scrollbar-thumb {
  background: #667eea;
  border-radius: 10px;
}

.media-preview::-webkit-scrollbar-thumb:hover {
  background: #5568d3;
}

/* Responsive preview */
@media (max-width: 576px) {
  .media-preview {
    gap: 10px;
  }
  
  .preview-item img,
  .preview-item video {
    width: 100px;
    height: 100px;
  }
}
.security-badges {
  opacity: 0.8;
  transition: opacity 0.3s;
}

.security-badges img {
  filter: grayscale(20%);
  transition: filter 0.3s;
}

.security-badges img:hover {
  filter: grayscale(0%);
}
.ai-chat-widget {
        position: fixed;
        bottom: 24px;
        right: 24px;
        z-index: 9999;
        font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
      }
      
      .ai-chat-button {
        width: 64px;
        height: 64px;
        border-radius: 50%;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        border: none;
        box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
      }
      
      .ai-chat-button:hover {
        transform: scale(1.1);
      }
      
      .ai-chat-button svg {
        width: 32px;
        height: 32px;
        stroke: white;
        fill: none;
        stroke-width: 2;
      }
      
      @keyframes bounce {
        0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
        40% { transform: translateY(-10px); }
        60% { transform: translateY(-5px); }
      }
      
      .ai-chat-window {
        position: fixed;
        bottom: 24px;
        right: 24px;
        width: 380px;
        height: 600px;
        background: white;
        border-radius: 16px;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
        display: none;
        flex-direction: column;
        overflow: hidden;
        animation: slideUp 0.3s ease;
      }
      
      .ai-chat-window.active {
        display: flex;
      }
      
      @keyframes slideUp {
        from {
          opacity: 0;
          transform: translateY(20px);
        }
        to {
          opacity: 1;
          transform: translateY(0);
        }
      }
      
      .ai-chat-header {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        padding: 16px;
        display: flex;
        align-items: center;
        justify-content: space-between;
      }
      
      .ai-chat-header-info {
        display: flex;
        align-items: center;
        gap: 12px;
      }
      
      .ai-chat-avatar {
        width: 40px;
        height: 40px;
        background: white;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 24px;
      }
      
      .ai-chat-title h3 {
        margin: 0;
        font-size: 18px;
        font-weight: 600;
      }
      
      .ai-chat-title p {
        margin: 0;
        font-size: 12px;
        opacity: 0.9;
      }
      
      .ai-chat-close {
        background: rgba(255, 255, 255, 0.2);
        border: none;
        width: 32px;
        height: 32px;
        border-radius: 8px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: background 0.2s;
      }
      
      .ai-chat-close:hover {
        background: rgba(255, 255, 255, 0.3);
      }
      
      .ai-chat-close svg {
        width: 20px;
        height: 20px;
        stroke: white;
        fill: none;
        stroke-width: 2;
      }
      
      .ai-chat-messages {
        flex: 1;
        overflow-y: auto;
        padding: 16px;
        background: #f7fafc;
        display: flex;
        flex-direction: column;
        gap: 12px;
      }
      
      .ai-chat-message {
        display: flex;
        max-width: 80%;
        animation: fadeIn 0.3s ease;
      }
      
      @keyframes fadeIn {
        from {
          opacity: 0;
          transform: translateY(10px);
        }
        to {
          opacity: 1;
          transform: translateY(0);
        }
      }
      
      .ai-chat-message.user {
        align-self: flex-end;
      }
      
      .ai-chat-message.assistant {
        align-self: flex-start;
      }
      
      .ai-chat-message-content {
        padding: 12px 16px;
        border-radius: 16px;
        white-space: pre-line;
        line-height: 1.5;
      }
      
      .ai-chat-message.user .ai-chat-message-content {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        border-bottom-right-radius: 4px;
      }
      
      .ai-chat-message.assistant .ai-chat-message-content {
        background: white;
        color: #2d3748;
        border: 1px solid #e2e8f0;
        border-bottom-left-radius: 4px;
      }
      
      .ai-chat-typing {
        display: flex;
        gap: 4px;
        padding: 12px 16px;
        background: white;
        border-radius: 16px;
        border: 1px solid #e2e8f0;
        width: fit-content;
      }
      
      .ai-chat-typing span {
        width: 8px;
        height: 8px;
        background: #cbd5e0;
        border-radius: 50%;
        animation: typing 1.4s infinite;
      }
      
      .ai-chat-typing span:nth-child(2) {
        animation-delay: 0.2s;
      }
      
      .ai-chat-typing span:nth-child(3) {
        animation-delay: 0.4s;
      }
      
      @keyframes typing {
        0%, 60%, 100% {
          transform: translateY(0);
        }
        30% {
          transform: translateY(-10px);
        }
      }
      
      .ai-chat-quick-questions {
        padding: 12px 16px;
        background: #f7fafc;
        border-top: 1px solid #e2e8f0;
      }
      
      .ai-chat-quick-questions p {
        margin: 0 0 8px 0;
        font-size: 12px;
        color: #718096;
      }
      
      .ai-chat-quick-buttons {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
      }
      
      .ai-chat-quick-button {
        background: white;
        border: 1px solid #cbd5e0;
        padding: 6px 12px;
        border-radius: 20px;
        font-size: 12px;
        cursor: pointer;
        transition: all 0.2s;
      }
      
      .ai-chat-quick-button:hover {
        background: #edf2f7;
        border-color: #667eea;
      }
      
      .ai-chat-input-area {
        padding: 16px;
        background: white;
        border-top: 1px solid #e2e8f0;
      }
      
      .ai-chat-input-wrapper {
        display: flex;
        gap: 8px;
      }
      
      .ai-chat-input {
        flex: 1;
        border: 1px solid #cbd5e0;
        border-radius: 24px;
        padding: 10px 16px;
        font-size: 14px;
        outline: none;
        transition: border-color 0.2s;
      }
      
      .ai-chat-input:focus {
        border-color: #667eea;
      }
      
      .ai-chat-send {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        border: none;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: transform 0.2s;
      }
      
      .ai-chat-send:hover:not(:disabled) {
        transform: scale(1.05);
      }
      
      .ai-chat-send:disabled {
        opacity: 0.5;
        cursor: not-allowed;
      }
      
      .ai-chat-send svg {
        width: 20px;
        height: 20px;
        stroke: white;
        fill: none;
        stroke-width: 2;
      }
      
      .ai-chat-footer-text {
        text-align: center;
        font-size: 11px;
        color: #a0aec0;
        margin-top: 8px;
      }
      
      @media (max-width: 480px) {
        .ai-chat-window {
          width: calc(100vw - 32px);
          height: calc(100vh - 100px);
          bottom: 16px;
          right: 16px;
        }
      }
/* Custom File Upload - RỘNG HƠN */
.custom-file-upload {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 40px; /* ✅ Tăng từ 40px lên 60px */
  min-height: 250px; /* ✅ Đặt chiều cao tối thiểu */
  border: 3px dashed #e0e0e0;
  border-radius: 20px; /* ✅ Bo góc lớn hơn */
  cursor: pointer;
  transition: all 0.3s ease;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  position: relative;
  overflow: hidden;
  width: 100%; /* ✅ Chiếm full width */
  margin: 20px 0; /* ✅ Thêm khoảng cách trên/dưới */
}

.custom-file-upload::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
  transition: left 0.5s ease;
}

.custom-file-upload:hover::before {
  left: 100%;
}

.custom-file-upload:hover {
  border-color: #667eea;
  background: rgba(102, 126, 234, 0.05);
  transform: translateY(-5px); /* ✅ Tăng hiệu ứng nổi */
  box-shadow: 0 12px 35px rgba(102, 126, 234, 0.2); /* ✅ Shadow mạnh hơn */
  border-width: 4px; /* ✅ Border dày hơn khi hover */
}

.custom-file-upload.drag-over {
  border-color: #667eea;
  background: rgba(102, 126, 234, 0.15); /* ✅ Màu đậm hơn khi drag */
  border-style: solid;
  border-width: 4px;
  transform: scale(1.02); /* ✅ Phóng to nhẹ */
  box-shadow: 0 15px 45px rgba(102, 126, 234, 0.3);
}

.upload-icon {
  font-size: 80px; /* ✅ Tăng từ 60px lên 80px */
  margin-bottom: 20px;
  animation: float 3s ease-in-out infinite;
  filter: drop-shadow(0 4px 8px rgba(102, 126, 234, 0.2)); /* ✅ Thêm shadow cho icon */
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); } /* ✅ Float cao hơn */
}

.upload-text {
  text-align: center;
  max-width: 500px; /* ✅ Giới hạn width để text không quá dài */
}

.upload-text strong {
  display: block;
  font-size: 22px; /* ✅ Tăng từ 18px lên 22px */
  color: #333;
  margin-bottom: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.upload-text span {
  font-size: 16px; /* ✅ Tăng từ 14px lên 16px */
  color: #666;
  display: block;
  margin-top: 8px;
}

.file-count {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  padding: 10px 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 25px;
  color: white;
  font-weight: 600;
  font-size: 15px;
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
  animation: slideIn 0.3s ease;
}

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

.count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  background: white;
  color: #667eea;
  border-radius: 50%;
  font-weight: 800;
  font-size: 14px;
  padding: 0 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* Thêm gợi ý khi drag */
.custom-file-upload::after {
  content: '📂 Thả file vào đây';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 24px;
  font-weight: 700;
  color: #667eea;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.custom-file-upload.drag-over::after {
  opacity: 1;
}

.custom-file-upload.drag-over .upload-icon,
.custom-file-upload.drag-over .upload-text {
  opacity: 0.3;
}

/* Responsive */
@media (max-width: 768px) {
  .custom-file-upload {
    padding: 50px 30px;
    min-height: 220px;
    border-radius: 15px;
  }
  
  .upload-icon {
    font-size: 70px;
  }
  
  .upload-text strong {
    font-size: 20px;
  }
  
  .upload-text span {
    font-size: 15px;
  }
}

@media (max-width: 576px) {
  .custom-file-upload {
    padding: 40px 20px;
    min-height: 200px;
    border-radius: 12px;
  }
  
  .upload-icon {
    font-size: 60px;
  }
  
  .upload-text strong {
    font-size: 18px;
  }
  
  .upload-text span {
    font-size: 14px;
  }
  
  .custom-file-upload::after {
    font-size: 20px;
  }
}

/* Animation khi có file */
.file-count {
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
  }
  50% {
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.6);
  }
}
/* Thêm vào file CSS hoặc trong <style> tag */
.security-section {
  overflow-x: hidden;
}

@media (max-width: 768px) {
  .security-badges img {
    width: 100px !important;
    height: auto !important;
    max-width: 30%;
  }
}

@media (max-width: 480px) {
  .security-badges img {
    width: 80px !important;
    max-width: 28%;
  }
}
#products {
  scroll-margin-top: 120px; /* Điều chỉnh số này cho phù hợp với chiều cao navbar */
}
/* ===== PRODUCT DETAIL PROFESSIONAL STYLES ===== */

.product-detail-main {
  background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 50%, #f8f9fa 100%);
  min-height: 100vh;
  padding: 40px 0 80px;
}

/* Breadcrumb */
.product-breadcrumb {
  margin-bottom: 30px;
}

.breadcrumb {
  background: white;
  padding: 15px 20px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.breadcrumb-item a {
  color: #667eea;
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
  color: #764ba2;
}

.breadcrumb-item.active {
  color: #6c757d;
}

/* Product Detail Card */
.product-detail-card {
  background: white;
  border-radius: 25px;
  padding: 40px;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.08);
  margin-bottom: 40px;
}

/* Product Gallery */
.product-gallery {
  position: sticky;
  top: 100px;
}

.main-image-wrapper {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: #f8f9fa;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.badge-container {
  position: absolute;
  top: 20px;
  left: 20px;
  display: flex;
  gap: 10px;
  z-index: 10;
}

.badge-new,
.badge-hot {
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-new {
  background: linear-gradient(135deg, #28a745, #20c997);
  color: white;
  box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.badge-hot {
  background: linear-gradient(135deg, #ff6b35, #ff8c42);
  color: white;
  box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
  display: flex;
  align-items: center;
  gap: 5px;
}

.main-product-image {
  width: 100%;
  height: auto;
  aspect-ratio: 1/1;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.main-image-wrapper:hover .main-product-image {
  transform: scale(1.1);
}

.btn-zoom {
  position: absolute;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background: white;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  opacity: 0;
}

.main-image-wrapper:hover .btn-zoom {
  opacity: 1;
}

.btn-zoom:hover {
  transform: scale(1.1);
  background: #667eea;
  color: white;
}

/* Product Info */
.product-info {
  padding-left: 20px;
}

.product-title {
  font-size: 36px;
  font-weight: 800;
  color: #1a1a1a;
  margin-bottom: 15px;
  line-height: 1.3;
}

/* Rating */
.product-rating {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 25px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e9ecef;
}

.stars {
  display: flex;
  gap: 4px;
  color: #ffc107;
  font-size: 20px;
}

.rating-text {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a;
}

.review-count {
  color: #6c757d;
  font-size: 15px;
}

/* Price Section */
.price-section {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.current-price {
  font-size: 42px;
  font-weight: 900;
  background: linear-gradient(135deg, #ff6b35 0%, #ff8c42 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.currency {
  font-size: 24px;
}

.original-price {
  font-size: 24px;
  color: #999;
  text-decoration: line-through;
}

.discount-badge {
  background: linear-gradient(135deg, #ff6b35 0%, #ff8c42 100%);
  color: white;
  padding: 6px 12px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 16px;
}

/* Product Description */
.product-description {
  margin-bottom: 30px;
  padding: 25px;
  background: #f8f9fa;
  border-radius: 15px;
  border-left: 4px solid #667eea;
}

.description-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #1a1a1a;
}

.description-text {
  font-size: 16px;
  line-height: 1.7;
  color: #555;
  margin: 0;
}

/* Product Features */
.product-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin-bottom: 35px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px;
  background: white;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.feature-item:hover {
  border-color: #667eea;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.15);
}

.feature-item i {
  font-size: 24px;
  color: #667eea;
}

.feature-item span {
  font-size: 14px;
  font-weight: 600;
  color: #555;
}

/* Product Actions */
.product-actions {
  margin-bottom: 30px;
}

.quantity-selector {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.quantity-label {
  font-size: 16px;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0;
}

.quantity-controls {
  display: flex;
  align-items: center;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  overflow: hidden;
}

.btn-quantity {
  width: 45px;
  height: 45px;
  background: white;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 20px;
}

.btn-quantity:hover {
  background: #667eea;
  color: white;
}

.quantity-input {
  width: 70px;
  height: 45px;
  border: none;
  border-left: 2px solid #e9ecef;
  border-right: 2px solid #e9ecef;
  text-align: center;
  font-size: 18px;
  font-weight: 700;
}

.quantity-input:focus {
  outline: none;
}

/* Action Buttons */
.action-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.action-buttons form {
  flex: 1;
}

.btn-buy-now {
  width: 100%;
  padding: 18px 30px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.btn-buy-now:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(102, 126, 234, 0.5);
}

.btn-add-cart {
  flex: 1;
  padding: 18px 30px;
  background: white;
  color: #667eea;
  border: 2px solid #667eea;
  border-radius: 12px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s ease;
}

.btn-add-cart:hover {
  background: #667eea;
  color: white;
  transform: translateY(-3px);
}

.btn-wishlist {
  width: 60px;
  height: 60px;
  background: white;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #ff6b6b;
  transition: all 0.3s ease;
}

.btn-wishlist:hover {
  background: #ff6b6b;
  color: white;
  border-color: #ff6b6b;
  transform: scale(1.05);
}

/* Availability */
.availability-info {
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 20px 0;
  border-top: 1px solid #e9ecef;
  border-bottom: 1px solid #e9ecef;
  margin-bottom: 25px;
}

.stock-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
}

.stock-status.in-stock {
  color: #28a745;
}

.stock-status i {
  font-size: 20px;
}

.sku-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.sku-info .label {
  color: #6c757d;
}

.sku-info .value {
  font-weight: 700;
  color: #1a1a1a;
}

/* Share Section */
.product-meta {
  margin-bottom: 20px;
}

.share-section {
  display: flex;
  align-items: center;
  gap: 15px;
}

.share-label {
  font-size: 16px;
  font-weight: 600;
  color: #1a1a1a;
}

.share-buttons {
  display: flex;
  gap: 10px;
}

.share-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 18px;
}

.share-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.share-btn.facebook {
  background: #1877f2;
}

.share-btn.twitter {
  background: #1da1f2;
}

.share-btn.pinterest {
  background: #e60023;
}

.share-btn.link {
  background: #6c757d;
}

/* Product Tabs */
.product-tabs-section {
  background: white;
  border-radius: 25px;
  padding: 0;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.08);
  margin-bottom: 60px;
  overflow: hidden;
}

.product-tabs {
  border-bottom: 2px solid #e9ecef;
  padding: 0 40px;
}

.product-tabs .nav-link {
  padding: 20px 30px;
  color: #6c757d;
  font-weight: 600;
  font-size: 16px;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  position: relative;
}

.product-tabs .nav-link:hover {
  color: #667eea;
}

.product-tabs .nav-link.active {
  color: #667eea;
}

.product-tabs .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

.product-tab-content {
  padding: 40px;
}

.tab-inner h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #1a1a1a;
}

.tab-inner p {
  font-size: 16px;
  line-height: 1.7;
  color: #555;
  margin-bottom: 20px;
}

.detail-list {
  list-style: none;
  padding: 0;
}

.detail-list li {
  padding: 12px 0;
  padding-left: 30px;
  position: relative;
  font-size: 16px;
  color: #555;
}

.detail-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #28a745;
  font-weight: 700;
  font-size: 18px;
}
/* ===== SPECS TABLE STYLES ===== */
.specs-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.specs-table tbody tr {
  border-bottom: 1px solid #e9ecef;
  transition: background 0.3s ease;
}

.specs-table tbody tr:last-child {
  border-bottom: none;
}

.specs-table tbody tr:hover {
  background: #f8f9fa;
}

.specs-table td {
  padding: 18px 25px;
  font-size: 15px;
}

.spec-label {
  font-weight: 600;
  color: #6c757d;
  width: 40%;
  background: #f8f9fa;
}

.spec-value {
  color: #1a1a1a;
  font-weight: 500;
}

/* ===== REVIEWS SECTION STYLES ===== */
.reviews-summary {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 30px;
  border-radius: 15px;
  margin-bottom: 30px;
  text-align: center;
}

.overall-rating {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.rating-number {
  font-size: 56px;
  font-weight: 900;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.rating-stars {
  display: flex;
  gap: 5px;
  color: #ffc107;
  font-size: 24px;
}

.rating-count {
  font-size: 15px;
  color: #6c757d;
  margin-top: 5px;
}

/* Review Item */
.review-item {
  padding: 25px;
  background: #f8f9fa;
  border-radius: 15px;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.review-item:hover {
  background: #e9ecef;
  transform: translateY(-2px);
}

.review-header {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 15px;
  position: relative;
}

.reviewer-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 28px;
}

.reviewer-info {
  flex: 1;
}

.reviewer-name {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 8px 0;
}

.review-rating {
  display: flex;
  gap: 3px;
  color: #ffc107;
  font-size: 16px;
}

.review-date {
  font-size: 13px;
  color: #6c757d;
  position: absolute;
  top: 0;
  right: 0;
}

.review-content {
  padding-left: 65px;
}

.review-content p {
  font-size: 15px;
  line-height: 1.6;
  color: #555;
  margin: 0;
}

/* ===== SUPPORT SECTION STYLES ===== */
.support-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 25px;
  padding: 50px 40px;
  text-align: center;
  box-shadow: 0 15px 50px rgba(102, 126, 234, 0.3);
  margin-bottom: 40px;
}

.support-content {
  max-width: 600px;
  margin: 0 auto;
}

.support-title {
  font-size: 32px;
  font-weight: 800;
  color: white;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.support-title i {
  font-size: 36px;
  animation: steam 2s ease-in-out infinite;
}

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

.support-text {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 30px;
  line-height: 1.6;
}

.support-link {
  display: inline-block;
  margin-bottom: 20px;
  transition: transform 0.3s ease;
}

.support-link:hover {
  transform: scale(1.05);
}

.support-image {
  max-width: 220px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.support-url {
  display: inline-block;
  color: white;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  padding: 12px 25px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 25px;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.support-url:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  color: white;
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 991px) {
  .product-detail-card {
    padding: 30px 20px;
  }

  .product-info {
    padding-left: 0;
    margin-top: 30px;
  }

  .product-title {
    font-size: 28px;
  }

  .current-price {
    font-size: 36px;
  }

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

  .product-gallery {
    position: relative;
    top: 0;
  }
}

@media (max-width: 767px) {
  .product-detail-main {
    padding: 20px 0 40px;
  }

  .breadcrumb {
    padding: 12px 15px;
    font-size: 14px;
  }

  .product-detail-card {
    padding: 20px 15px;
    border-radius: 15px;
  }

  .product-title {
    font-size: 24px;
  }

  .current-price {
    font-size: 32px;
  }

  .product-description {
    padding: 20px;
  }

  .action-buttons {
    flex-direction: column;
  }

  .action-buttons form {
    width: 100%;
  }

  .btn-buy-now,
  .btn-add-cart {
    width: 100%;
  }

  .btn-wishlist {
    width: 100%;
  }

  .product-tabs {
    padding: 0 15px;
  }

  .product-tabs .nav-link {
    padding: 15px 12px;
    font-size: 14px;
  }

  .product-tab-content {
    padding: 25px 15px;
  }

  .support-section {
    padding: 40px 20px;
  }

  .support-title {
    font-size: 26px;
  }

  .support-text {
    font-size: 16px;
  }

  .spec-label {
    width: 50%;
  }

  .specs-table td {
    padding: 15px;
    font-size: 14px;
  }

  .review-content {
    padding-left: 0;
    margin-top: 10px;
  }

  .review-date {
    position: static;
    margin-top: 5px;
  }
}

@media (max-width: 480px) {
  .product-title {
    font-size: 20px;
  }

  .current-price {
    font-size: 28px;
  }

  .badge-new,
  .badge-hot {
    padding: 6px 12px;
    font-size: 11px;
  }

  .quantity-controls {
    width: 100%;
  }

  .quantity-input {
    flex: 1;
  }

  .share-section {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ===== THUMBNAIL GALLERY (Optional) ===== */
.thumbnail-gallery {
  display: flex;
  gap: 15px;
  margin-top: 20px;
  overflow-x: auto;
  padding: 10px 0;
}

.thumbnail-item {
  flex-shrink: 0;
  width: 100px;
  height: 100px;
  border-radius: 12px;
  overflow: hidden;
  border: 3px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
}

.thumbnail-item:hover {
  border-color: #667eea;
}

.thumbnail-item.active {
  border-color: #667eea;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

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

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.product-detail-card {
  animation: fadeInUp 0.6s ease;
}

.product-tabs-section {
  animation: fadeInUp 0.6s ease 0.2s both;
}

.support-section {
  animation: fadeInUp 0.6s ease 0.4s both;
}
/* ===== NOTIFICATION STYLES ===== */
.product-notification {
  position: fixed;
  top: 20px;
  right: -400px;
  background: white;
  padding: 18px 25px;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  z-index: 10000;
  font-size: 16px;
  font-weight: 600;
  transition: right 0.3s ease;
  max-width: 350px;
}

.product-notification.show {
  right: 20px;
}

.product-notification.success {
  border-left: 4px solid #28a745;
  color: #28a745;
}

.product-notification.info {
  border-left: 4px solid #17a2b8;
  color: #17a2b8;
}

.product-notification.error {
  border-left: 4px solid #dc3545;
  color: #dc3545;
}

/* ===== WISHLIST ACTIVE STATE ===== */
.btn-wishlist.active {
  background: #ff6b6b;
  color: white;
  border-color: #ff6b6b;
}

/* ===== IMAGE ZOOM MODAL ===== */
.image-zoom-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.3s ease;
}

.zoom-modal-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
}

.zoom-modal-content img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 12px;
}

.zoom-close {
  position: absolute;
  top: -50px;
  right: 0;
  width: 45px;
  height: 45px;
  background: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: all 0.3s ease;
}

.zoom-close:hover {
  background: #ff6b6b;
  color: white;
  transform: rotate(90deg);
}

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

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .product-notification {
    right: -100%;
    max-width: calc(100% - 40px);
  }
  
  .product-notification.show {
    right: 20px;
  }

  .zoom-close {
    top: 10px;
    right: 10px;
  }
}
.cart-badge {
  font-size: 13px;        /* ✅ Font nhỏ */

}

.article-body {
  font-size: 1.125rem;
  line-height: 1.8;
  color: #2c3e50;
}

.content-paragraph {
  margin-bottom: 1.75rem;
  text-align: justify;
  hyphens: auto;
}

.content-paragraph:first-of-type::first-letter {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1;
  float: left;
  margin: 0.1rem 0.5rem 0 0;
  color: #0d6efd;
}
/* Headings */
.content-heading {
  font-weight: 700;
  color: #1a1a1a;
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  line-height: 1.3;
  position: relative;
  padding-left: 1rem;
  border-left: 4px solid #0d6efd;
}

.heading-2 {
  font-size: 2rem;
}

.heading-3 {
  font-size: 1.5rem;
}

.heading-4 {
  font-size: 1.25rem;
}
.comparison-wrapper {
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  overflow: hidden;
  margin: 2rem 0;
}

.comparison-tabs {
  display: flex;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 0.5rem;
  gap: 0.5rem;
  overflow-x: auto;
}

.tab-button {
  flex: 1;
  min-width: 150px;
  padding: 1rem 1.5rem;
  border: none;
  background: rgba(255,255,255,0.1);
  color: white;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.tab-button:hover {
  background: rgba(255,255,255,0.2);
  transform: translateY(-2px);
}

.tab-button.active {
  background: white;
  color: #667eea;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.comparison-content {
  padding: 2.5rem;
}

.tab-panel {
  animation: fadeIn 0.4s ease;
}

.tab-panel.hidden {
  display: none;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.btn-back-to-blog {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  text-decoration: none;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1.05rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-back-to-blog:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
  color: white;
}

.btn-back-to-blog i {
  transition: transform 0.3s ease;
}

.btn-back-to-blog:hover i {
  transform: translateX(-4px);
}


.section-title {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);

  -webkit-text-fill-color: transparent;
  background-clip: text;

  font-size: 1.5rem;
  font-weight: 700;
}

.section-title i {
  font-size: 1.75rem;
}

.related-product-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  gap: 1.5rem;
  align-items: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.related-product-card:hover {
  transform: translateY(-4px);
}

.product-image-link {
  flex-shrink: 0;
}

.product-image {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.product-info {
  flex: 1;
}

.product-name {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.product-name a {
  color: #1a1a1a;
  text-decoration: none;
  transition: color 0.3s ease;
}

.product-name a:hover {
  color: #0d6efd;
}

.product-description {
  color: #6c757d;
  margin-bottom: 1rem;
  font-size: 0.95rem;
  line-height: 1.6;
}

.btn-view-product {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-view-product:hover {
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
  color: white;
}
/* ===== MOBILE PRODUCT GRID - 2 SẢN PHẨM 1 HÀNG ===== */

/* Điều chỉnh card product cho mobile */
@media (max-width: 767px) {
  /* Container chính */
  #products .row {
    margin: 0 -8px; /* Giảm margin để tận dụng không gian */
  }
  
  /* Mỗi cột sản phẩm */
  #products .col-6 {
    padding: 0 8px; /* Padding nhỏ hơn */
    margin-bottom: 16px;
  }
  
  /* Card sản phẩm */
  .cardproduct {
    padding: 12px; /* Giảm padding */
    border-radius: 12px;
  }
  
  /* Ảnh sản phẩm */
  .image-container {
    height: 140px; /* Giảm chiều cao ảnh */
    margin-bottom: 10px;
  }
  
  .cardproduct img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  /* Tiêu đề sản phẩm */
  .cardproduct h5,
  .cardproduct .nav-link {
    font-size: 14px; /* Font nhỏ hơn */
    line-height: 1.3;
    min-height: 36px; /* Giảm min-height */
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Giới hạn 2 dòng */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  /* Giá sản phẩm */
  .cardproduct p {
    font-size: 16px; /* Giảm size giá */
    font-weight: 700;
    margin-bottom: 10px;
  }
  
  /* Nút action */
  .product-actions {
    gap: 6px;
    padding: 8px;
  }
  
  .btn-buy-now {
    padding: 10px 12px;
    font-size: 13px;
  }
  
  .btn-add-cart-icon {
    width: 36px !important;
    height: 36px !important;
    font-size: 16px;
  }
}

/* Cho màn hình rất nhỏ (< 360px) */
@media (max-width: 359px) {
  #products .row {
    margin: 0 -5px;
  }
  
  #products .col-6 {
    padding: 0 5px;
  }
  
  .cardproduct {
    padding: 10px;
  }
  
  .image-container {
    height: 120px;
  }
  
  .cardproduct h5,
  .cardproduct .nav-link {
    font-size: 13px;
    min-height: 32px;
  }
  
  .cardproduct p {
    font-size: 15px;
  }
  
  .btn-buy-now {
    padding: 8px 10px;
    font-size: 12px;
  }
  
  .btn-add-cart-icon {
    width: 32px !important;
    height: 32px !important;
  }
}

/* Tablet (768px - 991px) - Có thể giữ 3 hoặc 4 sản phẩm */
@media (min-width: 768px) and (max-width: 991px) {
  .cardproduct {
    padding: 16px;
  }
  
  .image-container {
    height: 180px;
  }
  
  .cardproduct h5,
  .cardproduct .nav-link {
    font-size: 15px;
    min-height: 42px;
  }
}