.kbd-sec * { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Prompt', sans-serif; }
  .kbd-sec { width: 100%; background: #f1f5f9; color: #1e293b; padding-bottom: 50px; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
  .kbd-wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
  .kbd-pwa { background: #0f172a; color: #fff; padding: 8px 16px; font-size: 13px; display: flex; justify-content: center; align-items: center; gap: 12px; border-bottom: 1px solid #d4af37; }
  .kbd-pwa button { background: #f37021; color: #fff; border: none; padding: 4px 14px; border-radius: 20px; font-size: 12px; font-weight: 700; cursor: pointer; }
  .kbd-head { padding: 14px 0; background: #fff; border-bottom: 1px solid #e2e8f0; position: sticky; top: 0; z-index: 99; box-shadow: 0 4px 15px rgba(0,0,0,0.04); }
  .kbd-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
  .kbd-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
  .kbd-t1 { display: block; font-size: 26px; font-weight: 800; line-height: 1; color: #f37021; text-align: center; }
  .kbd-line { display: block; width: 100%; height: 2.5px; background: #dc2626; margin: 4px 0; }
  .kbd-t2 { display: block; font-size: 18px; font-weight: 800; line-height: 1.1; color: #facc15; -webkit-text-stroke: 0.65px #dc2626; text-align: center; }
  .kbd-search { flex: 1; max-width: 460px; display: flex; height: 42px; border: 1.5px solid #cbd5e1; border-radius: 8px; overflow: hidden; }
  .kbd-search input { flex: 1; border: none; padding: 0 14px; font-size: 14px; outline: none; }
  .kbd-search button { width: 48px; background: #f37021; border: none; color: #fff; cursor: pointer; }
  .kbd-btns { display: flex; gap: 10px; }
  .kbd-track { padding: 8px 14px; border-radius: 8px; background: #fff7ed; border: 1px solid #fdba74; color: #c2410c; font-size: 13px; font-weight: 700; cursor: pointer; }
  .kbd-cart { position: relative; padding: 8px 16px; border-radius: 10px; background: #0f172a; border: 1.5px solid #d4af37; color: #fde68a; font-size: 13px; font-weight: 700; cursor: pointer; }
  .kbd-badge { position: absolute; top: -7px; right: -7px; background: #dc2626; color: #fff; font-size: 11px; width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 2px solid #fff; }
  .kbd-banner { padding: 20px 0; background: #fff; }
  .kbd-slider { position: relative; width: 100%; aspect-ratio: 1200 / 435; max-height: 410px; border-radius: 12px; overflow: hidden; background: #0f172a; box-shadow: 0 10px 25px rgba(0,0,0,0.1); }
  .kbd-slides { display: flex; width: 100%; height: 100%; transition: transform 0.5s ease; }
  .kbd-slide { min-width: 100%; height: 100%; }
  .kbd-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .kbd-empty { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #facc15; text-align: center; }
  .kbd-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border-radius: 50%; background: rgba(0,0,0,0.65); color: #fff; border: 1px solid rgba(255,255,255,0.3); cursor: pointer; z-index: 5; font-size: 16px; }
  .kbd-arrow:hover { background: #f37021; }
  .kbd-prev { left: 14px; } .kbd-next { right: 14px; }
  .kbd-dots { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 5; }
  .kbd-dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,0.5); cursor: pointer; transition: 0.3s; }
  .kbd-dot.active { width: 24px; border-radius: 5px; background: #f37021; }
  .kbd-zone { margin-top: 12px; }
  .kbd-tabs { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); background: #fff; border-radius: 12px 12px 0 0; border: 1px solid #cbd5e1; border-bottom: none; }
  .kbd-tab { position: relative; z-index: 3; padding: 15px 6px; text-align: center; font-size: 14px; font-weight: 700; color: #334155; cursor: pointer; transition: 0.3s; user-select: none; }
  .kbd-tab:hover { color: #ea580c; }
  .kbd-tab.active { color: #ffffff; text-shadow: 0 1px 2px rgba(0,0,0,0.4); }
  .kbd-glider { position: absolute; top: 0; left: 0; width: 20%; height: 100%; background: linear-gradient(180deg, #ff7b29 0%, #c2410c 100%); border-radius: 10px 10px 0 0; box-shadow: 0 6px 22px rgba(234,88,12,0.6); transition: transform 0.45s cubic-bezier(0.25,0.8,0.25,1); z-index: 2; pointer-events: none; }
  .kbd-glider::after { content: ''; position: absolute; bottom: -11px; left: 50%; transform: translateX(-50%); border-left: 13px solid transparent; border-right: 13px solid transparent; border-top: 11px solid #c2410c; filter: drop-shadow(0 3px 4px rgba(234,88,12,0.5)); }
  .kbd-box { background: #fff; border-radius: 0 0 14px 14px; border: 2.5px solid #ea580c; box-shadow: 0 14px 32px rgba(234,88,12,0.22), inset 0 0 18px rgba(243,112,33,0.08); padding: 26px 22px; min-height: 300px; }
  .kbd-panel { display: none; }
  .kbd-panel.active { display: block; animation: kbdShow 0.3s ease; }
  @keyframes kbdShow { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
  .kbd-phead { display: flex; justify-content: space-between; align-items: center; padding-bottom: 12px; margin-bottom: 18px; border-bottom: 1.5px solid #ffedd5; flex-wrap: wrap; gap: 8px; }
  .kbd-ptitle { font-size: 19px; font-weight: 800; color: #0f172a; border-left: 4px solid #ea580c; padding-left: 10px; letter-spacing: .2px; }
  .kbd-ptag { font-size: 12px; background: #fff7ed; color: #c2410c; padding: 4px 12px; border-radius: 20px; font-weight: 700; border: 1px solid #fdba74; }
  .kbd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; max-height: 600px; overflow-y: auto; padding: 2px; scroll-behavior: smooth; }
  .kbd-grid::-webkit-scrollbar { width: 8px; }
  .kbd-grid::-webkit-scrollbar-track { background: #fff7ed; border-radius: 99px; }
  .kbd-grid::-webkit-scrollbar-thumb { background: #fdba74; border-radius: 99px; }
  .kbd-grid::-webkit-scrollbar-thumb:hover { background: #f37021; }
  .kbd-card { border: 1px solid #e2e8f0; border-radius: 10px; padding: 14px; display: flex; flex-direction: column; justify-content: space-between; transition: 0.2s; background: #fff; }
  .kbd-card:hover { border-color: #f37021; transform: translateY(-3px); box-shadow: 0 8px 18px rgba(243,112,33,0.16); }
  .kbd-img { height: 125px; background: #f8fafc; border: 1px dashed #cbd5e1; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #94a3b8; font-size: 12px; margin-bottom: 10px; }
  .kbd-code { font-size: 11px; color: #ea580c; font-weight: 700; letter-spacing: .4px; }
  .kbd-name { font-size: 14px; font-weight: 600; line-height: 1.35; margin: 4px 0 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 38px; }
  .kbd-foot { display: flex; justify-content: space-between; align-items: center; padding-top: 8px; border-top: 1px solid #f1f5f9; }
  .kbd-price { font-size: 17px; font-weight: 800; color: #dc2626; }
  .kbd-add { background: #f37021; color: #fff; border: none; padding: 6px 12px; border-radius: 6px; font-size: 12px; font-weight: 700; cursor: pointer; }
  .kbd-add:hover { background: #c2410c; }
/* ===== เพิ่มเติมจากงานเดิมของเรา: สไลด์ CTA, รูปจริงในการ์ด, ลิ้นชักรถเข็น, toast ===== */
  .kbd-slide-cta { display: flex; flex-direction: column; align-items: center; justify-content: center; background: linear-gradient(135deg, #0f172a 0%, #334155 100%); color: #fff; text-align: center; padding: 0 8%; }
  .kbd-slide-cta h2 { font-size: 30px; font-weight: 800; color: #facc15; }
  .kbd-slide-cta p { font-size: 14px; color: #cbd5e1; margin-top: 6px; }
  .kbd-slide-cta button { margin-top: 16px; background: #f37021; color: #fff; border: 0; border-radius: 10px; padding: 11px 26px; font-size: 15px; font-weight: 700; cursor: pointer; font-family: inherit; box-shadow: 0 6px 16px rgba(243,112,33,.4); }
  .kbd-slide-cta button:hover { background: #c2410c; }

  .kbd-card { text-decoration: none; color: inherit; }
  .kbd-product-link { display: block; color: inherit; text-decoration: none; cursor: pointer; }
  .kbd-product-link:hover .kbd-img { border-color: #f37021; }
  .kbd-img { border-style: solid; border-color: #e2e8f0; overflow: hidden; padding: 0; height: auto; aspect-ratio: 1 / 1; background: #f8fafc; }
  .kbd-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

  @media (max-width: 768px) {
    .kbd-pwa { font-size: 12px; gap: 10px; }
    .kbd-pwa button { white-space: nowrap; flex: none; }
    .kbd-tab { font-size: 11.5px; padding: 12px 3px; line-height: 1.25; }
    .kbd-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; max-height: 480px; }
    .kbd-box { padding: 16px 12px; }
    .kbd-search { flex: 1 1 100%; order: 3; max-width: none; }
    .kbd-search input { min-width: 0; }
    .kbd-slide-cta { padding: 8px 6%; }
    .kbd-slide-cta h2 { font-size: 16px; }
    .kbd-slide-cta p { display: none; }
    .kbd-slide-cta button { margin-top: 8px; padding: 8px 18px; font-size: 13px; }
  }

  @media (display-mode: standalone) { .kbd-pwa { display: none; } }

  .kbd-pclose { border: 1px solid #e2e8f0; background: #fff; color: #475569; font-weight: 700; font-size: 13px; padding: 7px 14px; border-radius: 99px; cursor: pointer; font-family: inherit; }
  .kbd-pclose:hover { background: #fef2f2; border-color: #fca5a5; color: #b91c1c; }
  .kbd-nomatch { color: #64748b; font-size: 14px; padding: 18px 4px; }

  .kbd-pfoot { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; background: #fff7ed; border: 1px solid #fdba74; color: #c2410c; font-weight: 700; font-size: 13.5px; padding: 8px 14px; border-radius: 99px; text-decoration: none; }
  .kbd-pfoot:hover { background: #f37021; color: #fff; }

  .kbd-drawer-bg { position: fixed; inset: 0; background: rgba(15,23,42,.45); opacity: 0; pointer-events: none; transition: .25s; z-index: 998; }
  .kbd-drawer-bg.on { opacity: 1; pointer-events: auto; }
  .kbd-drawer { position: fixed; top: 0; right: 0; height: 100%; width: min(380px, 92vw); background: #fff; z-index: 999; transform: translateX(105%); transition: transform .3s cubic-bezier(.25,.8,.25,1); box-shadow: -12px 0 30px rgba(0,0,0,.18); display: flex; flex-direction: column; }
  .kbd-drawer.on { transform: translateX(0); }
  .kbd-drawer-h { background: #0f172a; color: #fde68a; padding: 14px 18px; font-weight: 800; display: flex; justify-content: space-between; align-items: center; border-bottom: 2px solid #d4af37; }
  .kbd-drawer-h button { background: #dc2626; color: #fff; border: 0; width: 28px; height: 28px; border-radius: 50%; cursor: pointer; font-size: 14px; }
  .kbd-drawer-list { flex: 1; overflow-y: auto; padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; }
  .kbd-ditem { display: flex; gap: 10px; border: 1px solid #e2e8f0; border-radius: 10px; padding: 10px; align-items: center; }
  .kbd-ditem img { width: 52px; height: 52px; object-fit: cover; border-radius: 8px; background: #f1f5f9; flex: none; }
  .kbd-ditem .nm { font-size: 13px; font-weight: 700; color: #0f172a; line-height: 1.3; }
  .kbd-ditem .md { font-size: 11px; color: #ea580c; font-weight: 700; }
  .kbd-qty { display: flex; align-items: center; gap: 6px; margin-left: auto; flex: none; }
  .kbd-qty button { width: 24px; height: 24px; border-radius: 6px; border: 1px solid #cbd5e1; background: #f8fafc; cursor: pointer; font-weight: 800; color: #334155; }
  .kbd-qty span { min-width: 18px; text-align: center; font-weight: 800; font-size: 13px; }
  .kbd-drawer-f { padding: 14px 18px; border-top: 1px solid #e2e8f0; background: #fff7ed; font-size: 13px; color: #9a3412; }
  .kbd-drawer-f b { color: #c2410c; }
  .kbd-dempty { text-align: center; color: #94a3b8; padding: 30px 10px; font-size: 14px; }

  #toast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%) translateY(20px); background: #0f172a; color: #fde68a; border: 1px solid #d4af37; padding: 10px 18px; border-radius: 99px; font-size: 13.5px; font-weight: 700; opacity: 0; pointer-events: none; transition: .3s; z-index: 1200; max-width: 88vw; text-align: center; }
  #toast.on { opacity: 1; transform: translateX(-50%) translateY(0); }
  .kbd-sec { padding-bottom: 50px; }
