:root {
  --cream: #faf6ee;
  --cream-dark: #f1eadb;
  --sage: #7c9a7e;
  --sage-dark: #4f6b52;
  --text: #2f3e33;
  --muted: #5f6e62;
  --line-green: #047a35; /* เขียว LINE ที่เข้มขึ้น ตัวหนังสือขาวอ่านง่าย (ต่างกัน 5.5:1) */
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Noto Sans Thai", sans-serif;
  line-height: 1.7;
  color: var(--text);
  background: var(--cream);
}

h1, h2, h3, .logo {
  font-family: "Mitr", sans-serif;
  font-weight: 500;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
}

.logo {
  font-size: 22px;
  color: var(--sage-dark);
  text-decoration: none;
  white-space: nowrap;
}

nav a {
  display: inline-block;
  padding: 10px 8px; /* พื้นที่กดสูงอย่างน้อย 44px */
  color: var(--muted);
  text-decoration: none;
}

section {
  padding: 64px 24px;
  max-width: 1080px;
  margin: 0 auto;
}

.hero {
  text-align: center;
  max-width: none;
  background: linear-gradient(180deg, var(--cream-dark), var(--cream));
}

.hero h1 {
  font-size: 32px;
  line-height: 1.35;
  margin: 0 0 16px;
}

.hero p {
  color: var(--muted);
}

.btn-line {
  display: inline-block;
  margin-top: 24px;
  padding: 14px 28px;
  background: var(--line-green);
  color: white;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
}

h2 {
  font-size: 26px;
  margin: 0 0 24px;
  color: var(--sage-dark);
}

.product-list {
  display: grid;
  gap: 24px;
}

.product {
  background: white;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 6px 20px rgba(79, 107, 82, 0.08);
}

.product-img {
  height: 160px;
  border-radius: 12px;
  margin-bottom: 16px;
}

.lavender { background: linear-gradient(135deg, #c9b8e8, #8f7cc4); }
.lemongrass { background: linear-gradient(135deg, #e8edb0, #9cbf6b); }
.vanilla { background: linear-gradient(135deg, #f6e7c8, #d6b27c); }

.product h3 {
  margin: 0 0 4px;
}

.product p {
  margin: 0 0 8px;
  color: var(--muted);
}

.price {
  font-size: 20px;
  font-weight: 600;
  color: var(--sage-dark) !important;
}

.about p, .contact p {
  max-width: 640px;
  color: var(--muted);
}

footer {
  text-align: center;
  padding: 32px 20px;
  color: var(--muted);
  font-size: 14px;
  border-top: 1px solid var(--cream-dark);
}

.cart-btn {
  white-space: nowrap;
  min-height: 44px;
  border: 1px solid var(--sage);
  background: white;
  color: var(--sage-dark);
  border-radius: 999px;
  padding: 8px 14px;
  font: inherit;
  cursor: pointer;
}

.add-btn {
  width: 100%;
  margin-top: 8px;
  padding: 10px;
  border: none;
  min-height: 44px;
  border-radius: 10px;
  background: var(--sage-dark);
  color: white;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

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

.cart-panel {
  position: fixed;
  top: 72px;
  right: 16px;
  width: 300px;
  background: white;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 12px 40px rgba(47, 62, 51, 0.18);
  z-index: 10;
}

.cart-panel h3 {
  margin: 0 0 12px;
}

.cart-panel ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cart-panel li {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid var(--cream-dark);
}

.cart-sum {
  font-weight: 600;
  text-align: right;
}

.cart-note {
  font-size: 14px;
  color: var(--muted);
}

/* จอเล็ก: ซ่อนเมนู เหลือชื่อร้านกับปุ่มตะกร้า ไม่ให้ตกบรรทัด */
@media (max-width: 599px) {
  nav {
    display: none;
  }
  .cart-panel {
    left: 16px;
    width: auto;
  }
}

@media (min-width: 768px) {
  .product-list {
    grid-template-columns: repeat(3, 1fr);
  }
  .hero h1 {
    font-size: 46px;
  }
  section {
    padding: 88px 24px;
  }
}
