:root {
  --green-dark: #1f3d2b;
  --green-main: #2f6b4f;
  --green-light: #e6f4ee;
  --gold: #c8a951;
  --white: #ffffff;
  --gray: #555;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", sans-serif;
}

body {
  background: var(--green-light);
  color: var(--gray);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Header */
header {
  background: linear-gradient(135deg, var(--green-dark), var(--green-main));
  color: var(--white);
  padding: 20px 0;
}

nav {
  max-width: 1200px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav h1 {
  color: var(--gold);
  font-size: 26px;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 18px;
}

nav ul li a {
  color: var(--white);
  font-weight: 500;
}

/* Hero */
.hero {
  background: linear-gradient(
      rgba(31, 61, 43, 0.8),
      rgba(31, 61, 43, 0.8)
    ),
    url("https://images.unsplash.com/photo-1601758125946-6ec2ef64daf8");
  background-size: cover;
  background-position: center;
  color: var(--white);
  padding: 120px 20px;
  text-align: center;
}

.hero h2 {
  font-size: 42px;
  color: var(--gold);
}

.hero p {
  margin: 15px 0 30px;
}

.btn {
  background: var(--gold);
  color: var(--green-dark);
  padding: 12px 28px;
  border-radius: 30px;
  font-weight: bold;
  margin: 5px;
  display: inline-block;
}

/* Section */
section {
  max-width: 1200px;
  margin: auto;
  padding: 70px 20px;
}

.section-title {
  text-align: center;
  color: var(--green-dark);
  margin-bottom: 40px;
  font-size: 32px;
}

/* Products */
.products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.product {
  background: var(--white);
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  text-align: center;
}

.product h3 {
  color: var(--green-main);
}

.price {
  color: var(--gold);
  font-size: 22px;
  margin: 15px 0;
}

/* Reviews */
.review {
  background: var(--white);
  padding: 25px;
  border-radius: 15px;
  margin-bottom: 20px;
}

/* Footer */
footer {
  background: var(--green-dark);
  color: var(--white);
  padding: 40px 20px;
  text-align: center;
}

footer a {
  color: var(--gold);
  margin: 0 8px;
}
.product img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 15px;
}
.btn-buy {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 22px;
  background: linear-gradient(135deg, #2f6b4f, #1f3d2b);
  color: #fff;
  border-radius: 25px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-buy:hover {
  background: linear-gradient(135deg, #c8a951, #a8893d);
  color: #1f3d2b;
  transform: translateY(-2px);
}
/* === CONTACT BOX === */
.contact {
  background: var(--white);
  border-radius: 18px;
  padding: 45px;
  margin: 60px auto;
  max-width: 900px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);
  border: 1px solid #e2e2e2;
}

/* หัวข้อหลัก */
.contact .section-title {
  text-align: left;
  color: var(--green-dark);
  margin-bottom: 12px;
}

/* คำอธิบายใต้หัวข้อ */
.contact > p {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px dashed #d6d6d6;
}

/* กล่องข้อมูลติดต่อ */
.contact h3 + p {
  background: var(--green-light);
  padding: 20px 24px;
  border-radius: 14px;
  border-left: 6px solid var(--green-main);
  line-height: 1.8;
}

/* หัวข้อย่อย */
.contact h3 {
  margin-top: 35px;
  margin-bottom: 12px;
  color: var(--green-dark);
}

/* === FORM BOX === */
.contact form {
  background: #fafafa;
  padding: 28px;
  border-radius: 16px;
  border: 1px solid #e0e0e0;
}

/* ช่องกรอก */
.contact input,
.contact textarea {
  width: 100%;
  padding: 11px 14px;
  border-radius: 8px;
  border: 1px solid #ccc;
  margin-top: 6px;
  font-size: 14px;
}

/* focus */
.contact input:focus,
.contact textarea:focus {
  outline: none;
  border-color: var(--green-main);
}

/* ปุ่ม */
.contact button {
  margin-top: 15px;
  padding: 10px 28px;
  background: linear-gradient(
    135deg,
    var(--green-main),
    var(--green-dark)
  );
  color: var(--white);
  border: none;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
}

/* === MAP BOX === */
.contact iframe {
  margin-top: 15px;
  border-radius: 16px;
  border: 1px solid #ddd;
}

/* === FOOTER === */
footer {
  margin-top: 60px;
  padding: 20px 0;
  border-top: 1px solid #ddd;
}
/* กล่องเนื้อหา */
.page-box {
  max-width: 600px;
  margin: 40px auto;
  background: #ffffff;
  padding: 30px;
  border-radius: 10px;
  border: 2px solid #4caf50;   /* เขียวเดิม */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

/* หัวข้อ */
.section-title {
  text-align: center;
  color: #2e7d32;  /* เขียวเข้มเดิม */
  margin-bottom: 20px;
}

/* รายการหน้าเว็บ */
.page-list {
  list-style: none;
  padding: 0;
}

.page-list li {
  margin-bottom: 12px;
}

/* ปุ่มลิงก์ */
.page-list a {
  display: block;
  padding: 12px 16px;
  border: 1px solid #4caf50;
  border-radius: 8px;
  text-decoration: none;
  color: #2e7d32;
  background: #f9fff9; /* ขาวอมเขียว */
  font-weight: bold;
}

/* hover แบบสุภาพ */
.page-list a:hover {
  background: #e8f5e9; /* เขียวอ่อนเดิม */
}
.product-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.product-image img {
  width: 85%;
  max-height: 340px;
  object-fit: contain;
  border-radius: 16px;
}
/* ===== Product Detail Page ===== */
.product-detail {
  max-width: 900px;
  margin: 60px auto;
  padding: 50px 40px;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
  text-align: center;
}

.product-detail .section-title {
  margin-bottom: 20px;
}

.product-desc {
  font-size: 16px;
  color: #555;
  line-height: 1.8;
  margin-bottom: 30px;
}

.product-image {
  display: flex;
  justify-content: center;
  margin: 30px 0;
}

.product-image img {
  width: 100%;
  max-width: 420px;
  height: auto;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.product-detail .price {
  font-size: 26px;
  font-weight: bold;
  color: var(--gold);
  margin: 25px 0;
}

.product-detail .btn {
  padding: 12px 32px;
  border-radius: 30px;
}
.product {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.15);
}
/* เอฟเฟกต์ซูมรูปสินค้า */
.product img,
.product-image img {
  transition: transform 0.4s ease;
}

.product img:hover,
.product-image img:hover {
  transform: scale(1.08);
}
/* ===== NAV MENU EFFECT ===== */
nav ul li a {
  position: relative;
  padding: 6px 4px;
  transition: color 0.3s ease;
}

/* เส้นใต้เมนู */
nav ul li a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0%;
  height: 3px;
  background: var(--gold);
  border-radius: 5px;
  transition: width 0.3s ease;
}

/* hover */
nav ul li a:hover {
  color: var(--gold);
}

nav ul li a:hover::after {
  width: 100%;
}
/* ===== SERVICE BOX ===== */
.service-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 40px;
  padding: 0;
}

.service-list li {
  background: #ffffff;
  padding: 22px 24px;
  border-radius: 18px;
  border-left: 6px solid var(--green-main);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  font-size: 15px;
  line-height: 1.6;
  transition: all 0.3s ease;
  position: relative;
}

/* ไอคอนน่ารัก */
.service-list li::before {
  content: "🐶";
  position: absolute;
  top: 18px;
  right: 18px;
  font-size: 22px;
  opacity: 0.3;
}

/* hover เด้ง */
.service-list li:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.15);
  border-left-color: var(--gold);
}
/* ===== BLOG PAGE ===== */
.blog {
  max-width: 1000px;
  margin: auto;
}

.blog-intro {
  text-align: center;
  margin-bottom: 40px;
  color: #666;
}

/* กล่องหมวดบทความ */
.blog-group {
  background: #ffffff;
  padding: 28px 30px;
  border-radius: 20px;
  margin-bottom: 35px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-left: 6px solid var(--green-main);
}

.blog-group:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.14);
}

/* หมวดแนะนำ */
.blog-group.highlight {
  border-left-color: var(--gold);
  background: linear-gradient(#fffdf6, #ffffff);
}

/* หัวข้อหมวด */
.blog-group h3 {
  margin-bottom: 18px;
  color: var(--green-dark);
}

/* รายการบทความ */
.blog-group ul {
  list-style: none;
  padding: 0;
}

.blog-group li {
  padding: 12px 16px;
  margin-bottom: 12px;
  background: var(--green-light);
  border-radius: 12px;
  font-size: 14.5px;
  transition: all 0.25s ease;
  position: relative;
}

/* ไอคอน */
.blog-group li::before {
  content: "📖";
  margin-right: 8px;
}

/* hover บทความ */
.blog-group li:hover {
  background: #ffffff;
  transform: translateX(6px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}
section {
  max-width: 1100px;
  margin: 40px auto;
  padding: 0 20px;
}

.section-title {
  text-align: center;
  font-size: 28px;
  margin-bottom: 30px;
  color: #2e7d32;
}

/* Grid กล่อง */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 22px;
}

/* กล่อง */
.card {
  background: #ffffff;
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  cursor: pointer;
}

/* เด้งตอน hover */
.card:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 18px 35px rgba(0,0,0,0.15);
}

/* หัวข้อในกล่อง */
.card h3 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 18px;
  color: #388e3c;
}

/* เนื้อหา */
.card p {
  font-size: 15px;
  color: #555;
  line-height: 1.6;
}
/* เอาจุดหน้ารายการออก */
.product-feature {
  list-style: none;
  padding-left: 0;
}
.blog-group details {
  background: #fff;
  border-radius: 10px;
  padding: 12px 15px;
}

.blog-group summary {
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  position: relative;
}

.blog-group summary::-webkit-details-marker {
  display: none;
}

.blog-group summary::after {
  content: "+";
  position: absolute;
  right: 0;
  font-size: 18px;
  color: var(--green-main);
}

.blog-group details[open] summary::after {
  content: "-";
  color: var(--gold);
}

.blog-content {
  margin-top: 10px;
  background: var(--green-light);
  padding: 12px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.7;
}