/* ===================== พื้นฐาน ===================== */
body {
  margin: 0;
  font-family: 'Kanit', sans-serif;
  background-color: #fff8f8;
  color: #333;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: #d63384;
  transition: 0.3s;
}
a:hover {
  color: #9c1a5d;
}

/* ===================== Header ===================== */
.main-nav {
  background-color: #ffeff6;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 40px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.logo {
  font-size: 24px;
  font-weight: bold;
  color: #d63384;
  line-height: 1.2;
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: 20px;
}

.nav-menu li a {
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 6px;
  color: #d63384;
}

.nav-menu li a:hover {
  background-color: #ffe0ec;
}


/* ===================== Section: สินค้าทั้งหมด ===================== */
.products {
  padding: 60px 20px;
  text-align: center;
  background-color: #fff0f5;
}

.products h2 {
  font-size: 32px;
  color: #c2185b;
  margin-bottom: 40px;
}

/* ✅ เพิ่มส่วนนี้: Search Form Styling */
form[method="GET"] {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

form[method="GET"] input[type="text"] {
  padding: 10px 15px;
  width: 280px;
  border: 2px solid #e0b1cb;
  border-radius: 25px;
  font-size: 16px;
  outline: none;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0,0,0,0.08);
  background-color: #fff;
}

form[method="GET"] input[type="text"]:focus {
  border-color: #d48eb0;
  box-shadow: 0 2px 10px rgba(212, 142, 176, 0.4);
}

form[method="GET"] button {
  padding: 10px 20px;
  background: #d48eb0;
  color: white;
  border: none;
  border-radius: 25px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s;
}

form[method="GET"] button:hover {
  background: #c2789d;
  transform: scale(1.05);
}

/* ===================== Product Card ===================== */
.product-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.product-card {
  background: #ffffff;
  border: 1px solid #f4cddd;
  border-radius: 16px;
  width: 230px;
  padding: 15px;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.product-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 10px;
}

.product-card p {
  margin: 6px 0;
  font-size: 16px;
  color: #444;
}

.price {
  color: #e91e63;
  font-weight: bold;
  font-size: 16px;
}

.buy-btn {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 16px;
  background-color: #ff80ab;
  color: white;
  border-radius: 8px;
  font-weight: 500;
}
.buy-btn:hover {
  background-color: #ec407a;
}

/* ===================== ฟุตเตอร์ ===================== */
.custom-footer {
  background-color: #ffdde8;
  padding: 40px 20px;
  font-size: 14px;
  color: #444;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  max-width: 1100px;
  margin: auto;
}

.footer-col {
  flex: 1 1 300px;
  margin-bottom: 20px;
}

.footer-col h3 {
  color: #d63384;
  margin-bottom: 10px;
  font-size: 18px;
}

.footer-col p {
  margin: 6px 0;
}

.social-icons img {
  width: 28px;
  margin-right: 10px;
  vertical-align: middle;
}

/* ===================== Responsive ===================== */
@media (max-width: 768px) {
  .product-grid {
    flex-direction: column;
    align-items: center;
  }

  .footer-content {
    flex-direction: column;
    gap: 20px;
  }

  .product-card {
    width: 90%;
  }

  form[method="GET"] {
    flex-direction: column;
    gap: 10px;
  }

  form[method="GET"] input[type="text"],
  form[method="GET"] button {
    width: 90%;
    max-width: 300px;
  }
}
