@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Thai:wght@300;400;500;600;700&family=Playfair+Display:wght@400;600;700&family=Lato:wght@300;400;700&display=swap');

/* ===== CSS VARIABLES ===== */
:root {
  --primary: #7A5C44;
  --primary-dark: #5A3D28;
  --primary-light: #A07855;
  --accent: #C4956A;
  --bg-main: #FAF6F1;
  --bg-alt: #F0E8DF;
  --bg-card: #FFFFFF;
  --bg-footer: #2C2420;
  --icon-bg: #E8D5C0;
  --text-dark: #2C2420;
  --text-mid: #5A4A3A;
  --text-light: #9A8878;
  --border: #DDD0C0;
  --white: #FFFFFF;
  --shadow: 0 4px 24px rgba(90, 60, 35, 0.10);
  --shadow-hover: 0 8px 32px rgba(90, 60, 35, 0.18);
  --radius: 12px;
  --radius-pill: 50px;
  --transition: 0.3s ease;
}

/* ===== RESET ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'IBM Plex Sans Thai', 'Lato', sans-serif;
  background: var(--bg-main);
  color: var(--text-dark);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
  object-fit: cover;
}

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

ul {
  list-style: none;
}

/* ===== TYPOGRAPHY ===== */
h1,
h2,
h3,
h4 {
  font-family: 'Playfair Display', 'IBM Plex Sans Thai', sans-serif;
  font-weight: 700;
  line-height: 1.3;
}

.section-title {
  text-align: center;
  font-size: 1.8rem;
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
}

.section-subtitle {
  text-align: center;
  color: var(--text-light);
  margin-bottom: 2.5rem;
  font-size: 1rem;
}

.section-divider {
  width: 60px;
  height: 3px;
  background: var(--accent);
  margin: 0.5rem auto 2rem;
  border-radius: 2px;
}

/* ===== LAYOUT ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 5rem 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-dark {
  background: var(--bg-footer);
  color: var(--white);
}

/* ===== NAVBAR ===== */
#navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 16px rgba(90, 60, 35, 0.08);
  transition: var(--transition);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.nav-logo .logo-main {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--primary-dark);
}

.nav-logo .logo-sub {
  font-size: 0.65rem;
  letter-spacing: 4px;
  color: var(--primary-light);
  text-align: center;
}

.nav-menu {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-menu a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-mid);
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: var(--transition);
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--primary-dark);
  border-radius: 2px;
  transition: var(--transition);
}

.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 1rem 1.5rem;
}

.mobile-menu a {
  padding: 0.75rem 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-mid);
  border-bottom: 1px solid var(--bg-alt);
  transition: var(--transition);
}

.mobile-menu a:hover,
.mobile-menu a.active {
  color: var(--primary);
}

.mobile-menu.open {
  display: flex;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.8rem;
  border-radius: var(--radius-pill);
  font-family: 'IBM Plex Sans Thai', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary-dark);
  color: var(--white);
  border-color: var(--primary-dark);
}

.btn-primary:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.btn-outline {
  background: transparent;
  color: var(--primary-dark);
  border-color: var(--primary-dark);
}

.btn-outline:hover {
  background: var(--primary-dark);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-light {
  background: var(--white);
  color: var(--primary-dark);
  border-color: var(--white);
}

.btn-light:hover {
  background: var(--bg-alt);
  transform: translateY(-2px);
}

/* ===== HERO SECTION (legacy) ===== */
.hero {
  background: var(--bg-alt);
  min-height: 520px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  width: 100%;
}

.hero-text h1 {
  font-size: 2.8rem;
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
}

.hero-text .hero-tagline {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 1rem;
}

.hero-text p {
  color: var(--text-mid);
  margin-bottom: 1.8rem;
  font-size: 0.98rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-img {
  border-radius: var(--radius);
  overflow: hidden;
  height: 420px;
}

.hero-img img {
  width: 100%;
  height: 100%;
}

/* ===== HERO V2 (Background Image) ===== */
.hero-v2 {
  background: #F5EFE6;
  min-height: 480px;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  position: relative;
}

/* Background image */
.hero-v2-bg {
  position: absolute;
  inset: 0;
  background: url('../images/hero/hero_main.webp') center center / cover no-repeat;
  z-index: 0;
}

/* Text content */
.hero-v2-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 1.5rem;
  display: flex;
  align-items: center;
}

.hero-v2-left {
  max-width: 640px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Logo title */
.hero-logo-main {
  font-family: 'Playfair Display', serif;
  font-size: 4rem;
  font-weight: 700;
  color: #2C2420;
  letter-spacing: 4px;
  line-height: 1;
  margin-bottom: 0.3rem;
}

/* CO.,LTD flanking lines */
.hero-logo-sub {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  margin-bottom: 1.2rem;
  width: 100%;
}

.hero-logo-sub span {
  font-family: 'Lato', sans-serif;
  font-size: 1rem;
  letter-spacing: 5px;
  color: #8B6347;
  font-weight: 400;
  white-space: nowrap;
}

.hero-logo-sub::before,
.hero-logo-sub::after {
  content: '';
  flex: 1;
  max-width: 55px;
  height: 1.5px;
  background: #8B6347;
}

/* Tagline */
.hero-v2-tagline {
  font-family: 'IBM Plex Sans Thai', sans-serif;
  font-size: 1.55rem;
  font-weight: 600;
  color: #2C2420;
  line-height: 1.65;
  margin-bottom: 1rem;
}

/* Body paragraph */
.hero-v2-body {
  font-size: 1.05rem;
  color: #6A5A4A;
  line-height: 1.9;
  text-align: center;
  margin-bottom: 1.8rem;
}

/* Buttons row */
.hero-v2-actions {
  display: flex;
  flex-direction: row;
  gap: 0.9rem;
  justify-content: center;
  flex-wrap: nowrap;
  align-items: center;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-v2 {
    min-height: auto;
  }

  .hero-v2-content {
    padding: 3rem 1.5rem 5rem;
  }

  .hero-logo-main {
    font-size: 2.2rem;
  }

  .hero-v2-tagline {
    font-size: 1.1rem;
  }

  .hero-v2-actions {
    flex-wrap: wrap;
  }
}

/* ===== PAGE HERO BANNER ===== */
.page-hero {
  position: relative;
  min-height: 550px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--bg-main);
}

.page-hero .container {
  position: relative;
  z-index: 1;
  max-width: 100%;
  margin-left: 0;
  padding-left: 20%;
}

.page-hero-inner {
  max-width: 650px;
}

.page-hero-text h1 {
  font-size: 2.5rem;
  color: var(--primary-dark);
  margin-bottom: 0.3rem;
  text-shadow: 0 2px 8px rgba(255, 255, 255, 0.8), 0 0 20px rgba(255, 255, 255, 0.6);
}

.page-hero-text .page-hero-en {
  font-size: 1rem;
  letter-spacing: 3px;
  color: var(--primary);
  margin-bottom: 1rem;
  font-family: 'Lato', sans-serif;
  text-shadow: 0 1px 6px rgba(255, 255, 255, 0.7);
}

.page-hero-text p {
  color: var(--text-dark);
  font-size: 0.98rem;
  font-weight: 500;
  text-shadow: 0 1px 4px rgba(255, 255, 255, 0.7);
}

.page-hero-img {
  border-radius: var(--radius);
  overflow: hidden;
  height: 320px;
}

.page-hero-img img {
  width: 100%;
  height: 100%;
}

/* ===== ICON FEATURE CARDS ===== */
.features-section {
  background: var(--white);
  padding: 4rem 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.feature-card {
  text-align: center;
  padding: 2rem 1.5rem;
  transition: var(--transition);
  position: relative;
}

/* เส้นแบ่งแนวตั้ง — อยู่กึ่งกลาง gap */
.feature-card:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -1rem;
  top: 50%;
  transform: translateY(-50%);
  height: 55%;
  width: 1px;
  background: linear-gradient(to bottom,
      transparent,
      var(--border) 25%,
      var(--accent) 50%,
      var(--border) 75%,
      transparent);
}

.feature-card:hover {
  transform: translateY(-4px);
}

/* Minimal — ไม่มีกรอบ ไม่มีพื้น */
.feature-icon-wrap {
  width: auto;
  height: auto;
  border: none;
  border-radius: 0;
  display: block;
  margin: 0 auto 1rem;
  font-size: 2.8rem;
  color: var(--accent);
  transition: var(--transition);
  background: transparent;
  text-align: center;
}

.feature-card:hover .feature-icon-wrap {
  color: var(--primary-dark);
  transform: translateY(-3px);
}

.feature-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
  font-family: 'IBM Plex Sans Thai', sans-serif;
}

.feature-card p {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.7;
}

/* ===== CATEGORY GRID ===== */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.2rem;
  margin-bottom: 1.5rem;
}

.cat-card {
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  position: relative;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.cat-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.cat-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.cat-card-label {
  padding: 0 1rem;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 65px;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary-dark);
}

/* ===== PRODUCT CARDS ===== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.2rem;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.product-card .badge-new {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--primary);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
}

.product-card img {
  width: 100%;
  height: 160px;
}

.product-card-body {
  padding: 0.8rem;
}

.product-card-body h4 {
  font-size: 0.9rem;
  color: var(--text-dark);
  margin-bottom: 0.3rem;
  font-family: 'IBM Plex Sans Thai', sans-serif;
}

.product-card-body .price {
  font-weight: 700;
  color: var(--primary);
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.product-card-body .btn-detail {
  display: block;
  text-align: center;
  padding: 0.4rem;
  background: var(--bg-alt);
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary-dark);
  transition: var(--transition);
}

.product-card-body .btn-detail:hover {
  background: var(--primary-dark);
  color: var(--white);
}

/* ===== ABOUT PREVIEW ===== */
.about-preview {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-preview img {
  border-radius: var(--radius);
  height: 360px;
  width: 100%;
}

.about-preview-text .about-title {
  font-size: 1.8rem;
  color: var(--primary-dark);
  margin-bottom: 1.2rem;
  font-family: 'Playfair Display', 'IBM Plex Sans Thai', serif;
  font-weight: 600;
}

.about-preview-text p {
  color: var(--text-mid);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  line-height: 1.8;
}

.director-info-box {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  background: #EAE0D3;
  /* สีพื้นหลังกล่องให้เข้มกว่าพื้นหลัง section เล็กน้อย */
  padding: 1rem 1.5rem;
  border-radius: var(--radius);
  display: inline-flex;
  min-width: 80%;
}

.director-info-box .director-icon-wrap {
  width: 56px;
  height: 56px;
  background: #F5DEC6;
  /* สีพื้นหลังไอคอนอมส้มอ่อนๆ */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #7A5C44;
  flex-shrink: 0;
}

.director-info-box div p {
  margin-bottom: 0;
  line-height: 1.4;
  color: var(--text-mid);
  font-size: 0.9rem;
}

.director-info-box div strong {
  font-size: 1.1rem;
  color: var(--primary-dark);
  display: block;
  margin-bottom: 0.2rem;
  font-weight: 700;
}

/* ===== CONTACT BANNER ===== */
.contact-banner {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.contact-banner .phone-icon {
  width: 72px;
  height: 72px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.8rem;
  flex-shrink: 0;
}

.contact-banner-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 0.3rem;
}

.contact-banner-sub {
  font-size: 0.88rem;
  color: var(--text-light);
}

.contact-info-items {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  margin-left: auto;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
}

.contact-info-item .icon-circle {
  width: 40px;
  height: 40px;
  font-size: 1rem;
  flex-shrink: 0;
}

.contact-info-item label {
  font-size: 0.78rem;
  color: var(--text-light);
  display: block;
}

.contact-info-item span {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary-dark);
}

/* ===== INFO LIST ===== */
.info-list {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.info-item .icon-circle {
  width: 48px;
  height: 48px;
  font-size: 1.1rem;
  flex-shrink: 0;
  background: var(--icon-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-dark);
}

.info-item-text label {
  font-size: 0.78rem;
  color: var(--text-light);
  display: block;
  font-weight: 500;
}

.info-item-text span {
  font-size: 0.95rem;
  color: var(--text-dark);
  font-weight: 600;
}

/* ===== NUMBERED CARDS ===== */
.numbered-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.2rem;
}

.numbered-card {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 2rem 1.2rem;
  text-align: center;
  box-shadow: none;
  transition: var(--transition);
}

.numbered-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.num-badge {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.8rem;
  font-size: 1rem;
  font-weight: 700;
  font-family: 'Lato', sans-serif;
  color: var(--accent);
  letter-spacing: 1px;
}

.numbered-card .icon-circle {
  margin: 0 auto 0.8rem;
  background: transparent;
  color: var(--accent);
  font-size: 1.5rem;
  width: 48px;
  height: 48px;
}

.numbered-card h3 {
  font-size: 0.95rem;
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
  font-family: 'IBM Plex Sans Thai', sans-serif;
  font-weight: 700;
}

.numbered-card p {
  font-size: 0.82rem;
  color: var(--text-light);
  line-height: 1.7;
}

/* ===== VISION MISSION ===== */
.vision-mission {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.vm-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.vm-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.vm-card-header .icon-circle {
  flex-shrink: 0;
  margin: 0;
}

.vm-card .icon-circle {
  margin-bottom: 0;
}

.vm-card h3 {
  font-size: 1.1rem;
  color: var(--primary-dark);
  margin-bottom: 0.8rem;
}

.vm-card ul li {
  padding: 0.3rem 0;
  font-size: 0.9rem;
  color: var(--text-mid);
  padding-left: 1rem;
  position: relative;
}

.vm-card ul li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* ===== JOIN BANNER ===== */
.join-banner {
  background: linear-gradient(135deg, var(--bg-alt) 60%, var(--icon-bg));
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.join-banner p {
  font-size: 1rem;
  color: var(--text-mid);
  max-width: 600px;
}

.join-banner h3 {
  font-size: 1.3rem;
  color: var(--primary-dark);
  margin-bottom: 0.4rem;
}

/* ===== CONTACT PAGE ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
}

.contact-form-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.contact-form-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  grid-column: 1 / -1;
}

.map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  height: 350px;
}

.map-embed iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.form-group {
  margin-bottom: 1.2rem;
}

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-mid);
  margin-bottom: 0.4rem;
}

.form-group label .req {
  color: #d44;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: 'IBM Plex Sans Thai', sans-serif;
  font-size: 0.95rem;
  color: var(--text-dark);
  background: var(--bg-main);
  transition: var(--transition);
  outline: none;
}

.form-control:focus {
  border-color: var(--primary);
  background: var(--white);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.extra-contact-card {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.extra-contact-card h3 {
  font-size: 1rem;
  color: var(--primary-dark);
  margin-bottom: 1rem;
}

.social-links {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.7rem 1rem;
  background: var(--white);
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-dark);
  transition: var(--transition);
}

.social-link:hover {
  background: var(--primary-dark);
  color: var(--white);
}

.social-link i {
  width: 20px;
  text-align: center;
}

/* ===== DIRECTOR CARD ===== */
.director-card {
  display: grid;
  grid-template-columns: 35% 1fr;
  gap: 0;
  background: var(--bg-alt);
  border-radius: var(--radius);
  overflow: hidden;
  align-items: stretch;
  max-height: 220px;
}

.director-img-wrap {
  position: relative;
  overflow: hidden;
}

.director-img-wrap img {
  width: 100%;
  height: 100%;
  min-height: 160px;
  object-fit: cover;
  object-position: center top;
  border-radius: 0;
  display: block;
}

.director-img-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, transparent, var(--bg-alt));
  pointer-events: none;
}

.director-card h3 {
  font-size: 1.1rem;
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
}

.director-card p {
  font-size: 0.92rem;
  color: var(--text-mid);
}

/* ===== STRIP FEATURES ===== */
.strip-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  text-align: left;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
}

.strip-feature {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.8rem 1.5rem;
  border-right: 1px solid var(--border);
}

.strip-feature:last-child {
  border-right: none;
}

.strip-feature .icon-circle {
  width: 52px;
  height: 52px;
  font-size: 1.3rem;
  flex-shrink: 0;
  background: var(--icon-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-dark);
  margin: 0;
}

.strip-feature h4 {
  font-size: 0.95rem;
  color: var(--primary-dark);
  margin-bottom: 0.3rem;
  font-weight: 700;
}

.strip-feature p {
  font-size: 0.82rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* ===== WHY US ===== */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 3rem;
  align-items: center;
}

.why-list {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.why-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.why-item .icon-circle {
  width: 48px;
  height: 48px;
  font-size: 1.1rem;
  flex-shrink: 0;
  background: var(--icon-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-dark);
}

.why-item h4 {
  font-size: 1rem;
  color: var(--primary-dark);
  margin-bottom: 0.2rem;
}

.why-item p {
  font-size: 0.88rem;
  color: var(--text-light);
}

.why-img img {
  border-radius: var(--radius);
  height: 380px;
  width: 100%;
}

/* ===== FOOTER ===== */
#footer {
  background: var(--bg-footer);
  color: #D4C4B4;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.5fr 1fr;
  gap: 3rem;
  padding: 3.5rem 0 2.5rem;
}

.footer-brand .logo-main {
  color: var(--white);
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  letter-spacing: 2px;
}

.footer-brand .logo-sub {
  color: var(--accent);
  font-size: 0.6rem;
  letter-spacing: 4px;
}

.footer-brand p {
  font-size: 0.88rem;
  color: #9A8878;
  margin-top: 0.8rem;
  line-height: 1.7;
}

.footer-col h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1.2rem;
  letter-spacing: 1px;
}

.footer-menu li {
  margin-bottom: 0.5rem;
}

.footer-menu a {
  font-size: 0.88rem;
  color: #9A8878;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
}

.footer-menu a:hover {
  color: var(--accent);
  padding-left: 4px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 0.7rem;
  font-size: 0.88rem;
  color: #9A8878;
}

.footer-contact-item i {
  color: var(--accent);
  width: 16px;
  margin-top: 3px;
}

.footer-social {
  display: flex;
  gap: 0.8rem;
  margin-top: 0.5rem;
}

.footer-social a {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--primary);
}

.footer-qr img {
  width: 80px;
  border-radius: 8px;
  margin-top: 0.5rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.2rem 0;
  text-align: center;
  font-size: 0.82rem;
  color: #7A6A5A;
}

/* ===== CATEGORY PRODUCT PAGE ===== */
.cat-product-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
}

.cat-product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  text-align: left;
}

.cat-product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.cat-product-card img {
  height: 260px;
  width: 100%;
  object-fit: cover;
  display: block;
}

.cat-product-card-body {
  padding: 0.8rem 1rem;
}

.cat-product-card-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.cat-product-card-label .icon-circle {
  width: 32px;
  height: 32px;
  font-size: 0.75rem;
  flex-shrink: 0;
  background: var(--icon-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-dark);
}

.cat-product-card-body h3 {
  font-size: 0.88rem;
  color: var(--primary-dark);
  margin: 0;
  font-family: 'IBM Plex Sans Thai', sans-serif;
  font-weight: 600;
}

.cat-product-card-body .link {
  font-size: 0.8rem;
  color: var(--primary);
  font-weight: 500;
  display: inline-block;
}

/* ===== THAI FONT UNIVERSAL ===== */
/* ครอบคลุมอักขระไทย U+0E00-U+0E7F ทั่วทั้งเว็บด้วย IBM Plex Sans Thai */
@font-face {
  font-family: 'Thai-Override';
  src: local('IBM Plex Sans Thai');
  unicode-range: U+0E00-U+0E7F;
}

* {
  font-family: inherit;
}

/* ===== AOS fallback ===== */
[data-aos] {
  opacity: 1 !important;
  transform: none !important;
}

/* ===== UTILITIES ===== */
.text-center {
  text-align: center;
}

.mt-1 {
  margin-top: 0.5rem;
}

.mt-2 {
  margin-top: 1rem;
}

.mt-3 {
  margin-top: 1.5rem;
}

.mb-1 {
  margin-bottom: 0.5rem;
}

.mb-2 {
  margin-bottom: 1rem;
}

.gap-1 {
  gap: 0.5rem;
}

.d-flex {
  display: flex;
}

.align-center {
  align-items: center;
}

/* ===== CONTACT FORM ===== */
.contact-form-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  align-items: start;
}

.contact-form-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.extra-contact-card {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.extra-contact-card h3 {
  font-size: 1rem;
  color: var(--primary-dark);
  margin-bottom: 0;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.form-group label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary-dark);
}

.form-group .req {
  color: var(--accent);
}

.form-control {
  width: 100%;
  padding: 0.6rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.9rem;
  font-family: 'IBM Plex Sans Thai', sans-serif;
  color: var(--text-dark);
  background: var(--white);
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb, 160, 110, 60), 0.1);
}

.form-control::placeholder {
  color: var(--text-light);
  font-size: 0.85rem;
}

select.form-control {
  appearance: auto;
  cursor: pointer;
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

/* ===== CONTACT ALERTS ===== */
.contact-alert {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  padding: 1rem 1.2rem;
  border-radius: var(--radius);
  margin-bottom: 1.4rem;
  font-size: 0.92rem;
  line-height: 1.6;
}

.contact-alert i {
  font-size: 1.3rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-alert-success {
  background: #D1FAE5;
  color: #065F46;
  border: 1px solid #A7F3D0;
}

.contact-alert-error {
  background: #FEE2E2;
  color: #991B1B;
  border: 1px solid #FECACA;
}

/* ===== MAP ===== */
.map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  height: 280px;
}

.map-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ===========================
   CATEGORY PAGE LAYOUT
   =========================== */

/* หน้า category.php — sidebar + grid */
.cat-page-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2rem;
  align-items: start;
}

/* ── Sidebar ── */
.cat-sidebar-card {
  background: var(--bg-alt);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  position: sticky;
  top: 88px; /* navbar height + gap */
}

.cat-sidebar-title {
  padding: 0.9rem 1.2rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--primary-dark);
  background: var(--icon-bg);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cat-sidebar-list {
  padding: 0.4rem 0;
}

.cat-sidebar-list li {
  list-style: none;
}

.cat-sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 1.2rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-mid);
  transition: var(--transition);
  text-decoration: none;
  border-left: 3px solid transparent;
}

.cat-sidebar-link i {
  width: 16px;
  text-align: center;
  color: var(--accent);
  flex-shrink: 0;
}

.cat-sidebar-link:hover {
  color: var(--primary-dark);
  background: rgba(196, 149, 106, 0.1);
  border-left-color: var(--accent);
}

.cat-sidebar-link.active {
  color: var(--primary-dark);
  font-weight: 700;
  background: rgba(196, 149, 106, 0.15);
  border-left-color: var(--primary);
}

/* ── Main header ── */
.cat-main-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.cat-main-header h2 {
  font-size: 1.5rem;
  color: var(--primary-dark);
  font-family: 'Playfair Display', serif;
}

.cat-count {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-light);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  padding: 0.25rem 0.8rem;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

/* ── Product grid (category page) ── */
.cat-products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.product-card-full {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
}

.product-card-full:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.product-card-full .badge-new {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--primary);
  color: var(--white);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 20px;
  letter-spacing: 1px;
  z-index: 2;
}

.product-card-full-img {
  overflow: hidden;
  height: 220px;
}

.product-card-full-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card-full:hover .product-card-full-img img {
  transform: scale(1.06);
}

.product-card-full-body {
  padding: 1rem 1.2rem 1.2rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-card-full-body h4 {
  font-size: 0.97rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.3rem;
  font-family: 'IBM Plex Sans Thai', sans-serif;
  line-height: 1.4;
}

.product-card-full-body .prod-desc {
  font-size: 0.82rem;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card-full-body .price {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.8rem;
  font-family: 'Lato', sans-serif;
}

.product-card-full-body .btn-detail {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-top: auto;
  padding: 0.55rem;
  background: var(--bg-alt);
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-dark);
  transition: var(--transition);
  text-decoration: none;
}

.product-card-full-body .btn-detail:hover {
  background: var(--primary-dark);
  color: var(--white);
}

/* ── Empty state ── */
.cat-empty {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-light);
}

.cat-empty i {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
  color: var(--border);
}

.cat-empty p {
  font-size: 1rem;
  color: var(--text-light);
}

/* ── cat-product-card เป็น link ── */
a.cat-product-card {
  display: block;
  text-decoration: none;
  color: inherit;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .cat-page-layout {
    grid-template-columns: 1fr;
  }

  .cat-sidebar-card {
    position: static;
  }

  .cat-products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

}

@media (max-width: 540px) {
  .cat-products-grid {
    grid-template-columns: 1fr;
  }
}

/* ===========================
   PRODUCT DETAIL PAGE
   =========================== */

/* hero ขนาดเล็ก */
.page-hero-sm {
  min-height: 240px !important;
  padding: 3rem 0 !important;
}

/* breadcrumb ใน hero */
.prod-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  font-size: 0.82rem;
  margin-bottom: 0.6rem;
  opacity: 0.85;
}

.prod-breadcrumb a {
  color: var(--accent);
  font-weight: 500;
  transition: var(--transition);
}

.prod-breadcrumb a:hover { color: var(--white); }

.prod-breadcrumb i {
  font-size: 0.6rem;
  opacity: 0.5;
}

.prod-breadcrumb span { opacity: 0.7; }

/* 2-column layout */
.prod-detail-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

/* ── Gallery ── */
.prod-main-img-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-hover);
  aspect-ratio: 1 / 1;
}

.prod-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.prod-main-img-wrap:hover .prod-main-img {
  transform: scale(1.04);
}

.prod-badge-new,
.prod-badge-featured {
  position: absolute;
  top: 14px;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  z-index: 2;
  letter-spacing: 0.5px;
}

.prod-badge-new {
  left: 14px;
  background: var(--primary-dark);
  color: var(--white);
}

.prod-badge-featured {
  right: 14px;
  background: #D4AC0D;
  color: var(--white);
}

/* ── Info ── */
.prod-cat-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  background: rgba(196,149,106,0.12);
  border: 1px solid rgba(196,149,106,0.3);
  padding: 3px 12px;
  border-radius: 20px;
  margin-bottom: 0.8rem;
  transition: var(--transition);
  text-decoration: none;
}

.prod-cat-tag:hover {
  background: rgba(196,149,106,0.25);
}

.prod-name {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-dark);
  line-height: 1.3;
  margin-bottom: 0.6rem;
}

.prod-price {
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--primary);
  font-family: 'Lato', sans-serif;
  margin-bottom: 0.4rem;
}

.prod-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 1.2rem 0;
}

/* description */
.prod-description h4 {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-mid);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.prod-description h4 i { color: var(--accent); }

.prod-description p {
  font-size: 0.95rem;
  color: var(--text-mid);
  line-height: 1.8;
}

/* action buttons */
.prod-actions {
  display: flex;
  gap: 0.8rem;
  margin-top: 1.6rem;
  flex-wrap: wrap;
}

.prod-btn-contact {
  flex: 1;
  justify-content: center;
  min-width: 160px;
}

.prod-btn-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary-dark);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  transition: var(--transition);
  white-space: nowrap;
}

.prod-btn-back:hover {
  background: var(--border);
}

/* meta icons */
.prod-meta-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.4rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--border);
}

.prod-meta-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--text-light);
  font-weight: 500;
}

.prod-meta-item i {
  color: var(--accent);
  font-size: 0.9rem;
}

/* ── Responsive ── */
@media (max-width: 860px) {
  .prod-detail-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .prod-main-img-wrap {
    max-width: 480px;
    margin: 0 auto;
  }

  .prod-name { font-size: 1.5rem; }
  .prod-price { font-size: 1.5rem; }
}

@media (max-width: 480px) {
  .prod-actions { flex-direction: column; }
  .prod-btn-contact { min-width: unset; }
}