/* 🌿 รีเซ็ต */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: "Prompt", sans-serif;
  background: #fff;
  padding-bottom: 70px; /* ✅ กัน navbar ทับเนื้อหา */
}

/* 🔸 Header */

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header-top h1 { font-size: 18px; }
.header-top .search-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border-radius: 20px;
  padding: 4px 10px;
  width: 70%;
}
.search-bar input {
  border: none;
  outline: none;
  width: 100%;
  font-size: 14px;
}
.quick-categories {
  display: flex;
  overflow-x: auto;
  gap: 10px;
  margin-top: 8px;
}
.quick-categories button {
  flex: 0 0 auto;
  background: #fff;
  color: #333;
  border: none;
  padding: 6px 12px;
  border-radius: 16px;
}
.quick-categories button:first-child { color: #ff6600; }

/* 🔹 หมวดหมู่สินค้า / การ์ดสินค้า */
.container h2 {
  color: #333;
  margin: 12px 0 6px;
  font-size: 18px;
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}
.product-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 8px;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.product-card img {
  width: 100%;
  height: 120px;
  object-fit: contain;
}
.product-card h3 { font-size: 14px; color: #222; }
.price { color: #ff6600; font-weight: bold; }
.btn {
  background: #ff6600;
  color: #fff;
  padding: 6px 10px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 13px;
  display: inline-block;
}

/* 🔸 Footer */
footer {
  width: 100%;
  background: #fff;
  color: #000;
  text-align: center;
  padding: 18px 10px 30px;
  font-size: 13px;
  border-top: 1px solid #ddd;
}
.footer-brands {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 8px;
}
.footer-brands img { height: 22px; opacity: 0.9; filter: grayscale(40%); transition: 0.3s; }
.footer-brands img:hover { opacity: 1; filter: none; transform: scale(1.1); }
.footer-text { margin-top: 6px; line-height: 1.5em; }
.footer-text b { color: #ff6600; }
.footer-text small { display: block; margin-top: 4px; font-size: 11px; color: #666; }
.footer-social {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  gap: 20px;
}
.footer-social a { color: #ff6600; font-size: 18px; transition: 0.3s; }
.footer-social a:hover { color: #000; transform: scale(1.25); }

/* 🔸 Bottom Navbar */
.bottom-menu {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 1px solid #ddd;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 8px 0;
  z-index: 999999;
  height: 60px;
  -webkit-transform: translateZ(0);
}
.bottom-menu a {
  flex: 1;
  color: #555;
  text-align: center;
  text-decoration: none;
  font-size: 14px;
}
.bottom-menu a i {
  display: block;
  font-size: 20px;
  margin-bottom: 3px;
}
.bottom-menu a.active,
.bottom-menu a:hover { color: #ff6600; }

@supports (padding: max(0px)) {
  .bottom-menu { padding-bottom: env(safe-area-inset-bottom); }
}
