/* ========== TOÀN TRANG CHUNG ========== */
* {
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: linear-gradient(to right, #a8dadc, #f1faee);
  color: #1d3557;
  animation: fadeIn 1s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ========== HEADER ========== */
header {
  background-color: #1d3557;
  color: white;
  text-align: center;
  padding: 20px 10px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

header h1 {
  margin: 0;
  font-size: 28px;
  letter-spacing: 1px;
}

nav {
  margin-top: 10px;
}

nav a {
  color: white;
  text-decoration: none;
  margin: 0 15px;
  padding: 8px 14px;
  font-weight: 500;
  border-radius: 8px;
  transition: 0.3s;
}

nav a:hover, nav a.active {
  background-color: #457b9d;
  color: #f1faee;
}

/* ========== TRANG CHỦ ========== */
.hero {
  text-align: center;
  padding: 80px 20px;
  background: linear-gradient(to right, #f1faee, #a8dadc);
  border-radius: 25px;
  margin: 50px auto;
  width: 80%;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  transition: transform 0.3s ease;
}

.hero:hover {
  transform: translateY(-5px);
}

.hero h2 {
  font-size: 30px;
  color: #1d3557;
  margin-bottom: 15px;
  border-bottom: 3px solid #457b9d;
  display: inline-block;
  padding-bottom: 5px;
}

.hero p {
  font-size: 17px;
  margin-bottom: 25px;
  color: #333;
}

.btn {
  background-color: #457b9d;
  color: white;
  text-decoration: none;
  padding: 12px 22px;
  border-radius: 10px;
  transition: 0.3s;
}

.btn:hover {
  background-color: #1d3557;
}

/* ========== TRANG GIỚI THIỆU ========== */
.about {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 60px 20px;
  background: linear-gradient(135deg, #f7f9fb, #e7ecf5);
  min-height: 100vh;
}

.about-container {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
  max-width: 1000px;
  padding: 40px;
  gap: 40px;
  animation: fadeIn 1s ease;
}

.about-img {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.about-img:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(0,0,0,0.25);
}

.about-text h2 {
  font-size: 26px;
  color: #333;
  margin-bottom: 10px;
}

.about-text h2 span {
  color: #4e73df;
}

.intro {
  color: #555;
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 15px;
}

.info-box {
  background: #f0f4ff;
  padding: 15px;
  border-radius: 10px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.info-box p {
  margin: 5px 0;
  font-size: 15px;
}

.quote {
  font-style: italic;
  color: #2e59d9;
  border-left: 4px solid #4e73df;
  padding-left: 12px;
  margin-bottom: 25px;
}

.skills .skill {
  margin-bottom: 15px;
}

.bar {
  width: 100%;
  height: 10px;
  background: #e0e7ff;
  border-radius: 5px;
  overflow: hidden;
}

.fill {
  height: 10px;
  background: #4e73df;
  border-radius: 5px;
  transition: width 1s ease;
}

.btn.back-btn {
  display: inline-block;
  background: #4e73df;
  color: #fff;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  margin-top: 10px;
  transition: 0.3s;
}

.btn.back-btn:hover {
  background: #2e59d9;
}

/* Responsive cho điện thoại */
@media (max-width: 768px) {
  .about-container {
    flex-direction: column;
    text-align: center;
  }
  .about-img {
    width: 180px;
    height: 180px;
  }
}

/* ========== TRANG SẢN PHẨM ========== */
.featured {
  text-align: center;
  padding: 20px;
}

.product-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 25px;
  padding: 30px;
  justify-content: center;
}

.product {
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 3px 12px rgba(0,0,0,0.1);
  padding: 15px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.product:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.product img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 10px;
}

.product h3 {
  font-size: 16px;
  margin: 10px 0 5px;
}

.product p {
  color: #0077b6;
  font-weight: bold;
}

/* ========== TRANG ĐĂNG NHẬP & ĐĂNG KÝ ========== */
.auth-body {
  background: linear-gradient(135deg, #a8dadc, #f1faee);
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
}

.auth-container {
  background-color: #fff;
  padding: 35px 40px;
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  width: 360px;
  text-align: center;
  animation: fadeInUp 0.8s ease;
}

.auth-container h2 {
  color: #1d3557;
  margin-bottom: 25px;
  font-size: 24px;
  border-bottom: 3px solid #457b9d;
  display: inline-block;
  padding-bottom: 5px;
}

.auth-container input {
  width: 100%;
  padding: 12px;
  margin: 8px 0;
  border: 1px solid #ccc;
  border-radius: 10px;
  font-size: 15px;
  transition: 0.3s;
}

.auth-container input:focus {
  border-color: #457b9d;
  box-shadow: 0 0 6px rgba(69,123,157,0.4);
}

.auth-container button {
  width: 100%;
  padding: 12px;
  background-color: #457b9d;
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  cursor: pointer;
  margin-top: 10px;
  transition: 0.3s;
}

.auth-container button:hover {
  background-color: #1d3557;
}

.auth-container a {
  display: block;
  margin-top: 12px;
  color: #1d3557;
  text-decoration: none;
  font-size: 14px;
}

.auth-container a:hover {
  color: #e63946;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(25px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ========== FOOTER ========== */
footer {
  text-align: center;
  background-color: #1d3557;
  color: white;
  padding: 15px;
  margin-top: 50px;
  box-shadow: 0 -3px 10px rgba(0,0,0,0.1);
}
/* ========== TRANG CHI TIẾT SẢN PHẨM ========== */
.detail {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 40px;
  padding: 60px 30px;
  max-width: 1000px;
  margin: 40px auto;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
  animation: fadeIn 0.8s ease;
}

.detail img {
  width: 320px;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: transform 0.3s ease;
}

.detail img:hover {
  transform: scale(1.05);
}

.info {
  max-width: 500px;
}

.info h2 {
  color: #1d3557;
  font-size: 26px;
  margin-bottom: 15px;
  border-bottom: 3px solid #457b9d;
  display: inline-block;
  padding-bottom: 4px;
}

.info p {
  line-height: 1.6;
  font-size: 16px;
  margin: 8px 0;
  color: #333;
}

.info strong {
  color: #1d3557;
}

.btn {
  background-color: #457b9d;
  color: white;
  padding: 12px 25px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  transition: 0.3s;
}

.btn:hover {
  background-color: #1d3557;
}

/* Responsive - điện thoại */
@media (max-width: 768px) {
  .detail {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .detail img {
    width: 80%;
  }

  .info {
    max-width: 90%;
  }
}
