/* ============================================================================
   pages/catalog.css — กลุ่มหน้า SHOPPING BROWSE (redesign 17 พ.ย. 2026 · PAGES-PLAN T2 T3 T5 + favorites)
   หน้า: /catalog (ทั้งหมด · หมวด · แบรนด์ · ค้นหา) · /catalog/{product} · /brands · /favorites
   ต้นแบบหน้าตา: design/mockup/pages/catalog.html · ชิ้นส่วนกลางมาจาก site.css (.crumbs .chip .grid .pcard .btn .empty .search .stepper ...)

   ⚠ ไฟล์นี้โหลดหลัง catalog.css + site.css และทุกกฎขึ้นต้นด้วย .ds (main ของหน้าพวกนี้ตั้ง main_class = ds)
     — ชนะกฎเก่าใน catalog.css ด้วย specificity ไม่ใช่ !important
   ⚠ คลาสเดิมที่ JS/เทสต์ผูกอยู่ยังเป็นชื่อเดิม (catalog-bar · cb-search · #filterFab · .filters#filterSheet ·
     .pk-* ของ _picker · .detail-image/.gs-thumb · .pdp-bar · .share-btn …) — ไฟล์นี้แค่เปลี่ยนผิว ไม่เปลี่ยนพฤติกรรม
   ⚠ จุดตัดจอ 900px = จุดเดียวกับสคริปต์ของหน้า (โหลดต่อเนื่อง · แผ่นตัวเลือก · แถบล่างจอ) — ห้ามขยับข้างเดียว
   ⚠ ห้าม uppercase / letter-spacing / ตัวเอียง กับคำไทย · การ์ดยกไม่เกิน 3px · ไอคอนเป็น fill (ห้ามตั้ง fill:none/stroke)
   ⚠ แผ่นตัวกรอง (_filter-sheet) ถูกดึงไปกางในหน้าอื่นที่ไม่โหลดไฟล์นี้ — ที่นั่นยังเป็นหน้าตาเดิมของ catalog.css
   ============================================================================ */

/* ---------- 0. ร่วมกันทุกหน้าในกลุ่ม ---------- */
.ds .cat-top,.ds .product-page,.ds .br-page,.ds .fav-page{padding-top:clamp(12px,2vw,20px)}
.ds .crumbs{margin-bottom:14px}
.ds .crumbs li{min-width:0}
.ds .crumbs a,.ds .crumbs [aria-current]{display:inline-flex;align-items:center;min-height:36px;padding:0 6px;border-radius:var(--r-xs)}
.ds .crumbs a:hover{background:var(--navy-50)}
.ds .crumbs [aria-current]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:min(60ch,100%);display:inline-block;line-height:36px}
.ds .crumbs svg{flex-shrink:0}
.ds .crumbs li.crumbs__back{display:none}
.ds .crumbs__back svg{width:16px;height:16px;margin-right:2px;color:var(--navy-800)}
@media (max-width:767px){
  .ds .crumbs ol{flex-wrap:nowrap}
  .ds .crumbs li:not(:last-child){display:none}
  .ds .crumbs li.crumbs__back{display:inline-flex}
  .ds .crumbs li:last-child{flex:1;min-width:0}
  .ds .crumbs li:last-child::before{content:"";width:1px;height:16px;background:var(--line);margin:0 6px 0 2px;flex-shrink:0}
  .ds .crumbs [aria-current]{max-width:100%}
}
.ds .tnum{font-variant-numeric:tabular-nums}

/* ============================================================================
   1. /catalog — หัว · แถบค้นหา (มือถือ) · ตัวกรอง · กริด · แบ่งหน้า · ว่าง · ใกล้เคียง
   ============================================================================ */
.ds .cat-flash{margin-bottom:14px}

/* หัว: หมวด/แบรนด์ = แถบกรมท่ามุม 28 · หน้ารวม/ค้นหา (--plain) = กล่องขาวเรียบ */
.ds .catalog-hero{position:relative;display:flex;align-items:center;gap:22px;padding:clamp(20px,3vw,30px) clamp(18px,3vw,32px);border-radius:var(--r-lg);background:var(--grad-navy);color:#fff;overflow:hidden;isolation:isolate}
.ds .catalog-hero::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:radial-gradient(600px 300px at 90% 0%,rgba(255,180,0,.16),transparent 60%),radial-gradient(400px 300px at 0% 100%,rgba(230,0,18,.14),transparent 60%)}
.ds .catalog-hero h1{font-size:clamp(24px,3vw,36px);font-weight:600;line-height:1.25;color:#fff}
.ds .catalog-hero p{margin-top:6px;max-width:70ch;font-size:15.5px;line-height:1.6;color:rgba(255,255,255,.84)}
.ds .cat-hero__txt{min-width:0}
.ds .cat-hero__n{display:inline-flex;align-items:center;gap:6px;margin-top:12px;padding:5px 12px;border-radius:var(--pill);background:rgba(255,255,255,.1);border:1px solid rgba(255,180,0,.3);font-family:var(--font-display);font-size:13.5px;font-weight:500;line-height:1.3}
.ds .cat-hero__n svg{width:15px;height:15px;color:var(--yellow-500)}
.ds .cat-hero__chips{margin-top:14px}
.ds .cat-hero__chips .chip{min-height:40px;background:rgba(255,255,255,.08);border-color:rgba(255,255,255,.22);color:#fff;font-family:var(--font-display);font-size:14px;font-weight:500}
.ds .cat-hero__chips .chip:hover{background:rgba(255,255,255,.16);border-color:var(--yellow-500);color:#fff}
.ds .cat-hero__chips .chip .count{background:rgba(255,255,255,.16);color:#fff}
.ds .cat-hero__logo{width:88px;height:88px;flex-shrink:0;border-radius:var(--r-md);background:#fff;display:grid;place-items:center;padding:10px}
.ds .catalog-hero .brand-hero-logo{width:auto;height:auto;max-width:100%;max-height:100%;object-fit:contain;border-radius:0;margin:0;background:none}
.ds .catalog-hero--plain{background:var(--paper);color:var(--ink);border:1px solid var(--line);padding:18px 22px}
.ds .catalog-hero--plain::before{display:none}
.ds .catalog-hero--plain h1{color:var(--ink);font-size:clamp(22px,2.4vw,28px)}
.ds .catalog-hero--plain p{color:var(--muted);font-size:15px}

/* แถบค้นหา + ปุ่มตัวกรอง (≤900 หนึบใต้หัวเว็บ · เดสก์ท็อปซ่อน — catalog.css คุม display) */
.ds .catalog-bar{background:rgba(248,249,251,.96);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-bottom:1px solid var(--line);padding:8px 0;margin:12px 0 0}
.ds .catalog-bar .container{gap:8px;align-items:center;padding-inline:var(--gutter)}
.ds .catalog-bar .cb-search{height:46px;padding:0 5px 0 14px;gap:8px;border-radius:var(--pill);border:1.5px solid var(--line);background:#fff;transition:border-color .25s,box-shadow .25s}
.ds .catalog-bar .cb-search:focus-within{border-color:var(--navy-800);box-shadow:0 0 0 4px var(--yellow-100)}
.ds .catalog-bar .cb-search svg{width:19px;height:19px;color:var(--muted)}
.ds .catalog-bar .cb-search input{font-size:16px;color:var(--ink);font-family:var(--font-body)}
.ds .catalog-bar .cb-go{min-height:36px;padding:0 16px;border-radius:var(--pill);background:var(--yellow-500);color:var(--navy-800);font-family:var(--font-display);font-weight:600;font-size:15px}
.ds .catalog-bar .cb-go:hover{background:var(--yellow-600)}
.ds .catalog-bar .cb-filter{position:relative;align-self:center;width:46px;height:46px;padding:0;border:0;border-radius:50%;display:grid;place-items:center;background:var(--navy-800);color:#fff;cursor:pointer}
.ds .catalog-bar .cb-filter svg{width:20px;height:20px}
.ds .catalog-bar .cb-filter.has-filter{background:var(--navy-800);border:0}
.ds .catalog-bar .cb-filter.has-filter::after{content:"";position:absolute;top:5px;right:5px;width:10px;height:10px;border-radius:50%;background:var(--yellow-500);border:2px solid #fff}

/* เลย์เอาต์: sidebar 270 ติดหนึบ + กริด */
.ds .catalog-layout{display:grid;grid-template-columns:270px minmax(0,1fr);gap:24px;align-items:start;padding-top:20px}
.ds .catalog-layout>.products{min-width:0}

/* ── ตัวกรอง (เดสก์ท็อป = การ์ดข้าง · ≤900 = แผ่นเลื่อนขึ้นจากล่าง — กลไกเปิด/ปิดยังเป็น .open ของ catalog.css) ── */
.ds .filters{background:var(--paper);border:1px solid var(--line);border-radius:var(--r-md);padding:6px 18px 0;font-size:15px;line-height:1.5}
.ds .filters .filter-block{margin:0;padding:14px 0;border-top:1px solid var(--line)}
.ds .filters form>.filter-block:first-child,.ds .filters .filter-block--search+.filter-block{border-top:0}
.ds .filters .filter-label{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px;font-family:var(--font-display);font-weight:500;font-size:15px;color:var(--ink)}
.ds .filters .filter-label .count{font-family:var(--font-body);font-weight:400;font-size:13px;color:var(--muted)}
.ds .filters .filter-list{list-style:none;margin:0;padding:0}
.ds .filters .filter-list li+li{margin-top:2px}
.ds .filters .filter-list li a{display:flex;justify-content:space-between;align-items:center;gap:8px;min-height:40px;padding:6px 10px;border-radius:var(--r-sm);font-size:15px;line-height:1.35;color:var(--ink-700);transition:background .2s,color .2s}
.ds .filters .filter-list li a:hover{background:var(--navy-50);color:var(--navy-800)}
.ds .filters .filter-list li a.active{background:var(--navy-800);color:#fff;font-weight:500}
.ds .filters .filter-list .count{flex-shrink:0;font-size:12.5px;color:var(--muted-2);font-variant-numeric:tabular-nums}
.ds .filters .filter-list li a.active .count{color:var(--yellow-500)}
.ds .filters .filter-list.filter-sub{margin:4px 0 6px 10px;padding-left:10px;border-left:2px solid var(--navy-100)}
.ds .filters .filter-list.filter-sub a{min-height:38px;font-size:14.5px}
.ds .filters .price-range{display:grid;grid-template-columns:1fr auto 1fr;gap:8px;align-items:center;color:var(--muted)}
.ds .filters .price-range input{height:46px;width:100%;min-width:0;padding:0 12px;border:1.5px solid var(--line);border-radius:var(--r-sm);background:var(--soft);font-family:var(--font-body);font-size:16px;color:var(--ink)}
.ds .filters .price-range input:focus{outline:none;border-color:var(--navy-800);background:#fff;box-shadow:0 0 0 4px var(--navy-100)}
.ds .filters .brand-list{max-height:340px;overflow-y:auto;scrollbar-width:thin;margin-right:-6px;padding-right:6px}
.ds .filters .brand-checks label{display:flex;align-items:center;gap:10px;min-height:42px;padding:4px 8px;border-radius:var(--r-sm);font-size:15px;color:var(--ink-700);cursor:pointer}
.ds .filters .brand-checks label:hover{background:var(--navy-50)}
.ds .filters .brand-checks label.active{font-weight:500;color:var(--navy-800)}
.ds .filters .brand-checks input{width:20px;height:20px;accent-color:var(--navy-800);flex-shrink:0;margin:0}
.ds .filters .brand-checks .bc-name{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ds .filters .brand-checks .count{font-size:12.5px;color:var(--muted-2)}
.ds .filters .filter-actions{position:sticky;bottom:0;display:flex;gap:8px;margin:0 -18px;padding:12px 18px 14px;background:var(--paper);border-top:1px solid var(--line);border-radius:0 0 var(--r-md) var(--r-md)}
.ds .filters .filter-actions .btn{flex:1;min-height:46px;padding:4px 14px;font-size:15px}
.ds .filters .filter-sheet-head{font-family:var(--font-display);font-weight:500;font-size:18px;color:var(--ink)}
.ds .filters .filter-sheet-head button{width:44px;height:44px;border-radius:50%;background:var(--navy-50);color:var(--navy-800);display:grid;place-items:center}
.ds .filters .filter-sheet-head button svg{width:20px;height:20px}
@media (min-width:901px){
  /* top = หัวเว็บ (sticky) + ระยะ · ความสูงไม่เกินจอ ตัวรายการเลื่อนในตัว */
  /* --pk-stick = ความสูง .header-stack จริง (สคริปต์ของหน้าวัดให้ตอนโหลด/resize — ห้ามฝังเลขหัวเว็บ) */
  .ds .filters{position:sticky;top:calc(var(--pk-stick,130px) + 16px);max-height:calc(100vh - var(--pk-stick,130px) - 32px);overflow-y:auto;scrollbar-width:thin}
}
@media (max-width:900px){
  /* หัวหน้ารวม/ค้นหา: ซ่อนจากสายตาบนมือถือ (เจ้าของ 17 ก.ย. "ใหญ่ไปเกะกะ") — h1 ยังอยู่ใน DOM (visually-hidden ไม่ใช่ display:none) */
  .ds .catalog-hero--plain{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);border:0;white-space:nowrap}
  .ds .catalog-layout{grid-template-columns:minmax(0,1fr);gap:0;padding-top:14px}
  .ds .filters{position:fixed;left:0;right:0;top:auto;bottom:-100%;max-height:86dvh;overflow-y:auto;z-index:95;border:0;border-radius:var(--r-lg) var(--r-lg) 0 0;padding:0 20px calc(env(safe-area-inset-bottom,0px));box-shadow:0 -24px 60px -20px rgba(18,28,38,.5)}
  .ds .filters.open{bottom:0}
  .ds .filters .filter-sheet-head{position:sticky;top:0;z-index:2;display:flex;justify-content:space-between;align-items:center;margin:0 -20px 4px;padding:14px 20px 12px;background:var(--paper);border-bottom:1px solid var(--line)}
  .ds .filters .filter-sheet-head::before{content:"";position:absolute;top:6px;left:50%;width:40px;height:4px;margin-left:-20px;border-radius:2px;background:var(--line-strong)}
  .ds .filters .brand-list{max-height:none;overflow:visible;margin:0;padding:0}
  .ds .filters .filter-actions{margin:0 -20px;padding:12px 20px calc(12px + env(safe-area-inset-bottom,0px));border-radius:0}
}

/* แถบเครื่องมือเหนือกริด: จำนวน · ชิปตัวกรองที่เลือก · ล้าง */
.ds .cat-tool{display:flex;flex-wrap:wrap;align-items:center;gap:10px 14px;margin-bottom:16px}
.ds .cat-tool__cnt{font-size:15px;color:var(--muted)}
.ds .cat-tool__cnt b{font-family:var(--font-display);font-weight:500;color:var(--ink)}
.ds .cat-tool__chips{flex:1 1 auto;min-width:0}
.ds .chip--x{gap:6px;padding:6px 12px 6px 16px;font-family:var(--font-display);font-size:14px;font-weight:500}
.ds .chip--x svg{width:15px;height:15px;opacity:.8}
.ds .chip.is-active.chip--x:hover{background:var(--navy-700);border-color:var(--navy-700);color:#fff}
.ds .cat-tool__clear{margin-left:auto;display:inline-flex;align-items:center;gap:6px;min-height:40px;padding:0 12px;border-radius:var(--pill);font-family:var(--font-display);font-size:14.5px;font-weight:500;color:var(--red-600);white-space:nowrap}
.ds .cat-tool__clear:hover{background:var(--red-50)}
.ds .cat-tool__clear svg{width:16px;height:16px}

/* กริดสินค้า (การ์ด .pcard ของ site.css) — มี sidebar: 4 → 3 คอลัมน์ · มือถือ 2 */
.ds .catalog-layout .grid{gap:16px}
@media (max-width:1199px){.ds .catalog-layout .grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}}
@media (max-width:767px){.ds .catalog-layout .grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}}

/* แบ่งหน้า (pagination.blade.php) — ⚠ .ds .pager span ของ site.css ไปโดนตัวห่อ .pager-nums/.pager-now/.pager-dots ด้วย ต้องคืนค่า */
.ds .pagination-wrap{display:flex;justify-content:center;margin-top:28px}
.ds .pagination-wrap[hidden]{display:none}
.ds .pager .pager-nums{display:contents}
.ds .pager .pager-dots{min-width:28px;border:0;background:none;padding:0 2px;color:var(--muted)}
.ds .pager .pager-now{display:none;min-width:0;width:auto;border-radius:var(--pill);padding:0 18px;white-space:nowrap;font-size:14.5px;color:var(--navy-800)}
.ds .pager .pager-btn{border-radius:50%}
.ds .pager .pager-btn:hover{transform:none;color:var(--navy-800)}
.ds .pager .pager-btn.current{background:var(--navy-800);border-color:var(--navy-800);color:#fff}
.ds .pager .pager-btn.disabled{opacity:.4;pointer-events:none}
.ds .pager svg{width:18px;height:18px}
@media (max-width:900px){
  .ds .catalog-layout .pagination-wrap{display:flex}
  .ds .catalog-layout .pagination-wrap[hidden]{display:none}
  .ds .pager{flex-wrap:nowrap;gap:10px}
  .ds .pager .pager-nums{display:none}
  .ds .pager .pager-now{display:inline-grid}
}

/* โหลดเพิ่ม (มือถือ) */
.ds .more-status{margin-top:22px;color:var(--muted);font-size:15px}
.ds .more-loading{color:var(--muted)}
.ds .more-btn{min-width:220px}

/* ว่าง + สินค้าใกล้เคียง */
.ds .cat-empty{background:var(--paper);border:1px solid var(--line);border-radius:var(--r-lg)}
.ds .cat-empty__h{font-size:20px;line-height:1.4}
.ds .cat-empty p{color:var(--muted)}
.ds .cat-empty .empty-hint a{color:var(--red-600);font-weight:500;text-decoration:underline;text-underline-offset:3px}
.ds .sugg-block{margin-top:32px;padding-top:24px;border-top:1px solid var(--line);border-radius:0}
.ds .sugg-head{display:flex;align-items:center;gap:8px;font-size:21px;line-height:1.35}
.ds .sugg-head svg{width:20px;height:20px;color:var(--red-600)}
.ds .sugg-note{margin:4px 0 16px;font-size:15px;color:var(--muted)}
.ds .sugg-note a{color:var(--red-600);font-weight:500}

@media (max-width:767px){
  .ds .catalog-hero{flex-wrap:wrap;gap:14px;padding:20px 18px}
  .ds .cat-hero__logo{width:64px;height:64px;border-radius:var(--r-sm);padding:8px}
  .ds .catalog-hero p{font-size:14.5px}
  .ds .cat-hero__chips{flex-wrap:nowrap;overflow-x:auto;margin-inline:-18px;padding:2px 18px 4px;scrollbar-width:none}
  .ds .cat-hero__chips::-webkit-scrollbar{display:none}
  .ds .cat-hero__chips .chip{flex-shrink:0}
  .ds .cat-tool{gap:8px 10px}
  .ds .cat-tool__cnt{font-size:14px}
  .ds .cat-tool__clear{order:2;margin-left:auto;min-height:36px;padding:0 6px}
  .ds .cat-tool__chips{order:3;flex-basis:100%}
}

/* ============================================================================
   2. /catalog/{product} — แกลเลอรี · ข้อมูล · ตัวเลือก (_picker) · ทีมงาน · รายละเอียด · แถบล่างจอ
   ============================================================================ */
.ds .product-detail{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);gap:clamp(22px,3vw,36px);align-items:start;margin-top:6px}
.ds .product-detail>*{min-width:0}
@media (min-width:901px){.ds .pdp-gal{position:sticky;top:calc(var(--pk-stick,130px) + 16px)}}

/* แกลเลอรี: รูปหลัก 1:1 มุม 28 · ลูกศร 44 · เลขรูป · ป้ายแตะเพื่อขยาย · รูปย่อ 72 */
.ds .detail-image{position:relative;aspect-ratio:1;border-radius:var(--r-lg);border:1px solid var(--line);background:#fff;box-shadow:none;overflow:hidden;display:flex;align-items:center;justify-content:center}
.ds .detail-image img{width:100%;height:100%;object-fit:contain;padding:clamp(10px,2vw,20px);cursor:zoom-in}
.ds .detail-image .di-nav{width:44px;height:44px;border-radius:50%;border:0;background:rgba(255,255,255,.94);box-shadow:var(--shadow-sm);color:var(--navy-800);display:grid;place-items:center;transition:background .25s,color .25s}
.ds .detail-image .di-nav:hover{background:var(--navy-800);color:#fff;border:0}
.ds .detail-image .di-nav svg{width:20px;height:20px}
.ds .detail-image .di-prev{left:12px}.ds .detail-image .di-next{right:12px}
.ds .detail-image .di-count{left:auto;right:14px;bottom:14px;transform:none;padding:4px 11px;border-radius:var(--pill);background:rgba(30,45,59,.84);color:#fff;font-family:var(--font-display);font-size:12.5px;font-weight:500;line-height:1.4}
.ds .di-zoom{position:absolute;left:14px;bottom:14px;z-index:2;display:inline-flex;align-items:center;gap:6px;padding:4px 11px;border-radius:var(--pill);background:rgba(255,255,255,.92);color:var(--navy-800);font-family:var(--font-display);font-size:12.5px;font-weight:500;line-height:1.4;pointer-events:none}
.ds .di-zoom svg{width:14px;height:14px}
.ds .pdp-noimg{position:absolute;inset:0;display:grid;place-items:center;background:var(--soft);color:var(--muted-2)}
.ds .pdp-noimg svg{width:56px;height:56px}
.ds .gallery-strip{display:flex;flex-wrap:nowrap;gap:8px;overflow-x:auto;margin-top:0;padding:12px 2px 6px;scrollbar-width:none;scroll-snap-type:x proximity}
.ds .gallery-strip::-webkit-scrollbar{display:none}
.ds .gs-thumb{flex:0 0 72px;width:72px;height:72px;border:2px solid var(--line);border-radius:var(--r-sm);background:#fff;overflow:hidden;padding:0;scroll-snap-align:start;transition:border-color .25s}
.ds .gs-thumb:hover{border-color:var(--line-strong)}
.ds .gs-thumb.active{border-color:var(--navy-800)}
.ds .gs-thumb img{width:100%;height:100%;object-fit:contain;border-radius:0}

/* คอลัมน์ข้อมูล */
.ds .detail-info{display:flex;flex-direction:column;gap:12px}
.ds .detail-info>*{margin-top:0;margin-bottom:0}
.ds .detail-top{display:flex;align-items:center;gap:10px;min-height:40px;margin:0}
.ds .detail-idline{gap:8px}
.ds .detail-brand{display:inline-flex;align-items:center;min-height:36px;padding:0 14px;border-radius:var(--pill);background:var(--navy-50);color:var(--navy-800);font-family:var(--font-display);font-size:14px;font-weight:500;letter-spacing:0}
.ds a.detail-brand:hover{background:var(--navy-100)}
.ds .genuine-tag{min-height:28px;padding:0 10px;border-radius:var(--pill);background:var(--ok-bg);color:var(--ok);border:0;font-family:var(--font-display);font-size:12.5px;font-weight:500}
.ds .detail-top .share-btn{min-height:40px;padding:0 14px;gap:8px;border:1px solid var(--line);border-radius:var(--pill);background:#fff;font-family:var(--font-display);font-size:14px;font-weight:500;color:var(--ink-700)}
.ds .detail-top .share-btn:hover{border-color:var(--navy-800);color:var(--navy-800)}
.ds .detail-info h1{font-size:clamp(22px,2.4vw,30px);line-height:1.3;font-weight:600;margin:0}
.ds .pd-badges{margin:0;gap:6px}
.ds .pd-badge{height:24px;display:inline-flex;align-items:center;padding:0 10px;border-radius:var(--pill);background:var(--navy-800);color:#fff;border:0;font-family:var(--font-display);font-size:12.5px;font-weight:500;letter-spacing:0}
.ds .detail-flags{margin:0;flex-wrap:wrap;gap:6px}
.ds .detail-flags .flag{height:24px;display:inline-flex;align-items:center;padding:0 10px;border-radius:var(--pill);font-family:var(--font-display);font-size:12.5px;font-weight:500}
.ds .detail-promo{margin:0;padding:12px 16px;border:0;border-radius:var(--r);background:var(--ok-bg);color:var(--ok);font-size:15px;line-height:1.55}
.ds .detail-promo svg{color:var(--ok)}

/* ── ตัวเลือก + ราคา (_picker) — โครง/สคริปต์เดิมทั้งหมด เปลี่ยนแค่ผิวเป็นกล่อง DS ── */
.ds .pk{margin:0;display:flex;flex-direction:column;gap:12px}
.ds .pk>.pk-price+.pk-sheet,.ds .pk>.pk-price+.pk-open,.ds .pk>.pk-inst+.pk-sheet,.ds .pk>.pk-inst+.pk-open{margin-top:0}
.ds .pk:not(.is-sheet) .pk-sheet-top{display:none}
.ds .pk[data-shape="single"] .pk-sheet-mid{display:none}
.ds .pk .pk-price{padding:16px 20px;margin:0;border:1px solid var(--line);border-bottom:1px solid var(--line);border-radius:var(--r-md);background:var(--paper)}
.ds .pk>.pk-price{background:var(--paper);box-shadow:0 12px 30px -24px rgba(30,45,59,.45)}
.ds .pk .pk-was-line{gap:8px;margin-bottom:4px}
.ds .pk .pk-was{font-size:14px;color:var(--muted)}
.ds .pk .flag-discount,.ds .pk-price .flag-discount{display:inline-flex;align-items:center;height:22px;padding:0 9px;border-radius:var(--pill);background:var(--red-50);color:var(--red-600);font-family:var(--font-display);font-size:12.5px;font-weight:600}
.ds .pk .pk-big{font-family:var(--font-display);font-weight:600;font-size:clamp(30px,3vw,40px);line-height:1.1;color:var(--red-600);font-variant-numeric:tabular-nums}
.ds .pk .pk-big.is-range{font-size:clamp(24px,2.4vw,30px);color:var(--ink)}
.ds .pk .pk-big.is-none{font-size:20px;color:var(--muted)}
.ds .pk .pk-unit{margin-left:4px;font-family:var(--font-body);font-size:15px;font-weight:400;color:var(--muted)}
.ds .pk .pk-sub,.ds .pk .pk-tier-hint{display:block;margin-top:10px;padding:8px 12px;border-radius:var(--r-sm);background:var(--navy-50);color:var(--info);font-size:14.5px;line-height:1.5}
.ds .pk .pk-sub b,.ds .pk .pk-tier-hint b{font-family:var(--font-display);font-weight:600;color:var(--red-600)}
.ds .pk .pk-tier-hint.is-on{background:var(--ok-bg);color:var(--ok);font-weight:400}
.ds .pk .pk-cap{margin-top:10px;display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;font-size:14px;color:var(--muted)}
.ds .pk .pk-cap:empty{display:none}
.ds .pk .pk-cap b{font-family:var(--font-display);font-weight:500;color:var(--ink)}
.ds .pk .sku-tag{display:inline-flex;align-items:center;height:22px;margin:0;padding:0 8px;border-radius:6px;background:var(--soft);color:var(--muted);font:500 12px ui-monospace,Menlo,monospace}
.ds .pk .pk-tag{border-radius:var(--pill)}
.ds .pk .pk-note{flex-basis:100%;margin:0;font-size:13.5px}
.ds .pk-cash{margin-top:10px;border:0;border-radius:var(--r-sm);background:var(--ok-bg);padding:10px 12px}
.ds .pk-cash-num{font-weight:600;color:var(--ok)}
.ds .pk-cash-save{border-radius:var(--pill)}
/* ตารางขั้นราคา (อยู่นอกกล่องราคาโดยตั้งใจ — ดูคอมเมนต์ใน _picker) */
.ds .pk-tiers{margin:0;padding:14px 16px;border:1px solid var(--line);border-radius:var(--r-md);background:var(--paper);display:grid;gap:4px}
.ds .pk-tiers[hidden]{display:none}
.ds .pk-tiers-head{margin-bottom:4px;font-family:var(--font-display);font-size:15px;font-weight:500;color:var(--ink);letter-spacing:0}
.ds .pk-tier-row{display:flex;justify-content:space-between;gap:12px;padding:9px 12px;border-radius:var(--r-xs);background:var(--soft);font-size:14.5px;color:var(--ink-700)}
.ds .pk-tier-row b{font-family:var(--font-display);font-weight:600;color:var(--red-600)}
.ds .pk-tier-row.is-on{background:var(--navy-50);box-shadow:inset 0 0 0 1.5px var(--navy-800);color:var(--ink)}
.ds .pk-tier-row.is-on b{color:var(--red-600)}
.ds .pk-tier-note{margin-top:4px;font-size:13px;color:var(--muted-2)}
.ds .pk-inst{margin:0;padding:10px 14px;border-radius:var(--r-sm);background:var(--navy-50);color:var(--info);font-size:14.5px}
/* ชิปตัวเลือก 44px */
.ds .pk .pk-sheet{display:flex;flex-direction:column;gap:14px;padding:16px 20px;border:1px solid var(--line);border-radius:var(--r-md);background:var(--paper)}
.ds .pk .pk-sheet-mid{display:grid;gap:14px}
.ds .pk .pk-sheet-mid:empty{display:none}
.ds .pk .pk-grp{margin:0}
.ds .pk .pk-grp-h{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:8px;font-family:var(--font-display);font-weight:500;font-size:15px;color:var(--ink)}
.ds .pk .pk-n{font-size:13.5px;color:var(--muted)}
.ds .pk .pk-chips{gap:8px}
.ds .pk .pk-chip{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:6px 16px;border:1.5px solid var(--line);border-radius:var(--pill);background:#fff;font-family:var(--font-display);font-size:14.5px;font-weight:500;line-height:1.3;color:var(--ink-700);text-align:left;transition:border-color .25s,background .25s,color .25s,box-shadow .25s}
.ds .pk .pk-chip:hover:not(.is-na){border-color:var(--navy-800)}
.ds .pk .pk-chip[aria-pressed="true"]{border-color:var(--navy-800);background:var(--navy-50);color:var(--navy-800);box-shadow:0 0 0 3px var(--navy-100)}
.ds .pk .pk-chip.is-na{border-style:dashed;background:var(--soft);color:var(--muted-2);text-decoration:line-through;text-decoration-color:var(--muted-2)}
.ds .pk .pk-chip:focus-visible{outline:2px solid var(--navy-800);outline-offset:2px}
.ds .pk-chip--img{padding-left:6px}
.ds .pk-chip--img img{width:30px;height:30px;border-radius:8px;object-fit:cover}
/* แถวซื้อ: stepper + ปุ่มแดง + ปุ่มใบเสนอราคา */
.ds .pk .pk-buy{display:flex;flex-wrap:wrap;align-items:center;gap:10px 12px;margin:0}
.ds .pk .pk-qty{gap:10px}
.ds .pk .pk-qty-lab{font-family:var(--font-display);font-weight:500;font-size:15px;color:var(--ink-700)}
.ds .qty-stepper.stepper{height:48px;border-radius:var(--pill);border:1.5px solid var(--line);background:#fff;padding:0;gap:0;box-shadow:none}
.ds .qty-stepper.stepper .qty-btn{width:44px;height:100%;min-width:0;border:0;border-radius:0;background:none;color:var(--navy-800);font-family:var(--font-display);font-size:20px;line-height:1}
.ds .qty-stepper.stepper .qty-btn:hover{background:var(--soft)}
.ds .qty-stepper.stepper .qty-input{width:54px;height:100%;border:0;border-radius:0;background:transparent;text-align:center;font-family:var(--font-display);font-weight:500;font-size:16px;color:var(--ink);box-shadow:none}
.ds .pk .pk-add{flex:1 1 180px;min-height:52px;padding:6px 22px;border-radius:var(--pill);font-size:16px}
.ds .pk .pk-add:disabled{background:var(--soft-2);color:var(--muted);border-color:transparent;opacity:1}
.ds .pk .pk-quote{flex:0 1 auto;min-height:52px;padding:6px 20px;border-radius:var(--pill)}
.ds .pk .pk-quote:disabled{opacity:.45}
.ds .pk .pk-total{margin:0;font-size:14.5px;color:var(--muted)}
.ds .pk .pk-total b{font-family:var(--font-display);font-weight:600;color:var(--ink)}
.ds .pk-line{min-height:44px;padding:4px 18px;border-radius:var(--pill);background:var(--line-green);color:#fff;font-family:var(--font-display);font-weight:500;font-size:15px}
.ds .pk-line:hover{background:#05B34C;color:#fff}
/* ไม่มีราคาเลย: สอบถามทาง LINE / ชวนสมัคร / รออนุมัติ */
.ds .vt-cta-box--card{padding:22px 20px;border:1.5px dashed var(--navy-100);border-radius:var(--r-md);background:var(--paper);gap:10px}
.ds .vt-cta-box--card>svg{width:28px;height:28px;color:var(--red-600)}
.ds .vt-cta-box--card.vt-cta-box--pending{background:var(--warn-bg);border-color:#F3D9A4}
.ds .vt-cta-box--pending>svg{color:var(--warn)}
.ds .vt-cta-title{font-family:var(--font-display);font-weight:500;font-size:18px;color:var(--ink);text-align:center}
.ds .vt-cta-sub{font-size:14px;color:var(--muted);text-align:center}
.ds .vt-cta-sub a{color:var(--navy-800);font-weight:500;text-decoration:underline;text-underline-offset:3px}
.ds .vt-cta-btn{min-height:48px}
.ds .pk-ask{text-align:center;align-items:center}
.ds .pk-ask .pk-big{font-family:var(--font-display);font-weight:600;font-size:24px;color:var(--ink)}
.ds .pk-ask .pk-cap{font-size:14.5px;color:var(--muted)}
.ds .pk-ask-list{justify-content:center}
.ds .pk-ask-list li{border:0;background:var(--soft);font-size:13.5px;color:var(--ink-700)}
.ds .price-cta{margin:0;border-radius:var(--r);padding:14px 16px;font-size:15px;line-height:1.55}
.ds .price-cta--guest{display:flex;flex-wrap:wrap;align-items:center;gap:10px 14px;background:var(--navy-50);border:1px solid var(--navy-100)}
.ds .price-cta--guest .price-cta-text{flex:1 1 260px}
.ds .price-cta--guest .price-cta-text svg{color:var(--red-600);margin-top:3px}
.ds .price-cta--guest .price-cta-text b{color:var(--ink);font-family:var(--font-display);font-weight:500}
.ds .price-cta-actions{margin:0;align-items:center;gap:10px}
.ds .price-cta-login{font-size:13.5px}
.ds .price-cta-login a,.ds .price-cta--pending a{color:var(--navy-800);text-decoration:underline;text-underline-offset:3px}
.ds .price-cta--pending{background:var(--warn-bg);border:1px solid #F3D9A4;color:var(--warn)}

/* ── ทีมงานเท่านั้น: ราคาแต่ละกลุ่ม + หมายเหตุ (ลูกค้าไม่ได้รับ HTML ก้อนนี้) ── */
.ds .staff-prices{margin:0;border:2px solid var(--navy-800);border-radius:var(--r-md);background:var(--paper);overflow:hidden}
.ds .staff-prices .sp-head,.ds .staff-note .sp-head{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;padding:12px 16px;border-bottom:1px solid var(--line);font-family:var(--font-display);font-weight:500;font-size:15px;color:var(--navy-800)}
.ds .staff-tag{display:inline-flex;align-items:center;gap:6px;height:26px;padding:0 10px;border-radius:var(--pill);background:var(--navy-800);color:var(--yellow-500);font-family:var(--font-display);font-size:12.5px;font-weight:500}
.ds .staff-tag svg{width:14px;height:14px}
.ds .sp-head .sp-sub{font-family:var(--font-body);font-weight:400;font-size:13px;color:var(--muted)}
.ds .sp-scroll{overflow-x:auto}
.ds .sp-t{font-size:14px}
.ds .sp-t th{padding:9px 12px;font-family:var(--font-display);font-weight:500;font-size:13px}
.ds .sp-t td{padding:10px 12px;border-top:1px solid var(--line)}
.ds .sp-t .sp-opt{background:var(--paper)}
.ds .sp-t th.sp-opt{background:var(--soft)}
.ds .sp-net{font-family:var(--font-display);font-weight:600;font-size:15px;color:var(--ink)}
.ds .sp-list{color:var(--muted-2);font-size:13px}
.ds .sp-pct{display:inline-block;padding:0 6px;border-radius:var(--pill);background:var(--red-50);color:var(--red-600);font-family:var(--font-display);font-size:12px;font-weight:500}
.ds .staff-note{margin:0;border:1px dashed #E5C36A;border-radius:var(--r-md);background:var(--yellow-100)}
.ds .staff-note .sp-head{color:#7A5200;border-bottom-color:#F1DDA2}
.ds .staff-note .sp-head .sp-sub{color:#8A6A1E}
.ds .staff-note p{padding:12px 16px;font-size:15px;color:var(--ink)}

/* ── รายละเอียด · ข้อมูลจำเพาะ · ช่องทางสั่ง ── */
.ds .detail-desc-block{margin:0;padding:18px 20px;border:1px solid var(--line);border-radius:var(--r-md);background:var(--paper)}
.ds .detail-desc-h{margin:0 0 10px;font-size:18px;font-weight:500}
.ds .pd-desc{font-size:15.5px;line-height:1.75;color:var(--ink-700)}
.ds .pd-desc .pd-h{font-family:var(--font-display);font-weight:500;font-size:16px;color:var(--ink)}
.ds .pd-desc .pd-list li::marker{color:var(--red-600)}
.ds .pd-spec.table-wrap{border-radius:var(--r-sm)}
.ds .pd-spec .table{min-width:420px;font-size:14.5px}
.ds .pd-spec .table th{padding:10px 14px;background:var(--soft);color:var(--ink-700);font-size:14px;white-space:nowrap}
.ds .pd-spec .table td{padding:10px 14px;background:none}
.ds .detail-cta--channels{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:0;padding:0;border:0}
.ds .detail-cta--channels .detail-cta-lead{font-size:14.5px;color:var(--muted)}
.ds .detail-cta--channels .btn{min-height:44px;padding:4px 18px;font-size:15px;gap:8px}
.ds .detail-cta--channels .btn svg{width:17px;height:17px}
.ds .detail-cta--channels .btn--outline svg{color:var(--line-green)}
.ds .detail-cta--channels .btn--outline[href^="tel:"] svg{color:var(--navy-800)}
.ds .pd-more:not([hidden]){min-height:40px;margin-top:8px;padding:0 14px;border:1px solid var(--line);border-radius:var(--pill);font-family:var(--font-display);font-weight:500;font-size:14px;color:var(--navy-800)}

/* ── สินค้าในหมวด / สินค้าอื่นๆ ── */
.ds .product-page .related{margin-top:clamp(40px,5vw,56px)}
.ds .product-page .related h2,.ds .product-page .more-products h2{font-size:clamp(21px,2.2vw,26px);margin-bottom:16px}
.ds .product-page .more-products{margin-top:0}
.ds .section-divider{border:0;border-top:1px solid var(--line);margin:36px 0 28px}

/* ── ไลท์บ็อกซ์ · แผงแชร์ ── */
.ds.lightbox{background:rgba(18,28,38,.94)}
.ds.lightbox img{border-radius:var(--r-md)}
.ds.lightbox .lb-btn{width:46px;height:46px}
.ds.lightbox .lb-count{border-radius:var(--pill)}
.ds.share-sheet .share-panel{border-radius:var(--r-lg);padding:20px}
.ds.share-sheet .share-head b{font-family:var(--font-display);font-weight:500;font-size:18px}
.ds.share-sheet .share-x{width:44px;height:44px;border-radius:50%;background:var(--navy-50);color:var(--navy-800);display:grid;place-items:center}
.ds.share-sheet .share-opt{min-height:52px;border-radius:var(--r);font-family:var(--font-display);font-weight:500;font-size:15px}
.ds.share-sheet .so-ic{width:40px;height:40px}

/* ── มือถือ (≤900): แผ่นตัวเลือก + แถบสั่งซื้อติดล่าง (กลไกจาก catalog.css · ที่นี่เปลี่ยนผิว) ── */
@media (max-width:900px){
  .ds .product-detail{grid-template-columns:minmax(0,1fr);gap:16px}
  .ds .detail-info{gap:10px}
  .ds .detail-info h1{font-size:21px;line-height:1.35}
  .ds .detail-cta--channels .detail-cta-lead{flex-basis:100%}
  .ds .detail-cta--channels .btn{flex:1 1 140px;padding-inline:12px}
  .ds .pk.is-sheet .pk-sheet{position:fixed;padding:0;gap:0;border:0;border-radius:var(--r-lg) var(--r-lg) 0 0;box-shadow:0 -24px 60px -20px rgba(18,28,38,.5)}
  .ds .pk.is-sheet .pk-sheet-top{padding:16px 18px 0}
  .ds .pk.is-sheet .pk-sheet-top::before{content:"";display:block;width:40px;height:4px;margin:-6px auto 10px;border-radius:2px;background:var(--line-strong)}
  .ds .pk.is-sheet .pk-sheet-mid{padding:0 18px 14px}
  .ds .pk.is-sheet .pk-sheet-foot{padding:12px 18px calc(12px + env(safe-area-inset-bottom,0px))}
  .ds .pk.is-sheet .pk-sheet-title{font-family:var(--font-display);font-weight:500;font-size:18px;color:var(--ink)}
  .ds .pk.is-sheet .pk-sheet-x{width:44px;height:44px;background:var(--navy-50)}
  .ds .pk.is-sheet .pk-price--sheet{padding:10px 14px;margin:0 0 12px;border-radius:var(--r);box-shadow:none}
  .ds .pk.is-sheet .pk-price--sheet .pk-big{font-size:24px}
  .ds .pk.is-sheet .pk-open{min-height:52px;padding:8px 16px;border:1.5px solid var(--red-600);border-radius:var(--r);background:var(--red-50);color:var(--red-600);font-family:var(--font-display);font-weight:500}
  .ds .pk.is-sheet .pk-add{min-height:48px}
  .ds .pk.is-sheet .pk-quote{min-height:48px}
  .ds .pk.is-inline .pk-buy{gap:10px}
  /* แถบล่างจอ: แชทไลน์ · ใบเสนอราคา · เพิ่มไปยังรถเข็น · ซื้อเลย */
  .pdp-bar.ds:not([hidden]){gap:8px;padding:10px 12px calc(10px + env(safe-area-inset-bottom,0px));background:rgba(255,255,255,.97);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-top:1px solid var(--line);box-shadow:0 -12px 30px -20px rgba(30,45,59,.4)}
  .pdp-bar.ds .pdp-line{width:56px;min-height:48px;border:0;border-radius:var(--r-sm);font-family:var(--font-display);font-weight:500;font-size:11px;gap:2px}
  .pdp-bar.ds .pdp-quote{background:var(--navy-50);color:var(--navy-800)}
  .pdp-bar.ds .pdp-line svg{width:20px;height:20px}
  .pdp-bar.ds .btn.pdp-act{flex:1;min-width:0;min-height:48px;padding:4px 10px;font-size:15px;gap:6px}
  .pdp-bar.ds .btn.pdp-act:hover{transform:none}
}
@media (max-width:420px){.pdp-bar.ds .btn.pdp-act{font-size:14px;padding:4px 6px}}

/* ============================================================================
   3. /brands — โลโก้ 1:1 มุม 20 · 6 คอลัมน์ (แท็บเล็ต 4 · มือถือ 3)
   ============================================================================ */
.ds .br-top{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:16px 28px;margin:6px 0 22px}
.ds .br-top h1{margin-top:8px;font-size:clamp(24px,2.8vw,34px)}
.ds .br-top .lead{margin-top:6px;font-size:16px}
.ds .br-find{flex:0 1 340px;min-width:min(100%,240px);background:#fff}
.ds .br-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px}
.ds .br-card{display:flex;flex-direction:column;min-width:0;background:var(--paper);border:1px solid var(--line);border-radius:var(--r-md);overflow:hidden;transition:transform var(--d-lift) var(--ease),box-shadow var(--d-lift),border-color var(--d-color)}
.ds .br-card[hidden]{display:none}
@media (hover:hover){.ds .br-card:hover{transform:translateY(-3px);box-shadow:var(--shadow);border-color:transparent}}
.ds .br-card:focus-visible{outline:2px solid var(--navy-800);outline-offset:2px}
.ds .br-logo{aspect-ratio:1;display:grid;place-items:center;padding:16%}
.ds .br-logo img{max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain}
.ds .br-txt{font-family:var(--font-display);font-weight:600;font-size:17px;line-height:1.25;color:var(--navy-800);text-align:center;overflow-wrap:anywhere}
.ds .br-name{display:flex;flex-direction:column;gap:1px;min-width:0;padding:8px 12px 10px;border-top:1px solid var(--line);line-height:1.35}
.ds .br-name b{font-family:var(--font-display);font-weight:500;font-size:14.5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ds .br-name span{font-size:13px;color:var(--muted)}
.ds .br-none{margin-top:8px;background:var(--paper);border:1px solid var(--line);border-radius:var(--r-lg)}
.ds .br-none[hidden]{display:none}
.ds .br-none__h{font-size:20px}
.ds .br-none a{color:var(--red-600);font-weight:500;text-decoration:underline;text-underline-offset:3px}
@media (max-width:1199px){.ds .br-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media (max-width:767px){
  .ds .br-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
  .ds .br-name{padding:6px 8px 8px}
  .ds .br-name b{font-size:13px}
  .ds .br-name span{font-size:12px}
  .ds .br-txt{font-size:14px}
  .ds .br-find{flex-basis:100%}
}

/* ============================================================================
   4. /favorites — หัว + กริดการ์ด (หัวใจทึบ = เอาออก) · ว่าง
   ============================================================================ */
.ds .fav-head{display:flex;align-items:baseline;flex-wrap:wrap;gap:6px 12px;margin:6px 0 18px}
.ds .fav-head h1{font-size:clamp(24px,2.8vw,32px)}
.ds .fav-count{font-size:15px;color:var(--muted)}
.ds .fav-empty{max-width:560px;margin:0 auto;background:var(--paper);border:1px solid var(--line);border-radius:var(--r-lg)}
.ds .fav-empty .empty__ico{color:var(--red-600);background:var(--red-50)}
.ds .fav-empty__h{font-size:20px}
@media (min-width:1200px){.ds .fav-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:16px}}
