@font-face {
    font-family: "Cinzel";
    src:
        url("../assets/fonts/Cinzel-Regular.ttf")
        format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Cinzel";
    src:
        url("../assets/fonts/Cinzel-Medium.ttf")
        format("truetype");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Vazirmatn";
    src:
        url("../assets/fonts/Vazirmatn-Light.ttf")
        format("truetype");
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Vazirmatn";
    src:
        url("../assets/fonts/Vazirmatn-Regular.ttf")
        format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


body {

    min-height: 100vh;

    overflow-x: hidden;

    background:
        radial-gradient(circle at 50% 0%,
            rgba(120, 10, 25, 0.28),
            transparent 35rem),
        radial-gradient(circle at 100% 55%,
            rgba(90, 8, 20, 0.18),
            transparent 28rem),
        #080808;

    color: #fff;

    font-family: "Vazirmatn", sans-serif;
}


a {
    color: inherit;

    text-decoration: none;
}


button {
    font-family: inherit;
}

.products-header {

    width: 100%;

    padding:
        1.7rem 5vw;

    display: flex;

    align-items: center;

    justify-content: space-between;

    border-bottom:
        1px solid rgba(255, 255, 255, 0.08);

    background:
        rgba(8, 8, 8, 0.7);

    backdrop-filter:
        blur(0.8rem);
}


.products-logo {

    font-family: "Cinzel", serif;

    font-size: 1.35rem;

    letter-spacing: 0.45rem;
}


.back-home {

    display: flex;

    align-items: center;

    gap: 0.5rem;

    font-size: 0.7rem;

    color:
        rgba(255, 255, 255, 0.55);

    transition:
        color 0.3s ease;
}


.back-home i {

    transition:
        transform 0.3s ease;
}


.back-home:hover {

    color: #fff;
}


.back-home:hover i {

    transform:
        translateX(0.3rem);
}


.products-page {

    width: min(78rem,
            88%);

    margin:
        0 auto;

    padding:
        7rem 0 4rem;

}


.products-intro {

    position: relative;

    max-width: 42rem;

    margin: 0 auto 5rem;

    text-align: center;
}


.chapter-label {

    display: inline-flex;

    align-items: center;

    gap: 0.7rem;

    font-family: "Cinzel", serif;

    font-size: 0.55rem;

    letter-spacing: 0.28rem;

    color:
        rgba(255, 255, 255, 0.42);
}


.chapter-label span {

    color: #a9182b;

    font-size: 0.7rem;
}


.products-intro h1 {

    margin-top: 1.5rem;

    font-family: "Cinzel", serif;

    font-size: clamp(2.5rem,
            5vw,
            4.5rem);

    font-weight: 400;

    letter-spacing: 0.12rem;

    line-height: 1.1;
}


.products-intro h2 {

    margin-top: 0.8rem;

    font-size: 1.15rem;

    font-weight: 400;

    color:
        rgba(255, 255, 255, 0.75);
}


.products-intro p {

    max-width: 35rem;

    margin:
        1.5rem auto 0;

    font-size: 0.75rem;

    font-weight: 300;

    line-height: 2.2;

    color:
        rgba(255, 255, 255, 0.48);
}


.products-intro p span {

    font-family: "Cinzel", serif;

    letter-spacing: 0.15rem;

    color:
        rgba(255, 255, 255, 0.8);
}


.intro-cross {

    margin-top: 2rem;

    font-size: 0.85rem;

    color: #a9182b;
}


.products-toolbar {

    margin-bottom: 1.8rem;

    padding-bottom: 1rem;

    display: flex;

    align-items: center;

    justify-content: space-between;

    direction: ltr;

    border-bottom:
        1px solid rgba(255, 255, 255, 0.1);
}


.products-count {

    display: flex;

    align-items: center;

    gap: 0.7rem;

    font-family: "Cinzel", serif;

    font-size: 0.55rem;

    letter-spacing: 0.18rem;
}


.products-count span {

    color:
        rgba(255, 255, 255, 0.3);
}


.products-count strong {

    font-weight: 400;

    color: #fff;
}


.products-total {

    font-family: "Cinzel", serif;

    font-size: 0.65rem;

    letter-spacing: 0.15rem;

    color:
        rgba(255, 255, 255, 0.7);
}

.products-total strong {

    font-family: "Cinzel", serif;

    font-size: 0.68rem;

    font-weight: 400;

    letter-spacing: 0.08rem;

    color: #ffffffbe;
}

.products-total span {

    margin-left: 0.35rem;

    font-size: 0.5rem;

    color:
        rgba(255, 255, 255, 0.3);
}

.products-footer {

    width: min(78rem,
            88%);

    margin:
        3rem auto 0;

    padding:
        1.8rem 0 2.5rem;

    display: flex;

    align-items: center;

    justify-content: space-between;

    border-top:
        1px solid rgba(255, 255, 255, 0.08);

    font-family: "Cinzel", serif;

    font-size: 0.48rem;

    letter-spacing: 0.18rem;

    color:
        rgba(255, 255, 255, 0.3);
}


@media (max-width: 900px) {

    .products-page {

        width: 90%;

        padding-top: 5rem;
    }


    .products-grid {

        gap:
            3rem 1.2rem;
    }


    .product-image {

        aspect-ratio: 1 / 1.08;
    }


    .products-intro {

        margin-bottom: 4rem;
    }

}


@media (max-width: 600px) {

    .products-header {

        padding:
            1.3rem 5vw;
    }


    .products-logo {

        font-size: 1rem;

        letter-spacing: 0.3rem;
    }


    .back-home {

        font-size: 0.6rem;
    }


    .products-page {

        width: 90%;

        padding:
            4rem 0 3rem;
    }


    .products-intro {

        margin-bottom: 3rem;
    }


    .chapter-label {

        font-size: 0.45rem;

        letter-spacing: 0.18rem;
    }


    .products-intro h1 {

        font-size:
            clamp(2rem, 10vw, 3rem);
    }


    .products-intro h2 {

        font-size: 0.95rem;
    }


    .products-intro p {

        font-size: 0.65rem;

        line-height: 2;

        padding: 0 0.5rem;
    }


    .products-toolbar {

        margin-bottom: 1.3rem;
    }


    .products-grid {

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap:
            2.5rem 0.8rem;
    }


    .product-image {

        aspect-ratio: 0.88 / 1;
    }


    .product-cross {

        top: 0.7rem;

        right: 0.7rem;

        font-size: 0.7rem;
    }


    .product-index {

        top: 0.7rem;

        left: 0.7rem;

        font-size: 0.4rem;
    }


    .image-overlay {

        left: 0.7rem;

        bottom: 0.7rem;

        font-size: 0.4rem;
    }


    .product-meta {

        padding-top: 0.7rem;

        gap: 0.5rem;
    }


    .product-category {

        font-size: 0.34rem;

        letter-spacing: 0.08rem;
    }


    .product-meta h3 {

        font-size: 0.62rem;
    }


    .product-meta p {

        font-size: 0.5rem;
    }


    .product-price {

        font-size: 0.45rem;
    }


    .products-footer {

        width: 90%;

        flex-direction: column;

        gap: 0.8rem;

        text-align: center;

        font-size: 0.4rem;
    }

}