/* 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-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 {
    max-width: none !important;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    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: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--md-sys-outline-variant);
    text-align: center;
}

/* 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;
}

