html {
    scroll-behavior: smooth;
}

a {
    text-decoration: none;
}

/* ==== Font ===== */
@font-face {
    font-family: "Steamed";
    src: url("../font/Steamed.otf") format("truetype");
    font-weight: 500;
    /* normal */
    font-style: normal;
}

.font-Steamed {
    font-family: "Steamed", sans-serif;
}

@font-face {
    font-family: "ZFTERMIN_";
    src: url("../font/ZFTERMIN_.ttf") format("truetype");
    font-weight: 800;
    /* normal */
    font-style: normal;
}

.font-ZFTERMIN_ {
    font-family: "ZFTERMIN_", sans-serif;
}

@font-face {
    font-family: "PSL345pro";
    src: url("../font/PSL345pro.otf") format("truetype");
    font-weight: 800;
    /* normal */
    font-style: normal;
}

.font-PSL345pro {
    font-family: "PSL345pro", sans-serif;
}

@font-face {
    font-family: "DBHelvethaicaX";
    src: url("../font/DBHelvethaicaX.ttf") format("truetype");
    font-weight: 800;
    /* normal */
    font-style: normal;
}

.font-DBHelvethaicaX {
    font-family: "DBHelvethaicaX", sans-serif;
}

@font-face {
    font-family: "FCVisionCondensed";
    src: url("../font/FCVisionCondensed.otf") format("truetype");
    font-weight: 800;
    /* normal */
    font-style: normal;
}

.font-FCVisionCondensed {
    font-family: "FCVisionCondensed", sans-serif;
}

:root {
    --fs-h1: clamp(36px, 2.5vw + 24px, 80px);
    --fs-h2: clamp(30px, 2vw + 20px, 64px);
    --fs-h3: clamp(26px, 1.5vw + 20px, 52px);
    --fs-h4: clamp(23px, 1.2vw + 18px, 35px);
    --fs-h5: clamp(18px, 1vw + 16px, 28px);
    --fs-h6: clamp(16px, 0.8vw + 14px, 20px);
    --fs-p: clamp(14px, 0.5vw + 14px, 17px);
    --fs-small: clamp(12px, 0.25vw + 12px, 14px);
}

html,
body {
    overflow-x: hidden !important;
}

body {
    position: relative;
    font-family: "Kanit", sans-serif;
    background: url("../images/background/main.png");
    background-position: top;
    background-size: cover;
    color: #fff;

    width: 100%;
    min-height: 100dvh;
}

/* ==== font ==== */

h1,
.h1 {
    font-size: var(--fs-h1);
}

h2,
.h2 {
    font-size: var(--fs-h2);
}

h3,
.h3 {
    font-size: var(--fs-h3);
}

h4,
.h4 {
    font-size: var(--fs-h4);
}

h5,
.h5 {
    font-size: var(--fs-h5);
}

h6,
.h6 {
    font-size: var(--fs-h6);
    line-height: 22px;
}

p,
.p {
    font-size: var(--fs-p);
}

small,
.small {
    font-size: var(--fs-small);
}

.ci-primary {
    color: #ffda60;
}

.ci-gray {
    color: #959595;
}

/* ==== navbar ==== */
.navbar_Logo {
    position: fixed;
    z-index: 10;
    top: 20px;
    left: 20px;

    width: 130px;
    filter: drop-shadow(0px 0px 1px #000);
}

.navbar_socialMainLayout {
    position: fixed;
    z-index: 1056;
    top: 30px;
    right: 20px;

    width: 50px;
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 10px;
}

.social_menu {
    position: relative;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;

    background: url("../images/button/nav_social.png");
    background-position: center;
    background-size: cover;

    cursor: pointer;
    transition: all .5s;
}

.social_menu img {
    width: 30px;
    height: 30px;
    padding-bottom: 5px;

    filter: drop-shadow(0px 0px 0px #633f13)drop-shadow(1px 1px 2px #000000a9);
}

.social_menu i {
    color: #fff;
    font-size: 15px;

    text-shadow: 2px 2px 0 #633f13, -2px 2px 0 #633f13, 2px -2px 0 #633f13, -2px -2px 0 #633f13, 2px 0 0 #633f13, -2px 0 0 #633f13, 0 2px 0 #633f13, 0 -2px 0 #633f13;
}


.social_menu:hover {
    box-shadow: 0px 0px 10px #ffbb00d8;
}

.social_menu_cartCount {
    position: absolute;
    top: 0;
    right: 0;

    width: 20px;
    height: 20px;
    border-radius: 50px;
    font-size: 12px;
    background: #ED5E5E;
    color: #fff;

    display: flex;
    align-items: center;
    justify-content: center;
}

.navbar_mainLayout {
    position: fixed;
    z-index: 10;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: fit-content;
    min-width: 450px;
    max-width: 1200px;
    border-radius: 50px;
    padding: 10px;
    min-height: 50px;
    /* background: #1d1d1d; */
    background: #1d1d1dbd;
    border: 1px solid #cccccc;
    box-shadow: inset 1px 1px 10px 5px #0b0b0b;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.navbar_menu {
    width: fit-content;
    min-width: 120px;
    min-height: 40px;
    padding: 5px 10px;
    padding-bottom: 10px;
    border-radius: 50px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-family: "Steamed", sans-serif;
    font-size: 20px;
    line-height: 20px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #4a4a4a;
    background: transparent;
    text-shadow:
        3px 3px 0 transparent,
        -3px 3px 0 transparent,
        3px -3px 0 transparent,
        -3px -3px 0 transparent,
        3px 0 0 transparent,
        -3px 0 0 transparent,
        0 3px 0 transparent,
        0 -3px 0 transparent;

    cursor: pointer;
    transition: all .5s;
}

.navbar_menu.xxl {
    width: fit-content;
    min-width: 220px;
}

.navbar_menu.xl {
    width: fit-content;
    min-width: 180px;
}

.navbar_menu:hover,
.navbar_menu.active {
    color: #ffffff;
    text-shadow:
        3px 3px 0 #633f13,
        -3px 3px 0 #633f13,
        3px -3px 0 #633f13,
        -3px -3px 0 #633f13,
        3px 0 0 #633f13,
        -3px 0 0 #633f13,
        0 3px 0 #633f13,
        0 -3px 0 #633f13;

    background: #fed250;
    border: 2px solid #633f13;
    box-shadow: inset 1px -2px 1px 1px #d7a81a, inset 2px 2px 1px 1px #ffffff80;
}

body.modal-open .navbar_socialMainLayout .social_menu:not(.langBtn) {
    pointer-events: none;
    filter: brightness(0.5);
}


/* ==== Loading Overlay Styles ==== */

#loadingOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.733);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    transform: scale(1);
}

#loadingOverlay.fade-out {
    animation: fadeOut 0.3s ease-in-out forwards;
}

.loading-container {
    text-align: center;
    padding: 30px;
}

.loading-spinner {
    width: 120px;
    height: 120px;
    /* margin: 0 auto 15px;
    border: 6px solid #a09e1775;
    border-top: 6px solid #ffd412;
    border-radius: 50%; */
    /* animation: spin 1s linear infinite; */
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: scale(1);
    }

    to {
        opacity: 0;
        transform: scale(0.95);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.loading {
    width: 100%;
    height: 30px;
    background: linear-gradient(0deg, #1b1615ab 10%, #702500a6 90%);
    border: 1px solid #f4c463a3;
    border-radius: 5px;
}


#loadingDownload {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.733);
    backdrop-filter: blur(5px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    transform: scale(1);
}

#loadingDownload.fade-out {
    animation: fadeOut 0.3s ease-in-out forwards;
}

/* ป้องกัน content กระโดดเวลาปิด/เปิด modal */
body.modal-open {
    padding-right: 0 !important;
}

/* ==== BUTTON ====  */
.btn {
    width: 235px;
    min-width: 235px;
    height: 49px;
    padding: 5px 20px;
    border: 0px solid transparent;
}

.btn.xxxl {
    width: 620px;
    min-width: 620px;
    height: 80px;
    padding: 20px;
}

.btn.xxl {
    width: 330px;
    min-width: 330px;
    height: 70px;
    padding: 20px;
}

.btn.xxl {
    width: 330px;
    min-width: 330px;
    height: 70px;
    padding: 20px;
}

.btn.sm {
    width: 200px;
    min-width: 200px;
    height: 42px;
    padding: 5px;
}

.btn.ssm {
    width: 150px;
    min-width: 150px;
    height: 30px;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn.sm span {
    color: #fff;
    text-shadow: 2px 2px 0 #633f13, -2px 2px 0 #633f13, 2px -2px 0 #633f13, -2px -2px 0 #633f13, 2px 0 0 #633f13, -2px 0 0 #633f13, 0 2px 0 #633f13, 0 -2px 0 #633f13;
    text-transform: uppercase;
    font-size: 20px;
    font-weight: 800;
    line-height: 20px;
    font-family: "PSL345pro", sans-serif;
    letter-spacing: 2px;
}

.btn.ssm span {
    color: #fff;
    text-shadow: 2px 2px 0 #633f13, -2px 2px 0 #633f13, 2px -2px 0 #633f13, -2px -2px 0 #633f13, 2px 0 0 #633f13, -2px 0 0 #633f13, 0 2px 0 #633f13, 0 -2px 0 #633f13;
    text-transform: uppercase;
    font-size: 20px;
    font-weight: 800;
    line-height: 20px;
    font-family: "PSL345pro", sans-serif;
    letter-spacing: 2px;
}

.btn.icon.danger {
    width: 35px;
    height: 35px;
    min-width: 35px;
    padding: 0;
    border-radius: 10px;
    font-size: 13px;
    transition: all .5s;
    background: #950000;
    border: 1px solid #950000;
    color: #fff;
}

.btn.icon.danger:hover {
    background: #fff;
    border: 1px solid #950000;
    color: #950000;
}

.btn.primary {
    background: url("../images/button/button_primary.png");
    background-position: center;
    background-size: cover;
    filter: drop-shadow(1px 3px 1px #000000e1);
    color: #84510a;
    border: 0px solid;

    transition: all .5s;
}



.btn.secondary {
    background: url("../images/button/button_primary_02.png");
    background-position: center;
    background-size: cover;
    filter: drop-shadow(1px 3px 1px #000000e1);
    color: #84510a;
    border: 0px solid;

    transition: all .5s;
}

.btn.primary:hover,
.btn.secondary:hover {
    filter: drop-shadow(1px 2px 10px #ffc354);
}

.btn.socialMedai {
    width: 420px;
    height: 50px;
    border-radius: 50px;
    padding: 5px 20px;

    border: 1px solid #fff;
    background: #fff;

    display: flex;
    align-items: center;
    gap: 10px;

    transition: all .5s;
    box-shadow: 1px 1px 5px #00000054;
}

.btn.socialMedai.facebook {
    background: #1877F2;
    border: 1px solid #1877F2;
    color: #fff;
}

.btn.socialMedai.facebook:hover {
    background: #fff;
    color: #1877F2;
}

.btn.socialMedai.apple {
    background: #000;
    border: 1px solid #000;
    color: #fff;
}


.btn.socialMedai.apple:hover {
    background: #fff;
    color: #000;
}

.btn.socialMedai.google {
    background: #fff;
    border: 1px solid #fff;
    color: #000;
}

.btn.socialMedai.google:hover {
    background: #0c75ff;
    border: 1px solid #0c75ff;
    color: #fff;
}


.btn.socialMedai span {
    display: block;
    width: 100%;

    font-size: 18px;
    font-weight: 500;
}

.btn.socialMedai i {
    font-size: 25px;
}

.btn.socialMedai img {
    width: 22px;
    height: 22px;
}

.btn.socialMedai.huawei img {
    width: 30px;
    height: 30px;
}

.btn.modal_close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 40px;
    min-width: 40px;
    height: 40px;
    background: #323232;
    color: #fff;
    font-size: 25px;
    border-radius: 50%;

    transition: all .5s;
}

.btn.modal_close:hover {
    background: #c41414;
    color: #fff;
}

.btn.primarySweetAlert {
    background: url("../images/button/button_primary.png");
    background-position: center;
    background-size: cover;

    filter: drop-shadow(1px 3px 1px #000000e1);
    border: 0px solid;
    transition: all .5s;
    color: #fff !important;
    text-shadow: 2px 2px 0 #633f13, -2px 2px 0 #633f13, 2px -2px 0 #633f13, -2px -2px 0 #633f13, 2px 0 0 #633f13, -2px 0 0 #633f13, 0 2px 0 #633f13, 0 -2px 0 #633f13;
    text-transform: uppercase;

    font-size: 16px;
    line-height: 16px;
    font-weight: 700;
    letter-spacing: 2px;

    width: 185px;
    min-width: 185px;
    height: 39px;
}

.btn.secondarySweetAlert {
    background: #323232;
    color: #b6b6b6;

    width: 120px;
    min-width: 120px;
    height: 39px;
    border-radius: 50px;

    font-size: 16px;
    line-height: 16px;
    font-weight: 700;
}

/* ==== INPUT ==== */
/* STYLE F */

.checkbox.style-f {
    display: inline-block;
    position: relative;
    padding-left: 30px;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.checkbox.style-f input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}


.checkbox.style-f input:checked~.checkbox__checkmark:after {
    transform: scale(1);
}

.checkbox.style-f .checkbox__checkmark {
    position: absolute;
    top: 0px;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: #fff0bf;
    transition: background-color 0.25s ease;
    border-radius: 5px;

    display: flex;
    align-items: center;
    justify-content: center;
}

.checkbox.style-f .checkbox__checkmark:after {
    content: "";
    position: absolute;
    left: 5px;
    top: 4px;
    width: 12px;
    height: 12px;
    display: block;
    background-color: #d9b600;
    border-radius: 4px;
    transform: scale(0);
    transition: transform 0.25s ease;
}

.checkbox.style-f .checkbox__body {
    color: #333;
    line-height: 1.4;
    font-size: 16px;
    transition: font-weight 0.25s ease;
}

.inputError_text {
    margin-top: 5px;
    width: fit-content;
    height: 30px;
    padding: 2px 15px;
    border-radius: 50px;
    display: none;
    align-items: center;
    gap: 5px;
    background: #ffe0e0;
    color: #dd0000;
}

/* ซ่อน spinner ใน Chrome, Safari, Edge */
input.no-spin::-webkit-outer-spin-button,
input.no-spin::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* ซ่อน spinner ใน Firefox */
input.no-spin[type=number] {
    -moz-appearance: textfield;
}


/* ==== MODAL ==== */
.modal-content {
    background: #fbe886;
    border-radius: 30px;
    box-shadow: 1px 1px 5px #000;
    padding: 10px;
}

.modalContent_layout {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 500px;
    border-radius: 25px;
    padding: 40px 50px;
    background: #fffaf0;
    color: #000;
    border: 4px solid #bfa26b;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}


/* ===== Offcanva =====  */
.offcanvas.profile,
.offcanvas.cart {
    background-color: #202020;
    box-shadow: 5px 0px 10px #00000088;
    color: #fff;
    z-index: 1081;
}

.offcanvas-backdrop.show {
    z-index: 1080;
}

/* ==== sweetalert2 ====  */

div:where(.swal2-container),
div:where(.swal2-container) {
    z-index: 1082 !important;
}

.swal2-show {
    background: #fffaf0;
    color: #000;
    border: 4px solid #bfa26b;
    border-radius: 30px;
    box-shadow: 0px 0px 0px 5px #fbe886;
}

tbody,
td,
tfoot,
th,
thead,
tr {
    vertical-align: middle;
}