/* ฟอนต์และโครงสร้างพื้นฐาน */
* {
  box-sizing: border-box;
}

body {
  margin-top: 100px;
  font-family: 'Noto Sans Thai', sans-serif;
  background-color: #fef6f3;
  color: #5e4436;
}



/* Floating Social Icons */
.floating-social {
  position: fixed;
  top: 40%;
  right: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 9999;
}

.floating-social a {
  width: 40px;
  height: 40px;
  background-color: #fff;
  border: 1px solid #e6cfc2;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #d89c7c;
  text-decoration: none;
  font-size: 18px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  transition: background 0.3s, color 0.3s;
}

.floating-social a:hover {
  background-color: #fcefed;
  color: #a66c48;
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 60px 20px 40px;
}

.hero h2 {
  margin-top: 200px;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.6;
}

.btn {
  display: inline-block;
  background-color: #d89c7c;
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
  border: none;
}

.btn:hover {
  background-color: #a66c48;
}

/* Slider Section */
.gift-slider {
  padding: 2rem 1rem;
  background: #fff6f3;
  border-radius: 24px;
  max-width: 768px;
  margin: 0 auto;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.05);
}

.gift-title {
  text-align: center;
  font-size: 1.8rem;
  font-weight: bold;
  color: #5a3e36;
  margin-bottom: 1.5rem;
}

.gift-box {
  background: white;
  padding: 1rem;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 400px;
  margin: 0 auto;
}

.gift-box img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gift-box img:hover {
  transform: scale(1.03);
}

/* Swiper Buttons & Pagination */
.swiper-button-next,
.swiper-button-prev {
  color: #d59a7d;
}

.swiper-pagination-bullet {
  background-color: #d59a7d;
  opacity: 0.6;
}

.swiper-pagination-bullet-active {
  opacity: 1;
  transform: scale(1.2);
}

/* Product Section */
.product-section {
  padding: 40px 20px;
  background-color: #f9f9f9;
  text-align: center;
}

.section-title {
  font-size: 2em;
  margin-bottom: 20px;
  color: #333;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: auto;
}

.product-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 15px;
  transition: transform 0.2s;
}

.product-card:hover {
  transform: translateY(-5px);
}

.product-card img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.product-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
  margin: 0.5rem 0 0.3rem;
  line-height: 1.4;
}

.product-card p {
  font-size: 0.95rem;
  color: #666;
  margin: 0 0 0.5rem;
}

.product-card .price {
  display: inline-block;
  font-size: 1rem;
  font-weight: bold;
  color: #d43f52;
  background-color: #fff0f3;
  padding: 4px 8px;
  border-radius: 6px;
}
.product-card .promotion {
  display: inline-block;
  margin-top: 6px;
  padding: 4px 8px;
  background-color: #25d366;  /* สีเขียวโปรโมชัน */
  color: white;
  font-weight: 700;
  border-radius: 6px;
  font-size: 0.85rem;
}


.sale {
  font-weight: bold;
  color: #e43c09;
}

/* Product link hover effect */
.product-link {
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border-radius: 12px;
}

.product-link:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Footer */
.footer {
  background-color: #fcefed;
  padding: 40px 20px;
  color: #5e4436;
  font-size: 0.95rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
}

.footer-logo img {
  height: 200px;
  /* margin-bottom: 12px; */
}

.footer-logo p {
  max-width: 300px;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links ul li {
  margin: 6px 0;
}

.footer-links a,
.footer-contact a {
  color: #5e4436;
  text-decoration: none;
}

.footer-contact .social a {
  display: inline-block;
  margin-top: 8px;
}

.footer-bottom {
  border-top: 1px solid #ddd;
  margin-top: 30px;
  padding-top: 20px;
  text-align: center;
  font-size: 0.85rem;
  color: #999;
}



.load-more-button {
  display: block;
  margin: 20px auto;
  padding: 10px 30px;
  background-color: #f48fb1; /* สีชมพูพาสเทล */
  color: white;
  border: none;
  border-radius: 25px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(244, 143, 177, 0.3);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.load-more-button:hover {
  background-color: #e91e63; /* สีชมพูเข้มขึ้น */
  box-shadow: 0 6px 12px rgba(233, 30, 99, 0.5);
}









@media (max-width: 768px) {
  .product-container {
    flex-direction: column;
    margin: 1.5rem 1rem;     /* ลด margin ขอบซ้ายขวาให้ชิดขอบ */
    gap: 1.5rem;             /* เพิ่มช่องว่างระหว่างรูปกับข้อมูล */
    margin-top: -100px;
  }

  .product-images, 
  .product-info {
    max-width: 100%;
  }

  /* รูปหลักจัดกลาง */
  .product-images img {
    display: block;
    margin: 0 auto;
    max-width: 90%;          /* รูปไม่ล้นจอ */
    height: auto;
  }

  /* thumbnails จัดกลาง */
  .product-thumbs {
    justify-content: center; /* เดิม flex-start → เปลี่ยนเป็น center */
    gap: 0.5rem;
    margin-top: 0.75rem;
  }

  .product-thumbs img {
    max-width: 64px;         /* ย่อ thumbnails ให้เล็กลงบนจอเล็ก */
    height: auto;
  }

  /* ข้อความ/รายละเอียด */
  .product-info {
    text-align: center;      /* จัดกลาง */
    padding: 0 0.5rem;
  }
  .product-info h1 {
    font-size: 1.25rem;      /* หัวข้อเล็กลงหน่อย */
  }
}














/* .blog-section {
  padding: 2rem;
  background-color: #fdf9f9;
}

.blog-section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  text-align: center;
}

.blog-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}

.blog-post {
  width: 300px;
  background: white;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.blog-post img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.blog-post h3 {
  font-size: 1.2rem;
  margin: 0.5rem;
}

.blog-post p {
  font-size: 0.95rem;
  margin: 0.5rem;
  color: #666;
} */




/* Responsive (ถ้าต้องการใส่ทีหลัง) */
/*
@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 20px;
  }

  nav {
    margin-top: 12px;
  }
}
*/





