/* GIOHANG theme pack — gộp file, cùng thứ tự rule. Nguồn gốc giữ nguyên để rollback. */

/* ==== inter.css ==== */
/**
 * Inter — self-hosted variable only (giảm FOUT / số request font khi F5).
 * LICENSE: see ../vendor/fonts/inter/LICENSE.txt
 */

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('/Public/SHOP/P2/style/vendor/fonts/inter/InterVariable.woff2') format('woff2');
}

@font-face {
    font-family: 'Inter';
    font-style: italic;
    font-weight: 100 900;
    font-display: optional;
    src: url('/Public/SHOP/P2/style/vendor/fonts/inter/InterVariable-Italic.woff2') format('woff2');
}


/* ==== ola-fa-tune.css ==== */
@font-face {
    font-family: "Font Awesome 6 Free";
    font-style: normal;
    font-weight: 900;
    font-display: swap;
    src: url("/Public/SHOP/P2/style/vendor/font-awesome/6.4.0/webfonts/fa-solid-900.woff2") format("woff2");
}
@font-face {
    font-family: "Font Awesome 6 Free";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("/Public/SHOP/P2/style/vendor/font-awesome/6.4.0/webfonts/fa-regular-400.woff2") format("woff2");
}
@font-face {
    font-family: "Font Awesome 6 Brands";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("/Public/SHOP/P2/style/vendor/font-awesome/6.4.0/webfonts/fa-brands-400.woff2") format("woff2");
}

/* ==== giohang.css ==== */
/* GIOHANG — Material Design 3 / Gemini. Seed primary #0B57D0
   Surface: #f0f4f9. Header/card: surface-container-lowest.
   Footer: surface-container-high. Cột footer: surface-container-low. */

:root {
    --md-sys-primary: #0b57d0;
    --md-sys-on-primary: #ffffff;
    --md-sys-primary-container: #d3e3fd;
    --md-sys-on-primary-container: #041e49;
    --md-sys-secondary: #555f71;
    --md-sys-on-secondary: #ffffff;
    --md-sys-secondary-container: #d9e3f8;
    --md-sys-on-secondary-container: #121c2b;
    --md-sys-surface: #f0f4f9;
    --md-sys-surface-dim: #d8dae0;
    --md-sys-surface-bright: #f7f9ff;
    --md-sys-surface-container-lowest: #ffffff;
    --md-sys-surface-container-low: #f2f4fa;
    --md-sys-surface-container: #eceef4;
    --md-sys-surface-container-high: #e6e8ee;
    --md-sys-surface-container-highest: #e0e3e9;
    --md-sys-on-surface: #1a1c1e;
    --md-sys-on-surface-variant: #44474e;
    --md-sys-outline: #c4c7cf;
    --md-sys-outline-variant: #c4c7cf;
    --md-sys-error: #b3261e;
    --md-sys-success: #146c2e;
    --md-sys-primary-hover: #0842a0;
    --gemini-bg: #f0f4f9;
    --gemini-active-bg: #c2e7ff;
    --gemini-active-bg-soft: #d3e3fd;
    --gemini-hover: #e3e7ec;
    --md-radius: 12px;
    --md-radius-lg: 16px;
    --md-elev-1: 0 1px 2px rgba(0, 0, 0, 0.08), 0 1px 3px 1px rgba(0, 0, 0, 0.04);
    --md-elev-2: 0 2px 6px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    --bs-primary: #0b57d0;
    --bs-primary-rgb: 11, 87, 208;
    --bs-link-color: #0b57d0;
    --bs-link-hover-color: var(--md-sys-primary-hover);
    --gh-header-h: 64px;
    --gh-gutter: 30px;
    --gh-max: 1280px;
    --gh-action: 40px;
}

body.gh-body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--md-sys-surface);
    color: var(--md-sys-on-surface);
    font-family: "Inter", "Segoe UI", system-ui, sans-serif;
    font-optical-sizing: auto;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body.gh-body > form {
    display: flex;
    flex-direction: column;
    flex: 1 0 auto;
    min-height: 100vh;
}

/* Cùng lề header / nội dung / footer — không chồng gutter Bootstrap */
body.gh-body .container.gh-page,
.gh-page {
    /* Khung chuẩn: nền header/footer vẫn tràn màn hình, nhưng nội dung bên trong dừng ở bề rộng này và căn giữa
       → màn hình rộng không còn bị kéo giãn hết cỡ, header / nội dung / footer luôn thẳng hàng. */
    max-width: calc(var(--gh-max) + 2 * var(--gh-gutter)) !important;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: max(var(--gh-gutter), env(safe-area-inset-left, 0px));
    padding-right: max(var(--gh-gutter), env(safe-area-inset-right, 0px));
    box-sizing: border-box;
}

@media (max-width: 991.98px) {
    :root {
        --gh-gutter: 20px;
        --gh-header-h: 60px;
    }
}

@media (max-width: 575.98px) {
    :root {
        --gh-gutter: 15px;
        --gh-header-h: 56px;
    }
}

/* —— Header —— */
.gh-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: linear-gradient( 58deg, rgb(213 217 240 / 53%) 0%, rgb(254 253 253) 25%, rgb(234 234 255) 58%, rgb(250 251 251) 92%, rgb(242 240 227) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--md-sys-outline-variant);
    /*box-shadow: var(--md-elev-1);*/
    padding-top: env(safe-area-inset-top, 0px);
}

.gh-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    height: var(--gh-header-h);
    min-height: var(--gh-header-h);
    padding: 0;
}

.gh-brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    text-decoration: none;
    color: #686262;
    flex: 0 0 auto;
    max-width: none;
}

.gh-brand:hover,
.gh-brand:focus {
    color: #686262;
    text-decoration: none;
}

.gh-brand__logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    font-size: 50px;
    line-height: 1;
    color: #686262;
    flex-shrink: 0;
}

.gh-brand__text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    line-height: 1.2;
    color: #686262;
}

.gh-brand__name {
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.02em;
    color: #686262;
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
}

.gh-brand__sub {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin-top: 0.12rem;
    font-size: 0.78rem;
    font-weight: 500;
    color: #686262;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gh-brand__sub i {
    font-size: 0.85em;
    color: #686262;
}

/* Khách đã login — cùng kích thước CSS với .gh-brand (avatar 40px, tên 1rem, SĐT 0.75rem) */
.gh-user-card {
    margin: 0 0 1rem;
    padding: 0.75rem 0.85rem;
    border: 1px solid var(--md-sys-outline-variant);
    border-radius: 12px;
    background: var(--md-sys-surface-container-low);
}

.gh-user-card__row {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
}

.gh-user-card__avatar {
    width: 40px;
    height: 40px;
    object-fit: cover;
    object-position: center;
    border-radius: 50px;
    background: var(--md-sys-primary-container, #e8eef8);
    flex-shrink: 0;
    display: block;
}

.gh-user-card__text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.2;
}

.gh-user-card__name {
    font-weight: 700;
    font-size: 1rem;
    color: inherit;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 280px;
}

.gh-user-card__phone {
    font-size: 0.75rem;
    color: var(--md-sys-on-surface-variant, #64748b);
}

.gh-user-card__hint {
    margin: 0.45rem 0 0;
    padding: 0;
    font-size: 0.75rem;
    color: var(--md-sys-on-surface-variant, #64748b);
    line-height: 1.35;
}

.gh-header__meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1 1 auto;
    justify-content: center;
}

.gh-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: var(--md-sys-primary-container);
    color: var(--md-sys-on-primary-container);
    text-decoration: none;
    font-size: 0.8125rem;
    font-weight: 600;
    max-width: 240px;
}

.gh-chip span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gh-chip:hover {
    filter: brightness(0.97);
    color: var(--md-sys-on-primary-container);
}

.gh-search {
    position: relative;
    flex: 1 1 42%;
    min-width: 0;
    max-width: 720px;
    margin: 0 16px;
}

.gh-search__box {
    display: flex;
    align-items: center;
    height: 44px;
    border: 1px solid var(--md-sys-outline-variant);
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
    box-sizing: border-box;
}

.gh-search__box:hover,
.gh-search__box:focus-within {
    border-color: var(--md-sys-primary);
    background: #fff;
    box-shadow: 0 0 0 3px var(--gemini-active-bg-soft);
}

.gh-search__go {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    color: #9aa0a6;
    font-size: 1rem;
    cursor: pointer;
    flex-shrink: 0;
}

.gh-search__go:hover,
.gh-search__box:focus-within .gh-search__go {
    color: var(--md-sys-primary);
}

.gh-search__input {
    flex: 1 1 auto;
    min-width: 0;
    height: 100%;
    padding: 0 8px 0 0;
    border: 0;
    background: transparent;
    outline: none;
    font-size: 0.9375rem;
    color: var(--md-sys-on-surface);
}

.gh-search__input::placeholder {
    color: #9aa0a6;
    font-weight: 400;
}

.gh-search__clear {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    color: #9aa0a6;
    cursor: pointer;
    flex-shrink: 0;
}

.gh-search__box.has-text .gh-search__clear {
    display: flex;
}

.gh-search__clear:hover {
    color: var(--md-sys-on-surface);
}

.gh-search__panel {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 1040;
    width: 100%;
    min-width: 0;
    max-height: 68vh;
    overflow-y: auto;
    background: var(--md-sys-surface-container-lowest);
    border: 1px solid var(--md-sys-outline-variant);
    border-radius: 14px;
    box-shadow: var(--md-elev-2);
}

.gh-search__panel.is-shown {
    display: block;
}

.gh-ts-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px 8px 12px;
    border-bottom: 1px solid var(--md-sys-outline-variant);
}

.gh-ts-item:last-of-type {
    border-bottom: 0;
}

.gh-ts-item:hover,
.gh-ts-item.is-active {
    background: var(--md-sys-primary-container);
}

.gh-ts-item.is-in-cart {
    opacity: 0.55;
}

.gh-ts-item.is-in-cart:hover,
.gh-ts-item.is-in-cart.is-active {
    opacity: 0.72;
}

.gh-ts-item__tag {
    display: inline-block;
    margin-top: 2px;
    margin-left: 8px;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--md-sys-success);
}

.gh-ts-item__link {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1 1 auto;
    color: inherit;
    text-decoration: none;
}

.gh-ts-item__img {
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    object-fit: cover;
    background: var(--md-sys-surface-container-low);
    border: 1px solid var(--md-sys-outline-variant);
    border-radius: 8px;
}

.gh-ts-item__body {
    min-width: 0;
    flex: 1 1 auto;
}

.gh-ts-item__name {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--md-sys-on-surface);
}

.gh-ts-item__price {
    margin-top: 3px;
    color: var(--md-sys-error);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0;
    white-space: nowrap;
}

.gh-ts-item__price del {
    margin-left: 6px;
    color: var(--md-sys-on-surface-variant);
    font-size: 0.75rem;
    font-weight: 400;
}

.gh-ts-add {
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: var(--md-sys-primary);
    color: var(--md-sys-on-primary);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    text-decoration: none;
}

.gh-ts-add:hover {
    background: var(--md-sys-primary-hover);
}

.gh-ts-add:disabled,
.gh-ts-add.is-busy {
    opacity: 0.55;
    pointer-events: none;
}

.gh-ts-add.is-added {
    background: var(--md-sys-success);
    opacity: 1;
}

.gh-ts-all {
    display: block;
    position: sticky;
    bottom: 0;
    padding: 10px 13px;
    border-top: 1px solid var(--md-sys-outline-variant);
    background: var(--md-sys-surface-container-low);
    color: var(--md-sys-primary);
    font-size: 0.8125rem;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
}

.gh-ts-all:hover {
    background: var(--md-sys-primary-container);
    color: var(--md-sys-on-primary-container);
}

.gh-ts-empty,
.gh-ts-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 20px 13px;
    color: var(--md-sys-on-surface-variant);
    font-size: 0.8125rem;
}

.gh-header__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 0;
    flex: 0 0 auto;
}

.gh-add-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--gh-action);
    height: var(--gh-action);
    padding: 0;
    border: 1px solid transparent;
    border-radius: 50%;
    background: var(--md-sys-primary-container);
    color: var(--md-sys-primary);
    font-size: 1rem;
    line-height: 1;
    flex-shrink: 0;
    cursor: pointer;
}

.gh-add-btn:hover,
.gh-add-btn:focus-visible {
    background: #c2d7fb;
    color: var(--md-sys-primary-hover);
    filter: none;
}

.gh-link-home {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    height: var(--gh-action);
    padding: 0 0.9rem;
    border-radius: 12px;
    border: 1px solid var(--md-sys-outline);
    color: #1971ca;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
    box-sizing: border-box;
    background: #fff;
    font-family: inherit;
    cursor: pointer;
}

.gh-link-home:hover,
.gh-link-home:focus-visible {
    background: var(--md-sys-primary-container);
    border-color: transparent;
    color: var(--md-sys-on-primary-container);
}

.gh-cart-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--gh-action);
    height: var(--gh-action);
    border-radius: 50%;
    background: #3873d2;
    color: var(--md-sys-on-primary);
    text-decoration: none;
    flex-shrink: 0;
}

.gh-cart-btn:hover {
    color: #fff;
    filter: brightness(1.06);
}

.gh-cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 0.3rem;
    border-radius: 999px;
    background: var(--md-sys-error);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
}

/* —— Main —— */
.gh-main {
    flex: 1 0 auto;
    padding: 1.25rem 0 2rem;
}

.bg-white-box {
    background: var(--md-sys-surface-container-lowest);
    border: 1px solid var(--md-sys-outline-variant);
    border-radius: var(--md-radius-lg);
   /* box-shadow: var(--md-elev-1);*/
    padding: 1.25rem 1.35rem;
    margin-bottom: 1rem;
}

.gh-box-title-accent {
    color: var(--md-sys-primary) !important;
}

/* Giỏ rỗng — icon SVG + câu chữ kiểu catalog */
.gh-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 420px;
    padding: 3.25rem 1.75rem;
}
.gh-empty__inner {
    text-align: center;
    max-width: 560px;
    margin: 0 auto;
}
.gh-empty__icon {
    display: block;
    width: 104px;
    height: 104px;
    margin: 0 auto 1.35rem;
}
.gh-empty__title {
    margin: 0 0 0.45rem;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--md-sys-on-surface);
    line-height: 1.35;
}
.gh-empty__desc {
    margin: 0 0 1.6rem;
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--md-sys-on-surface-variant);
    line-height: 1.55;
    white-space: nowrap;
}
.gh-empty__actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}
.gh-empty__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-width: 168px;
    padding: 0.7rem 1.7rem;
    border: none;
    border-radius: 10px;
    background: var(--md-sys-primary);
    color: #fff !important;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    box-shadow: none;
}
.gh-empty__cta:hover,
.gh-empty__cta:focus {
    background: #0842a0;
    color: #fff !important;
}
.gh-empty__add {
    width: 46px;
    height: 46px;
    font-size: 1.1rem;
}
.gh-empty__hint {
    margin: 0.85rem 0 0;
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--md-sys-on-surface-variant);
    line-height: 1.5;
    white-space: nowrap;
}

/* Cart rows */
.cart-item {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    padding: 0.95rem 0;
    margin: 0;
    border-bottom: 1px solid var(--md-sys-outline-variant);
    transition: opacity 0.15s ease;
}

.cart-item.is-busy {
    opacity: 0.55;
    pointer-events: none;
}

.cart-item:last-of-type {
    border-bottom: none;
    padding-bottom: 0.25rem;
}

.gh-qty-btn {
    border: 0 !important;
    border-radius: 0 !important;
    color: var(--md-sys-on-surface-variant) !important;
    background: var(--md-sys-surface-container-low) !important;
    box-shadow: none !important;
}

.gh-qty-btn:hover,
.gh-qty-btn:focus {
    background: var(--md-sys-primary-container) !important;
    color: var(--md-sys-on-surface) !important;
}

.gh-qty-btn:disabled {
    opacity: 0.55;
}

.cart-thumb {
    width: 100px;
    height: 100px;
    border: 1px solid var(--md-sys-outline-variant);
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--md-sys-surface);
}

.gh-item-body {
    flex: 1 1 auto;
    min-width: 0;
}

.gh-item-name {
    display: block;
    color: var(--md-sys-on-surface);
    font-weight: 700;
    text-decoration: none;
    line-height: 1.35;
    word-break: break-word;
}

.gh-item-name:hover {
    color: var(--md-sys-primary);
}

.gh-item-meta {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0;
    margin-top: 0.28rem;
    line-height: 1.35;
}

.gh-item-variant {
    display: inline-flex;
    flex-direction: row;
    align-items: baseline;
    flex-wrap: wrap;
    margin-top: 0;
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--md-sys-on-surface-variant, #5f6368);
}

.gh-item-price + .gh-item-variant::before,
.gh-item-opt + .gh-item-opt::before {
    content: "/";
    display: inline-block;
    margin: 0 0.4rem;
    color: #94a3b8;
    font-weight: 500;
}

.gh-item-price {
    color: var(--md-sys-error);
    font-weight: 700;
    margin-top: 0;
    flex-shrink: 0;
}

.gh-item-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.65rem;
}

.gh-qty {
    width: 118px;
    flex-shrink: 0;
    border: 1px solid var(--md-sys-outline-variant);
    border-radius: 8px;
    overflow: hidden;
}

.gh-qty .form-control {
    border: 0 !important;
    border-left: 1px solid var(--md-sys-outline-variant) !important;
    border-right: 1px solid var(--md-sys-outline-variant) !important;
    border-radius: 0 !important;
    font-weight: 700;
    box-shadow: none !important;
    background: var(--md-sys-surface-container-lowest);
}

.gh-item-remove {
    margin-left: auto;
    color: var(--md-sys-error) !important;
    text-decoration: none;
}

.gh-add-more {
    margin-top: .75rem;
    padding-top: .75rem;
    border-top: 1px dashed var(--md-sys-outline-variant);
    text-align: left;
}

.gh-addmore-btn {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    padding: .45rem 1.2rem .45rem .5rem;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #fb923c 0%, #f97316 45%, #ef4444 100%);
    color: #fff;
    font-weight: 800;
    font-size: .88rem;
    letter-spacing: .01em;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(249, 115, 22, .3);
    animation: ghAmPulse 2.8s ease-out infinite;
    transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
}
/* vệt sáng lướt ngang */
.gh-addmore-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -60%;
    z-index: -1;
    width: 40%;
    height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent);
    transform: skewX(-20deg);
    animation: ghAmShine 4.2s ease-in-out 1s infinite;
}
.gh-addmore-btn i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, .95);
    color: #ea580c;
    font-size: .75rem;
    animation: ghAmIcon 2.8s ease-in-out infinite;
    transition: transform .3s ease;
}
.gh-addmore-btn:hover,
.gh-addmore-btn:focus-visible {
    transform: translateY(-2px);
    filter: saturate(1.1) brightness(1.03);
    box-shadow: 0 10px 24px rgba(239, 68, 68, .35);
    animation-play-state: paused;
    outline: 0;
}
.gh-addmore-btn:hover i,
.gh-addmore-btn:focus-visible i { animation: none; transform: scale(1.12) rotate(-8deg) }
.gh-addmore-btn:active { transform: translateY(0) scale(.97); box-shadow: 0 3px 8px rgba(249, 115, 22, .3) }
@keyframes ghAmPulse {
    0%   { box-shadow: 0 6px 16px rgba(249, 115, 22, .32), 0 0 0 0 rgba(249, 115, 22, .4) }
    70%  { box-shadow: 0 6px 16px rgba(249, 115, 22, .32), 0 0 0 12px rgba(249, 115, 22, 0) }
    100% { box-shadow: 0 6px 16px rgba(249, 115, 22, .32), 0 0 0 0 rgba(249, 115, 22, 0) }
}
@keyframes ghAmShine { 0%, 60% { left: -60% } 100% { left: 130% } }
@keyframes ghAmIcon { 0%, 100% { transform: translateY(0) } 50% { transform: translateY(-2px) rotate(-6deg) } }
@media (prefers-reduced-motion: reduce) {
    .gh-addmore-btn, .gh-addmore-btn::before, .gh-addmore-btn i { animation: none; transition: none }
}

/* Forms */
.gh-form .form-label {
    display: block;
    width: 100%;
    margin-bottom: 0.35rem;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--md-sys-on-surface-variant);
}

.gh-form .form-control,
.gh-form .form-select,
.bg-white-box .form-control,
.bg-white-box .form-select {
    border-color: var(--md-sys-outline-variant);
    background-color: var(--md-sys-surface-container-lowest);
    border-radius: 10px;
    min-height: 2.5rem;
    color: var(--md-sys-on-surface);
}

.gh-form .form-control:focus,
.gh-form .form-select:focus,
.bg-white-box .form-control:focus,
.bg-white-box .form-select:focus {
    border-color: var(--md-sys-primary);
    box-shadow: 0 0 0 0.2rem rgba(11, 87, 208, 0.18);
}

.total-price {
    color: var(--md-sys-error);
    font-size: 1.5rem;
    font-weight: 700;
}

.ios-pay-group {
    display: flex;
    background: var(--md-sys-surface-container);
    border-radius: 12px;
    padding: 4px;
    gap: 4px;
}

.ios-pay-item {
    flex: 1;
    position: relative;
}

.ios-pay-item input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.ios-pay-item label {
    display: block;
    text-align: center;
    padding: 12px 5px;
    margin: 0;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--md-sys-secondary);
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.ios-pay-item input[type="radio"]:checked + label {
    background: var(--md-sys-surface-container-lowest);
    color: var(--md-sys-primary);
    box-shadow: var(--md-elev-1);
}

.switch {
    position: relative;
    display: inline-block;
    width: 42px;
    height: 24px;
    flex-shrink: 0;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: #c4c7c5;
    transition: 0.3s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background: #fff;
    transition: 0.3s;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

input:checked + .slider {
    background: var(--md-sys-success);
}

input:checked + .slider:before {
    transform: translateX(18px);
}

.btn-primary,
.btn-gh-order {
    --bs-btn-bg: var(--md-sys-primary);
    --bs-btn-border-color: var(--md-sys-primary);
    --bs-btn-hover-bg: #0842a0;
    --bs-btn-hover-border-color: #0842a0;
    --bs-btn-active-bg: #0842a0;
    --bs-btn-active-border-color: #0842a0;
}

.btn-gh-order {
    background: var(--md-sys-primary);
    border-color: var(--md-sys-primary);
    color: #fff;
    border-radius: 999px;
}

.btn-gh-order:hover,
.btn-gh-order:focus {
    background: var(--md-sys-primary-hover);
    border-color: var(--md-sys-primary-hover);
    color: #fff;
}

.btn-outline-primary {
    --bs-btn-color: var(--md-sys-primary);
    --bs-btn-border-color: var(--md-sys-primary);
    --bs-btn-hover-bg: var(--md-sys-primary);
    --bs-btn-hover-border-color: var(--md-sys-primary);
    --bs-btn-hover-color: #fff;
}

.item-in-cart {
    background: #e8f5e9 !important;
    border-left: 4px solid var(--md-sys-success) !important;
}

.fast-search-wrap {
    padding: 0;
}

.fast-search-wrap > .fast-search-main {
    padding: 0.85rem 1rem;
}

.gh-fast-opts {
    padding: 0 1rem 0.85rem 5.15rem;
    background: inherit;
}

.gh-fast-opts .ola-pdp-opts {
    margin: 0;
}

.gh-fast-opts .ola-pdp-opt {
    margin-bottom: 0.55rem;
}

.gh-fast-opts .ola-pdp-opt-name {
    font-size: 0.78rem;
}

.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(240, 244, 249, 0.72);
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
}

/* —— Footer: 3 cột card cao bằng nhau —— */
.gh-footer {
    margin-top: auto;
    background: var(--md-sys-surface-container-high);
    border-top: 1px solid var(--md-sys-outline-variant);
    padding: 1.75rem 0 0;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    color: var(--md-sys-on-surface-variant);
    font-size: 0.9rem;
}

.gh-footer__grid {
    display: grid;
    grid-template-columns: minmax(0, 4.8fr) minmax(0, 3.6fr) minmax(0, 3.6fr);
    gap: 1rem;
    align-items: stretch;
    grid-auto-rows: 1fr;
    padding-bottom: 1.5rem;
}

.gh-footer__col {
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100%;
    background: var(--md-sys-surface-container-low);
    border: 1px solid var(--md-sys-outline-variant);
    border-radius: 14px;
    padding: 1.15rem 1.25rem 1.2rem;
    box-sizing: border-box;
}

.gh-footer__title {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    font-weight: 700;
    color: var(--md-sys-on-surface);
    margin: 0 0 0.75rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid var(--md-sys-outline-variant);
    font-size: 0.92rem;
    line-height: 1.3;
    height: 2.4rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gh-footer__body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    gap: 0.15rem;
    min-width: 0;
}

.gh-footer__line {
    display: flex;
    gap: 0.55rem;
    align-items: flex-start;
    margin: 0;
    padding: 0.28rem 0;
    line-height: 1.45;
}

.gh-footer__line i,
.gh-footer__pledges i,
.gh-footer__links .gh-footer__body a i {
    margin-top: 0.2rem;
    color: var(--md-sys-primary);
    width: 1rem;
    flex-shrink: 0;
    text-align: center;
}

.gh-footer__line a {
    color: inherit;
    text-decoration: none;
    word-break: break-word;
}

.gh-footer__line a:hover,
.gh-footer__line a:focus-visible {
    color: var(--md-sys-primary);
}

.gh-footer__links .gh-footer__body a {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    min-height: 0;
    color: var(--md-sys-on-surface-variant);
    text-decoration: none;
    font-weight: 500;
    margin: 0;
    padding: 0.28rem 0;
    line-height: 1.45;
}

.gh-footer__links .gh-footer__body a:hover,
.gh-footer__links .gh-footer__body a:focus-visible {
    color: var(--md-sys-primary);
}

.gh-footer__pledges {
    list-style: none;
    margin: 0;
    padding: 0;
}

.gh-footer__pledges li {
    display: flex;
    gap: 0.55rem;
    align-items: flex-start;
    margin: 0;
    padding: 0.28rem 0;
    line-height: 1.45;
}

.gh-footer__note p {
    margin: 0;
    line-height: 1.5;
}

.gh-footer__copy {
    margin-top: 0.75rem !important;
    font-size: 0.8rem;
    opacity: 0.85;
}

@media (max-width: 991.98px) {
    .gh-footer {
        padding-top: 1.4rem;
    }

    .gh-footer__grid {
        grid-template-columns: 1fr 1fr;
        grid-auto-rows: auto;
        gap: 0.85rem;
        padding-bottom: 1.25rem;
    }

    .gh-footer__brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 767.98px) {
    :root {
        --gh-action: 36px;
    }

    .gh-header__inner {
        gap: 8px;
    }

    .gh-brand {
        flex: 0 0 auto;
        max-width: none;
        gap: 0;
    }

    .gh-brand__logo {
        font-size: 40px;
    }

    /* Mobile: chỉ logo — nhường chỗ cho ô tìm */
    .gh-brand__text {
        display: none;
    }

    .gh-search {
        flex: 1 1 auto;
        flex-basis: auto;
        max-width: none;
        min-width: 0;
        margin: 0 8px;
    }

    .gh-search__box {
        height: 40px;
        border-color: var(--md-sys-outline);
    }

    .gh-search__go {
        width: 40px;
        font-size: 1rem;
    }

    .gh-search__input {
        font-size: 16px; /* iOS không zoom khi focus */
    }

    .gh-search__panel {
        width: 100%;
    }

    .gh-header__actions {
        gap: 6px;
    }

    .gh-link-home {
        width: var(--gh-action);
        padding: 0;
    }

    .gh-link-home__txt {
        display: none;
    }

    .gh-empty__desc {
        white-space: normal;
    }
}

@media (max-width: 575.98px) {
    .gh-brand {
        max-width: none;
        flex: 0 0 auto;
    }

    .gh-search {
        margin: 0 6px;
    }

    .gh-footer {
        padding-top: 1.15rem;
    }

    .gh-footer__grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        padding-bottom: 1.1rem;
    }

    .gh-footer__brand,
    .gh-footer__note {
        grid-column: auto;
    }

    .gh-footer__col {
        padding: 1rem 1.05rem 1.05rem;
    }

    .gh-footer__links .gh-footer__body a {
        min-height: 36px;
    }
}

.gh-order-banner {
    background: #e8f5e9;
    border: 1px solid #a5d6a7;
    border-radius: var(--md-radius-lg, 16px);
    padding: 1.1rem 1.25rem;
}

.gh-register-banner {
    background: #f6faf7;
    border: 1px solid #d8ebe0;
    border-radius: 12px;
    padding: 0.55rem 0.85rem;
}

.gh-register-banner__row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 0.75rem;
}

.gh-register-banner__text {
    font-size: 0.875rem;
    color: var(--md-sys-on-surface-variant);
    line-height: 1.4;
}

.gh-register-banner__text .gh-em {
    color: #0f766e;
    font-weight: 700;
}

.gh-bank-info {
    line-height: 1.55;
    color: var(--md-sys-on-surface);
}

.gh-bank-info .text-muted {
    min-width: 4.5rem;
    display: inline-block;
}

.gh-form .select2-container {
    width: 100% !important;
}

/* Select2 Tỉnh / Phường — khớp form giỏ hàng (primary #0b57d0) */
.gh-form .ola-loc-select2.select2-selection--single,
.gh-form .select2-container.ola-loc-select2 .select2-selection--single {
    min-height: 2.5rem !important;
    border: 1px solid var(--md-sys-outline-variant) !important;
    border-radius: 10px !important;
    box-shadow: none !important;
}

.gh-form .ola-loc-select2.select2-selection--single .select2-selection__rendered,
.gh-form .select2-container.ola-loc-select2 .select2-selection--single .select2-selection__rendered {
    line-height: calc(2.5rem - 2px) !important;
    padding-left: 0.75rem !important;
    font-size: 0.9375rem !important;
    color: var(--md-sys-on-surface) !important;
}

.gh-form .select2-container--open.ola-loc-select2 .select2-selection--single,
.gh-form .select2-container--focus.ola-loc-select2 .select2-selection--single,
.gh-form .ola-loc-select2.select2-container--open .select2-selection--single,
.gh-form .ola-loc-select2.select2-container--focus .select2-selection--single {
    border-color: var(--md-sys-primary) !important;
    box-shadow: 0 0 0 0.2rem rgba(11, 87, 208, 0.18) !important;
}

body.gh-body .ola-loc-select2-dropdown {
    border: 1px solid var(--md-sys-outline-variant) !important;
    border-radius: 12px !important;
    box-shadow: var(--md-elev-2) !important;
    overflow: hidden;
    margin-top: 6px;
    background: var(--md-sys-surface-container-lowest) !important;
}

body.gh-body .ola-loc-select2-dropdown .select2-search--dropdown {
    padding: 0.65rem 0.7rem 0.45rem;
    background: var(--md-sys-surface-container-low);
    border-bottom: 1px solid var(--md-sys-outline-variant);
}

body.gh-body .ola-loc-select2-dropdown .select2-search--dropdown .select2-search__field {
    border: 1px solid var(--md-sys-outline-variant) !important;
    border-radius: 10px !important;
    padding: 0.5rem 0.75rem !important;
    outline: none !important;
    box-shadow: none !important;
    background: var(--md-sys-surface-container-lowest) !important;
    font-size: 0.9rem !important;
    color: var(--md-sys-on-surface) !important;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

body.gh-body .ola-loc-select2-dropdown .select2-search--dropdown .select2-search__field:focus {
    border-color: var(--md-sys-primary) !important;
    box-shadow: 0 0 0 3px var(--gemini-active-bg-soft) !important;
}

body.gh-body .ola-loc-select2-dropdown .select2-results__options {
    max-height: 240px !important;
    padding: 0.25rem 0 0.4rem;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

body.gh-body .ola-loc-select2-dropdown .select2-results__options::-webkit-scrollbar {
    width: 6px;
}

body.gh-body .ola-loc-select2-dropdown .select2-results__options::-webkit-scrollbar-thumb {
    background: var(--md-sys-outline-variant);
    border-radius: 999px;
}

body.gh-body .ola-loc-select2-dropdown .select2-results__option {
    padding: 0.6rem 0.9rem !important;
    margin: 0 0.35rem;
    border-radius: 8px;
    font-size: 0.9rem !important;
    color: var(--md-sys-on-surface) !important;
    background: transparent !important;
}

body.gh-body .ola-loc-select2-dropdown .select2-results__option--highlighted.select2-results__option--selectable,
body.gh-body .ola-loc-select2-dropdown .select2-results__option--highlighted[aria-selected] {
    background: #e7f1ff !important;
    color: #1d4ed8 !important;
    font-weight: 600 !important;
}

body.gh-body .ola-loc-select2-dropdown .select2-results__option[aria-selected="true"] {
    background: #eff6ff !important;
    color: #1d4ed8 !important;
    font-weight: 700 !important;
}

body.gh-body .ola-loc-select2-dropdown .select2-results__option[aria-disabled="true"] {
    color: #94a3b8 !important;
    font-weight: 500 !important;
}

/* Hint SĐT: luôn giữ chỗ, fade êm — không nhảy layout */
.gh-phone-hint {
    min-height: 1.25rem;
    margin-top: 0.35rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #047857;
    line-height: 1.35;
    opacity: 0;
    transform: translateY(-2px);
    pointer-events: none;
    transition: opacity 0.28s ease, transform 0.28s ease;
}

.gh-phone-hint.is-show {
    opacity: 1;
    transform: translateY(0);
}

#txtPhone.gh-phone-loading {
    background-image: linear-gradient(90deg, var(--md-sys-surface-container-low) 0%, var(--md-sys-primary-container) 45%, var(--md-sys-surface-container-low) 90%);
    background-size: 200% 100%;
    animation: ghPhoneShimmer 0.9s ease-in-out infinite;
}

@keyframes ghPhoneShimmer {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

.gh-autofill-flash {
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.28) !important;
    border-color: #6ee7b7 !important;
    transition: box-shadow 0.35s ease, border-color 0.35s ease, background-color 0.35s ease;
    background-color: #f0fdf4 !important;
}

.gh-order-meta {
    margin-top: 0.2rem;
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--md-sys-error);
    line-height: 1.35;
    letter-spacing: 0;
    white-space: nowrap;
}

.fast-search-wrap .text-danger.fw-bold {
    letter-spacing: 0;
    white-space: nowrap;
}

.gh-order-product-link {
    display: inline;
    font-weight: 700;
    color: #0f172a;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color 0.15s ease, border-color 0.15s ease;
}

.gh-order-product-link:hover {
    color: var(--md-sys-primary);
    border-bottom-color: var(--md-sys-primary);
}

.gh-order-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1rem;
}

.gh-order-head__main {
    min-width: 0;
}

.gh-order-head__title {
    margin: 0;
    font-size: 1.45rem;
    font-weight: 800;
    line-height: 1.25;
    color: #0f172a;
}

.gh-order-head__date {
    margin-top: 0.2rem;
    font-size: 0.875rem;
    color: #64748b;
}

.gh-order-head .gh-status-live {
    margin-bottom: 0;
    flex: 0 1 auto;
    max-width: 100%;
}

.gh-summary-sticky {
    position: sticky;
    top: 84px;
    z-index: 2;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    -ms-overflow-style: none; /* IE/Edge cũ */
    scrollbar-width: none; /* Firefox */
}

.gh-summary-sticky::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none; /* Chrome/Safari/Edge */
}

@media (max-width: 991.98px) {
    .gh-summary-sticky {
        position: static;
        max-height: none;
        overflow: visible;
    }
}

.gh-contact-box {
    background: var(--md-sys-surface-container-lowest);
    border: 1px solid var(--md-sys-outline-variant);
}

.gh-contact-list {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.gh-contact-item {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    color: inherit;
    width: fit-content;
    max-width: 100%;
}

.gh-contact-ico {
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--md-sys-primary-container);
    color: var(--md-sys-primary);
    font-size: 0.85rem;
    flex-shrink: 0;
}

.gh-contact-item:hover .gh-contact-ico {
    background: var(--gemini-active-bg);
}

.gh-contact-val {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--md-sys-primary);
    letter-spacing: 0.02em;
    word-break: break-word;
}

.gh-contact-val--mail {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--md-sys-on-surface-variant);
}

.gh-contact-item:hover .gh-contact-val,
.gh-contact-item:hover .gh-contact-val--mail {
    text-decoration: underline;
    color: var(--md-sys-primary-hover);
}

.gh-register-banner__actions {
    display: inline-flex;
    gap: 0.4rem;
}

.gh-register-banner__actions .btn {
    font-weight: 600;
    border-radius: 999px;
    padding: 0.25rem 0.75rem;
}

.gh-ship-row {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 0.35rem 0.75rem;
    margin-bottom: 0.65rem;
    align-items: start;
}

.gh-ship-label {
    font-size: 0.8rem;
    color: var(--md-sys-on-surface-variant);
    font-weight: 500;
    padding-top: 0.1rem;
}

.gh-ship-value {
    font-size: 0.95rem;
    color: var(--md-sys-on-surface);
    font-weight: 600;
    line-height: 1.45;
}

.gh-summary-card {
    background: var(--md-sys-surface-container-lowest);
    border: 1px solid var(--md-sys-outline-variant);
    border-radius: 18px;
    box-shadow: var(--md-elev-1);
}

.gh-summary-card__title {
    color: var(--md-sys-on-surface);
    letter-spacing: 0.01em;
}

.gh-summary-card__rows {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.gh-summary-card__row {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 0.92rem;
    color: var(--md-sys-on-surface-variant);
}

.gh-summary-card__row span:last-child {
    color: var(--md-sys-on-surface);
    font-weight: 600;
}

.gh-summary-card__total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin: 1rem 0 1.15rem;
    padding: 0.85rem 0.9rem;
    border-radius: 14px;
    background: #fff5f5;
    border: 1px solid #fde2e2;
}

.gh-summary-card__total > span:first-child {
    font-weight: 600;
    color: var(--md-sys-on-surface-variant);
}

.gh-summary-card__amount {
    font-size: 1.35rem;
    font-weight: 700;
    color: #c62828;
    text-decoration: none;
}

.gh-summary-card__actions {
    display: grid;
    gap: 0.55rem;
}

.gh-summary-card__reg { margin-bottom: 0.15rem; }

.gh-btn-soft-success,
.gh-btn-soft-primary,
.gh-btn-soft-danger,
.gh-btn-primary-soft {
    border-radius: 12px !important;
    font-weight: 600 !important;
    padding: 0.65rem 0.9rem !important;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.gh-btn-soft-success {
    background: #ecfdf5 !important;
    border: 1px solid #a7f3d0 !important;
    color: #047857 !important;
}

.gh-btn-soft-success:hover {
    background: #d1fae5 !important;
    color: #065f46 !important;
}

.gh-btn-soft-primary {
    background: var(--md-sys-primary-container) !important;
    border: 1px solid var(--md-sys-primary-container) !important;
    color: var(--md-sys-on-primary-container) !important;
}

.gh-btn-soft-primary:hover {
    background: var(--gemini-active-bg) !important;
}

.gh-btn-soft-danger {
    background: #fff1f2 !important;
    border: 1px solid #fecdd3 !important;
    color: #be123c !important;
}

.gh-btn-soft-danger:hover {
    background: #ffe4e6 !important;
}

.gh-btn-primary-soft {
    background: var(--md-sys-primary) !important;
    border: 1px solid var(--md-sys-primary) !important;
    color: var(--md-sys-on-primary) !important;
}

.gh-btn-primary-soft:hover {
    background: var(--md-sys-primary-hover) !important;
}

.gh-summary-card__link {
    display: block;
    text-align: center;
    font-size: 0.875rem;
    color: var(--md-sys-on-surface-variant);
    text-decoration: none;
    padding: 0.25rem 0;
}

.gh-summary-card__link:hover {
    color: var(--md-sys-primary);
    text-decoration: underline;
}

/* Thanh trạng thái live — mượt, có nhịp pulse */
.gh-status-live {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.65rem 0.9rem;
    border-radius: 999px;
    background: var(--md-sys-surface-container-low);
    border: 1px solid var(--md-sys-outline-variant);
    color: var(--md-sys-on-surface);
    font-size: 0.875rem;
    line-height: 1.35;
    position: relative;
    overflow: hidden;
    transition: background-color 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.gh-status-live.is-visible { display: flex !important; }

.gh-status-live__pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    flex-shrink: 0;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.45);
    animation: ghStatusPulse 1.8s ease-out infinite;
}

.gh-status-live.is-checking .gh-status-live__pulse {
    background: var(--md-sys-primary);
    animation: ghStatusPulse 1s ease-out infinite;
}

.gh-status-live.is-changed {
    background: var(--md-sys-primary-container);
    border-color: var(--md-sys-primary);
    box-shadow: 0 0 0 3px var(--gemini-active-bg-soft);
}

.gh-status-live.is-changed .gh-status-live__pulse {
    background: var(--md-sys-primary);
}

.gh-status-live__icon {
    color: var(--md-sys-on-surface-variant);
    font-size: 0.8rem;
}

.gh-status-live__text {
    transition: opacity 0.16s ease;
}

.gh-status-live__text.is-fade {
    opacity: 0.35;
}

@keyframes ghStatusPulse {
    0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.45); }
    70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.gh-status-badge-wrap.is-pulse-once .badge {
    animation: ghBadgeSoft 0.85s ease;
}

@keyframes ghBadgeSoft {
    0% { transform: scale(1); }
    40% { transform: scale(1.06); }
    100% { transform: scale(1); }
}

/* Toast thêm giỏ — màu chuẩn module GIOHANG (MD3), không dùng hồng shop */
body.gh-body #olaCartToast {
    background: linear-gradient(135deg, var(--md-sys-primary) 0%, var(--md-sys-primary-hover) 100%);
    box-shadow: 0 12px 32px rgba(11, 87, 208, 0.32), 0 1px 0 rgba(255, 255, 255, 0.22) inset;
}

body.gh-body #olaCartToast.is-error {
    background: linear-gradient(135deg, #d32f2f 0%, var(--md-sys-error) 100%);
    box-shadow: 0 12px 32px rgba(179, 38, 30, 0.36), 0 1px 0 rgba(255, 255, 255, 0.16) inset;
}

/* Toast nhẹ */
.gh-toast {
    position: fixed;
    left: 50%;
    bottom: 1.5rem;
    transform: translateX(-50%) translateY(12px);
    z-index: 1080;
    min-width: 200px;
    max-width: min(92vw, 360px);
    padding: 0.7rem 1.1rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.88);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.18);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s ease, transform 0.28s ease;
}

.gh-toast.is-show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.gh-hist-panel .gh-hist-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.35rem 1rem;
}

@media (min-width: 576px) {
    .gh-hist-panel .gh-hist-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
}

.gh-hist-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 0.75rem;
    border: 1px solid var(--md-sys-outline-variant, #e1e3e0);
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.gh-hist-item:hover {
    background: var(--md-sys-surface-container-low);
    border-color: var(--md-sys-outline);
}

.gh-hist-item.is-current {
    background: var(--md-sys-primary-container);
    border-color: var(--md-sys-primary);
}

.gh-box-title-accent {
    color: var(--md-sys-primary, #0b57d0);
}

.min-w-0 { min-width: 0; }

@media (max-width: 767.98px) {
    .cart-item {
        align-items: center;
        gap: 0.7rem;
    }

    .cart-thumb {
        width: 80px;
        height: 80px;
        align-self: center;
    }

    .gh-item-body {
        display: flex;
        flex-direction: column;
        justify-content: center;
        min-height: 80px;
    }

    .gh-item-actions {
        margin-top: 0.45rem;
    }

    .gh-item-remove {
        margin-left: 0;
    }

    .ios-pay-item label {
        font-size: 0.75rem;
        padding: 10px 4px;
    }

    .gh-footer__grid {
        grid-template-columns: 1fr;
        gap: 1.35rem;
    }

    .gh-footer__note {
        grid-column: auto;
    }

    .bg-white-box {
        padding: 1rem;
    }

    .gh-empty {
        min-height: 320px;
        padding: 2.25rem 1rem;
    }

    .gh-empty__icon {
        width: 88px;
        height: 88px;
        margin-bottom: 1.1rem;
    }

    .gh-empty__title {
        font-size: 1.2rem;
    }

    .gh-empty__hint {
        font-size: 0.75rem;
    }
}


/* ==== ola-product-options-pdp.css ==== */
.ola-pdp-opts {
    margin: 0 0 1rem;
}
.ola-pdp-opt {
    margin: 0 0 0.7rem;
}
.ola-pdp-opt:last-child {
    margin-bottom: 0;
}
.ola-pdp-opt-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: #555;
    margin: 0 0 0.4rem;
}
.ola-pdp-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}
.ola-pdp-pill {
    appearance: none;
    -webkit-appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 4rem;
    box-sizing: border-box;
    border: 1px solid #e5e5e5;
    background: #fff;
    border-radius: 999px;
    padding: 0.38rem 0.85rem;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #444;
    text-align: center;
    cursor: pointer;
    line-height: 1.2;
    box-shadow: none;
    outline: none;
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.ola-pdp-pill:hover {
    border-color: #8ec8f0;
    color: #1d4f7a;
    background: #bedefe85;
}
.ola-pdp-pill.is-on,
.ola-pdp-pill.is-on:hover {
    background: #bedefe85;
    color: #1d4f7a;
    border: 1px solid #8ec8f0;
    box-shadow: none;
}
.ola-pdp-pill.is-off {
    opacity: 0.42;
    cursor: not-allowed;
    text-decoration: line-through;
    pointer-events: none;
}
.ola-pdp-opt-hint {
    font-size: 0.8rem;
    color: #c0392b;
    margin: 0.4rem 0 0;
    min-height: 1.1em;
}


/* ===== Săn mã khuyến mãi ở giỏ hàng (.vh*) — thẻ vé: khối giảm giá tô màu bên trái, thông tin bên phải; không viền nhấn ===== */
.vh { margin-top: .75rem }
.vh__head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .45rem }
.vh__title { font-size: 1rem; font-weight: 800; letter-spacing: .01em; color: #dc2626 }
/* vệt sáng lướt qua chữ tiêu đề (chữ vẫn đỏ #dc2626 khi trình duyệt không hỗ trợ background-clip:text) */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
    .vh__title {
        background: linear-gradient(100deg, #dc2626 0%, #dc2626 38%, #fda4a4 50%, #dc2626 62%, #dc2626 100%) 0 0 / 250% 100% no-repeat;
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        animation: vhTitleShine 4s ease-in-out infinite;
    }
}
.vh__title i { margin-right: .4rem; font-size: .9em; color: #f97316; -webkit-text-fill-color: #f97316 }
@keyframes vhTitleShine { 0%, 35% { background-position: 100% 0 } 80%, 100% { background-position: 0 0 } }
@media (prefers-reduced-motion: reduce) { .vh__title { animation: none } }
.vh__nudge { margin-bottom: .6rem; padding: .6rem .85rem; border-radius: 12px; background: linear-gradient(135deg, #fff7ed, #ffedd5); color: #9a3412; font-size: .88rem; line-height: 1.6 }
.vh__nudge i { margin-right: .35rem; color: #f97316 }
.vh__nudge b { color: #dc2626; font-weight: 800 }
.vh__nudge-tag { display: inline-block; padding: 0 .55rem; border-radius: 999px; background: #fff; color: #c2410c; font-size: .78rem; font-weight: 700; line-height: 1.5; white-space: nowrap; box-shadow: 0 1px 2px rgba(194,65,12,.15) }
.vh__list { display: grid; gap: .5rem }
.vh__list:not(.is-open) .vh-card:nth-child(n+4) { display: none }
.vh__more { margin-top: .4rem; width: 100%; border: 0; background: transparent; color: #475569; font-size: .78rem; font-weight: 600; padding: .3rem; cursor: pointer }
.vh__more:hover { color: #be123c }
.vh-card { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; align-items: stretch; background: #fff; border: 1px solid #e5e9f0; border-radius: 12px; overflow: hidden; transition: box-shadow .15s, transform .12s }
.vh-card.is-ok { cursor: pointer }
.vh-card.is-ok:hover { box-shadow: 0 6px 16px rgba(190, 18, 60, .14); transform: translateY(-1px) }
.vh-card.is-no { opacity: .72 }
.vh-card.is-on { background: #f0fdf4; border-color: #86efac }
.vh-card__disc { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .25rem; padding: .6rem .4rem; text-align: center; background: #fee2e2; color: #b91c1c; font-size: .9rem; font-weight: 800; line-height: 1.2 }
.vh-ship .vh-card__disc { background: #dbeafe; color: #1d4ed8 }
.vh-card.is-no .vh-card__disc { background: #f1f5f9; color: #64748b }
.vh-card__best { display: inline-block; padding: .08rem .45rem; border-radius: 999px; background: #be123c; color: #fff; font-size: .6rem; font-weight: 700; letter-spacing: .02em }
.vh-card__body { min-width: 0; padding: .55rem .7rem }
.vh-card__name { font-size: .82rem; font-weight: 700; color: #0f172a; line-height: 1.3; margin-bottom: .2rem }
.vh-card__chips { display: flex; flex-wrap: wrap; gap: .25rem; margin-bottom: .2rem }
.vh-card__chips span { padding: .05rem .45rem; border-radius: 999px; background: #f1f5f9; color: #475569; font-size: .66rem; font-weight: 600 }
.vh-card__meta { font-size: .68rem; color: #94a3b8 }
.vh-card__state { margin-top: .25rem; font-size: .74rem; font-weight: 700 }
.vh-card__state.is-ok { color: #15803d }
.vh-card__state.is-on { color: #15803d }
.vh-card__state.is-no { color: #b45309 }
.vh-card__code { display: flex; flex-direction: column; align-items: flex-end; justify-content: center; gap: .15rem; padding: .5rem .7rem .5rem 0; text-align: right }
.vh-card__code b { font-size: .78rem; letter-spacing: .03em; color: #0f172a }
.vh-card__code span { font-size: .64rem; font-weight: 600; color: #94a3b8 }
.vh-card.is-ok .vh-card__code span { color: #be123c }
@media (max-width: 575.98px) {
    .vh-card { grid-template-columns: 78px minmax(0, 1fr) }
    .vh-card__code { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; padding: 0 .7rem .5rem; border-top: 1px dashed #e5e9f0; padding-top: .4rem }
}

/* Thông báo dưới ô mã giảm giá: nhãn nhỏ gọn có nền */
.vc-msg-wrap:not(:empty) { margin-top: .5rem }
.vc-msg { display: inline-flex; align-items: center; gap: .35rem; padding: .2rem .7rem; border-radius: 999px; font-size: .78rem; font-weight: 700; line-height: 1.5 }
.vc-msg i { font-size: .7rem }
.vc-msg.is-ok { background: #dcfce7; color: #15803d }
.vc-msg.is-no { background: #fee2e2; color: #dc2626 }

/* ===== Nút + popup «Voucher khuyến mãi» ở giỏ hàng (.vp-*, .btn-voucher-list) — cùng bố cục popup của /pos/PosNew ===== */
.btn-voucher-list { background: #fff7ed; color: #9a3412; border: 1px solid #fed7aa; border-radius: 999px; font-weight: 700; font-size: .78rem; white-space: nowrap }
.btn-voucher-list:hover { background: #ffedd5; color: #7c2d12 }
body.vp-open { overflow: hidden }
.vp-modal { position: fixed; inset: 0; z-index: 2600 }
.vp-backdrop { position: absolute; inset: 0; background: rgba(15, 23, 42, .55) }
.vp-box { position: relative; margin: 6vh auto 0; width: min(640px, 94vw); max-height: 86vh; display: flex; flex-direction: column; background: #fff; border-radius: 18px; box-shadow: 0 24px 70px rgba(15, 23, 42, .35); overflow: hidden }
.vp-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 16px 20px 10px }
.vp-title { margin: 0; font-size: 1.1rem; font-weight: 800; color: #0f172a }
.vp-sub { margin-top: 2px; font-size: .78rem; color: #64748b; line-height: 1.4 }
.vp-x { flex: 0 0 auto; width: 34px; height: 34px; border: 1px solid #e2e8f0; border-radius: 50%; background: #fff; font-size: 22px; line-height: 1; color: #475569; cursor: pointer; padding: 0 0 2px }
.vp-x:hover { background: #f1f5f9 }
.vp-search { padding: 0 20px 10px }
.vp-search input { width: 100%; height: 42px; padding: 0 14px; border: 1.5px solid #e2e8f0; border-radius: 12px; background: #f8fafc; font-size: .92rem; outline: none }
.vp-search input:focus { background: #fff; border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37, 99, 235, .12) }
.vp-list { padding: 4px 20px 18px; overflow-y: auto; display: grid; gap: 10px; align-content: start }
.vp-sec { margin-top: 4px; font-size: .72rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: #64748b }
.vp-empty { padding: 36px 0; text-align: center; color: #94a3b8; font-weight: 600 }
.vp-card { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; align-items: stretch; width: 100%; padding: 0; text-align: left; background: #fff; border: 1px solid #e5e9f0; border-radius: 14px; overflow: hidden; transition: box-shadow .15s, transform .12s }
.vp-card.is-ok { cursor: pointer }
.vp-card.is-ok:hover { box-shadow: 0 8px 20px rgba(190, 18, 60, .15); transform: translateY(-1px) }
.vp-card.is-no { opacity: .72; cursor: default }
.vp-card.is-on { background: #f0fdf4; border-color: #86efac; cursor: default }
.vp-disc { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 10px 6px; text-align: center; background: #fee2e2; color: #b91c1c }
.vp-disc span { font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; opacity: .85 }
.vp-disc b { font-size: 1.05rem; font-weight: 800; line-height: 1.15 }
.vp-disc em { margin-top: 3px; padding: 1px 8px; border-radius: 999px; background: #be123c; color: #fff; font-size: .58rem; font-style: normal; font-weight: 700 }
.vp-ship .vp-disc { background: #dbeafe; color: #1d4ed8 }
.vp-card.is-no .vp-disc { background: #f1f5f9; color: #64748b }
.vp-info { min-width: 0; padding: 10px 12px }
.vp-name { font-size: .88rem; font-weight: 700; color: #0f172a; line-height: 1.3; margin-bottom: 4px }
.vp-cond { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 4px }
.vp-cond span { padding: 1px 8px; border-radius: 999px; background: #f1f5f9; color: #475569; font-size: .68rem; font-weight: 600 }
.vp-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: .7rem; color: #94a3b8 }
.vp-meta i { margin-right: 3px }
.vp-tag { display: inline-block; margin-top: 6px; font-size: .75rem; font-weight: 700 }
.vp-tag.is-ok, .vp-tag.is-on { color: #15803d }
.vp-tag.is-no { color: #b45309 }
.vp-code { display: flex; flex-direction: column; align-items: flex-end; justify-content: center; gap: 2px; padding: 8px 14px 8px 0; text-align: right }
.vp-code b { font-size: .82rem; letter-spacing: .03em; color: #0f172a }
.vp-code span { font-size: .66rem; font-weight: 600; color: #94a3b8 }
.vp-card.is-ok .vp-code span { color: #be123c }
.vp-toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 2700; padding: 10px 18px; border-radius: 999px; background: #0f172a; color: #fff; font-size: .85rem; font-weight: 600; box-shadow: 0 10px 30px rgba(15, 23, 42, .3) }
@media (max-width: 575.98px) {
    .vp-box { margin-top: 0; width: 100vw; max-height: 100vh; height: 100vh; border-radius: 0 }
    .vp-card { grid-template-columns: 84px minmax(0, 1fr) }
    .vp-code { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; padding: 6px 12px 8px; border-top: 1px dashed #e5e9f0 }
}

/* ===== Giỏ hàng: ô thiếu thông tin + thanh đặt hàng cố định trên điện thoại ===== */
.gh-invalid .select2-selection { border-color: #dc2626 !important; box-shadow: 0 0 0 3px rgba(220, 38, 38, .12) !important }
.gh-mbar { display: none }
@media (max-width: 991.98px) {
    .gh-page { padding-bottom: 84px }
    .gh-mbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1500; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px)); background: #fff; box-shadow: 0 -6px 24px rgba(15, 23, 42, .12) }
    .gh-mbar__sum { display: flex; flex-direction: column; line-height: 1.2 }
    .gh-mbar__sum span { font-size: .72rem; color: #64748b; font-weight: 600 }
    .gh-mbar__sum b { font-size: 1.15rem; font-weight: 800; color: #dc2626 }
    .gh-mbar__btn { flex: 0 0 auto; border: 0; border-radius: 12px; padding: 12px 26px; background: linear-gradient(135deg, #ef4444, #dc2626); color: #fff; font-weight: 800; letter-spacing: .02em; box-shadow: 0 8px 18px rgba(220, 38, 38, .3) }
    .gh-mbar__btn:active { transform: translateY(1px) }
}
body.vp-open .gh-mbar { display: none }

/* ===== Popup voucher: không giật màn hình khi mở / đóng ===== */
html { scrollbar-gutter: stable }                       /* luôn chừa chỗ thanh cuộn → nền không nhảy ngang khi khóa cuộn */
body.vp-open { overflow: hidden }                       /* (JS bù thêm padding-right cho trình duyệt cũ không có scrollbar-gutter) */
.vp-modal { animation: vpFade .16s ease-out }
.vp-box { animation: vpPop .18s cubic-bezier(.2, .9, .3, 1.1); will-change: transform, opacity }
.vp-list { min-height: 200px }                          /* khung không co giãn khi danh sách vừa tải xong */
@keyframes vpFade { from { opacity: 0 } to { opacity: 1 } }
@keyframes vpPop { from { opacity: 0; transform: translateY(10px) scale(.98) } to { opacity: 1; transform: none } }
@media (prefers-reduced-motion: reduce) { .vp-modal, .vp-box { animation: none } }
/* ===== Dòng sản phẩm trong giỏ (PC): tên ở trên; GIÁ (+ phân loại) bên trái và SỐ LƯỢNG + nút xóa bên phải CÙNG MỘT HÀNG ===== */
@media (min-width: 768px) {
    .cart-item { align-items: center }
    .gh-item-body { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name name" "meta actions"; align-items: center; align-content: center; row-gap: .55rem; column-gap: 1rem; min-height: 100px }
    .gh-item-name { grid-area: name }
    .gh-item-meta { grid-area: meta; margin-top: 0 }
    .gh-item-actions { grid-area: actions; margin-top: 0; flex-wrap: nowrap; justify-content: flex-end }
    .gh-item-price { font-size: 1.05rem }
    .gh-item-remove { margin-left: .25rem; padding: .25rem .5rem }
}
/* Nút xóa tách xa bộ chọn số lượng (tránh bấm nhầm): khoảng cách lớn + vùng bấm riêng, hiện nền đỏ nhạt khi rê chuột */
.gh-item-actions { gap: 1.75rem !important }
.gh-item-remove { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0 !important; margin-left: 0 !important; border-radius: 10px; transition: background .15s, transform .12s }
.gh-item-remove:hover { background: #fee2e2; transform: scale(1.05) }
@media (max-width: 767.98px) { .gh-item-actions { gap: 1.25rem !important } }
/* ===== Dòng giỏ hàng: «đơn giá × số lượng = thành tiền» rõ ràng; nút xóa tách hẳn ra góc trên bên phải (khó bấm nhầm) ===== */
.cart-item { position: relative }
.gh-item-name { padding-right: 3rem }
.gh-item-remove { position: absolute !important; top: .5rem; right: 0; width: 36px !important; height: 36px !important; margin: 0 !important; background: transparent; opacity: .55; transition: opacity .15s, background .15s }
.gh-item-remove:hover { opacity: 1; background: #fee2e2; transform: none }
.gh-item-actions { gap: .6rem !important }
.gh-item-x, .gh-item-eq { color: #94a3b8; font-size: 1.05rem; font-weight: 700; line-height: 1 }
.gh-item-total { min-width: 7rem; text-align: right; color: var(--md-sys-error, #b3261e); font-size: 1.1rem; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap }
@media (max-width: 767.98px) {
    .gh-item-actions { gap: .5rem !important }
    .gh-item-total { min-width: 0; font-size: 1.02rem }
}
/* ===== Popup «Tìm & Thêm Sản Phẩm» (Bootstrap modal) không làm giật màn hình =====
   html đã chừa sẵn chỗ thanh cuộn (scrollbar-gutter: stable) nên KHÔNG cần Bootstrap bù thêm padding-right cho body / thanh cố định — bù thêm
   sẽ đẩy nội dung lệch ~15px (giật) ngay khi mở / đóng popup. */
body.modal-open { padding-right: 0 !important }
body.modal-open .fixed-top, body.modal-open .fixed-bottom, body.modal-open .sticky-top, body.modal-open .is-fixed { padding-right: 0 !important }
.modal.fade .modal-dialog { transition: transform .18s ease-out, opacity .18s ease-out }
/* Popup tìm sản phẩm: bỏ thanh cuộn thừa ở mép phải màn hình.
   Khung .modal của Bootstrap mặc định có overflow-y:auto nên hiện thêm 1 thanh cuộn cạnh khoảng chừa sẵn của trang; popup này đã dùng
   modal-dialog-scrollable (phần thân tự cuộn trong popup) nên khung ngoài không cần cuộn. */
.modal { overflow-y: hidden !important; overflow-x: hidden !important }
.modal-dialog-scrollable .modal-body { overscroll-behavior: contain }
#fastSearchResults { overscroll-behavior: contain }
/* ===== Popup «Tìm & Thêm Sản Phẩm»: sản phẩm ĐÃ CÓ trong giỏ → mờ hơn + khóa, không bấm được (tránh thêm liên tục) ===== */
.fast-search-wrap.is-locked { opacity: .5; background: #f3f4f6 !important; filter: grayscale(.35) }
.fast-search-wrap.is-locked .fast-search-main { pointer-events: none; cursor: default !important }
.fast-search-wrap.is-locked img { filter: grayscale(.5) }
.fast-search-wrap.is-locked .text-danger { color: #94a3b8 !important }
.gh-fs-locked, .gh-fs-locked:disabled { opacity: 1; cursor: not-allowed; color: #64748b; border-color: #cbd5e1; background: #e5e7eb }
/* ===== «Săn mã khuyến mãi»: băng chuyền — chỉ mã ĐỦ ĐIỀU KIỆN, mỗi trang tối đa 3 mã, nút trái / phải để trượt; không còn tràn khung ===== */
.vh { overflow: hidden }
.vh__stage { position: relative; padding: 0 }
.vh__stage.has-nav { padding: 0 14px }                 /* chừa chỗ cho 2 nút trái / phải ở hai mép */
.vh__viewport { overflow: hidden; border-radius: 12px }
.vh__track { display: flex; align-items: stretch; transition: transform .38s cubic-bezier(.22, .8, .3, 1); will-change: transform }
.vh__page { flex: 0 0 100%; min-width: 0; display: grid; gap: .5rem; align-content: start }
.vh__list { display: block }
.vh__arrow { position: absolute; top: 50%; z-index: 2; width: 28px; height: 28px; margin-top: -14px; display: none; align-items: center; justify-content: center; border: 0; border-radius: 50%; background: #fff; color: #be123c; font-size: .72rem; box-shadow: 0 3px 10px rgba(15, 23, 42, .2); cursor: pointer; transition: transform .15s, background .15s, opacity .15s }
.vh__stage.has-nav .vh__arrow { display: flex }
.vh__arrow.is-prev { left: -2px }
.vh__arrow.is-next { right: -2px }
.vh__arrow:hover:not(:disabled) { background: #be123c; color: #fff; transform: scale(1.08) }
.vh__arrow:disabled { opacity: .35; cursor: default }
.vh__dots { display: flex; justify-content: center; gap: 6px; margin-top: .5rem }
.vh__dot { width: 6px; height: 6px; border-radius: 50%; background: #e2e8f0; transition: width .25s, background .25s }
.vh__dot.is-on { width: 18px; border-radius: 999px; background: #be123c }
/* Thẻ mã gọn: tên + chip không tràn khung */
.vh-card { grid-template-columns: 84px minmax(0, 1fr) auto; min-width: 0 }
.vh-card__body { min-width: 0 }
.vh-card__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.vh-card__chips { flex-wrap: nowrap; overflow: hidden }
.vh-card__chips span { flex: 0 1 auto; min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.vh-card__code b { max-width: 92px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }

/* ===== Nút «Voucher khuyến mãi»: hiệu ứng nhẹ, mượt để khách nhận ra — vệt sáng lướt qua + vòng sáng thở; dừng khi rê chuột, tôn trọng reduced-motion ===== */
.btn-voucher-list { position: relative; overflow: hidden; isolation: isolate; animation: vcGlow 2.8s ease-in-out infinite }
.btn-voucher-list::after { content: ""; position: absolute; top: 0; bottom: 0; left: -70%; width: 45%; z-index: -1; background: linear-gradient(105deg, transparent, rgba(255, 255, 255, .85), transparent); transform: skewX(-20deg); animation: vcShine 3.6s ease-in-out infinite }
.btn-voucher-list .badge { animation: vcBadge 2.8s ease-in-out infinite }
.btn-voucher-list:hover, .btn-voucher-list:focus-visible { animation: none; background: #ffedd5; color: #7c2d12; transform: translateY(-1px); box-shadow: 0 6px 16px rgba(234, 88, 12, .22) }
.btn-voucher-list:hover::after { animation: none; opacity: 0 }
@keyframes vcGlow { 0%, 100% { box-shadow: 0 0 0 0 rgba(251, 146, 60, 0) } 50% { box-shadow: 0 0 0 5px rgba(251, 146, 60, .28) } }
@keyframes vcShine { 0%, 55% { left: -70% } 100% { left: 130% } }
@keyframes vcBadge { 0%, 100% { transform: scale(1) } 50% { transform: scale(1.12) } }
@media (prefers-reduced-motion: reduce) { .btn-voucher-list, .btn-voucher-list::after, .btn-voucher-list .badge, .vh__track { animation: none !important; transition: none !important } }
/* tinh chỉnh băng chuyền mã: chip đầu không bị bóp, nút trái / phải rõ hơn, khung cao theo trang đang xem */
.vh__viewport { transition: height .3s ease }
.vh__track { align-items: flex-start }
.vh-card__chips span:first-child { flex-shrink: 0 }
.vh__arrow { border: 1px solid #fecdd3; box-shadow: 0 4px 12px rgba(190, 18, 60, .22) }
.vh__stage.has-nav { padding: 0 18px }
.vh__arrow.is-prev { left: -6px }
.vh__arrow.is-next { right: -6px }
