/* ---------- โทนหลักของเว็บ ---------- */
body {
  font-family: "Prompt", sans-serif;
  margin: 0;
  background-color: #800000;
  background-repeat: repeat;
  color: #fff;
  text-align: center;
}

/* ---------- ส่วนหัว ---------- */
header {
  padding: 30px 20px;
  text-align: center;
  padding-bottom: 40px;
}

header h1 {
  font-size: 70px;
  color: #990100;
  margin-bottom: 0px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
  line-height: 0;       /* ลดระยะบรรทัดให้ชิดขึ้น */
}

header h3 {
  font-size: 50px;
  color: #990100;
  margin-bottom: 0px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
  line-height: 2;       /* ลดระยะบรรทัดให้ชิดขึ้น */
}

header p {
  font-size: 30px;
  color: #202020;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

header h5 {
  font-size: 30px;
  color: #990100;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.intro-text {
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
}

/* ---------- ปุ่มลิงก์ ---------- */
.buttons {
  margin: 10px 0;
}

.btn {
  display: block;
  width: 80%;
  max-width: 400px;
  margin: 10px auto;
  padding: 12px;
  border-radius: 10px;
  color: #fff;
  text-decoration: none;
  font-size: 18px;
  font-weight: bold;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s;
}

.btn:hover {
  transform: scale(1.05);
}

.fb {
  background: #1877f2;
}

.tiktok {
  background: #1f1f1f;
}

.line {
  background: #00b900;
}

/* ---------- สินค้า ---------- */
.products {
  margin: 30px auto;
  width: 90%;
  max-width: 500px;
}

.product {
  background: #fff5e1;
  color: #000;
  border: 2px solid #c49b63;
  border-radius: 12px;
  margin-bottom: 15px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

/* หัวข้อสินค้า */
.product h2 {
  background: #b71c1c;
  color: white;
  margin: 0;
  padding: 12px;
  font-size: 35px;
}

/* รายละเอียดสินค้า */
.product p {
  padding: 0px;
  text-align: left;
  border-top: 0px solid #c49b63;
  background: #fffaf0;
  font-size: 20px;
  text-align: center;
}

/* ปุ่มสั่งซื้อ */
.product button {
  background: linear-gradient(90deg, #ffcc00, #ff9900);
  width: 50%;
  color: #000;
  font-size: 20px;
  font-weight: bold;
  border: none;
  border-radius: 10px;
  padding: 10px 10px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: transform 0.2s;
}

.product button:hover {
  transform: scale(1.05);
}

/* ---------- รองรับมือถือ ---------- */
@media (max-width: 768px) {
  header h1 {
    font-size: 40px;
  }

  header h3 {
    font-size: 32px;
  }

  .btn {
    font-size: 16px;
  }

  .product h2 {
    font-size: 25px;
  }

  .product h5 {
    font-size: 20px;
  }

  .intro-text {
    font-size: 15px;
  }
}

/* ---------- โลโก้และแบนเนอร์ ---------- */
/* ตั้งค่าส่วน banner ให้เป็นตำแหน่งอ้างอิง */
.banner {
  position: relative;
  text-align: center;
  width: 100%;
}

.banner img {
  width: 100%;          /* ให้เต็มความกว้างจอ */
  height: auto;         /* ให้สัดส่วนคงที่ */
  max-height: 500x;    /* 👈 จำกัดความสูงสูงสุด (เช่น 400px) */
  object-fit: cover;    /* ครอบให้เต็มไม่บีบภาพ */
  display: block;
  margin: 0 auto;
  max-width: 1000px;
  border-radius: 12px;
}

/* โลโก้ให้อยู่กึ่งกลางซ้อนบนแบนเนอร์ */
.logo {
  width: 40%;
  margin: -100px auto 30px auto; /* ดันโลโก้ขึ้นจากแบนเนอร์ แล้วเว้นห่างด้านล่าง */
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  top: 100%;
  left: 50%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0);
  max-width: 200px; /* ขนาดสูงสุดบนจอใหญ่ */
}

.logo img {
  width: 100%;
  height: auto;
  border-radius: 50%;
  display: block;
}

/* ---------- ปุ่มแชร์ ---------- */
.share {
  margin-top: 10px;
}

.share p {
  margin-bottom: 10px;
  color: gold;
  font-weight: bold;
}

.share-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 20px;
}

.icon {
  display: inline-block;
  padding: 10px 15px;
  border-radius: 10px;
  color: white;
  text-decoration: none;
  font-weight: bold;
}

.icon.fb {
  background: #1877f2;
}

.icon.tiktok {
  background: #1f1f1f;
}

.icon.line {
  background: #00b900;
}

.list.product {
display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 20px;
}

/* ---------- ภาพสินค้า ---------- */
.product img {
  width: 100%;
  height: auto;
  border-bottom: 2px solid #c49b63;
  border-radius: 10px 10px 0 0;
}

/* ---------- เอฟเฟกต์เปิด/ปิด ---------- */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.product {
  animation: fadeIn 0.6s ease;
  transition: transform 0.2s;
}

.product:hover {
  transform: scale(1.02);
}

/* ---------- ปรับขนาดบนมือถือ ---------- */
@media (max-width: 600px) {
  .product img {
    border-radius: 8px 8px 0 0;
  }

  .product button {
    width: 60%;
    font-size: 16px;
  }
}

.footer {
  color: rgb(48, 48, 48);
  font-weight: bold;
  font-size: 15px;
  margin-bottom: 50px;
}

.bg-fixed {
  position: fixed;
  inset: 0;                   /* top:0; right:0; bottom:0; left:0; */
  background-image: url("image/bgpastel.jpg");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  z-index: -1;                /* ให้เนื้อหาอยู่ด้านบน */
}

@media (max-width: 768px) {
  .logo {
    width: 60%;     /* โลโก้ใหญ่ขึ้นบนจอมือถือ */
    max-width: 160px;
  }
}

@media (min-width: 1200px) {
  .logo {
    width: 50%;     /* จอใหญ่ โลโก้เล็กลงหน่อย */
    max-width: 250px;
  }
}