@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;

}

.products-grid {

    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap:
        2rem 1rem;
}


/* ========================================
   PRODUCT CARD
======================================== */

.product-card {

    position: relative;

    min-width: 0;

    padding: 0.7rem;

    background:
        linear-gradient(145deg,
            rgba(255, 255, 255, 0.035),
            rgba(255, 255, 255, 0.01));

    border:
        1px solid rgba(255, 255, 255, 0.09);

    border-radius:
        0.85rem;

    overflow: hidden;

    transition:
        transform 0.45s ease,
        border-color 0.45s ease,
        box-shadow 0.45s ease;
}


.product-card::before {

    content: "";

    position: absolute;

    top: 0;

    left: 15%;

    right: 15%;

    height: 0.0625rem;

    background:
        linear-gradient(90deg,
            transparent,
            rgba(169, 24, 43, 0.7),
            transparent);

    opacity: 0.35;

    transition:
        opacity 0.45s ease,
        left 0.45s ease,
        right 0.45s ease;
}


.product-card:hover {

    transform:
        translateY(-0.45rem);

    border-color:
        rgba(169, 24, 43, 0.38);

    box-shadow:
        0 1rem 2.5rem rgba(0, 0, 0, 0.35),
        0 0 1.8rem rgba(120, 10, 25, 0.08);
}


.product-card:hover::before {

    left: 5%;

    right: 5%;

    opacity: 0.8;
}


/* ========================================
   PRODUCT IMAGE
======================================== */

.product-card .product-image {

    position: relative;

    width: 100%;

    aspect-ratio:
        0.9;

    overflow: hidden;

    background: #111;

    border-radius:
        0.55rem;

    border:
        1px solid rgba(255, 255, 255, 0.045);
}


.product-card .product-image img {

    width: 100%;

    height: 100%;

    object-fit: cover;

    display: block;

    filter:
        brightness(0.88);

    transform:
        scale(1);

    transition:
        transform 0.8s cubic-bezier(.2, .7, .2, 1),
        filter 0.5s ease;
}


.product-card:hover .product-image img {

    transform:
        scale(1.08);

    filter:
        brightness(0.62);
}


/* ========================================
   IMAGE OVERLAY
======================================== */

.product-card .product-image::after {

    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(180deg,
            transparent 50%,
            rgba(0, 0, 0, 0.65));

    opacity: 0;

    transition:
        opacity 0.5s ease;
}


.product-card:hover .product-image::after {

    opacity: 1;
}


.product-card .image-overlay {

    position: absolute;

    left: 1.2rem;

    bottom: 1.1rem;

    z-index: 2;

    display: flex;

    align-items: center;

    gap: 0.6rem;

    font-family:
        "Cinzel",
        serif;

    font-size: 0.5rem;

    letter-spacing:
        0.16rem;

    opacity: 0;

    transform:
        translateY(0.6rem);

    transition:
        opacity 0.4s ease,
        transform 0.5s ease;
}


.product-card:hover .image-overlay {

    opacity: 1;

    transform:
        translateY(0);
}


.product-card .image-overlay i {

    font-size: 0.7rem;

    transition:
        transform 0.3s ease;
}


.product-card:hover .image-overlay i {

    transform:
        translateX(-0.3rem);
}


/* ========================================
   CROSS
======================================== */

.product-card .product-cross {

    position: absolute;

    top: 1rem;

    right: 1rem;

    z-index: 3;

    font-size: 0.85rem;

    color:
        rgba(255, 255, 255, 0.8);

    opacity: 0.65;

    transition:
        opacity 0.4s ease,
        transform 0.5s ease;
}


.product-card:hover .product-cross {

    opacity: 1;

    transform:
        rotate(12deg) scale(1.15);
}


/* ========================================
   PRODUCT NUMBER
======================================== */

.product-card .product-index {

    position: absolute;

    top: 1rem;

    left: 1rem;

    z-index: 3;

    font-family:
        "Cinzel",
        serif;

    font-size: 0.5rem;

    letter-spacing:
        0.12rem;

    color:
        rgba(255, 255, 255, 0.55);
}


/* ========================================
   PRODUCT META
======================================== */

.product-card .product-meta {

    padding:
        1rem 0.1rem 0.05rem;

    display: flex;

    align-items: flex-start;

    justify-content: space-between;

    gap: 1rem;

    direction: rtl;
}


.product-card .product-category {

    display: block;

    margin-bottom:
        0.45rem;

    font-family:
        "Cinzel",
        serif;

    font-size: 0.48rem;

    letter-spacing:
        0.18rem;

    color:
        rgba(255, 255, 255, 0.35);
}


.product-card .product-meta h3 {

    margin: 0;

    font-family:
        "Cinzel",
        serif;

    font-size:
        0.8rem;

    font-weight:
        400;

    line-height:
        1.8;

    direction:
        rtl;

    text-align:
        right;
}


.product-card .product-price {

    white-space: nowrap;

    font-family:
        "Inter",
        sans-serif;

    font-size:
        0.68rem;

    font-weight:
        400;

    color:
        rgba(255, 255, 255, 0.82);

    transition:
        color 0.3s ease;
}

.product-card:hover .product-price {

    color:
        #ffffff;
}


/* ========================================
   LARGE LAPTOP
======================================== */

@media (max-width: 75rem) {

    .products-grid {

        grid-template-columns:
            repeat(3, minmax(0, 1fr));

        gap:
            2.5rem 1rem;
    }


    .product-card .product-meta h3 {

        font-family:
            "Cinzel",
            serif;

        font-size:
            0.95rem;

        line-height:
            1.8;
    }


    .product-card .product-price {

        font-family:
            "Inter",
            sans-serif;

        font-size:
            0.8rem;
    }

}


/* ========================================
   IPAD / TABLET
======================================== */

@media (max-width: 62rem) {

    .products-grid {

        grid-template-columns:
            repeat(3, minmax(0, 1fr));

        gap:
            2.2rem 0.9rem;
    }


    .product-card {

        padding:
            0.6rem;
    }


    .product-card .product-image {

        aspect-ratio:
            0.9;
    }


    .product-card .product-category {

        font-family:
            "Cinzel",
            serif;

        font-size:
            0.44rem;

        letter-spacing:
            0.12rem;
    }


    .product-card .product-meta h3 {

        font-family:
            "Cinzel",
            serif;

        font-size:
            0.76rem;

        line-height:
            1.8;
    }


    .product-card .product-price {

        font-family:
            "Inter",
            sans-serif;

        font-size:
            0.6rem;
    }


    .product-card .image-overlay {

        font-family:
            "Cinzel",
            serif;

        font-size:
            0.46rem;

        letter-spacing:
            0.12rem;
    }

}


/* ========================================
   MOBILE
======================================== */

@media (max-width: 48rem) {

    .products-grid {

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap:
            1.3rem 0.8rem;
    }


    .product-card {

        padding:
            0.55rem;
    }


    .product-card .product-image {

        aspect-ratio:
            0.88;
    }


    .product-card .product-cross {

        top:
            0.7rem;

        right:
            0.7rem;

        font-size:
            0.7rem;
    }


    .product-card .product-index {

        top:
            0.7rem;

        left:
            0.7rem;

        font-family:
            "Cinzel",
            serif;

        font-size:
            0.4rem;
    }


    .product-card .image-overlay {

        left:
            0.7rem;

        bottom:
            0.7rem;

        font-family:
            "Cinzel",
            serif;

        font-size:
            0.4rem;

        letter-spacing:
            0.08rem;
    }


    .product-card .product-meta {

        padding:
            0.7rem 0.1rem 0.2rem;

        gap:
            0.45rem;
    }


    .product-card .product-category {

        margin-bottom:
            0.3rem;

        font-family:
            "Cinzel",
            serif;

        font-size:
            0.34rem;

        letter-spacing:
            0.06rem;
    }


    .product-card .product-meta h3 {

        font-family:
            "Cinzel",
            serif;

        font-size:
            0.85rem;

        line-height:
            1.8;
    }


    .product-card .product-price {

        font-family:
            "Inter",
            sans-serif;

        font-size:
            0.65rem;
    }

}

@media (max-width: 25rem) {

    .products-grid {

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap:
            1.2rem 0.6rem;
    }


    .product-card {

        padding:
            0.45rem;
    }


    .product-card .product-image {

        aspect-ratio:
            0.88;
    }


    .product-card .product-cross {

        top:
            0.55rem;

        right:
            0.55rem;

        font-size:
            0.62rem;
    }


    .product-card .product-index {

        top:
            0.55rem;

        left:
            0.55rem;

        font-family:
            "Cinzel",
            serif;

        font-size:
            0.34rem;
    }


    .product-card .product-category {

        font-family:
            "Cinzel",
            serif;

        font-size:
            0.4rem;

        letter-spacing:
            0.04rem;
    }


    .product-card .product-meta h3 {

        font-family:
            "Cinzel",
            serif;

        font-size:
            0.7rem;

        line-height:
            1.8;
    }


    .product-card .product-price {

        font-family:
            "Inter",
            sans-serif;

        font-size:
            0.7rem;
    }


    .product-card .image-overlay {

        font-family:
            "Cinzel",
            serif;

        font-size:
            0.34rem;

        letter-spacing:
            0.05rem;
    }

}