/* ============================================================
   K-OK — Minimal Dark theme (แนว trionn.com)
   ดำล้วน มินิมอล ตัวอักษรใหญ่มาก เส้นบาง แอนิเมชันตอนเลื่อน
   สีเอามาจากโลโก้ K-OK: แดง (หลัก) · ส้ม · น้ำเงิน · เหลืองสายฟ้า
   ============================================================ */
:root {
  --brand: #e0161c;
  --brand-dark: #b30f14;
  --brand-orange: #fc723e;
  --brand-blue: #2f63f4;
  --brand-yellow: #ffd60a;
  --bg: #0b0b0c;
  --surface: #121214;
  --surface-2: #1a1a1d;
  --media-bg: #1a1a1d;
  --line: rgba(255,255,255,.1);
  --line-strong: rgba(255,255,255,.28);
  --text: #ecebe7;
  --dim: #b9b8b3;
  --muted: #a3a29d;
  --success: #3ad08a;
  --font-display: 'Inter Tight', 'IBM Plex Sans Thai', sans-serif;
  --font-body: 'IBM Plex Sans Thai', 'Sarabun', sans-serif;
  --pill: 999px;
  --ease: cubic-bezier(.2,.7,.2,1);
  --wrap: 1360px;
  --gutter: clamp(18px, 4vw, 48px);
}

html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--brand); color: #fff; }
button, input, select, textarea { font: inherit; }
button, .filter-chip, .brand-chip, .topnav a { transition: .25s var(--ease); }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}
.eyebrow {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: .5px;
  color: var(--dim);
  margin-bottom: 18px;
}

/* ---------- Preloader ---------- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 26px;
  transition: transform .7s var(--ease), opacity .7s var(--ease);
}
.preloader.done { transform: translateY(-100%); opacity: .4; }
.pl-frame {
  width: 140px;
  height: 140px;
  border: 1px solid var(--line);
  position: relative;
  display: grid;
  place-items: center;
}
.pl-line {
  position: absolute;
  top: -1px;
  left: 0;
  height: 2px;
  background: var(--text);
  animation: plLine .65s var(--ease) forwards;
}
@keyframes plLine { from { width: 0; } to { width: 100%; } }
.pl-mark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 38px;
  letter-spacing: -2px;
  color: transparent;
  -webkit-text-stroke: 1px var(--text);
}
.pl-words { display: flex; gap: 22px; font-family: var(--font-display); font-size: 14px; letter-spacing: 1px; }
.pl-words span { color: var(--muted); animation: plWord .6s var(--ease) both; }
.pl-words span:nth-child(2) { animation-delay: .12s; }
.pl-words span:nth-child(3) { animation-delay: .24s; }
@keyframes plWord { from { color: var(--muted); } to { color: var(--text); } }
.pl-count { position: absolute; bottom: 40px; font-family: var(--font-display); font-size: 13px; color: var(--dim); }

/* ---------- แถบบนสุด ---------- */
.business-bar { background: var(--bg); border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.business-bar-inner {
  max-width: var(--wrap);
  margin: auto;
  padding: 8px var(--gutter);
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.business-bar strong { color: var(--text); font-weight: 600; }

/* ---------- Header ---------- */
header {
  padding: 0;
  background: rgba(11,11,12,.86);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  box-shadow: none;
}
.header-top {
  max-width: var(--wrap);
  min-height: 72px;
  margin: 0 auto;
  padding: 12px var(--gutter);
  gap: 24px;
  margin-bottom: 0;
}
.header-top img {
  height: 46px !important;
  max-width: 190px;
}
.header-actions { display: flex; align-items: center; gap: 18px; margin-left: auto; }
.header-phone { color: var(--text); font-size: 12px; line-height: 1.25; text-align: right; text-decoration: none; }
.header-phone span { display: block; color: var(--muted); font-size: 11px; }
.header-phone strong { font-family: var(--font-display); font-size: 15px; font-weight: 600; }
.cart-btn {
  min-height: 44px;
  padding: 8px 10px 8px 20px;
  border-radius: var(--pill);
  border: none;
  background: var(--text);
  color: #0b0b0c;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  box-shadow: none;
  gap: 10px;
}
.cart-btn:hover { background: #fff; transform: translateY(-1px); }
.cart-count { width: 26px; height: 26px; background: #0b0b0c; color: #fff; font-size: 12px; }

.topnav {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
  gap: 28px;
  background: transparent;
  border-top: 1px solid var(--line);
}
.topnav a {
  padding: 13px 0;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  color: var(--dim);
  border-bottom: 1px solid transparent;
}
.topnav a:hover, .topnav a.active { color: var(--text); border-bottom-color: var(--text); background: transparent; }

.search-box { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter) 14px; position: relative; }
.search-box input {
  min-height: 46px;
  padding: 10px 20px 10px 48px;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  background: transparent;
  color: var(--text);
  box-shadow: none;
}
.search-box::before {
  content: '⌕';
  position: absolute;
  left: calc(var(--gutter) + 18px);
  top: 9px;
  color: var(--muted);
  font-size: 24px;
  z-index: 1;
}
.search-box input::placeholder { color: var(--muted); }
.search-box input:focus { border-color: var(--line-strong); background: rgba(255,255,255,.03); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-bg::before {
  content: '';
  position: absolute;
  width: 60vw;
  height: 60vw;
  right: -14vw;
  top: -10vw;
  background: radial-gradient(circle, rgba(227,38,31,.16), transparent 62%);
}
.hero-mark {
  position: absolute;
  right: -3vw;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(170px, 28vw, 460px);
  line-height: .8;
  letter-spacing: -.06em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,.09);
  animation: heroFloat 9s ease-in-out infinite;
}
@keyframes heroFloat { 0%,100% { transform: translateY(-50%); } 50% { transform: translateY(-53%); } }
.hero-inner {
  max-width: var(--wrap);
  margin: auto;
  min-height: min(82vh, 780px);
  padding: clamp(40px, 7vw, 90px) var(--gutter) clamp(36px, 5vw, 60px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 56px;
  position: relative;
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(50px, 9.4vw, 150px);
  line-height: 1.08;
  letter-spacing: -.035em;
  color: var(--text);
  animation: heroIn 1s var(--ease) both .15s;
}
.hero-dot { color: var(--brand-yellow); }
@keyframes heroIn { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
.hero-bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; }
.hero-side { max-width: 440px; animation: heroIn 1s var(--ease) both .35s; }
.hero-badge { display: grid; grid-template-columns: 110px 1fr; border: 1px solid var(--line); margin-bottom: 22px; }
.hb-cell { padding: 16px 18px; font-family: var(--font-display); font-size: 12px; line-height: 1.5; color: var(--dim); }
.hb-cell strong { color: var(--text); font-weight: 600; font-size: 13px; }
.hb-icon { border-right: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--text); }
.hb-icon span { font-size: 11px; letter-spacing: 1px; color: var(--dim); }
.hero-sub { color: var(--dim); font-size: 15px; line-height: 1.85; }

.spin-btn {
  width: 132px;
  height: 132px;
  flex: 0 0 auto;
  border: none;
  background: transparent;
  color: var(--text);
  position: relative;
  cursor: pointer;
  border-radius: 50%;
}
.spin-btn svg { width: 100%; height: 100%; animation: spin 16s linear infinite; }
.spin-btn text { fill: var(--dim); font-family: var(--font-display); font-size: 11px; letter-spacing: 4.6px; font-weight: 500; }
.spin-arrow {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: grid;
  place-items: center;
  font-size: 18px;
  transition: .3s var(--ease);
}
.spin-btn:hover .spin-arrow { background: var(--text); color: #0b0b0c; border-color: var(--text); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- แถบตัวอักษรวิ่ง ---------- */
.marquee { overflow: hidden; border-bottom: 1px solid var(--line); padding: 22px 0; }
.marquee-track {
  display: flex;
  align-items: center;
  gap: 40px;
  width: max-content;
  animation: marquee 32s linear infinite;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(38px, 6.4vw, 96px);
  line-height: 1.15;
  letter-spacing: -.02em;
  white-space: nowrap;
}
.marquee-track span:nth-of-type(even) { color: transparent; -webkit-text-stroke: 1px var(--text); }
.marquee-track i { font-style: normal; color: var(--brand-yellow); font-size: .45em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Intro + ตัวเลข ---------- */
.intro { max-width: var(--wrap); margin: auto; padding: clamp(70px, 10vw, 140px) var(--gutter) clamp(40px, 6vw, 80px); }
.intro-text {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(26px, 3.6vw, 54px);
  line-height: 1.4;
  letter-spacing: -.01em;
  max-width: 1150px;
}
.intro-text .w { color: rgba(236,235,231,.16); transition: color .35s ease; }
.intro-text .w.lit { color: var(--text); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: clamp(60px, 8vw, 110px); }
.stat { border-top: 1px solid var(--line); padding-top: 22px; }
.stat-num {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(56px, 8vw, 124px);
  line-height: 1;
  letter-spacing: -.045em;
}
.stat-label { margin-top: 12px; font-size: 13px; color: var(--dim); }

/* ---------- หมวดสินค้าแบบแถวใหญ่ ---------- */
.cat-rows-section { max-width: var(--wrap); margin: auto; padding: clamp(40px, 6vw, 80px) var(--gutter); }
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(40px, 6vw, 92px);
  line-height: 1.1;
  letter-spacing: -.03em;
  margin-bottom: clamp(24px, 4vw, 48px);
}
.cat-rows { border-top: 1px solid var(--line); }
.cat-row {
  width: 100%;
  display: grid;
  grid-template-columns: 64px 1fr auto auto 48px;
  align-items: center;
  gap: 20px;
  padding: 26px 8px;
  background: none;
  border: none;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  position: relative;
  isolation: isolate;
}
.cat-row::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--surface);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform .45s var(--ease);
  z-index: -1;
}
.cat-row:hover::before { transform: scaleY(1); }
.cr-num { font-family: var(--font-display); font-size: 13px; color: var(--muted); }
.cr-name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(22px, 3vw, 42px);
  line-height: 1.25;
  letter-spacing: -.01em;
  transition: transform .45s var(--ease);
}
.cat-row:hover .cr-name { transform: translateX(14px); }
.cr-en { font-family: var(--font-display); font-size: 13px; color: var(--muted); }
.cr-count { font-size: 13px; color: var(--dim); white-space: nowrap; }
.cr-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: grid;
  place-items: center;
  transition: .45s var(--ease);
}
.cat-row:hover .cr-arrow { background: var(--brand); border-color: var(--brand); color: #fff; transform: rotate(-45deg); }
.cat-icon-grid { display: none !important; }   /* แทนที่ด้วยแถวหมวดสินค้าด้านบน */

/* ---------- แบนเนอร์ (จาก admin) ---------- */
.banner-carousel {
  max-width: calc(var(--wrap) - 2 * var(--gutter));
  margin: clamp(30px, 5vw, 60px) auto 0;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.banner-slide { aspect-ratio: 16/5.4; }
.banner-dots { bottom: 14px; }

/* ---------- จุดเด่น 3 ข้อ ---------- */
.trust-strip {
  max-width: var(--wrap);
  margin: clamp(30px, 5vw, 60px) auto 0;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  counter-reset: trust;
}
.trust-item {
  counter-increment: trust;
  display: block;
  padding: 22px 0 0;
  background: none;
  border: none;
  border-top: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
  min-height: 0;
}
.trust-item::before { content: '(0' counter(trust) ')'; display: block; font-family: var(--font-display); font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.trust-icon { display: none; }
.trust-item strong { display: block; font-family: var(--font-display); font-weight: 600; font-size: clamp(22px, 2.2vw, 30px); letter-spacing: -.01em; color: var(--text); margin-bottom: 8px; }
.trust-item span { color: var(--dim); font-size: 14px; line-height: 1.75; }

/* ---------- หัวข้อโซนสินค้า ---------- */
.catalog-heading {
  max-width: var(--wrap);
  margin: clamp(70px, 9vw, 130px) auto clamp(24px, 3vw, 36px);
  padding: 0 var(--gutter);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}
.catalog-heading .eyebrow { margin-bottom: 10px; }
.catalog-heading h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(40px, 6vw, 92px);
  line-height: 1.1;
  letter-spacing: -.03em;
  color: var(--text);
}
.catalog-heading-badge {
  padding: 10px 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--pill);
  color: var(--text);
  background: transparent;
  font-family: var(--font-display);
  font-size: 12px;
  white-space: nowrap;
}

.wholesale-bar { max-width: calc(var(--wrap) - 2 * var(--gutter)); margin: 16px auto 0; border-radius: var(--pill); padding: 10px 20px; background: #ffd21c; color: #111; font-family: var(--font-display); }

/* ---------- ฟิลเตอร์ ---------- */
.filter-bar, .brand-bar, .hscroll-section, .result-count, .grid { max-width: var(--wrap); margin-left: auto; margin-right: auto; }
.filter-bar, .brand-bar { padding: 10px var(--gutter); background: transparent; border: none; gap: 8px; }
.filter-chip, .brand-chip {
  padding: 8px 18px;
  border-radius: var(--pill);
  background: transparent;
  border: 1px solid var(--line);
  color: var(--dim);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
}
.filter-chip:hover, .brand-chip:hover { border-color: var(--line-strong); color: var(--text); }
.filter-chip.active { background: var(--text); border-color: var(--text); color: #0b0b0c; }
.brand-chip.active { background: var(--brand-blue); border-color: var(--brand-blue); color: #fff; }

/* ---------- Flash sale / ขายดี ---------- */
.hscroll-section {
  margin-top: 30px;
  padding: 26px 0 22px;
  background: transparent;
  border: none;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-radius: 0;
}
.hscroll-title { padding: 0 var(--gutter) 16px; font-family: var(--font-display); font-weight: 600; font-size: 22px; letter-spacing: -.01em; color: var(--text); }
.hscroll-track { padding: 0 var(--gutter) 6px; gap: 14px; }
.hs-card { width: 160px; }
.hs-img { width: 160px; height: 120px; border-radius: 12px; background: var(--surface-2); }
.hs-name { color: var(--dim); }
.hs-price { font-family: var(--font-display); color: var(--text); }
.hs-price-orig, .hs-sold { color: var(--muted); }
.result-count { padding: 30px var(--gutter) 12px; color: var(--muted); font-family: var(--font-display); }
#sortSelect {
  background: transparent !important;
  color: var(--text) !important;
  border: 1px solid var(--line) !important;
  border-radius: var(--pill) !important;
  padding: 8px 14px !important;
  font-family: var(--font-display) !important;
}
#sortSelect option { background: #121214; color: var(--text); }

/* ---------- การ์ดสินค้า ---------- */
.grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; padding: 0 var(--gutter) 90px; }
.card {
  position: relative;          /* ให้ป้ายหมวดสินค้า (absolute) อยู่ในการ์ดของตัวเอง */
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: none;
  transition: transform .4s var(--ease), border-color .4s var(--ease);
}
.card:hover { transform: translateY(-6px); border-color: var(--line-strong); box-shadow: none; }
.card-media { height: 200px !important; }
.card-media img { height: 200px !important; transition: transform .6s var(--ease); }
.card:hover .card-media img { transform: scale(1.05); }
.card-cat {
  top: 12px !important;
  left: 12px !important;
  padding: 4px 11px !important;
  border-radius: var(--pill) !important;
  background: rgba(11,11,12,.72) !important;
  border: 1px solid var(--line);
  font-family: var(--font-display);
  font-weight: 500 !important;
  font-size: 10px !important;
  backdrop-filter: blur(6px);
}
.card-body { padding: 16px 16px 18px; }
.card-pn { margin-bottom: 6px; color: var(--muted); font-size: 10px; letter-spacing: .4px; }
.card-brand { margin-bottom: 4px; color: var(--dim); font-family: var(--font-display); font-size: 12px; font-weight: 600; letter-spacing: .6px; }
.card-name { min-height: 44px; margin-bottom: 12px; color: var(--text); font-size: 14px; line-height: 1.55; }
.card-price { font-family: var(--font-display); font-weight: 600; font-size: 22px; letter-spacing: -.02em; color: var(--text); }
.card-price span { color: var(--muted); font-weight: 400; letter-spacing: 0; }
.card-price-original { color: var(--muted); }
.card-price-wholesale { color: var(--success); }
.add-btn {
  min-height: 44px;
  margin-top: 14px;
  border-radius: var(--pill);
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 13px;
}
.add-btn:hover { background: var(--text); border-color: var(--text); color: #0b0b0c; }
.loading, .empty { color: var(--muted); }
.card-price-ask { font-size: 16px; color: var(--dim); }
.ask-btn { display: flex; align-items: center; justify-content: center; text-decoration: none; text-align: center; font-size: 12px; }
.load-more-wrap { grid-column: 1 / -1; display: flex; justify-content: center; padding: 26px 0 10px; }
.load-more-btn {
  padding: 14px 34px;
  border-radius: var(--pill);
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
}
.load-more-btn:hover { background: var(--text); color: #0b0b0c; border-color: var(--text); }

/* ---------- ตะกร้า / ฟอร์ม (พื้นสว่างให้กรอกง่าย) ---------- */
.overlay { background: rgba(0,0,0,.65); backdrop-filter: blur(3px); }
.cart-drawer { left: auto; width: min(460px, 100%); height: 100%; max-height: none; border-radius: 0; box-shadow: none; transform: translateX(100%); transition: transform .5s var(--ease); }
.cart-drawer.show { transform: translateX(0); }
.drawer-handle { display: none; }
.drawer-title { padding: 24px 24px 16px; font-family: var(--font-display); font-weight: 600; font-size: 22px; letter-spacing: -.01em; color: #0b0b0c; border-bottom: 1px solid #eee; }
.cart-items, .cart-footer { padding-left: 24px; padding-right: 24px; }
.form-group input, .form-group textarea, .form-group select, .admin-field input, .admin-field select { border-color: #d6d6d6; border-radius: 10px; background: #fff; }
.submit-btn { border-radius: var(--pill); background: #0b0b0c; font-family: var(--font-display); font-weight: 600; }
.submit-btn:hover { background: var(--brand); }
.back-btn { border-radius: var(--pill); }
.info-modal { backdrop-filter: blur(3px); }
.info-modal-box { border-radius: 20px; box-shadow: none; }
.info-modal-box h2 { color: #0b0b0c; font-family: var(--font-display); font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 0; background: var(--bg); color: var(--dim); border-top: 1px solid var(--line); overflow: hidden; }
.footer-cta { max-width: var(--wrap); margin: auto; padding: clamp(70px, 10vw, 140px) var(--gutter) clamp(40px, 6vw, 70px); }
.footer-cta-link {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(40px, 7vw, 110px);
  line-height: 1.1;
  letter-spacing: -.035em;
  color: var(--text);
  text-decoration: none;
}
.footer-cta-link span { color: var(--brand); display: inline-block; transition: transform .45s var(--ease); }
.footer-cta-link:hover span { transform: translateX(16px); }
.footer-inner {
  max-width: var(--wrap);
  margin: auto;
  padding: 36px var(--gutter) 30px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 42px;
  border-top: 1px solid var(--line);
}
.footer-brand { color: var(--text); font-family: var(--font-display); font-weight: 600; font-size: 22px; letter-spacing: -.01em; margin-bottom: 8px; }
.footer-title { margin-bottom: 10px; color: var(--muted); font-family: var(--font-display); font-weight: 500; font-size: 13px; }
.footer-text, .footer-links { font-size: 13px; line-height: 1.9; }
.footer-links a { display: block; color: var(--text); text-decoration: none; cursor: pointer; }
.footer-links a:hover { color: var(--brand); }
.footer-giant {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 23vw;
  line-height: .78;
  letter-spacing: -.06em;
  text-align: center;
  white-space: nowrap;
  padding-top: 10px;
  background: linear-gradient(180deg, #2b2b2f 0%, #121214 75%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  user-select: none;
}
.footer-bottom { border-top: 1px solid var(--line); padding: 16px var(--gutter); text-align: center; font-size: 12px; color: var(--muted); }

/* ---------- แอนิเมชันโผล่ตอนเลื่อน (ทำงานเฉพาะเมื่อมี JS) ---------- */
html.js .reveal { opacity: 0; transform: translateY(40px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
html.js .reveal.in { opacity: 1; transform: none; }
.trust-item.reveal:nth-child(2), .stat.reveal:nth-child(2) { transition-delay: .1s; }
.trust-item.reveal:nth-child(3), .stat.reveal:nth-child(3) { transition-delay: .2s; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cat-row { grid-template-columns: 48px 1fr auto 44px; }
  .cr-en { display: none; }
}
@media (max-width: 760px) {
  .hero-bottom { flex-direction: column-reverse; align-items: flex-start; }
  .hero-side { max-width: none; }
  .stats, .trust-strip { grid-template-columns: 1fr; gap: 18px; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 680px) {
  .business-bar-inner { justify-content: center; }
  .business-bar-inner span:last-child, .header-phone { display: none; }
  .header-top { min-height: 60px; padding-top: 8px; padding-bottom: 8px; }
  .header-top img { height: 38px !important; max-width: 150px; }
  .cart-btn { min-height: 40px; padding: 6px 8px 6px 14px; font-size: 13px; }
  .topnav { gap: 20px; overflow-x: auto; }
  .topnav a { font-size: 12px; white-space: nowrap; }
  .hero-inner { min-height: 0; gap: 40px; }
  .hero-mark { font-size: 54vw; right: -14vw; }
  .spin-btn { width: 110px; height: 110px; }
  .marquee { padding: 16px 0; }
  .cat-row { grid-template-columns: 34px 1fr 40px; gap: 12px; padding: 20px 4px; }
  .cr-count { display: none; }
  .cr-arrow { width: 38px; height: 38px; }
  .catalog-heading { align-items: flex-start; flex-direction: column; }
  .catalog-heading-badge { display: none; }
  .banner-carousel { border-radius: 14px; }
  .banner-slide { aspect-ratio: 16/8; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding-bottom: 60px; }
  .card { border-radius: 12px; }
  .card:hover { transform: none; }
  .card-media, .card-media img { height: 140px !important; }
  .card-body { padding: 11px 11px 13px; }
  .card-name { min-height: 38px; font-size: 12px; line-height: 1.5; }
  .card-price { font-size: 17px; }
  .add-btn { min-height: 38px; margin-top: 10px; font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation: none !important; }
  html.js .reveal { opacity: 1; transform: none; }
}

/* ---------- หน้าร้านใหม่: สีและควันอยู่หลัง Hero, โซนซื้ออ่านง่าย ---------- */
.business-bar { font-size: 14px; }
.header-phone, .header-phone span { font-size: 14px; }
.header-phone strong { font-size: 19px; }
.topnav a { font-size: 16px; padding: 14px 0; }
.topnav { scrollbar-width: none; }
.topnav::-webkit-scrollbar { display: none; }
.cart-btn { min-height: 48px; font-size: 16px; }
.search-box input { min-height: 54px; font-size: 17px; background: #1c1c20; border-color: #55555d; }
.search-box input::placeholder { color: #b9b8c1; }
.search-box::before { top: 12px; color: #ffd60a; }
.hero { isolation: isolate; background: #101014; }
.hero-bg { z-index: -1; overflow: hidden; }
.hero-bg::before, .hero-bg::after {
  content: ''; position: absolute; width: min(80vw, 1100px); height: min(80vw, 1100px);
  border-radius: 46% 54% 60% 40%; filter: blur(44px); opacity: .72;
  animation: kokSmoke 5s ease-in-out both;
}
.hero-bg::before {
  right: -20%; top: -35%;
  background: radial-gradient(ellipse at 42% 46%, rgba(252,114,62,.5), rgba(224,22,28,.2) 38%, transparent 64%);
}
.hero-bg::after {
  right: -8%; bottom: -65%;
  background: radial-gradient(ellipse at 55% 45%, rgba(47,99,244,.46), rgba(47,99,244,.12) 42%, transparent 66%);
  animation-direction: reverse;
}
@keyframes kokSmoke {
  from { transform: translate3d(0,0,0) rotate(-12deg) scale(.92); }
  to { transform: translate3d(-4%,6%,0) rotate(12deg) scale(1.08); }
}
.hero-mark { color: rgba(255,255,255,.015); -webkit-text-stroke-color: rgba(255,255,255,.12); animation: none; }
.hero-inner { min-height: 690px; padding-top: 62px; padding-bottom: 40px; gap: 38px; }
.hero-copy { position: relative; }
.hero-kicker { display: flex; align-items: center; gap: 12px; color: #d5d4d0; font-size: 16px; margin-bottom: 22px; }
.hero-kicker span { color: var(--brand-yellow); font-size: 26px; }
.hero-title { font-size: clamp(52px, 8.8vw, 132px); line-height: 1.22; font-weight: 600; letter-spacing: -.045em; }
.hero-accent { color: #ff956a; }
.hero-lead { font-size: clamp(18px, 2vw, 25px); color: #d5d4d0; margin-top: 24px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.hero-shop, .hero-search {
  min-height: 58px; padding: 14px 26px; border-radius: 14px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: space-between; gap: 30px;
  font-size: 18px; font-weight: 600; border: 1px solid #66666e;
}
.hero-shop { background: var(--brand-yellow); color: #17160c; border-color: var(--brand-yellow); }
.hero-shop:hover { background: #ffe568; border-color: #ffe568; transform: translateY(-2px); }
.hero-search { background: #202026; color: #fff; }
.hero-search:hover { background: #303037; border-color: #a3a3ad; }
.hero-shop span, .hero-search span { font-size: 25px; }
.hero-bottom { align-items: center; }
.spin-btn { display: none; }
.hero-side { max-width: none; width: 100%; display: flex; align-items: center; gap: 32px; border-top: 1px solid rgba(255,255,255,.18); padding-top: 24px; }
.hero-badge { flex: 0 0 280px; margin: 0; border: none; grid-template-columns: 75px 1fr; }
.hb-cell { font-size: 15px; padding: 8px 12px; }
.hb-cell strong { font-size: 17px; }
.hb-icon { border-right-color: rgba(255,255,255,.2); }
.hero-sub { max-width: 580px; font-size: 16px; line-height: 1.8; }
.intro { padding-top: 72px; }
.marquee { display: none; }
.intro-text .w { color: var(--text); }
.intro-text .w.lit { color: var(--text); }
.stat { border-top-color: #4d4d53; }
.stat:nth-child(1) .stat-num { color: #ff956a; }
.stat:nth-child(2) .stat-num { color: #8aabff; }
.stat:nth-child(3) .stat-num { color: #ffd60a; }
.stat-label { font-size: 16px; }
.cat-row:hover::before { background: #202027; }
.cr-num { color: #ff956a; font-size: 16px; }
.cr-count { font-size: 16px; }
.trust-item span, .footer-text, .footer-links { font-size: 16px; }
.eyebrow, .footer-title { font-size: 15px; }
.filter-chip, .brand-chip { min-height: 48px; font-size: 16px; display: inline-flex; align-items: center; border-color: #4b4b52; }
.result-count, #sortSelect { font-size: 16px; }
.grid { gap: 20px; scroll-margin-top: 220px; }
.card { background: #18181c; border-color: #39393f; border-radius: 18px; }
.card:hover { transform: translateY(-3px); border-color: #85858e; }
.card-pn { color: #b9b8c1; font-size: 14px; }
.card-brand { font-size: 15px; color: #8aabff; }
.card-name { font-size: 17px; line-height: 1.7; min-height: 58px; }
.card-price { font-size: 27px; color: #ffd60a; }
.card-price span { color: #b9b8c1; }
.card-price-ask { font-size: 19px; color: #ecebe7; }
.card-detail-btn { min-height: 44px; font-size: 15px; line-height: 1.6; color: #ffad89; white-space: normal; }
.add-btn { min-height: 50px; font-size: 16px; font-weight: 600; background: #ffd60a; border-color: #ffd60a; color: #17160c; border-radius: 12px; }
.add-btn:hover { background: #ffe568; border-color: #ffe568; color: #17160c; }
.ask-btn { min-height: 50px; font-size: 16px; background: transparent; color: #ecebe7; border-color: #72727c; }
.ask-btn:hover { background: #303037; color: #fff; border-color: #a3a3ad; }
.load-more-btn { min-height: 52px; font-size: 17px; }
.pd-table { font-size: 16px; }
.pd-warranty, .pd-note { font-size: 16px; line-height: 1.8; }
.pd-buy .add-btn { background: #ffd60a; color: #17160c; border-color: #ffd60a; }
.pd-buy .ask-btn { color: #18181c; background: #fff; border-color: #777; }
/* Gentle entrance; information stays readable even if an observer fails. */
html.js .reveal { opacity: 1; transform: none; }
html.js .reveal.in { animation: kokArrive .65s var(--ease) both; }
@keyframes kokArrive { from { transform: translateY(20px); } to { transform: none; } }
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) and (min-width: 761px) {
    .hero-mark { animation: kokScrollMark linear both; animation-timeline: scroll(root block); animation-range: 0px 800px; }
    .hero-bg::before, .hero-bg::after { animation: kokSmoke linear both; animation-timeline: scroll(root block); animation-range: 0px 800px; }
    @keyframes kokScrollMark { from { transform: translateY(-50%); } to { transform: translateY(-30%); } }
  }
}
@media (max-width: 1000px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero-title { font-size: clamp(52px, 8.8vw, 100px); }
}
@media (max-width: 760px) {
  .hero-inner { min-height: 0; padding-top: 36px; gap: 30px; }
  .hero-bottom { display: block; }
  .hero-side { flex-direction: column; align-items: flex-start; gap: 16px; }
  .hero-badge { flex: none; }
  .hero-bg::before, .hero-bg::after { width: 650px; height: 650px; filter: blur(30px); animation: none; opacity: .5; }
  .hero-bg::before { right: -400px; top: -130px; }
  .hero-bg::after { right: -300px; bottom: -460px; }
  .hero-title { font-size: clamp(42px, 8.7vw, 64px); letter-spacing: -.04em; }
  .hero-kicker { font-size: 15px; margin-bottom: 16px; }
  .hero-actions { gap: 10px; }
  .hero-shop, .hero-search { font-size: 16px; padding: 12px 18px; min-height: 52px; gap: 18px; }
  .hero-sub { font-size: 16px; }
  .intro { padding-top: 48px; }
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 38px; }
  .stat-num { font-size: clamp(32px, 8vw, 56px); }
  .stat-label { font-size: 14px; }
}
@media (max-width: 680px) {
  .topnav { gap: 22px; }
  .topnav a { font-size: 16px; }
  .cart-btn { min-height: 46px; font-size: 15px; }
  .search-box input { font-size: 16px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .card-body { padding: 12px; }
  .card-name { font-size: 16px; min-height: 54px; }
  .card-price { font-size: 24px; }
  .card-pn { font-size: 13px; }
  .card-brand { font-size: 14px; }
  .card-detail-btn { font-size: 14px; }
  .add-btn, .ask-btn { font-size: 15px; min-height: 48px; }
}
@media (max-width: 420px) {
  .grid { grid-template-columns: minmax(0, 1fr); }
  .card-media, .card-media img { height: 260px !important; }
  .card-name { font-size: 18px; }
  .hero-actions { flex-direction: column; }
  .hero-shop, .hero-search { width: 100%; }
  .hero-badge { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-bg::before, .hero-bg::after, .hero-mark, html.js .reveal.in { animation: none !important; }
  html.js .reveal, html.js .reveal.in { opacity: 1; transform: none; }
}

/* Brand-first storefront: dark opening, light shopping area. */
.header-top img { height: 66px !important; max-width: 210px; object-fit: contain; }
.hero-title { font-size: clamp(48px, 6.2vw, 92px); line-height: 1.25; letter-spacing: -.025em; }
.hero-brand-name { font-family: var(--font-display); font-size: 1.32em; font-weight: 800; color: #fff; }
.hero-brand-dash { color: var(--brand); }
.hero-accent { color: #fff; }
.hero-kicker span { color: #ff5960; }
.hero-bg::before { background: radial-gradient(ellipse at 42% 46%, rgba(224,22,28,.38), rgba(224,22,28,.1) 38%, transparent 64%); }
.hero-bg::after { opacity: .3; }
.stat:nth-child(n) .stat-num { color: #ecebe7; }
.cr-num { color: #ff5960; }
.catalog-store {
  --text: #202024; --dim: #50505a; --muted: #62626c; --surface: #fff; --surface-2: #eeeef1;
  --line: #dcdce1; --line-strong: #a4a4ae; --success: #176236;
  background: #f6f6f8; color: var(--text); padding-top: 12px;
}
.catalog-store .catalog-heading { padding-top: 48px; }
.catalog-store .catalog-heading-badge { color: #a81018; background: #fff; border-color: #ddd; }
.catalog-store .filter-chip, .catalog-store .brand-chip { color: #45454e; background: #fff; border-color: #bdbdc6; }
.catalog-store .filter-chip.active, .catalog-store .brand-chip.active { color: #fff; background: #bf121a; border-color: #bf121a; }
.catalog-store .filter-chip:hover, .catalog-store .brand-chip:hover { border-color: #bf121a; }
.catalog-store #sortSelect, .catalog-store #sortSelect option { background: #fff !important; color: #202024 !important; }
.catalog-store #sortSelect { font-size: 16px !important; min-height: 48px; }
.catalog-store .card { background: #fff; border-color: #dcdce1; overflow: hidden; }
.catalog-store .card:hover { border-color: #9999a3; box-shadow: 0 8px 24px rgba(20,20,30,.06); }
.catalog-store .card-media { height: auto !important; aspect-ratio: 1; background: #eeeef1; }
.catalog-store .card-media img { width: 100%; height: 100% !important; object-fit: contain; }
.catalog-store .card-cat { background: #fff !important; color: #4d4d56 !important; font-size: 12px !important; border-color: #dcdce1; }
.catalog-store .card-pn { color: #61616b; }
.catalog-store .card-brand { color: #44444e; }
.catalog-store .card-name { color: #202024; -webkit-line-clamp: 3; }
.catalog-store .card-price { color: #b71018; }
.catalog-store .card-price span { color: #61616b; }
.catalog-store .card-price-ask { color: #33333d; }
.catalog-store .card-detail-btn { color: #9d121a; }
.catalog-store .ask-btn { color: #272730; border-color: #9999a3; background: #fff; }
.catalog-store .ask-btn:hover { background: #f0f0f3; }
.catalog-store .load-more-btn { color: #272730; background: #fff; border-color: #9999a3; }
.catalog-store .hs-img { width: 190px; height: 190px; object-fit: contain; }
.catalog-store .hs-card { width: 190px; }
.catalog-store .hs-name { font-size: 16px; color: #33333d; }
.catalog-store .hs-price { color: #b71018; font-size: 23px; }
.shop-service { background: #fff; color: #202024; padding: 56px var(--gutter); border-top: 1px solid #dcdce1; }
.shop-service-heading, .service-grid { max-width: calc(var(--wrap) - 2 * var(--gutter)); margin: 0 auto; }
.shop-service .eyebrow { color: #a81018; }
.shop-service h2 { font-size: clamp(26px, 3vw, 40px); line-height: 1.5; }
.shop-service p { font-size: 17px; color: #50505a; line-height: 1.9; }
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin-top: 30px; }
.service-grid article { border-top: 3px solid #bf121a; padding-top: 20px; }
.service-grid h3 { font-size: 20px; margin-bottom: 12px; }
.service-grid a, .service-grid button { display: inline-flex; align-items: center; min-height: 48px; font: inherit; font-weight: 600; color: #a81018; background: transparent; border: 0; cursor: pointer; }
.service-grid .service-phone { font-size: 27px; color: #202024; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid #2f63f4; outline-offset: 4px; }
@media (max-width: 760px) {
  .hero-title { font-size: clamp(36px, 7.8vw, 58px); }
  .service-grid { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 680px) {
  .header-top img { height: 48px !important; max-width: 165px; }
  .catalog-store .catalog-heading { padding-top: 30px; }
}

/* User-selected theme; dialogs retain their readable white form surfaces. */
.theme-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: var(--pill); color: var(--text); background: var(--surface); cursor: pointer; font-size: 15px; }
.theme-toggle-icon { font-size: 24px; line-height: 1; }
html[data-theme="light"] {
  --bg: #f6f6f8; --surface: #fff; --surface-2: #eeeef1; --media-bg: #eeeef1;
  --text: #202024; --dim: #50505a; --muted: #62626c; --line: #dcdce1; --line-strong: #a4a4ae; --success: #176236;
}
html[data-theme="light"] header { background: rgba(255,255,255,.96); }
html[data-theme="light"] .hero { background: #f6f6f8; }
html[data-theme="light"] .hero-title, html[data-theme="light"] .hero-brand-name, html[data-theme="light"] .hero-accent { color: #202024; }
html[data-theme="light"] .hero-kicker, html[data-theme="light"] .hero-lead { color: #50505a; }
html[data-theme="light"] .hero-mark { color: rgba(224,22,28,.025); -webkit-text-stroke-color: rgba(224,22,28,.12); }
html[data-theme="light"] .hero-bg::before { opacity: .25; }
html[data-theme="light"] .hero-bg::after { opacity: .1; }
html[data-theme="light"] .hero-search { background: #fff; color: #202024; border-color: #a4a4ae; }
html[data-theme="light"] .hero-side, html[data-theme="light"] .hb-icon { border-color: #dcdce1; }
html[data-theme="light"] .search-box input { background: #fff; color: #202024; border-color: #a4a4ae; }
html[data-theme="light"] .search-box input::placeholder { color: #62626c; }
html[data-theme="light"] .search-box::before { color: #b71018; }
html[data-theme="light"] .cart-btn { background: #202024; color: #fff; }
html[data-theme="light"] .stat:nth-child(n) .stat-num { color: #202024; }
html[data-theme="light"] .cat-row:hover::before { background: #eaeaf0; }
html[data-theme="light"] .cr-num { color: #b71018; }
html[data-theme="dark"] .catalog-store {
  --text: #ecebe7; --dim: #b9b8b3; --muted: #a3a29d; --surface: #121214; --surface-2: #1a1a1d;
  --line: #39393f; --line-strong: #85858e; --success: #3ad08a;
  background: #0b0b0c;
}
html[data-theme="dark"] .catalog-store .card { background: #18181c; border-color: #39393f; }
html[data-theme="dark"] .catalog-store .card-media { background: #eeeef1; }
html[data-theme="dark"] .catalog-store .card-name, html[data-theme="dark"] .catalog-store .card-price-ask, html[data-theme="dark"] .catalog-store .hs-name { color: #ecebe7; }
html[data-theme="dark"] .catalog-store .card-pn, html[data-theme="dark"] .catalog-store .card-brand, html[data-theme="dark"] .catalog-store .card-price span { color: #b9b8b3; }
html[data-theme="dark"] .catalog-store .card-price, html[data-theme="dark"] .catalog-store .hs-price { color: #ff7379; }
html[data-theme="dark"] .catalog-store .card-detail-btn { color: #ff9297; }
html[data-theme="dark"] .catalog-store .filter-chip, html[data-theme="dark"] .catalog-store .brand-chip, html[data-theme="dark"] .catalog-store .ask-btn, html[data-theme="dark"] .catalog-store .load-more-btn, html[data-theme="dark"] .catalog-store .catalog-heading-badge { color: #ecebe7; background: #18181c; border-color: #66666e; }
html[data-theme="dark"] .catalog-store .filter-chip.active, html[data-theme="dark"] .catalog-store .brand-chip.active { background: #bf121a; color: #fff; border-color: #bf121a; }
html[data-theme="dark"] .catalog-store #sortSelect, html[data-theme="dark"] .catalog-store #sortSelect option { background: #18181c !important; color: #ecebe7 !important; }
html[data-theme="dark"] .shop-service { background: #121214; color: #ecebe7; border-color: #39393f; }
html[data-theme="dark"] .shop-service p { color: #b9b8b3; }
html[data-theme="dark"] .shop-service .eyebrow, html[data-theme="dark"] .service-grid a, html[data-theme="dark"] .service-grid button { color: #ff9297; }
html[data-theme="dark"] .service-grid .service-phone { color: #ecebe7; }
@media (max-width: 680px) {
  .header-top { gap: 8px; }
  .header-actions { gap: 8px; }
  .header-top img { max-width: 120px; }
  .theme-toggle { width: 44px; min-height: 46px; padding: 8px; justify-content: center; flex-shrink: 0; }
  .theme-toggle-label { display: none; }
}

/* ---------- ช่องโลโก้ยี่ห้อรถ: ดำ / เลือกแล้วขาว ทั้งสองธีม ---------- */
#brandBar {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  gap: 12px;
  padding-top: 16px;
  padding-bottom: 20px;
  overflow: visible;
}
#brandBar .brand-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-width: 0;
  aspect-ratio: 1;
  padding: 12px 8px;
  border-radius: 14px;
  background: #111113;
  border: 2px solid #36363c;
  color: #f4f4f6;
  font-family: var(--font-body);
  cursor: pointer;
  white-space: normal;
}
#brandBar .brand-tile:hover { border-color: #9999a2; }
#brandBar .brand-tile.active {
  background: #fff;
  color: #111113;
  border-color: #fff;
  box-shadow: 0 0 0 1px #b6b6bf, 0 6px 18px rgba(0,0,0,.16);
}
#brandBar .brand-tile:focus-visible { outline: 3px solid #e0161c; outline-offset: 4px; }
.brand-tile-mark { display: flex; align-items: center; justify-content: center; width: 100%; height: 58px; }
.brand-tile-mark img { width: 100%; height: 100%; object-fit: contain; filter: grayscale(1) invert(1) brightness(2.5) contrast(1.2); }
#brandBar .brand-tile.active .brand-tile-mark img { filter: grayscale(1) contrast(1.2); }
.brand-tile-mark svg { width: 42px; height: 42px; }
.brand-tile-fallback { font-family: var(--font-display); font-size: 20px; font-weight: 700; overflow-wrap: anywhere; }
.brand-tile-label { font-size: 13px; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
@media (max-width: 680px) {
  #brandBar { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  #brandBar .brand-tile { border-radius: 12px; padding: 10px 6px; }
  .brand-tile-mark { height: 48px; }
  .brand-tile-label { font-size: 12px; }
}

/* หมวดย่อยแสดงเมื่อเลือกหมวดหลัก; ปุ่มขึ้นบรรทัดใหม่และใช้ร่วมกับยี่ห้อ/ค้นหา */
.subcategory-section { max-width: var(--wrap); margin: 8px auto 12px; padding: 12px var(--gutter); }
.subcategory-section[hidden] { display: none; }
.subcategory-section h3 { margin: 0 0 12px; font: 600 16px/1.5 var(--font-body); color: var(--text); }
.subcategory-bar { display: flex; flex-wrap: wrap; gap: 8px; }
.subcategory-chip { min-height: 44px; padding: 10px 14px; border: 1px solid #707078; border-radius: 10px; background: transparent; color: var(--text); font: 500 14px/1.4 var(--font-body); text-align: left; cursor: pointer; }
.subcategory-chip:hover { border-color: #e0161c; }
.subcategory-chip[aria-pressed="true"] { background: #bf121a; border-color: #bf121a; color: #fff; }
.subcategory-chip:focus-visible { outline: 3px solid #e0161c; outline-offset: 3px; }
@media (max-width: 680px) { .subcategory-chip { padding: 10px 12px; font-size: 14px; max-width: 100%; } }

/* Owner-approved product hero and compact storefront, 15 Oct 2026. */
body{max-width:1380px;margin:20px auto;background:var(--bg);border:1px solid #53616a;border-radius:16px;overflow-x:clip}
.business-bar,.marquee,.intro,.cat-rows-section,.trust-strip{display:none}header{position:relative;border-radius:16px 16px 0 0;background:var(--bg)}.header-top{min-height:76px;display:flex;align-items:center;padding:8px 36px;gap:40px;flex-wrap:nowrap}.header-top img{height:54px!important;width:112px;object-fit:contain;max-width:112px}.header-phone{display:none}.header-actions{gap:14px}.topnav{display:flex;padding:0;margin:0;border:0;gap:22px;flex-wrap:nowrap;overflow:visible}.topnav a{font-family:var(--font-body);font-size:14px;white-space:nowrap;cursor:pointer}.theme-toggle{padding:8px;min-width:44px;min-height:44px;border:0;background:none}.theme-toggle-label{display:none}.cart-btn{padding:8px 12px;background:transparent!important;color:var(--text)!important;border:1px solid var(--line);font-family:var(--font-body);white-space:nowrap}.kok-menu-toggle{display:none}
.kok-hero{background:radial-gradient(ellipse at 100% 12%,#e8391765,transparent 36%),radial-gradient(ellipse at 77% 68%,#8f171726,transparent 48%);border:0}.kok-hero-inner{max-width:var(--wrap);margin:auto;padding:42px 36px 22px;display:grid;grid-template-columns:1.08fr 1fr;gap:22px;align-items:center}.kok-kicker{font:500 13px var(--font-display);letter-spacing:.13em;margin:0 0 20px;color:var(--text)}.kok-hero-copy h1{font-family:var(--font-body);font-size:clamp(44px,5.5vw,76px);font-weight:700;line-height:1.13;letter-spacing:-.04em;margin:0 0 18px;color:var(--text)}.kok-lead{font:500 24px/1.5 var(--font-body);margin:0 0 22px;color:var(--text)}.kok-hero-search{padding:4px;display:flex;gap:8px;border:1px solid #7c8a95;border-radius:40px;width:100%;background:#0a1014aa}.kok-hero-search input{width:100%;min-width:0;padding:10px 10px 10px 40px;min-height:44px;border:0;background:transparent;border-radius:0;font:400 16px var(--font-body);color:var(--text)}.kok-hero-search:before{left:14px;top:10px;font-size:23px;color:var(--dim)}.kok-search-submit{white-space:nowrap;min-height:44px;background:#ffdf00;color:#080a0b;border:0;border-radius:32px;padding:10px 22px;font:700 15px var(--font-body)}.kok-promo{position:relative;min-width:0;height:355px}.kok-stage{position:relative;height:100%;overflow:hidden;touch-action:pan-y}.kok-track{display:flex;height:100%;transition:transform .75s cubic-bezier(.2,.75,.2,1)}.kok-slide{position:relative;flex:0 0 100%;height:100%;min-width:0;margin:0}.kok-slide img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;padding:8px 25px;filter:drop-shadow(0 18px 20px #000b)}.kok-slide[data-pn="OSTC-1003"] img{transform:rotate(57deg) scale(1.08)}.kok-controls{position:absolute;right:0;top:0;display:flex;gap:6px}.kok-controls button{width:44px;height:44px;border:1px solid #ffffff30;border-radius:50%;color:var(--text);background:#03060855;font-size:18px}.kok-hero-caption{position:absolute;bottom:0;left:25px;color:var(--dim);font:11px/1.5 var(--font-body)}.kok-drive{position:absolute;right:0;bottom:10px;text-align:right;color:var(--muted);font:11px/1.5 var(--font-display);letter-spacing:.12em}.kok-dots{position:absolute;left:25px;bottom:-35px;display:flex;gap:6px}.kok-dots button{position:relative;width:36px;height:36px;background:none;border:0;border-radius:8px}.kok-dots button:before{content:'';position:absolute;inset:16px 6px;background:#5c6871;border-radius:8px}.kok-dots button[aria-pressed=true]:before{background:#e0161c}.kok-trust{grid-column:1/-1;display:flex;max-width:840px;width:100%;margin:18px 0 0;padding-top:18px}.kok-trust>div{display:flex;align-items:center;gap:18px;padding:0 26px;border-right:1px solid #5c6972;flex:1}.kok-trust>div:first-child{padding-left:0}.kok-trust>div:last-child{border:0}.kok-trust strong{font:900 54px/1 var(--font-display);color:#ffdf00}.kok-trust b{display:block;font:600 18px var(--font-body)}.kok-trust small{display:block;color:var(--dim);font:13px var(--font-body)}.kok-trust svg{width:44px;height:44px;flex-shrink:0}.kok-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.kok-stage:focus-visible,.kok-controls button:focus-visible,.kok-dots button:focus-visible,.kok-search-submit:focus-visible{outline:3px solid #ffdf00;outline-offset:3px}
.kok-catalog{margin:28px 18px 20px;border:1px solid #44525b;border-radius:12px;overflow:hidden;background:var(--bg)!important}.kok-browser-line{display:flex;align-items:center;gap:24px;padding:10px 22px;font:11px var(--font-display);letter-spacing:.03em;color:var(--dim);background:linear-gradient(#13191d,#090d0f);border-bottom:1px solid #35424a}.kok-browser-line small{margin-left:auto;font-size:9px;letter-spacing:.12em}.kok-catalog .catalog-heading{padding:24px var(--gutter) 12px}.kok-catalog .catalog-heading h2{font:700 clamp(26px,3.5vw,42px)/1.3 var(--font-body);letter-spacing:-.025em}.kok-catalog .catalog-heading .eyebrow{display:none}.kok-catalog .catalog-heading-badge{border:0!important;background:none!important;color:var(--dim)!important}.kok-catalog .cat-icon-grid{display:none}#brandBar{grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:12px;padding-top:8px}#brandBar .brand-tile{aspect-ratio:auto;height:94px;border-radius:8px;border-width:1px;background:#080b0d;color:#fff;gap:4px}.brand-tile-mark{height:50px}#brandBar .brand-tile-mark img{filter:grayscale(1) invert(1) brightness(2.5) contrast(1.2)}#brandBar .brand-tile.active .brand-tile-mark img{filter:grayscale(1) contrast(1.2)}.brand-tile-label{font-family:var(--font-display);font-size:12px}.kok-catalog #catBar{padding-top:12px;border-top:1px solid var(--line)}.kok-catalog #catBar .filter-chip.active{background:#df1019;color:white;border-color:#df1019}.kok-catalog #productGrid{grid-template-columns:repeat(3,minmax(0,1fr))}.kok-catalog .card{border-radius:9px;background:var(--bg)!important;border-color:#394850!important}.kok-catalog .card-body{padding:18px}.kok-catalog .card-name{font-size:17px}.kok-catalog .card-detail-btn{border:1px solid #667681;border-radius:22px;color:var(--text)!important;padding:8px 12px;min-height:44px}.footer-cta{padding-top:42px;padding-bottom:35px}.footer-cta-link{font-size:clamp(32px,5vw,60px)}.footer-giant{display:none}.shop-service{padding-top:35px;padding-bottom:35px}
html[data-theme=light] .kok-hero{background:radial-gradient(ellipse at 100% 12%,#e839172e,transparent 45%)}html[data-theme=light] .kok-hero-search,html[data-theme=light] .kok-hero-search input{background:#fff}html[data-theme=light] .kok-browser-line{background:#eef0f2}html[data-theme=light] .kok-trust strong{color:#9a6a00}html[data-theme=light] .kok-controls button{background:#fff;border-color:#8c969e}
@media(max-width:980px){body{margin:10px 8px}.header-top{gap:18px;padding-left:20px;padding-right:20px}.topnav{gap:13px}.topnav a{font-size:12px}.kok-hero-inner{padding-left:24px;padding-right:24px}.kok-lead{font-size:20px}.kok-trust>div{padding:0 16px}.kok-trust b{font-size:16px}}
@media(max-width:760px){body{border-radius:12px}.header-top{min-height:60px;padding:5px 16px;gap:12px}.header-top img{width:90px;max-width:90px;height:48px!important}.header-actions{gap:7px}.theme-toggle{width:40px;min-width:40px}.cart-btn{font-size:12px;gap:5px;padding:8px}.kok-menu-toggle{display:block;min-width:44px;min-height:44px;padding:8px;color:var(--text);border:0;background:none;font-size:22px;order:3}.topnav{display:none;position:absolute;top:100%;left:0;right:0;background:var(--bg);border-bottom:1px solid var(--line);padding:16px;z-index:30;flex-wrap:wrap;gap:16px}.topnav.kok-open{display:flex}.topnav a{font-size:15px;padding:6px}.kok-hero-inner{display:flex;flex-direction:column;align-items:stretch;gap:16px;padding:26px 18px 20px}.kok-kicker{font-size:11px;margin-bottom:12px}.kok-hero-copy h1{font-size:43px}.kok-lead{font-size:18px;margin-bottom:18px}.kok-hero-search{gap:0}.kok-hero-search input{font-size:12px;padding-left:32px}.kok-search-submit{font-size:12px;padding:9px 14px}.kok-promo{height:250px}.kok-controls{top:0}.kok-controls button{width:40px;height:40px}.kok-slide img{padding:18px}.kok-drive{font-size:9px}.kok-hero-caption{font-size:10px;left:8px}.kok-dots{left:6px}.kok-trust{margin-top:20px;max-width:none}.kok-trust>div{flex-direction:column;text-align:center;gap:8px;padding:0 10px}.kok-trust>div:first-child{padding-left:0}.kok-trust strong{font-size:35px}.kok-trust b{font-size:12px}.kok-trust small{font-size:10px}.kok-trust svg{width:32px;height:32px}.kok-catalog{margin:20px 10px 15px;border:0;border-radius:0}.kok-browser-line{display:none}.kok-catalog .catalog-heading{padding:20px 8px 12px;border-top:1px solid var(--line)}.kok-catalog .catalog-heading h2{font-size:25px}.kok-catalog .catalog-heading-badge{display:none}#brandBar{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding-left:8px;padding-right:8px}#brandBar .brand-tile{height:80px}.brand-tile-mark{height:42px}.kok-catalog #productGrid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:12px 8px}.kok-catalog .card-body{padding:12px}.kok-catalog .card-name{font-size:14px}.kok-catalog .card-detail-btn{font-size:12px;padding:7px 8px}.kok-catalog .card-media{height:150px}.kok-catalog .card-price{font-size:20px}.kok-catalog .add-btn{font-size:12px;padding:10px 7px}}
@media(prefers-reduced-motion:reduce){.kok-track{transition:none}}

/* Keep the approved hero directly above the catalogue. */
.banner-carousel{display:none}body{width:calc(100% - 48px)}@media(max-width:980px){body{width:calc(100% - 16px)}}

/* ชุดภาพแสงแดงจากเจ้าของ — แสดงทั้งภาพโดยคงรูปทรงเดิม */
.kok-hero { background: radial-gradient(ellipse at 92% 36%, #751b1533, transparent 55%), #0b0b0c; }
.kok-hero-inner { grid-template-columns: .92fr 1.18fr; gap: 28px; padding-top: 42px; padding-bottom: 26px; }
.kok-hero-copy { position: relative; z-index: 1; }
.kok-hero-copy h1 { font-size: clamp(40px, 4.9vw, 68px); line-height: 1.25; }
.kok-lead { font-size: clamp(17px, 1.8vw, 23px); }
.kok-promo { height: 390px; margin: 0 -15px 10px -12px; }
.kok-stage { border-radius: 16px; }
.kok-slide img { padding: 0; object-fit: contain; object-position: center; filter: none; transform: none !important; mask-image: linear-gradient(to right, transparent, #000 4%, #000 97%, transparent); }
.kok-controls { top: -12px; right: 12px; gap: 8px; z-index: 2; }
.kok-controls button { background: #101013d9; border-color: #ffffff38; backdrop-filter: blur(8px); }
.kok-controls button:hover { background: #3a1717; border-color: #ff694f; }
.kok-hero-caption { left: 20px; bottom: -5px; color: #d1c6c3; font-size: 12px; }
.kok-drive { display: none; }
.kok-dots { left: 14px; bottom: -35px; }
.kok-dots button { width: 44px; height: 44px; }
.kok-dots button:before { inset: 20px 6px; }
.kok-dots button[aria-pressed=true]:before { background: #ff503c; }
.kok-trust { max-width: none; margin-top: 20px; padding-top: 24px; border-top: 1px solid #ffffff17; }
html[data-theme=light] .kok-hero { background: #f6f6f8; }
html[data-theme=light] .kok-stage { background: #090909; }
html[data-theme=light] .kok-hero-caption { color: #49434a; }
html[data-theme=light] .kok-trust { border-top-color: #00000018; }
@media(max-width:980px) and (min-width:761px) {
 .kok-hero-inner { grid-template-columns: 1fr 1.1fr; gap: 12px; }
 .kok-hero-copy h1 { font-size: 42px; }
 .kok-promo { height: 315px; margin-left: 0; margin-right: 0; }
 .kok-hero-search { flex-wrap: wrap; border-radius: 18px; }
 .kok-search-submit { width: 100%; }
}
@media(max-width:760px) {
 .kok-hero-inner { padding: 28px 18px 20px; gap: 18px; }
 .kok-hero-copy h1 { font-size: clamp(34px, 9.8vw, 52px); line-height: 1.28; }
 .kok-promo { height: clamp(210px, 56vw, 380px); margin: 20px -4px 24px; }
 .kok-controls { top: -17px; right: 8px; }
 .kok-controls button { width: 44px; height: 44px; }
 .kok-hero-caption { bottom: -10px; left: 10px; font-size: 11px; }
 .kok-dots { bottom: -45px; left: 4px; }
 .kok-trust { margin-top: 12px; padding-top: 20px; }
 .kok-hero-search input { font-size: 16px; }
}
html[data-theme=light] .kok-hero-caption { bottom: -18px; }
html[data-theme=light] .kok-dots { bottom: -49px; }
@media(max-width:760px) {
 html[data-theme=light] .kok-hero-caption { bottom: -20px; }
 html[data-theme=light] .kok-dots { bottom: -54px; }
}

/* วนภาพทั้งโฟลเดอร์ ไม่มีเลขลำดับหรือจุดแบ่งจำนวนภาพ */
.kok-hero-caption { max-width: calc(100% - 30px); overflow-wrap: anywhere; line-height: 1.5; }
.kok-controls button:disabled { cursor: default; opacity: .55; }
.kok-promo { margin-bottom: 0; }
@media(max-width:760px) {
 .kok-promo { margin-bottom: 14px; }
 .kok-hero-caption { bottom: -18px; }
 html[data-theme=light] .kok-hero-caption { bottom: -24px; }
}
