:root {
    --primary: #c471ed;
    --white-color: #fff;
    --black-color: #000;
    --text-color: #333;
    --border-color: #dbdbdb;

    --header-height: 60px;
    --navbar-height: 34px;
    --header-with-search-height: calc(var(--header-height) - var(--navbar-height));
    --header-sort-bar-height: 46px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    list-style: none;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

html {
    font-size: 62.5%;
    line-height: 1.6rem;
    font-family: 'Roboto', sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: #fff;
}

/* Loader CSS */
.loader-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    /* Đặt chiều cao tối thiểu để loader không bị quá nhỏ trên các vùng chứa hẹp */
    min-height: 300px;

    /* Xóa bỏ loader-wrapper khi không còn loader bên trong, 
       tránh chiếm không gian thừa */
    &:empty {
        display: none;
    }
}

.loader {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 6px solid rgba(255, 127, 80, 0.2);
    border-top-color: #ff7f50;
    animation: spin 1s ease-in-out infinite;
}

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