<style>
/* إعدادات الخط والتصميم العام */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;700;900&display=swap');
.lp-container {
font-family: 'Tajawal', sans-serif;
direction: rtl;
text-align: right;
background-color: #f4f4f4;
max-width: 500px;
margin: 0 auto;
color: #333;
}
/* الهيدر (اللوغو) */
.lp-header {
background: #000;
padding: 15px;
text-align: center;
}
.lp-header img {
height: 60px;
max-width: 100%;
}
/* القسم الرئيسي */
.lp-main {
background: #fff;
margin: 10px;
border-radius: 10px;
overflow: hidden;
box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.main-img-container {
position: relative;
width: 100%;
}
.main-img-container img {
width: 100%;
display: block;
}
.free-shipping {
position: absolute;
top: 10px;
right: 10px;
background: #ffcc00;
padding: 5px 12px;
border-radius: 20px;
font-weight: bold;
font-size: 13px;
}
.lp-content {
padding: 15px;
}
.lp-title {
font-size: 20px;
font-weight: 900;
margin-bottom: 15px;
line-height: 1.4;
}
/* قسم الأثمنة */
.price-box {
background: #fffbe6;
border: 2px solid #ffe58f;
padding: 15px;
border-radius: 8px;
margin-bottom: 20px;
}
.price-row {
display: flex;
justify-content: space-between;
margin-bottom: 10px;
font-weight: bold;
}
.price-row.highlight {
background: #f6ffed;
border: 2px solid #52c41a;
padding: 10px;
border-radius: 5px;
color: #237804;
}
.old-price { text-decoration: line-through; color: #999; font-size: 14px; }
.new-price { color: #52c41a; font-size: 18px; font-weight: 900; }
/* الألوان والمقاسات */
.selection-title { font-weight: bold; margin: 15px 0 10px; }
.options-flex { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 15px; }
.color-btn {
width: 50px; height: 50px; border-radius: 50%; border: 2px solid #ddd;
cursor: pointer; overflow: hidden; padding: 0;
}
.color-btn.active { border-color: #000; box-shadow: 0 0 5px rgba(0,0,0,0.5); }
.color-btn img { width: 100%; height: 100%; object-fit: cover; }
.size-btn {
padding: 8px 15px; border: 1px solid #ddd; background: #fff;
border-radius: 5px; cursor: pointer; font-weight: bold;
}
.size-btn.active { background: #000; color: #fff; border-color: #000; }
/* الفورم */
.order-form { background: #f9f9f9; padding: 15px; border-radius: 8px; margin-top: 20px; }
.order-form input, .order-form textarea {
width: 100%; padding: 10px; margin-bottom: 10px; border: 1px solid #ccc;
border-radius: 5px; box-sizing: border-box; font-family: 'Tajawal', sans-serif;
}
.error-text { color: red; font-size: 12px; margin-bottom: 10px; display: none; }
/* زر الواتساب */
.cta-button {
background: #25d366; color: #fff; width: 100%; padding: 15px;
border: none; border-radius: 8px; font-size: 18px; font-weight: 900;
cursor: pointer; margin-top: 10px; text-decoration: none; display: block; text-align: center;
}
.cta-button:hover { background: #128c7e; }
</style>
<div class="lp-container">
<div class="lp-header">
<img src="https://www.image2url.com/r2/default/images/1778285270134-a6e29a89-2e13-4845-8587-881a3b38a454.jpg">
</div>
<div class="lp-main">
<div class="main-img-container">
<img id="displayImg" src="https://www.image2url.com/r2/default/images/1778285301392-26cdb339-a368-40ba-8375-859d60526063.jpg">
<div class="free-shipping">التوصيل بالمجان 🚚</div>
</div>
<div class="lp-content">
<h1 class="lp-title">💥 طقم صيفي رجالي حصري – ستايل وأناقة في كل لحظة 💥</h1>
<div class="price-box">
<div class="price-row">
<span>1 طقم</span>
<span class="new-price">179 درهم</span>
</div>
<div class="price-row highlight">
<span>2 أطقم (الهمزة 🔥)</span>
<span class="new-price">339 درهم</span>
</div>
<div style="text-align:center; font-size:13px; color:#666; margin-top:5px;">التوصيل مجاني لجميع المدن</div>
</div>
<div class="selection-title">اختار اللون:</div>
<div class="options-flex">
<button class="color-btn active" onclick="changeColor(this, 'https://www.image2url.com/r2/default/images/1778285301392-26cdb339-a368-40ba-8375-859d60526063.jpg', 'كحل (Noir)')">
<img src="https://www.image2url.com/r2/default/images/1778285301392-26cdb339-a368-40ba-8375-859d60526063.jpg">
</button>
<button class="color-btn" onclick="changeColor(this, 'https://www.image2url.com/r2/default/images/1778285359794-95ea463b-b1e4-4840-a275-f9c9acd5ff4b.jpg', 'أزرق (Bleu)')">
<img src="https://www.image2url.com/r2/default/images/1778285359794-95ea463b-b1e4-4840-a275-f9c9acd5ff4b.jpg">
</button>
<button class="color-btn" onclick="changeColor(this, 'https://www.image2url.com/r2/default/images/1778285502721-6eef4a89-0feb-45ba-977f-e2591b31b685.jpg', 'رمادي (Gris)')">
<img src="https://www.image2url.com/r2/default/images/1778285502721-6eef4a89-0feb-45ba-977f-e2591b31b685.jpg">
</button>
</div>
<div class="selection-title">اختار المقاس:</div>
<div class="options-flex">
<button class="size-btn active" onclick="changeSize(this, 'M')">M</button>
<button class="size-btn" onclick="changeSize(this, 'L')">L</button>
<button class="size-btn" onclick="changeSize(this, 'XL')">XL</button>
<button class="size-btn" onclick="changeSize(this, '2XL')">2XL</button>
<button class="size-btn" onclick="changeSize(this, '3XL')">3XL</button>
</div>
<div class="order-form">
<div class="selection-title" style="margin-top:0;">📝 دخل معلوماتك للطلب:</div>
<div id="errMsg" class="error-text">⚠️ عافاك عمر المعلومات كاملة!</div>
<input type="text" id="uName" placeholder="الاسم والنسب">
<input type="tel" id="uPhone" placeholder="رقم الهاتف">
<input type="text" id="uCity" placeholder="المدينة">
<textarea id="uAddr" placeholder="العنوان" rows="2"></textarea>
<button onclick="orderNow()" class="cta-button">للطلب عبر الواتساب</button>
</div>
<div style="text-align:center; font-size:12px; color:#888; margin-top:15px;">الدفع عند الاستلام ✅</div>
</div>
</div>
</div>
<script>
let color = "كحل (Noir)";
let size = "M";
function changeColor(btn, img, name) {
document.getElementById('displayImg').src = img;
document.querySelectorAll('.color-btn').forEach(b => b.classList.remove('active'));
btn.classList.add('active');
color = name;
}
function changeSize(btn, name) {
document.querySelectorAll('.size-btn').forEach(b => b.classList.remove('active'));
btn.classList.add('active');
size = name;
}
function orderNow() {
const n = document.getElementById('uName').value;
const p = document.getElementById('uPhone').value;
const c = document.getElementById('uCity').value;
const a = document.getElementById('uAddr').value;
if(!n || !p || !c) {
document.getElementById('errMsg').style.display = 'block';
return;
}
const myNum = "212600000000"; // حط نمرتك هنا
const msg = `سلام، بغيت نطلب:\n*طقم صيفي رجالي*\nاللون: ${color}\nالمقاس: ${size}\n---\nالاسم: ${n}\nالهاتف: ${p}\nالمدينة: ${c}\nالعنوان: ${a}`;
window.open(`https://wa.me/${myNum}?text=${encodeURIComponent(msg)}`, '_blank');
}
</script>