body {
  margin: 0;
  font-family: 'Prompt', sans-serif;
  background: #f9fafb;
  color: #333;
  line-height: 1.6;
}

header {
  background: #ff6f61;
  color: #fff;
  padding: 20px;
  text-align: center;
}

header h1 {
  margin: 0;
  font-size: 1.8rem;
}

.container {
  max-width: 1000px;
  margin: auto;
  padding: 20px;
}

h2 {
  color: #e67e22;
  margin: 20px 0 10px;
}

.shop-list {
  display: grid;
  grid-template-columns: 1fr 1fr; /* Desktop: 2 คอลัมน์ */
  gap: 15px;
}

.shop-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,.1);
  padding: 16px;
}

.shop-card h3 {
  margin: 10px 0;
  color: #2c3e50;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.shop-card h3 a {
  font-size: 0.9rem;
  color: #3498db;
  text-decoration: none;
}
.shop-card h3 a:hover {
  text-decoration: underline;
}

.shop-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 10px;
}

.shop-placeholder {
  width: 100%;
  height: 160px;
  border-radius: 10px;
  background: #eaeaea;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: #888;
}

.menu-sample {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.menu-item {
  flex: 1 1 45%;
  background: #f8f9fa;
  border-radius: 6px;
  padding: 6px;
  text-align: center;
}

.menu-item img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  border-radius: 6px;
}

.menu-placeholder {
  width: 100%;
  height: 100px;
  border: 2px dashed #ccc;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888;
  font-size: 24px;
}

.btn {
  background: #27ae60;
  color: #fff;
  padding: 8px 12px;
  border-radius: 5px;
  text-decoration: none;
  display: inline-block;
  margin-top: 8px;
}
.btn:hover {
  background: #1e8449;
}

/* Floating Button */
.add-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: linear-gradient(135deg, #3498db, #2980b9);
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: 30px;
  font-size: 16px;
  font-weight: bold;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  z-index: 9999;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.add-btn:hover {
  background: linear-gradient(135deg, #2980b9, #1f5f99);
  transform: translateY(-2px);
}

.add-btn:active {
  transform: scale(0.96);
}

footer {
  background: #333;
  color: #fff;
  text-align: center;
  padding: 20px;
  margin-top: 20px;
}

/* ✅ Responsive Mobile Layout */
@media (max-width: 768px) {
  .shop-list {
    grid-template-columns: 1fr !important; /* การ์ดร้าน 1 ต่อแถว */
  }

  .menu-sample {
    display: block !important; /* เมนูย่อยเรียงลง */
  }

  .menu-sample .menu-item {
    width: 100% !important; 
    max-width: 100% !important;
    flex: none !important; 
    display: block !important;
    margin-bottom: 12px !important;
  }
}
