<!DOCTYPE html>
<html lang="fa" dir="rtl">
<head>
<meta charset="UTF-8">
<title>فروشگاه فیلم</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="https://cdn.jsdelivr.net/gh/rastikerdar/vazir-font@v30.1.0/dist/font-face.css" rel="stylesheet">

<style>
body {
    font-family: Vazir;
    background: #f2f2f2;
    margin: 0;
}
header {
    background: #222;
    padding: 15px;
    color: white;
    text-align: center;
    font-size: 20px;
}
.container {
    width: 90%;
    margin: auto;
    padding-bottom: 20px;
}
.products {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}
.product-card {
    background: white;
    border-radius: 10px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-sizing: border-box;
}
.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
}
.product-info {
    flex-grow: 1;
    padding: 10px 0;
}
.add-to-cart {
    background: #ff5722;
    color: white;
    padding: 10px;
    border: none;
    width: 100%;
    margin-top: auto;
    border-radius: 8px;
    cursor: pointer;
    font-family: Vazir;
}
</style>

</head>
<body>

<header>فروشگاه فیلم</header>
<div class="container">
    <h3 style="text-align:center">محصولات ویژه</h3>

    <div class="products">
        <div class="product-card">
            <img src="1.jpg" alt="پکیج فیلم ایرانی">
            <div class="product-info">
                <h4>پکیج فیلم ایرانی</h4>
                <p>0 تومان</p>
            </div>
            <button class="add-to-cart" onclick="openDownloadModal()">
                افزودن به سبد
            </button>
        </div>
        
        <div class="product-card">
            <img src="2.jpg" alt="پکیج فیلم خارجی">
            <div class="product-info">
                <h4>پکیج فیلم خارجی</h4>
                <p>0 تومان</p>
            </div>
            <button class="add-to-cart" onclick="openDownloadModal()">
                افزودن به سبد
            </button>
        </div>
        
        <div class="product-card">
            <img src="3.jpg" alt="پکیج فیلم بلاگرا">
            <div class="product-info">
                <h4>پکیج فیلم بلاگرا</h4>
                <p>0 تومان</p>
            </div>
            <button class="add-to-cart" onclick="openDownloadModal()">
                افزودن به سبد
            </button>
        </div>
        
        <div class="product-card">
            <img src="4.jpg" alt="پکیج فیلم همجنسگرا">
            <div class="product-info">
                <h4>پکیج فیلم همجنسگرا</h4>
                <p>0 تومان</p>
            </div>
            <button class="add-to-cart" onclick="openDownloadModal()">
                افزودن به سبد
            </button>
        </div>
        
        <div class="product-card">
            <img src="5.jpg" alt="پکیج فیلم لزبین">
            <div class="product-info">
                <h4>پکیج فیلم لزبین</h4>
                <p>0 تومان</p>
            </div>
            <button class="add-to-cart" onclick="openDownloadModal()">
                افزودن به سبد
            </button>
        </div>
        
        <div class="product-card">
            <img src="6.jpg" alt="پکیج فیلم لزبین">
            <div class="product-info">
                <h4>پدوفیل</h4>
                <p>0 تومان</p>
            </div>
            <button class="add-to-cart" onclick="openDownloadModal()">
                افزودن به سبد
            </button>
        </div>
    </div>
</div>

<!-- Modal -->
<div id="downloadModal" style="
    display:none;
    position:fixed;
    top:0; left:0;
    width:100%; height:100%;
    background:rgba(0,0,0,0.7);
    z-index:99999;
    justify-content:center;
    align-items:center;">

    <div style="
        background:white;
        width:85%;
        max-width:350px;
        padding:20px;
        border-radius:15px;
        text-align:center;
        font-family:Vazir;">

        <h3>برای افزودن به سبد و تماشا</h3>
        <p style="margin-bottom:20px;">لطفاً از طریق برنامه اقدام کنید</p>

        <a href="app.apk" download
            style="
                display:block;
                background:#28a745;
                padding:10px;
                color:white;
                border-radius:10px;
                text-decoration:none;
                margin-bottom:10px;
                font-size:16px;">
            دانلود برنامه
        </a>

        <button onclick="closeModal()"
            style="
                background:#e63946;
                padding:10px;
                color:white;
                width:100%;
                border:none;
                border-radius:10px;
                cursor:pointer;">
            بستن
        </button>
    </div>

</div>

<script>
function openDownloadModal() {
    document.getElementById("downloadModal").style.display = "flex";
}

function closeModal() {
    document.getElementById("downloadModal").style.display = "none";
}
</script>

</body>
</html>