/* ===== RESET ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background: #f5f5f5;
}

img {
  max-width: 100%;
  height: auto;
}

/* ===== HEADER ===== */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: linear-gradient(90deg, #0d47a1, #1976d2);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 999;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  width: 60px;
}

.logo span {
  font-size: 18px;
  font-weight: bold;
}

/* ===== MENU ===== */
nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

nav a {
  text-decoration: none;
  color: #fff;
  font-weight: bold;
  padding: 10px 0;
}

/* DROPDOWN */
.menu-item {
  position: relative;
}

.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  min-width: 180px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.dropdown a {
  display: block;
  padding: 10px;
  color: black;
}

.dropdown a:hover {
  background: #f0f0f0;
}

/* ===== DROPDOWN FIX ===== */
.menu-item {
  position: relative;
}

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  min-width: 180px;
  border-radius: 8px;

  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;

  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  z-index: 1000;
}

.dropdown.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.dropdown a {
  display: block;
  padding: 12px;
  color: black;
}

.dropdown a:hover {
  background: #f2f2f2;
  padding-left: 18px;
}
/* ===== HOTLINE ===== */
.hotline {
  background: red;
  border-radius: 30px;
  padding: 6px 14px;
  font-weight: bold;
  animation: rung 1s infinite;
}

.hotline a {
  color: white;
  text-decoration: none;
}

/* ===== SLIDER ===== */
.slide {
  display: none;
}

.slide.active {
  display: block;
}

/* ===== LAYOUT ===== */
.container {
  display: flex;
  align-items: flex-start; /* QUAN TRỌNG */
}
.sidebar {
  width: 200px;
  padding: 15px;
  background: #eee;

  flex-shrink: 0; /* KHÔNG cho co lại */
}
.sidebar li {
  list-style: none;
  padding: 10px;
  font-weight: bold;
  color: #1976d2;
  cursor: pointer;
}

/* ===== PRODUCTS ===== */
.product-grid {
  flex: 1;
  padding: 20px;
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(3, 1fr);
}

.card {
  padding: 15px;
  text-align: center;
  background: #fff;
  border-radius: 12px;
  transition: 0.3s;
  cursor: pointer;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.2);
}

.card img {
  height: 200px;
  object-fit: contain;
}

.price {
  color: red;
  font-weight: bold;
}

/* ===== DETAIL ===== */
.detail-box {
  display: flex;
  gap: 30px;
  padding: 20px;
}

.left {
  width: 60%;
}

.right {
  width: 40%;
}

.main-img {
  width: 100%;
  border-radius: 10px;
}

.left-content {
  margin-top: 20px;
  line-height: 1.6;
}

/* ===== BẢNG ===== */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
  font-size: 15px;
  border-radius: 10px;
  overflow: hidden;
}

.spec-table td {
  padding: 12px 15px;
  border: 1px solid #ddd;
}

.spec-table td:first-child {
  width: 45%;
  font-weight: bold;
  background: #1976d2;
  color: #fff;
}

.spec-table td:last-child {
  width: 55%;
  background: #f9f9f9;
}

.spec-table tr:nth-child(even) td:last-child {
  background: #eef5ff;
}

.spec-table tr:hover td {
  background: #e3f2fd;
}

/* dòng tiêu đề */
.spec-table td[colspan="2"] {
  text-align: center;
  font-weight: bold;
  background: linear-gradient(90deg, #0d47a1, #1976d2);
  color: white;
  font-size: 16px;
}

/* ===== BUTTON ===== */
.btn-call {
  display: inline-block;
  background: red;
  color: white;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
}

/* ===== ZALO ===== */
.zalo-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
}

.zalo-btn img {
  width: 55px;
  height: 55px;
  border-radius: 50%;
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {

  header {
    justify-content: space-between;
  }

  /* ẨN MENU */
  nav {
    display: none;
  }

  .container {
    flex-direction: column;
  }

  .sidebar {
    display: none;
  }

  /* 2 cột mobile */
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 10px;
  }

  .card img {
    height: 120px;
  }

  .detail-box {
    flex-direction: column;
  }

  .left,
  .right {
    width: 100%;
  }

  .spec-table td {
    font-size: 13px;
    padding: 8px;
  }

  .zalo-btn img {
    width: 45px;
    height: 45px;
  }
}

/* ===== HOTLINE ANIMATION ===== */
@keyframes rung {
  0% { transform: scale(1) rotate(0); }
  25% { transform: scale(1.05) rotate(5deg); }
  50% { transform: scale(1) rotate(0); }
  75% { transform: scale(1.05) rotate(-5deg); }
  100% { transform: scale(1) rotate(0); }
}
/* ===== DÒNG TIÊU ĐỀ XANH ===== */
.spec-table td[colspan="2"] {
  background: linear-gradient(90deg, #0d47a1, #1976d2) !important;
  color: #fff !important;
  text-align: center;
  font-size: 17px;
  font-weight: bold;
  letter-spacing: 1px;
  padding: 12px;
  border-top: 3px solid #0b3c91;
  border-bottom: 3px solid #0b3c91;
}
/* ===== ZALO RUNG RUNG ===== */
.zalo-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
  animation: zaloRung 1.2s infinite;
}

.zalo-btn img {
  width: 55px;
  height: 55px;
  border-radius: 50%;
}

/* hiệu ứng rung + nhún nhẹ */
@keyframes zaloRung {
  0% { transform: scale(1) rotate(0); }
  25% { transform: scale(1.1) rotate(8deg); }
  50% { transform: scale(1) rotate(0); }
  75% { transform: scale(1.1) rotate(-8deg); }
  100% { transform: scale(1) rotate(0); }
}
.zalo-btn img {
  box-shadow: 0 0 0 rgba(0, 132, 255, 0.7);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 132, 255, 0.7);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(0, 132, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 132, 255, 0);
  }
}
.dropdown {
  display: none;
  opacity: 0;
  transition: 0.3s;
}

.dropdown.show {
  display: block;
  opacity: 1;
}
/* hover hiện menu */
.menu-item:hover .dropdown {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* ===== FIX ẢNH NHỎ BÊN PHẢI (KHÔNG ĐỤNG CODE CŨ) ===== */


/* ép kích thước ảnh */
.right-thumbs img {
  width: 140px !important;
  height: 100px !important;
  object-fit: cover !important;
  border-radius: 20px;
}


/* hover cho đẹp */
.right-thumbs img:hover {
  transform: scale(1.05);
  border: 4px solid #1976d2;
}
.tips-mini {
  background: #fff;
  padding: 12px;
  border-radius: 10px;
  margin-top: 15px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.tips-mini h3 {
  font-size: 16px;
  color: #1976d2;
  margin-bottom: 10px;
}

.tip-item {
  display: block;
  font-size: 14px;
  padding: 8px;
  margin-bottom: 6px;
  text-decoration: none;
  color: #333;
  border-radius: 6px;
  transition: 0.3s;
}

.tip-item:hover {
  background: #e3f2fd;
  color: #1976d2;
  padding-left: 12px;
}

.tips-mini {
  background: linear-gradient(135deg, #e3f2fd, #ffffff);
  padding: 14px;
  border-radius: 12px;
  margin-top: 15px;
  border-left: 5px solid #1976d2;
  box-shadow: 0 6px 15px rgba(0,0,0,0.15);
  position: relative;
}

/* thêm icon góc */
.tips-mini::before {
  content: "🔥";
  position: absolute;
  top: -10px;
  right: -10px;
  font-size: 22px;
}
/* nút 3 gạch */
.menu-toggle {
  font-size: 28px;
  color: white;
  cursor: pointer;
  display: none;
}

/* menu ẩn */
.mobile-menu {
  position: absolute;
  top: 70px;
  right: 10px;
  background: white;
  width: 200px;
  border-radius: 8px;
  display: none;
  flex-direction: column;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.mobile-menu a {
  padding: 12px;
  text-decoration: none;
  color: black;
  border-bottom: 1px solid #eee;
}

.mobile-menu a:hover {
  background: #f5f5f5;
}

/* chỉ hiện trên mobile */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
}
.mobile-menu {
  display: none; /* 👈 QUAN TRỌNG */
}
.menu-toggle {
  display: none;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
    font-size: 28px;
    color: white;
  }
}
.product img {
  width: 100%;
  height: 180px;   /* 👈 giảm xuống */
  object-fit: cover;
  border-radius: 8px;
}
.product {
  padding: 10px;
}

.product h3 {
  font-size: 16px;
}

.product p {
  font-size: 14px;
}