/* إعدادات الصفحة الأساسية */


:root {
    --bg: #0f0f0f;
    --card: #1a1a1a;
    --text: #ffffff;
    --muted: #aaaaaa;
    --accent: #c9a657;
}


body {
    font-family: Arial, sans-serif;
    direction: rtl;
    text-align: center;
    margin: 0;
    padding: 0;
    background-color: var(--bg);
}




/* شريط العنوان */
header {
    background: var(--bg);
    color: rgb(255, 255, 255);
    padding: 15px;
    font-size: 24px;
}

/* ✅ تنسيق الأزرار العلوية */
.top-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 15px;
    background-color: var(--bg);
    border-bottom: 2px solid #ddd;
}

.filter-box{
    display:flex;
    justify-content:center;
    gap:10px;
    margin:20px 0;
}

.filter-box select,
.filter-box button{
    padding:10px;
    border:none;
    border-radius:8px;
}

.nav-button {
    background-color: var(--muted);
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
    transition: background 0.3s ease, transform 0.2s ease;
}

.nav-button:hover {
    background-color: var(--accent);
    transform: scale(1.05);
}

.bundle-card{
    background: linear-gradient(145deg, #151515, #1c1c1c);
    border: 1px solid rgba(201,166,87,0.2);
    padding: 30px;
    border-radius: 20px;
    margin: 30px auto;
    max-width: 500px;
    text-align: center;
    color: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.bundle-card h2{
    color: var(--accent);
    margin-bottom: 10px;
}

.bundle-card select{
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    background: #111;
    color: white;
    border: 1px solid #333;
    border-radius: 10px;
}

.bundle-price{
    margin-top: 15px;
    font-size: 1.5em;
    color: var(--accent);
    font-weight: bold;
}

.bundle-btn{
    margin-top: 15px;
    width: 100%;
    padding: 12px;
    background: var(--accent);
    border: none;
    border-radius: 12px;
    font-weight: bold;
    cursor: pointer;
}

.sale-badge {
    position: center;
    top: 10px;
    left: 10px;
    background-color: red;
    color: white;
    padding: 5px 10px;
    font-weight: bold;
    border-radius: 5px;
    font-size: 14px;
    z-index: 10;
    display: block;}


    .discount-tag {
        background-color: red;
        color: white;
        font-size: 13px;
        font-weight: bold;
        padding: 3px 8px;
        margin-left: 10px;
        border-radius: 5px;
        vertical-align: middle;
    }
    
    
/* تصميم المنتجات */
.products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
    max-width: 1200px;
    margin: auto;
}

.product {
    width: 90%;
    max-width: 390px;
    background: var(--card);
    color: var(--text);
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}
.product:hover {
    transform: scale(1.05);
}

.product img {
    max-width: 100%;
    border-radius: 5px;
}

/* زر الشراء */
button {
    background: var(--muted);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    border-radius: 5px;
    width: 100%;
}

button:hover {
    background: #8b6719;
}

/* ================= BUNDLE PRODUCT ================= */

.bundle-mini{
    margin-top: 15px;
    text-align: right;
}

.bundle-mini p{
    color: var(--accent);
    font-weight: bold;
    margin-bottom: 15px;
    text-align: center;
}

.bundle-mini label{
    display: block;
    margin: 10px 0 5px;
    color: white;
    font-size: 14px;
}

.bundle-mini select{
    width: 100%;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid #333;
    background: #111;
    color: white;
    outline: none;
    transition: 0.3s;
}

.bundle-mini select:focus{
    border-color: var(--accent);
    box-shadow: 0 0 10px rgba(201,166,87,0.3);
}

.bundle-btn{
    margin-top: 18px;
    background: var(--accent);
    color: black;
    font-weight: bold;
    border-radius: 10px;
    transition: 0.3s;
}

.bundle-btn:hover{
    background: #e0bb69;
    transform: scale(1.03);
}

.product[data-fit="bundle"]{
    border: 1px solid rgba(201,166,87,0.25);
    box-shadow: 0 0 20px rgba(201,166,87,0.15);
}

/* تحسين شكل السعر */

.product p{
    line-height: 1.8;
}

/* تحسين الموبايل */

@media (max-width: 768px){

    .bundle-mini select{
        font-size: 14px;
    }

    .bundle-btn{
        padding: 12px;
    }

}

/* تحسين التوافق مع الأجهزة الصغيرة */
@media (max-width: 768px) {
    .products {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        padding: 10px;
    }
    
    header {
        font-size: 20px;
    }

    .product {
        padding: 10px;
    }

    .about-button {
        padding: 8px;
    }

    .nav-button {
        padding: 8px 15px;
        font-size: 14px;
    }
}

/* تحسين التوافق مع الهواتف الصغيرة جدًا */
@media (max-width: 480px) {
    .products {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }

    header {
        font-size: 18px;
        padding: 10px;
    }

    .about-button {
        font-size: 14px;
        padding: 7px;
    }

    .nav-button {
        padding: 7px 12px;
        font-size: 13px;
    }
}

/* زر الـ "About" */
.about-button {
    display: inline-block;
    background: var(--muted);
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 16px;
    transition: background 0.3s ease, transform 0.2s ease;
    margin-top: 10px;
}

.about-button:hover {
    background: var(--accent);
    transform: scale(1.05);
}
