/* ═══════════════════════════════════════════════
   NNGX App Theme – lớp giao diện app cho khách
   Mọi class có tiền tố ngx- ; phần làm đẹp WooCommerce
   chỉ bật khi body có class ngx-has-… (bật/tắt trong Cài đặt)
   ═══════════════════════════════════════════════ */

:root {
    --ngx-brand: #0b5345;
    --ngx-accent: #f59e0b;
    --ngx-brand-soft: color-mix(in srgb, var(--ngx-brand) 10%, #fff);
    --ngx-brand-2: color-mix(in srgb, var(--ngx-brand) 78%, #22c7a0);
    --ngx-text: #15201d;
    --ngx-muted: #6b7773;
    --ngx-line: #e5ebe8;
    --ngx-bg: #f4f7f6;
    --ngx-surface: #fff;
    --ngx-danger: #d93b3b;
    --ngx-r: 16px;
    --ngx-shadow: 0 8px 28px rgba(16, 32, 27, .12);
    --ngx-shadow-lg: 0 20px 60px rgba(16, 32, 27, .28);
    --ngx-tab-h: 62px;
    --ngx-safe-b: env(safe-area-inset-bottom, 0px);
}

.ngx-root, .ngx-root * , .ngx-pd-extras, .ngx-pd-extras * { box-sizing: border-box; }
.ngx-root [hidden], .ngx-pd-extras [hidden] { display: none !important; }
.ngx-root { font-size: 15px; line-height: 1.45; color: var(--ngx-text); -webkit-tap-highlight-color: transparent; }
.ngx-root button { font: inherit; color: inherit; cursor: pointer; margin: 0; text-transform: none; letter-spacing: normal; box-shadow: none; }
.ngx-root a { text-decoration: none; }
.ngx-ic { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; display: inline-block; vertical-align: middle; }

/* ───── Nút chung ───── */
.ngx-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    min-height: 48px; padding: 0 18px; border-radius: 14px; border: 0;
    font-weight: 700; font-size: 15px; line-height: 1.1; text-decoration: none !important;
    transition: transform .12s, filter .15s; white-space: nowrap;
}
.ngx-btn:active { transform: scale(.97); }
.ngx-btn .ngx-ic { width: 19px; height: 19px; }
.ngx-btn-primary { background: linear-gradient(145deg, var(--ngx-brand-2), var(--ngx-brand)); color: #fff !important; box-shadow: 0 6px 16px color-mix(in srgb, var(--ngx-brand) 30%, transparent); }
.ngx-btn-soft { background: var(--ngx-brand-soft); color: var(--ngx-brand) !important; }
.ngx-btn[disabled], .ngx-btn.is-loading { opacity: .6; pointer-events: none; }
.ngx-iconbtn { width: 42px; height: 42px; border-radius: 50%; border: 0; background: none; display: inline-flex; align-items: center; justify-content: center; color: var(--ngx-text); padding: 0; }
.ngx-iconbtn:active { background: var(--ngx-bg); }
.ngx-link { background: none; border: 0; padding: 0; color: var(--ngx-brand) !important; font-weight: 600; font-size: 13px; }
.ngx-chip {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 14px; border-radius: 999px; border: 1px solid var(--ngx-line);
    background: var(--ngx-surface); color: var(--ngx-text) !important; font-size: 13.5px; font-weight: 600;
    text-decoration: none !important; line-height: 1.2; cursor: pointer;
}
.ngx-chip .ngx-ic { width: 16px; height: 16px; }
.ngx-chip:active { background: var(--ngx-brand-soft); }
.ngx-chips { display: flex; flex-wrap: wrap; gap: 8px; }

/* ───── Thanh tab dưới (điện thoại) ───── */
.ngx-tabbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 99990;
    display: grid; grid-template-columns: repeat(5, 1fr);
    height: calc(var(--ngx-tab-h) + var(--ngx-safe-b)); padding-bottom: var(--ngx-safe-b);
    background: rgba(255, 255, 255, .94);
    backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px);
    border-top: 1px solid var(--ngx-line);
    box-shadow: 0 -4px 20px rgba(16, 32, 27, .05);
}
.ngx-tab {
    position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    background: none !important; border: 0; padding: 0; color: var(--ngx-muted) !important; font-size: 11px !important; font-weight: 600;
}
.ngx-tab .ngx-ic { width: 23px; height: 23px; }
.ngx-tab.is-active { color: var(--ngx-brand) !important; }
.ngx-tab.is-active .ngx-ic { stroke-width: 2.3; }
.ngx-tab.is-active::before { content: ""; position: absolute; top: 0; width: 28px; height: 3px; border-radius: 0 0 3px 3px; background: var(--ngx-brand); }
.ngx-badge {
    position: absolute; top: 5px; left: calc(50% + 5px);
    min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
    background: var(--ngx-danger); color: #fff; font-size: 10.5px; font-weight: 800; line-height: 18px; text-align: center;
    border: 2px solid #fff; box-sizing: content-box;
}
.ngx-badge.is-bump { animation: ngx-bump .5s cubic-bezier(.3, 1.8, .5, 1); }
@keyframes ngx-bump { 40% { transform: scale(1.45); } }

@media (max-width: 1023px) {
    body.ngx-has-tabbar { padding-bottom: calc(var(--ngx-tab-h) + var(--ngx-safe-b)) !important; }
    body.ngx-has-tabbar.single-product.ngx-has-sticky-buy { padding-bottom: calc(var(--ngx-tab-h) + 74px + var(--ngx-safe-b)) !important; }
    /* ẩn nút "lên đầu trang" của các theme hay bị đè */
    body.ngx-has-tabbar #scroll-top, body.ngx-has-tabbar .scroll-to-top, body.ngx-has-tabbar #back-to-top, body.ngx-has-tabbar .back-to-top { bottom: calc(var(--ngx-tab-h) + 80px) !important; }
}
@media (min-width: 1024px) { .ngx-tabbar { display: none; } }

/* ───── Nút giỏ hàng nổi (máy tính) ───── */
.ngx-fab-cart {
    position: fixed; right: 24px; bottom: 24px; z-index: 99980;
    width: 60px; height: 60px; border-radius: 20px; border: 0;
    display: none; align-items: center; justify-content: center;
    background: linear-gradient(145deg, var(--ngx-brand-2), var(--ngx-brand)); color: #fff !important;
    box-shadow: var(--ngx-shadow); transition: transform .15s;
}
.ngx-fab-cart:hover { transform: translateY(-2px); }
.ngx-fab-cart .ngx-ic { width: 26px; height: 26px; }
.ngx-fab-cart .ngx-badge { top: -6px; left: auto; right: -6px; }
@media (min-width: 1024px) { .ngx-fab-cart { display: inline-flex; } }
body:not(.ngx-has-tabbar) .ngx-fab-cart { display: inline-flex; }

/* ───── Liên hệ nổi ───── */
.ngx-contact { position: fixed; right: 14px; bottom: calc(var(--ngx-tab-h) + var(--ngx-safe-b) + 14px); z-index: 99985; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
body.single-product.ngx-has-sticky-buy .ngx-contact { bottom: calc(var(--ngx-tab-h) + var(--ngx-safe-b) + 88px); }
body:not(.ngx-has-tabbar) .ngx-contact { bottom: 100px; }
@media (min-width: 1024px) { .ngx-contact { bottom: 100px !important; right: 26px; } }
.ngx-contact-btn {
    width: 52px; height: 52px; border-radius: 50%; border: 0; display: flex; align-items: center; justify-content: center;
    background: #fff; color: var(--ngx-brand) !important; box-shadow: var(--ngx-shadow); position: relative;
}
.ngx-contact-btn::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--ngx-brand); opacity: .35; animation: ngx-ring 2.2s infinite; }
@keyframes ngx-ring { 0% { transform: scale(.9); opacity: .5; } 100% { transform: scale(1.35); opacity: 0; } }
.ngx-contact-btn .ngx-ic + .ngx-ic { display: none; }
.ngx-contact.is-open .ngx-contact-btn .ngx-ic:first-child { display: none; }
.ngx-contact.is-open .ngx-contact-btn .ngx-ic + .ngx-ic { display: inline-block; }
.ngx-contact.is-open .ngx-contact-btn::after { display: none; }
.ngx-contact-list { display: flex; flex-direction: column; gap: 10px; align-items: flex-end; pointer-events: none; }
.ngx-ct {
    display: flex; align-items: center; justify-content: center; gap: 8px; position: relative;
    width: 48px; height: 48px; border-radius: 50%; color: #fff !important; font-weight: 800; font-size: 12px;
    box-shadow: var(--ngx-shadow); opacity: 0; transform: translateY(12px) scale(.8); transition: all .22s;
}
.ngx-ct .ngx-ic { width: 22px; height: 22px; }
.ngx-ct i { position: absolute; right: 58px; white-space: nowrap; background: #fff; color: var(--ngx-text); font-style: normal; font-size: 13px; font-weight: 700; padding: 6px 10px; border-radius: 10px; box-shadow: var(--ngx-shadow); }
.ngx-ct-zalo { background: #0068ff; }
.ngx-ct-msg { background: linear-gradient(135deg, #00b2ff, #a033ff); }
.ngx-ct-call { background: #16a34a; }
.ngx-contact.is-open .ngx-contact-list { pointer-events: auto; }
.ngx-contact.is-open .ngx-ct { opacity: 1; transform: none; }
.ngx-contact.is-open .ngx-ct:nth-child(2) { transition-delay: .04s; }
.ngx-contact.is-open .ngx-ct:nth-child(3) { transition-delay: .08s; }

/* ───── Thanh mua hàng dính (trang sản phẩm, điện thoại) ───── */
.ngx-buybar {
    position: fixed; left: 0; right: 0; z-index: 99989;
    bottom: calc(var(--ngx-tab-h) + var(--ngx-safe-b));
    display: flex; align-items: center; gap: 8px; padding: 10px 12px;
    background: #fff; border-top: 1px solid var(--ngx-line); box-shadow: 0 -8px 24px rgba(16, 32, 27, .08);
    transform: translateY(0); transition: transform .25s;
}
body:not(.ngx-has-tabbar) .ngx-buybar { bottom: 0; padding-bottom: calc(10px + var(--ngx-safe-b)); }
.ngx-buybar.is-hidden { transform: translateY(160%); }
.ngx-buybar-price { flex: 1; min-width: 0; line-height: 1.15; }
.ngx-buybar-price small { display: block; font-size: 11.5px; color: var(--ngx-muted); }
.ngx-buybar-price b { font-size: 17px; font-weight: 800; color: var(--ngx-danger); white-space: nowrap; }
.ngx-buybar-price b del { display: none; }
.ngx-buybar-price b ins { text-decoration: none; }
.ngx-buybar .ngx-btn { min-height: 46px; padding: 0 14px; font-size: 14.5px; }
@media (max-width: 360px) { .ngx-buybar [data-ngx-buy="add"] span { display: none; } }
@media (min-width: 1024px) { .ngx-buybar { display: none !important; } }

/* ───── Backdrop + sheet ───── */
.ngx-backdrop { position: fixed; inset: 0; z-index: 99995; background: rgba(8, 18, 15, .5); animation: ngx-fade .2s; }
@keyframes ngx-fade { from { opacity: 0; } }
.ngx-sheet {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 99996;
    max-height: 88vh; display: flex; flex-direction: column;
    background: var(--ngx-surface); border-radius: 24px 24px 0 0; box-shadow: var(--ngx-shadow-lg);
    padding-bottom: var(--ngx-safe-b);
    animation: ngx-up .3s cubic-bezier(.2, .9, .3, 1);
}
.ngx-sheet.is-drag { transition: none; animation: none; }
@keyframes ngx-up { from { transform: translateY(100%); } }
.ngx-grip { width: 42px; height: 5px; border-radius: 3px; background: var(--ngx-line); margin: 8px auto 0; flex: none; }
.ngx-sheet-h { display: flex; align-items: center; justify-content: space-between; padding: 8px 10px 8px 18px; flex: none; }
.ngx-sheet-h h3 { margin: 0 !important; font-size: 18px !important; font-weight: 800 !important; display: flex; align-items: center; gap: 8px; color: var(--ngx-text) !important; line-height: 1.3 !important; }
.ngx-sheet-h h3 .ngx-ic { color: var(--ngx-brand); }
.ngx-sheet-h h3 span { font-size: 13px; font-weight: 600; color: var(--ngx-muted); }
.ngx-sheet-body { flex: 1; overflow-y: auto; padding: 4px 16px 16px; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
@media (min-width: 1024px) {
    .ngx-sheet { left: auto; top: 0; width: 420px; max-height: none; border-radius: 24px 0 0 24px; animation-name: ngx-right; }
    .ngx-sheet .ngx-grip { display: none; }
    @keyframes ngx-right { from { transform: translateX(100%); } }
}

/* ───── Giỏ hàng ───── */
.ngx-ship { margin: 0 16px 8px; padding: 10px 12px; border-radius: 12px; background: var(--ngx-brand-soft); font-size: 13px; color: var(--ngx-text); }
.ngx-ship b { color: var(--ngx-brand); }
.ngx-ship-bar { height: 6px; border-radius: 3px; background: rgba(0, 0, 0, .08); margin-top: 7px; overflow: hidden; }
.ngx-ship-bar span { display: block; height: 100%; background: var(--ngx-brand); border-radius: 3px; transition: width .4s; }
.ngx-ci { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--ngx-line); position: relative; }
.ngx-ci:first-child { border-top: 0; }
.ngx-ci img { width: 66px; height: 84px; object-fit: cover; border-radius: 10px; border: 1px solid var(--ngx-line); flex: none; background: var(--ngx-bg); }
.ngx-ci-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ngx-ci-name { font-weight: 600; font-size: 14px; line-height: 1.35; color: var(--ngx-text) !important; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ngx-ci-meta { font-size: 12px; color: var(--ngx-muted); }
.ngx-ci-row { display: flex; align-items: center; justify-content: space-between; margin-top: auto; gap: 8px; }
.ngx-ci-line { font-weight: 800; color: var(--ngx-text); font-size: 14.5px; white-space: nowrap; }
.ngx-ci.is-busy { opacity: .5; pointer-events: none; }
.ngx-qty { display: inline-flex; align-items: center; border: 1.5px solid var(--ngx-line); border-radius: 11px; overflow: hidden; background: #fff; }
.ngx-qty button { width: 34px; height: 34px; border: 0; background: none; display: flex; align-items: center; justify-content: center; padding: 0; color: var(--ngx-text); }
.ngx-qty button:active { background: var(--ngx-bg); }
.ngx-qty button .ngx-ic { width: 16px; height: 16px; stroke-width: 2.4; }
.ngx-qty span { min-width: 30px; text-align: center; font-weight: 700; font-size: 14px; }
.ngx-ci-rm { position: absolute; top: 10px; right: -6px; width: 30px; height: 30px; border: 0; border-radius: 50%; background: none; color: var(--ngx-muted); display: flex; align-items: center; justify-content: center; padding: 0; }
.ngx-ci-rm .ngx-ic { width: 17px; height: 17px; }
.ngx-ci .ngx-ci-body { padding-right: 24px; }
.ngx-cart-foot { flex: none; padding: 12px 16px calc(12px + var(--ngx-safe-b)); border-top: 1px solid var(--ngx-line); background: #fff; }
.ngx-cart-total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; font-size: 14px; color: var(--ngx-muted); }
.ngx-cart-total b { font-size: 20px; color: var(--ngx-text); font-weight: 800; }
.ngx-cart-btns { display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; }
.ngx-empty { text-align: center; padding: 40px 16px; color: var(--ngx-muted); }
.ngx-empty .ngx-ic { width: 54px; height: 54px; stroke-width: 1.3; opacity: .45; margin-bottom: 10px; }
.ngx-empty b { display: block; color: var(--ngx-text); font-size: 16px; margin-bottom: 14px; }
.ngx-sk { display: block; border-radius: 12px; background: linear-gradient(90deg, #eef2f1 25%, #e3e9e7 50%, #eef2f1 75%); background-size: 200% 100%; animation: ngx-sk 1.2s infinite; }
@keyframes ngx-sk { to { background-position: -200% 0; } }

/* ───── Tìm kiếm toàn màn hình ───── */
.ngx-search { position: fixed; inset: 0; z-index: 99997; background: var(--ngx-bg); display: flex; flex-direction: column; animation: ngx-fade .18s; }
.ngx-search-bar { display: flex; align-items: center; gap: 6px; padding: 10px 12px; background: #fff; border-bottom: 1px solid var(--ngx-line); margin: 0 !important; }
.ngx-search-field { flex: 1; display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 14px; border-radius: 14px; background: var(--ngx-bg); border: 1.5px solid transparent; color: var(--ngx-muted); margin: 0 !important; }
.ngx-search-field:focus-within { border-color: var(--ngx-brand); background: #fff; }
.ngx-search-field .ngx-ic { width: 19px; height: 19px; }
.ngx-search-field input[type="search"] { flex: 1; min-width: 0; height: 100% !important; border: 0 !important; background: none !important; box-shadow: none !important; outline: none !important; padding: 0 !important; margin: 0 !important; font-size: 16px !important; color: var(--ngx-text) !important; -webkit-appearance: none; }
.ngx-search-body { flex: 1; overflow-y: auto; padding: 14px 16px 30px; max-width: 760px; width: 100%; margin: 0 auto; }
.ngx-search-sec { margin-bottom: 20px; }
.ngx-search-sec h4 { display: flex; justify-content: space-between; align-items: center; margin: 0 0 10px !important; font-size: 13px !important; text-transform: uppercase; letter-spacing: .04em; color: var(--ngx-muted) !important; font-weight: 700 !important; }
.ngx-sr { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 14px; background: #fff; margin-bottom: 8px; border: 1px solid var(--ngx-line); color: var(--ngx-text) !important; }
.ngx-sr:active { background: var(--ngx-brand-soft); }
.ngx-sr img { width: 48px; height: 62px; object-fit: cover; border-radius: 8px; flex: none; background: var(--ngx-bg); }
.ngx-sr-name { font-size: 14px; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ngx-sr-name mark { background: color-mix(in srgb, var(--ngx-accent) 30%, transparent); color: inherit; padding: 0 1px; border-radius: 3px; }
.ngx-sr-price { font-size: 13.5px; font-weight: 800; color: var(--ngx-danger); margin-top: 2px; }
.ngx-sr-oos { font-size: 11.5px; color: var(--ngx-muted); font-weight: 600; }
.ngx-sr-all { display: block; text-align: center; padding: 12px; font-weight: 700; color: var(--ngx-brand) !important; }

/* ───── Danh mục ───── */
.ngx-cat-all { display: flex; align-items: center; gap: 10px; padding: 14px; border-radius: 14px; background: var(--ngx-brand-soft); color: var(--ngx-brand) !important; font-weight: 700; margin-bottom: 12px; }
.ngx-cat-all span { flex: 1; }
.ngx-cat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.ngx-cat { border: 1px solid var(--ngx-line); border-radius: 14px; overflow: hidden; background: #fff; }
.ngx-cat-main { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 14px 8px 12px; color: var(--ngx-text) !important; }
.ngx-cat-main img, .ngx-cat-ph { width: 56px; height: 56px; border-radius: 16px; object-fit: cover; }
.ngx-cat-ph { display: flex; align-items: center; justify-content: center; background: var(--ngx-brand-soft); color: var(--ngx-brand); font-size: 22px; font-weight: 800; }
.ngx-cat-name { font-weight: 700; font-size: 13.5px; line-height: 1.3; }
.ngx-cat-main small { font-size: 11.5px; color: var(--ngx-muted); }
.ngx-cat-kids { display: flex; flex-wrap: wrap; gap: 5px; padding: 0 8px 10px; justify-content: center; }
.ngx-cat-kids a { font-size: 11.5px; padding: 3px 8px; border-radius: 8px; background: var(--ngx-bg); color: var(--ngx-muted) !important; font-weight: 600; }

/* ───── Toast ───── */
.ngx-toast {
    position: fixed; left: 50%; top: 16px; z-index: 99999; transform: translateX(-50%);
    display: flex; align-items: center; gap: 10px; max-width: calc(100% - 24px);
    padding: 12px 16px; border-radius: 14px; background: #14201c; color: #fff; font-weight: 600; font-size: 14px;
    box-shadow: var(--ngx-shadow-lg); animation: ngx-toast .35s cubic-bezier(.2, .9, .3, 1.2);
}
.ngx-toast .ngx-ic { width: 20px; height: 20px; color: #4ade80; }
.ngx-toast.is-error { background: var(--ngx-danger); }
.ngx-toast.is-error .ngx-ic { color: #fff; }
.ngx-toast a { color: #7ff0c4 !important; font-weight: 700; margin-left: 4px; text-decoration: underline !important; }
@keyframes ngx-toast { from { opacity: 0; transform: translate(-50%, -14px) scale(.96); } }

/* ═══════════ TRANG SẢN PHẨM (bật "Làm đẹp trang sản phẩm") ═══════════ */
.ngx-has-product-style.single-product div.product .product_title { font-size: clamp(20px, 2.4vw, 28px) !important; line-height: 1.3 !important; font-weight: 800 !important; letter-spacing: -.01em; margin-bottom: 10px !important; }
.ngx-has-product-style.single-product div.product .summary > .price,
.ngx-has-product-style.single-product div.product .summary .price:first-of-type { color: var(--ngx-danger) !important; font-size: 26px !important; font-weight: 800 !important; margin: 4px 0 14px !important; }
.ngx-has-product-style.single-product div.product .price del { color: var(--ngx-muted) !important; font-size: .6em; font-weight: 500; opacity: .8; }
.ngx-has-product-style.single-product div.product .price ins { text-decoration: none; }
.ngx-has-product-style.single-product div.product form.cart { display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch; margin-bottom: 14px !important; }
.ngx-has-product-style.single-product div.product form.cart.variations_form { display: block; }
.ngx-has-product-style.single-product div.product form.cart .single_add_to_cart_button {
    flex: 1; min-height: 50px !important; border-radius: 14px !important; border: 0 !important;
    background: linear-gradient(145deg, var(--ngx-brand-2), var(--ngx-brand)) !important; color: #fff !important;
    font-weight: 800 !important; font-size: 16px !important; box-shadow: 0 8px 20px color-mix(in srgb, var(--ngx-brand) 28%, transparent);
    padding: 0 22px !important; float: none !important; margin: 0 !important; transition: transform .12s;
}
.ngx-has-product-style.single-product div.product form.cart .single_add_to_cart_button:active { transform: scale(.98); }
.ngx-has-product-style.single-product div.product form.cart .woocommerce-variation-add-to-cart { display: flex; gap: 10px; align-items: stretch; flex-wrap: wrap; }
.ngx-has-product-style.single-product div.product form.cart .quantity { margin: 0 !important; float: none !important; display: inline-flex; align-items: stretch; border: 1.5px solid var(--ngx-line); border-radius: 14px; overflow: hidden; background: #fff; min-height: 50px; }
.ngx-has-product-style.single-product div.product form.cart .quantity input.qty { border: 0 !important; width: 50px !important; text-align: center; font-weight: 800; font-size: 16px; background: none !important; box-shadow: none !important; -moz-appearance: textfield; min-height: 0; height: auto; padding: 0 !important; }
.ngx-has-product-style.single-product div.product form.cart .quantity input.qty::-webkit-inner-spin-button { -webkit-appearance: none; }
.ngx-qbtn { width: 42px; border: 0; background: none; font-size: 20px; font-weight: 600; color: var(--ngx-text); cursor: pointer; padding: 0; }
.ngx-qbtn:active { background: var(--ngx-bg); }
.ngx-has-product-style.single-product .woocommerce-product-gallery { border-radius: 18px; overflow: hidden; }
.ngx-has-product-style.single-product .woocommerce-product-gallery img { border-radius: 18px; }
.ngx-has-product-style.single-product .woocommerce-tabs ul.tabs { display: flex; gap: 6px; padding: 0 !important; margin: 0 0 16px !important; overflow-x: auto; border: 0 !important; }
.ngx-has-product-style.single-product .woocommerce-tabs ul.tabs::before, .ngx-has-product-style.single-product .woocommerce-tabs ul.tabs::after { display: none !important; }
.ngx-has-product-style.single-product .woocommerce-tabs ul.tabs li { margin: 0 !important; padding: 0 !important; border: 0 !important; background: none !important; border-radius: 999px !important; }
.ngx-has-product-style.single-product .woocommerce-tabs ul.tabs li::before, .ngx-has-product-style.single-product .woocommerce-tabs ul.tabs li::after { display: none !important; }
.ngx-has-product-style.single-product .woocommerce-tabs ul.tabs li a { display: block; padding: 9px 18px !important; border-radius: 999px; background: var(--ngx-bg); color: var(--ngx-muted) !important; font-weight: 700 !important; font-size: 14px; white-space: nowrap; }
.ngx-has-product-style.single-product .woocommerce-tabs ul.tabs li.active a { background: var(--ngx-brand); color: #fff !important; }

/* Chọn loại dạng nút */
.ngx-has-pills table.variations { border: 0 !important; margin-bottom: 8px !important; }
.ngx-has-pills table.variations th, .ngx-has-pills table.variations td { display: block; padding: 0 !important; border: 0 !important; background: none !important; text-align: left; }
.ngx-has-pills table.variations th.label { margin-bottom: 8px; font-weight: 700; font-size: 14px; }
.ngx-has-pills table.variations tr { display: block; margin-bottom: 12px; }
.ngx-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.ngx-pill {
    position: relative; min-height: 46px; padding: 8px 18px; border-radius: 14px;
    border: 1.5px solid var(--ngx-line); background: #fff; color: var(--ngx-text); font-weight: 700; font-size: 14.5px; cursor: pointer;
    display: inline-flex; flex-direction: column; align-items: flex-start; justify-content: center; line-height: 1.2; transition: all .15s;
}
.ngx-pill small { font-size: 12px; font-weight: 700; color: var(--ngx-danger); margin-top: 2px; }
.ngx-pill:hover { border-color: color-mix(in srgb, var(--ngx-brand) 40%, var(--ngx-line)); }
.ngx-pill.is-on { border-color: var(--ngx-brand); background: var(--ngx-brand-soft); color: var(--ngx-brand); box-shadow: 0 0 0 1px var(--ngx-brand) inset; }
.ngx-pill.is-on::after { content: "✓"; position: absolute; top: -8px; right: -8px; width: 20px; height: 20px; border-radius: 50%; background: var(--ngx-brand); color: #fff; font-size: 12px; display: flex; align-items: center; justify-content: center; }
.ngx-pill.is-off { opacity: .4; text-decoration: line-through; }
.ngx-pills-shake { animation: ngx-shake .4s; }
@keyframes ngx-shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.ngx-has-pills table.variations select.ngx-hidden-select { position: absolute !important; opacity: 0 !important; pointer-events: none !important; width: 1px !important; height: 1px !important; }
.ngx-has-pills .reset_variations { font-size: 13px; }

/* Ô cam kết + chia sẻ */
.ngx-pd-extras { margin: 6px 0 18px; }
.ngx-badges { list-style: none !important; margin: 0 0 12px !important; padding: 12px 14px !important; border-radius: 14px; background: var(--ngx-bg); display: grid; gap: 9px; }
.ngx-badges li { display: flex; align-items: center; gap: 10px; font-size: 13.5px; margin: 0 !important; padding: 0 !important; color: var(--ngx-text); }
.ngx-badges li::before { display: none !important; }
.ngx-badges .ngx-ic { width: 20px; height: 20px; color: var(--ngx-brand); }
.ngx-pd-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.ngx-chip-zalo { color: #0068ff !important; border-color: #cfe0ff; background: #f2f7ff; }

/* ═══════════ DANH SÁCH SẢN PHẨM (bật "Làm đẹp danh sách") ═══════════ */
.ngx-has-cards .woocommerce ul.products li.product,
.ngx-has-cards ul.products li.product {
    background: #fff; border: 1px solid var(--ngx-line) !important; border-radius: var(--ngx-r) !important;
    padding: 10px 10px 12px !important; box-shadow: 0 2px 10px rgba(16, 32, 27, .05); transition: transform .15s, box-shadow .15s;
    display: flex !important; flex-direction: column; text-align: left !important; overflow: hidden;
}
.ngx-has-cards ul.products li.product:hover { transform: translateY(-3px); box-shadow: var(--ngx-shadow); }
.ngx-has-cards ul.products li.product a img { border-radius: 12px !important; margin: 0 0 10px !important; aspect-ratio: 3 / 4; object-fit: cover; width: 100%; background: var(--ngx-bg); }
.ngx-has-cards ul.products li.product .woocommerce-loop-product__title { font-size: 14px !important; font-weight: 600 !important; line-height: 1.38 !important; padding: 0 !important; margin: 0 0 6px !important; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; color: var(--ngx-text); }
.ngx-has-cards ul.products li.product .price { color: var(--ngx-danger) !important; font-weight: 800 !important; font-size: 15px !important; margin: auto 0 10px !important; display: block; }
.ngx-has-cards ul.products li.product .price del { color: var(--ngx-muted) !important; font-weight: 500; font-size: 12px; }
.ngx-has-cards ul.products li.product .price ins { text-decoration: none; }
.ngx-has-cards ul.products li.product .button {
    display: flex !important; align-items: center; justify-content: center; width: 100%;
    min-height: 40px; margin: 0 !important; border-radius: 12px !important; border: 0 !important;
    background: var(--ngx-brand-soft) !important; color: var(--ngx-brand) !important; font-weight: 700 !important; font-size: 13.5px !important; padding: 0 10px !important;
}
.ngx-has-cards ul.products li.product .button:hover { background: var(--ngx-brand) !important; color: #fff !important; }
.ngx-has-cards ul.products li.product .button.loading { opacity: .6; }
.ngx-has-cards ul.products li.product .added_to_cart { display: none !important; }
.ngx-has-cards ul.products li.product .onsale { background: var(--ngx-accent) !important; color: #fff !important; border-radius: 8px !important; min-height: 0 !important; min-width: 0 !important; line-height: 1 !important; padding: 5px 8px !important; font-size: 12px !important; font-weight: 800 !important; top: 16px !important; left: 16px !important; right: auto !important; margin: 0 !important; }
@media (max-width: 767px) {
    .ngx-has-cards ul.products, .ngx-has-cards .woocommerce ul.products { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px !important; margin: 0 0 20px !important; }
    .ngx-has-cards ul.products::before, .ngx-has-cards ul.products::after { display: none !important; }
    .ngx-has-cards ul.products li.product { width: auto !important; float: none !important; margin: 0 !important; clear: none !important; }
    .ngx-has-cards ul.products li.product .woocommerce-loop-product__title { font-size: 13px !important; }
}

/* Giảm chuyển động nếu người dùng yêu cầu */
@media (prefers-reduced-motion: reduce) {
    .ngx-root *, .ngx-root *::before, .ngx-root *::after { animation: none !important; transition: none !important; }
}

/* tinh chỉnh */
.ngx-contact-btn { width: 46px; height: 46px; }
.ngx-contact-btn .ngx-ic { width: 20px; height: 20px; }
.ngx-has-cards ul.products li.product a { text-decoration: none !important; }
.ngx-has-product-style.single-product .woocommerce-tabs ul.tabs li a { text-decoration: none !important; }
