/* ==========================================================================
   Add-on: gu_qua_bieu - Giao diện Hộp Quà Tết & Quà Biếu Sang Trọng
   100% Đồng bộ thiết kế chuẩn từ Phố Sâm (phosam.vn)
   ========================================================================== */

:root {
    --gu-qb-primary: #96181e;
    --gu-qb-primary-dark: #7a1414;
    --gu-qb-gold-bg: #fdf6ea;
    --gu-qb-gold-border: #faecd8;
    --gu-qb-section-bg: #faf4eb;
    --gu-qb-zalo-blue: #0068ff;
}

/* ==========================================================================
   1. KHUNG SECTION BỌC NGOÀI (CONTAINER) & THANH LỌC SẮP XẾP
   ========================================================================== */
.gu-qb-container {
    width: 100%;
    max-width: 100%;
    margin: 24px 0 36px 0;
    background-color: var(--gu-qb-section-bg);
    border: 1px solid #faecd8;
    border-radius: 26px;
    padding: 24px 28px;
    box-sizing: border-box;
    font-family: inherit;
}

/* ==========================================================================
   1.1. KHỐI LỌC QUÀ TẾT THEO NHU CẦU (#pscp.pscp-v2) 100% TỪ PHỐ SÂM
   ========================================================================== */
#pscp.pscp-v2 {
    background: #ffffff;
    border: 1px solid #faecd8;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 22px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.pscp-hd {
    background: linear-gradient(135deg, #801217 0%, #9a181f 100%);
    padding: 16px 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    color: #ffffff;
}

.pscp-tt .pscp-t {
    font-size: 19px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 4px;
    letter-spacing: -0.3px;
    line-height: 1.25;
}

.pscp-tt .pscp-s {
    font-size: 13px;
    color: #f7dede;
    line-height: 1.4;
}

.pscp-sr.inhd {
    min-width: 330px;
}

.pscp-sf {
    display: flex;
    align-items: center;
    background: #ffffff;
    border-radius: 24px;
    padding: 3px 4px 3px 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.pscp-si {
    border: none;
    outline: none;
    flex: 1;
    font-size: 13px;
    color: #333333;
    background: transparent;
    min-width: 0;
}

.pscp-sg {
    background: #f7ba54;
    color: #633c00;
    border: none;
    border-radius: 20px;
    padding: 6px 15px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.pscp-sg:hover {
    background: #e5a740;
}

.pscp-bd {
    padding: 20px 22px;
    background: #ffffff;
}

.pscp-cols {
    display: grid;
    grid-template-columns: 1fr 1.35fr;
    gap: 30px;
}

.pscp-lb {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #88746a;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.pscp-tc.main {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 10px;
}

.pscp-type-btn {
    border: 1px solid #ecd8c5;
    background: #ffffff;
    border-radius: 10px;
    padding: 10px 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.pscp-type-btn b {
    font-size: 14px;
    font-weight: 700;
    color: #3b2820;
    display: block;
    margin-bottom: 2px;
}

.pscp-type-btn small {
    font-size: 11px;
    color: #8c766b;
    display: block;
}

.pscp-type-btn:hover {
    border-color: #801217;
    background: #fdf8f4;
}

.pscp-type-btn.on {
    background: #801217;
    border-color: #801217;
}

.pscp-type-btn.on b,
.pscp-type-btn.on small {
    color: #ffffff;
}

.pscp-ph {
    border: 1px dashed #e6cbb4;
    background: #fcf8f3;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 12px;
    color: #6d554a;
}

.pscp-sec.pscp-mat {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed #eedecf;
    display: flex;
    align-items: center;
    gap: 12px;
}

.pscp-sec.pscp-mat .pscp-lb {
    margin-bottom: 0;
    font-size: 12px;
    white-space: nowrap;
    display: inline-block;
}

.pscp-tc.sub {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pscp-mat-btn {
    border: 1px solid #ecd8c5;
    background: #ffffff;
    border-radius: 16px;
    padding: 5px 14px;
    font-size: 12px;
    color: #4a382e;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
}

.pscp-mat-btn:hover {
    border-color: #801217;
    color: #801217;
}

.pscp-mat-btn.on {
    background: #801217;
    border-color: #801217;
    color: #ffffff;
    font-weight: 600;
}

.pscp-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.pscp-f {
    flex: 1;
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid #dcd1c6;
    border-radius: 8px;
    padding: 8px 12px;
}

.pscp-in {
    border: none;
    outline: none;
    width: 100%;
    font-size: 14px;
    font-weight: 600;
    color: #333333;
}

.pscp-u {
    font-size: 13px;
    color: #888888;
    margin-left: 4px;
}

.pscp-dash {
    color: #999999;
    font-weight: bold;
}

.pscp-go {
    background: #801217;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.pscp-go:hover {
    background: #670e12;
}

.pscp-msg {
    font-size: 12px;
    color: #88746a;
    margin-bottom: 12px;
}

.pscp-q {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.pscp-ql {
    font-size: 11px;
    font-weight: 700;
    color: #88746a;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    white-space: nowrap;
    margin-top: 6px;
}

.pscp-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.pscp-chip {
    background: #fbf6ef;
    border: 1px solid #eedecf;
    border-radius: 16px;
    padding: 5px 12px;
    font-size: 12px;
    color: #4a382e;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pscp-chip:hover {
    border-color: #801217;
    color: #801217;
}

.pscp-chip.on {
    background: #801217;
    border-color: #801217;
    color: #ffffff;
    font-weight: 600;
}

@media (max-width: 900px) {
    .pscp-cols {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .pscp-hd {
        flex-direction: column;
        align-items: stretch;
    }
    .pscp-sr.inhd {
        min-width: 100%;
    }
}

.gu-qb-header-bar {
    background: transparent;
    padding: 0 0 18px 0;
    margin-bottom: 0;
}

.gu-qb-meta-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.gu-qb-matched-count {
    font-size: 15px;
    color: #4a3b32;
    font-weight: 500;
}

.gu-qb-matched-count strong {
    color: var(--gu-qb-primary);
    font-size: 16px;
    font-weight: 700;
}

.gu-qb-sort-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.gu-qb-pill-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: #333333;
    background: #ffffff;
    border: 1px solid #e0d7cd;
    text-decoration: none !important;
    transition: all 0.2s ease;
    cursor: pointer;
    line-height: 1.4;
}

.gu-qb-pill-btn:hover {
    background: #fdf8f2;
    border-color: var(--gu-qb-primary);
    color: var(--gu-qb-primary);
}

.gu-qb-pill-btn.active {
    background: var(--gu-qb-primary);
    color: #ffffff !important;
    border-color: var(--gu-qb-primary);
    font-weight: 600;
}

.gu-qb-reset-filter-link {
    color: var(--gu-qb-primary);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none !important;
    margin-left: 6px;
    cursor: pointer;
}

.gu-qb-reset-filter-link:hover {
    text-decoration: underline !important;
}

/* Grid layout 3 cột */
.gu-qb-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

@media (max-width: 992px) {
    .gu-qb-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }
}

@media (max-width: 576px) {
    .gu-qb-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }
    .gu-qb-container {
        padding: 16px 12px;
    }
}

/* ==========================================================================
   2. CARD SẢN PHẨM (PRODUCT CARD)
   ========================================================================== */
.gu-qb-card {
    background: #ffffff;
    border: 1px solid #edccb0;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    display: flex;
    flex-direction: column;
    font-family: Arial, sans-serif;
    position: relative;
    box-sizing: border-box;
}

.gu-qb-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(139, 24, 27, 0.12);
    border-color: #d89f66;
}

.gu-qb-img-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    width: 100%;
    flex: none;
    display: block;
    background: #fdfaf6;
    cursor: zoom-in;
}

.gu-qb-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.gu-qb-card:hover .gu-qb-img-wrap img {
    transform: scale(1.03);
}

.gu-qb-title-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.45) 50%, transparent 100%);
    padding: 44px 16px 14px;
    color: #ffffff;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 0 1px 3px rgba(0,0,0,0.85);
    pointer-events: none;
}

.gu-qb-title-overlay span {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    overflow-wrap: anywhere;
}

.gu-qb-code-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin: 16px 16px 12px;
    padding: 12px;
    background: #f9dd9d;
    border: 1px solid #f1cf85;
    border-radius: 15px;
    font-size: 15px;
}

.gu-qb-code-txt {
    color: #342615;
    font-weight: 700;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gu-qb-items-pill-btn {
    background: var(--gu-qb-primary);
    color: #ffffff !important;
    flex: none;
    padding: 4px 12px;
    border-radius: 14px;
    font: 700 14px/1.35 Arial, sans-serif;
    cursor: pointer;
    border: none;
    transition: opacity 0.2s;
    white-space: nowrap;
}

.gu-qb-items-pill-btn:hover {
    opacity: 0.9;
}

.gu-qb-price-box {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    margin: 0 16px 12px;
    padding: 10px 13px;
    background: #fcf6e9;
    border: 1px solid #f3c877;
    border-radius: 12px;
}

.gu-qb-price-row-main {
    margin-bottom: 8px;
}

.gu-qb-price-val {
    font-size: clamp(22px, 2.4vw, 28px);
    font-weight: 700;
    color: var(--gu-qb-primary);
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.gu-qb-price-val u,
.gu-qb-old-price u {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.gu-qb-old-price {
    font-size: 16px;
    color: #6e5a43;
    text-decoration: line-through;
}

.gu-qb-discount-badge {
    background: #88621e;
    color: #ffffff;
    padding: 2px 8px;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.gu-qb-vat-note {
    font-size: 13px;
    color: #805e39;
    margin-top: 2px;
}

.gu-qb-actions-row {
    display: flex;
    gap: 8px;
    margin-top: auto;
    padding: 0 16px 17px;
}

.gu-qb-btn-quickview {
    flex: 1 1 0;
    min-width: 0;
    box-sizing: border-box;
    padding: 4px;
    background: var(--gu-qb-primary);
    color: #ffffff !important;
    border: 1px solid var(--gu-qb-primary);
    border-radius: 8px;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font: 700 16px/1.2 Arial, sans-serif;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.gu-qb-btn-quickview:hover {
    background: var(--gu-qb-primary-dark);
}

.gu-qb-btn-quote {
    flex: 1 1 0;
    min-width: 0;
    box-sizing: border-box;
    padding: 4px;
    background: #ffffff;
    color: var(--gu-qb-primary) !important;
    border: 1.5px solid var(--gu-qb-primary);
    border-radius: 8px;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font: 700 16px/1.2 Arial, sans-serif;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.gu-qb-btn-quote:hover {
    background: #fdf5e6;
}

/* ==========================================================================
   3. DETAIL MODAL 2 CỘT CHUẨN PHỐ SÂM (.pscd-qv .psiq)
   ========================================================================== */
.pscd-qv {
    position: fixed;
    inset: 0;
    z-index: 2147483600;
    background: rgba(35, 12, 6, 0.62);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 28px;
    box-sizing: border-box;
}

.pscd-qv.on {
    display: flex;
    animation: qvF .2s ease;
}

@keyframes qvF {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes qvU {
    from { transform: translateY(18px); opacity: 0.6; }
    to { transform: none; opacity: 1; }
}

.pscd-qv * {
    box-sizing: border-box;
}

.qv-bx {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    width: min(1120px, 100%);
    max-height: calc(100vh - 56px);
    background: linear-gradient(180deg, #fffaf1 0%, #fbf0da 100%) !important;
    border-top: 4px solid #96181e;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
    font-family: inherit;
    color: #3a2a1a;
    animation: qvU .25s ease;
}

.qv-hdl {
    display: none;
}

.qv-x {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 3;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid #f0cf87;
    background: #ffffff;
    color: #96181e;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    margin: 0;
    padding: 0;
    transition: transform .15s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qv-x:hover {
    transform: rotate(90deg);
}

/* Cột trái: Gallery ảnh lớn + thumbs */
.qv-l {
    background: linear-gradient(160deg, #fbf1dd, #f3e2c2);
    display: flex;
    flex-direction: column;
    padding: 22px;
    gap: 14px;
    min-height: 0;
}

.qv-im {
    position: relative;
    flex: 1 1 auto;
    border-radius: 14px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(122, 16, 16, 0.12);
    cursor: zoom-in;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qv-im img {
    width: 100%;
    height: 100%;
    max-height: calc(100vh - 210px);
    object-fit: contain;
    display: block;
    transition: transform .4s;
}

.qv-im:hover img {
    transform: scale(1.03);
}

.qv-zm {
    position: absolute;
    right: 12px;
    bottom: 12px;
    background: rgba(255, 255, 255, 0.92);
    color: #7a1010;
    font-size: 12.5px;
    font-weight: 700;
    padding: 6px 11px;
    border-radius: 999px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    user-select: none;
}

.qv-th {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.qv-th:empty {
    display: none;
}

.qv-th img {
    width: 62px;
    height: 62px;
    object-fit: cover;
    border-radius: 10px;
    border: 2px solid #ffffff;
    opacity: 0.65;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: all .15s;
}

.qv-th img:hover {
    opacity: 1;
}

.qv-th img.on {
    border-color: #96181e;
    opacity: 1;
    transform: translateY(-2px);
}

/* Cột phải: Thông tin, danh sách quà & CTA */
.qv-r {
    display: flex;
    flex-direction: column;
    padding: 30px 30px 22px;
    overflow-y: auto;
    min-height: 0;
    background: transparent;
}

.qv-top {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 10px;
    padding-right: 44px;
}

.qv-tag, .qv-code {
    display: inline-flex;
    align-items: center;
    font-size: 12.5px;
    font-weight: 700;
    border-radius: 999px;
    padding: 4px 12px;
}

.qv-tag {
    background: #96181e;
    color: #ffffff;
}

.qv-code {
    background: #fdecc4;
    color: #8a6420;
}

.qv-code:empty {
    display: none;
}

.qv-nm {
    margin: 0 0 16px !important;
    font-size: 25px !important;
    line-height: 1.3 !important;
    font-weight: 800 !important;
    color: #7a1414 !important;
    text-transform: none !important;
    padding: 0 0 14px !important;
    border: 0 !important;
    border-bottom: 2px solid #f6e3bd !important;
    background: none !important;
    letter-spacing: -0.2px;
}

.qv-box {
    background: #ffffff;
    border: 1px solid #f0cf87;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 16px;
    flex: 0 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.qv-tl {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 16px;
    background: #fadd9d;
    color: #3a2a1a;
    font-size: 15px;
}

.qv-tl b {
    font-weight: 800;
}

.qv-tl span {
    font-size: 12.5px;
    font-weight: 700;
    color: #8a6420;
    background: #fff3d6;
    border-radius: 999px;
    padding: 2px 10px;
}

.qv-it {
    list-style: none;
    margin: 0 !important;
    padding: 4px 0 !important;
    overflow-y: auto;
    max-height: 300px;
}

.qv-it li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 16px !important;
    border-bottom: 1px dashed #f3e2c2;
    font-size: 15px;
    line-height: 1.35;
    list-style: none !important;
    margin: 0 !important;
}

.qv-it li:last-child {
    border-bottom: 0;
}

.qv-it li i {
    flex: 0 0 26px;
    height: 26px;
    border-radius: 50%;
    background: #96181e;
    color: #ffffff;
    font-style: normal;
    font-size: 12.5px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(150, 24, 30, 0.3);
}

.qv-it li span {
    flex: 1 1 auto;
    font-weight: 500;
}

.qv-it li b {
    flex: 0 0 auto;
    background: #fdecc4;
    color: #8a6420;
    font-size: 13px;
    font-weight: 700;
    border-radius: 6px;
    padding: 3px 9px;
}

.qv-it::-webkit-scrollbar {
    width: 6px;
}

.qv-it::-webkit-scrollbar-thumb {
    background: #e6c98f;
    border-radius: 3px;
}

/* Khối Giá chuẩn phosam */
.qv-pr {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 12px;
    background: #ffffff !important;
    border: 1px solid #f0cf87;
    border-radius: 14px;
    padding: 14px 18px;
    margin-bottom: 16px;
}

.qv-pr b {
    font-size: 32px;
    font-weight: 800;
    color: #96181e;
    letter-spacing: -0.5px;
    line-height: 1.1;
}

.qv-pr s {
    font-size: 16px;
    color: #6b5a48;
    text-decoration: line-through;
}

.qv-pr em {
    font-style: normal;
    margin-left: auto;
    background: #8a6420;
    color: #ffffff;
    font-size: 13.5px;
    font-weight: 700;
    border-radius: 8px;
    padding: 5px 11px;
}

.qv-pr small {
    flex: 1 1 100%;
    font-size: 13px;
    color: #8a6d4b;
    margin-top: 4px;
}

/* 2 Nút CTA Zalo & Gọi Hotline */
.qv-cta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 14px;
}

.qv-cta a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 54px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 800;
    text-decoration: none !important;
    line-height: 1.2;
    padding: 0 10px;
    transition: transform .15s, box-shadow .15s;
}

.qv-cta a:hover {
    transform: translateY(-2px);
}

.qv-cta a em {
    font-style: normal;
}

.qv-cta a .m {
    display: none;
}

.qv-zl {
    background: #0068ff;
    color: #ffffff !important;
    box-shadow: 0 6px 16px rgba(0, 104, 255, 0.3);
}

.qv-tel {
    background: linear-gradient(180deg, #b3262a, #96181e);
    color: #ffffff !important;
    box-shadow: 0 6px 16px rgba(150, 24, 30, 0.3);
}

/* Cam kết tin cậy */
.qv-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    list-style: none;
    margin: 0 0 12px !important;
    padding: 0 !important;
    justify-content: center;
}

.qv-trust li {
    position: relative;
    padding-left: 20px !important;
    font-size: 13px;
    color: #6b5a48;
    list-style: none !important;
    margin: 0 !important;
}

.qv-trust li:before {
    content: "✓";
    position: absolute;
    left: 0;
    top: -1px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #2e7d32;
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qv-lk {
    display: block;
    text-align: center;
    font-size: 13.5px;
    font-weight: 600;
    color: #8a6420 !important;
    text-decoration: none !important;
    margin-top: auto;
}

.qv-lk:hover {
    text-decoration: underline !important;
}

/* ==========================================================================
   4. LIGHTBOX XEM ẢNH FULLSCREEN CHUẨN PHỐ SÂM (.pscd-lb)
   ========================================================================== */
.pscd-lb {
    position: fixed;
    inset: 0;
    z-index: 2147483647;
    background: rgba(20, 4, 4, 0.92);
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 16px;
    box-sizing: border-box;
}

.pscd-lb.on,
.pscd-lb.active {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    animation: qvF .2s ease;
}

.pscd-lb img {
    max-width: min(92vw, 800px);
    max-height: 78vh;
    border-radius: 10px;
    background: #ffffff;
    object-fit: contain;
}

.pscd-lb .c {
    color: #ffe9bf;
    font-size: 14px;
    font-weight: 700;
    margin-top: 10px;
    text-align: center;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.pscd-lb .t {
    display: flex;
    gap: 6px;
    margin-top: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.pscd-lb .t img {
    width: 54px;
    height: 54px;
    object-fit: cover;
    border-radius: 6px;
    opacity: 0.55;
    cursor: pointer;
    border: 2px solid transparent;
    transition: opacity .15s, border-color .15s;
}

.pscd-lb .t img.on,
.pscd-lb .t img.active {
    opacity: 1;
    border-color: #f3d9a6;
}

.gu-qb-btn-quickview,
.gu-qb-btn-quote {
    white-space: nowrap;
}

.gu-qb-btn-quickview .gu-qb-img-cnt {
    font-size: 11.5px;
    font-weight: 500;
    opacity: 0.88;
    margin-left: 2px;
}

.pscd-lb button {
    position: absolute;
    border: 0;
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    font-size: 22px;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s;
}

.pscd-lb button:hover {
    background: rgba(255, 255, 255, 0.35);
}

.pscd-lb .x {
    top: 12px;
    right: 12px;
}

.pscd-lb .p {
    left: 12px;
    top: 45%;
}

.pscd-lb .n {
    right: 12px;
    top: 45%;
}

/* ==========================================================================
   5. RESPONSIVE CHO MOBILE & TABLET (CHUẨN PHỐ SÂM)
   ========================================================================== */
@media (max-width: 767px) {
    .pscd-qv {
        padding: 0;
        align-items: flex-end;
    }

    .qv-bx {
        grid-template-columns: 1fr;
        max-height: 94vh;
        border-radius: 22px 22px 0 0;
        border-top: 0;
        overflow-y: auto;
        animation: qvU .25s ease;
    }

    .qv-hdl {
        display: block;
        position: sticky;
        top: 0;
        z-index: 4;
        height: 22px;
        margin-bottom: -22px;
        background: transparent;
    }

    .qv-hdl:before {
        content: "";
        position: absolute;
        left: 50%;
        top: 8px;
        width: 44px;
        height: 5px;
        margin-left: -22px;
        border-radius: 3px;
        background: #d8b98a;
    }

    .qv-x {
        position: fixed;
        top: auto;
        right: 12px;
        margin-top: 12px;
        width: 38px;
        height: 38px;
    }

    .qv-l {
        padding: 14px 14px 10px;
        gap: 10px;
        background: linear-gradient(180deg, #f8e9cb, #fbf1de);
    }

    .qv-im img {
        max-height: 40vh;
    }

    .qv-th img {
        width: 52px;
        height: 52px;
    }

    .qv-r {
        padding: 16px 16px 0;
        overflow: visible;
    }

    .qv-nm {
        font-size: 20px !important;
        margin-bottom: 12px !important;
        padding-bottom: 10px !important;
    }

    .qv-it {
        max-height: none;
    }

    .qv-it li {
        font-size: 14.5px;
        padding: 8px 12px !important;
    }

    .qv-pr b {
        font-size: 26px;
    }

    .qv-cta {
        position: sticky;
        bottom: 0;
        z-index: 2;
        background: #fbf0da !important;
        margin: 0 -16px 10px !important;
        padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
        box-shadow: 0 -6px 14px rgba(122, 60, 20, 0.12);
    }

    .qv-cta a {
        height: 50px;
        font-size: 15px;
        white-space: nowrap;
        gap: 6px;
        padding: 0 6px;
    }

    .qv-cta a .d {
        display: none;
    }

    .qv-cta a .m {
        display: inline;
    }

    .qv-trust {
        justify-content: flex-start;
    }

    .qv-lk {
        margin-bottom: 16px;
    }

    .pscd-lb .p, .pscd-lb .n {
        display: none;
    }
}

/* ==========================================================================
   NÚT XEM THÊM X MẪU (Y CÒN LẠI) CHUẨN 100% PHỐ SÂM (HÌNH 2)
   ========================================================================== */
.gu-qb-loadmore-wrap {
    text-align: center;
    margin: 35px auto 25px;
    clear: both;
    width: 100%;
    display: block;
}

.gu-qb-btn-loadmore {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1px solid #8c202a;
    color: #8c202a;
    font-size: 14.5px;
    font-weight: 500;
    line-height: 1.4;
    padding: 9px 32px;
    border-radius: 24px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.22s ease-in-out;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    outline: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.gu-qb-btn-loadmore:hover {
    background: #8c202a;
    color: #ffffff;
    border-color: #8c202a;
    box-shadow: 0 4px 14px rgba(140, 32, 42, 0.22);
    transform: translateY(-1px);
}

.gu-qb-btn-loadmore:active {
    transform: translateY(1px);
    box-shadow: 0 1px 4px rgba(140, 32, 42, 0.15);
}

@keyframes guQbFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
