/* =========================================================
   COSMETICS
========================================================= */

* {
    box-sizing: border-box;
}


html {
    margin: 0;
    padding: 0;
}


body {
    margin: 0;
    padding: 0;
}


/* =========================================================
   PAGE
========================================================= */

.cosmetics-page {
    width: 100%;
    min-height: 100vh;

    padding: 0 27px 70px;

    background: #fff7f9;

    color: #171313;

    font-family:
        Arial,
        Helvetica,
        sans-serif;
}


/* =========================================================
   PAGE HEADER
========================================================= */

.cos-header {
    width: 100%;

    padding: 19px 0 41px;
}


.cos-header h1 {
    margin: 0;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 40px;

    font-weight: 400;

    line-height: 1.15;

    letter-spacing: -0.02em;

    color: #171313;
}


/* =========================================================
   TOOLBAR
========================================================= */

.cos-toolbar {
    width: 100%;

    min-height: 38px;

    margin-bottom: 35px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;
}


.cos-filters {
    display: flex;

    align-items: center;

    flex-wrap: wrap;

    gap: 7px;
}


.cos-filter {
    position: relative;

    flex-shrink: 0;
}


/* =========================================================
   FILTER BUTTON
========================================================= */

.cos-filter-button {
    height: 36px;

    min-width: 72px;

    padding:
        0
        10px
        0
        14px;

    display: inline-flex;

    align-items: center;

    justify-content: space-between;

    gap: 9px;

    border:
        1px solid #171313;

    border-radius: 0;

    outline: none;

    background: transparent;

    color: #171313;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 12px;

    font-weight: 400;

    cursor: pointer;

    appearance: none;
}


.cos-filter-button:hover {
    background: rgba(255, 255, 255, .45);
}


.cos-filter-button i {
    font-size: 9px;

    pointer-events: none;
}


/* =========================================================
   DISABLED FILTER
========================================================= */

.cos-filter-button.cos-disabled-filter,
.cos-filter-button:disabled {
    color: #a49a9d;

    border-color: #c9c0c3;

    background: transparent;

    cursor: not-allowed;
}


/* =========================================================
   FILTER WIDTHS
========================================================= */

.cos-filter:nth-child(1)
.cos-filter-button {
    min-width: 72px;
}


.cos-filter:nth-child(2)
.cos-filter-button {
    min-width: 80px;
}


.cos-filter:nth-child(3)
.cos-filter-button {
    min-width: 126px;
}


.cos-filter:nth-child(4)
.cos-filter-button {
    min-width: 88px;
}


.cos-filter:nth-child(5)
.cos-filter-button {
    min-width: 84px;
}


.cos-filter:nth-child(6)
.cos-filter-button {
    min-width: 102px;
}


/* =========================================================
   DROPDOWN
========================================================= */

.cos-filter-menu {
    position: absolute;

    top: calc(100% + 7px);

    left: 0;

    width: 230px;

    max-height: 390px;

    overflow-y: auto;

    display: none;

    z-index: 9999;

    border:
        1px solid #cfc5c8;

    background: #fffdfd;

    box-shadow:
        0 12px 28px
        rgba(30, 18, 20, .10);
}


.cos-filter-menu.is-open {
    display: block;
}


/* =========================================================
   ALL FILTER MENU
========================================================= */

.cos-all-filter-menu {
    width: 430px;

    max-width:
        calc(100vw - 30px);
}


/* =========================================================
   MENU HEADER
========================================================= */

.cos-filter-menu-header {
    min-height: 43px;

    padding: 10px 13px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    border-bottom:
        1px solid #e4dadd;
}


.cos-filter-menu-header span {
    font-size: 11px;

    color: #40383a;
}


.cos-filter-menu-header a {
    font-size: 10px;

    color: #6e6467;

    text-decoration: underline;
}


/* =========================================================
   CHECKBOX OPTIONS
========================================================= */

.cos-check-option {
    min-height: 40px;

    padding: 0 13px;

    display: flex;

    align-items: center;

    gap: 9px;

    font-size: 12px;

    color: #373033;

    cursor: pointer;
}


.cos-check-option:hover {
    background: #fff1f4;
}


.cos-check-option input {
    width: 14px;

    height: 14px;

    margin: 0;

    flex-shrink: 0;

    accent-color: #171313;

    cursor: pointer;
}


/* =========================================================
   COLOR FILTER DOT
========================================================= */

.cos-filter-color-dot {
    width: 14px;

    height: 14px;

    flex: 0 0 14px;

    border:
        1px solid #bdb3b6;

    border-radius: 50%;

    display: inline-block;
}


/* =========================================================
   ALL FILTER GROUP
========================================================= */

.cos-all-group {
    padding:
        13px
        13px
        5px;
}


.cos-all-label {
    display: block;

    margin-bottom: 8px;

    font-size: 10px;

    font-weight: 600;

    letter-spacing: .1em;

    color: #817679;
}


.cos-all-values {
    display: flex;

    flex-wrap: wrap;

    gap: 6px;

    padding-bottom: 7px;
}


.cos-all-values a {
    min-height: 25px;

    padding: 5px 9px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    border:
        1px solid #c9bec1;

    color: #383133;

    background: transparent;

    font-size: 11px;

    text-decoration: none;
}


.cos-all-values a:hover {
    border-color: #171313;

    background: #fff1f4;
}


/* =========================================================
   SORT
========================================================= */

.cos-sort {
    flex-shrink: 0;
}


.cos-sort select {
    height: 36px;

    min-width: 132px;

    padding: 0 10px;

    border:
        1px solid #171313;

    border-radius: 0;

    outline: none;

    background: transparent;

    color: #171313;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 12px;

    cursor: pointer;

    appearance: auto;
}


/* =========================================================
   ACTIVE FILTERS
========================================================= */

.cos-active-filters {
    width: 100%;

    margin-top: -18px;

    margin-bottom: 22px;

    display: flex;

    align-items: center;

    flex-wrap: wrap;

    gap: 7px;
}


.cos-active-filter {
    min-height: 28px;

    padding: 5px 9px;

    display: inline-flex;

    align-items: center;

    gap: 7px;

    border:
        1px solid #c9bec1;

    background: rgba(255,255,255,.35);

    color: #383133;

    font-size: 11px;

    text-decoration: none;
}


.cos-active-filter span {
    font-size: 15px;

    line-height: 10px;
}


/* =========================================================
   PRODUCT GRID
========================================================= */

.cos-products {
    width: 100%;

    display: grid;

    grid-template-columns:
        repeat(
            5,
            minmax(0, 1fr)
        );

    column-gap: 22px;

    row-gap: 45px;
}


/* =========================================================
   PRODUCT CARD
========================================================= */

.cos-product-card {
    display: block;

    min-width: 0;

    color: inherit;

    text-decoration: none;
}


/* =========================================================
   PRODUCT IMAGE
========================================================= */

.cos-product-image {
    position: relative;

    width: 100%;

    aspect-ratio: .78;

    overflow: hidden;

    background: #f3eeee;
}


/* =========================================================
   PRODUCT IMAGE
========================================================= */

.cos-product-image img {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
    object-position: center;

    transition:
        opacity .35s ease,
        transform .45s ease;
}


/* =========================================================
   PRIMARY IMAGE
========================================================= */

.cos-primary-image {
    z-index: 1;

    opacity: 1;
}


/* =========================================================
   HOVER IMAGE
========================================================= */

.cos-hover-image {
    z-index: 2;

    opacity: 0;
}


.cos-product-card:hover
.cos-hover-image {
    opacity: 1;
}


.cos-product-card:hover
.cos-primary-image {
    transform: scale(1.015);
}


/* =========================================================
   PLACEHOLDER
========================================================= */

.cos-image-placeholder {
    width: 100%;

    height: 100%;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 12px;

    color: #817679;
}


/* =========================================================
   PRODUCT INFO
========================================================= */

.cos-product-info {
    padding-top: 14px;
}


.cos-product-info h2 {
    margin:
        0
        0
        7px;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 14px;

    font-weight: 400;

    line-height: 1.25;

    color: #171313;
}


/* =========================================================
   PRICE
========================================================= */

.cos-product-price {
    display: flex;

    align-items: center;

    gap: 8px;
}


.cos-sale-price {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    font-weight: 300;
    color: #171313;
}


.cos-regular-price {
    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 11px;

    color: #8e8386;

    text-decoration: line-through;
}


/* =========================================================
   PRODUCT COLORS
========================================================= */

.cos-product-colors {
    display: flex;

    align-items: center;

    gap: 6px;

    margin-top: 9px;
}


.cos-color-swatch {
    width: 15px;

    height: 15px;

    display: block;

    border:
        1px solid #bdb3b6;

    border-radius: 50%;

    background: #d0ccbd;

    box-sizing: border-box;

    display: none;
}


/* =========================================================
   EMPTY
========================================================= */

.cos-empty {
    min-height: 300px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    text-align: center;
}


.cos-empty h2 {
    margin:
        0
        0
        10px;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 24px;

    font-weight: 400;
}


.cos-empty p {
    margin: 0;

    font-size: 12px;

    color: #817679;
}


.cos-clear-button {
    margin-top: 18px;

    padding: 10px 17px;

    border:
        1px solid #171313;

    background: #171313;

    color: #fff;

    font-size: 11px;

    text-decoration: none;
}


/* =========================================================
   RESPONSIVE - 1200
========================================================= */

@media (max-width: 1200px) {

    .cos-products {
        grid-template-columns:
            repeat(
                4,
                minmax(0, 1fr)
            );
    }

}


/* =========================================================
   RESPONSIVE - 900
========================================================= */

@media (max-width: 900px) {

    .cosmetics-page {
        padding-left: 18px;

        padding-right: 18px;
    }


    .cos-toolbar {
        align-items: flex-start;

        flex-direction: column;
    }


    .cos-filters {
        width: 100%;
    }


    .cos-sort {
        width: 100%;
    }


    .cos-sort select {
        width: 145px;
    }


    .cos-products {
        grid-template-columns:
            repeat(
                3,
                minmax(0, 1fr)
            );
    }

}


/* =========================================================
   RESPONSIVE - 600
========================================================= */

@media (max-width: 600px) {

    .cosmetics-page {
        padding-left: 12px;

        padding-right: 12px;
    }


    .cos-header {
        padding-top: 25px;

        padding-bottom: 28px;
    }


    .cos-header h1 {
        font-size: 30px;
    }


    .cos-filters {
        gap: 5px;
    }


    .cos-filter-button {
        height: 34px;

        padding-left: 9px;

        padding-right: 8px;

        font-size: 10px;
    }


    .cos-products {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );

        column-gap: 10px;

        row-gap: 30px;
    }


    .cos-product-info h2 {
        font-size: 12px;
    }


    .cos-product-price {
        gap: 5px;
    }


    .cos-sale-price {
        font-size: 12px;
    }


    .cos-regular-price {
        font-size: 10px;
    }


    .cos-all-filter-menu {
        width:
            calc(100vw - 24px);

        left: 0;
    }

}