:root{
  --bg:#111111;
  --bg2:#181818;
  --gray:#2b2b2b;
  --line:#333;
  --white:#ffffff;
  --muted:#b8b8b8;
  --orange:#ff7a00;
  --gold:#f59e0b;
  --grad-orange:linear-gradient(135deg,#ff7a00,#f59e0b);
  --shadow:0 18px 50px rgba(0,0,0,.55);
}
*{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth;overflow-x:hidden}
body{
  font-family:'Kanit','Noto Sans Thai',sans-serif;
  background:#0d0d0d;
  color:var(--white);
  line-height:1.6;
  position:relative;
  overflow-x:clip;
  width:100%;
}
/* asphalt / chalkboard texture */
body::before{
  content:"";
  position:fixed;inset:0;z-index:-2;
  background:
    radial-gradient(circle at 18% 12%,rgba(255,122,0,.07),transparent 38%),
    radial-gradient(circle at 85% 8%,rgba(255,255,255,.04),transparent 40%),
    radial-gradient(circle at 70% 85%,rgba(245,158,11,.06),transparent 45%),
    linear-gradient(180deg,#161616,#0d0d0d 60%,#0a0a0a);
}
body::after{
  content:"";
  position:fixed;inset:0;z-index:-1;opacity:.5;pointer-events:none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.35'/%3E%3C/svg%3E");
}
a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}
.container{max-width:1240px;margin:0 auto;padding:0 22px}
section{padding:80px 0;position:relative}

/* ===== Decorative section heading ===== */
.sec-head{text-align:center;margin-bottom:48px}
.sec-head .pre{color:var(--gold);font-size:.85rem;letter-spacing:4px;text-transform:uppercase;font-weight:500}
.sec-head h2{font-size:clamp(1.8rem,4vw,2.8rem);font-weight:700;margin:6px 0 10px;letter-spacing:.5px}
.sec-head h2 span{background:var(--grad-orange);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}
.sec-head .deco{display:inline-flex;align-items:center;gap:12px;color:var(--orange);opacity:.8}
.sec-head .deco::before,.sec-head .deco::after{content:"";width:60px;height:1px;background:linear-gradient(90deg,transparent,var(--orange))}
.sec-head .deco::after{background:linear-gradient(90deg,var(--orange),transparent)}

/* ===== Buttons ===== */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:9px;font-family:inherit;font-size:.95rem;font-weight:600;padding:12px 24px;border-radius:10px;cursor:pointer;border:none;transition:.25s;white-space:nowrap}
.btn-primary{background:var(--grad-orange);color:#1a1200;box-shadow:0 8px 22px rgba(255,122,0,.32)}
.btn-primary:hover{transform:translateY(-2px);box-shadow:0 12px 30px rgba(255,122,0,.5)}
.btn-outline{background:transparent;color:var(--gold);border:1px solid var(--gold)}
.btn-outline:hover{background:rgba(245,158,11,.12);transform:translateY(-2px)}
.btn-ghost{background:var(--gray);color:#fff;border:1px solid var(--line)}
.btn-ghost:hover{border-color:var(--orange);color:var(--orange)}
.btn-block{width:100%}

/* ===== Header ===== */
#header-placeholder{position:sticky;top:0;z-index:900}
#header-placeholder.nav-open{z-index:1002}
header{position:relative;background:rgba(13,13,13,.82);backdrop-filter:blur(12px);border-bottom:1px solid rgba(255,122,0,.18)}
.nav{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:18px;padding:14px 0}
.logo{display:flex;flex-direction:column;line-height:1.05;align-items:center;text-align:center;justify-self:center}
.logo .brand{font-weight:800;font-size:1.45rem;letter-spacing:1px;display:flex;align-items:center;gap:9px}
.logo .brand i{color:var(--orange)}
.logo .brand span{background:var(--grad-orange);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}
.logo small{color:var(--muted);font-size:.66rem;letter-spacing:2.5px;text-transform:uppercase}
.logo-img{height:50px;width:auto;display:block}
.foot-logo img{height:62px;width:auto;display:block}
.menu{display:flex;align-items:center;gap:26px;list-style:none}
.menu.left{justify-self:stretch;justify-content:space-evenly}
.menu.right{justify-self:start;justify-content:space-evenly;flex:1}
.menu a{font-size:.95rem;color:#ddd;position:relative;font-weight:400;transition:.2s}
.menu a::after{content:"";position:absolute;left:0;bottom:-6px;width:0;height:2px;background:var(--grad-orange);transition:.25s}
.menu a:hover{color:#fff}
.menu a:hover::after{width:100%}
.menu a.active{color:#fff}
.menu a.active::after{width:100%}
.nav-right{display:flex;align-items:center;gap:14px;justify-self:stretch}
.nav-right .cart-btn{margin-left:auto}
/* landmark หลักของทุกหน้า (บางเบราว์เซอร์เก่ายังไม่ตั้ง display ให้ main) */
main{display:block}
/* หัวข้อสำหรับ screen reader อย่างเดียว — ใช้คั่นลำดับ heading ไม่ให้ข้ามระดับ */
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.menu-mobile{display:none;list-style:none}
.menu-mobile a.active{color:var(--orange)}
/* ปุ่ม "ตะกร้า" ในเมนูมือถือ — ใช้ <button> เพราะเปิดหน้าต่าง ไม่ได้พาไปหน้าอื่น แต่หน้าตาเหมือนลิงก์อื่น */
.menu-mobile .mm-cart{background:none;border:none;font-family:inherit;text-align:left;cursor:pointer}
.cart-btn{position:relative;background:var(--gray);border:1px solid var(--line);color:#fff;width:46px;height:46px;border-radius:11px;cursor:pointer;font-size:1.1rem;transition:.2s}
.cart-btn:hover{border-color:var(--orange);color:var(--orange)}
.cart-count{position:absolute;top:-7px;right:-7px;background:var(--grad-orange);color:#1a1200;font-size:.72rem;font-weight:700;min-width:21px;height:21px;border-radius:50%;display:flex;align-items:center;justify-content:center;padding:0 5px}
.hamburger{display:none;background:none;border:none;color:#fff;font-size:1.4rem;cursor:pointer}
/* จองพื้นที่ header กันเลย์เอาต์ขยับตอน component โหลด */
#header-placeholder{display:block;min-height:71px}

/* ===== Hero (full-bleed slider) ===== */
.hero{position:relative;min-height:90vh;padding:0;display:flex;flex-direction:column;justify-content:center;overflow:hidden}
.hero-bg{position:absolute;inset:0;z-index:0;background:#0a0a0a url('/images/hero-cover.webp') center/cover no-repeat;transition:transform 7s ease;transform:scale(1.05)}
.hero.swap .hero-bg{opacity:.85}
.hero-shade{position:absolute;inset:0;z-index:1;background:
  linear-gradient(90deg,rgba(8,8,8,.94),rgba(8,8,8,.55) 42%,rgba(8,8,8,.12) 66%,rgba(8,8,8,.45)),
  linear-gradient(0deg,rgba(8,8,8,.8),transparent 42%)}
.hero-inner{position:relative;z-index:2;width:100%;min-height:78vh;padding-top:48px;padding-bottom:14px}
.hero-content{position:absolute;left:22px;top:50%;transform:translateY(-50%);width:min(460px,44%);animation:heroFade .6s ease}
@keyframes heroFade{from{opacity:0}to{opacity:1}}
.hero-badge{display:inline-flex;align-items:center;gap:8px;background:rgba(255,122,0,.12);border:1px solid rgba(255,122,0,.4);color:var(--gold);font-size:.74rem;letter-spacing:2px;padding:6px 14px;border-radius:30px;text-transform:uppercase;margin-bottom:18px}
.hero-eyebrow{display:flex;align-items:center;gap:10px;color:#ddd;font-size:.9rem;letter-spacing:3px;text-transform:uppercase;margin-bottom:10px}
.hero-eyebrow::before{content:"";width:34px;height:1px;background:var(--orange)}
.hero-content h1{font-size:clamp(2.2rem,4.6vw,3.7rem);font-weight:800;line-height:1;letter-spacing:.5px;text-shadow:0 4px 30px rgba(0,0,0,.5);overflow-wrap:break-word}
.hero-content h1 span{background:var(--grad-orange);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}
.hero-content p.lead{color:#cfcfcf;margin:16px 0 22px;font-size:1.02rem;max-width:430px}
.spec-row{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:26px}
.spec{display:flex;align-items:center;gap:9px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.12);backdrop-filter:blur(4px);padding:9px 13px;border-radius:11px}
.spec i{color:var(--orange);font-size:1.05rem}
.spec b{display:block;font-size:.84rem;font-weight:600}
.spec small{color:var(--muted);font-size:.68rem}
.hero-price{display:inline-flex;align-items:baseline;gap:8px;margin-bottom:22px}
.hero-price small{color:var(--muted);font-size:.8rem}
.hero-price b{color:var(--gold);font-size:1.7rem;font-weight:700}
.hero-btns{display:flex;gap:14px;flex-wrap:wrap}
.hero-cta{display:inline-flex;align-items:center;gap:14px;background:none;border:none;color:#fff;font-family:inherit;font-size:.92rem;font-weight:600;letter-spacing:1px;cursor:pointer;text-transform:uppercase}
.hero-cta .ring{width:54px;height:54px;border-radius:50%;background:var(--grad-orange);display:flex;align-items:center;justify-content:center;color:#1a1200;font-size:1.1rem;box-shadow:0 8px 22px rgba(255,122,0,.4);transition:.25s}
.hero-cta:hover .ring{transform:scale(1.08)}

/* floating product cards (right) */
.hero-cards-col{position:absolute;right:40px;top:50%;transform:translateY(-50%);display:flex;flex-direction:column;align-items:center;gap:18px;z-index:3}
.hero-cards{position:relative}
.hero-card{position:absolute;top:0;left:0;width:200px;height:278px;border-radius:20px;overflow:hidden;background:#0a0a0a center/cover;cursor:pointer;box-shadow:0 22px 45px rgba(0,0,0,.55);border:1px solid rgba(255,255,255,.08);transition:transform .55s cubic-bezier(.25,.8,.25,1),opacity .55s,box-shadow .4s,border-color .4s;will-change:transform,opacity}
.hero-card:hover{box-shadow:0 28px 60px rgba(0,0,0,.7);border-color:rgba(245,158,11,.6)}
.hero-cards.hero-noanim .hero-card{transition:none}
.hero-card .hc-sh{position:absolute;inset:0;background:linear-gradient(0deg,rgba(6,6,6,.9),transparent 55%)}
.hero-card .hc-txt{position:absolute;left:0;right:0;bottom:0;padding:14px;z-index:2}
.hero-card .hc-cat{color:var(--gold);font-size:.62rem;letter-spacing:1px;text-transform:uppercase}
.hero-card .hc-name{font-size:.92rem;font-weight:600;line-height:1.2}

/* controls */
.hero-controls{display:flex;align-items:center;gap:18px;width:100%}
.hero-arrows{display:flex;gap:10px}
.hero-arrow{width:46px;height:46px;border-radius:50%;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.25);color:#fff;font-size:1rem;cursor:pointer;backdrop-filter:blur(6px);transition:.2s}
.hero-arrow:hover{background:var(--grad-orange);color:#1a1200;border-color:transparent}
.hero-progress{flex:1;height:2px;background:rgba(255,255,255,.2);position:relative;overflow:hidden}
.hero-progress span{position:absolute;left:0;top:0;height:100%;background:var(--grad-orange);transition:width .5s ease}
.hero-num{font-size:2rem;font-weight:700;color:#fff;letter-spacing:1px}
.hero-num small{color:var(--gold);font-size:.95rem;font-weight:500}

/* ===== Page hero (sub pages) ===== */
.page-hero{padding:60px 0 10px;text-align:center}
.page-hero .pre{color:var(--gold);font-size:.85rem;letter-spacing:4px;text-transform:uppercase;font-weight:500}
.page-hero h1{font-size:clamp(2rem,5vw,3.2rem);font-weight:800;margin:8px 0 10px}
.page-hero h1 span{background:var(--grad-orange);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}
.page-hero p{color:var(--muted);max-width:560px;margin:0 auto}
.breadcrumb{display:flex;justify-content:center;gap:8px;color:var(--muted);font-size:.85rem;margin-top:14px}
.breadcrumb a:hover{color:var(--orange)}
.breadcrumb i{font-size:.7rem;opacity:.6;align-self:center}

/* ===== Features ===== */
.features{background:linear-gradient(180deg,transparent,rgba(255,122,0,.03),transparent)}
.feat-split{display:flex;align-items:center;gap:48px}
.feat-media{flex:1.15 1 0;max-width:500px;border-radius:18px;overflow:hidden}
.feat-media img{width:100%;height:auto;display:block}
.feat-body{flex:1 1 0}
.feat-body .sec-head{text-align:left;margin-bottom:28px}
.feat-body .sec-head .deco{justify-content:flex-start}
.feat-grid{display:flex;flex-direction:column;gap:14px}
.feat{display:flex;align-items:center;gap:16px;text-align:left;padding:16px 18px;border:1px solid var(--line);border-radius:14px;background:linear-gradient(160deg,rgba(40,40,40,.5),rgba(17,17,17,.6));transition:.3s}
.feat:hover{transform:translateX(6px);border-color:rgba(245,158,11,.5)}
.feat .ic{flex:none;width:52px;height:52px;border-radius:12px;display:flex;align-items:center;justify-content:center;font-size:1.35rem;color:var(--orange);background:rgba(255,122,0,.1);border:1px solid rgba(255,122,0,.35)}
.feat h3{font-size:1.02rem;font-weight:600;margin-bottom:3px}
.feat p{color:var(--muted);font-size:.86rem}

/* ===== Products ===== */
.filter-bar{position:relative;z-index:6;padding:0 22px;margin-top:30px}
.filter-bar.overlap{margin-top:-50px}   /* ลอยซ้อนขอบล่าง hero */
.filter-card{max-width:920px;margin:0 auto;background:linear-gradient(160deg,rgba(34,34,34,.97),rgba(18,18,18,.98));backdrop-filter:blur(10px);border:1px solid rgba(245,158,11,.4);border-radius:18px;box-shadow:0 26px 60px rgba(0,0,0,.6);padding:22px 26px}
.filter-card .label{display:flex;align-items:center;justify-content:center;gap:8px;color:var(--gold);font-size:.74rem;letter-spacing:3px;text-transform:uppercase;margin-bottom:16px}
.filter-top{display:flex;gap:12px;margin-bottom:14px;flex-wrap:wrap}
.filter-search{flex:1;min-width:200px;display:flex;align-items:center;gap:10px;background:#141414;border:1px solid var(--line);border-radius:10px;padding:0 14px;transition:.2s}
.filter-search:focus-within{border-color:var(--orange);box-shadow:0 0 0 3px rgba(255,122,0,.12)}
.filter-search i{color:var(--muted)}
.filter-search input{flex:1;background:none;border:none;color:#fff;font-family:inherit;font-size:.92rem;padding:11px 0;outline:none}
.filter-select{background:#141414;border:1px solid var(--line);border-radius:10px;color:#fff;font-family:inherit;font-size:.86rem;padding:11px 12px;cursor:pointer;outline:none;transition:.2s}
.filter-select:focus{border-color:var(--orange)}
.filter-row{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin-bottom:12px}
.filter-row:last-of-type{margin-bottom:0}
.filter-label-inline{color:var(--muted);font-size:.82rem;white-space:nowrap}
.prod-filter{display:flex;flex-wrap:wrap;gap:8px}
/* แถวหมวดหมู่: เลื่อนแนวนอนได้ มีกี่หมวดก็อยู่บรรทัดเดียว ไม่ตกแถว */
.cats-row .prod-filter{flex:1;min-width:0;flex-wrap:nowrap;overflow-x:auto;padding-bottom:5px;scrollbar-width:thin;scrollbar-color:rgba(245,158,11,.5) transparent}
.cats-row .prod-filter .filter-btn{flex:0 0 auto}
.cats-row .prod-filter::-webkit-scrollbar{height:6px}
.cats-row .prod-filter::-webkit-scrollbar-track{background:rgba(255,255,255,.04);border-radius:10px}
.cats-row .prod-filter::-webkit-scrollbar-thumb{background:rgba(245,158,11,.5);border-radius:10px}
.filter-btn{display:inline-flex;align-items:center;gap:7px;font-family:inherit;font-size:.85rem;font-weight:500;padding:9px 16px;border-radius:30px;background:rgba(255,255,255,.04);border:1px solid var(--line);color:#ddd;cursor:pointer;transition:.25s}
.filter-btn:hover{border-color:rgba(245,158,11,.5);color:#fff}
.filter-btn.active{background:var(--grad-orange);color:#1a1200;border-color:transparent;box-shadow:0 8px 20px rgba(255,122,0,.3)}
.filter-result{text-align:center;color:var(--muted);font-size:.82rem;margin-top:16px;border-top:1px solid var(--line);padding-top:14px}
.filter-result b{color:var(--gold);font-weight:600}
/* องค์ประกอบ bottom sheet (เดสก์ท็อปซ่อนไว้ ใช้เฉพาะมือถือ) */
.filter-toggle,.filter-backdrop,.sheet-head,.sheet-foot{display:none}
.prod-empty{width:100%;text-align:center;color:var(--muted);padding:50px 20px}
.prod-empty i{font-size:2.6rem;color:var(--gray);margin-bottom:12px;display:block}
.prod-grid{display:flex;flex-wrap:wrap;justify-content:center;gap:24px}
.prod-grid .card{flex:0 1 calc((100% - 48px)/3);min-width:0}
.card{background:transparent;border:none;transition:.3s;display:flex;flex-direction:column;position:relative}
.card:hover{transform:translateY(-8px)}
.card .thumb{height:230px;position:relative;background:#0a0a0a center/cover;border-radius:18px;overflow:hidden;transition:.3s;box-shadow:0 18px 40px rgba(0,0,0,.5)}
.card:hover .thumb{box-shadow:0 24px 55px rgba(0,0,0,.65),0 0 0 1px rgba(245,158,11,.4)}
.card .thumb .overlay{position:absolute;inset:0;background:linear-gradient(0deg,rgba(10,10,10,.75),transparent 55%)}
.card .cat{position:absolute;top:12px;left:12px;z-index:2;font-size:.72rem;font-weight:600;letter-spacing:1px;padding:5px 12px;border-radius:30px;background:rgba(13,13,13,.7);border:1px solid rgba(245,158,11,.45);color:var(--gold)}
.card .body{padding:18px 6px 0;display:flex;flex-direction:column;flex:1;text-align:center}
.card h3{font-size:1.15rem;font-weight:600}
.card .desc{color:var(--muted);font-size:.85rem;margin:6px 0 14px;flex:1}
.card .price{font-size:1.45rem;font-weight:700;color:var(--gold);margin-bottom:16px}
.card .price small{font-size:.8rem;color:var(--muted);font-weight:400}
.card .actions{display:flex;gap:10px}
.card .actions .btn{flex:1;padding:10px 12px;font-size:.85rem}

/* ===== Coverflow Showcase ===== */
.cf-wrap{position:relative;height:560px;margin-top:10px;display:flex;align-items:center;justify-content:center;perspective:1700px;overflow:hidden}
.cf-track{position:relative;width:100%;height:100%;transform-style:preserve-3d}
.cf-slide{position:absolute;top:50%;left:50%;width:340px;height:490px;margin:-245px 0 0 -170px;border-radius:22px;overflow:hidden;background:#0a0a0a center/cover;cursor:pointer;transition:transform .55s cubic-bezier(.25,.8,.25,1),opacity .55s,box-shadow .4s;box-shadow:0 20px 45px rgba(0,0,0,.55);border:1px solid rgba(255,255,255,.06)}
.cf-slide .cf-ov{position:absolute;inset:0;background:linear-gradient(0deg,rgba(8,8,8,.92),rgba(8,8,8,.15) 55%,transparent);display:flex;flex-direction:column;justify-content:flex-end;padding:22px;opacity:0;transition:.45s}
.cf-slide.active{border-color:rgba(245,158,11,.6);box-shadow:0 28px 60px rgba(0,0,0,.7),0 0 0 1px rgba(245,158,11,.35)}
.cf-slide.active .cf-ov{opacity:1}
.cf-slide .cf-cat{align-self:flex-start;font-size:.68rem;font-weight:600;letter-spacing:1px;padding:4px 11px;border-radius:30px;background:rgba(255,122,0,.15);border:1px solid rgba(245,158,11,.5);color:var(--gold);margin-bottom:10px}
.cf-slide h3{font-size:1.2rem;font-weight:600;line-height:1.2}
.cf-slide .cf-price{color:var(--gold);font-size:1.25rem;font-weight:700;margin:6px 0 14px}
.cf-slide .cf-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;background:var(--grad-orange);color:#1a1200;font-family:inherit;font-weight:600;font-size:.85rem;border:none;padding:10px;border-radius:10px;cursor:pointer;transition:.2s}
.cf-slide .cf-btn:hover{transform:translateY(-2px);box-shadow:0 8px 20px rgba(255,122,0,.4)}
.cf-arrow{position:absolute;top:50%;transform:translateY(-50%);z-index:30;width:50px;height:50px;border-radius:14px;background:rgba(20,20,20,.8);border:1px solid rgba(245,158,11,.4);color:var(--gold);font-size:1.1rem;cursor:pointer;backdrop-filter:blur(6px);transition:.2s}
.cf-arrow:hover{background:var(--grad-orange);color:#1a1200;border-color:transparent}
.cf-arrow.prev{left:max(16px,calc(50% - 600px))}
.cf-arrow.next{right:max(16px,calc(50% - 600px))}
.cf-dots{display:flex;justify-content:center;gap:9px;margin-top:24px}
.cf-dots button{width:9px;height:9px;border-radius:50%;border:none;background:var(--gray);cursor:pointer;transition:.25s;padding:0}
.cf-dots button.on{width:26px;border-radius:6px;background:var(--grad-orange)}

/* ===== Reviews ===== */
.reviews{background:linear-gradient(180deg,transparent,rgba(0,0,0,.4))}
.rev-grid{overflow:hidden;-webkit-mask-image:linear-gradient(90deg,transparent,#000 6%,#000 94%,transparent);mask-image:linear-gradient(90deg,transparent,#000 6%,#000 94%,transparent)}
.rev-track{display:flex;width:max-content;animation:revScroll 50s linear infinite}
.rev-track:hover{animation-play-state:paused}
.rev-track .review{flex:0 0 clamp(280px,30vw,380px);margin-right:24px}
@keyframes revScroll{from{transform:translateX(0)}to{transform:translateX(-50%)}}
@media (prefers-reduced-motion:reduce){.rev-track{animation:none}}
.review{display:flex;flex-direction:column;gap:14px;padding:24px;border:1px solid var(--line);border-radius:16px;background:linear-gradient(160deg,rgba(40,40,40,.55),rgba(17,17,17,.7));transition:.3s}
.review:hover{border-color:rgba(245,158,11,.45);transform:translateY(-4px)}
.review .rev-head{display:flex;align-items:center;gap:14px;position:relative}
.review .rev-avatar{width:58px;height:58px;border-radius:50%;background:#0a0a0a center/cover;flex-shrink:0;border:2px solid rgba(245,158,11,.55)}
.review .rev-meta{flex:1;min-width:0}
.review .rev-meta h3{font-size:1.02rem;font-weight:600}
.review .rev-src{display:flex;align-items:center;gap:5px;color:#9db4e8;font-size:.76rem;margin:2px 0 5px}
.review .rev-src i{color:#1877f2}
.review .stars{color:var(--gold);font-size:.85rem}
.review .rev-quote{position:absolute;top:2px;right:2px;color:var(--orange);opacity:.25;font-size:1.5rem}
.review p{color:var(--muted);font-size:.9rem;line-height:1.7}

/* ===== Knowledge / Video ===== */
.knowledge{background:linear-gradient(180deg,transparent,rgba(255,122,0,.03),transparent)}
.know-wrap{display:flex;gap:48px;align-items:center;justify-content:center}
.know-text{flex:0 1 540px;max-width:540px;min-width:0}
.know-text .sec-head{text-align:left;margin-bottom:20px}
.know-text .sec-head .deco{justify-content:flex-start}
.know-text h3{font-size:clamp(1.4rem,2.6vw,2rem);font-weight:700;line-height:1.25;margin-bottom:14px}
.know-text>p{color:var(--muted);font-size:1rem;line-height:1.8;margin-bottom:18px}
.know-points{list-style:none;display:flex;flex-direction:column;gap:12px;margin-bottom:26px}
.know-points li{display:flex;align-items:flex-start;gap:11px;color:#e4e4e4;font-size:.95rem;line-height:1.5}
.know-points li i{color:var(--gold);margin-top:3px;flex-shrink:0}
.know-video{flex-shrink:0;width:340px;max-width:100%;display:flex;flex-direction:column;align-items:center;gap:14px}
.know-frame{width:100%;aspect-ratio:9/16;border-radius:18px;overflow:hidden;background:#0a0a0a;border:1px solid var(--line);box-shadow:0 22px 50px rgba(0,0,0,.55)}
.know-frame iframe{width:100%;height:100%;border:0;display:block}
.know-fallback{display:inline-flex;align-items:center;gap:8px;color:#9db4e8;font-size:.88rem;font-weight:500;transition:.2s}
.know-fallback i{color:#1877f2}
.know-fallback:hover{color:var(--orange)}

/* ===== Gallery (expanding panels) ===== */
.gallery-row{display:flex;gap:14px;height:460px}
.gpanel{position:relative;flex:1;border-radius:18px;overflow:hidden;cursor:pointer;min-width:56px;box-shadow:0 18px 40px rgba(0,0,0,.5);border:1px solid rgba(255,255,255,.06);transition:flex .6s cubic-bezier(.22,1,.36,1)}
.gallery-row:hover .gpanel{flex:.7}
.gallery-row:hover .gpanel:hover{flex:3.4}
.gpanel img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform .6s cubic-bezier(.22,1,.36,1)}
.gpanel:hover img{transform:scale(1.08)}
.gpanel::after{content:"";position:absolute;inset:0;background:linear-gradient(0deg,rgba(8,8,8,.9),transparent 55%);transition:.4s}
.gpanel .glabel{position:absolute;left:0;right:0;bottom:0;padding:18px;z-index:2;opacity:0;transform:translateY(10px);transition:.45s .1s;white-space:nowrap}
.gpanel:hover .glabel{opacity:1;transform:none}
.gpanel .gcat{color:var(--gold);font-size:.7rem;letter-spacing:1px;text-transform:uppercase}
.gpanel .gname{font-size:1.15rem;font-weight:600;margin-top:2px}
.gpanel .gnum{position:absolute;top:16px;left:16px;z-index:2;font-size:.8rem;font-weight:700;color:#fff;background:rgba(255,122,0,.18);border:1px solid rgba(245,158,11,.5);width:30px;height:30px;border-radius:50%;display:flex;align-items:center;justify-content:center}

/* ===== Contact ===== */
.contact-grid{display:grid;grid-template-columns:1fr 1fr;gap:30px}
.contact-info{padding:30px;border:1px solid var(--line);border-radius:18px;background:linear-gradient(160deg,rgba(40,40,40,.5),rgba(17,17,17,.65))}
.contact-info h3{font-size:1.4rem;margin-bottom:4px}
.contact-info .sub{color:var(--muted);font-size:.85rem;margin-bottom:20px}
.cinfo{display:flex;align-items:flex-start;gap:14px;margin-bottom:16px}
.cinfo i{color:var(--orange);width:38px;height:38px;display:flex;align-items:center;justify-content:center;background:rgba(255,122,0,.1);border:1px solid rgba(255,122,0,.3);border-radius:10px;flex-shrink:0}
.cinfo b{display:block;font-size:.95rem}
.cinfo small{color:var(--muted);font-size:.82rem}
.cinfo small a{color:inherit}
a.cinfo{transition:.2s}
a.cinfo:hover i{background:rgba(255,122,0,.22);border-color:var(--orange)}
a.cinfo:hover small{color:var(--orange)}
.branches{margin:6px 0 2px}
.branches .bh{font-size:.95rem;font-weight:600;margin-bottom:12px}
.branch{display:flex;align-items:center;gap:12px;padding:12px 14px;border:1px solid var(--line);border-radius:12px;margin-bottom:10px;background:rgba(255,255,255,.02);transition:.2s}
.branch:hover{border-color:rgba(245,158,11,.5);background:rgba(255,122,0,.05);transform:translateX(3px)}
.branch>i{color:var(--orange);width:36px;height:36px;display:flex;align-items:center;justify-content:center;background:rgba(255,122,0,.1);border:1px solid rgba(255,122,0,.3);border-radius:9px;flex-shrink:0}
.branch .bi{flex:1;min-width:0}
.branch .bi b{display:block;font-size:.92rem}
.branch .bi small{color:var(--muted);font-size:.78rem}
.branch .go{color:var(--gold);font-size:.82rem;white-space:nowrap;flex-shrink:0}
.contact-map{display:flex}
.contact-map .map{flex:1;height:auto;min-height:380px}
.branch-block{margin-top:36px}
.branch-block .bh{font-size:1.15rem;font-weight:600;text-align:center;margin-bottom:18px}
.branch-block .bh i{color:var(--orange);margin-right:8px}
.branch-block .bh span{background:var(--grad-orange);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}
.branch-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.branch-grid .branch{margin-bottom:0}
.branch-grid .branch .go{font-size:1rem}
.contact-btns{display:flex;gap:12px;margin:22px 0}
.contact-btns .btn{flex:1}
.map{height:240px;border-radius:14px;border:1px solid var(--line);overflow:hidden}
.map iframe{width:100%;height:100%;display:block;border:0}
/* ===== MAP SLIDER (center mode) ===== */
.map-slider{position:relative;flex:1}
.map-slider .map-viewport{overflow:hidden;border-radius:14px}
.map-slider .map-track{display:flex;transition:transform .5s cubic-bezier(.25,.8,.25,1)}
.map-slider .map-slide{flex:0 0 100%;min-width:100%}
.map-slider .map-slide .map{height:340px;min-height:0;border-radius:14px 14px 0 0;border-bottom:none}
.map-slider .map-placeholder{display:flex;align-items:center;justify-content:center;background:linear-gradient(160deg,rgba(40,40,40,.5),rgba(17,17,17,.65))}
.map-slider .map-ph{display:flex;flex-direction:column;align-items:center;gap:12px;color:var(--muted);text-align:center;font-size:.9rem;line-height:1.4}
.map-slider .map-ph i{font-size:2rem;color:var(--orange);opacity:.8}
.map-slider .map-label{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 15px;background:rgba(255,255,255,.02);border:1px solid var(--line);border-top:none;border-radius:0 0 14px 14px}
.map-slider .map-label b{display:block;font-size:.92rem}
.map-slider .map-label small{color:var(--muted);font-size:.78rem}
.map-slider .map-nav{display:inline-flex;align-items:center;gap:7px;white-space:nowrap;font-size:.82rem;font-weight:600;color:#1a1200;background:var(--grad-orange);padding:9px 14px;border-radius:9px;transition:.2s}
.map-slider .map-nav:hover{transform:translateY(-2px);box-shadow:0 8px 20px rgba(255,122,0,.4)}
.map-slider .map-arrow{position:absolute;top:170px;transform:translateY(-50%);z-index:5;width:42px;height:42px;border-radius:12px;background:rgba(20,20,20,.8);border:1px solid rgba(245,158,11,.4);color:var(--gold);font-size:1rem;cursor:pointer;backdrop-filter:blur(6px);transition:.2s}
.map-slider .map-arrow:hover{background:var(--grad-orange);color:#1a1200;border-color:transparent}
.map-slider .map-arrow.prev{left:12px}
.map-slider .map-arrow.next{right:12px}
.map-dots{display:flex;justify-content:center;gap:9px;margin-top:16px}
.map-dots button{width:9px;height:9px;border-radius:50%;border:none;background:var(--gray);cursor:pointer;transition:.25s;padding:0}
.map-dots button.on{width:26px;border-radius:6px;background:var(--grad-orange)}
/* ===== FLOATING CONTACT ===== */
.float-contact{position:fixed;right:18px;bottom:calc(18px + env(safe-area-inset-bottom));z-index:950;display:flex;flex-direction:column;align-items:center;gap:0;transition:opacity .2s,visibility .2s}
.float-contact .fc-btn{position:relative;width:56px;height:56px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;color:#fff;box-shadow:0 8px 22px rgba(0,0,0,.45);transition:transform .25s,box-shadow .25s,background .2s}
.float-contact .fc-btn i{font-size:1.35rem}
.float-contact .fc-btn:hover{transform:translateY(-2px) scale(1.05);box-shadow:0 12px 28px rgba(0,0,0,.55)}
.float-contact .fc-line{background:#06c755}
.float-contact .fc-call{background:var(--grad-orange);color:#1a1200}
.float-contact .fc-fb{background:#1877f2}
.float-contact .fc-tiktok{background:#010101;border:1px solid #333}
/* ปุ่มเปิด/ปิด (trigger) */
.float-contact .fc-toggle{width:60px;height:60px;background:var(--grad-orange);color:#1a1200}
.float-contact .fc-toggle i{font-size:1.55rem;transition:transform .3s}
.float-contact.open .fc-toggle i{transform:rotate(90deg)}
/* กล่องรายการติดต่อ — กาง/หุบ */
.fc-contacts{display:flex;flex-direction:column;align-items:center;gap:12px;overflow:hidden;max-height:0;opacity:0;margin-bottom:0;transition:max-height .32s cubic-bezier(.25,.8,.25,1),opacity .25s,margin-bottom .32s}
.float-contact.open .fc-contacts{max-height:340px;opacity:1;margin-bottom:12px}
.fc-contacts .fc-btn{opacity:0;transform:translateY(12px) scale(.8);transition:opacity .25s,transform .25s}
.float-contact.open .fc-contacts .fc-btn{opacity:1;transform:none}
.float-contact.open .fc-contacts .fc-btn:nth-child(1){transition-delay:.03s}
.float-contact.open .fc-contacts .fc-btn:nth-child(2){transition-delay:.07s}
.float-contact.open .fc-contacts .fc-btn:nth-child(3){transition-delay:.11s}
.float-contact.open .fc-contacts .fc-btn:nth-child(4){transition-delay:.15s}
/* tooltip (เฉพาะอุปกรณ์ที่ hover ได้) */
@media(hover:hover){
  .float-contact .fc-btn[data-label]::after{content:attr(data-label);position:absolute;right:calc(100% + 12px);top:50%;transform:translateY(-50%);background:rgba(15,15,15,.96);color:#fff;font-size:.8rem;font-weight:500;padding:6px 12px;border-radius:8px;white-space:nowrap;opacity:0;pointer-events:none;transition:opacity .2s;box-shadow:0 4px 12px rgba(0,0,0,.4)}
  .float-contact .fc-btn[data-label]:hover::after{opacity:1}
}
/* ปุ่มตัวกรองลอย (โผล่เฉพาะหน้าสินค้าบนมือถือ) */
.float-contact .fc-filter{display:none;background:linear-gradient(160deg,#2b2b2b,#181818);border:1px solid rgba(245,158,11,.55);color:var(--gold);margin-bottom:12px}
.fc-badge{position:absolute;top:-5px;right:-5px;min-width:20px;height:20px;padding:0 6px;border-radius:20px;background:var(--grad-orange);color:#1a1200;font-size:.72rem;font-weight:700;display:inline-flex;align-items:center;justify-content:center;border:2px solid #0e0e0e;line-height:1}
.fc-badge[hidden]{display:none}
@media(max-width:640px){
  .float-contact{right:14px}
  .float-contact .fc-btn{width:52px;height:52px}
  .float-contact .fc-toggle{width:56px;height:56px}
}
/* ซ่อนกลุ่มปุ่มลอยขณะเปิดชีทตัวกรอง */
body.filter-open .float-contact{opacity:0;visibility:hidden;pointer-events:none}
@media(max-width:760px){
  body.is-products .filter-toggle{display:none}                 /* หน้าสินค้า: ซ่อนปุ่มในแถบ */
  body.is-products .float-contact .fc-filter{display:inline-flex} /* ใช้ FAB แทน */
}
/* ===== PROMO BANNER ===== */
.promo{padding:34px 0}
.promo-banner{display:flex;align-items:center;justify-content:space-between;gap:24px;flex-wrap:wrap;padding:30px 34px;border-radius:20px;background:linear-gradient(120deg,rgba(255,122,0,.16),rgba(245,158,11,.05));border:1px solid rgba(245,158,11,.35);box-shadow:var(--shadow)}
.promo-tag{display:inline-flex;align-items:center;gap:8px;font-size:.78rem;font-weight:600;letter-spacing:1px;color:var(--gold);background:rgba(255,122,0,.12);border:1px solid rgba(245,158,11,.5);padding:5px 13px;border-radius:30px;margin-bottom:12px}
.promo-text h3{font-size:clamp(1.3rem,3vw,1.9rem);font-weight:700;line-height:1.25}
.promo-text h3 span{background:var(--grad-orange);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}
.promo-text p{color:var(--muted);margin-top:8px;font-size:.92rem}
.promo-actions{display:flex;gap:12px;flex-wrap:wrap}
@media(max-width:760px){.promo-banner{flex-direction:column;align-items:flex-start;padding:24px}}
/* ===== SERVICES ===== */
.svc-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:20px}
.svc{text-align:center;padding:30px 22px;border:1px solid var(--line);border-radius:16px;background:linear-gradient(160deg,rgba(40,40,40,.5),rgba(17,17,17,.6));transition:.3s}
.svc:hover{transform:translateY(-6px);border-color:rgba(245,158,11,.5)}
.svc .ic{width:64px;height:64px;margin:0 auto 16px;border-radius:16px;display:flex;align-items:center;justify-content:center;font-size:1.6rem;color:var(--orange);background:rgba(255,122,0,.1);border:1px solid rgba(255,122,0,.35)}
.svc h3{font-size:1.05rem;font-weight:600;margin-bottom:8px}
.svc p{color:var(--muted);font-size:.88rem;min-height:48px}
.svc-price{margin-top:14px;padding-top:14px;border-top:1px solid var(--line);font-size:.88rem;color:var(--muted)}
.svc-price b{color:var(--gold);font-size:1.05rem;font-weight:700}
.svc-cta{text-align:center;margin-top:34px;display:flex;gap:14px;justify-content:center;flex-wrap:wrap}
@media(max-width:880px){.svc-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:560px){.svc-grid{grid-template-columns:1fr}}
/* ===== FAQ ===== */
.faq-list{max-width:820px;margin:0 auto;display:flex;flex-direction:column;gap:12px}
.faq-item{border:1px solid var(--line);border-radius:14px;background:linear-gradient(160deg,rgba(40,40,40,.4),rgba(17,17,17,.55));overflow:hidden}
.faq-q{width:100%;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 20px;background:none;border:none;color:#fff;font-family:inherit;font-size:1rem;font-weight:500;text-align:left;cursor:pointer;transition:.2s}
.faq-q:hover{color:var(--gold)}
.faq-q i{color:var(--orange);transition:transform .3s;flex-shrink:0}
.faq-item.open .faq-q i{transform:rotate(180deg)}
.faq-a{max-height:0;overflow:hidden;transition:max-height .35s ease}
.faq-a p{padding:0 20px 18px;color:var(--muted);font-size:.92rem;line-height:1.7}
.faq-item.open .faq-a{max-height:340px}
.contact-form{padding:30px;border:1px solid var(--line);border-radius:18px;background:linear-gradient(160deg,rgba(40,40,40,.5),rgba(17,17,17,.65))}
.contact-form h3{font-size:1.3rem;margin-bottom:18px}
.field{margin-bottom:16px}
.field label{display:block;font-size:.85rem;margin-bottom:6px;color:#ddd}
.field input,.field textarea,.field select{width:100%;padding:12px 14px;background:#141414;border:1px solid var(--line);border-radius:10px;color:#fff;font-family:inherit;font-size:.92rem;transition:.2s}
.field input:focus,.field textarea:focus,.field select:focus{outline:none;border-color:var(--orange);box-shadow:0 0 0 3px rgba(255,122,0,.12)}
.field textarea{resize:vertical;min-height:90px}

/* ===== Legal / content page ===== */
.legal{max-width:820px;margin:0 auto;padding:10px 0 20px}
.legal h2{font-size:1.3rem;margin:26px 0 10px;color:var(--gold)}
.legal p{color:var(--muted);margin-bottom:10px}
.legal .updated{color:#777;font-size:.85rem;margin-bottom:20px}

/* ===== Footer ===== */
footer{background:linear-gradient(180deg,#0f0f0f,#0a0a0a);border-top:1px solid rgba(255,122,0,.18);margin-top:30px}
.foot-top{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:26px 0;flex-wrap:wrap}
.foot-top .logo{align-items:flex-start;text-align:left}
.foot-top .logo small{color:var(--muted);letter-spacing:2px}
.foot-nav{display:flex;align-items:center;gap:30px;flex-wrap:wrap}
.foot-nav a{color:#ddd;font-size:.92rem;transition:.2s;position:relative}
.foot-nav a:hover{color:var(--orange)}
.foot-policies{display:flex;flex-wrap:wrap;justify-content:center;gap:8px 22px;padding:18px 0;border-top:1px solid var(--line)}
.foot-policies a{color:#999;font-size:.82rem;transition:.2s}
.foot-policies a:hover{color:var(--orange)}
.foot-bottom{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:16px 0;border-top:1px solid var(--line);flex-wrap:wrap}
.copy{color:#888;font-size:.82rem}
.foot-bottom-right{display:flex;align-items:center;gap:22px;flex-wrap:wrap}
.foot-bottom-right>a{color:#999;font-size:.82rem;transition:.2s}
.foot-bottom-right>a:hover{color:var(--orange)}
.socials{display:flex;gap:10px}
.socials a{width:34px;height:34px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:var(--gray);border:1px solid var(--line);color:#ccc;font-size:.85rem;transition:.2s}
.socials a:hover{background:var(--grad-orange);color:#1a1200;transform:translateY(-3px);border-color:transparent}

/* ===== Cart Side Drawer ===== */
.overlay-bg{position:fixed;inset:0;background:rgba(0,0,0,.7);backdrop-filter:blur(3px);z-index:1000;opacity:0;visibility:hidden;transition:.3s}
.overlay-bg.show{opacity:1;visibility:visible}
.overlay-bg.overlay-menu{backdrop-filter:none;-webkit-backdrop-filter:none;background:rgba(0,0,0,.4)}
.cart-drawer{position:fixed;top:0;right:0;height:100vh;height:100dvh;width:400px;max-width:92vw;background:linear-gradient(180deg,#181818,#111);border-left:1px solid rgba(245,158,11,.3);z-index:1001;transform:translateX(105%);transition:.35s cubic-bezier(.4,0,.2,1);display:flex;flex-direction:column}
.cart-drawer.show{transform:translateX(0)}
.cart-head{padding:22px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:between;gap:10px}
.cart-head h3{font-size:1.2rem;flex:1}
.cart-head h3 i{color:var(--orange);margin-right:8px}
.close-x{background:var(--gray);border:1px solid var(--line);color:#fff;width:38px;height:38px;border-radius:10px;cursor:pointer;font-size:1rem;transition:.2s}
.close-x:hover{border-color:var(--orange);color:var(--orange)}
.cart-items{flex:1;min-height:0;overflow-y:auto;padding:16px 22px}
.cart-item{display:flex;gap:12px;padding:14px 0;border-bottom:1px solid var(--line)}
.cart-item .ci-img{width:64px;height:64px;border-radius:10px;background:#0a0a0a center/cover;flex-shrink:0;border:1px solid var(--line)}
.cart-item .ci-body{flex:1;min-width:0}
.cart-item h4{font-size:.92rem;font-weight:500}
.cart-item .ci-cat{color:var(--muted);font-size:.72rem}
.cart-item .ci-price{color:var(--gold);font-weight:600;font-size:.92rem;margin-top:2px}
.qty{display:inline-flex;align-items:center;gap:8px;margin-top:8px;background:#141414;border:1px solid var(--line);border-radius:8px;padding:3px}
.qty button{width:26px;height:26px;border:none;background:var(--gray);color:#fff;border-radius:6px;cursor:pointer;font-size:.9rem;transition:.2s}
.qty button:hover{background:var(--orange);color:#1a1200}
.qty span{min-width:22px;text-align:center;font-size:.9rem}
.ci-remove{background:none;border:none;color:#e05a5a;cursor:pointer;font-size:.95rem;align-self:flex-start;padding:4px}
.cart-empty{text-align:center;color:var(--muted);padding:60px 20px}
.cart-empty i{font-size:3rem;color:var(--gray);margin-bottom:14px}
.cart-foot{padding:20px 22px;padding-bottom:calc(20px + env(safe-area-inset-bottom));border-top:1px solid var(--line)}
.cart-total{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px;font-size:1.05rem}
.cart-total b{color:var(--gold);font-size:1.4rem}

/* ===== Modals ===== */
.modal{position:fixed;inset:0;z-index:1100;display:none;align-items:flex-start;justify-content:center;padding:40px 16px;overflow-y:auto}
.modal.show{display:flex}
.modal-box{background:linear-gradient(180deg,#1a1a1a,#111);border:1px solid rgba(245,158,11,.35);border-radius:20px;width:100%;max-width:640px;box-shadow:var(--shadow);animation:pop .3s ease}
@keyframes pop{from{transform:scale(.94) translateY(14px);opacity:0}to{transform:scale(1) translateY(0);opacity:1}}
.modal-head{padding:22px 26px;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:10px}
.modal-head h3{flex:1;font-size:1.3rem}
.modal-head h3 i{color:var(--orange);margin-right:8px}
.modal-body{padding:26px}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.form-grid .full{grid-column:1/-1}
.summary{background:#141414;border:1px solid var(--line);border-radius:14px;padding:18px;margin-bottom:20px}
.summary h4{font-size:1rem;margin-bottom:12px;color:var(--gold)}
.summary-row{display:flex;justify-content:space-between;font-size:.9rem;padding:6px 0;color:var(--muted)}
.summary-row.total{border-top:1px solid var(--line);margin-top:8px;padding-top:12px;color:#fff;font-size:1.05rem;font-weight:600}
.summary-row.total b{color:var(--gold);font-size:1.3rem}
.pay-methods{display:flex;flex-direction:column;gap:12px;margin-bottom:20px}
.pay-opt{display:flex;align-items:center;gap:14px;padding:16px;border:1px solid var(--line);border-radius:12px;cursor:pointer;transition:.2s}
.pay-opt:hover{border-color:rgba(245,158,11,.5)}
.pay-opt.active{border-color:var(--orange);background:rgba(255,122,0,.07)}
.pay-opt i{font-size:1.4rem;color:var(--orange);width:30px;text-align:center}
.pay-opt b{display:block;font-size:.95rem}
.pay-opt small{color:var(--muted);font-size:.78rem}
.pay-opt .radio{margin-left:auto;width:20px;height:20px;border-radius:50%;border:2px solid var(--line);position:relative;flex-shrink:0}
.pay-opt.active .radio{border-color:var(--orange)}
.pay-opt.active .radio::after{content:"";position:absolute;inset:3px;border-radius:50%;background:var(--grad-orange)}
.qr-box{text-align:center;background:#141414;border:1px solid var(--line);border-radius:14px;padding:24px;margin-bottom:20px}
.qr-img{width:170px;height:170px;margin:0 auto 12px;border-radius:12px;background:#fff;display:flex;align-items:center;justify-content:center;color:#111;font-size:.8rem;overflow:hidden}
.qr-img i{font-size:5rem}
.qr-img img{width:100%;height:100%;object-fit:contain;display:block}
.qr-demo{margin-top:10px;font-size:.78rem;color:var(--gold);background:rgba(245,158,11,.1);border:1px solid rgba(245,158,11,.35);border-radius:8px;padding:8px 10px}
.upload{display:block;border:2px dashed var(--line);border-radius:12px;padding:24px;text-align:center;cursor:pointer;transition:.2s;margin-bottom:8px}
.upload:hover{border-color:var(--orange);background:rgba(255,122,0,.04)}
.upload i{font-size:2rem;color:var(--orange);margin-bottom:8px}
.upload p{color:var(--muted);font-size:.85rem}
.upload .hint{display:block;color:var(--muted);font-size:.75rem;margin-top:4px;opacity:.75}
.upload .fname{color:var(--gold);font-size:.85rem;margin-top:8px;display:none}
.upload .fname.bad{color:#ff6b6b}
.success-box{text-align:center;padding:30px 10px}
.success-box .slip-warn{color:var(--gold);background:rgba(245,158,11,.1);border:1px solid rgba(245,158,11,.35);border-radius:10px;padding:10px 12px;font-size:.85rem;margin:14px 0}
.success-box .check{width:90px;height:90px;margin:0 auto 20px;border-radius:50%;background:var(--grad-orange);display:flex;align-items:center;justify-content:center;font-size:2.6rem;color:#1a1200;animation:pop .4s ease}
.success-box h3{font-size:1.5rem;margin-bottom:10px}
.rc-wrap{margin:0 auto 18px;max-width:420px}
.rc-box{background:#fff;border-radius:12px;overflow:hidden;box-shadow:0 14px 38px rgba(0,0,0,.5);min-height:120px;display:flex;align-items:center;justify-content:center}
.rc-box img{width:100%;height:auto;display:block}
.rc-load{color:#6b7280;font-size:.85rem;padding:36px 12px}
.rc-err{color:#ff6b6b;font-size:.85rem;padding:24px 12px;margin:0}
.rc-tip{display:block;color:var(--muted);font-size:.75rem;margin-top:8px}
.rc-actions{display:flex;gap:10px;justify-content:center;flex-wrap:wrap}
@media(max-width:640px){.rc-actions{flex-direction:column}.rc-actions .btn{width:100%}}
.success-box p{color:var(--muted);max-width:380px;margin:0 auto 22px}

/* toast */
.toast{position:fixed;bottom:calc(26px + env(safe-area-inset-bottom));left:50%;transform:translateX(-50%) translateY(120px);width:max-content;max-width:calc(100vw - 32px);box-sizing:border-box;background:#1a1a1a;border:1px solid var(--orange);color:#fff;padding:14px 24px;border-radius:12px;z-index:1200;display:flex;align-items:center;gap:10px;box-shadow:var(--shadow);transition:transform .35s;font-size:.92rem}
.toast.show{transform:translateX(-50%) translateY(0)}
.toast i{color:var(--orange);flex-shrink:0}

/* reveal animation */
.reveal{opacity:0;transform:translateY(30px);transition:.7s ease}
.reveal.in{opacity:1;transform:none}

/* ===== Responsive ===== */
@media(max-width:1080px){
  .hero-card{width:150px;height:240px}
}
@media(max-width:900px){
  .hero{min-height:auto;padding-bottom:10px}
  .hero-inner{min-height:auto;padding-top:40px;display:flex;flex-direction:column;align-items:flex-start;gap:26px}
  .hero-content{position:static;transform:none;left:auto;top:auto;width:100%;max-width:560px}
  .hero-cards-col{position:static;right:auto;top:auto;bottom:auto;transform:none;align-items:center;gap:16px;margin-top:28px}
  .hero-controls{max-width:316px;width:100%}
  .hero-card{width:150px;height:230px}
  .filter-bar.overlap{margin-top:24px}
}
@media(max-width:980px){
  .feat-split{flex-direction:column;gap:32px}
  .feat-media{width:100%;max-width:380px;margin:0 auto}
  .feat-body .sec-head{text-align:center}
  .feat-body .sec-head .deco{justify-content:center}
  .feat-grid{max-width:480px;margin:0 auto}
  .prod-grid .card{flex-basis:calc((100% - 24px)/2)}
  .rev-grid{grid-template-columns:1fr}
  .contact-grid{grid-template-columns:1fr}
  .foot-grid{grid-template-columns:1fr 1fr}
}
@media(max-width:760px){
  .branch-grid{grid-template-columns:1fr}
  .gallery-row{flex-direction:column;height:auto;gap:12px}
  .gpanel{flex:none;height:180px}
  .gallery-row:hover .gpanel,.gallery-row:hover .gpanel:hover{flex:none}
  .gpanel .glabel{opacity:1;transform:none}
  /* ซ่อนปุ่ม "ดูสินค้าทั้งหมด" (hero-cta) เฉพาะมือถือ */
  .hero-cta{display:none}
  /* ===== Mobile header/topbar (จัดใหม่) ===== */
  header{min-height:71px;display:flex;flex-direction:column;justify-content:center}
  header .nav{display:flex;align-items:center;justify-content:space-between;gap:12px;max-width:100%;padding:0 14px;margin:0}
  .menu.left,.menu.right{display:none}
  .logo{justify-self:auto;flex-direction:row;align-items:center;margin:0}
  .nav-right{margin-left:auto}
  .logo-img{height:44px}
  .nav-right{justify-self:auto;gap:10px}
  .nav-right .cart-btn{margin-left:0}
  .cart-btn{width:44px;height:44px;border-radius:12px;font-size:1.05rem}
  .cart-count{min-width:19px;height:19px;font-size:.68rem}
  .menu-mobile{display:flex;position:fixed;top:0;right:0;width:min(280px,80vw);height:100vh;height:100dvh;background:#1e1e1e;flex-direction:column;align-items:stretch;gap:0;padding:0;border-left:2px solid var(--orange);transform:translateX(105%);transition:transform .32s cubic-bezier(.4,0,.2,1);z-index:1001;box-shadow:-22px 0 60px rgba(0,0,0,.7)}
  .menu-mobile.show{transform:none}
  .menu-mobile .mm-head{display:flex;align-items:center;justify-content:space-between;padding:15px 18px;border-bottom:1px solid var(--line);background:rgba(255,122,0,.06)}
  .menu-mobile .mm-title{color:var(--gold);font-size:.92rem;font-weight:600;letter-spacing:2px;text-transform:uppercase}
  .menu-mobile .mm-close{width:38px;height:38px;border-radius:10px;background:var(--gray);border:1px solid var(--line);color:#fff;cursor:pointer;font-size:1rem;transition:.2s}
  .menu-mobile .mm-close:hover{border-color:var(--orange);color:var(--orange)}
  .menu-mobile .mm-list{list-style:none;display:flex;flex-direction:column;padding:8px 18px}
  .menu-mobile li{width:100%;padding:0;border-bottom:1px solid var(--line)}
  .menu-mobile li:last-child{border-bottom:none}
  .menu-mobile a,.menu-mobile .mm-cart{display:block;width:100%;font-size:1rem;color:#eee;font-weight:500;padding:15px 4px;transition:.2s}
  .menu-mobile a:hover,.menu-mobile .mm-cart:hover{color:var(--orange);padding-left:10px}
  .menu-mobile a.active{color:var(--orange)}
  .menu-mobile .mm-info{padding:16px 18px;border-top:1px solid var(--line)}
  .menu-mobile .mm-hours{color:#e4e4e4;font-size:.9rem;display:flex;align-items:center;gap:9px;padding-bottom:14px;margin-bottom:12px;border-bottom:1px solid var(--line)}
  .menu-mobile .mm-hours i{color:var(--orange)}
  .menu-mobile .mm-branch-label{color:var(--gold);font-size:.74rem;letter-spacing:1.5px;text-transform:uppercase;font-weight:600;display:flex;align-items:center;gap:8px;margin-bottom:10px}
  .menu-mobile .mm-branches a{display:block;color:#cfcfcf;font-size:.88rem;padding:7px 0 7px 24px;position:relative;transition:.2s}
  .menu-mobile .mm-branches a::before{content:"\f3c5";font-family:"Font Awesome 6 Free";font-weight:900;position:absolute;left:0;color:var(--orange);font-size:.8rem;opacity:.7}
  .menu-mobile .mm-branches a:hover{color:var(--orange);padding-left:28px}
  .menu-mobile .mm-contact{margin-top:auto;padding:18px;border-top:1px solid var(--line)}
  .menu-mobile .mm-contact-label{color:var(--gold);font-size:.74rem;letter-spacing:2px;text-transform:uppercase;font-weight:600;margin-bottom:12px}
  .menu-mobile .mm-socials{display:flex;gap:10px}
  .menu-mobile .mm-socials a{flex:1;height:46px;border-radius:11px;display:flex;align-items:center;justify-content:center;background:var(--gray);border:1px solid var(--line);color:#ccc;font-size:1.1rem;transition:.2s}
  .menu-mobile .mm-socials a:hover{background:var(--grad-orange);color:#1a1200;border-color:transparent;transform:translateY(-2px)}
  /* เมนูเปิด → รายการค่อยๆ เด้งขึ้นทีละชิ้น (stagger) */
  .menu-mobile .mm-list li,
  .menu-mobile .mm-info,
  .menu-mobile .mm-contact{opacity:0;transform:translateY(16px);transition:opacity .45s ease,transform .45s cubic-bezier(.22,1,.36,1)}
  .menu-mobile.show .mm-list li,
  .menu-mobile.show .mm-info,
  .menu-mobile.show .mm-contact{opacity:1;transform:none}
  .menu-mobile.show .mm-list li:nth-child(1){transition-delay:.10s}
  .menu-mobile.show .mm-list li:nth-child(2){transition-delay:.15s}
  .menu-mobile.show .mm-list li:nth-child(3){transition-delay:.20s}
  .menu-mobile.show .mm-list li:nth-child(4){transition-delay:.25s}
  .menu-mobile.show .mm-list li:nth-child(5){transition-delay:.30s}
  .menu-mobile.show .mm-info{transition-delay:.35s}
  .menu-mobile.show .mm-contact{transition-delay:.40s}
  @media(prefers-reduced-motion:reduce){
    .menu-mobile .mm-list li,
    .menu-mobile .mm-info,
    .menu-mobile .mm-contact{opacity:1;transform:none;transition:none}
  }
  .hamburger{display:flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:12px;background:var(--gray);border:1px solid var(--line);color:#fff;font-size:1.15rem;transition:.2s}
  .hamburger:hover{border-color:var(--orange);color:var(--orange)}
  section{padding:56px 0}
  .hero-left{padding:32px 24px}
}
@media(max-width:640px){
  .cf-wrap{height:440px}
  .cf-slide{width:250px;height:370px;margin:-185px 0 0 -125px}
  .cf-slide h3{font-size:1.1rem}
}
@media(max-width:520px){
  .prod-grid .card{flex-basis:100%}
  .form-grid{grid-template-columns:1fr}
  .foot-grid{grid-template-columns:1fr}
  .review{grid-template-columns:1fr}
  .review .pic{min-height:150px}
  .card .actions{flex-direction:column}
}

/* ===== Mobile layout refinements ===== */
@media(max-width:760px){
  .container{padding:0 18px}
  .hero .hero-inner{padding-top:80px}
  .hero-content{align-self:center;text-align:center}
  .hero-eyebrow{justify-content:center}
  .hero-content h1{font-size:clamp(2rem,8vw,2.8rem);line-height:1.25}
  .hero-content p.lead{line-height:1.75;margin-left:auto;margin-right:auto}
  .hero-btns{justify-content:center}
  /* knowledge / video → เรียงแนวตั้ง คลิปอยู่บน */
  .know-wrap{flex-direction:column-reverse;gap:28px}
  .know-video{width:300px}
  .know-text{text-align:center}
  .know-text .sec-head{text-align:center}
  .know-text .sec-head .deco{justify-content:center}
  .know-points{text-align:left;max-width:360px;margin-left:auto;margin-right:auto}
  /* filter / search bar → จัดเป็นแนวตั้งเต็มความกว้าง อ่านง่าย กดง่าย */
  .filter-card{padding:18px 16px}
  .filter-top{flex-direction:column}
  .filter-top .filter-select{width:100%}
  .filter-label-inline{width:100%;margin-bottom:-2px}
  .prod-filter{width:100%}
  .filter-row>.filter-select{width:100%}
  .filter-reset{display:none}   /* ปุ่มล้าง → ใช้ปุ่มในท้ายชีทแทนบนมือถือ */
}
/* ===== ตัวกรองแบบ bottom sheet บนมือถือ ===== */
@media(max-width:760px){
  /* ปุ่มเปิดตัวกรอง (แทนแถบยาว) */
  .filter-toggle{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;max-width:920px;margin:0 auto;background:linear-gradient(160deg,rgba(34,34,34,.97),rgba(18,18,18,.98));border:1px solid rgba(245,158,11,.4);border-radius:14px;box-shadow:0 14px 34px rgba(0,0,0,.45);color:#fff;font-family:inherit;font-size:.96rem;font-weight:500;padding:14px 18px;cursor:pointer}
  .filter-toggle>span:first-child{display:inline-flex;align-items:center;gap:9px}
  .filter-toggle i{color:var(--gold)}
  .filter-badge{background:var(--grad-orange);color:#1a1200;font-size:.78rem;font-weight:700;min-width:22px;height:22px;display:inline-flex;align-items:center;justify-content:center;border-radius:20px;padding:0 7px}
  .filter-badge[hidden]{display:none}

  /* ฉากหลังมืด */
  .filter-backdrop{display:block;position:fixed;inset:0;z-index:1400;background:rgba(0,0,0,.55);backdrop-filter:blur(2px);opacity:0;visibility:hidden;transition:.25s}
  .filter-backdrop.open{opacity:1;visibility:visible}

  /* การ์ด → ชีทเลื่อนขึ้นจากล่าง */
  .filter-bar .filter-card{position:fixed;left:0;right:0;bottom:0;z-index:1410;max-width:100%;margin:0;border-radius:20px 20px 0 0;border-bottom:none;max-height:88vh;overflow-y:auto;padding:0 16px 16px;transform:translateY(105%);transition:transform .3s cubic-bezier(.25,.8,.25,1)}
  .filter-bar .filter-card.open{transform:translateY(0)}
  .filter-card .label{display:none}   /* ใช้หัวชีทแทน */

  /* หัวชีท (ติดบน) */
  .sheet-head{display:flex;align-items:center;gap:10px;position:sticky;top:0;z-index:2;margin:0 -16px 14px;padding:16px 16px 12px;background:linear-gradient(160deg,rgba(34,34,34,.99),rgba(20,20,20,.99));border-bottom:1px solid var(--line)}
  .sheet-grip{position:absolute;top:6px;left:50%;transform:translateX(-50%);width:42px;height:4px;border-radius:3px;background:#4a4a4a}
  .sheet-title{flex:1;font-weight:600;color:var(--gold);display:inline-flex;align-items:center;gap:8px}
  .sheet-x{background:none;border:none;color:var(--muted);font-size:1.45rem;line-height:1;cursor:pointer;padding:2px 4px}

  /* ท้ายชีท (ติดล่าง) */
  .sheet-foot{display:flex;gap:10px;position:sticky;bottom:0;margin:14px -16px 0;padding:14px 16px;background:linear-gradient(0deg,#161616,rgba(22,22,22,.96));border-top:1px solid var(--line)}
  .sheet-foot .btn{flex:1;justify-content:center}
  .filter-card .filter-result{margin-top:14px}
}
@media(max-width:560px){
  .promo-actions{width:100%}
  .promo-actions .btn{flex:1}
  .svc-cta{flex-direction:column}
  .svc-cta .btn{width:100%}
}
@media(max-width:520px){
  .container{padding:0 16px}
  section{padding:44px 0}
  .sec-head{margin-bottom:32px}
  .sec-head .deco::before,.sec-head .deco::after{width:36px}
  .hero-btns{flex-direction:column;width:100%}
  .hero-btns .btn,.hero-btns .hero-cta{width:100%;justify-content:center}
  .foot-top{flex-direction:column;text-align:center}
  .foot-top .logo{align-items:center;text-align:center}
  .foot-nav{justify-content:center}
  .foot-bottom{flex-direction:column;text-align:center;justify-content:center}
  .foot-bottom-right{justify-content:center}
}
@media(max-width:400px){
  .cf-wrap{height:400px}
  .cf-slide{width:210px;height:320px;margin:-160px 0 0 -105px}
}

/* ===== Mobile contact section (กันล้นขอบจอ + จัด layout ใหม่) ===== */
@media(max-width:760px){
  .contact-grid{grid-template-columns:1fr;gap:22px}
  .contact-info{padding:22px 18px}
  .contact-map,.map-slider{min-width:0;width:100%;max-width:100%}
  .map-slider .map-viewport{max-width:100%}
  /* กล่องข้อความบนแผนที่: ให้ข้อความหด/ตัดบรรทัดได้ ปุ่มนำทางไม่หด */
  .map-slider .map-label{flex-wrap:wrap;gap:8px 12px}
  .map-slider .map-label>div{min-width:0;flex:1 1 60%}
  .map-slider .map-label small{white-space:normal;overflow-wrap:break-word}
  .map-slider .map-nav{flex-shrink:0}
  /* ข้อมูลติดต่อ + สาขา: ข้อความยาวๆ ไม่ดันขอบ */
  .cinfo>div,.branch .bi{min-width:0}
  .cinfo small,.branch .bi small{overflow-wrap:break-word}
  /* ไอคอนติดต่อ: กริด 2 คอลัมน์ (2 ต่อแถว เรียงลงมา) */
  .cinfo-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px 12px}
  .cinfo-grid .cinfo{margin-bottom:0}
  .cinfo-grid .cinfo i{width:34px;height:34px}
  .cinfo-grid .cinfo:last-child{grid-column:1/-1}
}

/* ===== PRODUCT GALLERY (coverflow popup) ===== */
.card .thumb{cursor:pointer}
.card .img-badge{position:absolute;top:12px;right:12px;z-index:3;display:inline-flex;align-items:center;gap:5px;font-size:.74rem;font-weight:600;padding:5px 10px;border-radius:30px;background:rgba(10,10,10,.72);border:1px solid rgba(245,158,11,.5);color:var(--gold);backdrop-filter:blur(4px)}
.card .thumb-zoom{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%) scale(.9);z-index:3;display:inline-flex;align-items:center;gap:8px;font-size:.85rem;font-weight:600;padding:9px 16px;border-radius:30px;background:rgba(10,10,10,.74);border:1px solid rgba(245,158,11,.5);color:#fff;opacity:0;transition:.28s;pointer-events:none}
.card:hover .thumb-zoom{opacity:1;transform:translate(-50%,-50%) scale(1)}

.pg-box{max-width:900px}
.pg-body{padding:20px 20px 24px}
.pg-wrap{position:relative;height:420px;display:flex;align-items:center;justify-content:center;perspective:1600px;overflow:hidden}
.pg-track{position:relative;width:100%;height:100%;transform-style:preserve-3d}
.pg-slide{position:absolute;top:50%;left:50%;width:300px;height:360px;margin:-180px 0 0 -150px;border-radius:18px;overflow:hidden;background:#0a0a0a center/cover;cursor:pointer;transition:transform .55s cubic-bezier(.25,.8,.25,1),opacity .55s,box-shadow .4s;box-shadow:0 18px 40px rgba(0,0,0,.55);border:1px solid rgba(255,255,255,.06)}
.pg-slide.active{border-color:rgba(245,158,11,.6);box-shadow:0 24px 55px rgba(0,0,0,.7),0 0 0 1px rgba(245,158,11,.35)}
.pg-arrow{position:absolute;top:50%;transform:translateY(-50%);z-index:30;width:46px;height:46px;border-radius:12px;background:rgba(20,20,20,.82);border:1px solid rgba(245,158,11,.4);color:var(--gold);font-size:1.3rem;cursor:pointer;backdrop-filter:blur(6px);transition:.2s}
.pg-arrow:hover{background:var(--grad-orange);color:#1a1200;border-color:transparent}
.pg-arrow.prev{left:10px}
.pg-arrow.next{right:10px}
.pg-counter{text-align:center;color:var(--muted);font-size:.9rem;margin-top:14px}
.pg-dots{display:flex;justify-content:center;gap:8px;margin-top:12px;flex-wrap:wrap}
.pg-dots button{width:8px;height:8px;border-radius:50%;border:none;background:#2b2b2b;cursor:pointer;transition:.25s;padding:0}
.pg-dots button.on{width:24px;border-radius:5px;background:var(--grad-orange)}
/* รูปเดียว → ไม่ต้องมีลูกศร/จุด/ตัวนับ */
.pg-solo .pg-arrow,.pg-solo .pg-dots,.pg-solo .pg-counter{display:none}

/* ===== PC quick-view: รูปใหญ่ + thumbnail + ข้อมูลสินค้า ===== */
.pg-main,.pg-thumbs,.pg-info{display:none}   /* ค่าเริ่มต้นซ่อน (โชว์เฉพาะ PC ≥641px) */
.pg-main{border-radius:16px;overflow:hidden;background:#0a0a0a center/contain no-repeat;border:1px solid rgba(245,158,11,.35);box-shadow:0 18px 40px rgba(0,0,0,.5)}
.pg-thumbs{gap:10px;flex-wrap:wrap}
.pg-thumb{width:64px;height:64px;border-radius:10px;background:#0a0a0a center/cover no-repeat;cursor:pointer;border:2px solid transparent;opacity:.55;transition:.2s;flex:0 0 auto}
.pg-thumb:hover{opacity:1}
.pg-thumb.on{opacity:1;border-color:var(--gold)}
.pg-info .pg-i-cat{display:inline-flex;align-items:center;gap:7px;align-self:flex-start;font-size:.78rem;font-weight:600;padding:5px 13px;border-radius:30px;background:rgba(255,122,0,.14);border:1px solid rgba(245,158,11,.5);color:var(--gold);margin-bottom:14px}
.pg-info h2{font-size:1.5rem;font-weight:600;line-height:1.25;margin-bottom:12px}
.pg-info .pg-i-price{font-size:1.7rem;font-weight:700;color:var(--gold);margin-bottom:4px}
.pg-info .pg-i-price small{font-size:.9rem;color:var(--muted);font-weight:400}
.pg-info .pg-i-brand{color:var(--muted);font-size:.9rem;margin-bottom:16px}
.pg-info .pg-i-desc{color:#cfcfcf;font-size:.95rem;line-height:1.7;margin-bottom:20px}
.pg-i-qty{display:flex;align-items:center;gap:14px;margin-bottom:18px}
.pg-i-qty .qty-box{display:inline-flex;align-items:center;border:1px solid var(--line);border-radius:10px;overflow:hidden}
.pg-i-qty .qty-box button{width:40px;height:42px;background:#141414;border:none;color:#fff;font-size:1.2rem;cursor:pointer;transition:.2s}
.pg-i-qty .qty-box button:hover{background:var(--grad-orange);color:#1a1200}
.pg-i-qty .qty-box span{min-width:46px;text-align:center;font-weight:600}
.pg-i-actions{display:flex;flex-direction:column;gap:10px;margin-top:auto}
.pg-i-actions .btn{justify-content:center}
.pg-i-actions .btn[disabled]{opacity:.45;cursor:not-allowed;box-shadow:none;filter:grayscale(.3)}
/* ===== ตัวเลือกย่อย (variant) ในหน้าต่างสินค้า ===== */
.pg-opt{margin-bottom:18px}
.pg-opt-name{display:flex;align-items:center;gap:9px;font-size:.86rem;color:var(--muted);margin-bottom:11px;text-transform:uppercase;letter-spacing:.5px}
.pg-opt-sel{text-transform:none;letter-spacing:0;font-size:.95rem;font-weight:600;color:#fff;padding-left:9px;border-left:2px solid var(--gold)}
.pg-opt-chips{display:flex;flex-wrap:wrap;gap:10px}
.pg-chip{position:relative;isolation:isolate;display:inline-flex;align-items:center;gap:9px;padding:9px 16px;min-height:46px;border-radius:14px;background:linear-gradient(180deg,#1e1e1e,#151515);border:1.5px solid #2c2c2c;color:#e9e9e9;font-family:inherit;font-size:.94rem;font-weight:500;cursor:pointer;transition:transform .16s ease,border-color .16s,box-shadow .16s,color .16s}
.pg-chip.has-img{padding-left:8px}
.pg-chip::before{content:"";position:absolute;inset:0;border-radius:inherit;background:var(--grad-orange);opacity:0;transition:opacity .18s;z-index:-1}
.pg-chip:hover{border-color:var(--gold);color:#fff;transform:translateY(-2px);box-shadow:0 8px 20px rgba(0,0,0,.45)}
.pg-chip.on{border-color:var(--gold);color:#1a1200;font-weight:700;box-shadow:0 8px 22px rgba(255,122,0,.4)}
.pg-chip.on::before{opacity:1}
.pg-chip.on:hover{color:#1a1200;transform:translateY(-2px)}
.pg-chip-img{width:32px;height:32px;border-radius:9px;background-size:cover;background-position:center;background-color:#0c0c0c;flex:0 0 auto;box-shadow:0 2px 6px rgba(0,0,0,.4)}
.pg-chip.on .pg-chip-img{box-shadow:0 0 0 2px #1a1200}
.pg-chip-tick{display:none;font-size:.78rem}
.pg-chip.on .pg-chip-tick{display:inline-block;animation:pgTickPop .22s ease}
@keyframes pgTickPop{0%{transform:scale(0);opacity:0}60%{transform:scale(1.25)}100%{transform:scale(1);opacity:1}}
.pg-chip.off{opacity:.4;cursor:not-allowed;background:#141414;color:#8a8a8a}
.pg-chip.off:hover{border-color:#2c2c2c;transform:none;box-shadow:none;color:#8a8a8a}
.pg-chip.off .pg-chip-txt{text-decoration:line-through}
.pg-chip.off .pg-chip-img{filter:grayscale(1)}
.pg-i-stock{font-size:.9rem;font-weight:500;margin-bottom:16px}
.pg-i-stock.in{color:#86efac}
.pg-i-stock.out{color:#fca5a5}
.pg-i-hint{font-size:.9rem;color:var(--gold);background:rgba(255,122,0,.1);border:1px dashed rgba(245,158,11,.5);border-radius:10px;padding:9px 13px;margin-bottom:16px}
/* badge บนการ์ดสินค้าที่มีตัวเลือก */
.var-badge{position:absolute;top:12px;right:12px;display:inline-flex;align-items:center;gap:6px;font-size:.72rem;font-weight:600;padding:5px 11px;border-radius:30px;background:rgba(255,122,0,.9);color:#1a1200;z-index:2}
/* ชื่อตัวเลือกในตะกร้า */
.ci-var{color:var(--gold)}
@media(min-width:641px){
  #galleryModal{align-items:center}   /* จัดหน้าต่างรูปสินค้าให้อยู่กึ่งกลางจอแนวตั้ง */
  .pg-box{max-width:960px}
  .pg-body{display:flex;gap:26px;align-items:stretch;padding:24px 26px 26px}
  .pg-wrap,.pg-counter,.pg-dots{display:none}      /* ซ่อน coverflow บน PC */
  .pg-media{flex:1.2;min-width:0;display:flex;flex-direction:column;gap:12px}
  .pg-main{display:block;flex:1;min-height:360px}
  .pg-thumbs{display:flex}
  .pg-info{flex:1;min-width:0;display:flex;flex-direction:column}
}

@media(max-width:640px){
  /* ===== แกลเลอรีเต็มจอบนมือถือ (lightbox) ===== */
  #galleryModal{padding:0;align-items:stretch}
  #galleryModal .modal-box{max-width:100vw;width:100vw;min-width:0;overflow-x:hidden;min-height:100vh;min-height:100dvh;border:none;border-radius:0;display:flex;flex-direction:column;background:radial-gradient(130% 70% at 50% 0,#1e1e1e,#0c0c0c 72%);animation:none}
  #galleryModal .modal-head{position:sticky;top:0;z-index:6;padding:15px 16px;background:rgba(12,12,12,.82);backdrop-filter:blur(10px)}
  #galleryModal .modal-head h3{font-size:1.02rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  #galleryModal .pg-body{flex:1;min-width:0;width:100%;display:flex;flex-direction:column;justify-content:flex-start;padding:0 0 26px}
  #galleryModal .pg-media{display:contents}   /* คงโครง flex เดิมของมือถือ (coverflow เป็นลูกตรงของ pg-body) */
  #galleryModal .pg-wrap{flex:0 0 auto;min-width:0;width:100%;height:auto;min-height:72vw;margin-top:6px;perspective:none}
  #galleryModal .pg-track{transform-style:flat}
  #galleryModal .pg-slide{width:90vw;height:62vw;margin:-31vw 0 0 -45vw;border-radius:18px;background-size:cover;background-position:center;background-color:#0c0c0c}
  /* ลูกศรเกาะบนรูป (absolute) — ไม่ลอยทับข้อมูลตอนเลื่อน */
  #galleryModal .pg-arrow{position:absolute;top:50%;transform:translateY(-50%);width:46px;height:46px;border-radius:50%;background:rgba(10,10,10,.82);border:1.5px solid rgba(245,158,11,.65);color:var(--gold);font-size:1.5rem;box-shadow:0 6px 18px rgba(0,0,0,.55)}
  #galleryModal .pg-arrow.prev{left:10px;right:auto}
  #galleryModal .pg-arrow.next{right:10px;left:auto}
  #galleryModal .pg-counter{margin-top:14px;font-size:.95rem}
  #galleryModal .pg-dots{margin-top:12px}
  /* ข้อมูลสินค้าใต้รูป (มือถือ) */
  #galleryModal .pg-info{display:flex;flex-direction:column;padding:20px 18px 4px;margin-top:6px}
  #galleryModal .pg-info h2{font-size:1.25rem}
  #galleryModal .pg-info .pg-i-price{font-size:1.5rem}
  #galleryModal .pg-i-actions{margin-top:16px}
}
