/* ====== RESET ====== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Roboto, sans-serif;
}

body {
  background-color: #fff6f6;
  color: #333;
  line-height: 1.6;
}

/* ====== HEADER / NAVBAR ====== */
header {
  background: #ffffff;
  color: rgb(59, 45, 45);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  position: sticky;
  top: 0;
  z-index: 100;
}

header h1 {
  font-size: 1.5rem;
  letter-spacing: 1px;
}

nav a {
  color: rgb(0, 0, 0);
  text-decoration: none;
  margin-left: 20px;
  font-weight: 500;
  transition: 0.3s;
}

nav a:hover, nav a.active {
  color: #f39c12;
}

/* ====== HERO (Trang chủ) ====== */
.hero {
  background: url('https://images.unsplash.com/photo-1519744792095-2f2205e87b6f?auto=format&fit=crop&w=1350&q=80') center/cover no-repeat;
  color: white;
  text-align: center;
  padding: 100px 20px;
}

.hero h2 {
  font-size: 2.2rem;
  margin-bottom: 15px;
  text-shadow: 1px 1px 3px #000;
}

.hero p {
  max-width: 600px;
  margin: 0 auto 30px;
  font-size: 1.1rem;
}

.hero .btn {
  background: #f39c12;
  color: white;
  padding: 12px 25px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
}

.hero .btn:hover {
  background: #d35400;
}

/* ====== DANH SÁCH SẢN PHẨM ====== */
.product-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 25px;
  padding: 40px;
  max-width: 1200px;
  margin: auto;
}

.product {
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  padding: 20px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.product:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.product img {
  width: 100%;
  border-radius: 10px;
}

.product h2 {
  font-size: 1.1rem;
  margin: 10px 0;
}

.product p {
  color: #e74c3c;
  font-weight: bold;
  margin-bottom: 12px;
}

.product button {
  background: #111;
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 5px;
  cursor: pointer;
  transition: 0.3s;
}

.product button:hover {
  background: #f39c12;
}

/* ====== GIỎ HÀNG ====== */
.cart-container {
  max-width: 800px;
  background: white;
  margin: 40px auto;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.cart-container h2 {
  margin-bottom: 15px;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #eee;
}

.cart-item p {
  margin: 0;
}

.cart-item button {
  background: #e74c3c;
  color: white;
  border: none;
  padding: 5px 10px;
  border-radius: 5px;
  cursor: pointer;
}

.cart-item button:hover {
  background: #c0392b;
}

.cart-container h3 {
  text-align: right;
  margin-top: 20px;
  font-size: 1.1rem;
}

.cart-container .btn {
  display: inline-block;
  margin-top: 20px;
  background: #27ae60;
  color: white;
  text-decoration: none;
  padding: 12px 20px;
  border-radius: 6px;
  font-weight: bold;
  transition: 0.3s;
}

.cart-container .btn:hover {
  background: #219150;
}

/* ====== FORM THANH TOÁN ====== */
.checkout {
  max-width: 600px;
  background: white;
  margin: 50px auto;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.checkout h2 {
  text-align: center;
  margin-bottom: 25px;
}

form {
  display: flex;
  flex-direction: column;
}

label {
  margin: 10px 0 5px;
  font-weight: 500;
}

input, select {
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 1rem;
}

button.btn {
  margin-top: 20px;
  background: #f39c12;
  color: white;
  border: none;
  padding: 12px;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

button.btn:hover {
  background: #d35400;
}

/* ====== FOOTER ====== */
footer {
  background-color: #333;
  color: white;
  text-align: center;
  padding: 20px 0;
  font-size: 0.9rem;
}

footer p {
  margin: 5px 0;
}

@media (max-width: 600px) {
  .footer {
    padding: 20px;
    font-size: 13px;
  }
  .footer-links {
    gap: 15px;
  }
}

.banner {
  position: relative;
  height: 550px;
  background: url('111.jpg') center/cover no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
  filter: brightness(90%);
}

.banner .overlay {
  position: absolute;
  top:0; left:0; right:0; bottom:0;
  background: rgba(0,0,0,0.3);
  z-index: 1;
}

.banner .content {
  position: relative;
  z-index: 2;
  padding: 0 20px;
}

.banner h1 {
  font-size: 3.5rem;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
}

.banner p {
  font-size: 1.3rem;
  margin-bottom: 25px;
  text-shadow: 1px 1px 5px rgba(0,0,0,0.6);
}

.banner button {
  padding: 18px 35px;
  background: #ff0050;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: bold;
  color: #fff;
  cursor: pointer;
  transition: transform .3s, background .3s;
  box-shadow: 0 8px 20px rgba(0,0,0,0.5);
}

.banner button:hover {
  background: #ff3366;
  transform: scale(1.05);
}

@media(max-width: 768px){
  .banner {
    height: 400px;
  }
  .banner h1 {
    font-size: 2.2rem;
  }
  .banner p {
    font-size: 1rem;
  }
  .banner button {
    padding: 15px 30px;
    font-size: 1rem;
  }
}

/* ====== PHẦN SẢN PHẨM MỚI ====== */
.new-products {
  background: #fff;
  padding: 60px 20px;
  text-align: center;
}

.new-products h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #111;
  margin-bottom: 40px;
  position: relative;
}

.new-products h2::after {
  content: "";
  display: block;
  width: 80px;
  height: 3px;
  background: #f39c12;
  margin: 10px auto 0;
  border-radius: 3px;
}

/* Reuse product-list layout */
.new-products .product-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 25px;
  max-width: 1100px;
  margin: 0 auto;
}

/* Đặt riêng cho tiêu đề sản phẩm trong phần mới */
.new-products .product h3 {
  font-size: 1.1rem;
  margin: 10px 0;
}
.view-all {
  display: inline-block;
  margin-top: 30px;
  background: #111;
  color: #fff;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 6px;
  transition: 0.3s;
}
.view-all:hover {
  background: #f39c12;
}
/* ====== BÌNH LUẬN ====== */
.comments {
  background: #f5f5f5;
  padding: 40px 20px;
  max-width: 800px;
  margin: 50px auto;
  border-radius: 8px;
}

.comments h2 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 1.8rem;
  color: #111;
}

#comment-list {
  margin-bottom: 30px;
}

.comment-item {
  background: #fff;
  padding: 15px 20px;
  border-radius: 6px;
  margin-bottom: 15px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.comment-item strong {
  display: block;
  margin-bottom: 5px;
  color: #f39c12;
}

#comment-form input, 
#comment-form textarea {
  width: 100%;
  padding: 10px 15px;
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #ccc;
  font-size: 1rem;
  box-sizing: border-box;
}

#comment-form button {
  background: #f39c12;
  color: #fff;
  border: none;
  padding: 12px 25px;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

#comment-form button:hover {
  background: #d35400;
}
.product {
  border: 1px solid #ccc;
  padding: 15px;
  margin: 10px;
  display: inline-block;
  text-align: center;
  width: 220px;
}

.product img {
  margin-bottom: 10px;
}

.product select, .product button {
  margin-top: 10px;
}

.product button {
  background: #f39c12;
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 5px;
  cursor: pointer;
}

.product button:hover {
  background: #d35400;
}

/* Giá giảm */
.price {
  font-size: 1.1rem;
  margin: 10px 0;
}

.original-price {
  text-decoration: line-through;
  color: #888;
  margin-right: 5px;
}

.discount-price {
  font-weight: bold;
  color: #e74c3c;
  margin-right: 5px;
}

.discount-percent {
  background: #e74c3c;
  color: white;
  font-size: 0.8rem;
  padding: 2px 5px;
  border-radius: 3px;
}
/* style.css hoặc logo.css */
.logo {
  display: inline-block;
  padding: 10px 20px;
}

.logo img {
  height: 60px; /* chỉnh chiều cao logo */
  width: auto;
  display: block;
  transition: transform 0.3s;
}

.logo img:hover {
  transform: scale(1.05); /* hiệu ứng khi hover */
}
/* Form Đăng nhập / Đăng ký */
.auth-container { display: flex; justify-content: center; padding: 40px 0; background: #f5f5f5; }
.form-box { background: #fff; padding: 25px; border-radius: 10px; width: 320px; box-shadow: 0 5px 15px rgba(0,0,0,0.1); text-align: center; }
.form-toggle { display: flex; justify-content: center; gap: 20px; margin-bottom: 20px; }
.form-toggle button { background: none; border: none; cursor: pointer; font-weight: bold; padding: 5px 10px; }
.form-toggle button.active { border-bottom: 2px solid #ff0050; color: #ff0050; }
.forms form { display: none; flex-direction: column; gap: 10px; }
.forms form.active { display: flex; }
input { padding: 8px; border: 1px solid #ccc; border-radius: 5px; }
button[type="submit"] { padding: 10px; background: #ff0050; color: #fff; border: none; border-radius: 5px; cursor: pointer; }
button[type="submit"]:hover { background: #ff3366; }

/* Thông tin tài khoản */
.account { padding: 40px 0; text-align: center; }
.account h2 { margin-bottom: 15px; }
.account p { margin-bottom: 10px; font-size: 16px; }
.account button { padding: 10px 15px; background: #ff0050; color: #fff; border: none; border-radius: 5px; cursor: pointer; }
.account button:hover { background: #ff3366; }
.cart-link {
  position: relative;
  display: inline-block;
}

#cartCount {
  position: absolute;
  top: -8px;
  right: -12px;
  background: red;
  color: #fff;
  font-size: 12px;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 50%;
}


