﻿

/*#region product-filter*/
.product-filter-track {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 60px;
}

.product-filter-btn {
    border: 1px solid;
    border-radius: 20px;
    border-color: #DEDEDE;
    padding: 6px;
    background-color: transparent;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-width: 150px;
    cursor: pointer;
}

    .product-filter-btn .cover-image {
        width: 60px;
        height: 60px;
        background-color: transparent;
        background-size: cover;
    }

    .product-filter-btn:hover,
    .product-filter-btn:focus {
        opacity: 80%;
        outline: unset;
        background-color: var(--text-second-color);
        color: #ffffff;
    }

    .product-filter-btn.active {
        background-color: var(--text-second-color);
        color: #ffffff;
    }

    .product-filter-btn span {
        font-size: 14px;
        font-weight: 500;
        line-height: 26.5px;
    }

/*#endregion*/

/*#region product-grid*/
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    column-gap: 40px;
    row-gap: 76px;
    margin-bottom: 176px;
}

.product .product-img {
    position: relative;
    margin-bottom: 20px;
    border-radius: 20px;
}

    .product .product-img img {
        width: 100%;
        height: 100%;
        aspect-ratio: 1/1;
        object-fit: cover;
        border-radius: 20px;
    }

.product.sold-out .product-img:before {
    content: "SOLD OUT";
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.4);
    border-radius: 20px;
    color: #ffffff;
    font-size: 40px;
    line-height: 180%;
}

.product .product-name {
    font-size: 1rem;
    line-height: 160%;
    font-weight: 500;
    margin-bottom: 6px;
}

.product .product-desc {
    font-size: 12px;
    line-height: 160%;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 15px;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .product-footer .price {
        font-size: 18px;
        line-height: 160%;
        color: #B0A38B;
        font-family: "Roboto";
        max-width: 40%;
        display: -webkit-box;
        -webkit-line-clamp: 1;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

        .product-footer .price .small {
            font-size: 10px;
            font-family: "Noto Sans JP";
        }
/*#endregion*/

@media only screen and (max-width: 1199px) {
    .product-filter-track {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        column-gap: 7px;
        row-gap: 10px;
        padding: 0 20px;
        margin-top: 40px;
        margin-bottom: 50px;
    }

    .product-filter-btn {
        flex-direction: row;
        justify-content: start;
        gap: 8px;
        border-radius: 10px;
    }

        .product-filter-btn > :last-child {
            display: -webkit-box;
            -webkit-line-clamp: 1;
            -webkit-box-orient: vertical;
            overflow: hidden;
            font-weight: 500;
        }

        .product-filter-btn svg {
            width: 30px;
            height: 30px;
        }

    .product-grid {
        padding: 0 20px;
    }

    .product-filter-btn .cover-image {
        width: 30px;
        height: 30px;
    }
}

@media only screen and (max-width: 500px) {
    .product-grid {
        padding: 0 53px;
    }

    .product.sold-out .product-img:before {
        font-size: 36px;
    }
}

/*pagination*/
.page-link {
    color: var(--text-second-color);
}

    .page-link:hover {
        color: var(--text-second-color);
    }

.w-page-link--active {
    color: #fff;
}
