/* chứa những thành phần chung */

:root {
    --primary-color: #ee4d2d;
    --white-color: #fff;
    --star-gold-color: #ffce3d;
    --black-color: #000;
    --text-color: #333;
    --border-color: #dbdbdb;
    --header-height: 120px;
    --header-navbar-height: 34px;
    --header-with-search-height: calc(var(--header-height) - var(--header-navbar-height));
    --header-sort-bar-height: 46px;
}

* {
    box-sizing: inherit; /*kế thừa từ thẻ chứa nó, thẻ html*/
}

html {
    font-size: 62.5%;
    line-height: 1.6rem;
    font-family: Arial, Helvetica, sans-serif;
    box-sizing: border-box;
}

.grid__row {
    display: flex;
    flex-wrap: wrap; /*tự đẩy xuống hàng*/
    margin-left: -5px;
    margin-right: -5px;
}

/* ----test----- */
.grid__column-2 {
    padding-left: 5px;
    padding-right: 5px;
    width: 16.6667%;
}

.grid__column-2-4 {
    padding-left: 5px;
    padding-right: 5px;
    width: 20%;
}

.grid__column-10 {
    padding-left: 5px;
    padding-right: 5px;
    width: 83.3333%;
}

/* Animation */

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes headerNotifyScale {
    from {
        opacity: 0;
        transform: scale(0);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes scale {
    from {
        transform: scale(var(--scale-begin));
    }
    to {
        transform: scale(var(--scale-end));
    }
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    animation: fadeIn linear 0.1s;
}

.modal__overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
}

.modal__body {
    --scale-begin: 0.7;
    --scale-end: 1;
    position: relative;
    margin: auto;
    z-index: 1;
    animation: scale linear 0.1s;
}

/* button */

button {
    background-color: #fff;
}

.btn {
    min-width: 142px;
    height: 34px;
    text-decoration: none;
    border: none;
    border-radius: 2px;
    font-size: 1.5rem;
    padding: 0 12px;
    cursor: pointer;
    outline: none;
    color: var(--text-color);
    display: inline-flex;
    justify-content: center;
    align-items: center;
    line-height: 1.6rem;
}

.btn.btn--nomal:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

/* element phải có cả 2 class mới nhận */
.btn.btn--primary {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.btn.btn--disabled {
    color: #949494;
    background-color: #c3c3c3;
    cursor: default;
}

.btn--size-s {
    height: 32px;
    font-size: 1.2rem;
    padding: 0 8px;
}

.btn--with-icon {
}

/* float */
.f-right {
    float: right;
}

.f-left {
    float: left;
}

.mg-12 {
    margin: 12px !important;
}

.mr-4 {
    margin-right: 4px !important;
}

.mt-32 {
    margin-top: 32px;
}

.mb-32 {
    margin-bottom: 32px;
}

/* padding */
.pr-8 {
    padding-right: 8px;
}

.pt-36 {
    padding-top: 36px;
}

/* select input */
.select-input {
    position: relative;
    background-color: var(--white-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    line-height: 1.6rem;
    height: 34px;
    padding: 0 12px;
    min-width: 200px;
    cursor: pointer;
    border-radius: 3px;
    margin: 0 5px;
}

.select-input:hover .select-input__list {
    display: block;
}

.select-input__label {
    font-size: 1.4rem;
}

.select-input__icon {
    font-size: 1.6rem;
    color: var(--text-color);
}

.select-input__list {
    background-color: var(--white-color);
    position: absolute;
    top: 25px;
    left: 0;
    right: 0;
    list-style-type: none;
    padding: 8px 12px;
    border-radius: 3px;
    z-index: 1;
    display: none;
}

.select-input__item {
}

.select-input__link {
    text-decoration: none;
    color: var(--text-color);
    font-size: 1.4rem;
    display: block;
    padding: 8px 0;
}

.select-input__link:hover {
    color: var(--primary-color);
}

/* Pagination */
.pagination {
    display: flex;
    list-style: none;
    justify-content: center;
    padding-left: 0;
}

.pagination__item {
    margin: 0 15px;
}

.pagination__item--active .pagination__link {
    background-color: var(--primary-color);
    color: var(--white-color);
    border-radius: 3px;
}

.pagination__link {
    display: block;
    text-decoration: none;
    font-size: 2rem;
    min-width: 40px;
    height: 32px;
    line-height: 32px;
    text-align: center;
    color: #989898;
}

.pagination__pointer {
    cursor: default;
}
