/* Khung mua nhanh (chọn phân loại + số lượng) trên danh sách /store */
.tcqb-open { overflow: hidden; }
.tcqb { position: fixed; inset: 0; z-index: 10000; background: rgba(15, 23, 42, .55); display: flex; align-items: flex-end; justify-content: center; }
.tcqb__box { background: #fff; color: #111827; width: 100%; max-width: 480px; max-height: 92vh; overflow-y: auto; border-radius: 18px 18px 0 0; padding: 16px 16px calc(16px + env(safe-area-inset-bottom)); box-shadow: 0 -10px 40px rgba(0, 0, 0, .25); }
@media (min-width: 640px) { .tcqb { align-items: center; } .tcqb__box { border-radius: 18px; } }
.tcqb__head { display: flex; align-items: center; justify-content: space-between; font-size: 1.05rem; margin-bottom: 10px; }
.tcqb__x { width: 44px; height: 44px; border: 0; background: transparent; font-size: 28px; line-height: 1; color: #6b7280; cursor: pointer; }
.tcqb__prod { display: flex; gap: 12px; margin-bottom: 12px; }
.tcqb__prod img { width: 84px; height: 84px; object-fit: cover; border-radius: 12px; background: #f3f4f6; flex: none; }
.tcqb__name { font-size: .9rem; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tcqb__price { color: #d7092d; font-weight: 800; font-size: 1.15rem; margin-top: 2px; }
.tcqb__stock { font-size: .78rem; color: #4b5563; }
.tcqb__warn { font-size: .8rem; color: #b91c1c; font-weight: 600; }
.tcqb__grp { margin-bottom: 12px; }
.tcqb__lbl { font-size: .82rem; font-weight: 700; color: #374151; margin-bottom: 6px; }
.tcqb__opts { display: flex; flex-wrap: wrap; gap: 8px; }
.tcqb__opt { min-height: 44px; min-width: 52px; padding: 0 14px; border-radius: 10px; border: 1.5px solid #d1d5db; background: #fff; color: #111827; font-size: .9rem; cursor: pointer; }
.tcqb__opt.on { border-color: #d7092d; background: #fff1f2; color: #b91c1c; font-weight: 700; }
.tcqb__opt.na { opacity: .45; text-decoration: line-through; }
.tcqb__row { display: flex; align-items: center; justify-content: space-between; margin: 6px 0 10px; }
.tcqb__qty { display: inline-flex; align-items: center; border: 1.5px solid #d1d5db; border-radius: 10px; overflow: hidden; }
.tcqb__qty button { width: 44px; height: 44px; border: 0; background: #f9fafb; font-size: 20px; cursor: pointer; }
.tcqb__qty input { width: 64px; height: 44px; border: 0; text-align: center; font-size: 16px; -moz-appearance: textfield; }
.tcqb__qty input::-webkit-outer-spin-button, .tcqb__qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.tcqb__ws { font-size: .78rem; color: #92400e; background: #fffbeb; border-radius: 8px; padding: 6px 10px; margin-bottom: 8px; }
.tcqb__total { font-size: .95rem; margin: 6px 0 8px; }
.tcqb__total b { color: #d7092d; }
.tcqb__msg { min-height: 1.2em; color: #b91c1c; font-size: .82rem; margin-bottom: 6px; }
.tcqb__go { width: 100%; min-height: 48px; border: 0; border-radius: 12px; background: #d7092d; color: #fff; font-size: 1rem; font-weight: 800; cursor: pointer; }
.tcqb__go:disabled { opacity: .6; }
.tcqb__load { padding: 28px 8px; text-align: center; color: #4b5563; }
[data-theme="dark"] .tcqb__box, .dark .tcqb__box { background: #1f2937; color: #f3f4f6; }
[data-theme="dark"] .tcqb__opt, .dark .tcqb__opt, [data-theme="dark"] .tcqb__qty button, .dark .tcqb__qty button, [data-theme="dark"] .tcqb__qty input, .dark .tcqb__qty input { background: #111827; color: #f3f4f6; border-color: #4b5563; }
[data-theme="dark"] .tcqb__lbl, .dark .tcqb__lbl, [data-theme="dark"] .tcqb__stock, .dark .tcqb__stock { color: #d1d5db; }
/* Hàng nút trên thẻ sản phẩm: luôn hiện (cảm ứng không có hover) */
.pcard-acts { display: flex; gap: 6px; padding: 6px 8px 8px; }
.pcard-act { flex: 1; min-height: 44px; border-radius: 10px; font-size: 12.5px; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 5px; }
.pcard-act--cart { background: #fff; border: 1.5px solid #d7092d; color: #d7092d; }
.pcard-act--buy { background: #d7092d; border: 1.5px solid #d7092d; color: #fff; }
