/* === Variables === */
:root {
  --navy: #1a3a5c;
  --navy-dark: #0f2640;
  --navy-light: #2a5a8c;
  --white: #ffffff;
  --gold: #c9a84c;
  --gold-light: #d4ba6a;
  --gray-50: #f8f9fa;
  --gray-100: #f0f2f5;
  --gray-200: #e2e6ea;
  --gray-400: #ced4da;
  --gray-600: #6c757d;
  --gray-800: #343a40;
  --font: 'Noto Sans Thai', sans-serif;
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--gray-800);
  line-height: 1.7;
  font-size: 16px;
}
a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--gold); }
img { max-width: 100%; height: auto; }
ul { list-style: none; }

/* === Utility === */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.container-narrow { max-width: 800px; }
.section-title {
  font-size: 2rem;
  color: var(--navy);
  text-align: center;
  margin-bottom: 0.5rem;
  font-weight: 700;
}
.section-subtitle {
  text-align: center;
  color: var(--gray-600);
  margin-bottom: 3rem;
  font-size: 1.1rem;
}

/* === Buttons === */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s;
  cursor: pointer;
  border: 2px solid transparent;
  font-family: var(--font);
}
.btn-primary {
  background: var(--navy);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--navy-light);
  color: var(--white);
}
.btn-gold {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}
.btn-gold:hover {
  background: var(--gold-light);
  color: var(--white);
}
.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
}
.btn-white {
  background: var(--white);
  color: var(--navy);
}
.btn-white:hover {
  background: var(--gray-100);
  color: var(--navy);
}

/* === Header === */
.site-header {
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.logo {
  text-decoration: none;
}
.logo-upp {
  font-family: 'Noto Sans Thai', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: #1a3a5c;
}
.logo-material {
  font-family: 'Noto Sans Thai', sans-serif;
  font-size: 1.8rem;
  font-weight: 600;
  letter-spacing: 3px;
  color: #c9a84c;
}
.nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-menu li a {
  padding: 8px 16px;
  font-weight: 500;
  border-radius: 4px;
  transition: background 0.2s;
}
.nav-menu li a:hover {
  background: var(--gray-100);
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 24px;
  position: relative;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background: var(--navy);
  border-radius: 2px;
  position: absolute;
  left: 0;
  transition: 0.3s;
}
.nav-toggle span:nth-child(1) { top: 0; }
.nav-toggle span:nth-child(2) { top: 10px; }
.nav-toggle span:nth-child(3) { top: 20px; }
.nav-toggle.active span:nth-child(1) { top: 10px; transform: rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { top: 10px; transform: rotate(-45deg); }

/* Dropdown */
.dropdown { position: relative; }
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  border-radius: 8px;
  min-width: 220px;
  padding: 8px 0;
  z-index: 100;
}
.dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu li a {
  display: block;
  padding: 8px 20px;
  font-size: 0.95rem;
}

/* === Hero === */
.hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 50%, var(--navy-light) 100%);
  color: var(--white);
  padding: 100px 0 80px;
  text-align: center;
}
.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
  font-weight: 700;
  line-height: 1.3;
}
.hero p {
  font-size: 1.2rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto 2rem;
}
.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* === Product Grid === */
.products-section {
  padding: 80px 0;
  background: var(--gray-50);
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}
.product-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: transform 0.3s, box-shadow 0.3s;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.product-card-image {
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
}
.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-placeholder {
  background: linear-gradient(135deg, var(--gray-100), var(--gray-200));
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-600);
  font-size: 0.9rem;
}
.product-card-body {
  padding: 20px;
}
.product-card-body h3 {
  color: var(--navy);
  margin-bottom: 8px;
  font-size: 1.1rem;
}
.product-card-body p {
  color: var(--gray-600);
  font-size: 0.9rem;
  margin-bottom: 12px;
}
.product-card-body .btn {
  font-size: 0.85rem;
  padding: 8px 20px;
}

/* === Brands === */
.brands-section {
  padding: 60px 0;
}
.brand-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 40px;
}
.brand-item {
  width: 234px;
  color: var(--gray-600);
  font-weight: 600;
  font-size: 0.85rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.brand-item img {
  height: 48px;
  width: auto;
  object-fit: contain;
}
.brand-item.brand-text .brand-name {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy);
}

/* === Features === */
.features-section {
  padding: 80px 0;
  background: var(--gray-50);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
}
.feature-card {
  text-align: center;
  padding: 32px 20px;
}
.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}
.feature-card h3 {
  color: var(--navy);
  margin-bottom: 8px;
}
.feature-card p {
  color: var(--gray-600);
  font-size: 0.95rem;
}

/* === Contact Section === */
.contact-section {
  padding: 80px 0;
  background: var(--navy);
  color: var(--white);
}
.contact-section .section-title { color: var(--white); }
.contact-section .section-subtitle { color: rgba(255,255,255,0.7); }
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.contact-card {
  background: rgba(255,255,255,0.1);
  padding: 32px 24px;
  border-radius: 12px;
  text-align: center;
}
.contact-icon {
  font-size: 2rem;
  margin-bottom: 12px;
  color: var(--gold);
}
.contact-card h3 {
  margin-bottom: 8px;
  font-size: 1.1rem;
}
.contact-card p {
  opacity: 0.9;
  font-size: 0.95rem;
}
.contact-card a {
  color: var(--gold);
}
.contact-card a:hover {
  color: var(--gold-light);
}

/* === Page Hero === */
.page-hero {
  background: linear-gradient(135deg, var(--navy-dark), var(--navy));
  color: var(--white);
  padding: 60px 0;
  text-align: center;
}
.page-hero h1 {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}
.page-hero .subtitle {
  opacity: 0.85;
  font-size: 1.1rem;
}

/* === Page Content === */
.page-content {
  padding: 60px 0;
}
.page-content h2 {
  color: var(--navy);
  margin: 2rem 0 1rem;
  font-size: 1.5rem;
}
.page-content h3 {
  color: var(--navy);
  margin: 1.5rem 0 0.75rem;
}
.page-content p {
  margin-bottom: 1rem;
}
.page-content ul, .page-content ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}
.page-content ul { list-style: disc; }
.page-content ol { list-style: decimal; }
.page-content li { margin-bottom: 0.5rem; }

/* === Product Detail === */
.product-detail {
  padding: 60px 0;
}
.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.product-detail-image img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 12px;
}
.product-placeholder-lg {
  background: linear-gradient(135deg, var(--gray-100), var(--gray-200));
  height: 400px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-600);
  font-size: 1.1rem;
}
.product-detail-info h2 {
  color: var(--navy);
  margin: 1.5rem 0 0.75rem;
}
.product-detail-info p {
  margin-bottom: 1rem;
  color: var(--gray-600);
}
.product-detail-info ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}
.product-detail-info li {
  margin-bottom: 0.5rem;
  color: var(--gray-600);
}
.product-specs {
  margin: 2rem 0;
}
.product-specs h3 {
  color: var(--navy);
  margin-bottom: 1rem;
}
.product-specs table {
  width: 100%;
  border-collapse: collapse;
}
.product-specs td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--gray-200);
  font-size: 0.95rem;
}
.product-specs tr:last-child td { border-bottom: none; }
.product-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 2rem;
}

/* === Blog === */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.blog-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: transform 0.3s;
}
.blog-card:hover { transform: translateY(-3px); }
.blog-card .card-body {
  padding: 20px;
}
.blog-card .card-body .post-date {
  color: var(--gray-600);
  font-size: 0.85rem;
  margin-bottom: 8px;
}
.blog-card .card-body h3 {
  color: var(--navy);
  margin-bottom: 8px;
  font-size: 1.05rem;
}
.blog-card .card-body h3 a {
  color: inherit;
  text-decoration: none;
}
.blog-card .card-body h3 a:hover { color: var(--gold); }
.blog-card .card-body p {
  color: var(--gray-600);
  font-size: 0.9rem;
  margin-bottom: 0;
}
.blog-card .card-image a { display: block; }
.blog-card .card-image { aspect-ratio: 3 / 2; }

/* === Post === */
.post-meta {
  opacity: 0.8;
  font-size: 0.95rem;
}
.post-content {
  padding: 60px 0;
}
.post-content p { margin-bottom: 1.2rem; }
.post-content h2 {
  color: var(--navy);
  margin: 2rem 0 1rem;
}
.post-content ul, .post-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1.2rem;
}
.post-content ul { list-style: disc; }
.post-content ol { list-style: decimal; }

/* === Order Steps === */
.order-steps {
  counter-reset: step;
}
.order-step {
  display: flex;
  gap: 24px;
  margin-bottom: 32px;
  align-items: flex-start;
}
.order-step::before {
  counter-increment: step;
  content: counter(step);
  min-width: 48px;
  height: 48px;
  background: var(--navy);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
}
.order-step-content h3 {
  color: var(--navy);
  margin-bottom: 4px;
}
.order-step-content p {
  color: var(--gray-600);
}

/* === Products Index === */
.products-index {
  padding: 60px 0;
}

/* === Footer === */
.site-footer {
  background: #2d2d2d;
  color: var(--white);
  padding: 60px 0 0;
}
.footer-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.site-footer h3 {
  color: var(--gold);
  margin-bottom: 16px;
  font-size: 1.1rem;
}
.footer-map { border-radius: 8px; overflow: hidden; }
.footer-map iframe { display: block; }
.site-footer ul li {
  margin-bottom: 8px;
}
.site-footer ul li a {
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
}
.site-footer ul li a:hover { color: var(--gold); }
.contact-list li {
  font-size: 0.9rem;
  opacity: 0.85;
  margin-bottom: 12px;
  line-height: 1.6;
}
.contact-list a { color: var(--gold); }
.footer-bottom {
  margin-top: 40px;
  padding: 16px 0;
  background: var(--navy);
}
.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p {
  font-size: 0.85rem;
  opacity: 0.8;
  margin: 0;
}
.footer-bottom-links {
  display: flex;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}
.footer-bottom-links li::after {
  content: "|";
  margin-left: 8px;
  opacity: 0.4;
}
.footer-bottom-links li:last-child::after { content: ""; margin: 0; }
.footer-bottom-links a {
  color: rgba(255,255,255,0.7);
  font-size: 0.8rem;
  text-decoration: none;
}
.footer-bottom-links a:hover { color: var(--gold); }

/* === Order Page === */
.order-steps { padding: 60px 0; }
.order-container { max-width: 900px; margin: 0 auto; }
.order-card {
  background: var(--navy);
  border-radius: 16px;
  padding: 40px;
  margin-bottom: 28px;
  color: var(--white);
}
.order-card-inner {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.order-step-side { min-width: 60px; }
.order-badge {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 6px 14px;
  border-radius: 20px;
  white-space: nowrap;
}
.order-icon { font-size: 2.5rem; margin-top: 12px; }
.order-content { flex: 1; min-width: 240px; }
.order-content h2 {
  color: var(--white);
  margin: 0 0 12px;
  font-size: 1.4rem;
}
.order-content p {
  opacity: 0.9;
  margin-bottom: 16px;
  line-height: 1.8;
}
.order-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.order-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--white);
}
.order-btn-line { background: #06C755; }
.order-btn-ghost { background: rgba(255,255,255,0.15); }
.order-btn-gold {
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
}
.order-tag {
  background: rgba(255,255,255,0.12);
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.9rem;
}
.order-cta {
  text-align: center;
  margin-top: 48px;
  padding: 32px;
  background: #f8f9fa;
  border-radius: 12px;
}
.order-cta h3 { color: var(--navy); margin-bottom: 12px; }
.order-cta p { color: #6c757d; margin-bottom: 20px; }
.order-cta-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* === Responsive === */
@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-menu {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 20px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  }
  .nav-menu.active { display: flex; }
  .dropdown-menu {
    position: static;
    box-shadow: none;
    padding-left: 20px;
    display: none;
  }
  .dropdown:hover .dropdown-menu { display: block; }
  .hero h1 { font-size: 2rem; }
  .hero { padding: 60px 0; }
  .product-detail-grid { grid-template-columns: 1fr; gap: 24px; }
  .product-placeholder-lg { height: 250px; }
  .footer-contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom-inner { justify-content: center; text-align: center; }
  .page-hero h1 { font-size: 1.6rem; }
  .section-title { font-size: 1.6rem; }
}
