@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-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 {
    --tc-blue: #0881fc;
    --tc-blue-soft: #4da7ff;
    --tc-navy: #1f366b;
    --tc-dark: #000b1d;
    --tc-muted: #667085;
    --tc-white: #ffffff;
    --tc-heading: "Anton SC", Impact, sans-serif;
    --tc-body: "Bai Jamjuree", Arial, sans-serif;
    --tc-container: 1520px;
    --tc-page-pad: clamp(24px, 5vw, 96px);
    --tc-header-height: 84px;
}

* {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    font-family: var(--tc-body);
}

body:has(.tc-menu-toggle:checked) {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
}

img {
    display: block;
    max-width: 100%;
}

.tc-container,
.tc-header-inner,
.tc-footer-inner {
    width: min(calc(100% - (var(--tc-page-pad) * 2)), var(--tc-container));
    margin: 0 auto;
}

.tc-header {
    position: sticky;
    top: 0;
    z-index: 20;
    width: 100%;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 1px 0 rgba(31, 54, 107, 0.08);
    backdrop-filter: blur(14px);
}

.tc-header-inner {
    min-height: var(--tc-header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(24px, 3vw, 56px);
}

.tc-logo {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
}

.tc-logo img {
    width: clamp(150px, 13vw, 206px);
    height: auto;
}

.tc-nav,
.tc-auth {
    display: flex;
    align-items: center;
}

.tc-mobile-drawer {
    display: contents;
}

.tc-nav {
    justify-content: center;
    gap: clamp(6px, 1.1vw, 20px);
    flex: 1 1 auto;
    min-width: 0;
}

.tc-nav-button {
    position: relative;
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    padding: 8px clamp(8px, 0.8vw, 14px);
    border-radius: 10px;
    color: var(--tc-navy);
    font-size: clamp(13px, 0.84vw, 16px);
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    transition: color 0.18s ease, opacity 0.18s ease;
}

.tc-nav-button:hover,
.tc-nav-button:focus-visible {
    outline: none;
}

.tc-nav-button.active {
    color: var(--tc-blue);
}

.tc-nav-button:hover::after,
.tc-nav-button:focus-visible::after,
.tc-nav-button.active::after {
    content: "";
    position: absolute;
    left: clamp(8px, 0.8vw, 14px);
    right: clamp(8px, 0.8vw, 14px);
    bottom: 3px;
    height: 2px;
    background: var(--tc-navy);
}

.tc-nav-button.active::after{
    background: var(--tc-blue);
}

.tc-nav-button.is-disabled {
    opacity: 0.48;
    cursor: default;
}

.tc-user-wallet.is-disabled,
.tc-user-cart.is-disabled {
    pointer-events: none;
    cursor: default;
}

.tc-auth {
    justify-content: flex-end;
    gap: clamp(12px, 1vw, 20px);
    flex: 0 0 auto;
}

.tc-auth-authenticated {
    gap: 16px;
}

.tc-auth-button,
.tc-user-balance,
.tc-user-link {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    font-size: 16px;
    line-height: 1;
    white-space: nowrap;
}

.tc-sign-in,
.tc-user-balance {
    color: var(--tc-navy);
    font-weight: 700;
}

.tc-sign-in:hover,
.tc-user-balance:hover {
    color: var(--tc-blue);
}

.tc-sign-up,
.tc-user-link {
    min-width: 96px;
    border-radius: 999px;
    background: var(--tc-blue);
    color: var(--tc-white);
    font-weight: 700;
}

.tc-sign-up:hover,
.tc-user-link:hover {
    background: var(--tc-blue-soft);
}

.tc-user-wallet {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--tc-blue);
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    transition: color 0.18s ease, opacity 0.18s ease;
}

.tc-user-wallet:hover,
.tc-user-wallet:focus-visible {
    color: var(--tc-blue-soft);
    outline: none;
}

.tc-user-wallet img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.tc-user-cart {
    position: relative;
    width: 32px;
    height: 48px;
    display: inline-block;
    color: var(--tc-white);
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.tc-user-cart:hover,
.tc-user-cart:focus-visible {
    opacity: 0.82;
    outline: none;
}

.tc-user-cart > img {
    position: absolute;
    left: 0;
    top: 13px;
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.tc-user-cart span {
    position: absolute;
    left: 12px;
    top: 0;
    min-width: 21px;
    height: 21px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1px 5px 2px 6px;
    border-radius: 999px;
    background: #fa8007;
    color: #fff;
    font-size: 14px;
    font-weight: 400;
    line-height: 1;
}

.tc-user-profile {
    position: relative;
    width: 48px;
    height: 48px;
    display: inline-flex;
    flex: 0 0 auto;
}

button.tc-user-profile {
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
}

.tc-user-menu {
    position: relative;
    display: inline-flex;
}

.tc-user-menu-toggle:focus-visible {
    border-radius: 999px;
    outline: 2px solid var(--tc-blue);
    outline-offset: 3px;
}

.tc-user-menu-toggle .tc-user-profile-control img:last-child {
    transition: transform 0.18s ease;
}

.tc-user-menu:hover .tc-user-profile-control img:last-child,
.tc-user-menu:focus-within .tc-user-profile-control img:last-child {
    transform: rotate(180deg);
}

.tc-user-avatar {
    width: 47px;
    height: 47px;
    border-radius: 50%;
    object-fit: cover;
}

.tc-user-profile-control {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.tc-user-profile-control img:first-child,
.tc-user-profile-control img:last-child {
    position: absolute;
    inset: 0;
    width: 20px;
    height: 20px;
}

.tc-user-profile-control img:last-child {
    inset: 2px;
    width: 16px;
    height: 16px;
}

.tc-user-menu-panel {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    z-index: 1000;
    min-width: 232px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px;
    border: 1px solid rgba(31, 54, 107, 0.14);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 18px 40px rgba(31, 54, 107, 0.16);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-4px);
    visibility: hidden;
    transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease;
}

.tc-user-menu::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 12px;
}

.tc-user-menu:hover .tc-user-menu-panel,
.tc-user-menu:focus-within .tc-user-menu-panel {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    visibility: visible;
}

.tc-user-menu-email {
    max-width: 260px;
    margin-bottom: 4px;
    padding: 10px 12px 12px;
    border-bottom: 1px solid rgba(31, 54, 107, 0.1);
    color: var(--tc-navy);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    word-break: break-word;
}

.tc-user-menu-item {
    width: 100%;
    min-height: 38px;
    display: flex;
    align-items: center;
    padding: 9px 12px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--tc-navy);
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    text-align: left;
    cursor: pointer;
}

.tc-user-menu-item:hover,
.tc-user-menu-item:focus-visible {
    background: rgba(8, 129, 252, 0.08);
    color: var(--tc-blue);
    outline: none;
}

.tc-user-menu-form {
    margin: 0;
}

.tc-menu-toggle,
.tc-menu-button {
    display: none;
}

.tc-footer {
    position: relative;
    z-index: 2;
    background: #020b18;
    color: #fff;
    padding: clamp(56px, 5.4vw, 96px) 0 68px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tc-footer-inner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: clamp(34px, 5vw, 80px);
    border-bottom-style: solid;
    border-color: var(--tc-white);
    padding-bottom: 46px;
}

.tc-footer-brand {
    width: min(100%, 430px);
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.tc-footer-brand p {
    margin: 20px 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 15px;
    line-height: 1.7;
}

.tc-logo-footer img {
    width: 430px;
    position: absolute;
    transform: translate(-59px, 10px);
}

.tc-footer-links {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 150px;
    color: rgba(255, 255, 255, 0.72);
}

.tc-footer-links#social{
    gap: 0px;
}

.tc-footer-links strong {
    margin-bottom: 8px;
    color: var(--tc-white);
    font-size: 16px;
}

.tc-footer-links a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 15px;
    line-height: 1.25;
}

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

.tc-footer-links a.is-disabled {
    opacity: 0.48;
    cursor: default;
}

.tc-footer-social {
    display: flex;
}

.tc-footer-social a {
    width: 35px;
    height: 33px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

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

.tc-footer-nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
    gap: 10px;
    padding: 24px 188px;
}

.tc-back-top {
    right: max(var(--tc-page-pad), calc((100vw - var(--tc-container)) / 2));
    bottom: 28px;
    color: var(--tc-white);
    font-weight: 700;
}

@media (max-width: 1180px) {
    .tc-header-inner {
        gap: 18px;
    }

    .tc-nav {
        gap: 8px;
    }

    .tc-auth-button {
        padding-inline: 14px;
    }
}

@media (max-width: 960px) {
    :root {
        --tc-header-height: 73px;
    }

    body {
        padding-top: var(--tc-header-height);
    }

    .tc-header {
        position: fixed;
        left: 0;
        right: 0;
        top: 0;
        z-index: 100;
        background: #fff;
        box-shadow: none;
        backdrop-filter: none;
    }

    .tc-header-inner {
        width: calc(100% - 32px);
        min-height: var(--tc-header-height);
        position: relative;
        gap: 12px;
    }

    .tc-header {
        z-index: 120;
    }

    .tc-logo {
        display: none;
    }

    .tc-menu-button {
        width: auto;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        order: 1;
        margin-left: 0;
        color: var(--tc-blue);
        cursor: pointer;
    }

    .tc-menu-icon {
        width: 20px;
        height: 18px;
        display: inline-flex;
        flex-direction: column;
        justify-content: space-between;
        flex: 0 0 auto;
    }

    .tc-menu-icon span {
        width: 20px;
        height: 3px;
        border-radius: 999px;
        background: currentColor;
        transition: transform 0.2s ease, opacity 0.2s ease;
    }

    .tc-menu-title {
        color: currentColor;
        font-size: 18px;
        font-weight: 700;
        line-height: 1;
        white-space: nowrap;
    }

    .tc-menu-toggle:checked + .tc-menu-button .tc-menu-icon span:nth-child(1) {
        transform: translateY(7.5px) rotate(45deg);
    }

    .tc-menu-toggle:checked + .tc-menu-button .tc-menu-icon span:nth-child(2) {
        opacity: 0;
    }

    .tc-menu-toggle:checked + .tc-menu-button .tc-menu-icon span:nth-child(3) {
        transform: translateY(-7.5px) rotate(-45deg);
    }

    .tc-mobile-drawer {
        position: fixed;
        left: 0;
        right: 0;
        top: var(--tc-header-height);
        bottom: 0;
        z-index: 90;
        display: none;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        overflow-y: auto;
        padding: 18px var(--tc-page-pad) calc(24px + env(safe-area-inset-bottom));
        background: #fff;
        box-shadow: 0 24px 60px rgba(31, 54, 107, 0.16);
    }

    .tc-nav {
        position: static;
        width: 100%;
        flex: 0 0 auto;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 8px;
        padding: 0;
        background: transparent;
        box-shadow: none;
    }

    .tc-auth {
        position: relative;
        order: 3;
        width: auto;
        flex: 0 0 auto;
        min-height: 0;
        margin-left: auto;
        align-items: center;
        justify-content: flex-end;
        flex-wrap: nowrap;
        gap: 8px;
        padding: 0;
        border-top: 0;
        background: transparent;
        box-shadow: none;
    }

    .tc-menu-toggle:checked ~ .tc-mobile-drawer {
        display: flex;
    }

    .tc-nav-button {
        min-height: 48px;
        justify-content: flex-start;
        padding: 0 14px;
        border-radius: 8px;
        font-size: 16px;
    }

    .tc-nav-button:hover::after,
    .tc-nav-button:focus-visible::after,
    .tc-nav-button.active::after {
        display: none;
    }

    .tc-nav-button.active {
        background: transparent;
    }

    .tc-mobile-drawer .tc-user-menu:hover .tc-user-profile-control img:last-child,
    .tc-mobile-drawer .tc-user-menu:focus-within .tc-user-profile-control img:last-child {
        transform: none;
    }

    .tc-mobile-drawer .tc-user-menu-panel {
        display: none;
    }

    .tc-footer-inner {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 620px) {
    :root {
        --tc-page-pad: 16px;
    }

    .tc-header-inner {
        width: calc(100% - 32px);
    }

    .tc-auth {
        gap: 7px;
        min-height: 0;
    }

    .tc-auth-button {
        min-height: 36px;
        padding: 7px 10px;
        font-size: 14px;
    }

    .tc-sign-up {
        display: none;
    }

    .tc-user-wallet {
        width: auto;
        gap: 3px;
        font-size: 13px;
    }

    .tc-user-wallet img {
        width: 18px;
        height: 18px;
    }

    .tc-user-cart {
        width: 28px;
        height: 42px;
    }

    .tc-user-cart > img {
        top: 12px;
        width: 19px;
        height: 19px;
    }

    .tc-user-cart span {
        left: 11px;
        min-width: 20px;
        height: 20px;
        font-size: 13px;
    }

    .tc-user-profile,
    .tc-user-avatar {
        width: 38px;
        height: 38px;
    }

    .tc-user-profile-control,
    .tc-user-profile-control img:first-child,
    .tc-user-profile-control img:last-child {
        width: 18px;
        height: 18px;
    }

    .tc-user-profile-control img:last-child {
        inset: 2px;
        width: 14px;
        height: 14px;
    }

    .tc-menu-title {
        font-size: 18px;
    }

    .tc-footer {
        padding: 48px 0 64px;
    }

    .tc-footer-inner {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .tc-footer-brand p {
        font-size: 14px;
    }

    .tc-back-top {
        left: var(--tc-page-pad);
        right: auto;
    }
}

@media (max-width: 390px) {
    .tc-logo img {
        width: 156px;
    }
}
