:root{
  --green:#00A950;
  --green-dark:#00793D;
  --green-deep:#005C2E;
  --green-soft:#E6F7EC;
  --green-line:#BFEBCF;
  --ink:#14231A;
  --muted:#5B6B60;
  --faint:#8A988E;
  --bg:#F4FAF6;
  --card:#FFFFFF;
  --amber:#F59E0B;
  --amber-soft:#FFF6E6;
  --red:#E1483B;
  --radius:16px;
}
*{box-sizing:border-box}
body{margin:0;background:var(--bg);color:var(--ink);padding-bottom:82px;}
a{color:var(--green-dark);text-decoration:none}
.muted{color:var(--muted);font-size:13px;line-height:1.7}

/* ---------- ไอคอน SVG กลาง (แทน emoji ทั้งหมด) — สี inherit จาก currentColor เสมอ ---------- */
.icon{width:20px;height:20px;display:inline-block;vertical-align:middle;flex-shrink:0}
.icon.inline-lg{width:30px;height:30px}
.icon.inline-sm{width:14px;height:14px}

/* ---------- brand/topbar — สีเขียว (หลัก) + ทอง/อำพัน (accent) แทนแถบขาว ใช้ทั้ง mobile และ desktop ---------- */
.brand{display:flex;align-items:center;gap:10px;padding:18px 16px;
  background:linear-gradient(160deg,var(--green) 0%,var(--green-dark) 100%);}
.brand .logo{width:36px;height:36px;border-radius:10px;background:#fff;border:1px solid rgba(255,255,255,.5);display:flex;align-items:center;justify-content:center;overflow:hidden;padding:3px;}
.brand .logo img{width:100%;height:100%;object-fit:contain}
.brand .name{font-size:19px;font-weight:700;color:#fff}
.brand .name small{display:block;font-size:12.5px;font-weight:400;color:rgba(255,255,255,.9);margin-top:2px}
.brand .badge{background:var(--amber);color:#fff;display:inline-flex;align-items:center;gap:4px}
.topbar{padding:18px 16px;display:flex;align-items:center;gap:10px;
  background:linear-gradient(160deg,var(--green) 0%,var(--green-dark) 100%);}
.topbar .back{width:32px;height:32px;border-radius:8px;background:var(--amber);color:#fff;display:flex;align-items:center;justify-content:center;font-size:16px;flex-shrink:0;}
.topbar .back .icon{width:18px;height:18px}
.topbar .title{font-size:16px;font-weight:600;flex:1;color:#fff}

/* ---------- login ---------- */
.login-hero{height:220px;background:linear-gradient(160deg,var(--green) 0%,var(--green-dark) 100%);
  display:flex;flex-direction:column;align-items:center;justify-content:center;color:#fff;text-align:center;padding:36px 20px 0;}
.login-hero .mark{width:64px;height:64px;border-radius:18px;background:#fff;display:flex;align-items:center;justify-content:center;margin-bottom:12px;overflow:hidden;padding:8px;}
.login-hero .mark img{width:100%;height:100%;object-fit:contain}
.login-hero .brandline{font-size:19px;font-weight:700}
.login-hero .tag{font-size:12px;opacity:.85;margin-top:2px;font-weight:300}
.login-body{background:var(--card);border-radius:26px 26px 0 0;margin-top:-20px;padding:26px 20px;position:relative;z-index:2;max-width:480px;margin-left:auto;margin-right:auto;}
.login-title{font-size:15px;font-weight:600;text-align:center;margin-bottom:18px}
.btn-google-official{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;background:#fff;
  border:1px solid #DADCE0;border-radius:12px;padding:14px;font-weight:600;font-size:14px;color:#3C4043;cursor:pointer;}
.btn-google-official .gicon{width:20px;height:20px}
.login-note{text-align:center;font-size:11.5px;color:var(--muted);line-height:1.7;margin-top:16px}
.login-contact{text-align:center;font-size:12.5px;color:var(--green-dark);margin-top:18px;font-weight:600}
.alert-error{background:#FEECEC;color:var(--red);border:1px solid #F5C2C2;border-radius:10px;padding:10px 14px;font-size:13px;margin-bottom:14px}

/* ---------- forms ---------- */
.field-label{display:block;font-size:13px;font-weight:600;margin-bottom:6px}
.field-input{width:100%;border:1px solid #DCE5DF;border-radius:10px;padding:12px 14px;font-size:14px;font-family:inherit}
.field-hint{font-size:11.5px;color:var(--muted);margin-top:6px;line-height:1.6}
.section-title{font-size:16px;font-weight:700;margin-bottom:8px}
.btn-fill{display:block;background:var(--green);color:#fff;border:none;border-radius:12px;font-weight:600;font-size:14px;
  text-align:center;padding:14px;cursor:pointer;width:100%}
.btn-outline{display:block;background:#fff;color:var(--green-dark);border:1px solid var(--green-line);border-radius:12px;
  font-weight:600;font-size:14px;text-align:center;padding:14px;cursor:pointer;width:100%}

/* ---------- catalog/product ---------- */
.filter-chips{display:flex;gap:8px;overflow-x:auto;padding:14px 16px;}
.chip{flex-shrink:0;padding:8px 14px;border-radius:20px;background:var(--green-soft);color:var(--green-dark);font-size:12.5px;font-weight:600;border:1px solid transparent;}
.chip.active{background:var(--green);color:#fff}
.prod-row{display:flex;gap:12px;padding:12px 16px;border-bottom:1px solid #EEF3EF;align-items:center}
.prod-row .thumb{position:relative;width:52px;height:70px;border-radius:6px;flex-shrink:0;overflow:hidden}
.prod-row .thumb img{width:100%;height:100%;object-fit:cover;object-position:top center;display:block;position:relative;z-index:2}
/* บั๊กที่แก้แล้ว (2026-07-22): เดิม .thumb-fallback เป็น position:absolute แต่ .thumb img ไม่มี position/z-index เลย
   ตาม stacking rule ของ CSS แล้ว element ที่ positioned จะวาดทับ element ที่ static เสมอไม่ว่าจะอยู่ก่อน/หลังใน DOM
   ผลคือรูปปกจริงโหลดสำเร็จแต่ fallback สีเขียวบังไว้ตลอด ไม่เคยเห็นรูปจริงเลยแม้จะอัปโหลดแล้ว — ใส่ z-index ให้ img ด้านบน */
.thumb-fallback{width:100%;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;
  background:linear-gradient(160deg,var(--green) 0%,var(--green-dark) 100%);color:#fff;text-align:center;position:absolute;inset:0;z-index:1}
.thumb-fallback .code-no{font-size:13px;font-weight:800;line-height:1.1}
.thumb-fallback .code-pre{font-size:8px;opacity:.85;letter-spacing:.05em}
/* ยืนยัน 2026-07-23 — เดิมหน้า product.php มี .cover-box ใบเดียวข้างบน แล้วค่อยมีบล็อก .co-sec ของ
   ชีทหลัก/Recheck เรียงต่อกันด้านล่าง (ผู้ใช้ขอให้ "วางคู่กัน" ให้เห็นทั้งสองตัวเลือกพร้อมกันทั้ง mobile/desktop)
   เปลี่ยนเป็น .product-options การ์ดคู่ (แต่ละใบมีปกของตัวเอง คนละไฟล์กับอีกใบ) แทน .cover-box เดิม (เอาออกแล้ว) */
.product-options{display:grid;grid-template-columns:1fr;gap:12px;max-width:560px;margin:14px auto 0}
.product-options.has-two{grid-template-columns:1fr 1fr}
.option-card{background:var(--card);border:1px solid #EEF3EF;border-radius:14px;overflow:hidden;display:flex;flex-direction:column}
.option-cover{position:relative;aspect-ratio:210/297;background:#fff;overflow:hidden}
.option-cover img{width:100%;height:100%;object-fit:cover;object-position:top center;display:block;position:relative;z-index:2;background:#fff}
.option-cover-fallback{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;
  background:linear-gradient(160deg,var(--green) 0%,var(--green-dark) 100%);color:#fff;text-align:center;z-index:1;padding:4px}
.option-cover-fallback .code-no{font-size:20px;font-weight:800;line-height:1.1}
.option-cover-fallback .code-pre{font-size:10px;opacity:.85;letter-spacing:.06em;margin-top:2px}
.option-body{padding:10px;display:flex;flex-direction:column;gap:6px;flex:1}
.option-label{font-size:13px;font-weight:700;color:var(--ink)}
.option-price{font-size:16px;font-weight:800;color:var(--green-dark)}
.option-card .sample-gallery{max-width:100%}
.option-card .btn-fill,.option-card .btn-outline{padding:9px;font-size:12.5px;margin-top:auto}

/* คลิปแนะนำ YouTube ต่อวิชา (ค่าเริ่มต้นชี้คลิปเดียวกันทุกวิชาไปก่อน จนกว่าแอดมินจะเปลี่ยนเป็นคลิปเฉพาะวิชา) */
.yt-card{position:relative;display:block;border-radius:14px;overflow:hidden;background:#000;aspect-ratio:16/9;max-width:560px;margin:0 auto 4px}
.yt-thumb{width:100%;height:100%;object-fit:cover;display:block;opacity:.85}
.yt-play{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:52px;height:52px;border-radius:50%;
  background:rgba(225,72,59,.92);color:#fff;display:flex;align-items:center;justify-content:center}
.yt-play .icon{width:24px;height:24px}
.yt-label{position:absolute;left:0;right:0;bottom:0;padding:8px 12px;background:linear-gradient(0deg,rgba(0,0,0,.65),transparent);
  color:#fff;font-size:12px;font-weight:600}

/* ---------- sample-image gallery (product.php) — เผื่อไว้ 1-10 ภาพ มีเท่าไหร่โชว์เท่านั้น
   หมายเหตุบั๊กที่แก้แล้ว (2026-07-22): เดิมไม่ได้จำกัด max-width ของกล่อง gallery เอาไว้ ทำให้ความกว้าง
   ยืดเท่าการ์ด .co-sec (กว้างเกือบเต็มจอ desktop) แล้ว aspect-ratio:3/4 คำนวณความสูงจากความกว้างนั้นอีกที
   ผลคือกล่องใหญ่มากบนจอกว้าง (ไม่ใช่ปัญหาไฟล์ภาพใหญ่ หรือ object-fit ทำงานผิด) เลยจำกัด max-width ไว้ที่นี่แทน ---------- */
.sample-gallery{position:relative;max-width:320px;margin:10px auto 0;border-radius:14px;overflow:hidden;background:#fff;border:1px solid #EEF3EF}
.sample-track{display:flex;transition:transform .25s ease}
.sample-slide{flex:0 0 100%;aspect-ratio:3/4;display:flex;align-items:center;justify-content:center;background:#fff}
.sample-slide img{width:100%;height:100%;object-fit:contain;cursor:zoom-in}
.sample-nav{position:absolute;top:50%;transform:translateY(-50%);width:34px;height:34px;border-radius:50%;
  background:rgba(20,35,26,.55);color:#fff;border:none;display:flex;align-items:center;justify-content:center;cursor:pointer;padding:0}
.sample-nav .icon{width:18px;height:18px}
.sample-nav.prev{left:8px}
.sample-nav.next{right:8px;transform:translateY(-50%) rotate(180deg)}
.sample-nav:disabled{opacity:.3;cursor:default}
.sample-counter{position:absolute;bottom:8px;right:10px;background:rgba(20,35,26,.6);color:#fff;font-size:11px;padding:3px 9px;border-radius:20px}
.prod-row .n{font-size:14px;font-weight:600}
.prod-row .badges{display:flex;gap:6px;margin:4px 0}
.badge{font-size:10px;padding:2px 8px;border-radius:20px;background:var(--green-soft);color:var(--green-dark);font-weight:600}
.badge.grey{background:#EEF1EE;color:var(--faint)}
.prod-row .price{font-weight:700;color:var(--green-dark)}

/* ---------- checkout ---------- */
.co-sec{margin:14px 16px;background:var(--card);border:1px solid #EEF3EF;border-radius:14px;padding:14px 16px}
.co-sec .lbl{font-size:10px;font-weight:700;color:var(--faint);text-transform:uppercase;letter-spacing:.05em;margin-bottom:8px}
.co-item{display:flex;justify-content:space-between;font-size:13px;padding:6px 0}
.co-item.disc .v{color:var(--red)}
.co-item.ship .v{color:var(--green-dark)}
.co-total{display:flex;justify-content:space-between;padding-top:10px;margin-top:8px;border-top:1px dashed #E1E8E2}
.co-total .n{font-size:14px;font-weight:700}
.co-total .v{font-size:19px;font-weight:800;color:var(--green-dark)}

/* ยืนยัน 2026-07-23 — บาร์ยืนยันสั่งซื้อลอยติดล่างจอ (checkout sticky bar) กันปุ่มจมหายตอนตะกร้า/แนะนำซื้อคู่กันยาว
   bottom:82px บนมือถือ (ลอยเหนือ .bottom-nav ที่กินพื้นที่ 82px อยู่แล้ว — ดู body{padding-bottom:82px}), bottom:0 บนจอใหญ่ (.bottom-nav ถูกซ่อน) */
.checkout-stickybar{position:fixed;left:0;right:0;bottom:82px;z-index:150;background:#fff;border-top:1px solid #EEF3EF;
  box-shadow:0 -4px 16px rgba(0,0,0,.06);padding:10px 16px;display:flex;align-items:center;gap:12px;max-width:520px;margin:0 auto}
.csb-total{display:flex;flex-direction:column;line-height:1.2}
.csb-label{font-size:10px;color:var(--faint)}
.csb-amount{font-size:18px;font-weight:800;color:var(--green-dark)}
@media (min-width:900px){ .checkout-stickybar{bottom:0} }

/* ยืนยัน 2026-07-23 (รอบ 2) — พี่ขอให้ปุ่ม "ติดต่อสอบถามด่วน" อยู่แถวเดียวกับปุ่ม "ยืนยันสั่งซื้อ" เลย (ไม่ใช่แยกเป็น
   แถวเต็มความกว้างด้านบนแบบเดิม) เอายอดชำระไปเป็นบรรทัดเล็กๆ ด้านบนแทน แล้วไม่ต้องกระพริบ/สีแดงจัดจ้านแล้ว (พี่บอกดูน่าตกใจไป) */
.checkout-stickybar.has-urgent{flex-direction:column;align-items:stretch;padding:9px 16px 11px}
.csb-total-inline{font-size:11px;color:var(--faint);text-align:center;margin-bottom:6px}
.csb-total-inline b{color:var(--green-dark);font-size:13px}
.csb-row{display:flex;align-items:center;gap:10px}
.csb-row form{margin:0;flex:1}
.urgent-contact-btn{width:100%;background:#161616;color:#fff;border:none;border-radius:12px;padding:11px 10px;
  font-size:12.5px;font-weight:600;letter-spacing:.1px;display:flex;align-items:center;justify-content:center;gap:6px;
  font-family:inherit;cursor:pointer;margin:0;white-space:nowrap}
.urgent-status{text-align:center;font-size:10.5px;margin-top:5px;line-height:1.5;color:var(--faint)}
.co-coupon{display:flex;align-items:center;gap:8px;background:var(--green-soft);border:1px dashed var(--green-line);
  border-radius:10px;padding:11px 12px;font-size:12.5px;font-weight:500;color:var(--green-deep);}

/* ---------- announcements/banners ---------- */
/* ยืนยัน 2026-07-23 — mockup ตั้งใจให้เป็น marquee วิ่งซ้าย ของจริงที่เคยทำไว้เป็น static เฉยๆ (ตกหล่น) แก้ให้วิ่งจริง
   ข้อความเริ่มนอกจอด้านขวา (padding-left:100%) แล้ววิ่งไปทางซ้ายจนพ้นจอ วนซ้ำ — หยุดวิ่งชั่วคราวตอน hover (เผื่อมีคนอ่านทัน) */
.announce-banner{background:var(--amber-soft);color:#92610A;padding:10px 0;font-size:12.5px;font-weight:600;overflow:hidden;white-space:nowrap}
.announce-banner .marquee-track{display:inline-block;padding-left:100%;animation-name:announce-marquee;animation-timing-function:linear;animation-iteration-count:infinite}
.announce-banner:hover .marquee-track{animation-play-state:paused}
@keyframes announce-marquee{
  0%{transform:translateX(0)}
  100%{transform:translateX(-100%)}
}
.pending-banner{margin:14px 16px;background:var(--amber-soft);border:1px solid #F3D9A6;border-radius:12px;padding:12px 14px;font-size:12.5px;color:#92610A;display:flex;align-items:center;gap:8px}
.shipped-banner{margin:14px 16px;background:var(--green-soft);border:1px solid var(--green-line);border-radius:12px;padding:12px 14px;font-size:12.5px;color:var(--green-deep);display:flex;align-items:center;gap:10px}

/* ---------- icon grid (home) ---------- */
.icon-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;padding:16px}
.igrid-item{background:var(--card);border:1px solid #EEF3EF;border-radius:16px;padding:18px 8px;text-align:center;font-size:12.5px;font-weight:600;color:var(--ink);
  box-shadow:0 1px 3px rgba(20,35,26,.05);transition:transform .15s ease,box-shadow .15s ease,border-color .15s ease}
.igrid-item:hover{transform:translateY(-2px);box-shadow:0 8px 18px rgba(20,35,26,.09);border-color:var(--green-line)}
.igrid-item .ic{display:flex;align-items:center;justify-content:center;margin:0 auto 10px;width:44px;height:44px;border-radius:50%;background:var(--green-soft);color:var(--green-dark)}
.igrid-item .ic .icon{width:22px;height:22px}

/* ---------- bottom nav (mobile) — เขียวเข้ม แทนขาว, ไอคอน SVG ใหญ่ขึ้นให้กดง่าย ---------- */
.bottom-nav{position:fixed;left:0;right:0;bottom:0;background:var(--green-deep);border-top:2px solid var(--amber);display:flex;z-index:100;}
.bn-item{flex:1;text-align:center;padding:11px 4px 8px;font-size:10.5px;color:rgba(255,255,255,.85);display:flex;flex-direction:column;align-items:center;gap:3px}
.bn-item .icon{width:25px;height:25px}
.bn-item span{display:block}

/* ---------- lightbox (กดรูปเพื่อขยายเต็มจอ / ซูมอ่านรายละเอียด) ---------- */
.zoomable{cursor:zoom-in}
.lightbox-overlay{display:none;position:fixed;inset:0;background:rgba(0,0,0,.92);z-index:9999;
  align-items:center;justify-content:center;padding:24px;overflow:auto}
.lightbox-overlay.open{display:flex}
.lightbox-overlay .lightbox-img{max-width:100%;max-height:100%;border-radius:8px;touch-action:pinch-zoom;-webkit-user-select:none;user-select:none}
.lightbox-close{position:fixed;top:14px;right:18px;color:#fff;font-size:32px;line-height:1;cursor:pointer;z-index:10000;font-weight:300}

/* ---------- popup toast ---------- */
.popup-toast{position:fixed;top:16px;left:50%;transform:translateX(-50%);background:var(--green-deep);color:#fff;
  padding:12px 18px;border-radius:12px;font-size:13px;z-index:999;box-shadow:0 8px 24px rgba(0,0,0,.2);max-width:90%;text-align:center}
.popup-toast .popup-link{color:#fff;text-decoration:underline;display:block;margin-top:4px;font-size:11px}

/* ---------- footer ---------- */
.site-footer{padding:16px;text-align:center;font-size:11.5px;color:var(--muted)}
.ff-contact{margin-bottom:6px}

/* ---------- admin ---------- */
.admin-wrap{max-width:1100px;margin:0 auto;padding:20px}
.admin-card{background:#fff;border:1px solid #EEF3EF;border-radius:14px;padding:18px;margin-bottom:16px}
.admin-table{width:100%;border-collapse:collapse;font-size:13px}
.admin-table th,.admin-table td{text-align:left;padding:10px 8px;border-bottom:1px solid #EEF3EF}
.admin-table th{color:var(--faint);font-weight:600;font-size:11px;text-transform:uppercase}
.stat-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px;margin-bottom:16px}
.stat-box{background:var(--green-soft);border-radius:12px;padding:14px}
.stat-box .v{font-size:22px;font-weight:800;color:var(--green-deep)}
.stat-box .l{font-size:11px;color:var(--muted)}
.status-tag{font-size:11px;padding:3px 10px;border-radius:20px;font-weight:600}
.status-PENDING{background:#FFF6E6;color:#92610A}
.status-SUCCESS{background:#E6F7EC;color:var(--green-dark)}
.status-PACKED{background:#E8EEFB;color:#2A4FA0}
.status-SHIPPED{background:#E6F7EC;color:var(--green-dark)}
.status-DELIVERED{background:#EEF1EE;color:var(--faint)}
.status-CANCELLED{background:#FEECEC;color:var(--red)}
.status-REFUNDED,.status-PARTIALLY_REFUNDED{background:#FEECEC;color:var(--red)}

/* ---------- desktop top nav (hidden on mobile; bottom-nav used instead) ---------- */
.desktop-nav{display:none}

@media (min-width:900px){
  body{max-width:none;padding-top:64px;padding-bottom:0;background:var(--bg)}
  .bottom-nav{display:none}
  .mobile-only-admin-link{display:none}

  .desktop-nav{display:flex;position:fixed;top:0;left:0;right:0;height:64px;
    background:linear-gradient(160deg,var(--green) 0%,var(--green-dark) 100%);
    z-index:200;box-shadow:0 2px 10px rgba(0,89,45,.18)}
  .desktop-nav-inner{max-width:1100px;margin:0 auto;width:100%;display:flex;align-items:center;gap:26px;padding:0 24px}
  .desktop-nav .dn-brand{display:flex;align-items:center;gap:10px;font-weight:700;color:#fff;font-size:15px;margin-right:auto}
  .desktop-nav .dn-brand .logo{width:34px;height:34px;border-radius:9px;background:#fff;border:1px solid rgba(255,255,255,.5);display:flex;align-items:center;justify-content:center;overflow:hidden;padding:3px}
  .desktop-nav .dn-brand .logo img{width:100%;height:100%;object-fit:contain}
  .desktop-nav .dn-link{display:inline-flex;align-items:center;gap:6px;font-size:13.5px;font-weight:600;color:rgba(255,255,255,.8);padding:8px 2px;border-bottom:2px solid transparent}
  .desktop-nav .dn-link .icon{width:17px;height:17px}
  .desktop-nav .dn-link:hover{color:#fff}
  .desktop-nav .dn-link.active{color:#fff;border-bottom-color:var(--amber)}
  .desktop-nav .dn-points{display:inline-flex;align-items:center;gap:5px;font-size:12.5px;font-weight:700;color:var(--green-dark);background:var(--amber-soft);padding:6px 12px;border-radius:20px}
  .desktop-nav .dn-points .icon{width:15px;height:15px}
  .desktop-nav .dn-logout{display:inline-flex;align-items:center;gap:5px;font-size:12.5px;font-weight:600;color:rgba(255,255,255,.85);padding:6px 12px;border:1px solid rgba(255,255,255,.5);border-radius:20px}
  .desktop-nav .dn-logout .icon{width:15px;height:15px}
  .desktop-nav .dn-logout:hover{background:rgba(255,255,255,.15);color:#fff}

  /* center the content area at the SAME width as the nav bar's inner content (1100px) — no more mismatched narrow column under a full-width bar */
  .topbar,.announce-banner,.shipped-banner,.pending-banner,.icon-grid,
  .login-hero,.co-sec,.brand,.site-footer,
  [style*="padding:16px"]{
    max-width:1100px;margin-left:auto;margin-right:auto;
  }
  .login-hero{max-width:none}
  .topbar,.announce-banner{border-radius:0}
  .co-sec{border-radius:14px;margin-top:14px}
  .site-footer{padding-bottom:32px}

  /* .brand ซ้ำกับ .desktop-nav อยู่แล้ว (โลโก้/ชื่อร้าน/แต้ม) — ที่ desktop เลยลดให้เหลือแค่ข้อความทักทาย ไม่เอา block สีเขียวซ้ำอันที่สอง */
  .brand{background:none;box-shadow:none;border:none;padding:18px 0 6px;margin-top:0}
  .brand .logo,.brand .badge{display:none}
  .brand .name{color:var(--ink);font-size:22px}
  .brand .name small{color:var(--muted)}

  /* ไอคอนกริดหน้าแรก — ให้เรียงแถวเดียวพอดี 1100px แทนที่จะเป็น 3 คอลัมน์การ์ดใหญ่โล่งๆ */
  .icon-grid{grid-template-columns:repeat(5,1fr);gap:16px;padding:8px 0 20px}
  .igrid-item{padding:26px 12px}
  .igrid-item .ic{width:52px;height:52px}
  .igrid-item .ic .icon{width:24px;height:24px}

  /* catalog page: chips bar + product list get the wider grid width */
  .filter-chips{max-width:1100px;margin-left:auto;margin-right:auto}
  .catalog-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:16px;
    max-width:1100px;margin:14px auto;padding:0 16px}
  .catalog-grid .prod-row{flex-direction:column;align-items:stretch;border:1px solid #EEF3EF;border-radius:14px;
    padding:14px;background:var(--card)}
  .catalog-grid .prod-row .thumb{width:100%;height:150px;border-radius:10px}

  .admin-wrap{max-width:1100px}

  /* ยืนยัน 2026-07-23 — chat.php: กล่องพิมพ์ข้อความ (form ล่างสุด) เดิมไม่โดน selector [style*="padding:16px"]
     จับ (padding เป็น "12px 16px" ไม่ใช่ "16px" เฉยๆ) เลยยาวเต็มจอ ไม่เท่ากับความกว้างหัว/กล่องแชทด้านบนที่ถูก cap ไว้ 1100px */
  .chat-compose{max-width:1100px;margin-left:auto;margin-right:auto}
}
