* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Sarabun', sans-serif; background: #f5f5f5; color: #333; }

/* TOP BAR */
.top-bar { background: #fff; border-bottom: 1px solid #e0e0e0; padding: 8px 0; }
.top-bar-inner { max-width: 1200px; margin: 0 auto; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-script { font-family: 'Pacifico', cursive; font-size: 2.2rem; color: #555; letter-spacing: -1px; }
.logo-script span { color: #e53e3e; }
.logo-sub { font-size: 0.75rem; color: #888; margin-top: 2px; }
.site-tagline { font-size: 0.8rem; color: #e53e3e; font-weight: 600; text-align: right; }
.phone-badge { background: #fff; border: 2px solid #333; border-radius: 6px; padding: 6px 16px; font-size: 1.3rem; font-weight: 700; color: #222; letter-spacing: 1px; white-space: nowrap; }
.top-contact { display: flex; align-items: center; gap: 12px; }
.line-badge { background: #06c755; border-radius: 6px; padding: 6px 14px; display: flex; align-items: center; gap: 8px; text-decoration: none; color: #fff; font-weight: 700; font-size: 0.9rem; }

/* NAV */
nav { background: #2d8c46; position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 4px rgba(0,0,0,0.15); }
.nav-inner { max-width: 1200px; margin: 0 auto; padding: 0 16px; display: flex; align-items: center; gap: 2px; }
.nav-links { display: flex; align-items: center; gap: 2px; flex: 1; }
nav a { color: #fff; text-decoration: none; padding: 11px 12px; font-size: 0.9rem; font-weight: 600; white-space: nowrap; transition: background 0.15s; }
nav a:hover, nav a.nav-active { background: rgba(0,0,0,0.2); border-bottom: 2px solid #fff; }
.nav-search { margin-left: auto; display: flex; align-items: center; }
.nav-search input { border: none; padding: 6px 10px; font-size: 0.9rem; border-radius: 3px 0 0 3px; outline: none; width: 150px; }
.nav-search button { background: #1a5c2e; color: #fff; border: none; padding: 6px 12px; font-size: 0.9rem; cursor: pointer; border-radius: 0 3px 3px 0; }

/* HAMBURGER */
.hamburger { display: none; flex-direction: column; justify-content: center; gap: 5px; background: none; border: none; cursor: pointer; padding: 10px 8px; margin-left: auto; }
.hamburger span { display: block; width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: transform 0.25s, opacity 0.25s; }
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* OVERLAY */
.nav-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 99; }
.nav-overlay.open { display: block; }

/* CONTAINER */
.container { max-width: 1200px; margin: 0 auto; padding: 16px; }

/* BREADCRUMB */
.breadcrumb { font-size: 0.82rem; color: #888; margin-bottom: 16px; }
.breadcrumb a { color: #2d8c46; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { margin: 0 5px; }

/* CATEGORY SECTION */
.category-section { margin-bottom: 32px; }
.category-heading { font-size: 1.4rem; font-weight: 700; color: #e53e3e; text-decoration: none; border-bottom: 2px solid #e53e3e; padding-bottom: 6px; display: inline-block; margin-bottom: 16px; }
.category-heading:hover { color: #c53030; }

/* PRODUCT GRID */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }

/* PRODUCT CARD (catalog) */
.product-card { background: #fff; border: 1px solid #e0e0e0; border-radius: 6px; overflow: hidden; text-decoration: none; color: inherit; transition: box-shadow 0.15s, transform 0.15s; display: flex; flex-direction: column; }
.product-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.12); transform: translateY(-2px); }
.product-card-img { width: 100%; aspect-ratio: 1/1; object-fit: contain; background: #fafafa; padding: 8px; }
.product-card-body { padding: 10px 12px 14px; flex: 1; display: flex; flex-direction: column; }
.product-card-model { font-size: 1rem; font-weight: 700; color: #e53e3e; }
.product-card-name { font-size: 0.78rem; color: #666; margin: 3px 0 8px; flex: 1; }
.product-card-price { font-size: 1.2rem; font-weight: 900; color: #e53e3e; }
.product-card-price span { font-size: 0.8rem; font-weight: 600; color: #555; }

/* SERVICE STRIP */
.service-strip { background: #fff; border: 1px solid #e0e0e0; border-radius: 6px; padding: 16px; margin-bottom: 24px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; text-align: center; }
.service-item { font-size: 0.78rem; color: #555; }
.service-icon { font-size: 1.6rem; margin-bottom: 4px; display: block; }
.service-item strong { display: block; font-size: 0.82rem; color: #2d8c46; }

/* PAGE HEADING */
.page-heading { font-size: 1.6rem; font-weight: 700; color: #222; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 3px solid #2d8c46; display: inline-block; }

/* PRODUCT DETAIL */
.product-detail { background: #fff; border-radius: 8px; padding: 24px; margin-bottom: 24px; }
.product-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.product-detail-img { width: 100%; border-radius: 6px; object-fit: contain; background: #fafafa; aspect-ratio: 1/1; padding: 16px; }
.product-detail-name { font-size: 1.5rem; font-weight: 700; color: #222; margin-bottom: 8px; }
.product-detail-model { font-size: 1rem; color: #888; margin-bottom: 12px; }
.product-detail-price-row { display: flex; align-items: baseline; gap: 6px; margin: 16px 0; }
.product-detail-price { font-size: 2.5rem; font-weight: 900; color: #e53e3e; line-height: 1; }
.product-detail-price-label { font-size: 1rem; color: #555; font-weight: 600; }
.product-detail-price-unit { font-size: 1rem; color: #555; font-weight: 600; }
.product-detail-desc { font-size: 0.95rem; color: #555; line-height: 1.8; margin-bottom: 16px; }
.btn-contact { display: inline-flex; align-items: center; gap: 8px; background: #06c755; color: #fff; padding: 12px 24px; border-radius: 6px; text-decoration: none; font-weight: 700; font-size: 1rem; }
.btn-contact:hover { background: #05a847; }
.back-link { display: inline-block; color: #2d8c46; text-decoration: none; font-size: 0.9rem; margin-top: 12px; }
.back-link:hover { text-decoration: underline; }

/* FOOTER */
footer { background: #222; color: #ccc; padding: 32px 16px; margin-top: 32px; }
.footer-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 32px; }
footer h4 { color: #fff; margin-bottom: 10px; font-size: 1rem; }
footer p, footer a { font-size: 0.85rem; color: #aaa; text-decoration: none; line-height: 1.9; display: block; }
footer a:hover { color: #fff; }
.footer-logo { font-family: 'Pacifico', cursive; font-size: 1.6rem; color: #fff; margin-bottom: 8px; }
.footer-bottom { text-align: center; padding-top: 20px; margin-top: 20px; border-top: 1px solid #444; font-size: 0.8rem; color: #666; }

/* ── TABLET ── */
@media (max-width: 900px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .service-strip { grid-template-columns: repeat(3, 1fr); }
  .product-detail-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

/* ── MOBILE ── */
@media (max-width: 600px) {
  /* Top bar — stack logo + contacts vertically, compact */
  .top-bar-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 12px;
  }
  .site-tagline { display: none; }
  .top-contact { width: 100%; justify-content: space-between; }
  .phone-badge { font-size: 1rem; padding: 5px 10px; border-width: 1.5px; }
  .line-badge { font-size: 0.82rem; padding: 5px 10px; }
  .logo-script { font-size: 1.7rem; }

  /* Nav — hamburger drawer */
  .hamburger { display: flex; }
  .nav-links {
    display: none;
    flex-direction: column;
    align-items: stretch;
    position: fixed;
    top: 0; right: 0;
    width: 72vw; max-width: 280px;
    height: 100vh;
    background: #1f6b33;
    z-index: 200;
    padding: 60px 0 24px;
    box-shadow: -4px 0 20px rgba(0,0,0,0.3);
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.28s cubic-bezier(.4,0,.2,1);
  }
  .nav-links.open {
    display: flex;
    transform: translateX(0);
  }
  .nav-links a {
    padding: 14px 24px;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  .nav-links a:first-child { border-top: 1px solid rgba(255,255,255,0.1); }
  .nav-search { display: flex; margin: 16px 16px 0; width: auto; }
  .nav-search input { flex: 1; width: auto; }
  nav a:hover, nav a.nav-active { border-bottom: none; background: rgba(0,0,0,0.2); }

  /* Product grid — 2 columns */
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .product-card-body { padding: 8px 8px 10px; }
  .product-card-model { font-size: 0.88rem; }
  .product-card-name { font-size: 0.72rem; }
  .product-card-price { font-size: 1rem; }

  /* Service strip — 2 columns */
  .service-strip {
    grid-template-columns: repeat(2, 1fr);
    padding: 12px;
    gap: 10px;
    margin-bottom: 16px;
  }
  .service-icon { font-size: 1.3rem; }

  /* Category heading */
  .category-heading { font-size: 1.15rem; }
  .category-section { margin-bottom: 24px; }

  /* Product detail */
  .product-detail { padding: 14px; }
  .product-detail-name { font-size: 1.2rem; }
  .product-detail-price { font-size: 2rem; }
  .btn-contact { font-size: 0.9rem; padding: 10px 18px; }

  /* Container */
  .container { padding: 10px; }

  /* Footer — mobile: hide non-essential blocks, show only contact */
  .footer-inner { display: block; }
  .footer-inner > div:nth-child(1) .footer-logo { font-size: 1.2rem; }
  .footer-inner > div:nth-child(1) p { display: none; }
  .footer-inner > div:nth-child(3) { display: none; }
  footer { padding: 16px 14px; margin-top: 20px; }
  .footer-inner > div { margin-bottom: 12px; }
  .footer-inner > div:last-child { margin-bottom: 0; }
  footer h4 { font-size: 0.88rem; margin-bottom: 6px; }
  footer a, footer p { font-size: 0.82rem; line-height: 1.7; }
  .footer-bottom { padding-top: 12px; margin-top: 12px; font-size: 0.72rem; }

  /* Page heading */
  .page-heading { font-size: 1.3rem; }
}
