@font-face {
    font-family: "vazirmatn";
    src: url("../fonts/Vazirmatn-Regular.woff2") format("woff2");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "vazirmatn";
    src: url("../fonts/Vazirmatn-Bold.woff2") format("woff2");
    font-weight: bold;
    font-style: normal;
    font-display:swap;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "vazirmatn";
    direction: rtl;
}
body{
    background-color:#ffff;
    width: 100%;
    margin-top: 95px;
}
.site-header{
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 85px;
    background-color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    z-index: 100;
}
.logo{
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
}
.logo img{
    width: auto;
    display: block;
    height: 60px;
}
.nav ul{
    display: flex;
    align-items: center;
    list-style: none;
    gap: 30px;
}
.nav a{
    text-decoration: none;
    color: blue;
    font-size: 16px;
    padding: 10px 15px;
    display: block;
    transition: 0.3s ease;
    border-radius: 6px;
}
.nav ul li a:hover {
    background-color: rgba(0, 0, 255, 0.973); 
    color: #ffff;
}
.hamburger{
    display: none;
    cursor: pointer;
}
.hamburger img{
    width: 40px;
    height: auto;
}

@media (max-width:900px){
    .nav{
        position: fixed;
        top: 85px;
        right: -100%;
        left: auto;
        width: 280px;
        height: 100dvh;
        background-color: blue;
        padding-top: 20px;
        transition: 0.4s ease;
    }
    .nav ul {
        flex-direction: column;
        padding-right: 30px;
        gap: 25px;
    }
    .nav.active{
        right: 0; 
    }
    .hamburger{
        display: block;
    }
    .nav a{
        color: #ffff;
    }
}

.container{
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 16px;
}
.products-grid{
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 40px;
}
.product-item{
    width: 100%;
    cursor: pointer;
    text-align: center;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    transition: 0.3s ease;
}
.image-wrapper{
    width: 100%;
    aspect-ratio: 1/1;
    position: relative;
    border-radius: 16px 16px 0 0;
    overflow: hidden;
}
.product-img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.3s ease;
}
.image-wrapper::before{
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    transition: 0.3s ease;
    z-index: 1;
    pointer-events: none;
}
.icon-overlay{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}
.icon-overlay img{
    width: 40px;
    height: 40px;
    display: block;
    filter: brightness(0) invert(1);
}
.image-wrapper:hover::before{
    background: rgba(0, 0, 0, 0.65);
}
.image-wrapper:hover .icon-overlay{
    opacity: 1;
}
.product-item:hover{
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}
.product-title{
    font-size: 18px;
    font-weight: 500;
    color: #2c2c2e;
    text-align: center;
    word-break: break-word;
    padding: 16px;
}

@media(max-width:768px){
    .products-grid{
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .icon-overlay img{
        width: 35px;
        height: 35px;
    }
    .container{
        padding: 16px 24px;
        width: 100%;
    }
}

.footer{
    width: 100%;
    background-color: rgb(5, 33, 192);
    border-radius: 30px 30px 0 0;
    margin-top: 30px;
}
.footer-info-flex{
    width: 100%;
    display: flex;
    justify-content: space-around;
    padding: 50px;
    gap: 20px;
}
.footer-info-flex-details{
    line-height: 2;  
    color: white;
}
.footer-info-flex-details li{
    list-style: none;
}
.footer-info-flex-details h4{
    margin-bottom: 15px;
}
@media (max-width: 768px){
    .footer-info-flex{
        flex-direction: column;
        height: auto;
    }
}
.footer-icon-png{
    width: 20px;
    height: 20px;
}
.footer-icon{
    display: flex;
    flex-direction: row;
    gap: 8px;
    margin-bottom: 8px;
}