/* ==========================================================
   Artwork24hrs — style.css
   Theme: Monochrome 90% / Orange accent 10%
   Font: Prompt — ทั้งเว็บ ทั้งไทยและอังกฤษ
   ========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Prompt:wght@200;300;400;500;600;700&display=swap');

/* ----------------------------------------------------------
   TOKENS
   ---------------------------------------------------------- */
:root {
  /* Layout */
  --max:      1200px;
  --gap:      16px;
  --r:        6px;
  --r-lg:     12px;

  /* Type */
  --font:     'Prompt', sans-serif;
  --mono:     'Prompt', sans-serif;

  /* Type scale */
  --text-xs:   11px;
  --text-sm:   12.5px;
  --text-base: 14px;
  --text-md:   15px;
  --text-lg:   17px;
  --text-xl:   20px;
  --text-2xl:  24px;
  --text-3xl:  32px;

  /* Mono palette */
  --white:    #ffffff;
  --off:      #f8f8f8;
  --light:    #f0f0f0;
  --mid:      #d4d4d4;
  --muted:    #999999;
  --dark:     #444444;
  --ink:      #111111;
  --black:    #000000;

  /* Accent — orange only */
  --accent:   #f97316;
  --accent-d: #ea6c0a;
  --accent-l: rgba(249,115,22,0.08);
  --accent-b: rgba(249,115,22,0.18);

  /* Transition */
  --t: 0.18s ease;
}

/* ----------------------------------------------------------
   RESET
   ---------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; }
body  { font-family: var(--font); font-size: 14px; color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased; line-height: 1.6; }
a     { text-decoration: none; color: inherit; }
img   { max-width: 100%; height: auto; display: block; }
ul    { list-style: none; }
button { cursor: pointer; font-family: var(--font); }

/* ----------------------------------------------------------
   LAYOUT
   ---------------------------------------------------------- */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 48px; }
@media (max-width: 768px)  { .wrap { padding: 0 24px; } }
@media (max-width: 480px)  { .wrap { padding: 0 16px; } }

/* ----------------------------------------------------------
   TOPBAR
   ---------------------------------------------------------- */
.topbar {
  background: var(--ink);
  height: 40px;
  position: relative;
  z-index: 200;
}
.topbar .wrap {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.tb-left {
  display: flex;
  align-items: center;
  gap: 24px;
}
.tb-left a {
  font-family: var(--font);
  font-size: 12px;
  font-weight: 300;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color var(--t);
}
.tb-left a:hover { color: var(--white); }
.tb-left svg { width: 12px; height: 12px; stroke: currentColor; fill: none; stroke-width: 1.5; flex-shrink: 0; }
.tb-right { display: flex; gap: 6px; }
.tb-right a {
  width: 24px; height: 24px;
  border: 1px solid #2a2a2a;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font); font-size: 10px; font-weight: 400;
  color: var(--muted);
  transition: border-color var(--t), color var(--t);
}
.tb-right a:hover { border-color: var(--white); color: var(--white); }
@media (max-width: 640px) {
  .tb-left a:last-child { display: none; }
}

/* ----------------------------------------------------------
   NAV
   ---------------------------------------------------------- */
.nav-wrap {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--light);
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 48px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 0;
}
.logo {
  flex-shrink: 0;
  margin-right: 40px;
  display: flex;
  align-items: center;
}
.logo img { height: 30px; width: auto; }
.logo-text {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.logo-text span { color: var(--accent); }

.nav-links {
  flex: 1;
  display: flex;
  align-items: center;
  height: 64px;
}
.nav-item {
  height: 64px;
  display: flex;
  align-items: center;
  position: relative;
}
.nav-item > a {
  font-size: 13.5px;
  font-weight: 400;
  color: var(--dark);
  padding: 0 14px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color var(--t);
  white-space: nowrap;
  position: relative;
}
.nav-item > a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 14px; right: 14px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}
.nav-item:hover > a,
.nav-item.open  > a { color: var(--ink); }
.nav-item:hover > a::after,
.nav-item.open  > a::after { transform: scaleX(1); }
.nav-item > a.plain::after { display: none; }
.nav-item > a.plain:hover  { color: var(--accent); }

.chev {
  font-size: 8px;
  opacity: 0.45;
  transition: transform 0.2s, opacity 0.2s;
  display: inline-block;
}
.nav-item.open .chev { transform: rotate(180deg); opacity: 0.7; }

.nav-actions { margin-left: auto; }
.btn-nav {
  font-size: 13px;
  font-weight: 500;
  background: var(--ink);
  color: var(--white);
  border: none;
  padding: 9px 20px;
  border-radius: var(--r);
  transition: background var(--t);
  text-decoration: none;
  display: inline-block;
}
.btn-nav:hover { background: var(--accent); }

/* DROPDOWN */
.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: min(1200px, 95vw);
  background: var(--white);
  border: 1px solid var(--light);
  border-top: 2px solid var(--ink);
  border-radius: 0 0 var(--r-lg) var(--r-lg);
  z-index: 200;
  padding: 20px 24px;
  display: none;
}
.nav-item.open .dropdown { display: flex; flex-wrap: wrap; gap: 4px; }
.dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: var(--r);
  font-size: 13.5px;
  font-weight: 400;
  color: var(--dark);
  transition: background var(--t), color var(--t);
  white-space: nowrap;
}
.dropdown a:hover { background: var(--off); color: var(--ink); }
.dropdown-label {
  width: 100%;
  font-family: var(--font);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0 14px 8px;
  border-bottom: 1px solid var(--light);
  margin-bottom: 4px;
}
.dropdown-divider { width: 100%; height: 1px; background: var(--light); margin: 6px 0; }

/* MEGA MENU — centered relative to nav-wrap (which is sticky) */
.nav-item { position: static; }
.mega {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: min(1200px, 95vw);
  background: var(--white);
  border: 1px solid var(--light);
  border-top: 3px solid var(--ink);
  border-radius: 0 0 var(--r-lg) var(--r-lg);
  z-index: 200;
  padding: 20px 24px;
}
.nav-item.open .mega { display: flex; gap: 0; }
.mega .mega-inner { display: contents; }
.mega-col { flex: 1; padding: 0 14px; border-right: 1px solid var(--light); }
.mega-col:first-child { padding-left: 0; }
.mega-col:last-child  { padding-right: 0; border-right: none; }
.mega-col-title {
  font-family: var(--font);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--light);
}
.mega-col ul li { margin-bottom: 0; }
.mega-col ul li a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 8px;
  border-radius: var(--r);
  font-size: 13px;
  font-weight: 400;
  color: var(--dark);
  transition: background var(--t), color var(--t);
}
.mega-col ul li a:hover { background: var(--off); color: var(--ink); }
.mi-icon {
  width: 28px; height: 28px;
  border-radius: 5px;
  background: var(--light);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.mi-icon svg { width: 14px; height: 14px; stroke: var(--dark); fill: none; stroke-width: 1.8; }
.mi-text { display: flex; flex-direction: column; }
.mi-name { font-size: 12.5px; font-weight: 500; color: var(--ink); line-height: 1.3; }
.mi-sub  { font-size: 11px; font-weight: 300; color: var(--muted); }

/* HAMBURGER (mobile) */
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  padding: 6px;
  margin-left: auto;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}
.nav-hamburger span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--ink);
  transition: var(--t);
}
@media (max-width: 900px) {
  .nav-links, .nav-actions { display: none; }
  .nav-hamburger { display: flex; }
  .nav-inner { padding: 0 24px; }
}

/* MOBILE DRAWER */
.nav-drawer {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
}
.nav-drawer.open { display: block; }
.drawer-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
}
.drawer-panel {
  position: absolute;
  top: 0; right: 0;
  width: min(320px, 90vw);
  height: 100%;
  background: var(--white);
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.drawer-close {
  align-self: flex-end;
  background: none;
  border: 1px solid var(--light);
  border-radius: var(--r);
  padding: 6px 12px;
  font-size: 13px;
  color: var(--dark);
  margin-bottom: 16px;
}
.drawer-link {
  display: block;
  padding: 12px 0;
  font-size: 16px;
  font-weight: 400;
  color: var(--ink);
  border-bottom: 1px solid var(--light);
}
.drawer-link:hover { color: var(--accent); }

/* ----------------------------------------------------------
   PAGE HEADER (dark banner — ทุกหน้า)
   ---------------------------------------------------------- */
.page-header {
  background: var(--ink);
  padding: 80px 0 72px;
  position: relative;
  overflow: hidden;
}
.page-header::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 40%; height: 100%;
  background: linear-gradient(135deg, transparent 40%, rgba(249,115,22,0.06) 100%);
  pointer-events: none;
}
.ph-inner { position: relative; z-index: 2; max-width: 640px; }
.ph-kicker {
  font-family: var(--font);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}
.ph-h1 {
  font-size: clamp(36px, 5.5vw, 64px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--white);
  margin-bottom: 20px;
}
.ph-h1 em { font-style: normal; font-weight: 300; color: var(--muted); }
.ph-desc {
  font-size: 15px;
  font-weight: 300;
  color: #888;
  line-height: 1.9;
  max-width: 480px;
}
.ph-actions {
  display: flex;
  gap: 10px;
  margin-top: 32px;
  flex-wrap: wrap;
}
.ph-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font);
  font-size: 11.5px;
  color: #555;
  margin-bottom: 24px;
}
.ph-breadcrumb a { color: #666; transition: color var(--t); }
.ph-breadcrumb a:hover { color: var(--white); }
.ph-breadcrumb span { color: #333; }

/* ----------------------------------------------------------
   BUTTONS
   ---------------------------------------------------------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: var(--white);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  padding: 12px 26px;
  border-radius: var(--r);
  border: none;
  transition: background var(--t);
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary:hover { background: var(--accent-d); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: #888;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 400;
  padding: 12px 26px;
  border-radius: var(--r);
  border: 1px solid #2a2a2a;
  transition: border-color var(--t), color var(--t);
  text-decoration: none;
  white-space: nowrap;
}
.btn-outline:hover { border-color: #888; color: var(--white); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--dark);
  font-family: var(--font);
  font-size: 13.5px;
  font-weight: 400;
  padding: 10px 20px;
  border-radius: var(--r);
  border: 1px solid var(--mid);
  transition: border-color var(--t), color var(--t);
  text-decoration: none;
}
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }

/* ----------------------------------------------------------
   PRODUCT GRID & CARDS
   ---------------------------------------------------------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: var(--gap);
}
@media (max-width: 1024px) { .product-grid { grid-template-columns: repeat(3,1fr); } }
@media (max-width: 680px)  { .product-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 400px)  { .product-grid { grid-template-columns: 1fr; } }

.pcard {
  border: 1px solid var(--light);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--white);
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  position: relative;
}
.pcard:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
}
.pcard-accent-line {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.pcard:hover .pcard-accent-line { transform: scaleX(1); }

.pcard-img {
  aspect-ratio: 4/3;
  background: var(--off);
  overflow: hidden;
  position: relative;
  border-bottom: 1px solid var(--light);
  display: flex;
  align-items: center;
  justify-content: center;
}
.pcard-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s ease; }
.pcard:hover .pcard-img img { transform: scale(1.03); }
.pcard-ph { font-family: var(--font); font-size: 11px; color: var(--mid); letter-spacing: 0.06em; text-align: center; padding: 12px; }

.pcard-badge {
  position: absolute;
  top: 10px; left: 10px;
  font-family: var(--font);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 3px;
  background: var(--accent);
  color: var(--white);
}

.pcard-body { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.pcard-title { font-size: 14px; font-weight: 500; color: var(--ink); margin-bottom: 6px; line-height: 1.4; }
.pcard-desc  { font-size: 12.5px; font-weight: 300; color: var(--dark); line-height: 1.75; flex: 1; margin-bottom: 12px; }

.pcard-tags { display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 14px; }
.ptag {
  font-family: var(--font);
  font-size: 10px;
  font-weight: 400;
  color: var(--muted);
  background: var(--off);
  border: 1px solid var(--light);
  padding: 3px 8px;
  border-radius: 3px;
  letter-spacing: 0.03em;
}
.ptag.hi {
  background: var(--accent-l);
  border-color: var(--accent-b);
  color: var(--accent-d);
}

.pcard-btn {
  display: block;
  width: 100%;
  padding: 9px;
  background: var(--ink);
  color: var(--white);
  font-family: var(--font);
  font-size: 12.5px;
  font-weight: 500;
  border: none;
  border-radius: var(--r);
  text-align: center;
  text-decoration: none;
  transition: background var(--t);
}
.pcard-btn:hover { background: var(--accent); }

/* ----------------------------------------------------------
   CAT SECTION HEADER
   ---------------------------------------------------------- */
.cat-section { padding: 56px 0; border-bottom: 1px solid var(--light); }
.cat-section:last-of-type { border-bottom: none; }

.cat-hd { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.cat-hd-left { display: flex; align-items: flex-start; gap: 16px; }
.cat-icon {
  width: 48px; height: 48px;
  border-radius: 10px;
  border: 1px solid var(--light);
  background: var(--off);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.cat-icon svg { width: 22px; height: 22px; stroke: var(--dark); fill: none; stroke-width: 1.8; }
.cat-num { font-family: var(--font); font-size: 10px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; }
.cat-name { font-size: 20px; font-weight: 600; color: var(--ink); line-height: 1.2; margin-bottom: 2px; }
.cat-name-en { font-family: var(--font); font-size: 12px; font-weight: 300; color: var(--muted); }
.cat-desc { font-size: 13.5px; font-weight: 300; color: var(--dark); line-height: 1.8; margin-top: 6px; max-width: 560px; }
.cat-view-all { font-size: 13px; font-weight: 400; color: var(--muted); border: 1px solid var(--light); padding: 8px 16px; border-radius: var(--r); transition: var(--t); white-space: nowrap; flex-shrink: 0; align-self: center; }
.cat-view-all:hover { border-color: var(--ink); color: var(--ink); }
.cat-rule { height: 1px; background: var(--light); margin-bottom: 28px; }

/* CAT NAV PILLS */
.cat-nav {
  background: var(--white);
  border-bottom: 1px solid var(--light);
  overflow-x: auto;
  scrollbar-width: none;
  position: sticky;
  top: 64px;
  z-index: 50;
}
.cat-nav::-webkit-scrollbar { display: none; }
.cat-nav-inner { max-width: var(--max); margin: 0 auto; padding: 0 48px; height: 48px; display: flex; align-items: center; gap: 4px; }
.cat-pill { font-size: 13px; font-weight: 400; color: var(--muted); padding: 5px 14px; border-radius: 20px; white-space: nowrap; text-decoration: none; transition: background var(--t), color var(--t); display: flex; align-items: center; gap: 6px; }
.cat-pill:hover, .cat-pill.active { background: var(--off); color: var(--ink); }
.cat-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* ----------------------------------------------------------
   SECTION UTILITIES
   ---------------------------------------------------------- */
.sec-label {
  font-family: var(--font);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.sec-title { font-size: 26px; font-weight: 600; color: var(--ink); margin-bottom: 6px; letter-spacing: -0.02em; line-height: 1.2; }
.sec-sub   { font-size: 15px; font-weight: 300; color: var(--dark); line-height: 1.75; }

/* ----------------------------------------------------------
   FOOTER
   ---------------------------------------------------------- */
.footer {
  background: #0a0a0a;
  color: #fff;
  padding: 64px 0 28px;
  border-top: 1px solid #1a1a1a;
}
.ft-grid {
  display: grid;
  grid-template-columns: 260px 180px 220px 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid #1e1e1e;
  margin-bottom: 24px;
}
.ft-logo {
  font-size: 20px; font-weight: 700; color: #fff;
  letter-spacing: -0.02em; margin-bottom: 14px;
}
.ft-logo span { color: var(--accent); }
.ft-about {
  font-size: 13px; font-weight: 300; color: #666;
  line-height: 1.9; margin-bottom: 20px;
}
.ft-contact-list { display: flex; flex-direction: column; gap: 10px; }
.ft-contact-item {
  display: flex; align-items: flex-start; gap: 9px;
  font-size: 13px; font-weight: 300; color: #888; line-height: 1.6;
}
.ft-contact-item svg { width: 14px; height: 14px; stroke: #666; fill: none; stroke-width: 1.5; flex-shrink: 0; margin-top: 2px; }
.ft-contact-item a { color: #888; transition: color .15s; }
.ft-contact-item a:hover { color: #fff; }

.ft-col-title {
  font-family: var(--font); font-size: 10px; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; color: #fff;
  margin-bottom: 18px;
}
.ft-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.ft-links li a { font-size: 13.5px; font-weight: 300; color: #666; transition: color .15s; }
.ft-links li a:hover { color: #fff; }

/* QR codes */
.ft-qr-wrap { display: flex; gap: 16px; }
.ft-qr-item { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.ft-qr-box {
  width: 80px; height: 80px;
  background: #fff; border-radius: 8px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  padding: 4px;
}
.ft-qr-box img { width: 100%; height: 100%; object-fit: contain; }
.ft-qr-label { font-size: 11px; font-weight: 500; color: #fff; }
.ft-qr-sub { font-size: 10px; font-weight: 300; color: #555; }

/* Map */
.ft-map-col {}
.ft-map { width: 100%; }

/* Bottom bar */
.ft-bottom { display: flex; justify-content: space-between; align-items: center; }
.ft-copy { font-family: var(--font); font-size: 11.5px; color: #333; }
.ft-top { font-family: var(--font); font-size: 11.5px; color: #333; cursor: pointer; transition: color .15s; }
.ft-top:hover { color: #fff; }

@media (max-width: 1024px) { .ft-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px)  { .ft-grid { grid-template-columns: 1fr; gap: 32px; } }

/* ----------------------------------------------------------
   REVEAL ANIMATION
   ---------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }
.d1 { transition-delay: 0.07s; }
.d2 { transition-delay: 0.14s; }
.d3 { transition-delay: 0.21s; }

/* ----------------------------------------------------------
   SUBSCRIBE
   ---------------------------------------------------------- */
.sub-strip {
  background: var(--off);
  border-top: 1px solid var(--light);
  border-bottom: 1px solid var(--light);
  padding: 48px 0;
}
.sub-inner { display: grid; grid-template-columns: 1fr auto; gap: 64px; align-items: center; }
.sub-inner h3 { font-size: 22px; font-weight: 500; color: var(--ink); margin-bottom: 6px; letter-spacing: -0.01em; }
.sub-inner p  { font-size: 14px; font-weight: 300; color: var(--dark); }
.sub-form { display: flex; }
.sub-form input { font-family: var(--font); font-size: 14px; font-weight: 300; color: var(--ink); border: 1px solid var(--mid); border-right: none; padding: 11px 18px; width: 240px; outline: none; background: var(--white); border-radius: var(--r) 0 0 var(--r); transition: border-color 0.2s; }
.sub-form input:focus { border-color: var(--ink); }
.sub-form input::placeholder { color: var(--muted); }
.sub-form button { font-family: var(--font); font-size: 14px; font-weight: 500; background: var(--ink); color: var(--white); border: 1px solid var(--ink); padding: 11px 20px; border-radius: 0 var(--r) var(--r) 0; transition: background var(--t); }
.sub-form button:hover { background: var(--accent); border-color: var(--accent); }
@media (max-width: 768px) { .sub-inner { grid-template-columns: 1fr; gap: 24px; } .sub-form input { flex: 1; width: auto; } .sub-form { flex: 1; } }

/* ----------------------------------------------------------
   MEGA MENU — CENTERED + ICON COLORS
   ---------------------------------------------------------- */
.mega {
  left: 50% !important;
  transform: translateX(-50%) !important;
}

/* Category icon colors */
.mi-icon[data-cat="photo"]     { background: #FFF0F3; }
.mi-icon[data-cat="photo"] svg { stroke: #E8507A; }

.mi-icon[data-cat="marketing"] { background: #FFF4E6; }
.mi-icon[data-cat="marketing"] svg { stroke: #F97316; }

.mi-icon[data-cat="food"]      { background: #F0FFF4; }
.mi-icon[data-cat="food"] svg  { stroke: #22C55E; }

.mi-icon[data-cat="corporate"] { background: #EFF6FF; }
.mi-icon[data-cat="corporate"] svg { stroke: #3B82F6; }

.mi-icon[data-cat="events"]    { background: #F5F3FF; }
.mi-icon[data-cat="events"] svg { stroke: #8B5CF6; }

.mi-icon[data-cat="sticker"]   { background: #FFFBEB; }
.mi-icon[data-cat="sticker"] svg { stroke: #F59E0B; }

.mi-icon[data-cat="design"]    { background: #FDF2F8; }
.mi-icon[data-cat="design"] svg { stroke: #EC4899; }

.mi-icon[data-cat="web"]       { background: #F0FDFA; }
.mi-icon[data-cat="web"] svg   { stroke: #0EA5E9; }

/* ----------------------------------------------------------
   NAV DROPDOWN — icon colors
   ---------------------------------------------------------- */
.dropdown a .dd-icon {
  width: 28px; height: 28px;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.dropdown a .dd-icon svg { width: 14px; height: 14px; fill: none; stroke-width: 1.8; stroke: currentColor; }

/* ----------------------------------------------------------
   NAV RESPONSIVE IMPROVEMENTS
   ---------------------------------------------------------- */
@media (max-width: 900px) {
  .nav-inner { padding: 0 20px; }
  .drawer-panel { gap: 0; }
  .drawer-link { padding: 14px 0; font-size: 15px; }
  .drawer-sub { padding: 4px 0 10px 16px; display: flex; flex-direction: column; gap: 2px; }
  .drawer-sub a { font-size: 13.5px; color: var(--muted); padding: 6px 0; transition: color var(--t); }
  .drawer-sub a:hover { color: var(--ink); }
  .drawer-group { border-bottom: 1px solid var(--light); }
  .drawer-group > .drawer-link { border-bottom: none; }
}

/* ----------------------------------------------------------
   GLOBAL RESPONSIVE POLISH
   ---------------------------------------------------------- */
@media (max-width: 768px) {
  .page-header { padding: 56px 0 48px; }
  .ph-h1 { font-size: clamp(28px, 8vw, 48px); }
  .cat-section { padding: 40px 0; }
  .cat-nav-inner { padding: 0 16px; }
}
@media (max-width: 480px) {
  .page-header { padding: 40px 0 36px; }
  .topbar .tb-left a:not(:first-child) { display: none; }
  .sub-form input { width: 140px; }
}

/* ==========================================================
   UNIVERSAL HERO SECTION — ใช้ทุกหน้า (ยกเว้นหน้าแรก)
   include ผ่าน includes/page-hero.php
   ========================================================== */
.hero-sec {
  background: var(--ink);
  padding: 88px 0 76px;
  position: relative;
  overflow: hidden;
}
.hero-sec::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 80% at 82% 55%, var(--hero-glow, rgba(249,115,22,0.07)), transparent 65%),
    radial-gradient(ellipse 30% 40% at 8% 18%, rgba(255,255,255,0.015), transparent 60%);
  pointer-events: none;
}
.hero-sec .wrap { position: relative; z-index: 2; }
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 480px;
  gap: 64px;
  align-items: center;
}
.hero-inner.no-visual { grid-template-columns: 1fr; max-width: 760px; }
.hero-breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font); font-size: 11.5px; color: #555; margin-bottom: 22px;
}
.hero-breadcrumb a { color: #777; transition: color var(--t); }
.hero-breadcrumb a:hover { color: #fff; }
.hero-breadcrumb span { color: #3a3a3a; }
.hero-kicker {
  font-family: var(--font);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--hero-accent, #666);
  margin-bottom: 18px;
}
.hero-h1 {
  font-size: clamp(34px, 5.2vw, 64px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 22px;
}
.hero-h1 em { font-style: normal; color: var(--hero-accent, var(--accent)); }
.hero-desc {
  font-size: 15px;
  font-weight: 300;
  color: #888;
  line-height: 1.9;
  margin-bottom: 32px;
  max-width: 520px;
}
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-actions .btn-primary { background: var(--hero-accent, var(--accent)); border-color: var(--hero-accent, var(--accent)); }
.hero-actions .btn-ghost { color: #999; border-color: #333; }
.hero-actions .btn-ghost:hover { color: #fff; border-color: #666; }

/* Hero visual — browser mockup */
.hero-mockup {
  background: #161616;
  border: 1px solid #262626;
  border-radius: 12px;
  overflow: hidden;
}
.hero-mockup-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 12px 14px; background: #1c1c1c; border-bottom: 1px solid #262626;
}
.hero-mockup-dot { width: 10px; height: 10px; border-radius: 50%; }
.hero-mockup-dot:nth-child(1) { background: #f05252; }
.hero-mockup-dot:nth-child(2) { background: #f6a609; }
.hero-mockup-dot:nth-child(3) { background: #36c758; }
.hero-mockup-url {
  flex: 1; margin-left: 8px; background: #0f0f0f; border-radius: 5px;
  padding: 5px 12px; display: flex; align-items: center; gap: 6px;
}
.hero-mockup-url-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--hero-accent, var(--accent)); }
.hero-mockup-url span { font-family: var(--font); font-size: 11px; color: #555; }
.hero-mockup-screen { padding: 22px; }
.hero-mock-tag { width: 56px; height: 10px; background: var(--hero-accent, var(--accent)); border-radius: 3px; margin-bottom: 14px; opacity: .85; }
.hero-mock-line { height: 7px; background: #333; border-radius: 3px; margin-bottom: 7px; }
.hero-mock-line.w80 { width: 80%; } .hero-mock-line.w60 { width: 60%; } .hero-mock-line.w40 { width: 40%; }
.hero-mock-btn { width: 90px; height: 26px; background: var(--hero-accent, var(--accent)); border-radius: 5px; margin-top: 14px; opacity: .9; }
.hero-mock-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-top: 22px; }
.hero-mock-card { background: #1c1c1c; border-radius: 6px; padding: 12px; }
.hero-mock-card-img { height: 40px; background: #262626; border-radius: 4px; margin-bottom: 8px; }
.hero-mock-card-line { height: 4px; background: #2e2e2e; border-radius: 2px; margin-bottom: 4px; }
.hero-mock-card-line.short { width: 55%; }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 44px; }
  .hero-mockup { max-width: 440px; }
}
@media (max-width: 768px) {
  .hero-sec { padding: 56px 0 48px; }
  .hero-mockup { display: none; }
}
