:root {
    --white-color: #fff;
    --black-color: #000;
    --text-color: #333333;
    --primary-color: #d71921;
    --header-height: 10rem;
}

* {
    box-sizing: inherit;
}

html {
    font-size: 62.5%; /* 1rem = 10px */
    line-height: 1.6rem;
    box-sizing: border-box;
    color: var(--text-color);
    scroll-behavior: smooth;
    /*font-family: "FZ_Poppins-Regular";*/
    font-family: "Inter", sans-serif;
    font-optical-sizing: auto;

    /* Better Font Rendering =========== */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0;
}

a {
    text-decoration: none;
    display: inline-block;
}

.toast-message {
    font-size: 1.3rem !important;
}

.div-loading {
    background: #000000;
    display: none;
    opacity: 0.6;
    height: 100%;
    width: 100%;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 99999;
}

.div-loading .image-loading-popup {
    position: absolute;
    top: 40%;
    left: 47%;
    padding: 10px;
}

.grid {
    width: 80%;
    max-width: 1320px;
    margin: 0 auto;
}

.grid__full-width {
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
}

.grid__row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -12px;
    margin-right: -12px;
}

.grid__col-1 {
    padding-left: 12px;
    padding-right: 12px;
    width: calc(100% / 12 * 1);
}

.grid__col-2 {
    padding-left: 12px;
    padding-right: 12px;
    width: calc(100% / 12 * 2);
}

.grid__col-3 {
    padding-left: 12px;
    padding-right: 12px;
    width: calc(100% / 12 * 3);
}

.grid__col-4 {
    padding-left: 12px;
    padding-right: 12px;
    width: calc(100% / 12 * 4);
}

.grid__col-5 {
    padding-left: 12px;
    padding-right: 12px;
    width: calc(100% / 12 * 5);
}

.grid__col-6 {
    padding-left: 12px;
    padding-right: 12px;
    width: calc(100% / 12 * 6);
}

.grid__col-7 {
    padding-left: 12px;
    padding-right: 12px;
    width: calc(100% / 12 * 7);
}

.grid__col-8 {
    padding-left: 12px;
    padding-right: 12px;
    width: calc(100% / 12 * 8);
}

.grid__col-9 {
    padding-left: 12px;
    padding-right: 12px;
    width: calc(100% / 12 * 9);
}

.grid__col-10 {
    padding-left: 12px;
    padding-right: 12px;
    width: calc(100% / 12 * 10);
}

.grid__col-11 {
    padding-left: 12px;
    padding-right: 12px;
    width: calc(100% / 12 * 11);
}

.grid__col-12 {
    padding-left: 12px;
    padding-right: 12px;
    width: 100%;
}

.text-primary {
    color: var(--primary-color) !important;
}

.pull-right {
    display: flex;
    flex-direction: row-reverse;
    text-align: right;
}

.clear-both {
    clear: both;
}

.cursor-default {
    cursor: default;
}

.cursor-pointer {
    cursor: pointer;
}

.cursor-text {
    cursor: text;
}

.t-l-through {
    text-decoration: line-through;
}

.f-w-600 {
    font-weight: 700;
}

.bg-image {
    background-repeat: no-repeat;
    background-size: contain;
}

.btn {
    border: none;
    outline: none;
    background-color: var(--primary-color);
    color: var(--white-color);
    /* \1 */
    font-size: 2rem;
    line-height: 2.8rem;
    font-weight: 700;
    border-radius: 0.4rem;
    padding: 1rem 1.6rem;
    text-decoration: none;
}

.btn-disabled {
    color: var(--text-color) !important;
    border: 0.25rem solid var(--text-color) !important;
    cursor: text !important;
    opacity: 0.4;
}

.d-none {
    display: none !important;
}

.d-block {
    display: block;
}

.d-flex {
    display: flex;
}

.opacity-0 {
    opacity: 0;
}

/* ============== PAGINATION CSS START ============== */
.pagination {
    margin-top: 3.2rem;
    display: flex;
    justify-content: center;
    gap: 0 1rem;
}

.pagination__url {
    display: inline-block;
    background-color: var(--white-color);
    text-decoration: none;
    /* \1 */
    color: var(--text-color);
    width: 4rem;
    height: 4rem;
    border-radius: 4rem;
    line-height: 4rem;
    font-size: 1.6rem;
    text-align: center;
    font-weight: 700;
}

.pagination__url--active {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.pagination__url--disabled {
    opacity: 0.3;
    pointer-events: none;
    cursor: not-allowed;
}

.pagination__url:hover {
    opacity: 0.8;
}
/* ============== PAGINATION CSS END ============== */

/* ANIMATION  START */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* BUTTON EFFECT START */
.btn-hover-effect {
    transition: all 0.3s ease-in-out;
}

.btn-hover-effect:hover {
    transform: translateY(-0.6rem) translateX(-0.3rem);
    box-shadow: 0.2rem 0.5rem 0 0 black;
}
/* BUTTON EFFECT END */

/* BUTTON SHINE START */
.btn-hover-shine {
    position: relative;
    transition: all 0.3s ease-in-out;
}

.btn-hover-shine:hover {
    transform: scale(1.05);
    border-color: #fff9;
}

.btn-hover-shine:hover::before {
    animation: shine 1.5s ease-out infinite;
}

.btn-hover-shine::before {
    content: "";
    position: absolute;
    z-index: -1;
    width: 10rem;
    height: 100%;
    background-image: linear-gradient(
        120deg,
        rgba(255, 255, 255, 0) 30%,
        rgba(255, 255, 255, 0.8),
        rgba(255, 255, 255, 0) 70%
    );
    top: 0;
    left: -10rem;
    opacity: 0.6;
}

@keyframes shine {
    0% {
        left: -10rem;
    }

    60% {
        left: 100%;
    }

    to {
        left: 100%;
    }
}
/* BUTTON SHINE END */

.slides__infiniteScroll .owl-stage {
    transition: none;
    will-change: transform;
    animation: infiniteScroll 20s linear infinite; /* Animation vô hạn */
}

.slides__infiniteScroll::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 5rem;
    height: 100%;
    z-index: 10;
    background: linear-gradient(90deg, #f9fafc 10%, rgba(248, 249, 253, 0) 95%);
}

.slides__infiniteScroll::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 5rem;
    height: 100%;
    z-index: 10;
    background: linear-gradient(
        270deg,
        #f9fafc 10%,
        rgba(248, 249, 253, 0) 95%
    );
}

@keyframes infiniteScroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

/* ANIMATION  END */
.device-mobile {
    display: none !important;
}
@media (max-width: 767px) {
    html {
        font-size: 22%;
    }
    .device-mobile {
        display: block !important;
    }

  .device-pc {
    display: none !important;
  }
  
  .pagination {
    margin-top: 32px;
    gap: 0 10px;
  }
  
  .pagination__url {
    width: 40px;
    height: 40px;
    border-radius: 40px;
    font-size: 16px;
    line-height: 40px;
  }

  #toast-container>div {
    width: 250px !important;
  }

  .toast-message {
    font-size: 12px !important;
  }
}

/* 56% */
@media (min-width: 768px) and (max-width: 1023px) {
    html {
        font-size: 37%;
    }
}

/* 64% */
@media (min-width: 1024px) and (max-width: 1279px) {
    html {
        font-size: 45%;
    }
}

/* 75% */
@media (min-width: 1280px) and (max-width: 1535px) {
    html {
        font-size: 50%;
    }
}

/* 85% */
@media (min-width: 1536px) and (max-width: 1919px) {
    html {
        font-size: 55%;
    }
}
