/* =========================
   PRODUCTS
========================= */

.products-page {
    background: #ffffff;
}

.products-container {
    width: calc(100% - 80px);
    max-width: 1280px;

    margin: 0 auto;
}


/* =========================
   PAGE HEADER
========================= */

.products-header {
    padding: 55px 0;
    background: #09134F;
}

.products-header-content {
    max-width: 750px;
}

.products-eyebrow {
    display: block;

    margin-bottom: 8px;

    color: #F63D37;

    font-size: 13px;
    font-weight: 600;

    letter-spacing: 1.5px;
}

.products-header h1 {
    margin: 0 0 10px;

    color: #ffffff;

    font-size: 38px;
    line-height: 1.3;
}

.products-header p {
    margin: 0;

    color: rgba(255, 255, 255, .75);

    font-size: 16px;
}


/* =========================
   CONTENT
========================= */

.products-content {
    padding: 45px 0 80px;
}

.products-layout {
    display: grid;

    grid-template-columns: 240px minmax(0, 1fr);

    gap: 35px;
}


/* =========================
   SIDEBAR
========================= */

.products-sidebar {
    align-self: start;

    position: sticky;

    top: 105px;
}

.products-sidebar-title {
    display: flex;
    align-items: center;

    gap: 10px;

    padding-bottom: 15px;

    border-bottom: 2px solid #09134F;
}

.products-sidebar-title h2 {
    margin: 0;

    color: #09134F;

    font-size: 17px;
    font-weight: 600;
}

.products-sidebar-icon {
    color: #F63D37;

    font-size: 18px;
}


/* Categories */

.products-category-list {
    display: flex;
    flex-direction: column;

    padding-top: 8px;
}

.products-category-list a {
    position: relative;

    display: block;

    padding: 11px 12px;

    color: #363b45;

    font-size: 14px;
    line-height: 1.5;

    text-decoration: none;

    border-bottom: 1px solid #eeeeee;

    transition: .2s ease;
}

.products-category-list a:hover {
    padding-left: 17px;

    color: #F63D37;
}

.products-category-list a.active {
    padding-left: 17px;

    color: #F63D37;

    font-weight: 600;
}

.products-category-list a.active::before {
    content: "";

    position: absolute;

    top: 50%;
    left: 0;

    width: 5px;
    height: 5px;

    border-radius: 50%;

    background: #F63D37;

    transform: translateY(-50%);
}


/* =========================
   TOOLBAR
========================= */

.products-toolbar {
    min-height: 58px;

    margin-bottom: 22px;
    padding: 10px 15px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    background: #f6f7f9;

    border: 1px solid #eceef2;
    border-radius: 8px;
}

.products-result {
    color: #727782;

    font-size: 13px;
}

.products-result strong {
    margin-right: 3px;

    color: #09134F;

    font-size: 15px;
}


/* Sort */

.products-sort {
    display: flex;
    align-items: center;

    gap: 10px;
}

.products-sort label {
    color: #727782;

    font-size: 13px;
}

.products-sort select {
    min-width: 175px;
    height: 38px;

    padding: 0 35px 0 12px;

    border: 1px solid #dfe2e8;
    border-radius: 6px;

    background: #ffffff;

    color: #333333;

    font-family: inherit;

    outline: none;
}


/* =========================
   PRODUCT GRID
========================= */

/* Desktop */
.products-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 20px;
}


/* =========================
   PRODUCT CARD
========================= */

.product-card {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e6e8ed;
    border-radius: 10px;

    transition:
        transform .25s ease,
        box-shadow .25s ease,
        border-color .25s ease;
}

.product-card:hover {
    border-color: #d7dbe4;
    box-shadow:
        0 10px 30px rgba(9, 19, 79, .08);
}


/* Image */

.product-card-image {
    display: block;
    aspect-ratio: 1 / 1;
    padding: 18px;
    overflow: hidden;
    background: #fff;
}

.product-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform .3s ease;
}



.product-card-no-image {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 100%;

    color: #c3c7d0;

    font-size: 24px;
    font-weight: 700;
}


/* Body */

.product-card-body {
    padding: 16px;
}

.product-card-code {
    margin-bottom: 5px;

    color: #9297a1;

    font-size: 11px;
    font-weight: 500;
}

.product-card h2 {
    min-height: 46px;

    margin: 0 0 10px;

    font-size: 15px;
    line-height: 1.5;

    font-weight: 500;
}

.product-card h2 a {
    color: #20232a;

    text-decoration: none;
}

.product-card h2 a:hover {
    color: #09134F;
}


/* Price */

.product-card-price {
    min-height: 26px;

    margin-bottom: 13px;

    color: #F63D37;

    font-size: 17px;
    font-weight: 600;
}

.product-card-price span {
    font-size: 14px;
}


/* Link */

.product-card-link {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding-top: 12px;

    color: #09134F;

    font-size: 12px;
    font-weight: 600;

    text-decoration: none;

    border-top: 1px solid #eeeeee;
}

.product-card-link span {
    color: #F63D37;

    font-size: 17px;

    transition: transform .2s ease;
}

.product-card:hover .product-card-link span {
    transform: translateX(3px);
}


/* =========================
   EMPTY
========================= */

.products-empty {
    padding: 80px 20px;

    text-align: center;

    color: #8b9099;

    background: #fafafa;

    border-radius: 10px;
}


/* =========================
   RESPONSIVE
========================= */

/* Laptop */
@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}



@media (max-width: 900px) {

    .products-container {
        width: calc(100% - 40px);
    }

    .products-layout {
        grid-template-columns: 1fr;
    }

    .products-sidebar {
        position: static;
    }

    .products-category-list {
        display: grid;

        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .products-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}


@media (max-width: 600px) {

    .products-container {
        width: calc(100% - 30px);
    }

    .products-header {
        padding: 40px 0;
    }

    .products-header h1 {
        font-size: 30px;
    }

    .products-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .products-sort {
        justify-content: space-between;
    }

    .products-sort select {
        flex: 1;
        min-width: 0;
    }

    .products-category-list {
        grid-template-columns: 1fr;
    }

    .products-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 10px;
    }

    .product-card-image {
        padding: 10px;
    }

    .product-card-body {
        padding: 12px;
    }

    .product-card h2 {
        font-size: 13px;
    }
}