@import url("https://fonts.googleapis.com/css2?family=Kanit:wght@400;500;600&display=swap");

* {
    font-family: "Kanit", sans-serif !important;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg_primary: #63533f;
    --bg_primary_hover: #442a16;
    --bg_secondary: #e2e2e2;
    --bg_badge: #f1f1f1;
}

/* width */
::-webkit-scrollbar {
    width: 10px;
}

/* Track */
::-webkit-scrollbar-track {
    background: #f1f1f1;
}

/* Handle */
::-webkit-scrollbar-thumb {
    background: #888;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
    background: #555;
}

img {
    /* image-rendering: pixelated; */
    /* image-rendering: crisp-edges; */
}

.custom-bg {
    background-color: var(--bg_primary) !important;
    border: 1px solid var(--bg_primary) !important;
}

.custom-bg:hover {
    background-color: var(--bg_primary_hover) !important;
    border-color: var(--bg_primary_hover) !important;
}

/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox */
input[type="number"] {
    -moz-appearance: textfield;
}

.h-line {
    width: 150px;
    margin: 0 auto;
    height: 1.7px;
}

.pop {
    cursor: pointer;
}

.pop:hover {
    border-top-color: var(--bg_primary_hover) !important;
    transform: scale(1.05);
    transition: 0.5s;
}

.nav-container {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

a.nav-link {
    font-size: 18px !important;
}

ul li a {
    position: relative;
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
}

ul li a:not(.nav-active, .dropdown-item):after {
    content: "";
    position: absolute;
    background-color: var(--bg_primary);
    height: 3px;
    width: 0;
    left: 50%;
    bottom: -3px;
    transition:
        width 0.2s ease,
        left 0.2s ease;
    transform: translateX(-50%);
}

ul li a:hover:after {
    width: 100%;
}

.nav-active {
    border-bottom: 3.5px solid var(--bg_primary);
    background-color: var(--bg_secondary);
    pointer-events: none;
}

.footer-content {
    background-color: var(--bg_secondary);
}

.footer-buttom {
    background-color: var(--bg_primary);
}

.badge {
    /* background-color: var(--bg_badge) !important; */
}

.modal-header {
    background-color: var(--bg_secondary) !important;
}

input:focus {
    border: 2px solid var(--bg_primary) !important;
}

a.profile:hover {
    background-color: var(--bg_secondary);
}

.dropdown-profile {
    width: 100%;
    /* max-width: 160px; */
}

.cursor-pointer {
    cursor: pointer;
}

.cart-icon {
    transition: transform 0.2s ease-in-out;
}

.cart-icon:hover {
    transform: scale(1.1);
}

.input-invalid {
    border: 2px solid #dc3545;
}
