/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* BODY */
body {
  font-family: "Poppins", sans-serif;
  background-color: #fff8f0;
  color: #333;
  line-height: 1.6;
}

/* HEADER */
header {
  background: #ffb347;
  padding: 15px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-container {
  width: 90%;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  color: #fff;
  font-weight: 600;
  font-size: 24px;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: 0.3s;
}

nav a:hover {
  color: #222;
}

/* HERO */
.hero {
  background: url("./bread.jpg") center/cover no-repeat;
  color: #fff;
  text-align: center;
  padding: 120px 20px;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero h2 {
  font-size: 36px;
  margin-bottom: 10px;
}

.hero p {
  font-size: 18px;
  margin-bottom: 20px;
}

.btn {
  background: #ffb347;
  color: #fff;
  padding: 10px 25px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn:hover {
  background: #ff9800;
  transform: scale(1.05);
}

/* ABOUT */
.about {
  padding: 80px 0;
  text-align: center;
}

.about h2 {
  font-size: 28px;
  color: #ff9800;
  margin-bottom: 15px;
}

/* PRODUCTS */
.products {
  background: #fff3e0;
  padding: 80px 0;
}

.products h2 {
  text-align: center;
  color: #ff9800;
  margin-bottom: 30px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  width: 90%;
  margin: auto;
}

.product {
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 20px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.product img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 10px;
  transition: transform 0.3s ease;
}

.product:hover img {
  transform: scale(1.05);
}

.product h3 {
  color: #333;
  transition: color 0.3s ease;
}

.product:hover h3 {
  color: #ff9800;
}

.product p {
  color: #666;
  transition: color 0.3s ease;
}

.product:hover p {
  color: #444;
}

/* FOOTER */
footer {
  background: #ffb347;
  color: #fff;
  text-align: center;
  padding: 20px 0;
  margin-top: 50px;
}

/* ABOUT PAGE */
.about-me {
  padding: 80px 0;
  background: url("./banhmii.jpg") center/cover no-repeat;
  position: relative;
}

.about-me::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 0;
}

.about-container {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 50px;
  flex-wrap: wrap;
  width: 90%;
  margin: auto;
  color: #fff;
}

.about-img img {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  border: 6px solid #ffb347;
  object-fit: cover;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.about-img img:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 20px rgba(255, 179, 71, 0.4);
}

.about-info {
  max-width: 500px;
}

.about-info h2 {
  color: #ffe3b3;
  font-size: 26px;
}

.about-info span {
  color: #ff9800;
  font-weight: 600;
}

.about-info p {
  margin: 15px 0;
  line-height: 1.6;
}

/* PRODUCTS PAGE */
.page-header {
  background: url("./bakery-bg.jpg") center/cover no-repeat;
  color: #fff;
  text-align: center;
  padding: 80px 0;
}

.page-header h2 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.product-list {
  padding: 60px 0;
  background-color: #fffaf6;
}

.product-card {
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  padding: 20px;
  text-align: center;
  transition: transform 0.3s ease;
}

.product-card:hover {
  transform: translateY(-5px);
}

.product-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 10px;
}

.product-card h3 {
  margin-top: 15px;
  font-size: 1.3rem;
  color: #333;
}

.product-card p {
  color: #666;
  margin: 10px 0 20px;
  font-size: 0.95rem;
}

.product-card .btn {
  padding: 10px 20px;
  background-color: #b3814f;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s;
}

.product-card .btn:hover {
  background-color: #8a5f32;
}

/* LOGIN PAGE */
.login-page {
  background: url("./banhkem.jpg") center/cover no-repeat;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.login-container {
  background-color: rgba(255, 255, 255, 0.85);
  padding: 40px 50px;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  text-align: center;
  max-width: 400px;
  width: 90%;
}

/* REGISTER PAGE */
.register-page {
  background: url("./banh.jpg") center/cover no-repeat;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.register-page::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.register-container {
  position: relative;
  z-index: 2;
  background-color: rgba(255, 255, 255, 0.92);
  padding: 40px 50px;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  text-align: center;
  max-width: 420px;
  width: 90%;
}
/* ========== CONTACT PAGE ========== */
.contact-page {
  background: url("./bakery-bg.jpg") center/cover no-repeat;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 60px 20px;
  position: relative;
}

.contact-page::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1;
}

.contact-container {
  position: relative;
  z-index: 2;
  background-color: rgba(255, 255, 255, 0.92);
  border-radius: 15px;
  padding: 40px 50px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
  max-width: 800px;
  width: 100%;
  text-align: center;
}

.contact-container h2 {
  color: #ff9800;
  margin-bottom: 10px;
}

.contact-container p {
  color: #555;
  margin-bottom: 25px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 30px;
}

.contact-form input,
.contact-form textarea {
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-family: "Poppins", sans-serif;
  font-size: 16px;
  resize: none;
}

.contact-form button {
  background-color: #ffb347;
  color: #fff;
  border: none;
  padding: 12px;
  border-radius: 8px;
  font-size: 18px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.contact-form button:hover {
  background-color: #ff9800;
}

.contact-info {
  text-align: left;
  border-top: 1px solid #eee;
  padding-top: 20px;
}

.contact-info h3 {
  color: #8b4513;
  margin-bottom: 10px;
}

.contact-info p {
  margin: 8px 0;
  color: #444;
  font-size: 15px;
}
/* --------- Sweet Bread Detail Page --------- */
.bread-detail.sweet {
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url("images/cake.jpg");
  background-size: cover;
  background-position: center;
  padding: 100px 20px;
  color: #fff;
  text-align: center;
}

.bread-detail.sweet .bread-detail-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  max-width: 900px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  border-radius: 16px;
  padding: 30px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bread-detail.sweet .bread-detail-content:hover {
  transform: scale(1.02);
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.25);
}

.bread-detail.sweet .bread-detail-img img {
  width: 100%;
  max-width: 500px;
  border-radius: 16px;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.bread-detail.sweet .bread-detail-img img:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.3);
}

.bread-detail.sweet .bread-detail-text {
  text-align: left;
  color: #fff;
  max-width: 700px;
}

.bread-detail.sweet .bread-detail-text h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: #ffd8a8;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.6);
}

.bread-detail.sweet .bread-detail-text p {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

.bread-detail.sweet .back-btn {
  display: inline-block;
  background-color: #ffd480;
  color: #333;
  padding: 10px 20px;
  border-radius: 25px;
  text-decoration: none;
  transition: background 0.3s, transform 0.3s;
}

.bread-detail.sweet .back-btn:hover {
  background-color: #ffe09a;
  transform: translateY(-3px);
}
