/* ============================================================
   PRODUCTS PAGE
============================================================ */

.products-page {
    background: #f7f9f8;
    min-height: 800px;
    padding: 20px 0 70px;
}

.products-container {
    width: min(1400px, 94%);
    margin: auto;
}


/* BREADCRUMB */

.products-breadcrumb {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 12px;
    margin-bottom: 25px;
}

.products-breadcrumb a {
    color: #087f23;
    font-weight: 600;
}

.products-breadcrumb i {
    font-size: 8px;
    color: #98a2b3;
}

.products-breadcrumb span {
    color: #667085;
}


/* HEADER */

.products-page-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 25px;
}

.products-page-header > div:first-child > span {
    color: #dc0d0d;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.products-page-header h1 {
    font-size: 32px;
    margin: 3px 0;
}

.products-page-header p {
    color: #667085;
    font-size: 13px;
}


/* SEARCH */

.product-search-box {
    width: 380px;
    height: 48px;

    background: #fff;

    border: 2px solid #0b0a0a;

    border-radius: 9px;

    display: flex;

    align-items: center;

    padding: 0 12px;

    box-shadow: 0 4px 15px rgba(0,0,0,.04);
}

.product-search-box > i {
    color: #e31010;
    font-size: 17px;
}

.product-search-box input {
    flex: 1;

    border: 0;

    outline: 0;

    background: transparent;

    padding: 0 10px;

    font-size: 13px;
}

.product-search-box button {
    width: 30px;
    height: 30px;

    border-radius: 50%;

    background: transparent;

    color: #e40404;
}

.product-search-box button:hover {
    background: #dad7d7;
    color: #e50707;
}


/* CATEGORY PATH */

.category-path {
    display: flex;

    align-items: center;

    flex-wrap: wrap;

    gap: 8px;

    margin-bottom: 25px;
}

.category-path a {
    background: #eaf8ed;

    color: #e32200;

    padding: 7px 12px;

    border-radius: 20px;

    font-size: 11px;

    font-weight: 600;
}

.category-path i {
    color: #98a2b3;
    font-size: 8px;
}


/* LAYOUT */

.products-layout {
    display: grid;

    grid-template-columns:
        230px 1fr;

    gap: 25px;

    align-items: start;
}


/* FILTER */

.products-filter {
    background: #fff;

    border: 1px solid #e2e8e4;

    border-radius: 12px;

    overflow: hidden;

    position: sticky;

    top: 105px;
}

.filter-title {
    background: #eb0e02;

    color: #fff;

    padding: 15px;

    font-size: 14px;

    font-weight: 700;

    display: flex;

    gap: 8px;

    align-items: center;
}

.filter-group {
    padding: 18px;

    border-bottom: 1px solid #edf0ee;
}

.filter-group h3 {
    font-size: 13px;

    margin-bottom: 12px;
}

.filter-group label {
    display: flex;

    align-items: center;

    gap: 7px;

    font-size: 11px;

    color: #667085;

    margin: 9px 0;

    cursor: pointer;
}

.filter-group input {
    accent-color: #ed2c09;
}

.filter-category {
    display: block;

    width: 100%;

    border: 0;

    background: transparent;

    text-align: left;

    padding: 7px 0;

    font-size: 11px;

    color: #667085;

    cursor: pointer;
}

.filter-category:hover,
.filter-category.active {
    color: #ff0909;

    font-weight: 700;
}

.clear-filters {
    width: calc(100% - 30px);

    margin: 15px;

    padding: 10px;

    border-radius: 7px;

    background: #edf8ef;

    color: #d50505;

    font-size: 11px;

    font-weight: 700;
}


/* TOOLBAR */

.products-toolbar {
    min-height: 48px;

    background: #fff;

    border: 1px solid #e2e8e4;

    border-radius: 10px;

    padding: 10px 15px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    margin-bottom: 18px;

    font-size: 12px;

    color: #667085;
}

.products-toolbar strong {
    color: #172033;
}

.products-toolbar select {
    border: 1px solid #d8e0da;

    padding: 8px 10px;

    border-radius: 6px;

    outline: 0;

    font-size: 11px;

    background: #fff;
}


/* NO PRODUCTS */

.no-products {
    background: #fff;

    border: 1px solid #e2e8e4;

    border-radius: 12px;

    padding: 70px 20px;

    text-align: center;
}

.no-products i {
    color: #087f23;

    font-size: 50px;

    margin-bottom: 15px;
}

.no-products h2 {
    font-size: 20px;

    margin-bottom: 5px;
}

.no-products p {
    color: #667085;

    font-size: 12px;
}


/* DARK */

body.dark-mode .products-page {
    background: #101512;
}

body.dark-mode .products-page-header h1 {
    color: #fff;
}

body.dark-mode .products-page-header p,
body.dark-mode .products-breadcrumb span {
    color: #b8c1cc;
}

body.dark-mode .product-search-box,
body.dark-mode .products-filter,
body.dark-mode .products-toolbar,
body.dark-mode .no-products {
    background: #18201b;

    border-color: #2d3931;
}

body.dark-mode .product-search-box input {
    color: #fff;
}

body.dark-mode .filter-group {
    border-color: #2d3931;
}

body.dark-mode .filter-group h3,
body.dark-mode .products-toolbar strong {
    color: #fff;
}

body.dark-mode .filter-group label,
body.dark-mode .filter-category,
body.dark-mode .products-toolbar {
    color: #b8c1cc;
}


/* RESPONSIVE */

@media (max-width: 900px) {

    .products-page-header {
        align-items: stretch;

        flex-direction: column;
    }

    .product-search-box {
        width: 100%;
    }

}


@media (max-width: 700px) {

    .products-layout {
        grid-template-columns: 1fr;
    }

    .products-filter {
        position: static;
    }

    .filter-group {
        display: block;
    }

    .products-toolbar {
        flex-direction: column;

        align-items: stretch;

        gap: 10px;
    }

    .products-toolbar select {
        width: 100%;
    }

}


@media (max-width: 500px) {

    .products-page-header h1 {
        font-size: 26px;
    }

    .products-page-header p {
        font-size: 11px;
    }

}


/* ============================================================
   PRODUCTS PAGE NOTIFICATION
============================================================ */

.a1-products-notification {
    position: fixed;
    right: 25px;
    bottom: 25px;
    z-index: 99999;

    min-width: 260px;
    max-width: 380px;

    padding: 14px 18px;

    background: #087f23;
    color: #ffffff;

    border-radius: 10px;

    display: flex;
    align-items: center;
    gap: 10px;

    font-size: 13px;
    font-weight: 600;

    box-shadow:
        0 10px 30px rgba(0, 0, 0, .20);

    animation:
        productsNotificationIn .3s ease;
}

.a1-products-notification i {
    font-size: 18px;
}

.a1-products-notification.hide {
    opacity: 0;
    transform: translateY(20px);
    transition: .3s ease;
}

@keyframes productsNotificationIn {

    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* DARK MODE */

body.dark-mode .a1-products-notification {
    background: #1976d2;
}


/* MOBILE */

@media (max-width: 600px) {

    .a1-products-notification {
        left: 15px;
        right: 15px;
        bottom: 15px;

        min-width: auto;
        width: auto;

        justify-content: center;
        text-align: center;
    }
}