@font-face {
    font-family: "Anton SC";
    src: url("../fonts/trangchu2/AntonSC-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Bai Jamjuree";
    src: url("../fonts/trangchu2/BaiJamjuree-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Bai Jamjuree";
    src: url("../fonts/trangchu2/BaiJamjuree-Medium.ttf") format("truetype");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Bai Jamjuree";
    src: url("../fonts/trangchu2/BaiJamjuree-SemiBold.ttf") format("truetype");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Bai Jamjuree";
    src: url("../fonts/trangchu2/BaiJamjuree-Bold.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --text-heading: "Anton SC", Impact, sans-serif;
    --text-body: "Bai Jamjuree", Arial, sans-serif;
}

body {
    font-family: montserrat-bold, sans-serif;
    background-color: var(--primary-bg);
}

.banner-container {
    margin: 0 auto;
    max-width: 1400px;
    padding: 20px;
    padding-bottom: 0;
    width: 100%;
}

.banner {
    width: 100%;
    display: inline-block;
    border-radius: 10px;
    overflow: hidden;
}

.banner img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
}

.ranking-filter {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ranking-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}
.position-filter-select {
    width: 30%;
    min-width: 120px;
    max-width: 200px;
}

.player-ranking-section {
    margin-top: 20px;
    padding: 15px;
    background: var(--second-bg);
    border-radius: 10px;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

.user-info {
    position: relative;
    cursor: pointer;
}

.user-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 6px;
    list-style: none;
    padding: 0;
    margin: 0;
    min-width: 140px;
    z-index: 1000;
}

.user-menu.show {
    display: block;
}

.user-menu li {
    width: 100%;
}

.logout-btn {
    width: 100%;
    padding: 8px 12px;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
}

.logout-btn:hover {
    color: #fff;
}

.vote-action {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

.vote-instruction {
    display: flex;
    flex-direction: row;
    gap: 10px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    text-align: center;
}

.save-ranking-button {
    color: #fff;
    background-color: var(--primary-button);
    width: fit-content;
}

.reset-ranking-button {
    background-color: #e5e7eb;
    color: #111827;
    border: 1px solid #d1d5db;
    width: fit-content;
}

.note {
    text-transform: uppercase;
    color: red;
    font-weight: bold;
    font-size: 24px;
}

.note.card-response-message {
    text-transform: none;
}

.qty-btn {
    color: #fff;
    padding: 4px 10px;
    font-size: 18px;
}

.item-quantity {
    font-size: 18px;
}

.cart-checkout-button {
    margin-top: 10px;
}

.payment-options {
    display: flex;
    justify-content: space-between;
}

.payment-preview {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.swal2-success-line {
    stroke-dasharray: 60;
    stroke-dashoffset: 60;
    animation: drawCheck 0.5s 0.5s ease-out forwards;
}

@keyframes drawCheck {
    to {
        stroke-dashoffset: 0;
    }
}

.thank-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.qr-section {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.qr-image {
    width: 300px;
    height: 300px;
    object-fit: contain;
}

.countdown {
    color: var(--primary-button);
    font-weight: bold;
    font-size: 20px;
    text-align: center;
}

.recharge-button[disabled],
.user-deposit-amount-input[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
}

.product-item {
    cursor: default;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

.product-item.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.product-item-description {
    font-family: montserrat-md, 'Poppins', sans-serif;
    font-size: 13px;
    line-height: 1.6;
    color: var(--primary-text);
}

.product-item-countdown {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin: 2px 0 10px;
    padding: 6px 10px;
    border-radius: 9px;
    background: #dc3f33;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    box-shadow: none;
    white-space: nowrap;
}

.product-item-countdown-icon {
    display: block;
    flex: 0 0 auto;
}

.add-to-cart-button[disabled],
.checkout-button[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
}

.return-back {
    color: var(--second-button);
}

.done-button {
    align-items: center;
    background-color: var(--primary-button);
    color: #fff !important;
    display: flex;
    justify-content: center;
    max-width: fit-content;
    white-space: nowrap;
}

.error-msg {
    color: red;
    font-weight: bold;
    font-size: 20px;
    text-align: center;
}

.card-deposit-button.loading {
    opacity: 0.8;
}

.card-deposit-button .loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 6px;
    border: 2px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    vertical-align: middle;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.withdraw-form {
    width: 350px;
    max-width: 330px;
    margin: auto;
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.withdraw-form .input-item {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.warning-status {
    color: #b8860b;
}

.intro-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.intro-item {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.intro-item img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.product-description {
    text-align: justify;
}

.stat-item {
    cursor: pointer;
    color: black;
}

.stat-item.wc-card {
    padding: 0;
}

.stat-item p {
    text-align: justify;
}

/* --- Why-choose-us: new card style --- */
.wc-card {
    /* Outer red border like the sample */
    border: 1.5px solid #1e4ed8;
    border-radius: 14px;
    padding: 8px; /* show the red border spacing */
    background: transparent;
}

.wc-card-inner {
    background: #ffffff;
    border-radius: 12px;
    padding: 22px;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06), inset 0 0 0 1px rgba(0,0,0,0.04);
}

.wc-icon-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.wc-icon {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #3b82f6 0%, #1e4ed8 100%);
    color: #fff;
}
.wc-icon svg { width: 22px; height: 22px; color: #fff; }
.wc-icon img { width: 22px; height: 22px; object-fit: contain; }

.wc-title {
    margin: 0;
    color: #1e4ed8; /* blue like sample */
    font-family: montserrat-bold, sans-serif;
    font-size: 18px;
}

.wc-desc {
    margin: 0;
    color: #555;
    text-align: left;
    line-height: 1.5;
}

.why-choose-us-container {
    margin-top: 50px;
    overflow: visible;
}

.wc-card:hover { transform: translateY(-5px); transition: transform .2s ease; }

.logo-desktop,
.logo-container a {
    display: flex;
}

.payment-transfer-container {
    display: flex;
    gap: 2rem;
}

.deposit-button-container {
    transition: transform 0.3s ease;
}

.deposit-button-container:hover {
    transform: scale(1.01);
}

.deposit-button-container img {
    width: 100%;
    object-fit: contain;
    border-radius: 8px;
}

@media screen and (max-width: 1024px) {
    .payment-transfer-container {
        flex-direction: column;
    }

    .logo-desktop,
    .logo-container a {
        display: none;
    }

    .card-input-container {
        flex-direction: column;
    }

    .card-input-item {
        width: 100%;
    }

    .withdraw-form {
        width: fit-content;
    }

    .icon-title {
        font-size: 18px;
    }
}

.pagination {
    list-style-type: none;
}

.label {
    display: inline;
    padding: .2em .6em .3em;
    font-size: 75%;
    font-weight: 700;
    line-height: 1;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: .25em;
}

.label-danger {
    background-color: #d9534f;
}

.label-warning {
    background-color: #f0ad4e;
}

.label-info {
    background-color: #5bc0de;
}

.label-primary {
    background-color: #337ab7;
}

.label-success {
    background-color: #00a65a;
}

.label-default {
    background-color: #777;
}

.product-right {
    position: relative;
}

.payment-container {
    position: sticky;
    top: 5rem;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

/* ================= Auth (Login/Register/Forgot password) ================ */
body.auth-page {
    --auth-blue: #0881fc;
    --auth-dark: #000b1d;
    --auth-input-from: rgba(16, 43, 97, 0.9);
    --auth-input-to: rgba(10, 29, 76, 0.9);
    --auth-border: rgba(117, 185, 255, 0.15);
    --auth-input-border: rgba(47, 143, 255, 0.35);
    margin: 0;
    background: var(--auth-dark);
    color: #fff;
    font-family: var(--text-body);
    overflow-x: hidden;
}

body.auth-page,
body.auth-page *,
body.auth-page *::before,
body.auth-page *::after {
    box-sizing: border-box;
}

body.auth-page #root,
.auth-mobile-screen {
    min-height: 100vh;
    background: var(--auth-dark);
}

.auth-mobile-screen {
    width: 100vw;
    overflow-x: hidden;
}

body.auth-page #phpdebugbar,
body.auth-page .phpdebugbar {
    display: none !important;
}

.auth-hero {
    position: relative;
    width: 100vw;
    min-height: 720px;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 180px clamp(24px, 10.2vw, 196px) 96px;
    background-image: url("/images/auth/auth-mobile-bg-login.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

.auth-page--register .auth-hero {
    background-image: url("/images/auth/auth-mobile-bg-register.png");
}

.auth-page--forgot .auth-hero {
    background-image: url("/images/auth/auth-mobile-bg-forgot.png");
}

.auth-container,
.login-container,
.register-container,
.forgot-password-container {
    width: 100%;
    height: auto;
    min-height: 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 0;
}

.auth-card,
.login-box,
.register-box,
.forgot-password-wrapper {
    width: min(410px, 100%);
    max-width: 100%;
    margin: 0;
    padding: 16px 12px;
    overflow: hidden;
    text-align: center;
    color: #fff;
    border: 2px solid var(--auth-border);
    border-radius: 32px;
    background: linear-gradient(328deg, rgba(51, 68, 99, 0) 0.98%, rgba(40, 53, 82, 0.45) 48.04%, rgba(31, 41, 64, 0.9) 95.1%);
    box-shadow: 0 1px 15px rgba(255, 255, 255, 0.1), 0 10px 80px #000;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.auth-page--register .auth-card {
    height: 488px;
    min-height: 488px;
}

.auth-page--login .auth-card {
    height: 328px;
    min-height: 328px;
}

.auth-page--forgot .auth-card {
    height: 252px;
    min-height: 252px;
}

.auth-card:has(.auth-message) {
    height: auto;
}

.auth-title,
.login-title,
.register-title,
.forgot-pw-title {
    margin: 0;
    padding: 0;
    color: #fff !important;
    font-family: var(--text-body);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0;
    text-align: center;
}

.auth-title-block {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.auth-title-block p {
    width: 100%;
    margin: 0;
    color: #fff;
    font-size: 10px;
    font-weight: 400;
    line-height: 1.2;
}

.auth-form {
    width: 100%;
    margin: 16px 0 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.auth-field-group {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.auth-email-note-group {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.auth-input,
.login-input,
.reg-input {
    width: 100%;
    height: 40px;
    margin: 0;
    padding: 10px 20px;
    color: #fff !important;
    font-family: Inter, var(--text-body);
    font-size: 12px;
    font-weight: 400;
    line-height: 1;
    border: 1px solid var(--auth-input-border) !important;
    border-radius: 10px !important;
    outline: none !important;
    background: linear-gradient(90deg, var(--auth-input-from) 0%, var(--auth-input-to) 100%) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2), inset 0 1px 6px rgba(255, 255, 255, 0.1);
    appearance: none;
}

.auth-input::placeholder,
.login-input::placeholder,
.reg-input::placeholder {
    color: #d9d9d9 !important;
    opacity: 1;
}

.auth-input:focus,
.login-input:focus,
.reg-input:focus {
    border-color: rgba(8, 129, 252, 0.85) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2), inset 0 1px 6px rgba(255, 255, 255, 0.14), 0 0 0 2px rgba(8, 129, 252, 0.16);
}

.auth-note,
.register-notice {
    width: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 4px;
    padding: 0;
    margin: 0;
    color: #fff;
}

.auth-note-heading {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.auth-note-heading img {
    width: 12px;
    height: 12px;
}

.auth-note-heading strong {
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.2;
}

.auth-note p {
    margin: 0;
    color: #fff;
    font-family: var(--text-body);
    font-size: 10px;
    font-weight: 400;
    line-height: 1.2;
    text-align: left;
}

.auth-actions {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.auth-page--login .auth-actions {
    align-items: stretch;
}

.auth-forgot-link,
.reset-password-text {
    display: block;
    width: 100%;
    color: var(--auth-blue);
    font-size: 10px;
    font-weight: 600;
    line-height: 1.2;
    text-align: right;
    text-decoration: underline;
    text-underline-position: from-font;
}

.auth-submit,
.login-button,
.register-button,
.send-email-button {
    width: 100%;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 10px;
    color: #fff;
    font-family: var(--text-body);
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    border: 0;
    border-radius: 10px;
    background: var(--auth-blue);
    cursor: pointer;
    transition: filter 0.16s ease, transform 0.16s ease;
}

.auth-submit:hover,
.login-button:hover,
.register-button:hover,
.send-email-button:hover {
    filter: brightness(0.94);
}

.auth-submit:active {
    transform: translateY(1px);
}

.auth-switch-text,
.register-text,
.login-text {
    width: 100%;
    margin: 0;
    color: #fff;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.2;
    text-align: center;
}

.auth-switch-text a,
.register-text a,
.login-text a {
    color: var(--auth-blue);
    font-size: 14px;
    font-weight: 600;
    text-decoration: underline;
    text-underline-position: from-font;
}

.auth-back-link,
.register-box-back {
    width: max-content;
    max-width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin: 32px auto 0;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
}

.auth-back-link img,
.register-box-back img {
    width: 5px;
    height: 8px;
    flex: 0 0 auto;
    transform: none;
}

.auth-message {
    width: 100%;
    margin: 0;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.25;
    text-align: left;
}

.auth-message--error {
    color: #ff8c8c;
}

.auth-message--success {
    color: #6ff0a0;
}

.auth-footer {
    width: 100vw;
    background: var(--auth-dark);
    color: #fff;
    font-family: var(--text-body);
    text-align: center;
}

.auth-footer-inner {
    width: min(100% - 32px, 398px);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.auth-footer-logo {
    width: 292px;
    margin-top: -8px;
}

.auth-footer-logo img {
    width: 100%;
    height: auto;
}

.auth-footer-description {
    width: 100%;
    margin-top: -2px;
    color: #fff;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.2;
}

.auth-footer-description p {
    margin: 0;
}

.auth-footer-description p + p {
    margin-top: 18px;
}

.auth-footer-links {
    width: 174px;
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.auth-footer-links strong {
    width: 100%;
    display: block;
    padding: 10px;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
}

.auth-footer-links a {
    width: max-content;
    max-width: 100%;
    display: inline-flex;
    justify-content: center;
    padding: 10px;
    color: #fff;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.2;
    text-decoration: none;
}

.auth-footer-links a:hover {
    color: var(--auth-blue);
}

.auth-footer-social-block {
    margin-top: 24px;
    gap: 0;
}

.auth-footer-social {
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-footer-social a {
    width: 35px;
    height: 33px;
    padding: 0;
}

.auth-footer-social img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.auth-footer-bottom {
    width: 100%;
    margin-top: 23px;
    padding: 10px 0 37px;
    border-top: 2px solid #fff;
    display: flex;
    justify-content: flex-end;
}

.auth-back-top {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    color: #fff;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.2;
    text-decoration: none;
}

.auth-back-top img {
    width: 19px;
    height: 19px;
}

@media (min-width: 768px) {
    .auth-mobile-screen {
        display: flex;
        flex-direction: column;
    }

    .auth-hero {
        min-height: 760px;
    }

    .auth-footer {
        padding: 56px 0 44px;
    }

    .auth-footer-inner {
        width: min(calc(100% - 96px), 1280px);
        display: grid;
        grid-template-columns: minmax(280px, 430px) repeat(3, max-content);
        align-items: start;
        justify-content: space-between;
        gap: 40px;
        text-align: left;
    }

    .auth-footer-logo {
        width: 292px;
        margin: 0 0 18px;
    }

    .auth-footer-description {
        grid-column: 1;
        margin: 0;
        font-size: 14px;
        text-align: left;
    }

    .auth-footer-links {
        width: 174px;
        margin-top: 0;
        align-items: flex-start;
    }

    .auth-footer-links strong,
    .auth-footer-links a {
        justify-content: flex-start;
        padding-left: 0;
        padding-right: 0;
    }

    .auth-footer-social {
        justify-content: flex-start;
    }

    .auth-footer-bottom {
        grid-column: 1 / -1;
        margin-top: 16px;
    }
}

@media (max-width: 767px) {
    body.auth-page {
        min-width: 320px;
    }

    .auth-hero {
        min-height: 883px;
        justify-content: center;
        padding: 198px 10px 0;
        background-position: 25.8% top;
        background-size: auto 883px;
    }

    .auth-page--login .auth-hero {
        padding-top: 278px;
    }

    .auth-page--forgot .auth-hero {
        padding-top: 316px;
    }

    .auth-page--login .auth-card {
        background: linear-gradient(329deg, rgba(51, 68, 99, 0) 0.98%, rgba(40, 53, 82, 0.45) 48.04%, rgba(31, 41, 64, 0.9) 95.1%);
    }

    .auth-page--forgot .auth-card {
        background: linear-gradient(335deg, rgba(51, 68, 99, 0) 0.98%, rgba(40, 53, 82, 0.45) 48.04%, rgba(31, 41, 64, 0.9) 95.1%);
    }
}

@media (max-width: 420px) {
    .auth-hero {
        padding-left: 6px;
        padding-right: 6px;
    }

    .auth-card {
        width: 100%;
    }

    .auth-note p {
        min-width: 0;
    }

    .auth-footer-inner {
        width: min(100% - 20px, 398px);
    }
}

.quickAddButton {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    width: 32px;
    height: 32px;
    background-color: var(--primary-button);
    border-radius: 16px;
    -webkit-transition: all .1s;
    transition: all .1s;
    font-weight: 500;
    font-size: 12px;
    line-height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.quickAddButton.expanded {
    background-color: #fff;
    border: 1px solid var(--primary-button);
    width: 72px;
}

.quickAddButton.expanded .btn {
    display: -webkit-box;
    display: flex;
    -webkit-box-align: center;
    align-items: center;
    -webkit-box-pack: center;
    justify-content: center;
}

.quickAddButton.expanded .quantity {
    min-width: 24px;
    display: -webkit-box;
    display: flex;
    -webkit-box-align: center;
    align-items: center;
    -webkit-box-pack: center;
    justify-content: center;
}

.quickAddButton:not(.expanded) .btn,
.quickAddButton:not(.expanded) .quantity {
    display: none;
}

.quickAddButton.expanded .expand-trigger {
    display: none;
}

.viewBasketButton {
    display: none;
}

@media screen and (max-width: 768px) {
    .product-right {
        display: none;
    }

    .product-left {
        position: relative;
    }

    .viewBasketButton {
        display: block;
        width: 80%;
        margin: auto;
        margin-top: 15px;
        position: sticky;
        bottom: 3rem;
        z-index: 1000;
    }

    .viewBasketButton button {
        background-color: var(--primary-button);
        color: white;
        padding: 10px 0px;
    }
}

@media screen and (min-width: 768px) {
    .viewBasketButton {
        display: none !important;
    }
}

.footer-links,
.footer-social {
    flex: none;
}

.bottom-navbar {
    display: flex;
    justify-content: space-around;
    margin: 0 auto;
    max-width: 1200px;
    width: 100%;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.menu-burger {
    padding: 0;
    color: var(--fourth);
    margin-left: 10px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 4px;
}

.menu-burger-title {
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 0 !important;
}

.user-menu li:first-child {
    margin-top: 8px;
    margin-bottom: 8px;
}

.header-username {
    color: #8f8f8f;
    padding: 8px 12px;
}

.user-input-card-info-container select,
.user-input-card-info-container input {
    width: 100%;
    min-height: 40px;
}

.wallet-label {
    font-weight: 600;
    font-size: 14px;
    color: #949494;
    font-family: 'montserrat-md';
}

.footer-intro {
    width: auto;
    max-width: none;
}
.footer-intro p {
    text-align: justify;
}

/* Footer grid overrides */
.footer-container {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    align-items: start;
}

.footer-intro {
    grid-column: span 2;
    transform: translateY(-13px);
}

.footer-intro img {
    max-width: 200px;
    height: auto;
}

/* Tablet */
@media (max-width: 992px) {
    .footer-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .footer-intro {
        grid-column: 1 / -1; /* span full width on tablet */
    }
}

/* Mobile */
@media (max-width: 576px) {
    .footer-container {
        grid-template-columns: 1fr; /* single column */
        gap: 12px;
    }
    .footer-intro {
        grid-column: 1 / -1;
    }
    .footer-intro p {
        text-align: left;
    }
}

/* ---------- Header nav (PC) ---------- */
.nav-menu ul {
    list-style: none;
    display: flex;
    gap: 8px;
    margin-left: 20px;
    padding: 0;
}
.nav-menu ul li {
    margin: 0;
}
.nav-menu a {
    display: inline-block;
    color: var(--primary-text);
    padding: 8px 14px;
    border-radius: 10px;
    font-family: montserrat-bold, sans-serif;
    letter-spacing: .2px;
    transition: color .15s ease, background .15s ease, box-shadow .15s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #0d79e2;
    background: rgba(13, 121, 226, 0.08);
    box-shadow: inset 0 0 0 1px #0d79e2;
}

/* Chỉ áp dụng trên màn hình >= 1024px để tránh ảnh hưởng menu mobile */
@media (max-width: 1023px) {
    .nav-menu a { box-shadow: none; background: transparent; }
}

.cart-container {
    position: relative;
}

.cart-payment-alert {
    position: absolute;
    top: calc(100% + 12px);
    right: -20px;
    width: 340px;
    padding: 16px 18px;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.14);
    display: flex;
    flex-direction: column;
    gap: 10px;
    color: #0f172a;
    z-index: 1100;
}

.cart-payment-alert::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 22px;
    width: 12px;
    height: 12px;
    background: inherit;
    border-left: 1px solid #e2e8f0;
    border-top: 1px solid #e2e8f0;
    transform: rotate(45deg);
}

.cart-payment-alert__header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-payment-alert__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: #e0f2fe;
    color: #0369a1;
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
}

.cart-payment-alert__label {
    font-size: 14px;
    font-weight: 600;
}

.cart-payment-alert__close {
    margin-left: auto;
    color: #94a3b8;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    transition: background 0.2s ease, color 0.2s ease;
}

.cart-payment-alert__close:hover,
.cart-payment-alert__close:focus {
    background: #f1f5f9;
    color: #0f172a;
    outline: none;
}

.cart-payment-alert__close:focus-visible {
    outline: 2px solid #94a3b8;
    outline-offset: 2px;
}

.cart-payment-alert__action {
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #0d6efd;
    text-decoration: none;
}

.cart-payment-alert__action:hover {
    color: #0b5ed7;
}

.cart-payment-alert--hidden {
    display: none !important;
}

@media (max-width: 768px) {
    .cart-payment-alert {
        position: fixed;
        top: 76px;
        left: 50%;
        transform: translateX(-50%);
        width: min(94vw, 340px);
        right: auto;
        box-shadow: 0 16px 40px rgba(15, 23, 42, 0.2);
        z-index: 1500;
    }

    .cart-payment-alert::before {
        display: none;
    }
}

.product-item-name {
    font-weight: bold;
}
.product-item-img-wrapper {
    display: flex;
    min-height: 100px;
}
.product-item-img-wrapper img {
    max-width: 100%;
    max-height: 100%;
    height: auto;
    object-fit: contain;
}
@media screen and (max-width: 768px) {
    .product-item {
        height: auto;
        max-height: fit-content;
    }

    .product-item-countdown {
        padding: 3px 4px;
    }
}
