/* Yêu thích và xem nhanh. */
.card-top { position: relative; }
.qh-wish { position: absolute; top: 6px; right: 6px; z-index: 3; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); box-shadow: 0 1px 4px rgba(0, 0, 0, .25); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.qh-wish svg { fill: none; stroke: #7b8794; stroke-width: 2; stroke-linejoin: round; }
.qh-wish:hover svg { stroke: #e53935; }
.qh-wish.is-on svg { fill: #e53935; stroke: #e53935; }
.qh-wish:focus-visible, .qh-quick:focus-visible, .qh-qv__btn:focus-visible { outline: 2px solid #1a56db; outline-offset: 2px; }
.qh-quick { position: absolute; left: 50%; bottom: 8px; z-index: 3; transform: translateX(-50%); padding: 6px 14px; border: 0; border-radius: 16px; background: rgba(26, 86, 219, .92); color: #fff; font-size: 13px; cursor: pointer; opacity: 0; transition: opacity .15s; white-space: nowrap; }
.card-product:hover .qh-quick, .qh-quick:focus-visible { opacity: 1; }
.qh-quick:focus:not(:focus-visible) { opacity: 0; } /* Sau khi đóng cửa sổ xem nhanh bằng chuột, nút không còn dính lại trên thẻ. */
.card-product:hover .qh-quick:focus:not(:focus-visible) { opacity: 1; }
@media (hover: none) { .qh-quick { display: none; } }
.compare-current.qh-wish-btn { cursor: pointer; }
.compare-current.qh-wish-btn.is-on { color: #e53935; }
.qh-wish-link { position: relative; display: inline-flex; align-items: center; margin: 0 8px; color: inherit; text-decoration: none; }
.qh-wish-link svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.qh-wish-link [data-wish-count] { position: absolute; top: -6px; right: -8px; min-width: 16px; padding: 0 4px; border-radius: 8px; background: #e53935; color: #fff; font-size: 11px; line-height: 16px; text-align: center; }
.qh-wish-link [data-wish-count][hidden] { display: none; }

.qh-wish-page { padding: 16px 0 32px; }
.qh-wish-page__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.qh-wish-page h1 { margin: 0; font-size: 22px; }
.qh-wish-page button.qh-wish-clear { padding: 6px 12px; border: 1px solid #c3c9d4; border-radius: 4px; background: #fff; cursor: pointer; }
#qh-wish-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
#qh-wish-grid .card-product { height: 100%; }
#qh-wish-empty { padding: 32px 0; text-align: center; color: #52606d; }

html.qh-qv-open { overflow: hidden; }
.qh-qv { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(0, 0, 0, .55); }
.qh-qv[hidden] { display: none; }
.qh-qv__box { position: relative; width: 100%; max-width: 860px; max-height: 92vh; overflow: auto; border-radius: 8px; background: #fff; padding: 20px; }
.qh-qv__x { position: absolute; top: 6px; right: 10px; border: 0; background: none; font-size: 30px; line-height: 1; cursor: pointer; }
.qh-qv__body { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.qh-qv__load { grid-column: 1 / -1; text-align: center; padding: 40px 0; }
.qh-qv__main { display: block; width: 100%; height: auto; border-radius: 4px; }
.qh-qv__ths { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.qh-qv__th { width: 56px; height: 56px; padding: 0; border: 1px solid #d5dae1; border-radius: 4px; background: #fff; cursor: pointer; }
.qh-qv__th img { width: 100%; height: 100%; object-fit: contain; }
.qh-qv__info h2 { margin: 0 0 8px; font-size: 18px; line-height: 1.3; }
.qh-qv__price { color: #d0021b; font-size: 22px; }
.qh-qv__old { margin-left: 8px; color: #7b8794; }
.qh-qv__st { margin: 6px 0; color: #b45309; }
.qh-qv__spec { margin: 12px 0; padding: 0; list-style: none; font-size: 14px; }
.qh-qv__spec li { padding: 4px 0; border-bottom: 1px dashed #e4e7eb; }
.qh-qv__spec span { display: inline-block; min-width: 120px; color: #52606d; }
.qh-qv__act { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.qh-qv__btn { display: inline-block; padding: 10px 16px; border-radius: 4px; background: #e8590c; color: #fff; text-decoration: none; font-weight: 700; }
.qh-qv__btn--ghost { background: #fff; color: #1a56db; border: 1px solid #1a56db; }
@media (max-width: 680px) { .qh-qv__body { grid-template-columns: 1fr; } .qh-qv__box { padding: 14px; } }

/* Đầu trang trên điện thoại/máy tính bảng: khối bên phải co theo nội dung để biểu tượng trái tim không đè lên logo. */
@media (max-width: 1023px) {
	.flex-header > .header-right { width: auto !important; flex: 0 0 auto !important; }
	.header-right .qh-wish-link { margin: 0 6px; }
}
