/* Global Kids Phuket — สนุก สีสันจัด อบอุ่น เป็นกันเอง
   ฟ้าจากโลโก้เดิม · เหลืองแดด · ส้มปะการัง บนพื้นครีม · ฟอนต์ Anuphan ทั้งเว็บ */

:root {
  --accent: #0E86C9;
  --blue: #0E86C9;
  --navy: #0B4F86;
  --sun: #FFC52E;
  --coral: #FF5B47;
  --green: #06C755;
  --paper: #FFF8EC;
  --card: #ffffff;
  --ink: #1D2B3A;
  --muted: #5B6878;
  --line: #EADFCB;
  --radius: 20px;
  --shadow: 0 1px 2px rgba(29,43,58,.06), 0 8px 24px -10px rgba(29,43,58,.18);
  --shadow-up: 0 2px 4px rgba(29,43,58,.08), 0 16px 32px -12px rgba(29,43,58,.26);
  --font: 'Anuphan', 'Noto Sans Thai', system-ui, sans-serif;
  --ease: cubic-bezier(.2,.7,.2,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.7; color: var(--ink);
  background: var(--paper); overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
h1, h2, h3, h4 { line-height: 1.3; margin: 0 0 .4em; font-weight: 700; text-wrap: balance; }
p { margin: 0 0 1em; }
svg { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 2; flex: none; }
button, input, select, textarea { font: inherit; color: inherit; }
.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 32px); }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }

/* ---------- ปุ่ม ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 10px 22px; border-radius: 999px; border: 2px solid transparent;
  background: var(--coral); color: #fff; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s;
  box-shadow: 0 6px 16px -8px rgba(255,91,71,.7);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-sm { min-height: 40px; padding: 7px 16px; font-size: 15px; }
.btn-lg { min-height: 54px; padding: 12px 28px; font-size: 18px; }
.btn-block { width: 100%; }
.btn-ghost { background: #fff; color: var(--navy); border-color: var(--line); box-shadow: none; }
.btn-ghost:hover { border-color: var(--blue); }
.btn-line { background: var(--green); box-shadow: 0 6px 16px -8px rgba(6,199,85,.8); }
.btn-sun { background: var(--sun); color: var(--ink); box-shadow: 0 6px 16px -8px rgba(255,197,46,.9); }
.btn[disabled] { opacity: .6; cursor: progress; }
.more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--coral); text-decoration: none; white-space: nowrap; }
.more:hover { text-decoration: underline; }

/* ---------- แถบบน + หัวเว็บ ---------- */
.topbar { background: var(--navy); color: #EAF5FD; font-size: 14px; }
.topbar .wrap { display: flex; gap: 6px 22px; align-items: center; min-height: 40px; flex-wrap: wrap; padding-block: 4px; }
.topbar a, .topbar span { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.topbar a:hover { color: var(--sun); }
.topbar-end { margin-left: auto; gap: 14px !important; }
.topbar .social a { padding: 2px; }

.nav { position: sticky; top: 0; z-index: 40; background: rgba(255,248,236,.97); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 18px; min-height: 76px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); min-width: 0; }
.logo-img { width: auto; height: 46px; aspect-ratio: 455 / 161; object-fit: contain; flex: none; border-radius: 10px; }
.logo-mark { width: 46px; height: 46px; border-radius: 14px; background: var(--blue); color: #fff; display: grid; place-items: center; font-weight: 700; }
.logo-text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.logo-text b { font-size: 20px; color: var(--navy); white-space: nowrap; }
.logo-text small { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dnav { display: flex; gap: 4px; margin-left: auto; }
.dnav a { padding: 8px 14px; border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 500; white-space: nowrap; }
.dnav a:hover { background: #fff; }
.dnav a[aria-current="page"] { background: var(--sun); color: var(--ink); }
.nav-end { display: flex; align-items: center; gap: 10px; }
.cart-btn { position: relative; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: #fff; color: var(--navy); border: 1px solid var(--line); }
.cart-btn svg { width: 22px; height: 22px; }
.cart-count { position: absolute; top: -4px; right: -4px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--coral); color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; }
/* ปุ่มสลับภาษา ไทย/EN */
.lang-sw { height: 46px; padding: 0 14px; display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; background: #fff; color: var(--navy);
  border: 1px solid var(--line); font-weight: 700; font-size: 15px; text-decoration: none; white-space: nowrap; }
.lang-sw:hover { background: var(--sun); color: var(--ink); }
.lang-sw .ic, .mnav-lang .ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.mnav-links .mnav-lang { display: inline-flex; align-items: center; gap: 10px; color: var(--blue, #0E86C9); }
.nav-toggle { display: none; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--navy); cursor: pointer; place-items: center; }
.nav-toggle svg { width: 24px; height: 24px; }
.nav-toggle svg + svg { display: none; }
body.nav-open .nav-toggle svg:first-child { display: none; }
body.nav-open .nav-toggle svg + svg { display: block; }

/* เมนูมือถือเต็มจอ — อยู่นอกหัวเว็บ ไม่โดนกรอบหัวเว็บตัด */
.mnav { position: fixed; inset: 0; top: 0; z-index: 35; background: var(--paper); padding: 130px 20px 32px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 24px; overflow-y: auto;
  visibility: hidden; opacity: 0; transition: opacity .2s, visibility .2s; }
body.nav-open { overflow: hidden; }
body.nav-open .mnav { visibility: visible; opacity: 1; }
.mnav-links { display: flex; flex-direction: column; }
.mnav-links a { padding: 14px 4px; font-size: 22px; font-weight: 600; color: var(--ink); text-decoration: none; border-bottom: 1px dashed var(--line); }
.mnav-links a[aria-current="page"] { color: var(--coral); }
.mnav-contact { display: grid; gap: 10px; }

/* ---------- ส่วนทั่วไป ---------- */
.sec { padding: 72px 0; }
.sec-tight { padding: 32px 0 72px; }
.sec-cream { background: #FFF1D6; }
.sec-blue { background: linear-gradient(160deg, var(--blue), var(--navy)); color: #fff; }
.sec-blue .sec-head h2, .sec-blue .more { color: #fff; }
.sec-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 8px 24px; margin-bottom: 28px; }
.sec-head h2 { font-size: clamp(28px, 4vw, 42px); color: var(--navy); margin: 0; position: relative; }
.sec-head h2::after { content: ''; display: block; width: 64px; height: 6px; border-radius: 6px; margin-top: 10px;
  background: linear-gradient(90deg, var(--sun) 0 50%, var(--coral) 50% 100%); }
.sec-head > p { flex-basis: 100%; color: var(--muted); max-width: 64ch; margin: 0; }
.page-head { padding: 44px 0 8px; }
.page-head h1 { font-size: clamp(30px, 5vw, 48px); color: var(--navy); }
.lead { font-size: 18px; color: var(--muted); max-width: 62ch; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); }

/* ---------- แบนเนอร์ ---------- */
.hero { position: relative; overflow: hidden; padding: 28px 0 40px; background: linear-gradient(180deg, #FFF1D6, var(--paper)); }
.hero-bg .blob { position: absolute; border-radius: 50%; filter: blur(0); opacity: .9; }
.hero-bg .b1 { width: 420px; height: 420px; background: var(--sun); right: -140px; top: -160px; opacity: .55; }
.hero-bg .b2 { width: 220px; height: 220px; background: #9FD8F7; left: -80px; bottom: -60px; opacity: .6; }
.hero-bg .b3 { width: 90px; height: 90px; background: var(--coral); left: 46%; top: 24px; opacity: .25; }
.hero .wrap { position: relative; }
.hero-viewport { overflow: hidden; border-radius: 28px; }
.hero-track { display: flex; transition: transform .6s var(--ease); }
.hero-slide { flex: 0 0 100%; display: grid; grid-template-columns: 1fr 1.15fr; gap: 36px; align-items: center; }
.hero-body { padding: 12px 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 6px; background: var(--coral); color: #fff; font-weight: 600; font-size: 15px; padding: 6px 14px; border-radius: 999px; margin-bottom: 14px; }
.hero-title { font-size: clamp(34px, 5.2vw, 60px); line-height: 1.22; color: var(--navy); margin: 0 0 14px; font-weight: 700; }
.hero-sub { font-size: clamp(17px, 1.6vw, 20px); color: var(--ink); max-width: 46ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 20px 0 14px; }
.hero-phone { display: inline-flex; gap: 8px; align-items: center; font-weight: 600; color: var(--navy); text-decoration: none; font-size: 18px; }
.hero-pic { border-radius: 28px; overflow: hidden; aspect-ratio: 4 / 3; background: #dceffa; box-shadow: var(--shadow-up); transform: rotate(1.2deg); }
.hero-pic img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.hero-dots { display: flex; gap: 8px; justify-content: center; margin-top: 18px; }
.hero-dots button { width: 12px; height: 12px; border-radius: 999px; border: 0; background: #F2D9A6; cursor: pointer; padding: 0; transition: width .3s var(--ease), background .3s; }
.hero-dots button[aria-current="true"] { width: 34px; background: var(--coral); }
.hero-compact { padding: 24px 0; }
.hero-compact .hero-slide { grid-template-columns: 1.2fr 1fr; }
.hero-compact .hero-pic { aspect-ratio: 16 / 9; }

/* ---------- หมวดสินค้าหน้าแรก ---------- */
.sec-cats { padding-top: 40px; }
.cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cat { background: #fff; border-radius: var(--radius); padding: 14px 14px 18px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 6px; transition: transform .2s var(--ease), box-shadow .2s var(--ease); border-top: 6px solid var(--blue); }
.cat-1 { border-top-color: var(--sun); } .cat-2 { border-top-color: var(--coral); } .cat-3 { border-top-color: var(--green); }
.cat:hover { transform: translateY(-4px); box-shadow: var(--shadow-up); }
.cat-pic { border-radius: 14px; overflow: hidden; aspect-ratio: 4 / 3; background: #F4F7FA; display: block; }
.cat-pic img { width: 100%; height: 100%; object-fit: contain; }
.cat-name { font-size: 20px; font-weight: 700; color: var(--navy); margin-top: 6px; }
.cat small { color: var(--muted); font-size: 15px; line-height: 1.5; }

/* ---------- จุดเด่น / ขั้นตอน ---------- */
.features-grid { display: grid; grid-template-columns: repeat(var(--cols, 3), 1fr); gap: 18px; }
.feature { display: flex; gap: 14px; align-items: flex-start; background: #fff; border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.feature h3 { font-size: 18px; margin: 0 0 4px; color: var(--navy); }
.feature p { margin: 0; color: var(--muted); font-size: 16px; }
.feature-icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: #FFF1D6; color: var(--coral); flex: none; }
.feature-icon svg { width: 26px; height: 26px; }
.feature:nth-child(4n+2) .feature-icon { background: #E3F3FC; color: var(--blue); }
.feature:nth-child(4n+3) .feature-icon { background: #E5F9EE; color: #059A43; }
.feature:nth-child(4n+4) .feature-icon { background: #FFE9E5; color: var(--coral); }
.steps .feature { flex-direction: column; background: transparent; box-shadow: none; padding: 8px 4px; position: relative; }
.steps .feature-icon { background: var(--sun); color: var(--ink); border-radius: 50%; font-size: 18px; }
.steps .feature:nth-child(n) .feature-icon { background: var(--sun); color: var(--ink); }
.steps .feature:not(:last-child)::after { content: ''; position: absolute; top: 34px; left: 72px; right: 8px; border-top: 2px dashed #F0C766; }
.sec-steps { background: #fff; }

/* ---------- เกี่ยวกับ / บริการเด่น ---------- */
.sec-about { background: linear-gradient(180deg, var(--paper), #FFF1D6); }
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.about.pic-right .about-pic { order: 2; }
.about-pic img { border-radius: 26px; box-shadow: var(--shadow-up); width: 100%; }
.about-text h2 { font-size: clamp(28px, 3.6vw, 40px); color: var(--navy); }
.about-text p { font-size: 17.5px; }
.about-cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- การ์ดสินค้า ---------- */
.pgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.pcard { background: #fff; color: var(--ink); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.pcard:hover { transform: translateY(-3px); box-shadow: var(--shadow-up); }
.pcard-pic { position: relative; display: block; aspect-ratio: 1; background: #F4F7FA; }
.pcard-pic img { width: 100%; height: 100%; object-fit: contain; }
.pcard-noimg { display: grid; place-items: center; height: 100%; color: #B6C4D2; }
.pcard-noimg svg { width: 48px; height: 48px; }
.pcard-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.pcard-sku { font-size: 13px; color: var(--muted); }
.pcard-name { font-size: 17px; line-height: 1.45; margin: 0; }
.pcard-name a { color: var(--ink); text-decoration: none; }
.pcard-name a:hover { color: var(--blue); }
.pcard-short { font-size: 15px; color: var(--muted); margin: 0; line-height: 1.5; }
.pcard-price { font-weight: 700; color: var(--coral); font-size: 18px; margin-top: auto; padding-top: 6px; }
.pcard-price small { font-weight: 500; color: var(--muted); font-size: 14px; }
.pcard-price s, .pd-price s { color: var(--muted); font-weight: 400; font-size: 14px; }
.pcard-cta { margin-top: 8px; }
.pcard-cta .btn { width: 100%; }
.tag { display: inline-block; font-size: 13px; font-weight: 600; padding: 2px 10px; border-radius: 999px; background: #E3F3FC; color: var(--navy); }
.tag-out { position: absolute; left: 10px; top: 10px; background: var(--ink); color: #fff; }

/* ---------- หน้ารวมสินค้า ---------- */
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 12px; scrollbar-width: thin; }
.chips a { flex: none; padding: 8px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 500; white-space: nowrap; }
.chips a small { color: var(--muted); }
.chips a[aria-current="page"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.chips a[aria-current="page"] small { color: #CFE6F7; }
.chips-sub a { font-size: 15px; padding: 6px 14px; }
.chips-sub a[aria-current="page"] { background: var(--sun); border-color: var(--sun); color: var(--ink); }
.chips + .pgrid, .chips-sub + .pgrid { margin-top: 12px; }
.empty { text-align: center; padding: 48px 16px; background: #fff; border-radius: var(--radius); }
.empty svg { width: 48px; height: 48px; color: #B6C4D2; }

/* ---------- หน้าสินค้า ---------- */
.pd { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: start; }
.pd-gallery { position: sticky; top: 96px; }
.pd-main { display: block; background: #fff; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); }
.pd-main img { width: 100%; max-height: 560px; object-fit: contain; }
.pd-noimg { display: grid; place-items: center; aspect-ratio: 1; background: #fff; border-radius: 24px; color: #B6C4D2; }
.pd-noimg svg { width: 64px; height: 64px; }
.pd-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 10px; }
.pd-thumbs a { background: #fff; border-radius: 12px; overflow: hidden; aspect-ratio: 1; }
.pd-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pd-info h1 { font-size: clamp(26px, 3.4vw, 38px); color: var(--navy); }
.pd-price { font-size: 28px; font-weight: 700; color: var(--coral); margin: 8px 0 18px; }
.pd-price small { font-size: 16px; color: var(--muted); font-weight: 500; }
.pd-buy { display: grid; gap: 8px; background: #fff; padding: 18px; border-radius: var(--radius); box-shadow: var(--shadow); }
.pd-buy label { font-weight: 600; font-size: 15px; }
.pd-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.pd-actions .btn { flex: 1 1 200px; }
.pd-note { color: var(--muted); font-size: 15px; margin-top: 10px; }
.pd-out { font-weight: 600; color: var(--coral); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); width: max-content; }
.qty button { width: 44px; height: 44px; border: 0; background: none; cursor: pointer; display: grid; place-items: center; color: var(--navy); }
.qty input { width: 56px; text-align: center; border: 0; background: none; font-size: 17px; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.specs { margin: 22px 0 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.specs div { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; font-weight: 500; }
.pd-desc { max-width: 760px; margin-top: 44px; }
.pd-desc h2 { color: var(--navy); font-size: 26px; }

/* ---------- ฟอร์ม ---------- */
.field { display: grid; gap: 6px; margin-bottom: 14px; border: 0; padding: 0; }
.field label, .field legend { font-weight: 600; font-size: 15px; }
input:not([type=radio]):not([type=checkbox]):not([type=file]), select, textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; border-radius: 14px; border: 1.5px solid #E2D6BF; background: #fff; font-size: 16px; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 4px rgba(14,134,201,.15); }
.radio { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; border: 1.5px solid #E2D6BF; background: #fff; font-weight: 500; cursor: pointer; }
.radio:has(input:checked) { border-color: var(--blue); background: #F0F8FE; }
.radio input { width: 20px; height: 20px; accent-color: var(--blue); }
fieldset.field { display: grid; gap: 8px; }
.msg { min-height: 1.5em; margin: 8px 0 0; font-weight: 500; }
.msg.ok { color: #058A3C; }
.msg.bad { color: #D63A28; }
.notice { background: #FFF1D6; border-radius: 14px; padding: 12px 16px; }
.row { display: flex; gap: 8px; }
.row input { flex: 1; }

/* ---------- ผลงาน ---------- */
.gal { columns: var(--cols, 3); column-gap: 16px; }
.gal-item { break-inside: avoid; margin: 0 0 16px; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.gal-item a { display: block; }
.gal-item img { width: 100%; }
.gal-item figcaption { padding: 12px 16px 14px; display: grid; gap: 4px; }
.gal-item figcaption b { color: var(--navy); }
.gal-item figcaption small { color: var(--muted); }
.gal-item figcaption .tag { justify-self: start; }
.gal-item video { width: 100%; display: block; }

/* ---------- เสียงลูกค้า ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.quote { margin: 0; background: #fff; border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.quote figcaption { display: flex; gap: 12px; align-items: center; }
.quote figcaption img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.quote figcaption span { display: grid; }
.quote figcaption span span { color: var(--muted); font-size: 14px; }

/* ---------- คำถาม ---------- */
.faq-wrap { max-width: 900px; }
.faq details { background: #fff; border-radius: 16px; margin-bottom: 10px; box-shadow: var(--shadow); }
.faq summary { padding: 16px 52px 16px 20px; cursor: pointer; font-weight: 600; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%;
  background: var(--sun); display: grid; place-items: center; font-size: 20px; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { content: '−'; }
.faq-a { padding: 0 20px 18px; margin: 0; color: var(--muted); }

/* ---------- แถบชวนติดต่อ ---------- */
.cta-band { text-align: center; padding: 56px 0; }
.cta-dark { background: linear-gradient(135deg, var(--coral), #FF8A3D); color: #fff; }
.cta-soft { background: #FFF1D6; }
.cta-band h2 { font-size: clamp(24px, 3.4vw, 36px); max-width: 30ch; margin: 0 auto 20px; }

/* ---------- ติดต่อ ---------- */
.sec-contact { background: linear-gradient(160deg, var(--blue), var(--navy)); color: #fff; }
.sec-contact .sec-head h2 { color: #fff; }
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: start; }
.contact-note { font-size: 18px; }
.contact-list { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 12px; }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; }
.contact-list li > svg { width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: rgba(255,255,255,.14); }
.contact-list li span { display: grid; line-height: 1.5; }
.contact-list small { color: #BFE0F5; font-size: 13px; }
.contact-list a { color: #fff; font-weight: 600; }
.hours { list-style: none; padding: 14px 18px; margin: 0 0 18px; background: rgba(255,255,255,.1); border-radius: 16px; display: grid; gap: 4px; }
.hours li { display: flex; justify-content: space-between; gap: 12px; }
.hours .closed { color: #FFC2B8; }
.lead { }
form.lead { background: #fff; color: var(--ink); padding: 24px; border-radius: 24px; box-shadow: var(--shadow-up); }
form.lead h3 { color: var(--navy); }
.map-wrap { margin-top: 28px; }
.map { width: 100%; height: 340px; border: 0; border-radius: 20px; display: block; background: #dceffa; }
.maplink { display: inline-flex; gap: 6px; align-items: center; margin-top: 10px; color: #fff; font-weight: 600; }

/* ---------- บทความ ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.bcard { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.bcard-pic { display: block; aspect-ratio: 16 / 10; background: #F4F7FA; }
.bcard-pic img { width: 100%; height: 100%; object-fit: cover; }
.bcard-body { padding: 16px 18px 20px; }
.bcard h2 { font-size: 20px; }
.bcard h2 a { color: var(--navy); text-decoration: none; }
.a-wrap { max-width: 780px; }
.a-wrap h1 { font-size: clamp(30px, 4.6vw, 44px); color: var(--navy); }
.a-meta { color: var(--muted); font-size: 15px; }
.a-cover { margin: 20px 0; }
.a-cover img { border-radius: 22px; width: 100%; }
.a-lead { font-size: 19px; }
.a-toc { background: #fff; border-radius: 16px; padding: 16px 20px; margin: 18px 0 26px; }
.a-body h2 { color: var(--navy); margin-top: 1.6em; font-size: 28px; }
.a-body h3 { margin-top: 1.2em; }
.a-fig { margin: 22px 0; }
.a-fig img { border-radius: 16px; }
.a-fig figcaption { font-size: 14px; color: var(--muted); margin-top: 6px; }
blockquote { margin: 22px 0; padding: 14px 20px; border-left: 5px solid var(--sun); background: #fff; border-radius: 0 16px 16px 0; }
.a-embed { margin-top: 36px; }
.a-cta { margin: 28px 0; padding: 22px; background: #FFF1D6; border-radius: 18px; }
.prose { max-width: 760px; }
.prose-wide { max-width: none; }
.prose h2 { color: var(--navy); font-size: 24px; margin-top: 1.4em; }

/* ---------- ตะกร้า / ชำระเงิน / สถานะ ---------- */
.checkout { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; align-items: start; }
.co-items, .co-form, .card-box { background: #fff; border-radius: 24px; padding: 22px; box-shadow: var(--shadow); }
.co-items h2, .co-form h2, .card-box h2 { font-size: 22px; color: var(--navy); }
.cart-list { display: grid; gap: 14px; }
.cline { display: grid; grid-template-columns: 76px 1fr auto; gap: 14px; align-items: center; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.cline img, .cline .ph { width: 76px; height: 76px; border-radius: 14px; object-fit: contain; background: #F4F7FA; }
.cline b { display: block; line-height: 1.4; }
.cline small { color: var(--muted); }
.cline .qty button { width: 38px; height: 38px; }
.cline .qty input { width: 44px; }
.cline .rm { border: 0; background: none; color: var(--muted); cursor: pointer; padding: 6px; }
.sum, .sumt { display: grid; gap: 6px; margin: 16px 0; padding: 16px; background: var(--paper); border-radius: 16px; }
.sum div, .sumt div { display: flex; justify-content: space-between; gap: 12px; }
.sumt dt, .sumt dd { margin: 0; }
.sum .total, .sumt-total { font-size: 20px; font-weight: 700; color: var(--coral); border-top: 1px dashed var(--line); padding-top: 8px; }
.free-hint { background: #E5F9EE; color: #05753A; border-radius: 12px; padding: 8px 12px; font-weight: 500; }
.thanks { display: flex; gap: 16px; align-items: center; background: #E5F9EE; border-radius: 24px; padding: 20px 22px; margin-bottom: 18px; }
.thanks > svg { width: 56px; height: 56px; padding: 12px; border-radius: 50%; background: #06C755; color: #fff; }
.thanks h1 { font-size: 28px; margin: 0; color: #05753A; }
.thanks p { margin: 0; }
.ono { color: var(--navy); font-size: 1.1em; }
.ostatus { background: #fff; border-radius: 20px; padding: 16px 20px; margin-bottom: 18px; box-shadow: var(--shadow); }
.ostatus p { margin: 8px 0 0; }
.badge { display: inline-block; padding: 4px 14px; border-radius: 999px; font-weight: 700; background: #E3F3FC; color: var(--navy); }
.badge-pending_payment { background: #FFF1D6; color: #8A5A00; }
.badge-pending_slip { background: #FFE6CC; color: #A14A00; }
.badge-paid, .badge-shipping { background: #E3F3FC; color: var(--navy); }
.badge-shipped, .badge-done { background: #E5F9EE; color: #05753A; }
.badge-cancelled, .badge-refunded { background: #FFE2DD; color: #B4271A; }
.order-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; margin-bottom: 24px; }
.olines { list-style: none; padding: 0; margin: 0; }
.olines li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.pay .big { display: block; font-size: 32px; color: var(--coral); }
.qr-box { text-align: center; background: var(--paper); border-radius: 18px; padding: 18px; margin-bottom: 14px; }
.qr { width: 240px; height: 240px; margin: 0 auto 10px; background: #fff; border-radius: 12px; padding: 8px; display: grid; place-items: center; }
.qr svg, .qr img { width: 100%; height: 100%; }
.banks { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 10px; }
.banks li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; }
.slip { border-top: 1px dashed var(--line); padding-top: 16px; }
.slip h3 { font-size: 18px; }
.drop { display: grid; place-items: center; gap: 6px; padding: 20px; border: 2px dashed #CFE6F7; border-radius: 16px; background: #F5FBFF; cursor: pointer; margin-bottom: 12px; color: var(--navy); text-align: center; }
.drop input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.drop svg { width: 32px; height: 32px; }
.drop img { max-height: 260px; border-radius: 10px; }
.track { margin-bottom: 18px; }
.tsteps { list-style: none; padding: 0; margin: 14px 0; display: grid; gap: 0; }
.tsteps li { display: flex; gap: 12px; align-items: center; padding: 8px 0; color: var(--muted); }
.tsteps li::before { content: ''; width: 16px; height: 16px; border-radius: 50%; border: 3px solid #D9E3EC; background: #fff; flex: none; }
.tsteps li.done { color: var(--ink); }
.tsteps li.done::before { border-color: #06C755; background: #06C755; }
.tsteps li.now { color: var(--navy); font-weight: 700; }
.tsteps li.now::before { border-color: var(--coral); background: var(--sun); }
.notfound .big404 { font-size: 110px; font-weight: 700; color: var(--sun); line-height: 1; margin: 0; }

/* ---------- ท้ายเว็บ ---------- */
.foot { background: var(--navy); color: #DCEBF7; padding: 56px 0 0; margin-top: 0; }
.foot .wrap:first-child { display: grid; grid-template-columns: 1.3fr 1fr 1.2fr; gap: 32px; }
.foot .logo-text b { color: #fff; }
.foot .logo-img { background: #fff; padding: 4px 8px; }
.foot p { color: #BFD7EA; margin-top: 12px; font-size: 15.5px; }
.foot-h { font-size: 17px; color: var(--sun); margin-bottom: 12px; }
.foot-links { display: grid; gap: 6px; }
.foot-links a, .foot-contact a { color: #DCEBF7; text-decoration: none; }
.foot-links a:hover, .foot-contact a:hover { color: #fff; text-decoration: underline; }
.foot-contact { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 15.5px; }
.foot-contact li { display: flex; gap: 10px; align-items: flex-start; }
.foot-contact svg { margin-top: 5px; }
.social { display: flex; gap: 8px; }
.foot .social { margin-top: 14px; }
.foot .social a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.14); margin-top: 40px; padding: 18px 0 24px; color: #A9C6DD; }

/* ---------- ปุ่มลอยบนมือถือ ---------- */
.float-contact { display: none; }

/* ---------- ดูรูปขนาดเต็ม ---------- */
.light { border: 0; padding: 0; background: transparent; max-width: 94vw; max-height: 92vh; }
.light::backdrop { background: rgba(10,25,40,.85); }
.light img { max-width: 94vw; max-height: 88vh; border-radius: 12px; }
.light button { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; font-size: 26px; cursor: pointer; }

/* ---------- ค่อยๆ ปรากฏ ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- จอแคบ ---------- */
@media (max-width: 1100px) {
  .dnav a { padding: 8px 10px; }
  .pgrid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 960px) {
  .dnav, .hide-sm { display: none !important; }
  .nav-toggle { display: grid; }
  .nav .wrap { min-height: 68px; gap: 10px; }
  .nav-end { margin-left: auto; }
  .lang-sw { height: 44px; min-width: 44px; padding: 0 10px; gap: 4px; font-size: 14px; }
  .lang-sw .ic { width: 16px; height: 16px; }
  .hero-slide, .hero-compact .hero-slide { grid-template-columns: 1fr; gap: 18px; }
  .hero-pic { order: -1; transform: none; aspect-ratio: 4 / 3; max-height: 60vh; }
  .about, .contact, .pd, .checkout, .order-grid { grid-template-columns: 1fr; }
  .about.pic-right .about-pic { order: 0; }
  .pd-gallery { position: static; }
  .cats { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .steps .feature::after { display: none; }
  .quotes, .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .gal { columns: 2; }
  .foot .wrap:first-child { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
  .mnav { padding-top: 120px; }
}
@media (max-width: 767px) {
  body { font-size: 16.5px; padding-bottom: 76px; }
  .topbar { font-size: 13px; }
  .topbar .wrap { gap: 2px 14px; }
  .topbar-end .social { display: none; }
  .sec { padding: 52px 0; }
  .sec-tight { padding: 20px 0 52px; }
  .pgrid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .pcard-body { padding: 10px 12px 12px; }
  .pcard-name { font-size: 15.5px; }
  .pcard-price { font-size: 16px; }
  .pcard-cta .btn { padding: 6px 8px; font-size: 14px; }
  .cat { padding: 10px 10px 14px; }
  .cat-name { font-size: 17px; }
  .cat small { display: none; }
  .logo-img { height: 38px; }
  .logo-text b { font-size: 17px; }
  .logo-text small { display: none; }
  .hero { padding-top: 14px; }
  .hero-cta .btn { flex: 1 1 100%; }
  .float-contact { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); background: rgba(255,248,236,.98); border-top: 1px solid var(--line); }
  .fl { display: flex; align-items: center; justify-content: center; gap: 8px; height: 52px; border-radius: 14px; color: #fff; font-weight: 700; text-decoration: none; }
  .fl-line { background: var(--green); }
  .fl-call { background: var(--blue); }
  body.nav-open .float-contact { display: none; }
  .checkout .co-items, .checkout .co-form, .card-box { padding: 16px; }
  .cline { grid-template-columns: 64px 1fr; }
  .cline img, .cline .ph { width: 64px; height: 64px; }
  .cline .cline-end { grid-column: 2; display: flex; justify-content: space-between; align-items: center; }
  .specs div { grid-template-columns: 96px 1fr; }
}
@media (max-width: 479px) {
  .features-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .quotes, .blog-grid { grid-template-columns: 1fr; }
  .gal { columns: 2; column-gap: 10px; }
  .gal-item { margin-bottom: 10px; }
  .foot .wrap:first-child { grid-template-columns: 1fr; }
  .thanks { flex-direction: column; align-items: flex-start; }
}

/* ---------- ลูกค้าที่ไว้วางใจ ---------- */
.sec-clients { padding: 40px 0; }
.clients-box { background: #fff; border-radius: 28px; padding: 28px; box-shadow: var(--shadow); display: grid; gap: 18px; justify-items: start; }
.clients-box h2 { color: var(--navy); font-size: clamp(24px, 3vw, 32px); margin: 0; }
.clients { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.clients li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; background: #E3F3FC; color: var(--navy); font-weight: 500; font-size: 15.5px; }
.clients li.c1 { background: #FFF1D6; color: #7A5200; }
.clients li.c2 { background: #FFE9E5; color: #A3301F; }
.clients li.c3 { background: #E5F9EE; color: #05753A; }
@media (min-width: 961px) { .cats { grid-template-columns: repeat(4, 1fr); } }

/* กรอบรูปการ์ดคงสัดส่วนเสมอ รูปทั้งภาพอยู่ในกรอบ ไม่ครอป ไม่ยืด */
.pcard-pic, .cat-pic, .bcard-pic { position: relative; overflow: hidden; }
.pcard-pic img, .cat-pic img, .bcard-pic img { position: absolute; inset: 0; width: 100%; height: 100%; }
.pcard-pic img, .cat-pic img { object-fit: contain; padding: 6px; }
[hidden] { display: none !important; }

/* รูปเล็กไม่ขยายเกินขนาดจริง (กันรูปแตก) จัดกลางกรอบแทน */
.pcard-pic img, .cat-pic img { inset: 0; margin: auto; width: auto; height: auto; max-width: 100%; max-height: 100%; }
/* จุดกดบนมือถืออย่างน้อย 44px */
.hero-dots button { width: 44px; height: 44px; background: none !important; position: relative; }
.hero-dots button::before { content: ''; position: absolute; left: 50%; top: 50%; width: 12px; height: 12px; border-radius: 999px; background: #F2D9A6; transform: translate(-50%, -50%); transition: width .3s var(--ease), background .3s; }
.hero-dots button[aria-current="true"] { width: 44px; }
.hero-dots button[aria-current="true"]::before { width: 34px; background: var(--coral); }
.hero-dots { gap: 0; }
@media (max-width: 767px) {
  .topbar { display: none; }
  .logo, .hero-phone, .more, .maplink { min-height: 44px; display: inline-flex; align-items: center; }
  .foot-links a, .foot-contact a, .crumbs a { display: inline-flex; align-items: center; min-height: 44px; }
  .foot-links { gap: 0; }
  .pcard-name a { display: block; min-height: 44px; }
  .contact-list a { display: inline-flex; min-height: 44px; align-items: center; }
  .mnav { padding-top: 96px; }
}

/* อ่านไทยสบายตา: ระยะบรรทัดไม่ต่ำกว่า 1.4 ตัวหนังสือไม่เล็กกว่า 14px */
h1, h2, h3, h4, .hero-title, .logo-text, .pcard-name, .cline b { line-height: 1.4; }
.logo-text small, .tag, .pcard-sku, .contact-list small, .cart-count, .topbar { font-size: 14px; }
.btn-sm { min-height: 44px; }
/* รอบตรวจ: จุดกด ช่องกรอก รูปไม่ขยายเกินขนาดจริง */
.crumbs a { padding: 0 4px; min-width: 44px; justify-content: center; }
.radio, .radio input { font-size: 16px; }
.qty input { min-width: 56px; }
.pd-main img, .a-cover img, .a-fig img { width: auto; max-width: 100%; margin-inline: auto; }
.bcard-pic img { inset: 0; margin: auto; width: auto; height: auto; max-width: 100%; max-height: 100%; }
.a-toc a, .bcard h2 a, .a-body a { display: inline-flex; align-items: center; min-height: 44px; }

/* =====================================================================
   รอบแก้ด่วน 1011 — ปรับให้น่ารัก สนุก มีลูกเล่น (เจ้าของสั่ง)
   ปุ่มแบบสติกเกอร์กดยุบ · การ์ดเด้งเอียงตอนชี้ · เส้นใต้หัวข้อหยัก ·
   ขอบคลื่นระหว่างส่วน · ลวดลายลอยในแบนเนอร์ · จุดสีกระจายตอนกด
   ===================================================================== */
:root { --spring: cubic-bezier(.34,1.56,.64,1); --radius: 24px; }

/* ปุ่มสติกเกอร์: เงาแข็งด้านล่าง ชี้แล้วเด้ง กดแล้วยุบ */
.btn { box-shadow: 0 4px 0 #D9412F; transition: transform .25s var(--spring), box-shadow .2s var(--ease), background .2s; }
.btn:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 7px 0 #D9412F; }
.btn:active { transform: translateY(3px) scale(.98); box-shadow: 0 1px 0 #D9412F; }
.btn-line { box-shadow: 0 4px 0 #04A043; }
.btn-line:hover { box-shadow: 0 7px 0 #04A043; }
.btn-line:active { box-shadow: 0 1px 0 #04A043; }
.btn-sun { box-shadow: 0 4px 0 #E0A300; }
.btn-sun:hover { box-shadow: 0 7px 0 #E0A300; }
.btn-sun:active { box-shadow: 0 1px 0 #E0A300; }
.btn-ghost { box-shadow: 0 4px 0 var(--line); }
.btn-ghost:hover { box-shadow: 0 7px 0 #D8C9AC; }
.btn-ghost:active { box-shadow: 0 1px 0 var(--line); }
.btn svg { transition: transform .3s var(--spring); }
.btn:hover svg { transform: rotate(-12deg) scale(1.15); }
.more svg { transition: transform .25s var(--spring); }
.more:hover svg { transform: translateX(4px); }

/* จุดสีกระจายตอนกด */
.pop-dot { position: fixed; z-index: 200; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; pointer-events: none;
  animation: popdot .65s cubic-bezier(.2,.8,.3,1) forwards; }
@keyframes popdot { 0% { transform: translate(0,0) scale(1); opacity: 1; } 100% { transform: translate(var(--dx), var(--dy)) scale(.2); opacity: 0; } }

/* หัวเว็บ: เมนูที่เลือกอยู่เป็นป้ายเด้ง โลโก้ส่ายเบาๆ ตอนชี้ */
.dnav a { transition: background .2s, transform .25s var(--spring); }
.dnav a:hover { background: #fff; transform: translateY(-2px) rotate(-2deg); }
.dnav a[aria-current="page"] { box-shadow: 0 3px 0 #E0A300; }
.logo:hover .logo-img { animation: wiggle .5s var(--ease); }
.cart-btn { transition: transform .25s var(--spring); }
.cart-btn:hover { transform: rotate(-8deg) scale(1.08); }
@keyframes wiggle { 0%,100% { transform: rotate(0); } 25% { transform: rotate(-4deg); } 75% { transform: rotate(4deg); } }

/* แบนเนอร์: ลวดลายลอย กรอบรูปซ้อนสีแบบกระดาษตัดแปะ ขอบล่างเป็นคลื่น */
.hero { padding-bottom: 72px; }
.hero::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 40px; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 40' preserveAspectRatio='none'%3E%3Cpath d='M0 20 C150 0 300 40 450 20 S750 0 900 20 S1100 40 1200 18 V40 H0Z' fill='%23FFF8EC'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; will-change: transform; }
.deco { position: absolute; width: 44px; height: 44px; animation: floaty 6s ease-in-out infinite; }
.dk-star { fill: var(--sun); stroke: none; left: 3%; top: 64%; width: 42px; height: 42px; animation-duration: 5.5s; }
.dk-star2 { fill: var(--coral); stroke: none; left: 30%; bottom: 34px; width: 30px; height: 30px; opacity: .8; animation-delay: -2s; animation-name: spinfloat; animation-duration: 9s; }
.dk-cloud { fill: #fff; stroke: none; left: 38%; top: 6px; width: 96px; height: 56px; opacity: .95; animation-duration: 8s; filter: drop-shadow(0 6px 10px rgba(14,134,201,.12)); }
.dk-ring { fill: none; stroke: var(--blue); stroke-width: 5; right: 7%; bottom: 40px; width: 38px; height: 38px; opacity: .5; animation-delay: -3s; }
.dk-squig { fill: none; stroke: var(--coral); stroke-width: 5; stroke-linecap: round; left: 1%; top: 10px; width: 90px; height: 24px; opacity: .55; animation-delay: -1s; }
.dk-dots { fill: #9FD8F7; stroke: none; right: 2%; top: 30%; width: 60px; height: 36px; animation-duration: 7s; animation-delay: -4s; }
@keyframes floaty { 0%,100% { translate: 0 0; } 50% { translate: 0 -12px; } }
@keyframes spinfloat { 0% { translate: 0 0; rotate: 0deg; } 50% { translate: 0 -10px; rotate: 180deg; } 100% { translate: 0 0; rotate: 360deg; } }
.hero .wrap { z-index: 1; }
.hero-pic { position: relative; isolation: isolate; overflow: visible; background: none; box-shadow: none; border-radius: 32px; margin: 18px 20px 22px; transition: transform .5s var(--spring); }
.hero-pic::before { content: ''; position: absolute; inset: 0; border-radius: inherit; background: var(--sun); transform: rotate(-3deg) translate(-6px, 8px); z-index: -1; }
.hero-pic img { border-radius: 32px; border: 6px solid #fff; box-shadow: var(--shadow-up); background: #dceffa; }
.hero-video { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; border-radius: 32px; border: 6px solid #fff; box-shadow: var(--shadow-up); background: #dceffa; }
.hero-pic:hover { transform: rotate(-1deg) scale(1.01); }
.hero-slide:nth-child(2) .hero-pic::before { background: var(--coral); transform: rotate(3deg) translate(8px, 10px); }
.hero-slide:nth-child(3) .hero-pic::before { background: #9FD8F7; transform: rotate(-3deg) translate(10px, -8px); }
.eyebrow { box-shadow: 0 3px 0 #D9412F; animation: eyebrowIn .7s var(--spring) .2s both; transform-origin: left center; }
@keyframes eyebrowIn { from { transform: scale(.6) rotate(-6deg); opacity: 0; } to { transform: none; opacity: 1; } }
.hero-phone svg { animation: ring 2.8s ease-in-out infinite; }
@keyframes ring { 0%, 80%, 100% { transform: rotate(0); } 84% { transform: rotate(-14deg); } 88% { transform: rotate(12deg); } 92% { transform: rotate(-8deg); } 96% { transform: rotate(6deg); } }

/* หัวข้อส่วน: เส้นใต้หยักสองสี */
.sec-head h2::after { width: 92px; height: 12px; border-radius: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 92 12'%3E%3Cpath d='M2 6c6-6 9-6 15 0s9 6 15 0 9-6 15 0' fill='none' stroke='%23FFC52E' stroke-width='4' stroke-linecap='round'/%3E%3Cpath d='M47 6c6-6 9-6 15 0s9 6 15 0 9-6 13-2' fill='none' stroke='%23FF5B47' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E") left center / contain no-repeat; }
.sec-blue .sec-head h2::after, .sec-contact .sec-head h2::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 92 12'%3E%3Cpath d='M2 6c6-6 9-6 15 0s9 6 15 0 9-6 15 0' fill='none' stroke='%23FFC52E' stroke-width='4' stroke-linecap='round'/%3E%3Cpath d='M47 6c6-6 9-6 15 0s9 6 15 0 9-6 13-2' fill='none' stroke='%23ffffff' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E"); }
.page-head h1 { position: relative; display: inline-block; z-index: 0; }
.page-head h1::after { content: ''; position: absolute; left: -6px; right: -6px; bottom: 6px; height: 14px; background: var(--sun); opacity: .45; border-radius: 8px; z-index: -1; }

/* ขอบคลื่นด้านบนของส่วนพื้นสีเข้ม */
.sec-blue, .sec-contact, .foot { position: relative; }
.sec-blue::before, .sec-contact::before, .foot::before { content: ''; position: absolute; left: 0; right: 0; top: -38px; height: 40px; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 40' preserveAspectRatio='none'%3E%3Cpath d='M0 22 C120 2 260 2 400 20 S680 40 820 18 S1060 0 1200 20 V40 H0Z' fill='%230E86C9'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }
.foot::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 40' preserveAspectRatio='none'%3E%3Cpath d='M0 22 C120 2 260 2 400 20 S680 40 820 18 S1060 0 1200 20 V40 H0Z' fill='%230B4F86'/%3E%3C/svg%3E"); }
main:has(> .sec-contact:last-child) + .foot::before { display: none; }

/* การ์ดหมวด: เอียงสลับซ้ายขวาตอนชี้ รูปซูมเบาๆ ชื่อหมวดมีจุดสี */
.cat { border: 3px solid transparent; transition: transform .35s var(--spring), box-shadow .25s var(--ease), border-color .2s; }
.cat:nth-child(odd):hover { transform: translateY(-6px) rotate(-1.5deg); }
.cat:nth-child(even):hover { transform: translateY(-6px) rotate(1.5deg); }
.cat:hover { border-color: var(--sun); }
.cat-pic { background: #EAF6FD; }
.cat:nth-child(4n+2) .cat-pic { background: #FFF3D6; }
.cat:nth-child(4n+3) .cat-pic { background: #FFE9E5; }
.cat:nth-child(4n+4) .cat-pic { background: #E5F9EE; }
.cat-pic img { transition: transform .4s var(--spring); }
.cat:hover .cat-pic img { transform: scale(1.07); }
.cat-name { display: flex; align-items: center; gap: 8px; }
.cat-name::before { content: ''; width: 12px; height: 12px; border-radius: 50%; flex: none; background: var(--blue); }
.cat:nth-child(4n+2) .cat-name::before { background: var(--sun); }
.cat:nth-child(4n+3) .cat-name::before { background: var(--coral); }
.cat:nth-child(4n+4) .cat-name::before { background: var(--green); }

/* การ์ดสินค้า: พื้นรูปสีพาสเทลสลับ ชี้แล้วเด้งขึ้น */
.pcard { border: 3px solid transparent; transition: transform .35s var(--spring), box-shadow .25s var(--ease), border-color .2s; }
.pcard:hover { transform: translateY(-6px) rotate(-.6deg); border-color: #9FD8F7; box-shadow: var(--shadow-up); }
.pcard-pic { background: #EAF6FD; }
.pcard:nth-child(4n+2) .pcard-pic { background: #FFF3D6; }
.pcard:nth-child(4n+3) .pcard-pic { background: #FFE9E5; }
.pcard:nth-child(4n+4) .pcard-pic { background: #E5F9EE; }
.pcard-pic img { transition: transform .4s var(--spring); }
.pcard:hover .pcard-pic img { transform: scale(1.06); }

/* จุดเด่น: ไอคอนทรงก้อนกลมๆ ส่ายตอนชี้ */
.feature { border: 3px dashed transparent; transition: transform .35s var(--spring), border-color .2s; }
.feature:hover { transform: translateY(-4px); border-color: #F0C766; }
.feature-icon { border-radius: 42% 58% 55% 45% / 50% 42% 58% 50%; }
.feature:hover .feature-icon { animation: wiggle .5s var(--ease); }
.steps .feature { border: 0; }
.steps .feature-icon { width: 60px; height: 60px; border-radius: 50%; box-shadow: 0 4px 0 #E0A300; font-size: 20px; }
.steps .feature.in .feature-icon { animation: bounceIn .7s var(--spring) both; }
@keyframes bounceIn { 0% { transform: scale(.3); } 60% { transform: scale(1.15); } 100% { transform: scale(1); } }

/* เกี่ยวกับร้าน: รูปเอียงมีกรอบขาว + แผ่นสีซ้อนด้านหลัง */
.about-pic { position: relative; }
.about-pic::before { content: ''; position: absolute; inset: 0; border-radius: 26px; background: #9FD8F7; transform: rotate(3deg) translate(10px, 8px); }
.about-pic img { position: relative; border: 6px solid #fff; transition: transform .5s var(--spring); }
.about-pic:hover img { transform: translateY(-4px); }

/* แผ่นสีเอียงซ้อนหลังรูปต้องไม่ดันหน้าเว็บให้เลื่อนซ้าย-ขวา */
main { overflow-x: clip; }

/* ผลงาน / บทความ / รีวิว */
.gal-item, .bcard, .quote { border: 3px solid transparent; transition: transform .35s var(--spring), border-color .2s; }
.gal-item:nth-child(odd):hover, .bcard:hover { transform: translateY(-5px) rotate(-1deg); border-color: var(--sun); }
.gal-item:nth-child(even):hover { transform: translateY(-5px) rotate(1deg); border-color: #9FD8F7; }
.gal-item img { transition: transform .45s var(--spring); }
.gal-item:hover img { transform: scale(1.04); }
.quote { position: relative; }
.quote::before { content: ''; position: absolute; top: -14px; left: 18px; width: 40px; height: 28px; border-radius: 12px 12px 12px 2px; background: var(--sun); }

/* ลูกค้าที่ไว้วางใจ: ป้ายเด้ง */
.clients li { transition: transform .3s var(--spring); }
.clients li:nth-child(odd):hover { transform: translateY(-3px) rotate(-3deg); }
.clients li:nth-child(even):hover { transform: translateY(-3px) rotate(3deg); }
.clients-box { border: 3px dashed #F0C766; }

/* คำถาม: ปุ่มบวกหมุนเป็นกากบาทตอนเปิด */
.faq details { border: 3px solid transparent; transition: border-color .2s; }
.faq details[open] { border-color: var(--sun); }
.faq summary::after { transition: transform .35s var(--spring), background .2s; }
.faq details[open] summary::after { content: '+'; transform: translateY(-50%) rotate(135deg); background: var(--coral); color: #fff; }

/* แถบชวนติดต่อ: ลายจุด */
.cta-dark { background-image: radial-gradient(rgba(255,255,255,.18) 2px, transparent 2.5px), linear-gradient(135deg, var(--coral), #FF8A3D); background-size: 26px 26px, auto; }
.cta-soft { background-image: radial-gradient(rgba(255,197,46,.35) 2px, transparent 2.5px); background-size: 26px 26px; background-color: #FFF1D6; }

/* ฟอร์มติดต่อ: กรอบเหลือง */
input:not([type=radio]):not([type=checkbox]):not([type=file]), select, textarea { border-radius: 16px; }
form.lead { border: 4px solid var(--sun); }

/* ท้ายเว็บ: ไอคอนโซเชียลเด้ง */
.foot .social a { transition: transform .3s var(--spring), background .2s; }
.foot .social a:hover { transform: translateY(-3px) rotate(-8deg); background: var(--sun); color: var(--ink); }
.foot { padding-top: 64px; }

/* ปรากฏตอนเลื่อน: ป๊อปขึ้นแบบเด้ง */
.reveal { transform: translateY(24px); transition: opacity .5s var(--ease), transform .6s var(--spring); }
.reveal.in { transform: none; }

/* เมนูมือถือ: ไล่เด้งเข้าทีละบรรทัด */
.mnav-links a { transform: translateX(-16px); opacity: 0; transition: transform .45s var(--spring), opacity .3s; }
body.nav-open .mnav-links a { transform: none; opacity: 1; }
body.nav-open .mnav-links a:nth-child(2) { transition-delay: .04s; } body.nav-open .mnav-links a:nth-child(3) { transition-delay: .08s; }
body.nav-open .mnav-links a:nth-child(4) { transition-delay: .12s; } body.nav-open .mnav-links a:nth-child(5) { transition-delay: .16s; }
body.nav-open .mnav-links a:nth-child(6) { transition-delay: .2s; } body.nav-open .mnav-links a:nth-child(n+7) { transition-delay: .24s; }

/* ปุ่มลอยมือถือ: ปุ่มไลน์มีวงกระเพื่อมเรียกความสนใจ */
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(6,199,85,.55); } 70%,100% { box-shadow: 0 0 0 12px rgba(6,199,85,0); } }
@media (max-width: 767px) {
  .fl { position: relative; box-shadow: 0 4px 0 rgba(0,0,0,.15); }
  .fl-line::after { content: ''; position: absolute; inset: 0; border-radius: inherit; animation: pulse 2.4s ease-out infinite; }
  .hero { padding-bottom: 56px; }
  .deco { scale: .75; }
  .dk-cloud { left: auto; right: 6%; top: 4px; }
  .dk-ring, .dk-dots { display: none; }
  .dk-star { top: auto; bottom: 40px; }
  .hero-pic { margin: 12px 14px 16px; }
  .hero-pic::before { transform: rotate(-2.5deg) translate(-5px, 6px); }
}
@media (prefers-reduced-motion: reduce) {
  .mnav-links a { transform: none; opacity: 1; }
  .reveal { transform: none; }
}

/* ปุ่ม WhatsApp (สีเขียวของ WhatsApp แยกจากเขียว LINE) */
.btn-wa { background: #25D366; color: #fff; box-shadow: 0 4px 0 #1DA851; }
.btn-wa:hover { box-shadow: 0 7px 0 #1DA851; }
.btn-wa:active { box-shadow: 0 1px 0 #1DA851; }
.contact-info .btn-wa { margin-top: 10px; }
.fl-wa { background: #25D366; }
@media (max-width: 767px) {
  .float-contact { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 1fr; }
  .float-contact .fl { gap: 6px; font-size: 15px; }
}
/* จอใหญ่: ปุ่ม WhatsApp วงกลมลอยมุมขวาล่าง (ปุ่ม LINE อยู่หัวเว็บแล้ว) */
@media (min-width: 768px) {
  .float-contact { display: block; position: fixed; right: 22px; bottom: 22px; z-index: 30; }
  .float-contact .fl:not(.fl-wa) { display: none; }
  .float-contact .fl-wa { display: flex; align-items: center; justify-content: center; width: 58px; height: 58px; border-radius: 50%;
    color: #fff; box-shadow: 0 8px 20px -6px rgba(0,0,0,.35); transition: transform .2s ease; }
  .float-contact .fl-wa:hover { transform: translateY(-3px); }
  .float-contact .fl-wa span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .float-contact .fl-wa svg { width: 28px; height: 28px; }
  body.nav-open .float-contact { display: none; }
}
