/* --- RESET CSS --- */
* {
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
  scroll-behavior: smooth; /* Cuộn mượt mà */
}

body {
  font-family: "Segoe UI", sans-serif;
  line-height: 1.5;
  margin: 0;
  color: #333;
  padding-top: 85px; /* Để nội dung không bị Header che */
}

a {
  text-decoration: none;
  color: inherit;
}

/* --- COMMON --- */
.container {
  width: 1170px;
  max-width: calc(100% - 48px);
  margin: 0 auto;
}

.highlight {
  color: #ee4d2d;
}

/* XỬ LÝ LỖI HEADER CHE NỘI DUNG KHI CLICK MENU */
#trang-chu,
#san-pham,
#lien-he {
  scroll-margin-top: 100px;
}

/* --- HEADER --- */
.heading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  background-color: #fff;
  padding: 15px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.heading__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.heading__list {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 30px;
  font-size: 1.6rem;
  font-weight: 600;
}

.heading__list a:hover {
  color: #ee4d2d;
}

/* --- INTRO SECTION --- */
.intro {
  padding: 60px 0;
  background-color: #fff;
  border-bottom: 1px solid #eee;
}

.intro__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
}

.intro__content {
  flex: 1;
  max-width: 600px;
}

.intro__title {
  font-size: 4rem;
  line-height: 1.2;
  font-weight: 800;
  color: #111;
  margin-bottom: 20px;
  margin-top: 0;
}

.intro__desc {
  font-size: 1.6rem;
  color: #555;
  margin-bottom: 30px;
}

.intro__btn {
  display: inline-block;
  padding: 12px 30px;
  background-color: #ee4d2d;
  color: #fff;
  font-size: 1.6rem;
  font-weight: 600;
  border-radius: 50px;
  transition: 0.3s;
  box-shadow: 0 4px 15px rgba(238, 77, 45, 0.3);
}

.intro__btn:hover {
  background-color: #d03415;
  transform: translateY(-2px);
}

.intro__image {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.intro__image img {
  width: 100%;
  max-width: 500px;
  border-radius: 20px;
  transform: rotate(-3deg);
  box-shadow: 20px 20px 0px #f2f2f2;
}

/* --- HERO SECTION (SẢN PHẨM) --- */
.hero {
  min-height: 100vh;
  padding: 60px 0;
  background-color: #fff;
}

.hero__namelist {
  font-size: 2.8rem;
  margin-bottom: 40px;
  font-weight: 700;
  text-align: center;
}

.hero__menu {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

/* --- CARD --- */
.card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.card__images {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.card__title {
  font-size: 1.8rem;
  font-weight: bold;
  padding: 15px 15px 5px;
  margin: 0;
}

.card__desc {
  font-size: 1.4rem;
  color: #666;
  padding: 0 15px;
  margin-bottom: 15px;
}

.card__price {
  font-size: 1.8rem;
  color: #ee4d2d;
  font-weight: 700;
  padding: 0 15px;
  margin-bottom: 15px;
}

.card__action {
  padding: 0 15px 20px;
  margin-top: auto;
}

.card__btn {
  display: block;
  width: 100%;
  padding: 12px 0;
  background-color: #ee4d2d;
  color: #fff !important;
  font-size: 1.6rem;
  font-weight: 600;
  text-align: center;
  border-radius: 6px;
  border: 1px solid #ee4d2d;
  transition: all 0.3s ease;
}

.card__btn:hover {
  background-color: #fff;
  color: #ee4d2d !important;
  cursor: pointer;
}

/* --- FOOTER --- */
.footer {
  background-color: #fafafa;
  margin-top: 60px;
  padding: 60px 0;
  border-top: 1px solid #eee;
}

.footer__row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.footer__title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #000;
  margin-bottom: 20px;
}

.footer__list {
  padding: 0;
  margin: 0;
  list-style: none;
}

.footer__list li {
  margin-bottom: 12px;
}

.footer__list a {
  font-size: 1.4rem;
  color: #666;
  transition: 0.3s;
}

.footer__list a:hover {
  color: #ee4d2d;
  text-decoration: underline;
}

/* CSS cho phần Nhà Phát Triển */
.NhaPhatTrien {
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px solid #ddd;
  text-align: center;
  font-size: 1.6rem;
  color: #666;
}

.branch {
  font-weight: 700;
  color: #ee4d2d;
  text-transform: uppercase;
  margin-bottom: 8px;
  font-size: 1.8rem;
}

.ceo,
.idcard {
  margin-bottom: 5px;
  font-style: normal;
}

.idcard {
  font-family: monospace;
  color: #888;
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
  .hero__menu {
    grid-template-columns: repeat(2, 1fr);
  }

  .card__images {
    height: 200px;
  }

  .intro__title {
    font-size: 3.2rem;
  }
}

@media (max-width: 768px) {
  .heading__nav {
    flex-direction: column;
    gap: 15px;
  }
  .intro__row {
    flex-direction: column-reverse;
    text-align: center;
    gap: 30px;
  }

  .intro__image {
    justify-content: center;
  }

  .intro__image img {
    max-width: 80%;
    transform: rotate(0);
    box-shadow: none;
  }

  .intro__title {
    font-size: 2.8rem;
  }

  .hero__menu {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  .footer__row {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
}
