/* ══════════════════════════════════════════════════════════════════════
   equip.css — หน้าหมวดอุปกรณ์หน้าร้าน · ทุกคลาสขึ้นต้นด้วย eq-
   โหลดต่อจาก style.css · cart.css · shop.css
   ══════════════════════════════════════════════════════════════════════ */

/* ── กล่องแนะนำว่าเลือกแบบไหนดี ─────────────────────────────────────── */
.eq-pick{display:grid;gap:14px;margin-top:18px}
@media (min-width:860px){ .eq-pick{grid-template-columns:repeat(3,1fr)} }
.eq-pick-c{
  background:#fff;border:1px solid var(--sh-ring,#dbe4f2);border-radius:16px;padding:19px 20px;
}
.eq-pick-ic{
  display:inline-flex;align-items:center;justify-content:center;
  width:46px;height:46px;border-radius:13px;
  background:var(--sh-ice,#eef3fb);color:var(--sh-blue,#1d4ed8);margin-bottom:11px;
}
.eq-pick-ic svg{width:25px;height:25px}
.eq-pick-c h3{margin:0 0 7px;font-size:17.5px;font-weight:700}
.eq-pick-c p{margin:0;font-size:14.8px;line-height:1.8;color:var(--sh-mut,#5d6b81)}
.eq-pick-tag{
  display:inline-block;margin-top:12px;padding:6px 13px;border-radius:999px;
  background:var(--sh-ice,#eef3fb);color:#2c3a52;font-size:12.8px;font-weight:600;
}

/* ── ตารางการ์ดสินค้า ───────────────────────────────────────────────── */
.eq-grid{display:grid;gap:16px;margin-top:20px}
@media (min-width:720px){ .eq-grid{grid-template-columns:1fr 1fr} }
@media (min-width:1100px){ .eq-grid{grid-template-columns:1fr 1fr 1fr} }

.eq-card{
  display:flex;flex-direction:column;min-width:0;
  background:#fff;border:1px solid var(--sh-ring,#dbe4f2);border-radius:18px;overflow:hidden;
}
.eq-card:hover{border-color:#c3d3ea}

.eq-pic{
  position:relative;background:var(--sh-ice,#eef3fb);
  border-bottom:1px solid var(--sh-ring,#dbe4f2);padding:6px 10px 0;
}
.eq-pic img{display:block;width:100%;height:auto}
.eq-tag{
  position:absolute;top:12px;left:12px;padding:5px 12px;border-radius:999px;
  background:var(--sh-blue,#1d4ed8);color:#fff;font-size:12.3px;font-weight:700;
}
.eq-outbadge{
  position:absolute;top:12px;right:12px;padding:5px 12px;border-radius:999px;
  background:#fff4e0;color:#9a5b00;border:1px solid #f3ddb4;font-size:12.3px;font-weight:700;
}
.eq-out .eq-pic img{opacity:.62}

.eq-body{display:flex;flex-direction:column;flex:1 1 auto;padding:17px 18px 18px;min-width:0}
.eq-body h3{margin:0 0 4px;font-size:17px;font-weight:700;line-height:1.5}
.eq-model{margin:0 0 9px;font-size:12.6px;color:var(--sh-mut,#5d6b81);letter-spacing:.2px}
.eq-short{margin:0 0 12px;font-size:14.4px;line-height:1.8;color:var(--ink-2,#2c3a52)}

.eq-key{list-style:none;margin:0 0 14px;padding:0;display:grid;gap:7px}
.eq-key li{display:flex;gap:9px;align-items:flex-start;font-size:13.8px;line-height:1.65;
  color:var(--ink-2,#2c3a52)}
.eq-key svg{width:15px;height:15px;flex:0 0 auto;margin-top:3px;color:#15803d}

.eq-foot{
  display:flex;flex-wrap:wrap;gap:10px;align-items:center;justify-content:space-between;
  margin-top:auto;padding-top:13px;border-top:1px solid var(--line-2,#eef2f7);
}
/* ราคาเดิมที่ขีดฆ่า · มีเฉพาะรุ่นที่ลดราคาอยู่ */
.eq-was,.sp-was{color:var(--sh-mut,#5d6b81);font-weight:400;text-decoration-thickness:1.5px}
.eq-was{font-size:15px;margin-right:5px}
.sp-was{font-size:22px;margin-right:8px}

.eq-price{font-size:13.5px;color:var(--sh-mut,#5d6b81);white-space:nowrap}
.eq-price b{font-size:25px;font-weight:700;letter-spacing:-.5px;color:var(--sh-blue,#1d4ed8);
  margin-right:4px}
.eq-foot form{margin:0}
.eq-foot .ck-add{padding:11px 17px;font-size:14.6px;border-radius:10px}
.eq-ask{
  display:inline-flex;align-items:center;gap:8px;padding:11px 17px;border-radius:10px;
  background:#fff;border:1px solid var(--sh-ring,#dbe4f2);color:var(--ink-2,#2c3a52);
  font-size:14.6px;font-weight:700;
}
.eq-ask:hover{text-decoration:none;border-color:var(--sh-blue,#1d4ed8);color:var(--sh-blue,#1d4ed8)}
.eq-ask svg{width:17px;height:17px}

/* ── ตารางสเปกที่กางออกได้ ──────────────────────────────────────────── */
.eq-spec{margin-top:13px}
.eq-spec > summary{
  cursor:pointer;list-style:none;display:inline-flex;align-items:center;gap:7px;
  font-size:13.8px;font-weight:700;color:var(--sh-blue,#1d4ed8);
}
.eq-spec > summary::-webkit-details-marker{display:none}
.eq-spec > summary::marker{content:""}
.eq-spec > summary::after{
  content:"";width:8px;height:8px;border-right:2px solid currentColor;
  border-bottom:2px solid currentColor;transform:rotate(45deg);margin-top:-4px;
}
.eq-spec[open] > summary::after{transform:rotate(225deg);margin-top:2px}
.eq-spec table{
  width:100%;border-collapse:collapse;margin-top:11px;font-size:13.3px;
  border:1px solid var(--sh-ring,#dbe4f2);border-radius:11px;overflow:hidden;
}
.eq-spec th,.eq-spec td{
  padding:9px 11px;text-align:left;vertical-align:top;line-height:1.7;
  border-bottom:1px solid var(--line-2,#eef2f7);
}
.eq-spec th{width:38%;font-weight:700;color:var(--ink-2,#2c3a52);
  background:var(--sh-ice-2,#f6f9fd);white-space:normal}
.eq-spec td{color:var(--sh-mut,#5d6b81)}
.eq-spec tr:last-child th,.eq-spec tr:last-child td{border-bottom:0}

@media (max-width:520px){
  .eq-body{padding:15px 15px 16px}
  .eq-foot{justify-content:stretch}
  .eq-foot form,.eq-foot .ck-add,.eq-ask{width:100%}
  .eq-spec th{width:44%}
}

/* ══ หน้ารวมหมวดอุปกรณ์ · คลาส eqh- ═════════════════════════════════ */
.eqh-grid{display:grid;gap:13px;margin-top:20px}
@media (min-width:680px){ .eqh-grid{grid-template-columns:1fr 1fr} }
@media (min-width:1060px){ .eqh-grid{grid-template-columns:1fr 1fr 1fr} }

.eqh-card{
  display:flex;gap:14px;align-items:flex-start;min-width:0;
  background:#fff;border:1px solid var(--sh-ring,#dbe4f2);border-radius:16px;
  padding:17px 18px;color:var(--ink,#101a2c);
}
.eqh-card:hover{text-decoration:none;border-color:var(--sh-blue,#1d4ed8)}
.eqh-ic{
  display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;
  width:48px;height:48px;border-radius:14px;
  background:var(--sh-ice,#eef3fb);color:var(--sh-blue,#1d4ed8);
}
.eqh-ic svg{width:26px;height:26px}
.eqh-body{display:block;min-width:0}
.eqh-h{display:block;font-size:16.5px;font-weight:700;line-height:1.5}
.eqh-meta{display:block;margin-top:3px;font-size:12.8px;color:var(--sh-blue,#1d4ed8);font-weight:600}
.eqh-d{display:block;margin-top:7px;font-size:14px;line-height:1.75;color:var(--sh-mut,#5d6b81)}
.eqh-go,.eqh-ask{
  display:inline-flex;align-items:center;gap:7px;margin-top:11px;
  font-size:13.8px;font-weight:700;color:var(--sh-blue,#1d4ed8);
}
.eqh-go svg,.eqh-ask svg{width:15px;height:15px;flex:0 0 auto}
.eqh-ask{color:var(--sh-mut,#5d6b81)}
.eqh-soon{
  display:inline-block;margin-left:7px;padding:3px 9px;border-radius:999px;vertical-align:2px;
  background:var(--sh-ice-2,#f6f9fd);border:1px solid var(--sh-ring,#dbe4f2);
  font-size:11.4px;font-weight:600;color:var(--sh-mut,#5d6b81);white-space:nowrap;
}
.eqh-wait{background:var(--sh-ice-2,#f6f9fd)}
.eqh-wait .eqh-ic{background:#fff;color:var(--sh-mut,#5d6b81)}

/* ══ หน้ารายละเอียดสินค้ารายรุ่น · คลาส sp- ══════════════════════════ */
.sp-top{display:grid;gap:22px;align-items:start}
@media (min-width:900px){ .sp-top{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:30px} }
.sp-pic{
  background:var(--sh-ice,#eef3fb);border:1px solid var(--sh-ring,#dbe4f2);
  border-radius:18px;overflow:hidden;padding:8px;
}
.sp-pic img{width:100%;height:auto;border-radius:12px}

.sp-buy{min-width:0}
.sp-brand{
  display:inline-block;padding:5px 13px;border-radius:999px;margin-bottom:11px;
  background:var(--sh-ice,#eef3fb);color:var(--sh-blue,#1d4ed8);
  font-size:12.8px;font-weight:700;letter-spacing:.2px;
}
.sp-buy h1{margin:0 0 10px;font-size:clamp(21px,4.4vw,28px);line-height:1.42}
.sp-short{margin:0 0 15px;font-size:15.8px;line-height:1.82;color:var(--ink-2,#2c3a52)}
.sp-key{margin-bottom:18px !important}
.sp-key li{font-size:14.8px !important}

.sp-pricebox{
  background:var(--sh-ice-2,#f6f9fd);border:1px solid var(--sh-ring,#dbe4f2);
  border-radius:16px;padding:18px;margin-bottom:16px;
}
.sp-price{margin:0 0 14px;font-size:15px;color:var(--sh-mut,#5d6b81)}
.sp-price b{font-size:36px;font-weight:700;letter-spacing:-1px;
  color:var(--sh-blue,#1d4ed8);margin-right:6px}
.sp-price small{display:block;margin-top:2px;font-size:12.6px;color:var(--sh-mut,#5d6b81)}
.sp-pricebox form{margin:0}
.eq-big{width:100%;padding:15px 20px !important;font-size:17px !important;border-radius:12px}
.sp-outnote{margin:12px 0 0;font-size:13.4px;line-height:1.75;color:#9a5b00;
  background:#fff4e0;border:1px solid #f3ddb4;border-radius:11px;padding:11px 13px}

.sp-trust{list-style:none;margin:0 0 15px;padding:0;display:grid;gap:9px}
.sp-trust li{display:flex;gap:10px;align-items:flex-start;font-size:14.3px;line-height:1.72;
  color:var(--ink-2,#2c3a52)}
.sp-trust svg{width:16px;height:16px;flex:0 0 auto;margin-top:4px;color:#15803d}
.sp-call{margin:0;font-size:14.4px;line-height:1.8;color:var(--sh-mut,#5d6b81)}

/* ── รูปเพิ่มเติม ───────────────────────────────────────────────────── */
.sp-gal{display:grid;gap:14px;margin-top:18px}
@media (min-width:700px){ .sp-gal{grid-template-columns:1fr 1fr} }
.sp-gal figure{margin:0;background:#fff;border:1px solid var(--sh-ring,#dbe4f2);
  border-radius:16px;overflow:hidden}
.sp-gal img{width:100%;height:auto;display:block}
.sp-gal figcaption{padding:12px 15px;font-size:13.8px;line-height:1.7;
  color:var(--sh-mut,#5d6b81);border-top:1px solid var(--line-2,#eef2f7)}

/* ── ตารางสเปกเต็ม ──────────────────────────────────────────────────── */
.sp-spec{margin-top:16px}
.sp-spec th{width:34%}
@media (max-width:560px){ .sp-spec th{width:42%} }

/* ── รุ่นอื่นในหมวด ─────────────────────────────────────────────────── */
.sp-rel{display:grid;gap:12px;margin-top:16px}
@media (min-width:700px){ .sp-rel{grid-template-columns:repeat(3,1fr)} }
.sp-rel-c{
  display:flex;gap:13px;align-items:center;min-width:0;
  background:#fff;border:1px solid var(--sh-ring,#dbe4f2);border-radius:14px;
  padding:11px 13px;color:var(--ink,#101a2c);
}
.sp-rel-c:hover{text-decoration:none;border-color:var(--sh-blue,#1d4ed8)}
.sp-rel-c img{width:62px;height:62px;flex:0 0 auto;border-radius:10px;
  object-fit:cover;background:var(--sh-ice,#eef3fb)}
.sp-rel-c b{display:block;font-size:15px;font-weight:700;line-height:1.45}
.sp-rel-c small{display:block;margin-top:2px;font-size:12.8px;color:var(--sh-mut,#5d6b81)}

.eq-more{margin:11px 0 0;font-size:13.9px;font-weight:600}
.eq-card h3 a{color:var(--ink,#101a2c)}
.eq-card h3 a:hover{color:var(--sh-blue,#1d4ed8)}
a.eq-pic{display:block}
a.eq-pic:hover{text-decoration:none}

/* ══ สถานะของมีของหมด · คุมด้วย assets/stock.css ที่หลังบ้านเขียนให้ ══════
   🔴 หน้าเว็บใส่ปุ่มทั้งสองแบบไว้เสมอ แล้วให้ CSS เป็นคนเลือกว่าโชว์อันไหน
      หลังบ้านกดสลับแล้วเห็นผลทันที ไม่ต้องสร้างหน้า HTML ใหม่
   🔴 ค่าตั้งต้นคือมีของ ถ้าของหมดจะมีกฎใน stock.css มาทับ           */
.st-out{display:none !important}
.st-in{display:block}
.eq-foot .st-in{display:inline-block}
.sp-pricebox .st-in{display:block}
.st-in form{margin:0}
/* ══ ส่วนเสริมของหน้ารายละเอียด · เหตุผล ระยะ ขั้นตอน ตารางเทียบ คำถาม ══ */

/* เหตุผลที่ควรเลือกรุ่นนี้ */
.sp-why{display:grid;gap:14px;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));margin-top:18px}
.sp-why-c{background:#fff;border:1px solid var(--sh-ring,#dbe4f2);border-radius:16px;
  padding:20px 20px 22px;position:relative}
.sp-why-n{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;
  border-radius:10px;background:var(--sh-blue,#1d4ed8);color:#fff;font-size:16px;font-weight:700;
  margin-bottom:12px}
.sp-why-c h3{margin:0 0 8px;font-size:17px;font-weight:700;line-height:1.5}
.sp-why-c p{margin:0;font-size:14.4px;line-height:1.85;color:var(--ink-2,#2c3a52)}

/* แผนภาพระยะอ่าน */
.sp-range{margin-top:16px;background:#fff;border:1px solid var(--sh-ring,#dbe4f2);
  border-radius:16px;padding:14px;overflow-x:auto}
.sp-range img{display:block;width:100%;min-width:520px;height:auto;border-radius:10px}

/* ขั้นตอนเริ่มใช้งาน */
.sp-how{list-style:none;margin:18px 0 0;padding:0;display:grid;gap:12px;
  grid-template-columns:repeat(auto-fit,minmax(272px,1fr))}
.sp-how li{display:flex;gap:13px;align-items:flex-start;background:#fff;
  border:1px solid var(--sh-ring,#dbe4f2);border-radius:15px;padding:16px 17px}
.sp-how-n{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;
  width:30px;height:30px;border-radius:50%;background:#e7f0fd;color:var(--sh-blue,#1d4ed8);
  font-size:15px;font-weight:700}
.sp-how li div{min-width:0}
.sp-how li b{display:block;font-size:15.4px;font-weight:700;line-height:1.55;margin-bottom:4px}
.sp-how li span{display:block;font-size:14px;line-height:1.8;color:var(--sh-mut,#5d6b81)}
.sp-work{margin:16px 0 0;padding:15px 17px;border-radius:14px;background:#e7f0fd;
  border:1px solid #c6d9f7;font-size:14.6px;line-height:1.9;color:#17408f}

/* ตารางเทียบรุ่น */
.sp-cmp-wrap{margin-top:18px;background:#fff;border:1px solid var(--sh-ring,#dbe4f2);
  border-radius:16px;overflow-x:auto}
.sp-cmp{width:100%;border-collapse:collapse;font-size:14.4px;min-width:660px}
.sp-cmp th,.sp-cmp td{padding:13px 15px;text-align:left;vertical-align:middle;
  border-bottom:1px solid var(--line-2,#eef2f7)}
.sp-cmp thead th{background:#f6f9fd;font-size:13px;font-weight:700;color:#44536b;
  white-space:nowrap}
.sp-cmp tbody tr:last-child td{border-bottom:0}
.sp-cmp-p{white-space:nowrap;font-weight:700;color:var(--sh-blue,#1d4ed8)}
.sp-cmp-me{background:#f2f7ff}
.sp-cmp-me td{font-weight:600}
.sp-cmp a{font-weight:700}

/* คำถามที่พบบ่อยรายรุ่น */
.sp-q{background:#fff;border:1px solid var(--sh-ring,#dbe4f2);border-radius:14px;
  margin:0 0 10px;overflow:hidden}
.sp-q > summary{list-style:none;cursor:pointer;padding:16px 48px 16px 18px;position:relative;
  font-size:15.4px;font-weight:700;line-height:1.6;color:var(--ink-1,#15202f)}
.sp-q > summary::-webkit-details-marker{display:none}
.sp-q > summary::after{content:"";position:absolute;right:20px;top:22px;width:10px;height:10px;
  border-right:2.4px solid var(--sh-mut,#5d6b81);border-bottom:2.4px solid var(--sh-mut,#5d6b81);
  transform:rotate(45deg);transition:transform .15s}
.sp-q[open] > summary::after{transform:rotate(225deg);top:26px}
.sp-q > summary:hover{color:var(--sh-blue,#1d4ed8)}
.sp-q > div{padding:0 18px 17px}
.sp-q p{margin:0;font-size:14.5px;line-height:1.95;color:var(--ink-2,#2c3a52)}
.sp-src{margin:16px 0 0;padding:14px 16px;border-radius:13px;background:#f6f9fd;
  border:1px dashed var(--sh-ring,#dbe4f2);font-size:13.4px;line-height:1.85;
  color:var(--sh-mut,#5d6b81)}

@media screen and (max-width:560px){
  .sp-why-c{padding:17px 16px 18px}
  .sp-q > summary{padding:14px 42px 14px 15px;font-size:14.8px}
  .sp-q > div{padding:0 15px 15px}
}
