:root {
    --primary-color: #F9592A;
    --secondary-color: #EF8911;
    --background-color: #FFFFFF;
    --text-color: #000000;
    --font-family: "Lato", sans-serif;
    --font-style: normal;
    --font-size-base: 16px;
    --line-height-base: 1.6;

    --dark-background-color: #1B1B1D;
    --dark-text-color: #FFFFFF;

    --gray-shade10: #C6C8CF;
    --gray-shade50: #868686;

    --desktop-padding: 76px;
    --tablet-padding: 32px;
    --mobile-padding: 16px;
}

section.page-title {
    text-align: center;
    padding-block: 32px;
    padding-inline: var(--mobile-padding);
}

section.page-title h1 {
    margin: 0;
    font-size: 32px;
}

section.page-body {
    padding-inline: var(--mobile-padding);
}

section.page-body .no-result {
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-align: center;
    display: none;
}

section.page-body .no-result img {
    width: 200px;
    height: 200px;
    margin: auto;
}

section.page-body .no-result .title {
    font-size: 18px;
    font-weight: bold;
}

section.page-body .no-result .caption {
    color: #868686;
    width: 70%;
    margin: auto;
}

section.page-body .has-result {
    display: flex;
}

.page-body .has-result .right {
    width: 100%;
}

.page-body .has-result .right .header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-block: 16px;
}

.page-body .has-result .right .header .sort {
    position: relative;
    cursor: pointer;
}

.page-body .has-result .right .header .sort .sort-header {
    display: flex;
    align-items: center;
    gap: 16px;
}

.page-body .has-result .right .header .sort .sort-header:hover {
    opacity: .5;
}

.page-body .has-result .right .header .sort ul {
    display: none;
    list-style: none;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: display .5s ease-in-out;
    position: absolute;
    background: #FFF;
    width: max-content;
    z-index: 1;
}

.dark-mode .page-body .has-result .right .header .sort ul {
    background: var(--dark-background-color);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: rgba(255, 255, 255, 0.1);
}

.page-body .has-result .right .header .sort:hover ul {
    display: block;
}

.page-body .has-result .right .header .sort ul li {
    padding: 8px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.dark-mode .page-body .has-result .right .header .sort ul li {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.page-body .has-result .right .header .sort ul li:hover {
    background-color: rgba(0, 0, 0, 0.1);
    opacity: .5;
}

.dark-mode .page-body .has-result .right .header .sort ul li:hover{
    background: rgba(255, 255, 255, 0.1);
}

.page-body .has-result .right .header i.filter-icon {
    font-size: 20px;
    cursor: pointer;
}

.page-body .has-result .right .header i.filter-icon:hover {
    color: var(--primary-color);
}

.page-body .has-result .right .products {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.page-body .has-result .right .products .item {
    width: 100%;
    color: #000;
}

.dark-mode .page-body .has-result .right .products .item {
    color: #FFF;
}

.page-body .has-result .right .products .item .image {
    width: 100%;
    height: 150px;
    border-radius: 10px;
    background-size: cover;
    background-repeat: no-repeat;
    position: relative;
}

.page-body .has-result .right .products .item .image i {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(255, 255, 255, 0.5);
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    width: 24px;
    height: 24px;
    cursor: pointer;
}

.page-body .has-result .right .products .item .image i:hover {
    color: var(--primary-color);
    background-color: #FFF;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.page-body .has-result .right .products .item .item-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.page-body .has-result .right .products .item .item-details .title {
    font-weight: bold;
}

.page-body .has-result .right .products .item .item-details .prices {
    display: flex;
    gap: 16px;
}

.page-body .has-result .right .products .item .item-details .prices .price {
    color: #868686;
    text-decoration: line-through;
}

.page-body .has-result .right .products .item .item-details .prices .discount-price {
    color: var(--primary-color);
    font-weight: bold;
}

.page-body .has-result .right .load-more {
    padding-block: 64px;
    text-align: center;
}

.page-body .has-result .right .load-more button {
    border-radius: 10px;
    color: rgba(0, 0, 0, 0.5);
    padding-inline: 8px;
    padding-block: 4px;
    cursor: pointer;
    background: rgba(249, 89, 42, 0.1);
}

.dark-mode .page-body .has-result .right .load-more button {
    /* background-color: rgba(255, 255, 255, 0.1); */
    color: rgba(255, 255, 255, 0.5)
}

.page-body .has-result .right .load-more button:hover {
    background: var(--primary-color);
    color: #FFF;
}

/* Responsive Media Queries */
@media (min-width: 768px) {

    /* Styles for screens greater than 768px */
    section.page-body {
        padding-inline: var(--tablet-padding);
    }

    .page-body .has-result .right .products {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

@media (min-width: 992px) {

    /* Styles for screens greater than 992px */
    .page-body .has-result {
        gap: 16px;
    }

    section.page-body {
        padding-bottom: 64px;
    }

    .page-body .has-result .right .header {
        padding-top: 0;
        flex-direction: row-reverse;
    }

    .page-body .has-result .right .header .filter-icon {
        display: none;
    }

    .page-body .has-result .right .header .sort ul {
        right: 0;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    }
}

@media (min-width: 1200px) {

    /* Styles for screens greater than 1200px */
    .page-body .has-result .right .products {
        grid-template-columns: 1fr 1fr 1fr 1fr;
    }
}