﻿/* ==========================================================
   shop.css — kiểu dùng chung cho các trang mới (tài khoản, so sánh,
   kiến thức, trang thông tin, chi tiết sản phẩm, quản trị...)
   Dùng lại bảng màu của _Layout: --neon-pink, --neon-cyan, --dark...
   ========================================================== */
:root {
    --bs-card-border: #e2e8f0;
    --bs-text-sub: #64748b;
    --bs-radius: 18px;
    --bs-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.page-wrap { padding-top: 32px; padding-bottom: 60px; } /* giữ lề trái/phải của .container trên điện thoại */
.page-title { font-weight: 900; font-size: 26px; color: #0f172a; margin: 0 0 6px; letter-spacing: -0.3px; }
.page-sub { color: var(--bs-text-sub); margin-bottom: 24px; }
.breadcrumb-lite { font-size: 13px; color: var(--bs-text-sub); margin-bottom: 14px; }
.breadcrumb-lite a { color: var(--bs-text-sub); text-decoration: none; }
.breadcrumb-lite a:hover { color: var(--neon-pink); }

.card-lite {
    background: #fff;
    border: 1px solid var(--bs-card-border);
    border-radius: var(--bs-radius);
    box-shadow: var(--bs-shadow);
    padding: 24px;
    margin-bottom: 22px;
}
.card-lite h3, .card-lite h4 { font-weight: 800; color: #0f172a; }
.card-lite-title { font-weight: 800; font-size: 16px; color: #0f172a; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.card-lite-title i { color: var(--neon-pink); }

/* Nút */
.btn-neon {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    background: linear-gradient(135deg, #ff007f, #7928ca); color: #fff !important;
    border: none; border-radius: 12px; padding: 11px 22px; font-weight: 800; font-size: 14px;
    text-decoration: none; cursor: pointer; transition: transform .15s, box-shadow .15s;
    box-shadow: 0 6px 18px rgba(255, 0, 127, 0.25);
}
.btn-neon:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(255, 0, 127, 0.32); }
.btn-neon:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.btn-ghost {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    background: #fff; color: #0f172a !important; border: 1.5px solid var(--bs-card-border);
    border-radius: 12px; padding: 10px 18px; font-weight: 700; font-size: 14px; text-decoration: none; cursor: pointer;
}
.btn-ghost:hover { border-color: var(--neon-pink); color: var(--neon-pink) !important; }
/* ===== Nút xoá / huỷ thống nhất toàn hệ thống ===== */
.btn-danger-lite { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 7px; background: #fff; color: #e11d48 !important; border: 1.5px solid #fecdd3; border-radius: 12px; padding: 9px 16px; font-weight: 700; font-size: 13px; line-height: 1.2; cursor: pointer; text-decoration: none !important; transition: background .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .12s ease; }
.btn-danger-lite:hover { background: #e11d48; border-color: #e11d48; color: #fff !important; box-shadow: 0 6px 16px rgba(225, 29, 72, .28); }
.btn-danger-lite:active { transform: translateY(1px) scale(.98); box-shadow: none; }
.btn-danger-lite:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(225, 29, 72, .25); }
.btn-danger-lite i { transition: transform .25s ease; }
.btn-danger-lite:hover .fa-trash-can { animation: trashLid .45s ease; }
.btn-danger-lite:hover .fa-xmark, .btn-danger-lite:hover .fa-ban { transform: rotate(90deg); }
@keyframes trashLid { 0% { transform: rotate(0); } 30% { transform: rotate(-14deg) translateY(-1px); } 60% { transform: rotate(8deg); } 100% { transform: rotate(0); } }
.btn-danger-lite.btn-sm-lite { padding: 6px 12px; }
.btn-danger-lite.btn-sm-lite:has(> i:only-child), .btn-danger-lite.btn-icon { width: 34px; height: 34px; padding: 0; border-radius: 10px; }
.btn-danger-lite[disabled], .btn-danger-lite.is-busy { pointer-events: none; opacity: .75; }
.is-busy > i { visibility: hidden; }
.is-busy::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: scSpin .7s linear infinite; }
button.is-busy:not(.btn-danger-lite), a.is-busy { position: relative; }
@keyframes scSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .btn-danger-lite:hover .fa-trash-can { animation: none; } }

/* ===== Hộp xác nhận dùng chung (shop-ui.js) ===== */
html.sc-lock { overflow: hidden; }
.sc-overlay { position: fixed; inset: 0; z-index: 3000; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(15, 23, 42, .45); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility .2s; }
.sc-overlay.show { opacity: 1; visibility: visible; }
.sc-box { width: 100%; max-width: 400px; background: #fff; border-radius: 18px; padding: 28px 24px 20px; text-align: center; box-shadow: 0 30px 70px rgba(15, 23, 42, .3); transform: translateY(14px) scale(.96); transition: transform .22s cubic-bezier(.2, .9, .3, 1.2); font-family: inherit; }
.sc-overlay.show .sc-box { transform: none; }
.sc-icon { width: 60px; height: 60px; margin: 0 auto 14px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 24px; background: #fff1f2; color: #e11d48; box-shadow: 0 0 0 8px #fff7f8; }
.sc-overlay[data-kind=warning] .sc-icon { background: #fffbeb; color: #d97706; box-shadow: 0 0 0 8px #fffdf5; }
.sc-overlay[data-kind=info] .sc-icon { background: #eff6ff; color: #2563eb; box-shadow: 0 0 0 8px #f8fbff; }
.sc-title { font-size: 18px; font-weight: 800; color: #0f172a; margin: 0 0 6px; line-height: 1.35; }
.sc-text { font-size: 14px; color: #64748b; margin: 0; line-height: 1.55; }
.sc-actions { display: flex; gap: 10px; margin-top: 22px; }
.sc-btn { flex: 1; height: 44px; border-radius: 12px; font-weight: 700; font-size: 14px; cursor: pointer; border: 1.5px solid transparent; transition: background .15s, border-color .15s, box-shadow .15s; font-family: inherit; }
.sc-cancel { background: #fff; border-color: #e2e8f0; color: #334155; }
.sc-cancel:hover { background: #f8fafc; border-color: #cbd5e1; }
.sc-ok { background: #e11d48; color: #fff; box-shadow: 0 6px 16px rgba(225, 29, 72, .3); }
.sc-ok:hover { background: #be123c; }
.sc-overlay[data-kind=warning] .sc-ok { background: #d97706; box-shadow: 0 6px 16px rgba(217, 119, 6, .3); }
.sc-overlay[data-kind=info] .sc-ok { background: #2563eb; box-shadow: 0 6px 16px rgba(37, 99, 235, .3); }
.sc-btn:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(255, 0, 127, .25); }
.btn-neon, .btn-ghost { min-height: 46px; }
.btn-sm-lite { padding: 6px 12px; font-size: 12.5px; border-radius: 10px; min-height: 0; }

/* ==========================================================
   FORM CHUẨN — dùng cho MỌI trang (khách + admin).
   Nhãn:   .field > label  (hoặc .lbl)      Dấu bắt buộc: <span class="req">*</span>
   Ô nhập: .input-lite  (input / select / textarea)
   Có icon: <div class="input-wrap"><i class="fa-solid fa-user"></i><input class="input-lite"></div>
   Bootstrap .form-control / .form-select cũng được đưa về cùng kiểu.
   ========================================================== */
.field, .form-lite .field { margin-bottom: 16px; text-align: left; }
.field > label, .lbl {
    display: block; margin: 0 0 6px; font-size: 13px; font-weight: 700; color: #334155;
    text-transform: none; letter-spacing: 0; line-height: 1.4;
}
.req { color: #ff007f; margin-left: 2px; }

.input-lite, input.form-control, select.form-control, textarea.form-control, .form-select {
    display: block; width: 100%; max-width: none !important; height: 46px;
    border: 1.5px solid #cbd5e1; border-radius: 12px; background: #fff; color: #0f172a;
    padding: 0 14px; font-family: inherit; font-size: 14px; font-weight: 500; line-height: 1.4;
    outline: none; box-shadow: none; transition: border-color .15s, box-shadow .15s, background .15s;
}
textarea.input-lite, textarea.form-control { height: auto; min-height: 110px; padding: 11px 14px; resize: vertical; }
select.input-lite, select.form-control, .form-select {
    appearance: none; -webkit-appearance: none; padding-right: 38px; cursor: pointer;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2364748b' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 14px center;
}
select[multiple].input-lite { height: auto; min-height: 120px; padding: 8px 10px; background-image: none; }
input[type=file].input-lite { padding: 10px 14px; height: auto; }
.input-lite::placeholder, .form-control::placeholder { color: #94a3b8; font-weight: 400; }
.input-lite:hover, .form-control:hover, .form-select:hover { border-color: #94a3b8; }
.input-lite:focus, .form-control:focus, .form-select:focus { border-color: #ff007f; box-shadow: 0 0 0 3px rgba(255, 0, 127, .12); }
.input-lite:disabled, .input-lite[readonly], .form-control[readonly] { background: #f1f5f9; color: #64748b; cursor: not-allowed; }
.input-lite.input-validation-error, .form-control.input-validation-error { border-color: #e11d48; }
.input-sm { height: 38px; font-size: 13px; padding: 0 10px; border-radius: 10px; }
select.input-sm { padding-right: 30px; background-position: right 10px center; }

.input-wrap { position: relative; }
.input-wrap > i { position: absolute; left: 15px; top: 23px; transform: translateY(-50%); color: #94a3b8; font-size: 15px; pointer-events: none; transition: color .15s; z-index: 1; }
.input-wrap > .input-lite { padding-left: 42px; }
.input-wrap:focus-within > i { color: #ff007f; }

.field-error, .field-validation-error, .field .text-danger { color: #e11d48; font-size: 12px; font-weight: 600; margin-top: 5px; display: block; }
.hint { font-size: 12px; color: var(--bs-text-sub); margin-top: 5px; }
.chk { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: #334155; cursor: pointer; margin: 0; }
.chk input { width: 18px; height: 18px; accent-color: #ff007f; margin: 0; }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 8px; }

/* Thẻ đăng nhập / đăng ký / quên mật khẩu dùng chung */
.auth-wrap { min-height: calc(100vh - 85px); display: flex; align-items: center; justify-content: center; padding: 50px 15px;
    background: radial-gradient(circle at 20% 30%, rgba(0,242,254,.08) 0%, transparent 45%), radial-gradient(circle at 80% 70%, rgba(255,0,127,.08) 0%, transparent 45%), #f8fafc; }
.auth-card { background: #fff; width: 100%; max-width: 440px; padding: 40px 34px; border-radius: 24px; border: 1.5px solid #e2e8f0;
    box-shadow: 0 20px 45px rgba(15,23,42,.08); position: relative; overflow: hidden; }
.auth-card.wide { max-width: 580px; }
.auth-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, #00f2fe, #7928ca, #ff007f); }
.auth-head { text-align: center; margin-bottom: 24px; }
.auth-head > i { font-size: 36px; color: #ff007f; }
.auth-head h1 { font-size: 23px; font-weight: 900; color: #0f172a; margin: 10px 0 6px; }
.auth-head p { color: #64748b; font-size: 14px; margin: 0; }
.auth-card .btn-neon { width: 100%; height: 50px; border-radius: 14px; font-size: 15px; margin-top: 6px; }
.auth-or { display: flex; align-items: center; gap: 10px; color: #94a3b8; font-size: 13px; margin: 16px 0 12px; }
.auth-or::before, .auth-or::after { content: ''; flex: 1; height: 1px; background: #e2e8f0; }
.btn-google { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 48px; border: 1.5px solid #cbd5e1; border-radius: 14px; background: #fff; color: #0f172a; font-weight: 700; text-decoration: none; }
.btn-google:hover { border-color: #94a3b8; background: #f8fafc; color: #0f172a; }
.auth-foot { text-align: center; margin-top: 22px; font-size: 14px; color: #64748b; }
.auth-foot a, .link-pink { color: #ff007f; font-weight: 700; text-decoration: none; }
.auth-foot a:hover, .link-pink:hover { text-decoration: underline; }

/* Thông báo */
.flash { border-radius: 12px; padding: 12px 16px; font-weight: 600; font-size: 14px; margin-bottom: 18px; display: flex; gap: 10px; align-items: flex-start; }
.flash-success { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.flash-error { background: #fff1f2; color: #be123c; border: 1px solid #fecdd3; }
.flash-info { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }

/* Sao đánh giá */
.stars { color: #f59e0b; letter-spacing: 1px; white-space: nowrap; }
.stars .off { color: #e2e8f0; }
.rating-count { color: var(--bs-text-sub); font-size: 12px; margin-left: 4px; }

/* Nhãn trạng thái đơn */
.status-pill { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 800; white-space: nowrap; }
.st-pending { background: #fef3c7; color: #92400e; }
.st-approved { background: #dbeafe; color: #1d4ed8; }
.st-shipping { background: #e0e7ff; color: #4338ca; }
.st-done { background: #dcfce7; color: #15803d; }
.st-cancelled { background: #f1f5f9; color: #64748b; text-decoration: line-through; }
.pay-pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 700; background: #f1f5f9; color: #475569; }
.pay-pill.paid { background: #dcfce7; color: #15803d; }
.pay-pill.failed { background: #ffe4e6; color: #be123c; }

/* Bảng */
.table-lite { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; }
.table-lite th { background: #f8fafc; color: #475569; font-weight: 800; font-size: 12px; text-transform: uppercase; letter-spacing: .4px; padding: 12px 14px; border-bottom: 1px solid var(--bs-card-border); text-align: left; }
.table-lite td { padding: 12px 14px; border-bottom: 1px solid #f1f5f9; vertical-align: middle; color: #1e293b; }
.table-lite tr:last-child td { border-bottom: none; }
.table-lite tr:hover td { background: #fcfdff; }

/* Phân trang */
.pager-lite { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin: 26px 0 6px; padding: 0; list-style: none; }
.pager-lite a, .pager-lite span {
    min-width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
    border-radius: 12px; border: 1.5px solid var(--bs-card-border); background: #fff; color: #0f172a;
    font-weight: 700; text-decoration: none; padding: 0 12px; font-size: 14px;
}
.pager-lite a:hover { border-color: #ff007f; color: #ff007f; }
.pager-lite .current { background: linear-gradient(135deg, #ff007f, #7928ca); color: #fff; border-color: transparent; }
.pager-lite .disabled { color: #cbd5e1; }

/* Nhãn giảm giá / flash sale */
.sale-badge { display: inline-block; background: #ff007f; color: #fff; font-weight: 900; font-size: 12px; border-radius: 8px; padding: 2px 8px; }
.old-price { text-decoration: line-through; color: #94a3b8; font-size: 13px; font-weight: 600; margin-left: 6px; }
.countdown { font-family: ui-monospace, Consolas, monospace; font-weight: 800; }

/* Tabs tài khoản */
.account-nav { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.account-nav a { padding: 9px 16px; border-radius: 12px; border: 1.5px solid var(--bs-card-border); background: #fff; color: #334155; font-weight: 700; font-size: 14px; text-decoration: none; }
.account-nav a.active, .account-nav a:hover { border-color: #ff007f; color: #ff007f; background: #fff1f7; }

/* Bài viết */
.post-card { display: block; text-decoration: none; color: inherit; height: 100%; }
.post-card .thumb { aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #f1f5f9; margin-bottom: 14px; }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card h3 { font-size: 18px; font-weight: 800; color: #0f172a; margin-bottom: 8px; }
.post-card:hover h3 { color: #ff007f; }
.post-content { font-size: 16px; line-height: 1.75; color: #334155; }
.post-content h3 { font-size: 20px; font-weight: 800; margin-top: 26px; color: #0f172a; }
.post-content ul { padding-left: 22px; }

/* Dải sản phẩm gợi ý (mua cùng / đã xem / cùng loại) */
.pstrip { margin: 10px 0 34px; }
.pstrip-title { font-weight: 900; font-size: 18px; margin: 0 0 14px; color: #0f172a; }
.pstrip-title i { color: #ff007f; margin-right: 6px; }
.pstrip-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(170px, 1fr); gap: 14px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; }
.pstrip-row > * { scroll-snap-align: start; }
.related-card { display: block; text-decoration: none; color: #0f172a; background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; padding: 12px; height: 100%; }
.related-card img { width: 100%; height: 150px; object-fit: contain; }
.related-card .n { font-weight: 700; font-size: 13.5px; height: 38px; overflow: hidden; margin: 8px 0 4px; }
.related-card:hover { border-color: #ff007f; color: #0f172a; }

/* Chuông thông báo */
/* ===== Header: chuông thông báo + menu tài khoản ===== */
.hdr-drop { position: relative; display: inline-flex; }
.notif-bell { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid #e2e8f0; color: #334155; text-decoration: none; background: #fff; font-size: 17px; transition: border-color .2s, color .2s, background .2s; }
.notif-bell:hover, .hdr-drop.open .notif-bell { border-color: #ff007f; color: #ff007f; background: #fff7fb; }
.notif-count { position: absolute; top: -5px; left: 22px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: #ee2d4f; color: #fff; font-size: 11px; font-weight: 800; line-height: 1; display: inline-flex; align-items: center; justify-content: center; border: 2px solid #fff; box-shadow: 0 2px 6px rgba(238, 45, 79, .45); font-variant-numeric: tabular-nums; }
.notif-count[hidden] { display: none; }
.notif-bell.ring i { animation: bellRing 1s ease-in-out 2; transform-origin: 50% 2px; }
@keyframes bellRing { 0%,100% { transform: rotate(0); } 15% { transform: rotate(16deg); } 30% { transform: rotate(-14deg); } 45% { transform: rotate(10deg); } 60% { transform: rotate(-8deg); } 75% { transform: rotate(4deg); } }
@media (prefers-reduced-motion: reduce) { .notif-bell.ring i { animation: none; } }
.hdr-panel { position: absolute; top: calc(100% + 12px); right: -8px; background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; box-shadow: 0 18px 45px rgba(15, 23, 42, .16); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s ease, transform .18s ease, visibility .18s; z-index: 1100; text-align: left; white-space: normal; }
.hdr-panel::before { content: ""; position: absolute; top: -12px; left: 0; right: 0; height: 12px; } /* cầu nối để rê chuột không bị tắt */
.hdr-panel::after { content: ""; position: absolute; top: -7px; right: 22px; width: 12px; height: 12px; background: #fff; border-left: 1px solid #e2e8f0; border-top: 1px solid #e2e8f0; transform: rotate(45deg); }
.hdr-drop.open .hdr-panel { opacity: 1; visibility: visible; transform: none; }
@media (hover: hover) { .hdr-drop:hover .hdr-panel { opacity: 1; visibility: visible; transform: none; } }
.notif-panel { width: 380px; max-width: calc(100vw - 24px); }
.hdr-panel-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid #f1f5f9; font-size: 13px; color: #64748b; }
.hdr-panel-head b { color: #0f172a; font-weight: 800; }
.hdr-panel-head a { color: #ff007f; font-weight: 700; text-decoration: none; }
.notif-list { max-height: 380px; overflow-y: auto; }
.np-item { display: flex; gap: 12px; padding: 12px 16px; text-decoration: none; color: #0f172a; border-bottom: 1px solid #f8fafc; }
.np-item:hover { background: #f8fafc; }
.np-item.unread { background: #fff5f9; }
.np-item.unread:hover { background: #ffeef5; }
.np-ic { flex: 0 0 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: #f1f5f9; color: #64748b; }
.np-ic.restock { background: #dcfce7; color: #15803d; } .np-ic.pricedrop { background: #fee2e2; color: #dc2626; } .np-ic.answer, .np-ic.reply { background: #e0f2fe; color: #0369a1; } .np-ic.points { background: #fef3c7; color: #b45309; }
.np-body { min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: 13px; line-height: 1.4; }
.np-body b { font-weight: 700; }
.np-body span { color: #475569; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.np-body small { color: #94a3b8; font-size: 11.5px; }
.notif-empty { padding: 34px 16px; text-align: center; color: #94a3b8; font-size: 13px; }
.notif-empty i { display: block; font-size: 30px; margin-bottom: 8px; color: #cbd5e1; }
.hdr-panel-foot { display: block; text-align: center; padding: 11px; font-weight: 700; font-size: 13px; color: #334155; text-decoration: none; border-top: 1px solid #f1f5f9; border-radius: 0 0 14px 14px; }
.hdr-panel-foot:hover { background: #f8fafc; color: #ff007f; }
.acct-btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px 0 4px; border-radius: 999px; border: 1.5px solid #e2e8f0; background: #fff; color: #0f172a; font-weight: 700; font-size: 13px; cursor: pointer; transition: border-color .2s, background .2s; }
.acct-btn:hover, .hdr-drop.open .acct-btn { border-color: #ff007f; background: #fff7fb; }
.acct-av { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, #ff007f, #7928ca); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; flex-shrink: 0; }
.acct-av.lg { width: 40px; height: 40px; font-size: 16px; }
.acct-name { max-width: 110px; overflow: hidden; text-overflow: ellipsis; }
.acct-caret { font-size: 10px; color: #94a3b8; transition: transform .2s; }
.hdr-drop.open .acct-caret { transform: rotate(180deg); }
.acct-panel { width: 250px; padding: 6px; }
.acct-head { display: flex; gap: 10px; align-items: center; padding: 10px 10px 12px; border-bottom: 1px solid #f1f5f9; margin-bottom: 4px; }
.acct-head b { display: block; font-size: 14px; } .acct-head small { color: #94a3b8; }
.acct-panel a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 9px; color: #334155; text-decoration: none; font-weight: 600; font-size: 13.5px; }
.acct-panel a i { width: 18px; text-align: center; color: #94a3b8; }
.acct-panel a:hover { background: #f8fafc; color: #0f172a; } .acct-panel a:hover i { color: #ff007f; }
.acct-panel a.danger { color: #e11d48; } .acct-panel a.danger i { color: #e11d48; } .acct-panel a.danger:hover { background: #fff1f2; }
.acct-panel .sep { height: 1px; background: #f1f5f9; margin: 4px 0; }
.btn-admin-top { background: linear-gradient(135deg, #10b981, #059669) !important; animation: none !important; box-shadow: 0 4px 14px rgba(16, 185, 129, .3) !important; white-space: nowrap; }
.notif-item { display: flex; gap: 12px; padding: 14px 16px; border-bottom: 1px solid #f1f5f9; text-decoration: none; color: #0f172a; }
.notif-item:last-child { border-bottom: none; }
.notif-item:hover { background: #fcfdff; }
.notif-item.unread { background: #fff7fb; }
.notif-item .ic { flex: 0 0 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: #f1f5f9; color: #64748b; }
.notif-item .ic.restock { background: #dcfce7; color: #15803d; }
.notif-item .ic.pricedrop { background: #fff1f7; color: #ff007f; }
.notif-item .ic.order, .np-ic.order { background: #ede9fe; color: #6d28d9; }
.notif-item b { display: block; font-size: 14.5px; }
.notif-item small { color: #64748b; }

/* Gợi ý tìm kiếm */
.suggest-box { position: absolute; left: auto; right: 0; width: max(100%, min(400px, 92vw)); top: calc(100% + 6px); z-index: 1050; background: #fff; border: 1.5px solid #e2e8f0; border-radius: 14px; box-shadow: 0 16px 40px rgba(15,23,42,.14); overflow: hidden; text-align: left; }
.suggest-item { display: grid; grid-template-columns: 44px 1fr auto; gap: 10px; align-items: center; padding: 8px 12px; color: #0f172a; text-decoration: none; border-bottom: 1px solid #f1f5f9; }
.suggest-item img { width: 44px; height: 44px; object-fit: contain; background: #f8fafc; border-radius: 8px; }
.suggest-item .s-name { font-weight: 700; font-size: 13.5px; line-height: 1.3; }
.suggest-item .s-name em { color: #94a3b8; font-weight: 600; font-style: normal; font-size: 12px; }
.suggest-item .s-price { font-weight: 800; color: #ff007f; font-size: 13px; text-align: right; white-space: nowrap; }
.suggest-item .s-price s { display: block; color: #94a3b8; font-weight: 600; font-size: 11.5px; }
.suggest-item:hover, .suggest-item.active { background: #fff1f7; color: #0f172a; }
.suggest-all { display: block; padding: 10px 12px; font-weight: 800; font-size: 13px; color: #ff007f; text-decoration: none; background: #f8fafc; }
.suggest-all:hover { text-decoration: underline; color: #ff007f; }
.suggest-empty { padding: 14px; color: #64748b; font-size: 13.5px; }

/* Nút yêu thích */
.btn-wish { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 38px; height: 38px; padding: 0 10px; border-radius: 10px;
    border: 1.5px solid var(--bs-card-border); background: #fff; color: #64748b; cursor: pointer; text-decoration: none; font-weight: 700; font-size: 14px; transition: .15s; }
.btn-wish:hover, .btn-wish.on { border-color: #ff007f; color: #ff007f; }
.btn-wish.on { background: #fff1f7; }
.btn-wish.big { height: 38px; padding: 0 14px; font-size: 13px; }
.btn-wish:disabled { opacity: .6; }

/* So sánh */
.compare-table th { width: 180px; }
.compare-table td { text-align: center; }
.compare-table img { width: 140px; height: 140px; object-fit: contain; border-radius: 14px; background: #f8fafc; }

/* Thanh so sánh nổi */
.compare-float {
    position: fixed; right: 20px; bottom: 20px; z-index: 999; background: #0f172a; color: #fff;
    border-radius: 16px; padding: 12px 18px; font-weight: 800; text-decoration: none; display: flex; gap: 10px; align-items: center;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.3);
}
.compare-float:hover { color: #00f2fe; }
.compare-float .count { background: #ff007f; border-radius: 999px; padding: 1px 9px; }

.empty-state { text-align: center; padding: 50px 20px; color: var(--bs-text-sub); }
.empty-state i { font-size: 42px; color: #cbd5e1; margin-bottom: 14px; }

@media (max-width: 767px) {
    .page-title { font-size: 21px; }
    .card-lite { padding: 18px; }
    .table-lite th, .table-lite td { padding: 10px; }
}


/* ===== Popup đặt hàng nhanh ===== */
.qb-overlay { position: fixed; inset: 0; z-index: 2500; background: rgba(15, 23, 42, .5); display: flex; align-items: center; justify-content: center; padding: 16px; opacity: 0; transition: opacity .2s ease; }
.qb-overlay.show { opacity: 1; }
.qb-overlay[hidden] { display: none; }
.qb-sheet { position: relative; width: 100%; max-width: 460px; max-height: calc(100vh - 32px); overflow-y: auto; background: #fff; border-radius: 20px; box-shadow: 0 30px 70px rgba(15, 23, 42, .3); transform: translateY(16px); transition: transform .25s cubic-bezier(.2, .9, .3, 1.1); }
.qb-overlay.show .qb-sheet { transform: none; }
.qb-close { position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; border-radius: 50%; border: none; background: #f1f5f9; color: #475569; cursor: pointer; z-index: 2; }
.qb-close:hover { background: #fee2e2; color: #e11d48; }
.qb-head { display: flex; gap: 14px; padding: 18px 18px 14px; border-bottom: 1px solid #f1f5f9; }
.qb-head img { width: 96px; height: 96px; object-fit: contain; border-radius: 14px; background: #f8fafc; border: 1px solid #e2e8f0; flex-shrink: 0; }
.qb-name { font-weight: 800; font-size: 15px; line-height: 1.35; padding-right: 30px; }
.qb-price { margin-top: 6px; color: #ff007f; font-weight: 900; font-size: 20px; }
.qb-price s { color: #94a3b8; font-size: 13px; font-weight: 600; margin-left: 6px; }
.qb-stock { font-size: 12.5px; color: #64748b; margin-top: 4px; }
.qb-stock b { color: #15803d; }
.qb-body { padding: 14px 18px 4px; }
.qb-sec { margin-bottom: 14px; }
.qb-row { display: flex; align-items: center; justify-content: space-between; }
.qb-lbl { font-weight: 700; font-size: 13px; color: #334155; margin-bottom: 8px; }
.qb-vars { display: flex; flex-wrap: wrap; gap: 8px; }
.qb-vars.need { animation: vgShake .4s; }
.qb-var { min-width: 70px; padding: 7px 12px; border: 1.5px solid #e2e8f0; border-radius: 10px; background: #fff; font-weight: 700; font-size: 13px; cursor: pointer; line-height: 1.2; }
.qb-var small { display: block; font-size: 10.5px; color: #94a3b8; font-weight: 600; }
.qb-var:hover:not(.out) { border-color: #ff007f; }
.qb-var.on { border-color: #ff007f; color: #ff007f; background: #fff1f7; }
.qb-var.on small { color: #ff007f; }
.qb-var.out { color: #cbd5e1; text-decoration: line-through; cursor: not-allowed; background: #f8fafc; }
.qb-qty { display: inline-flex; border: 1.5px solid #e2e8f0; border-radius: 10px; overflow: hidden; }
.qb-qty button { width: 38px; height: 38px; border: none; background: #f8fafc; font-size: 18px; font-weight: 700; cursor: pointer; color: #334155; }
.qb-qty button:hover { background: #fff1f7; color: #ff007f; }
.qb-qty input { width: 58px; border: none; text-align: center; font-weight: 800; font-size: 15px; -moz-appearance: textfield; }
.qb-qty input::-webkit-outer-spin-button, .qb-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qb-msg { display: none; font-size: 13px; font-weight: 700; color: #dc2626; background: #fef2f2; border-radius: 10px; padding: 8px 12px; margin-bottom: 10px; }
.qb-msg.show { display: block; } .qb-msg.ok { color: #b45309; background: #fffbeb; }
.qb-more { display: inline-block; font-size: 12.5px; font-weight: 700; color: #64748b; text-decoration: none; margin-bottom: 8px; }
.qb-more:hover { color: #ff007f; }
.qb-actions { display: flex; gap: 10px; padding: 12px 18px 18px; position: sticky; bottom: 0; background: #fff; }
.qb-btn { position: relative; flex: 1; height: 48px; border-radius: 14px; font-weight: 800; font-size: 14.5px; cursor: pointer; border: 1.5px solid transparent; }
.qb-add { background: #fff1f7; border-color: #ff007f; color: #ff007f; }
.qb-add:hover { background: #ffe4f1; }
.qb-buy { background: linear-gradient(135deg, #ff007f, #c026d3); color: #fff; box-shadow: 0 8px 20px rgba(255, 0, 127, .3); }
.qb-buy:hover { filter: brightness(1.06); }
.qb-toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); background: #0f172a; color: #fff; padding: 12px 18px; border-radius: 12px; font-weight: 700; font-size: 14px; z-index: 2600; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; box-shadow: 0 12px 30px rgba(0,0,0,.25); white-space: nowrap; }
.qb-toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.qb-toast i { color: #34d399; } .qb-toast a { color: #f9a8d4; margin-left: 6px; }
@keyframes vgShake { 0%, 100% { transform: none; } 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
@media (max-width: 575px) {
    .qb-overlay { align-items: flex-end; padding: 0; }
    .qb-sheet { max-width: none; border-radius: 20px 20px 0 0; max-height: 88vh; transform: translateY(100%); }
}

/* Giỏ hàng dạng icon trên màn hình nhỏ */
.m-cart { display: none; position: relative; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid #e2e8f0; align-items: center; justify-content: center; color: #334155; text-decoration: none; background: #fff; font-size: 16px; }
.m-cart .js-cart-count { position: absolute; top: -5px; left: 22px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: #ff007f; color: #fff; font-size: 11px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; border: 2px solid #fff; }
@media (max-width: 1140px) { .m-cart { display: inline-flex; } }

/* ===== Banner hai bên trang chủ (màn hình rộng) ===== */
.side-ad { position: fixed; top: 108px; width: 158px; z-index: 90; border-radius: 22px; transition: opacity .3s, transform .3s; }
.side-ad.left { left: calc(50% - 660px - 174px); }
.side-ad.right { right: calc(50% - 660px - 174px); }
.side-ad.bye { opacity: 0; transform: scale(.9); }
.sa-inner { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 18px 12px 16px; border-radius: 22px; text-decoration: none !important; color: #fff; overflow: hidden; box-shadow: 0 16px 36px rgba(15, 23, 42, .22); transition: transform .25s ease, box-shadow .25s ease; isolation: isolate; }
.sa-inner:hover { transform: translateY(-4px); box-shadow: 0 22px 44px rgba(15, 23, 42, .28); }
.side-ad.left .sa-inner { background: radial-gradient(circle at 80% 10%, rgba(34, 211, 238, .35), transparent 45%), radial-gradient(circle at 10% 90%, rgba(168, 85, 247, .45), transparent 50%), linear-gradient(170deg, #0f172a, #312e81); }
.side-ad.right .sa-inner { background: radial-gradient(circle at 85% 15%, rgba(253, 230, 138, .45), transparent 40%), radial-gradient(circle at 15% 85%, rgba(249, 115, 22, .5), transparent 50%), linear-gradient(170deg, #be185d, #ff007f); }
.sa-inner::before { content: ""; position: absolute; inset: -50%; z-index: -1; background: conic-gradient(from 0deg, transparent 0 70%, rgba(255, 255, 255, .18) 80%, transparent 90%); animation: saSpin 6s linear infinite; }
@keyframes saSpin { to { transform: rotate(360deg); } }
.sa-close { position: absolute; top: -8px; right: -8px; z-index: 3; width: 24px; height: 24px; border-radius: 50%; border: 2px solid #fff; background: #334155; color: #fff; font-size: 11px; cursor: pointer; opacity: 0; transition: opacity .2s; }
.side-ad:hover .sa-close, .sa-close:focus-visible { opacity: 1; }
.sa-pill { font-size: 10.5px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .3); padding: 4px 10px; border-radius: 999px; }
.sa-art { width: 104px; height: auto; filter: drop-shadow(0 10px 16px rgba(0, 0, 0, .3)); }
.sa-art.racket .shuttle { animation: saShuttle 3.2s ease-in-out infinite; }
@keyframes saShuttle { 0% { transform: translate(14px, 120px) rotate(-30deg); opacity: 0; } 15% { opacity: 1; } 50% { transform: translate(62px, 20px) rotate(20deg); } 85% { opacity: 1; } 100% { transform: translate(110px, 110px) rotate(70deg); opacity: 0; } }
.sa-art.racket .strings { animation: saStrings 2.4s ease-in-out infinite; }
@keyframes saStrings { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
.sa-art.gift .lid { transform-origin: 60px 52px; animation: saLid 2.2s ease-in-out infinite; }
@keyframes saLid { 0%, 60%, 100% { transform: translateY(0) rotate(0); } 70% { transform: translateY(-10px) rotate(-6deg); } 80% { transform: translateY(-4px) rotate(4deg); } }
.sa-art.gift .spark { animation: saTwinkle 1.6s ease-in-out infinite; }
@keyframes saTwinkle { 0%, 100% { opacity: .3; } 50% { opacity: 1; } }
.sa-title { font-weight: 900; font-size: 19px; line-height: 1.1; letter-spacing: .3px; }
.sa-title em { font-style: normal; font-size: 24px; background: linear-gradient(135deg, #67e8f9, #f0abfc); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.side-ad.right .sa-title em { font-size: 30px; background: linear-gradient(135deg, #fef08a, #fff); -webkit-background-clip: text; background-clip: text; }
.sa-list { list-style: none; padding: 0; margin: 0; font-size: 11.5px; line-height: 1.45; text-align: left; color: #cbd5e1; }
.sa-list i { color: #34d399; margin-right: 4px; font-size: 10px; }
.sa-price { font-weight: 900; font-size: 26px; color: #facc15; line-height: 1; }
.sa-price small { font-size: 11px; color: #e2e8f0; font-weight: 700; margin: 0 2px; }
.sa-tickets { display: flex; flex-direction: column; gap: 6px; width: 100%; }
.sa-tickets span { position: relative; overflow: hidden; background: #fff; color: #be185d; font-weight: 900; font-size: 13px; padding: 7px 6px; border-radius: 10px; border-left: 4px dashed #fda4af; }
.sa-tickets span::after { content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255, 0, 127, .18), transparent); animation: saShine 2.8s ease-in-out infinite; }
.sa-tickets span:nth-child(2)::after { animation-delay: .4s; } .sa-tickets span:nth-child(3)::after { animation-delay: .8s; }
@keyframes saShine { 0% { left: -60%; } 60%, 100% { left: 130%; } }
.sa-note { font-size: 11px; color: #fde2ef; line-height: 1.35; }
.sa-cta { margin-top: 2px; display: inline-flex; align-items: center; gap: 6px; background: #fff; color: #0f172a; font-weight: 800; font-size: 12.5px; padding: 8px 14px; border-radius: 999px; box-shadow: 0 6px 14px rgba(0, 0, 0, .2); }
.side-ad.right .sa-cta { color: #be185d; }
.sa-inner:hover .sa-cta i { transform: translateX(3px); } .sa-cta i { transition: transform .2s; }
@media (max-width: 1659px) { .side-ad { display: none; } }
@media (max-height: 640px) { .side-ad { display: none; } }

/* ===== Phiên bản ngang cho máy nhỏ / tablet / điện thoại ===== */
.promo-duo { display: none; grid-template-columns: 1fr 1fr; gap: 14px; margin: -14px 0 26px; }
@media (max-width: 1659px) { .promo-duo { display: grid; } }
.pd-card { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 18px; border-radius: 18px; color: #fff; text-decoration: none !important; box-shadow: 0 10px 24px rgba(15, 23, 42, .14); transition: transform .2s, box-shadow .2s; isolation: isolate; }
.pd-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(15, 23, 42, .2); }
.pd-card::after { content: ""; position: absolute; top: 0; left: -40%; width: 30%; height: 100%; z-index: -1; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .18), transparent); animation: saShine 3.4s ease-in-out infinite; }
.pd-left { background: radial-gradient(circle at 90% 10%, rgba(34, 211, 238, .35), transparent 50%), linear-gradient(120deg, #0f172a, #4c1d95); }
.pd-right { background: radial-gradient(circle at 90% 20%, rgba(253, 230, 138, .4), transparent 45%), linear-gradient(120deg, #be185d, #ff007f 60%, #f97316); }
.pd-copy { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.pd-copy b { font-size: 17px; font-weight: 900; line-height: 1.2; }
.pd-copy small { font-size: 12px; opacity: .85; }
.pd-pill { align-self: flex-start; font-size: 10px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; background: rgba(255, 255, 255, .18); border-radius: 999px; padding: 3px 9px; }
.pd-ic { flex: 0 0 52px; height: 52px; border-radius: 16px; background: rgba(255, 255, 255, .16); display: flex; align-items: center; justify-content: center; font-size: 24px; animation: pdBob 2.6s ease-in-out infinite; }
.pd-ic.gift { color: #fef08a; }
@keyframes pdBob { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-4px) rotate(-6deg); } }
@media (max-width: 575px) {
    .promo-duo { grid-template-columns: 1fr; gap: 10px; margin-top: -16px; }
    .pd-card { padding: 13px 15px; }
    .pd-copy b { font-size: 15.5px; }
}
/* Máy bật "giảm chuyển động": giữ hiệu ứng nhẹ, chỉ tắt vòng sáng xoay liên tục */
@media (prefers-reduced-motion: reduce) { .sa-inner::before { animation: none; opacity: 0; } }
