/* ============================================================
   Chai Tractor — บริษัท ชัย แทรคเตอร์ จำกัด
   Design system cloned from chai-tractor.com (WordPress/Elementor)
   rebuilt as hand-written CSS. One file, no framework.
   ============================================================ */

:root {
  --blue:      #3B82F6;   /* accent: heading spans, stats, links, icons */
  --blue-dark: #2563EB;
  --yellow:    #FFC105;   /* primary CTA */
  --yellow-d:  #EBB000;
  --green:     #00C853;   /* LINE buttons */
  --green-d:   #00B34A;
  --ink:       #111111;   /* main text */
  --ink-2:     #374151;   /* body copy on white */
  --gray:      #6B7280;   /* muted */
  --gray-2:    #9CA3AF;
  --line:      #E5E7EB;   /* hairlines/borders */
  --bg:        #F9F9F9;   /* page background */
  --bg-soft:   #F3F4F6;   /* section alt background */
  --bg-blue:   #EAF0FB;   /* brand-section tint */
  --dark:      #23252A;   /* footer / dark cards */
  --dark-2:    #1A1C20;   /* hero overlay base */
  --cream:     #FFF8E6;   /* review avatar bg, urgent box */

  --font: "Noto Sans Thai", "Inter", -apple-system, "Segoe UI", sans-serif;

  --radius:    15px;      /* buttons  */
  --radius-lg: 16px;      /* cards    */
  --radius-xl: 24px;      /* big panels */

  --shadow-sm: 0 1px 3px rgba(17, 17, 17, .06);
  --shadow-md: 0 6px 24px rgba(17, 17, 17, .08);

  --wrap: 1140px;
  --gut: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.85;
  text-rendering: optimizeLegibility;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }

.skip { position: absolute; left: -9999px; background: var(--dark); color: #fff; padding: 12px 20px; z-index: 200; border-radius: 0 0 8px 0; }
.skip:focus { left: 0; top: 0; }

/* ---------- Type ---------- */

h1, h2, h3, h4 { font-family: var(--font); line-height: 1.45; margin: 0 0 .5em; }
h1 { font-size: clamp(1.9rem, 4.4vw, 2.9rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.5rem); font-weight: 600; }
h3 { font-size: clamp(1.1rem, 1.8vw, 1.3rem); font-weight: 600; }
p { margin: 0 0 1.05em; }
p:last-child { margin-bottom: 0; }

.accent { color: var(--blue); }         /* blue word inside a heading */
.muted { color: var(--gray); }
.small { font-size: .9rem; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }

.section-head { text-align: center; max-width: 720px; margin: 0 auto clamp(30px, 4.5vw, 52px); }
.section-head h2 { margin-bottom: 12px; }
.section-head p { color: var(--gray); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 30px;
  border: 0; border-radius: var(--radius);
  font-family: var(--font); font-size: 1.02rem; font-weight: 600;
  cursor: pointer; text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
  line-height: 1.5;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn-yellow { background: var(--yellow); color: var(--ink); }
.btn-yellow:hover { background: var(--yellow-d); color: var(--ink); }

.btn-white { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.btn-white:hover { color: var(--ink); }

.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-d); color: #fff; }

.btn-pill { border-radius: 999px; }
.btn-sm { padding: 10px 20px; font-size: .95rem; }

.link-more { font-weight: 600; color: var(--blue); }
.link-more::after { content: " →"; }

/* ---------- Header ---------- */

.site-head {
  position: sticky; top: 0; z-index: 100;
  background: #fff;
  box-shadow: 0 1px 0 var(--line);
}
.head-in { display: flex; align-items: center; gap: 18px; min-height: 74px; }

.brand { display: flex; align-items: center; margin-right: auto; }
.brand img { height: 44px; width: auto; }

.nav ul { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav a {
  display: block; padding: 8px 14px;
  color: var(--ink); font-size: 1rem; font-weight: 500;
  border-radius: 8px;
}
.nav a:hover { color: var(--blue); }
.nav a[aria-current="page"] { color: var(--blue); }

.nav-toggle {
  display: none;
  background: none; border: 1px solid var(--line); border-radius: 10px;
  font-family: var(--font); font-size: .95rem; padding: 9px 14px; cursor: pointer; color: var(--ink);
}

/* ---------- Hero (home) ---------- */

.hero-home {
  position: relative;
  background: var(--dark-2) url("../img/hero-home.jpg") center / cover no-repeat;
  color: #fff;
}
.hero-home::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(rgba(10, 12, 16, .72), rgba(10, 12, 16, .78));
}
.hero-home .wrap { position: relative; text-align: center; padding-top: clamp(56px, 9vw, 110px); padding-bottom: clamp(48px, 7vw, 90px); }
.hero-home h1 { margin: 0 auto 14px; max-width: 21ch; line-height: 1.4; }
.hero-home h1 .line-blue { color: var(--blue); display: block; }
.hero-home .hero-sub { color: #E5E7EB; max-width: 56ch; margin: 0 auto 30px; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-bottom: clamp(40px, 6vw, 64px); }

.hero-stats { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(28px, 7vw, 96px); }
.hero-stats > div { min-width: 150px; }
.hero-stats b { display: block; font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 800; color: var(--blue); line-height: 1.3; }
.hero-stats span { display: block; color: #D1D5DB; font-size: .95rem; line-height: 1.6; }
.hero-stats strong { display: block; color: #fff; font-weight: 600; }

/* ---------- Intro card (home, overlaps hero) ---------- */

.intro { padding: clamp(36px, 5vw, 64px) 0; }
.intro-card {
  background: #fff; border-radius: var(--radius-xl); box-shadow: var(--shadow-md);
  padding: clamp(28px, 4.5vw, 52px); text-align: center;
}
.intro-card h2 { max-width: 34ch; margin-inline: auto; }
.intro-card p { color: var(--gray); max-width: 72ch; margin: 14px auto 24px; }

/* ---------- Part category cards (home #parts) ---------- */

.parts { padding: clamp(40px, 6vw, 80px) 0; }
.parts-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }

.part-card {
  position: relative; display: flex; align-items: center; gap: 16px;
  min-height: 132px; padding: 24px 26px;
  border-radius: var(--radius-lg); overflow: hidden;
  color: #fff; text-decoration: none;
  background: var(--dark) center / cover no-repeat;
  transition: transform .18s ease, box-shadow .18s ease;
}
.part-card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15,17,21,.88), rgba(15,17,21,.55)); transition: background .18s ease; }
.part-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); color: #fff; }
.part-card > * { position: relative; }

.part-ico {
  flex: none; width: 54px; height: 54px; border-radius: 12px;
  background: rgba(255, 193, 5, .14);
  display: grid; place-items: center;
}
.part-ico img { width: 30px; height: 30px; }
.part-card h3 { margin: 0 0 2px; font-size: 1.15rem; color: #fff; }
.part-card p { margin: 0; font-size: .88rem; color: #D1D5DB; line-height: 1.65; }
.part-arrow { margin-left: auto; font-size: 1.3rem; color: #fff; opacity: .85; }

.parts-cta { text-align: center; margin-top: clamp(30px, 4vw, 46px); }
.parts-cta h3 { font-size: 1.5rem; font-weight: 600; margin-bottom: 8px; }
.parts-cta p { color: var(--gray); margin-bottom: 10px; }

/* ---------- Brands ---------- */

.brands { background: var(--bg-blue); padding: clamp(40px, 6vw, 80px) 0; }
.brands-grid {
  display: grid; grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px 18px; align-items: center; margin-bottom: clamp(26px, 4vw, 40px);
}
.brands-grid img { width: 100%; height: auto; mix-blend-mode: multiply; }
.brands .center p { color: var(--gray); margin: 14px 0 8px; }

/* รายชื่อแบรนด์และรุ่นเป็นข้อความจริง (SEO: ให้ Google อ่านชื่อแบรนด์ได้) */
.brand-models {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(20px, 3vw, 30px); margin-bottom: clamp(24px, 3.5vw, 36px);
}
.brand-models h3 { font-size: 1.12rem; margin-bottom: 14px; text-align: center; }
.brand-models ul {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 26px;
}
.brand-models li { font-size: .95rem; line-height: 1.7; }
.brand-models li b { font-weight: 600; }
.brand-models li span { color: var(--gray); }
.brand-models li a { font-weight: 600; }
.brand-models .note { margin: 16px 0 0; font-size: .92rem; color: var(--gray); text-align: center; }

@media (max-width: 620px) {
  .brand-models ul { grid-template-columns: 1fr; }
}

/* ---------- Reviews ---------- */

.reviews { padding: clamp(40px, 6vw, 80px) 0; }
.reviews-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }

.review-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); padding: 24px 26px;
  display: flex; flex-direction: column;
}
.review-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.stars { color: var(--yellow); font-size: 1.05rem; letter-spacing: 2px; }
.review-score { color: var(--gray-2); font-weight: 500; }
.review-body { position: relative; flex: 1; padding: 0 6px; }
.review-body p { text-align: center; color: var(--ink-2); font-size: .98rem; margin: 0; }
.q-open, .q-close { color: var(--blue); font-size: 1.6rem; font-weight: 800; line-height: 1; font-family: Georgia, serif; }
.q-open { float: left; margin-right: 8px; }
.q-close { float: right; margin-left: 8px; margin-top: 4px; }
.review-who { display: flex; align-items: center; gap: 12px; border-top: 1px solid var(--line); margin-top: 18px; padding-top: 16px; }
.review-ava {
  width: 44px; height: 44px; border-radius: 50%; flex: none;
  background: var(--cream); color: var(--yellow-d);
  display: grid; place-items: center; font-weight: 700;
}
.review-who b { font-weight: 700; }

/* ---------- Quote CTA band ---------- */

.quote-band { padding: clamp(30px, 4vw, 56px) 0; }
.quote-card {
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-xl);
  text-align: center; padding: clamp(30px, 4.5vw, 52px);
}
.quote-card h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-bottom: 20px; }

/* ---------- Shipping ---------- */

.shipping { padding: clamp(40px, 6vw, 80px) 0; }
.shipping-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(24px, 4vw, 48px); align-items: center; }
.ship-list { display: grid; gap: 14px; }
.ship-item {
  display: flex; gap: 16px; align-items: flex-start;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); padding: 18px 20px;
}
.ship-ico {
  flex: none; width: 46px; height: 46px; border-radius: 50%;
  background: var(--bg-blue); color: var(--blue);
  display: grid; place-items: center; font-size: 1.15rem;
}
.ship-item h3 { margin: 0 0 2px; font-size: 1.05rem; }
.ship-item p { margin: 0; color: var(--gray); font-size: .93rem; }
.shipping-photo img { border-radius: var(--radius-xl); box-shadow: var(--shadow-md); }

/* ---------- Contact (home #contact) ---------- */

.contact { padding: clamp(40px, 6vw, 80px) 0 clamp(50px, 7vw, 90px); }
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(22px, 3.5vw, 40px); align-items: start; }

.contact-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm); padding: clamp(24px, 3.5vw, 36px);
}
.contact-card h2 { font-size: 1.5rem; margin-bottom: 20px; }
.contact-rows { display: grid; gap: 20px; }
.c-row { display: flex; gap: 16px; align-items: flex-start; }
.c-ico {
  flex: none; width: 46px; height: 46px; border-radius: 50%;
  background: var(--bg-blue); display: grid; place-items: center;
}
.c-ico img { width: 22px; height: 22px; }
.c-row h3 { margin: 0 0 2px; font-size: 1.02rem; }
.c-row p { margin: 0; color: var(--gray); font-size: .95rem; }
.c-row a { font-weight: 500; }

.contact-actions { display: grid; gap: 14px; }
.contact-actions .btn { width: 100%; }

.urgent-box {
  background: var(--cream); border: 1px solid #F5E3B3; border-radius: var(--radius-lg);
  padding: 20px 22px;
}
.urgent-box h3 { margin: 0 0 6px; font-size: 1.05rem; }
.urgent-box p { margin: 0 0 12px; color: var(--gray); font-size: .92rem; }
.urgent-box .hotline {
  display: block; text-align: center; background: #fff; border: 1px dashed var(--yellow);
  border-radius: 10px; padding: 10px; font-weight: 700; color: var(--ink);
}

/* ---------- Footer ---------- */

.site-foot { background: var(--dark); color: #C7CBD1; font-size: .95rem; }
.foot-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 34px;
  padding: clamp(40px, 6vw, 64px) 0 clamp(28px, 4vw, 40px);
}
.foot-brand img { height: 46px; width: auto; margin-bottom: 16px; filter: brightness(0) invert(1); }
.foot-brand p { line-height: 1.9; }
.site-foot h4 { color: var(--yellow); font-size: 1rem; font-weight: 600; margin: 0 0 14px; }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-foot a { color: #C7CBD1; }
.site-foot a:hover { color: #fff; }
.foot-c { display: flex; gap: 10px; align-items: flex-start; }
.foot-c img { width: 18px; height: 18px; margin-top: 6px; filter: grayscale(1) brightness(2); }

.foot-bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between;
  padding: 18px 0 22px; font-size: .88rem; color: #9CA3AF;
}
.foot-bottom a { color: #9CA3AF; }
.foot-bottom a:hover { color: #fff; }

/* ---------- Inner page hero (about / categories) ---------- */

.page-hero {
  position: relative; color: #fff; text-align: center;
  background: var(--dark-2) center / cover no-repeat;
}
.page-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(10,12,16,.66), rgba(10,12,16,.74)); }
.page-hero .wrap { position: relative; padding-top: clamp(48px, 7vw, 84px); padding-bottom: clamp(44px, 6vw, 76px); }
.page-hero h1 { margin-bottom: 10px; }
.page-hero .sub { color: #D1D5DB; max-width: 60ch; margin: 0 auto; }
.page-hero .sub .accent { color: var(--blue); }

.hero-ico {
  width: 64px; height: 64px; border-radius: 14px; margin: 0 auto 18px;
  background: rgba(255, 193, 5, .16); display: grid; place-items: center;
}
.hero-ico img { width: 34px; height: 34px; }

.backlink-bar { padding: 14px 0 0; }
.backlink { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 500; font-size: .95rem; }
.backlink:hover { color: var(--blue); }
.page-hero-wrap .backlink-bar { position: relative; z-index: 1; }
.page-hero .backlink { color: #E5E7EB; position: absolute; top: 18px; left: var(--gut); }
.page-hero .backlink:hover { color: #fff; }

/* ---------- Category page: product samples ---------- */

.samples { padding: clamp(40px, 6vw, 72px) 0; }
.samples-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.sample-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); overflow: hidden; text-align: center;
}
.sample-card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.sample-card figcaption { padding: 12px 10px; font-weight: 600; font-size: .95rem; }

/* ---------- Category page: item list pills ---------- */

.item-list { padding: 0 0 clamp(40px, 6vw, 72px); }
.item-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
.item-pill {
  display: flex; align-items: center; gap: 12px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow-sm); padding: 13px 18px; font-weight: 500;
}
.item-pill::before { content: "●"; color: var(--yellow); font-size: .8rem; }

/* ---------- หน้าแบรนด์ ---------- */

.brand-logo-badge {
  width: 210px; max-width: 62vw; margin: 0 auto 18px;
  background: #fff; border-radius: 12px; padding: 14px 20px;
}
.brand-logo-badge img { width: 100%; height: auto; }

.brand-cats { padding: clamp(40px, 6vw, 72px) 0; }
.brand-cats .cat-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px;
}
.brand-cats .cat-grid a {
  display: block; background: #fff; border: 1px solid var(--line);
  border-radius: 12px; padding: 16px 18px; color: var(--ink);
  font-weight: 600; font-size: .98rem; box-shadow: var(--shadow-sm);
  transition: transform .16s ease, border-color .16s ease;
}
.brand-cats .cat-grid a:hover { transform: translateY(-2px); border-color: var(--blue); color: var(--blue); }
.brand-cats .cat-grid span { display: block; font-weight: 400; font-size: .86rem; color: var(--gray); margin-top: 3px; }

.brand-all { padding: 0 0 clamp(40px, 6vw, 72px); }
.brand-all .row { display: flex; flex-wrap: wrap; gap: 8px 10px; justify-content: center; }
.brand-all .row a {
  border: 1px solid var(--line); background: #fff; border-radius: 999px;
  padding: 7px 16px; font-size: .93rem; font-weight: 500; color: var(--ink);
}
.brand-all .row a:hover { border-color: var(--blue); color: var(--blue); }
.brand-all .row a[aria-current="page"] { background: var(--blue); border-color: var(--blue); color: #fff; }

@media (max-width: 880px) { .brand-cats .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .brand-cats .cat-grid { grid-template-columns: 1fr; } }

/* ---------- คู่มือประจำหมวด (เนื้อหาเชิงลึกในหน้าหมวดสินค้า) ---------- */

.cat-guide { background: var(--bg-soft); padding: clamp(40px, 6vw, 72px) 0; border-top: 1px solid var(--line); }
.cat-guide .guide {
  max-width: 830px; margin-inline: auto;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm); padding: clamp(24px, 4vw, 44px);
}
.cat-guide h2 { font-size: clamp(1.35rem, 2.5vw, 1.85rem); margin-bottom: .55em; }
.cat-guide h3 { font-size: 1.14rem; margin-top: 1.7em; margin-bottom: .5em; }
.cat-guide ul, .cat-guide ol { padding-left: 1.3em; margin: 0 0 1.1em; }
.cat-guide li { margin-bottom: .45em; }
.cat-guide .models { background: var(--bg-soft); border-radius: 12px; padding: 16px 20px; margin: 0 0 1.1em; }
.cat-guide .models p { margin: 0; font-size: .96rem; }

.cat-guide details { border-bottom: 1px solid var(--line); }
.cat-guide details:first-of-type { border-top: 1px solid var(--line); }
.cat-guide summary {
  cursor: pointer; list-style: none; position: relative;
  padding: 16px 34px 16px 0; font-weight: 600;
}
.cat-guide summary::-webkit-details-marker { display: none; }
.cat-guide summary::after {
  content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  color: var(--blue); font-size: 1.35rem; line-height: 1;
}
.cat-guide details[open] summary::after { content: "–"; }
.cat-guide details > p { padding: 0 0 16px; margin: 0; color: var(--ink-2); }

/* ---------- Dark CTA band (category pages) ---------- */

.cta-dark { background: var(--dark); color: #fff; text-align: center; padding: clamp(40px, 6vw, 72px) 0; }
.cta-dark h2 { color: #fff; }
.cta-dark p { color: #C7CBD1; max-width: 54ch; margin: 0 auto 24px; }
.cta-dark .hero-btns { margin: 0; }

/* ---------- Posts index ---------- */

.posts-hero {
  background: linear-gradient(135deg, #FDF6E3, #FAEFD2 45%, #FDF9EE);
  text-align: center; padding: clamp(48px, 7vw, 90px) 0;
}
.posts-hero h1 { margin-bottom: 8px; }
.posts-hero p { color: var(--gray); max-width: 60ch; margin-inline: auto; }

.post-search { padding: 26px 0 8px; }
.post-search input {
  width: 100%; max-width: 640px; display: block; margin-inline: auto;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 20px; font-family: var(--font); font-size: 1rem; color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.post-search input:focus { outline: 2px solid var(--blue); border-color: var(--blue); }

.posts-list { padding: clamp(26px, 4vw, 48px) 0 clamp(48px, 7vw, 80px); }
.posts-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }

.post-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); overflow: hidden; display: flex; flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease;
}
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.post-card .thumb { position: relative; }
.post-card .thumb img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.post-tag {
  position: absolute; top: 12px; left: 12px;
  background: var(--yellow); color: var(--ink);
  font-size: .78rem; font-weight: 600; border-radius: 6px; padding: 3px 10px;
}
.post-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.post-date { color: var(--gray-2); font-size: .85rem; display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.post-body h2, .post-body h3 { font-size: 1.12rem; font-weight: 700; margin: 0 0 8px; }
.post-body h2 a, .post-body h3 a { color: var(--ink); }
.post-body h2 a:hover, .post-body h3 a:hover { color: var(--blue); }
.post-body p { color: var(--gray); font-size: .93rem; margin: 0 0 14px; }
.post-body .link-more { margin-top: auto; font-size: .95rem; }

/* ---------- Article page ---------- */

.article-hero { background: linear-gradient(135deg, #FDF6E3, #FAEFD2 45%, #FDF9EE); padding: clamp(40px, 6vw, 70px) 0; }
.article-hero .meta { color: var(--gray); font-size: .9rem; margin-bottom: 10px; }
.article-hero h1 { max-width: 26ch; margin-inline: auto; text-align: center; font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
.article-hero .meta { text-align: center; }

.article-body { padding: clamp(36px, 5vw, 60px) 0; }
.article {
  max-width: 760px; margin-inline: auto;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm); padding: clamp(24px, 4vw, 48px);
}
.article img { border-radius: var(--radius-lg); margin: 1.4em auto; }
.article h2 { font-size: 1.5rem; margin-top: 1.6em; }
.article h3 { font-size: 1.18rem; margin-top: 1.3em; }
.article ul, .article ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.article li { margin-bottom: .45em; }
.article blockquote {
  margin: 1.5em 0; padding: 14px 22px;
  background: var(--cream); border-right: none; border-left: 4px solid var(--yellow);
  border-radius: 0 12px 12px 0; font-weight: 500;
}
.article .toc {
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 18px 24px; margin: 0 0 1.8em;
}
.article .toc p { font-weight: 700; margin-bottom: 8px; }
.article .toc ol { margin: 0; }
.article .toc a { font-weight: 500; }

.related { padding: 0 0 clamp(48px, 7vw, 80px); }
.related h2 { text-align: center; margin-bottom: 26px; }

/* ---------- Add LINE page ---------- */

.addline { text-align: center; padding: clamp(44px, 7vw, 80px) 0 clamp(56px, 8vw, 100px); }
.addline h1 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); }
.addline p { color: var(--gray); margin-bottom: 26px; }
.addline .qr {
  width: min(320px, 76vw); margin: 0 auto 26px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm); padding: 18px;
}

/* ---------- Privacy / plain page ---------- */

.plain { padding: clamp(36px, 5vw, 64px) 0 clamp(48px, 7vw, 88px); }
.plain-in {
  max-width: 820px; margin-inline: auto;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm); padding: clamp(24px, 4vw, 48px);
}
.plain-in h1 { font-size: clamp(1.5rem, 3vw, 2rem); }
.plain-in h2 { font-size: 1.3rem; margin-top: 1.6em; }

/* ---------- Utilities ---------- */

.mt-0 { margin-top: 0; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }

/* ---------- Motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; scroll-behavior: auto !important;
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 1020px) {
  .brands-grid { grid-template-columns: repeat(5, minmax(0,1fr)); }
  .reviews-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .samples-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .posts-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 8px var(--gut) 16px; box-shadow: var(--shadow-md);
  }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav a { padding: 12px 6px; border-bottom: 1px solid var(--bg-soft); }
  .head-line-btn { display: none; }

  .parts-grid { grid-template-columns: 1fr; }
  .shipping-grid { grid-template-columns: 1fr; }
  .shipping-photo { order: -1; }
  .contact-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; gap: 26px; }
}

@media (max-width: 620px) {
  body { font-size: 1rem; }
  .brand img { height: 36px; }
  .brands-grid { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 6px 12px; }
  .reviews-grid { grid-template-columns: 1fr; }
  .samples-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .posts-grid { grid-template-columns: 1fr; }
  .item-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 26px; }
  .hero-stats > div { min-width: 100%; }
}
