/* ITM-TOTOP-V1: ปุ่ม "กลับบนสุด" ทุกหน้า — โผล่เมื่อเลื่อนลงเกิน ~1 จอ · เลื่อนถึงท้ายหน้า = เหลืองเด่นขยับเรียกให้กด · กลางล่างจอ (ไม่ทับเมนูซ้าย/แผงขวา) · มือถืออยู่เหนือเมนูล่าง · โหมดแคตตาล็อกซ่อน (ตารางมีปุ่มของตัวเอง) */
.itm-totop{position:fixed;left:50%;bottom:22px;z-index:1500;display:inline-flex;align-items:center;gap:6px;height:40px;padding:0 16px 0 12px;border:1px solid #d9d9d3;border-radius:999px;background:#fff;color:#333;font-size:13.5px !important;line-height:1;font-family:inherit;box-shadow:0 4px 14px rgba(0,0,0,.15);cursor:pointer;opacity:0;pointer-events:none;transform:translate(-50%,12px);transition:opacity .2s,transform .2s,background .2s,border-color .2s}
.itm-totop svg{width:16px;height:16px;fill:currentColor;flex:none}
.itm-totop span{font-size:13.5px !important}
.itm-totop.on{opacity:1;pointer-events:auto;transform:translate(-50%,0)}
.itm-totop.end{background:#EBD412;border-color:#EBD412;color:#222;font-weight:600;animation:itm-tt-bob 1.6s ease-in-out infinite}
.itm-totop:hover{background:#EBD412;border-color:#EBD412;color:#222;animation:none}
@keyframes itm-tt-bob{0%,100%{transform:translate(-50%,0)}50%{transform:translate(-50%,-4px)}}
@media (max-width:991px){.itm-totop{bottom:calc(76px + env(safe-area-inset-bottom, 0px))}}
.itm-vm-cat .itm-totop{display:none}
@media print{.itm-totop{display:none}}
@media (prefers-reduced-motion:reduce){.itm-totop{transition:none}.itm-totop.end{animation:none}}
