/* Reset & Cơ bản */
html,
body {
  overflow-x: hidden; /* Cấm trượt ngang toàn trang web */
  width: 100%;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  background-color: #f1e9f5; /* Nền tím nhạt */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Header & Navigation */
.navbar {
  background-color: #e61e25; /* Màu đỏ chủ đạo */
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 50px;
  position: relative;
}

.logo {
  font-size: 24px;
  font-weight: bold;
  white-space: nowrap;
}

#mainMenu {
  display: flex;
  align-items: center;
  position: relative;
  margin: 0;
  padding: 0;
}

.menu-toggle {
  display: none; /* Ẩn trên máy tính */
  font-size: 26px;
  cursor: pointer;
  color: white;
  background: none;
  border: none;
  padding: 0;
}

#mainMenu p {
  margin-left: 20px;
  color: white;
  font-size: 14px;
}

#mainMenu a {
  color: white;
  text-decoration: none;
  font-size: 14px;
  margin-left: 20px;
  display: inline-block;
  padding: 5px 0;
  cursor: pointer;
  position: relative;
  white-space: nowrap;
}

#mainMenu a.active {
  border-bottom: 2px solid white;
  font-weight: bold;
}

/* Dropdown Danh Sách Điện Thoại */
.phone-dropdown {
  position: relative; /* Đảm bảo menu con căn theo nút này */
}

#phoneList {
  position: absolute;
  top: 100%; /* Nằm ngay dưới chữ nút */
  left: 0; /* Căn đều sát lề trái của nút thay vì lệch 70px */
  background: #e61e25;
  width: 180px;
  display: none;
  padding: 5px 0;
  border-radius: 5px;
  z-index: 999;
  list-style: none;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

#phoneList li {
  padding: 10px 15px;
  color: white;
  cursor: pointer;
  text-align: left;
}

#phoneList li:hover {
  background-color: #c71a20;
}
list-style: none;
padding-left: 0;
margin: 0;

/* Hiển thị dropdown khi hover hoặc khi có class show từ JS */
.phone-dropdown:hover #phoneList,
#phoneList.show {
  display: block;
}

/* ===================== */
/* NỘI DUNG CHÍNH / CARD */
/* ===================== */
.container {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
}

.about-card {
  background: white;
  width: 100%;
  max-width: 850px;
  padding: 50px 60px;
  border-radius: 10px;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
  text-align: center;
}

.about-card h1 {
  font-size: 26px;
  color: #333;
  font-weight: 500;
  margin-bottom: 20px;
}

.line-break {
  border: 0;
  border-top: 1px solid #eeeeee;
  margin-bottom: 40px;
}

.content-text {
  text-align: left;
}

.content-text p {
  font-size: 15px;
  color: #555;
  line-height: 1.8;
  margin-bottom: 20px;
}

.content-text p:last-child {
  margin-bottom: 0;
}

/* ===================== */
/* FOOTER */
/* ===================== */
footer {
  padding: 20px;
  text-align: center;
  color: #888;
  font-size: 13px;
  background-color: #f1e9f5;
}

/* ===================== */
/* MOBILE RESPONSIVE */
/* ===================== */
@media (max-width: 768px) {
  .navbar {
    padding: 15px 25px;
  }

  .menu-toggle {
    display: block; /* Hiện nút 3 gạch trên mobile */
  }

  #mainMenu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #e61e25;
    flex-direction: column;
    align-items: stretch; /* Ép các thành phần co giãn hết chiều ngang */
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0;
    margin: 0;
    z-index: 1000;
  }

  /* Khi Menu chính được bật class .show từ JavaScript */
  #mainMenu.show {
    max-height: 600px;
  }

  #mainMenu a,
  #mainMenu p {
    margin-left: 0;
    margin-top: 0;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    text-align: left; /* Căn trái toàn bộ chữ */
    width: 100%;
    box-sizing: border-box;
    display: block;
  }

  .phone-dropdown {
    width: 100%;
  }

  /* Tối ưu Dropdown trên Mobile */
  #phoneList {
    position: static; /* Biến thành menu dạng khối tĩnh thụt lề */
    width: 100%;
    background: #c71a20;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
  }

  #phoneList li {
    padding: 14px 40px; /* Thụt lề sâu hơn để phân cấp menu */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  #phoneList li:last-child {
    border-bottom: none;
  }

  .about-card {
    padding: 30px 25px;
  }

  .about-card h1 {
    font-size: 22px;
  }

  .content-text p {
    font-size: 14px;
    margin-bottom: 15px;
  }
}

@media (max-width: 576px) {
  .hero {
    height: 200px;
  }

  .hero h1 {
    font-size: 24px;
  }

  .products h2 {
    font-size: 18px;
  }

  .product-card {
    min-width: 140px;
    width: 140px;
  }

  .product-card img {
    width: 110px;
    height: 120px;
  }
}
