body {

    margin: 0;

    background: #070F23;

    color: #ffffff;

    font-family:
        Tahoma,
        Arial,
        sans-serif;

}


.products-page {

    width: 100%;

    min-height: 100vh;

    padding: 45px;

    direction: rtl;

}


/* ================================= */
/* Header */
/* ================================= */

.products-header {

    max-width: 1400px;

    margin: 0 auto 35px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

}


.products-title {

    display: flex;

    align-items: center;

    gap: 18px;

}


.products-title-icon {

    width: 65px;

    height: 65px;

    border-radius: 18px;

    display: flex;

    align-items: center;

    justify-content: center;

    background: #283B60;

    font-size: 30px;

}


.products-title h1 {

    margin: 0 0 7px;

    font-size: 28px;

}


.products-title p {

    margin: 0;

    color: #7d8aa5;

    font-size: 14px;

}


.products-count {

    padding: 10px 18px;

    border: 1px solid #283B60;

    border-radius: 30px;

    color: #E2B356;

    background: #0b152e;

    font-size: 13px;

    white-space: nowrap;

}


/* ================================= */
/* Filters */
/* ================================= */

.products-filters {

    max-width: 1400px;

    margin: 0 auto 35px;

    padding: 22px;

    display: grid;

    grid-template-columns:
        1fr 1fr 240px;

    gap: 18px;

    background: #0b152e;

    border: 1px solid #283B60;

    border-radius: 20px;

}


.filter-box label {

    display: block;

    margin-bottom: 9px;

    color: #ffffff;

    font-size: 13px;

    font-weight: bold;

}


.input-wrapper {

    position: relative;

}


.input-wrapper span {

    position: absolute;

    right: 15px;

    top: 50%;

    transform: translateY(-50%);

    opacity: .7;

}


.filter-box input,
.filter-box select {

    width: 100%;

    height: 48px;

    padding: 0 45px 0 15px;

    border: 1px solid #283B60;

    border-radius: 11px;

    outline: none;

    background: #070F23;

    color: #ffffff;

    font-family: inherit;

    font-size: 13px;

    transition: .25s;

}


.filter-box select {

    padding: 0 15px;

    cursor: pointer;

}


.filter-box input:focus,
.filter-box select:focus {

    border-color: #E2B356;

    box-shadow:
        0 0 0 3px rgba(226, 179, 86, .07);

}


.filter-box input::placeholder {

    color: #5d6b86;

}


/* ================================= */
/* Products Grid */
/* ================================= */

.products-grid {

    max-width: 1400px;

    margin: 0 auto;

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 22px;

}


/* ================================= */
/* Card */
/* ================================= */

.product-card {

    position: relative;

    min-width: 0;

    overflow: hidden;

    display: flex;

    flex-direction: column;

    background: #0b152e;

    border: 1px solid #283B60;

    border-radius: 20px;

    transition: .3s;

}


.product-card:hover {

    transform: translateY(-5px);

    border-color: #E2B356;

    box-shadow:
        0 18px 45px rgba(0, 0, 0, .25);

}


/* ================================= */
/* Card Top */
/* ================================= */

.product-card-top {

    padding: 20px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    border-bottom: 1px solid #283B60;

}


.product-file-icon {

    width: 58px;

    height: 58px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 15px;

    background: rgba(226,
            179,
            86,
            .1);

    border: 1px solid rgba(226,
            179,
            86,
            .2);

}


.product-file-icon span {

    color: #E2B356;

    font-size: 13px;

    font-weight: 900;

}


.product-date {

    display: flex;

    flex-direction: column;

    align-items: flex-start;

    gap: 6px;

}


.product-date span {

    color: #687792;

    font-size: 11px;

}


.product-date strong {

    color: #cbd3e2;

    font-size: 12px;

    direction: ltr;

}


/* ================================= */
/* Card Content */
/* ================================= */

.product-card-content {

    padding: 23px;

    flex: 1;

}


.product-name {

    margin: 0 0 14px;

    color: #ffffff;

    font-size: 18px;

    line-height: 1.7;

}


.product-description {

    margin: 0;

    color: #8290aa;

    font-size: 13px;

    line-height: 2;

}


/* ================================= */
/* Bottom */
/* ================================= */

.product-card-bottom {

    padding: 0 23px 23px;

}


.download-product {

    width: 100%;

    height: 48px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 0 16px;

    border-radius: 11px;

    text-decoration: none;

    background: #E2B356;

    color: #070F23;

    font-size: 13px;

    font-weight: 900;

    transition: .25s;

}


.download-product:hover {

    box-shadow:
        0 10px 25px rgba(226,
            179,
            86,
            .18);

}


.download-icon {

    width: 30px;

    height: 30px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 8px;

    background: #070F23;

    color: #E2B356;

    font-size: 20px;

}


/* ================================= */
/* Loading */
/* ================================= */

.products-loading {

    max-width: 1400px;

    margin: 70px auto;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 14px;

    color: #7886a0;

    font-size: 13px;

}


.loading-spinner {

    width: 24px;

    height: 24px;

    border: 3px solid #283B60;

    border-top-color: #E2B356;

    border-radius: 50%;

    animation:
        spin .7s linear infinite;

}


@keyframes spin {

    to {

        transform: rotate(360deg);

    }

}


/* ================================= */
/* Empty */
/* ================================= */

.products-empty {

    max-width: 500px;

    margin: 80px auto;

    text-align: center;

}


.empty-icon {

    width: 70px;

    height: 70px;

    margin: 0 auto 18px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 20px;

    background: #283B60;

    font-size: 30px;

}


.products-empty h3 {

    margin: 0 0 10px;

    font-size: 18px;

}


.products-empty p {

    margin: 0;

    color: #697792;

    font-size: 13px;

}


/* ================================= */
/* Error */
/* ================================= */

.server-error {

    grid-column: 1 / -1;

    padding: 40px;

    text-align: center;

    border: 1px solid #283B60;

    border-radius: 18px;

    background: #0b152e;

}


.server-error div {

    font-size: 30px;

    margin-bottom: 10px;

}


.server-error p {

    color: #8995ab;

}


/* ================================= */
/* Responsive */
/* ================================= */

@media (max-width: 1000px) {

    .products-grid {

        grid-template-columns:
            repeat(2, 1fr);

    }


    .products-filters {

        grid-template-columns:
            1fr 1fr;

    }


    .filter-box:last-child {

        grid-column: 1 / -1;

    }

}


@media (max-width: 650px) {

    .products-page {

        padding: 20px 12px;

    }


    .products-header {

        align-items: flex-start;

        flex-direction: column;

    }


    .products-title h1 {

        font-size: 23px;

    }


    .products-filters {

        grid-template-columns: 1fr;

        padding: 17px;

    }


    .filter-box:last-child {

        grid-column: auto;

    }


    .products-grid {

        grid-template-columns: 1fr;

    }

}