@import url("https://fonts.googleapis.com/css2?family=Kanit:wght@300;400;600&display=swap");

/* ฟอนต์ */
body {
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  font-family: "Kanit", sans-serif;
  background-color: #f8f9fa;
  color: #333;
  scroll-behavior: smooth;
}

body.fade-in {
  opacity: 1;
}

/* การ์ด */
.card {
  border-radius: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.card-img-top {
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  height: 200px;
  object-fit: cover;
}

/* การจัดวาง */
.card-container {
  padding: 10px;
}

.card-title {
  font-weight: 600;
  color: #333;
}

.text-secondary {
  color: #6c757d !important;
}

/* Lazy Image Placeholder */
.lazy-image {
  filter: blur(10px);
  transition: filter 0.5s ease;
}

.lazy-image.loaded {
  filter: blur(0);
}

/* การตกแต่งคำว่า Price */
.price-label {
  font-size: 1.1em;
  font-weight: 600;
  color: #007bff; /* สีฟ้าเพื่อเน้นข้อความ */
  display: flex;
  align-items: center;
  margin-top: 10px;
}

.price-label i {
  margin-right: 5px; /* เว้นระยะระหว่างไอคอนกับข้อความ */
  font-size: 1.2em;
  color: #28a745; /* สีเขียวสำหรับไอคอน */
}

.price-label strong {
  margin-right: 5px;
}
/* Glass Header */
.glass-header {
  background: rgba(255, 255, 255, 0.2); /* โปร่งใส */
  backdrop-filter: blur(10px); /* เบลอพื้นหลัง */
  -webkit-backdrop-filter: blur(10px); /* รองรับ Safari */
  padding: 20px;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.3); /* กรอบเบาๆ */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2); /* เงา */
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.glass-header h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #007bff; /* สีน้ำเงิน */
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.glass-header h1 i {
  margin-right: 10px;
  color: #e4c163; /* สีเหลืองสำหรับไอคอน */
}

/* ตัวเลือกหมวดหมู่ */
.filter-category select {
  border-radius: 10px;
  border: 1px solid #ddd;
  padding: 10px;
  font-size: 1rem;
  background-color: #f8f9fa;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.filter-category select:focus {
  border-color: #007bff;
  box-shadow: 0 2px 10px rgba(0, 123, 255, 0.5);
}

/* ข้อความแจ้งเตือน */
#no-items-message {
  font-size: 1.2rem;
  color: #6c757d; /* สีเทา */
}

#no-items-message i {
  margin-right: 5px;
  color: #ff0000; /* สีแดงสำหรับไอคอน */
}

/* ปุ่มโทรออก */
.phone-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #28a745;
  color: white;
  border-radius: 30px;
  padding: 10px 20px;
  font-size: 16px;
  font-weight: bold;
  text-decoration: none;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 10px; /* เพิ่มระยะห่างระหว่างไอคอนกับข้อความ */
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.phone-float i {
  font-size: 20px;
}

.phone-float:hover {
  transform: scale(1.1);
  background-color: #218838;
}
