/* ============================================================================
 * wow.css — ชุดหน้าตาใหม่ทั้งแอป (Anna & Little Bakery House POS)
 * แนวคิด: อ่านง่ายทุกวัย · ปุ่มใหญ่กดง่าย · สีอบอุ่นแบบร้านเบเกอรี่ · ทุกหน้าจอใช้ภาษาเดียวกัน
 * ทำงานเป็น "ชั้นธีม" ทับของเดิม (html.wow) — ไม่เปลี่ยนหน้าที่การทำงานใดๆ
 * ========================================================================== */

/* ---------- 1) โทนสี / ตัวแปร (ทับตัวแปรเดิม → หน้าบริหาร/คลัง/ตั้งค่าได้โทนใหม่ทันที) ---------- */
html.wow {
  --w-bg: #FBF6EF; --w-bg2: #F3E9DC; --w-card: #FFFFFF; --w-ink: #2B1D19; --w-mute: #7B6A62; --w-line: #ECE0D3;
  --w-brand: #7A1626; --w-brand2: #A32638; --w-brand-soft: #FBEAEC;
  --w-accent: #E3A857; --w-accent-soft: #FFF3DD;
  --w-ok: #15985A; --w-ok2: #1DB36B; --w-ok-soft: #E4F6EC;
  --w-warn: #F29C1B; --w-bad: #D93F3F; --w-bad-soft: #FDE8E8; --w-info: #2B7BD6;
  --w-chip: #F6EEE4; --w-r: 18px; --w-r-sm: 12px;
  --w-shadow: 0 2px 6px rgba(80, 40, 20, .06), 0 10px 28px rgba(80, 40, 20, .08);
  --w-shadow-lg: 0 18px 50px rgba(60, 20, 10, .22);
  --fs: 1;

  --bg-main: var(--w-bg); --bg-panel: var(--w-card); --bg-card: var(--w-card); --bg-hover: #FAF3EA; --bg-input: #fff;
  --text-main: var(--w-ink); --text-muted: var(--w-mute); --border-color: var(--w-line); --shadow-color: rgba(80, 40, 20, .08);
  --accent-color: var(--w-accent); --accent-light: var(--w-accent-soft);
  --color-blue: var(--w-info); --color-red: var(--w-bad); --color-green: var(--w-ok2); --color-orange: var(--w-warn);
}
html.wow[data-theme="dark"] {
  --w-bg: #16100E; --w-bg2: #1F1714; --w-card: #231A17; --w-ink: #F5EBE4; --w-mute: #B7A69C; --w-line: #3A2D28;
  --w-brand: #E5879A; --w-brand2: #F2A3B2; --w-brand-soft: #3A1F25; --w-accent-soft: #3A2E1A; --w-ok-soft: #14301F; --w-bad-soft: #3A1B1B; --w-chip: #2D221E;
  --w-shadow: 0 2px 6px rgba(0, 0, 0, .4), 0 10px 28px rgba(0, 0, 0, .35);
  --bg-hover: #2A1F1B;  --bg-input: #1A1311;
}

/* ---------- 2) พื้นฐาน: ฟอนต์ / โฟกัส / การกด / การเลื่อน ---------- */
html.wow body { font-family: 'Prompt', 'Sarabun', system-ui, sans-serif; background: var(--w-bg); color: var(--w-ink); -webkit-font-smoothing: antialiased; }
html.wow button, html.wow input, html.wow select, html.wow textarea { font-family: inherit; }
html.wow :focus-visible { outline: 3px solid var(--w-info); outline-offset: 2px; border-radius: 10px; }
html.wow button, html.wow [onclick], html.wow .nav-tab { touch-action: manipulation; }
html.wow button:not(:disabled):active, html.wow .nav-tab:active { transform: scale(.97); }
html.wow button:disabled { opacity: .5; cursor: not-allowed; }
html.wow ::-webkit-scrollbar { width: 10px; height: 10px; }
html.wow ::-webkit-scrollbar-thumb { background: #D9C8B8; border-radius: 10px; border: 2px solid transparent; background-clip: padding-box; }
html.wow ::-webkit-scrollbar-thumb:hover { background: #C4AE9A; background-clip: padding-box; border: 2px solid transparent; }
html.wow input:not([type=checkbox]):not([type=radio]), html.wow select, html.wow textarea { border-radius: 12px; }
html.wow input:focus, html.wow select:focus, html.wow textarea:focus { border-color: var(--w-brand) !important; box-shadow: 0 0 0 4px var(--w-brand-soft); outline: none; }
@media (prefers-reduced-motion: reduce) { html.wow * { animation: none !important; transition: none !important; } }

/* ---------- 3) ขนาดตามหน้าจอคอม (ย่อ/ขยายทั้งแอปให้พอดีทุกขนาด + ตัวเลือกขนาดตัวอักษรของผู้ใช้) ---------- */
html.wow { --zw: 1; --z: calc(var(--zw) * var(--fs)); }
@media (min-width: 769px) and (max-width: 1100px) { html.wow { --zw: .92; } }
@media (min-width: 1400px) and (max-width: 1679px) { html.wow { --zw: 1.06; } }
@media (min-width: 1680px) and (max-width: 2199px) { html.wow { --zw: 1.18; } }
@media (min-width: 2200px) and (max-width: 2999px) { html.wow { --zw: 1.5; } }
@media (min-width: 3000px) { html.wow { --zw: 1.95; } }
@media (min-width: 769px) and (max-height: 760px) { html.wow { --zw: .9; } }
@media (min-width: 769px) {
  html.wow #mainApp { zoom: var(--z); width: calc(100% / var(--z)) !important; height: calc(100% / var(--z)) !important; flex: none !important; }
  html.wow #posScreen { zoom: var(--z); width: calc(100vw / var(--z)) !important; height: calc(100vh / var(--z)) !important; }
  html.wow .modal-content { zoom: var(--z); max-height: calc(90vh / var(--z)); }
  html.wow #smartPaymentModal > div, html.wow #wowHelp .wh-card, html.wow .wow-modal-card { zoom: var(--z); max-height: calc(92vh / var(--z)) !important; }
  html.wow .tab-content { max-width: 1480px !important; padding: 22px clamp(18px, 3vw, 44px) 40px !important; }
}

/* ---------- 4) แถบเมนูด้านบน ---------- */
html.wow .top-nav-bar { background: rgba(255, 255, 255, .86); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); border-bottom: 1px solid var(--w-line); box-shadow: 0 6px 24px rgba(80, 40, 20, .06); padding: 10px clamp(14px, 2.4vw, 32px) !important; justify-content: space-between !important; gap: 14px; flex-wrap: nowrap !important; }
html.wow[data-theme="dark"] .top-nav-bar { background: rgba(35, 26, 23, .86); }
html.wow .wow-brand { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 0 1 auto; cursor: pointer; }
html.wow .wow-brand img { width: 46px; height: 46px; border-radius: 14px; object-fit: cover; box-shadow: 0 4px 12px rgba(122, 22, 38, .25); border: 2px solid #fff; }
html.wow .wow-brand b { display: block; font-size: 17px; font-weight: 800; color: var(--w-brand); line-height: 1.15; white-space: nowrap; }
html.wow .wow-brand small { display: block; font-size: 12.5px; color: var(--w-mute); font-weight: 500; white-space: nowrap; }
html.wow .wow-tabs { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center; flex: 1 1 auto; }
html.wow .nav-tab { background: transparent !important; border: 2px solid transparent !important; color: var(--w-mute) !important; font-size: 16px !important; font-weight: 600 !important; padding: 11px 20px !important; border-radius: 16px !important; box-shadow: none !important; transition: all .18s; }
html.wow .nav-tab:hover { background: var(--w-chip) !important; color: var(--w-ink) !important; }
html.wow .nav-tab.active { background: var(--w-brand) !important; color: #fff !important; box-shadow: 0 6px 16px rgba(122, 22, 38, .28) !important; }
html.wow #themeToggleBtn { background: var(--w-chip) !important; color: var(--w-ink) !important; border-color: var(--w-line) !important; padding: 11px 14px !important; }
html.wow .wow-user { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
html.wow .wow-chip { display: inline-flex; align-items: center; gap: 8px; background: var(--w-chip); color: var(--w-ink); border: 1px solid var(--w-line); border-radius: 999px; padding: 8px 14px; font-weight: 600; font-size: 14px; cursor: pointer; white-space: nowrap; }
html.wow .wow-chip:hover { border-color: var(--w-brand); }
html.wow .wow-chip .av { width: 28px; height: 28px; border-radius: 50%; background: var(--w-brand); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 14px; }
@media (max-width: 1180px) { html.wow .wow-brand small, html.wow .wow-chip .nm { display: none; } html.wow .nav-tab { padding: 10px 14px !important; font-size: 15px !important; } }
@media (max-width: 900px) { html.wow .top-nav-bar { flex-wrap: wrap !important; } html.wow .wow-brand b { display: none; } }

/* ---------- 5) หน้าหลัก: Hero + ทางลัด + ตัวเลขวันนี้ ---------- */
html.wow #tab-home .profile-header { display: none !important; }
html.wow #tab-home > div[style*="gap: 30px"] { display: none !important; }       /* แผงจอเสริมเดิม → ย้ายเข้า "หน้าจอเสริม" ด้านล่าง */
html.wow #wowHero { position: relative; overflow: hidden; border-radius: 28px; padding: clamp(22px, 3vw, 36px); margin-bottom: 20px; color: #fff; background: radial-gradient(1200px 300px at 90% -20%, rgba(255, 255, 255, .22), transparent 60%), linear-gradient(135deg, #7A1626 0%, #A32638 55%, #C0503A 100%); box-shadow: 0 18px 44px rgba(122, 22, 38, .32); display: grid; grid-template-columns: 1fr auto; gap: 22px; align-items: center; }
html.wow #wowHero::after { content: "🥐"; position: absolute; right: -10px; bottom: -34px; font-size: 190px; opacity: .1; transform: rotate(-14deg); pointer-events: none; }
html.wow #wowHero .hello { font-size: clamp(15px, 1.5vw, 18px); opacity: .92; font-weight: 500; }
html.wow #wowHero h1 { margin: 4px 0 6px; font-size: clamp(26px, 3.4vw, 40px); font-weight: 800; line-height: 1.15; letter-spacing: -.2px; }
html.wow #wowHero .sub { font-size: clamp(13.5px, 1.3vw, 16px); opacity: .9; display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
html.wow #wowHero .pill { background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .28); padding: 5px 12px; border-radius: 999px; font-weight: 600; font-size: 13.5px; backdrop-filter: blur(4px); }
html.wow #wowHero .cta { display: flex; flex-direction: column; gap: 10px; align-items: stretch; min-width: 260px; position: relative; z-index: 2; }
html.wow #wowHero .go { display: flex; align-items: center; justify-content: center; gap: 12px; background: #fff; color: var(--w-brand); border: none; border-radius: 22px; padding: 20px 28px; font-size: clamp(20px, 2vw, 26px); font-weight: 800; cursor: pointer; box-shadow: 0 12px 30px rgba(0, 0, 0, .28); transition: transform .15s, box-shadow .15s; animation: wowPulse 2.8s ease-in-out infinite; }
html.wow #wowHero .go:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(0, 0, 0, .34); }
html.wow #wowHero .go .ic { font-size: 34px; }
html.wow #wowHero .mini { display: flex; gap: 8px; }
html.wow #wowHero .mini button { flex: 1; background: rgba(255, 255, 255, .16); color: #fff; border: 1px solid rgba(255, 255, 255, .3); border-radius: 14px; padding: 10px 8px; font-weight: 600; font-size: 13.5px; cursor: pointer; }
html.wow #wowHero .mini button:hover { background: rgba(255, 255, 255, .26); }
@keyframes wowPulse { 0%, 100% { box-shadow: 0 12px 30px rgba(0, 0, 0, .28), 0 0 0 0 rgba(255, 255, 255, .55); } 50% { box-shadow: 0 12px 30px rgba(0, 0, 0, .28), 0 0 0 14px rgba(255, 255, 255, 0); } }
@media (max-width: 1000px) { html.wow #wowHero { grid-template-columns: 1fr; } html.wow #wowHero .cta { min-width: 0; } }

html.wow .wow-sec { margin: 22px 2px 10px; font-size: 18px; font-weight: 800; color: var(--w-ink); display: flex; align-items: center; gap: 10px; }
html.wow .wow-sec small { font-weight: 500; font-size: 13px; color: var(--w-mute); }
html.wow #wowTiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
html.wow .wow-tile { display: flex; align-items: center; gap: 14px; text-align: left; background: var(--w-card); border: 1px solid var(--w-line); border-radius: 20px; padding: 18px; cursor: pointer; box-shadow: var(--w-shadow); transition: transform .15s, box-shadow .15s, border-color .15s; color: var(--w-ink); min-height: 88px; }
html.wow .wow-tile:hover { transform: translateY(-3px); border-color: var(--w-brand); box-shadow: 0 14px 34px rgba(122, 22, 38, .16); }
html.wow .wow-tile .ti { width: 56px; height: 56px; flex: 0 0 56px; border-radius: 18px; display: grid; place-items: center; font-size: 30px; background: var(--tc, var(--w-brand-soft)); }
html.wow .wow-tile b { display: block; font-size: 16.5px; font-weight: 700; line-height: 1.25; }
html.wow .wow-tile span.d { display: block; font-size: 12.5px; color: var(--w-mute); font-weight: 500; margin-top: 2px; line-height: 1.3; }
html.wow .wow-tile.sm { min-height: 66px; padding: 12px 14px; border-radius: 16px; box-shadow: none; }
html.wow .wow-tile.sm .ti { width: 42px; height: 42px; flex-basis: 42px; font-size: 22px; border-radius: 14px; }
html.wow .wow-tile.sm b { font-size: 14.5px; }
html.wow #wowTiles2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }

html.wow #tab-home > div[style*="flex-wrap:wrap"] { gap: 16px !important; margin-bottom: 8px !important; }
html.wow #tab-home .wallet-card { position: relative; border: 1px solid var(--w-line) !important; border-left: 1px solid var(--w-line) !important; border-radius: 22px; padding: 20px 22px 20px 86px; background: var(--w-card); box-shadow: var(--w-shadow); min-width: 220px; overflow: hidden; }
html.wow #tab-home .wallet-card::before { content: attr(data-ic); position: absolute; left: 18px; top: 50%; transform: translateY(-50%); width: 54px; height: 54px; border-radius: 17px; display: grid; place-items: center; font-size: 28px; background: var(--ic-bg, var(--w-chip)); }
html.wow #tab-home .wallet-card .w-title { font-size: 14.5px; font-weight: 600; color: var(--w-mute); }
html.wow #tab-home .wallet-card .w-amount { font-size: clamp(26px, 2.4vw, 34px) !important; font-weight: 800 !important; letter-spacing: -.3px; margin-top: 2px; }
html.wow .bk-homecard { border-radius: 22px !important; border: 1px solid var(--w-line) !important; border-left: 6px solid var(--w-info) !important; box-shadow: var(--w-shadow) !important; margin-bottom: 16px !important; }
html.wow .bk-homecard button { border-radius: 14px !important; padding: 12px 18px !important; font-size: 15px !important; }

/* ---------- 6) หน้าขาย (POS) ---------- */
html.wow #posScreen { background: radial-gradient(900px 420px at 0% -10%, #fff 0%, transparent 60%), linear-gradient(180deg, var(--w-bg) 0%, var(--w-bg2) 100%) !important; }
html.wow .pos-main { padding: 16px 18px 12px 20px !important; gap: 0; }
html.wow .pos-topbar { background: var(--w-card) !important; border: 1px solid var(--w-line) !important; border-radius: 20px !important; padding: 10px 14px !important; box-shadow: var(--w-shadow) !important; margin-bottom: 12px !important; }
html.wow .pos-badge-user, html.wow .pos-badge-loc { border-radius: 999px !important; padding: 9px 16px !important; font-size: 15px !important; font-weight: 700 !important; }
html.wow .pos-badge-user { background: var(--w-chip) !important; color: var(--w-ink) !important; border: 1px solid var(--w-line) !important; }
html.wow .pos-badge-loc { background: var(--w-brand) !important; color: #fff !important; border: none !important; box-shadow: 0 4px 12px rgba(122, 22, 38, .25); }
html.wow .pos-clock-pill { font-size: 15px !important; font-weight: 700 !important; color: var(--w-mute) !important; font-variant-numeric: tabular-nums; }
html.wow .pos-topbar .btn-form { border-radius: 14px !important; padding: 10px 16px !important; font-size: 15px !important; font-weight: 700 !important; border: 1px solid var(--w-line) !important; box-shadow: none !important; }
html.wow .pos-topbar .btn-form[onclick*="exitPOS"] { background: var(--w-info) !important; color: #fff !important; border-color: transparent !important; }
html.wow .pos-topbar .btn-form[onclick*="logout"] { background: var(--w-bad-soft) !important; color: var(--w-bad) !important; }
html.wow .wow-tools { display: inline-flex; gap: 6px; align-items: center; background: var(--w-chip); border: 1px solid var(--w-line); border-radius: 14px; padding: 3px; }
html.wow .wow-tools button { background: transparent; border: none; border-radius: 11px; min-width: 40px; height: 38px; font-weight: 800; font-size: 15px; color: var(--w-ink); cursor: pointer; padding: 0 8px; }
html.wow .wow-tools button:hover { background: var(--w-card); box-shadow: 0 2px 8px rgba(0, 0, 0, .08); }
html.wow .wow-tools button.off { opacity: .45; }

html.wow .pos-filter-bar { gap: 14px; margin-bottom: 12px !important; align-items: center; }
html.wow .pos-cat-scroll { gap: 10px !important; padding: 4px 2px 8px !important; }
html.wow .pos-cat-pill { padding: 13px 24px !important; font-size: 17px !important; font-weight: 700 !important; border-radius: 16px !important; background: var(--w-card) !important; color: var(--w-ink) !important; border: 2px solid var(--w-line) !important; box-shadow: none !important; white-space: nowrap; }
html.wow .pos-cat-pill:hover { border-color: var(--w-brand) !important; }
html.wow .pos-cat-pill.active { background: var(--w-brand) !important; color: #fff !important; border-color: var(--w-brand) !important; box-shadow: 0 8px 18px rgba(122, 22, 38, .3) !important; }
html.wow .pos-search-box { background: var(--w-card) !important; border: 2px solid var(--w-line) !important; border-radius: 16px !important; padding: 4px 14px !important; min-width: 260px; box-shadow: none !important; }
html.wow .pos-search-box:focus-within { border-color: var(--w-brand) !important; box-shadow: 0 0 0 4px var(--w-brand-soft) !important; }
html.wow .pos-search-box input { font-size: 16px !important; padding: 11px 6px !important; background: transparent !important; border: none !important; box-shadow: none !important; }

html.wow #posProducts.pos-product-grid { grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)) !important; grid-auto-rows: max-content !important; align-content: start !important; gap: 16px !important; padding: 4px 6px 24px 2px !important; }
html.wow #posProducts .pos-item-card, html.wow #posProducts .p-card { position: relative !important; display: flex !important; flex-direction: column !important; justify-content: flex-start !important; min-height: 205px !important; height: auto !important; padding: 0 0 14px !important; border: 2px solid var(--w-line) !important; border-radius: 22px !important; background: var(--w-card) !important; box-shadow: var(--w-shadow) !important; overflow: hidden !important; text-align: left !important; cursor: pointer; transition: transform .14s, box-shadow .14s, border-color .14s; user-select: none; }
html.wow #posProducts .pos-item-card:hover { transform: translateY(-4px); border-color: var(--w-brand) !important; box-shadow: 0 16px 34px rgba(122, 22, 38, .18) !important; }
html.wow #posProducts .pos-item-card:active { transform: scale(.96); }
html.wow #posProducts .pos-item-img, html.wow #posProducts .p-card img { width: 100% !important; display: block !important; height: 118px !important; min-height: 118px !important; object-fit: cover !important; flex: 0 0 auto; border-radius: 0 !important; margin: 0 !important; background: linear-gradient(135deg, #FFF3DD, #F7E2C8); }
html.wow #posProducts .pos-item-title, html.wow #posProducts .p-card h4 { font-size: 16.5px !important; font-weight: 700 !important; line-height: 1.3 !important; min-height: 43px !important; margin: 12px 14px 4px !important; color: var(--w-ink) !important; display: -webkit-box !important; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden !important; }
html.wow #posProducts .pos-item-price, html.wow #posProducts .p-card p { margin: 0 14px !important; font-size: 22px !important; font-weight: 800 !important; color: var(--w-brand) !important; letter-spacing: -.2px; }
html.wow #posProducts .pos-item-card::after { content: "+"; position: absolute; right: 12px; bottom: 12px; width: 42px; height: 42px; border-radius: 50%; background: var(--w-brand); color: #fff; display: grid; place-items: center; font-size: 28px; font-weight: 500; line-height: 1; padding-bottom: 3px; box-shadow: 0 6px 14px rgba(122, 22, 38, .35); transition: transform .15s; }
html.wow #posProducts .pos-item-card:hover::after { transform: scale(1.12) rotate(90deg); }
html.wow #posProducts .shelf-stock-badge { top: 10px !important; left: 10px !important; right: auto !important; padding: 4px 11px !important; border-radius: 999px !important; font-size: 12.5px !important; font-weight: 700 !important; box-shadow: 0 3px 10px rgba(0, 0, 0, .22) !important; backdrop-filter: blur(4px); }
html.wow #posProducts .pos-item-card.out-of-stock-card { opacity: .62 !important; border: 2px dashed var(--w-bad) !important; background: var(--w-bad-soft) !important; }
html.wow #posProducts .pos-item-card.out-of-stock-card::after { background: #9a8d88; box-shadow: none; }
html.wow #posProducts .pos-item-card.in-cart { border-color: var(--w-ok2) !important; box-shadow: 0 0 0 3px rgba(29, 179, 107, .28), var(--w-shadow) !important; }
html.wow .wow-qty { position: absolute; top: 10px; right: 10px; z-index: 6; min-width: 38px; height: 38px; padding: 0 10px; border-radius: 999px; background: var(--w-ok2); color: #fff; font-weight: 800; font-size: 17px; display: grid; place-items: center; box-shadow: 0 6px 14px rgba(21, 152, 90, .45); animation: wowPop .3s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes wowPop { from { transform: scale(.3); opacity: 0; } to { transform: scale(1); opacity: 1; } }
html.wow .wow-skel { height: 250px; border-radius: 22px; background: linear-gradient(100deg, #f1e7db 30%, #fbf4ec 50%, #f1e7db 70%); background-size: 300% 100%; animation: wowShim 1.3s infinite; }
@keyframes wowShim { from { background-position: 100% 0; } to { background-position: 0 0; } }

/* แผงขวา: ลูกค้า + ตะกร้า + ชำระเงิน */
html.wow .pos-sidebar { flex: 0 0 clamp(360px, 31%, 460px) !important; min-width: 0 !important; max-width: none !important; padding: 16px 18px !important; background: var(--w-card) !important; border-left: 1px solid var(--w-line) !important; box-shadow: -10px 0 40px rgba(80, 40, 20, .08) !important; }
html.wow .pos-crm-wrap input { padding: 13px 14px !important; font-size: 16px !important; border-radius: 14px !important; border: 2px solid var(--w-line) !important; }
html.wow .pos-crm-wrap button[onclick*="toggleCrmNumpad"] { background: var(--w-chip) !important; color: var(--w-ink) !important; border: 2px solid var(--w-line) !important; border-radius: 14px !important; width: 52px !important; }
html.wow .pos-crm-numpad button { padding: 14px 0 !important; font-size: 20px !important; font-weight: 700 !important; border-radius: 14px !important; }
html.wow #crmDisplayArea { border-radius: 16px !important; background: var(--w-ok-soft) !important; border: 1px solid rgba(21, 152, 90, .35) !important; padding: 12px 14px !important; }
html.wow .pos-sidebar > div:nth-child(2) { align-items: center !important; }
html.wow .pos-sidebar > div:nth-child(2) > div:first-child { font-size: 20px !important; font-weight: 800 !important; }
html.wow #cartCountBadge { background: var(--w-brand) !important; font-size: 14px !important; padding: 3px 11px !important; border-radius: 999px !important; }
html.wow .pos-sidebar > div:nth-child(2) button { background: var(--w-chip) !important; color: var(--w-ink) !important; border: 1px solid var(--w-line) !important; border-radius: 12px !important; padding: 9px 13px !important; font-size: 14px !important; font-weight: 700 !important; box-shadow: none !important; display: inline-flex; align-items: center; gap: 6px; }
html.wow .pos-sidebar > div:nth-child(2) button:hover { border-color: var(--w-brand) !important; background: var(--w-brand-soft) !important; }
html.wow .pos-sidebar > div:nth-child(2) button[onclick*="clearCart"] { background: var(--w-bad-soft) !important; color: var(--w-bad) !important; border-color: transparent !important; margin-left: auto; }

html.wow #posCartList { padding-right: 2px !important; }
html.wow #posCartList .cart-item { background: var(--w-bg); border: 1px solid var(--w-line) !important; border-radius: 18px; padding: 12px 14px !important; margin-bottom: 10px; align-items: center !important; gap: 8px; animation: wowIn .22s ease-out; }
@keyframes wowIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
html.wow #posCartList .cart-item > div:first-child { align-items: center !important; gap: 12px !important; flex: 1; min-width: 0; }
html.wow #posCartList .cart-item > div:first-child > button { width: 34px !important; height: 34px !important; border-radius: 12px !important; font-size: 20px !important; background: var(--w-bad-soft) !important; color: var(--w-bad) !important; margin: 0 !important; flex: 0 0 34px; }
html.wow #posCartList .cart-item > div:first-child > div > div:first-child { font-size: 17px !important; font-weight: 700 !important; line-height: 1.25; }
html.wow #posCartList .cart-item > div:last-child > div:first-child { font-size: 19px !important; font-weight: 800 !important; color: var(--w-ink) !important; }
html.wow #posCartList .cart-item > div:last-child > div:last-child { font-size: 12.5px !important; }
html.wow .qty-controls { display: inline-flex !important; align-items: center; gap: 4px; background: var(--w-card); border: 2px solid var(--w-line); border-radius: 14px; padding: 3px; margin-top: 6px !important; }
html.wow .qty-controls button { width: 40px !important; height: 38px !important; border: none !important; border-radius: 11px !important; background: var(--w-chip) !important; color: var(--w-ink) !important; font-size: 22px !important; font-weight: 700 !important; cursor: pointer; line-height: 1; padding: 0 !important; }
html.wow .qty-controls button:hover { background: var(--w-brand) !important; color: #fff !important; }
html.wow .qty-controls span, html.wow .qty-controls input { min-width: 34px; text-align: center; font-size: 19px !important; font-weight: 800 !important; color: var(--w-ink) !important; }
html.wow #posCartList:has(.wow-empty) { display: flex; }
html.wow .wow-empty { margin: auto; text-align: center; color: var(--w-mute); padding: 20px 10px; }
html.wow .wow-empty .big { font-size: 74px; line-height: 1; animation: wowBob 3s ease-in-out infinite; }
html.wow .wow-empty b { display: block; font-size: 19px; color: var(--w-ink); margin: 10px 0 4px; }
html.wow .wow-empty span { font-size: 14.5px; }
@keyframes wowBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

html.wow .pos-sidebar > div:nth-child(5) { border-top: 2px dashed var(--w-line) !important; padding-top: 14px !important; }
html.wow .pos-sidebar > div:nth-child(5) > div:nth-child(1) { margin-bottom: 12px !important; }
html.wow .pos-sidebar > div:nth-child(5) > div:nth-child(1) span:first-child { font-size: 20px !important; color: var(--w-mute) !important; font-weight: 700 !important; }
html.wow #posTotalAmount { font-size: clamp(32px, 3.2vw, 44px) !important; font-weight: 800 !important; color: var(--w-brand) !important; letter-spacing: -.5px; font-variant-numeric: tabular-nums; }
html.wow .pos-sidebar > div:nth-child(5) > div:nth-child(2) { gap: 10px !important; margin-bottom: 10px !important; }
html.wow .pos-sidebar > div:nth-child(5) > div:nth-child(2) button[onclick*="Discount"] { background: var(--w-accent-soft) !important; color: #8A5A10 !important; border: 2px solid var(--w-accent) !important; border-radius: 16px !important; font-size: 16px !important; padding: 16px 12px !important; }
html.wow #btnCheckout { background: linear-gradient(135deg, var(--w-ok2), var(--w-ok)) !important; color: #fff !important; border-radius: 18px !important; padding: 18px 14px !important; font-size: 22px !important; font-weight: 800 !important; letter-spacing: .2px; box-shadow: 0 12px 26px rgba(21, 152, 90, .38) !important; display: flex; align-items: center; justify-content: center; gap: 10px; }
html.wow #btnCheckout:not(:disabled):hover { filter: brightness(1.05); transform: translateY(-1px); }
html.wow #btnCheckout:disabled { background: #CFC3BA !important; box-shadow: none !important; }
html.wow #btnCheckout small { font-size: 15px; font-weight: 600; opacity: .9; }
html.wow .pos-sidebar > div:nth-child(5) > div:nth-child(3) { gap: 8px !important; }
html.wow .pos-sidebar > div:nth-child(5) > div:nth-child(3) button { background: var(--w-chip) !important; color: var(--w-mute) !important; border: 1px solid var(--w-line) !important; border-radius: 14px !important; padding: 12px !important; font-size: 14px !important; }

/* ---------- 7) หน้าต่างชำระเงิน ---------- */
html.wow #smartPaymentModal { background: rgba(43, 20, 15, .55) !important; backdrop-filter: blur(6px) !important; }
html.wow #smartPaymentModal > div { border-radius: 28px !important; max-width: 520px !important; padding: 26px !important; box-shadow: var(--w-shadow-lg) !important; border: none !important; animation: wowRise .28s cubic-bezier(.2, 1.1, .3, 1); }
@keyframes wowRise { from { opacity: 0; transform: translateY(24px) scale(.97); } to { opacity: 1; transform: none; } }
html.wow #smartPaymentModal h3 { font-size: 22px !important; font-weight: 800; }
html.wow #smartPayNetTotal { font-size: 54px !important; font-weight: 800 !important; color: #fff !important; letter-spacing: -1px; font-variant-numeric: tabular-nums; }
html.wow #smartPayInputView > div:nth-child(2) { background: linear-gradient(135deg, #7A1626, #A32638) !important; border: none !important; border-radius: 22px !important; padding: 20px !important; box-shadow: 0 12px 26px rgba(122, 22, 38, .3); }
html.wow #smartPayInputView > div:nth-child(2) > div:first-child { color: rgba(255, 255, 255, .85) !important; font-size: 15px !important; }
html.wow .pos-pay-method-grid { gap: 12px !important; }
html.wow .pos-pay-opt { padding: 18px 10px !important; border-radius: 18px !important; font-size: 17px !important; font-weight: 700 !important; border: 2px solid var(--w-line) !important; background: var(--w-card) !important; display: flex !important; flex-direction: column; align-items: center; gap: 4px; line-height: 1.2; }
html.wow .pos-pay-opt.active { border-color: var(--w-ok2) !important; background: var(--w-ok-soft) !important; color: var(--w-ok) !important; box-shadow: 0 0 0 4px rgba(29, 179, 107, .18); }
html.wow .pos-quick-cash { display: grid !important; grid-template-columns: repeat(3, 1fr) !important; gap: 10px !important; }
html.wow .pos-qc-btn { padding: 16px 4px !important; border-radius: 16px !important; font-size: 19px !important; font-weight: 800 !important; background: var(--w-chip) !important; border: 2px solid var(--w-line) !important; }
html.wow .pos-qc-btn:hover { border-color: var(--w-brand) !important; background: var(--w-brand-soft) !important; }
html.wow #posReceived { font-size: 32px !important; font-weight: 800 !important; padding: 16px !important; border-radius: 18px !important; text-align: center; border: 3px solid var(--w-info) !important; }
html.wow #posChange { font-size: 34px !important; font-weight: 800 !important; }
html.wow #smartPayInputView button[onclick*="processSmartCheckout"], html.wow #smartPayInputView button[onclick*="confirmSmart"], html.wow #smartPayInputView button[onclick*="submitSmart"] { border-radius: 18px !important; padding: 18px !important; font-size: 20px !important; font-weight: 800 !important; box-shadow: 0 12px 26px rgba(21, 152, 90, .35) !important; }
html.wow #smartPaySuccessView { text-align: center; }
html.wow #smartPayQueueNo { font-size: 84px !important; font-weight: 800 !important; color: var(--w-brand) !important; line-height: 1; }

/* ---------- 8) หน้าบริหาร / คลัง / ตั้งค่า (โทนใหม่ให้ตรงกัน) ---------- */
html.wow .sub-nav-bar { gap: 8px !important; border-bottom: none !important; padding-bottom: 6px !important; flex-wrap: wrap; }
html.wow .sub-nav-tab { border-radius: 14px !important; padding: 11px 18px !important; font-size: 15.5px !important; font-weight: 600 !important; background: var(--w-card) !important; border: 2px solid var(--w-line) !important; color: var(--w-mute) !important; }
html.wow .sub-nav-tab.active { background: var(--w-brand) !important; color: #fff !important; border-color: var(--w-brand) !important; box-shadow: 0 6px 16px rgba(122, 22, 38, .25); }
html.wow .btn-form { border-radius: 14px; font-weight: 700; }
html.wow .btn-form.bg-green, html.wow .bg-green { background: var(--w-ok2) !important; }
html.wow .wallet-card, html.wow .home-grid-card, html.wow .settings-menu-btn { border-radius: 20px; border: 1px solid var(--w-line); box-shadow: var(--w-shadow); }
html.wow .modal-content { border-radius: 26px !important; box-shadow: var(--w-shadow-lg) !important; animation: wowRise .25s ease-out; }
html.wow .admin-table th { background: var(--w-chip) !important; color: var(--w-ink) !important; font-weight: 700; }
html.wow .admin-table tbody tr:nth-child(even) td { background: rgba(243, 233, 220, .35); }
html.wow .admin-table td, html.wow .admin-table th { padding: 13px 14px !important; }

/* ---------- 9) หน้าล็อกอิน ---------- */
html.wow #loginScreen { background: radial-gradient(900px 500px at 15% 0%, #FFF3DD 0%, transparent 60%), radial-gradient(800px 500px at 100% 100%, #FBEAEC 0%, transparent 60%), var(--w-bg) !important; }
html.wow #loginMount { max-width: 440px; margin: 0 auto; background: var(--w-card); border-radius: 28px; padding: 30px 26px 24px; box-shadow: var(--w-shadow-lg); border: 1px solid var(--w-line); animation: wowRise .35s ease-out; }
html.wow #loginMount::before { content: ""; display: block; width: 92px; height: 92px; margin: -64px auto 14px; border-radius: 26px; background: url("logo_1.png") center/cover; border: 4px solid #fff; box-shadow: 0 10px 26px rgba(122, 22, 38, .3); }
html.wow #loginMount .pl { max-width: none; padding: 0; }
html.wow #loginMount .pl .btn { padding: 16px !important; border-radius: 16px !important; font-size: 17px !important; }
html.wow #loginMount .pl input { padding: 15px 16px !important; font-size: 17px !important; border-radius: 14px !important; }

/* ---------- 10) ส่วนกลาง: Toast / วิธีใช้ / ทัวร์ / ฉลองสำเร็จ ---------- */
#wowToasts { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 2147483000; display: flex; flex-direction: column; gap: 10px; align-items: center; pointer-events: none; }
.wow-toast { background: #2B1D19; color: #fff; padding: 14px 22px; border-radius: 16px; font: 600 16px Prompt, sans-serif; box-shadow: 0 14px 34px rgba(0, 0, 0, .3); display: flex; gap: 10px; align-items: center; animation: wowRise .25s ease-out; max-width: 90vw; }
.wow-toast.ok { background: #15985A; } .wow-toast.err { background: #D93F3F; } .wow-toast.warn { background: #E08A00; }
#wowHelp { position: fixed; inset: 0; z-index: 2147482000; background: rgba(43, 20, 15, .55); backdrop-filter: blur(5px); display: none; align-items: center; justify-content: center; padding: 18px; font-family: Prompt, sans-serif; }
#wowHelp.show { display: flex; }
#wowHelp .wh-card { background: var(--w-card, #fff); color: var(--w-ink, #2B1D19); border-radius: 28px; width: 100%; max-width: 760px; max-height: 92vh; overflow: auto; box-shadow: 0 24px 70px rgba(0, 0, 0, .4); animation: wowRise .28s ease-out; }
#wowHelp .wh-hd { background: linear-gradient(135deg, #7A1626, #A32638); color: #fff; padding: 22px 26px; border-radius: 28px 28px 0 0; display: flex; justify-content: space-between; align-items: center; gap: 14px; }
#wowHelp .wh-hd h2 { margin: 0; font-size: 24px; } #wowHelp .wh-hd p { margin: 4px 0 0; opacity: .9; font-size: 14.5px; }
#wowHelp .wh-x { background: rgba(255, 255, 255, .2); border: none; color: #fff; width: 44px; height: 44px; border-radius: 50%; font-size: 24px; cursor: pointer; flex: 0 0 44px; }
#wowHelp .wh-bd { padding: 22px 26px 26px; }
#wowHelp .wh-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
#wowHelp .wh-step { background: var(--w-bg, #FBF6EF); border: 1px solid var(--w-line, #ECE0D3); border-radius: 20px; padding: 18px; text-align: center; }
#wowHelp .wh-step .n { width: 40px; height: 40px; border-radius: 50%; background: #7A1626; color: #fff; display: grid; place-items: center; margin: 0 auto 8px; font-weight: 800; font-size: 20px; }
#wowHelp .wh-step .e { font-size: 44px; } #wowHelp .wh-step b { display: block; font-size: 17px; margin: 6px 0 4px; } #wowHelp .wh-step span { font-size: 14px; color: var(--w-mute, #7B6A62); line-height: 1.45; }
#wowHelp h3 { font-size: 18px; margin: 22px 0 10px; }
#wowHelp .wh-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
#wowHelp .wh-li { background: var(--w-bg, #FBF6EF); border-radius: 14px; padding: 12px 14px; font-size: 14.5px; line-height: 1.45; display: flex; gap: 10px; }
#wowHelp kbd { background: #fff; border: 1px solid #d8c9bb; border-bottom-width: 3px; border-radius: 8px; padding: 1px 8px; font: 700 13px ui-monospace, monospace; color: #7A1626; }
#wowHelp .wh-btn { display: block; width: 100%; margin-top: 20px; border: none; border-radius: 18px; padding: 16px; font: 800 18px Prompt, sans-serif; background: #15985A; color: #fff; cursor: pointer; }
@media (max-width: 700px) { #wowHelp .wh-steps, #wowHelp .wh-list { grid-template-columns: 1fr; } }
#wowTour { position: fixed; inset: 0; z-index: 2147482500; display: none; }
#wowTour.show { display: block; }
#wowTour .spot { position: fixed; border-radius: 20px; box-shadow: 0 0 0 9999px rgba(43, 20, 15, .72), 0 0 0 4px #fff inset; transition: all .35s cubic-bezier(.3, .9, .3, 1); pointer-events: none; }
#wowTour .tip { position: fixed; width: min(340px, 90vw); background: #fff; color: #2B1D19; border-radius: 22px; padding: 18px 20px; box-shadow: 0 20px 50px rgba(0, 0, 0, .4); font-family: Prompt, sans-serif; transition: all .35s cubic-bezier(.3, .9, .3, 1); }
#wowTour .tip b { display: block; font-size: 19px; margin-bottom: 4px; } #wowTour .tip p { margin: 0 0 14px; font-size: 15px; line-height: 1.5; color: #5b4a42; }
#wowTour .tip .row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
#wowTour .tip button { border: none; border-radius: 14px; padding: 11px 20px; font: 800 15.5px Prompt, sans-serif; cursor: pointer; background: #7A1626; color: #fff; }
#wowTour .tip button.skip { background: transparent; color: #7B6A62; font-weight: 600; padding: 11px 6px; }
#wowTour .tip .dots { font-size: 13px; color: #9b8b82; }
#wowConfetti { position: fixed; inset: 0; z-index: 2147483100; pointer-events: none; }
html.wow #smartPaySuccessView .wow-check { width: 96px; height: 96px; margin: 0 auto 10px; border-radius: 50%; background: var(--w-ok2); display: grid; place-items: center; color: #fff; font-size: 54px; box-shadow: 0 0 0 0 rgba(29, 179, 107, .5); animation: wowRing 1.2s ease-out 2; }
@keyframes wowRing { to { box-shadow: 0 0 0 36px rgba(29, 179, 107, 0); } }

/* ---------- 11) พิมพ์: ไม่ให้ธีมไปรบกวนใบเสร็จ ---------- */
@media print { #wowToasts, #wowHelp, #wowTour, #wowConfetti { display: none !important; } }

/* ===== ป้องกันล้นจอทุกขนาด (iPad / จอเล็ก / ฟอนต์กว้าง) ===== */
html.wow, html.wow body { max-width: 100%; overflow-x: hidden; }
html.wow #mainApp, html.wow #mainApp > * { min-width: 0; max-width: 100%; box-sizing: border-box; }
html.wow .top-nav-bar { display: flex !important; flex-wrap: wrap !important; align-items: center; gap: 8px 12px; max-width: 100%; box-sizing: border-box; }
html.wow .wow-brand { order: 1; }
html.wow .wow-user { order: 2; margin-left: auto; }
html.wow .wow-tabs { order: 3; flex: 1 1 100%; min-width: 0; justify-content: center; flex-wrap: wrap; }
/* จอกว้างพอ → แถวเดียวเหมือนเดิม */
@media (min-width: 1500px) { html.wow .wow-tabs { order: 2; flex: 1 1 auto; } html.wow .wow-user { order: 3; margin-left: 0; } }
html.wow .nav-tab { white-space: nowrap; }
/* การ์ด/กริดหน้าหลัก: ยืดหดตามจอ ไม่ดันความกว้างหน้า */
html.wow #tab-home, html.wow #tab-home > * { min-width: 0; max-width: 100%; box-sizing: border-box; }
html.wow #tab-home .wallet-card { min-width: 0 !important; }
html.wow #tab-home .wallet-card, html.wow #tab-home .wallet-card * { overflow-wrap: anywhere; }
html.wow #wowTiles { grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr)); }
html.wow #wowTiles2 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); }
html.wow #wowHero { box-sizing: border-box; max-width: 100%; }
@media (max-width: 1280px) { html.wow #wowHero { grid-template-columns: 1fr !important; } html.wow #wowHero .cta { min-width: 0 !important; max-width: 420px; } }
/* แถบ KPI ที่เป็น grid กำหนดคอลัมน์ตายตัวจากโค้ดเดิม → ให้ปรับตามความกว้างจริง */
html.wow #tab-home div[style*="grid-template-columns"] { grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)) !important; }
/* ตาราง/เนื้อหากว้างเลื่อนในกรอบตัวเอง ไม่ดันทั้งหน้า */
html.wow .tab-content { max-width: 100%; overflow-x: clip; }
html.wow .admin-table, html.wow table { max-width: 100%; }
html.wow .pos-sidebar { max-width: 100% !important; }
/* ตารางกว้าง (สินค้า/วัตถุดิบ ฯลฯ): เลื่อนซ้าย-ขวาภายในกรอบของตัวเอง แทนที่จะถูกตัดหาย */
html.wow :is(div, section):has(> table) { overflow-x: auto; max-width: 100%; -webkit-overflow-scrolling: touch; }
/* ตัวเลขเงินห้ามถูกตัดกลางตัว; จอ iPad แนวตั้ง/แคบ ให้การ์ดสรุปเรียง 2 คอลัมน์ */
html.wow #tab-home .wallet-card, html.wow #tab-home .wallet-card * { overflow-wrap: normal; word-break: normal; }
html.wow #tab-home .wallet-card [id], html.wow #tab-home .wallet-card div[style*="font-size"] { white-space: nowrap; }
@media (max-width: 1000px) { html.wow #tab-home div[style*="grid-template-columns"] { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } html.wow #tab-home .wallet-card { padding: 16px 14px 16px 76px; } }
html.wow .pos-sidebar input, html.wow .pos-sidebar select { min-width: 0; box-sizing: border-box; }
html.wow .pos-sidebar [class*="search"], html.wow .pos-sidebar > div:first-child { max-width: 100%; box-sizing: border-box; }


/* ===== V2.4 การ์ดสินค้าแบบ B (เว็บ): ภาพเต็มช่อง + ป้ายราคาทอง + ชื่อบนแถบเงาเข้ม ===== */
html.wow #posProducts .pos-item-card, html.wow #posProducts .p-card { min-height: 224px !important; padding: 0 !important; background: #3a2418 !important; border-radius: 22px !important; }
html.wow #posProducts .pos-item-img, html.wow #posProducts .p-card img { position: absolute !important; inset: 0 !important; width: 100% !important; height: 100% !important; min-height: 0 !important; margin: 0 !important; border-radius: 0 !important; object-fit: cover !important; }
html.wow #posProducts .pos-item-card::before, html.wow #posProducts .p-card::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 62%; background: linear-gradient(180deg, rgba(31,12,8,0), rgba(31,12,8,.88)); z-index: 1; pointer-events: none; }
html.wow #posProducts .pos-item-card::after { z-index: 3; }
html.wow #posProducts .pos-item-title, html.wow #posProducts .p-card h4 { position: absolute !important; left: 14px !important; right: 64px !important; bottom: 14px !important; margin: 0 !important; min-height: 0 !important; z-index: 2; color: #fff !important; font-size: 18px !important; font-weight: 800 !important; text-shadow: 0 1px 4px rgba(0,0,0,.6); }
html.wow #posProducts .pos-item-price, html.wow #posProducts .p-card p { position: absolute !important; left: 10px !important; top: 10px !important; margin: 0 !important; z-index: 2; padding: 3px 12px; border-radius: 999px; background: #FDE68A !important; color: #5C0F1B !important; font-size: 18px !important; font-weight: 800 !important; box-shadow: 0 3px 8px rgba(0,0,0,.25); }
html.wow #posProducts .pos-item-card > div[style*="position:absolute"] { z-index: 3; }
html.wow #posProducts .pos-item-card > div[style*="left:8px"] { top: 48px !important; }
html.wow #posProducts .out-of-stock-card { background: #5a2a2a !important; }

/* เว็บมุมมองจอแคบ (m-grid): การ์ดภาพเต็มช่องเหมือนกัน */
html.wow #mProductGrid .m-card { position: relative !important; height: 190px; padding: 0 !important; overflow: hidden; border-radius: 20px !important; background: linear-gradient(160deg, #F6E3B4, #D9A25F) !important; border: 1.5px solid #EADFC4 !important; align-items: stretch !important; text-align: left !important; }
html.wow #mProductGrid .m-card .icon { position: absolute !important; inset: 0 !important; width: 100% !important; height: 100% !important; margin: 0 !important; border: 0 !important; border-radius: 0 !important; background: transparent !important; font-size: 56px !important; padding-bottom: 34px; }
html.wow #mProductGrid .m-card .m-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
html.wow #mProductGrid .m-card::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 62%; background: linear-gradient(180deg, rgba(31,12,8,0), rgba(31,12,8,.88)); z-index: 1; pointer-events: none; }
html.wow #mProductGrid .m-card h4 { position: absolute !important; left: 12px; right: 12px; bottom: 12px; margin: 0 !important; z-index: 2; color: #fff !important; font-size: 17px !important; font-weight: 800 !important; text-shadow: 0 1px 4px rgba(0,0,0,.6); }
html.wow #mProductGrid .m-card p { position: absolute !important; left: 10px; top: 10px; margin: 0 !important; z-index: 2; padding: 3px 12px !important; border-radius: 999px; background: #FDE68A !important; color: #5C0F1B !important; font-size: 17px !important; font-weight: 800 !important; }
html.wow #posProducts .pos-item-card > .shelf-stock-badge, html.wow #posProducts .pos-item-card > div[style*="position:absolute"]:not(.shelf-stock-badge) { z-index: 3; }
html.wow #posProducts .pos-item-card > .shelf-stock-badge { top: 48px !important; left: 10px !important; right: auto !important; font-size: 13px !important; padding: 3px 10px !important; }
html.wow #posProducts .pos-item-card > div[style*="right:8px"]:not(.shelf-stock-badge) { top: 10px !important; right: 10px !important; }

/* ===== V2.5 ตัวเลือกขนมแบบการ์ดรูป (หน้าสั่งอบ) ===== */
.bk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; max-height: 280px; overflow-y: auto; padding: 4px 3px; -webkit-overflow-scrolling: touch; }
.bk-card { border-left: 3px solid transparent !important; position: relative; height: 118px; border-radius: 16px; overflow: hidden; cursor: pointer; border: 3px solid transparent; background: linear-gradient(160deg, #F6E3B4, #D9A25F); text-align: left; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
.bk-card:active { transform: scale(.97); }
.bk-card .bk-ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 44px; padding-bottom: 26px; }
.bk-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bk-card .bk-shade { position: absolute; left: 0; right: 0; bottom: 0; height: 70%; background: linear-gradient(180deg, rgba(31,12,8,0), rgba(31,12,8,.9)); pointer-events: none; }
.bk-card .bk-name { position: absolute; left: 8px; right: 8px; bottom: 6px; color: #fff; font-weight: 800; font-size: 15px; line-height: 1.2; text-shadow: 0 1px 4px rgba(0,0,0,.6); }
.bk-card .bk-chip { position: absolute; top: 6px; left: 6px; background: #FDE68A; color: #5C0F1B; font-weight: 800; font-size: 12.5px; padding: 2px 9px; border-radius: 999px; }
.bk-card .bk-tick { display: none; position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; border-radius: 50%; background: #d35400; color: #fff; font-weight: 800; font-size: 17px; align-items: center; justify-content: center; border: 2px solid #fff; }
.bk-card.sel { border-color: #d35400 !important; box-shadow: 0 0 0 3px rgba(212,175,55,.7); }
.bk-card.sel .bk-tick { display: flex; }
.bk-sel { margin: 8px 0 0; padding: 9px 12px; border-radius: 12px; font-weight: 800; font-size: 15px; background: #FFF7ED; color: #9A3412; border: 1.5px dashed #d35400; }
.bk-sel.ok { background: #ECFDF5; color: #065F46; border: 1.5px solid #10B981; }
