:root {
    --bg: #0f0f0f;
    --card: #1a1a1a;
    --text: #ffffff;
    --accent: #c9a657; /* الدهبي بتاعنا */
    --muted: #aaaaaa;
}


/* ✅ إعدادات الصفحة الأساسية */
body {
    font-family: Arial, sans-serif;
    direction: rtl;
    text-align: center;
    margin: 0;
    padding: 0;
    background-color: var(--bg);
    color: var(--text);
}

/* ✅ شريط العنوان */
/* ✅ الهيدر الاحترافي */
header {
    background: var(--card);
    padding: 15px 25px; /* مسافة داخلية متوازنة */
    display: flex;
    justify-content: space-between; 
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.05); /* خط خفيف جداً بيدي فخامة */
}

/* الأيقونة */
.home-link {
    color: var(--text);
    font-size: 20px;
    text-decoration: none;
    transition: 0.3s;
    width: 40px; /* تحديد عرض ثابت للأيقونة */
    text-align: left;
}

.home-link:hover {
    color: var(--accent);
    transform: scale(1.1);
}

/* الاسم اللي في النص */
header h3 {
    margin: 0;
    font-size: 18px;
    letter-spacing: 2px; /* مسافات بين الحروف للإنجليزي بتخليه شيك */
    text-transform: uppercase;
    flex-grow: 1; /* يخلي العنوان ياخد المساحة اللي في النص */
    text-align: center;
}

/* ✅ العنصر السحري عشان السنترة تظبط */
.header-spacer {
    width: 40px; /* نفس عرض الأيقونة بالظبط عشان الكفتين يتساووا */
}
/* ✅ تحسين تصميم سلايدر الصور */
.slider {
    position: relative;
    max-width: 100%;
    width: 400px;
    margin: 20px auto;
    overflow: hidden;
}

.slider img {
    width: 100%;
    border-radius: 10px;
    transition: opacity 0.3s ease-in-out;
}

.slider button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 18px;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

.slider button:hover {
    background: rgba(0, 0, 0, 0.8);
}

.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;
}


/* ✅ تحسين تصميم تفاصيل المنتج */
.product-details {
    background: var(--card);
    color: var(--text);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    max-width: 500px;
    margin: auto;
    text-align: center;
}

.product-details h2 {
    font-size: 22px;
    color: var(--text);
}

.product-details p {
    font-size: 18px;
    color: var(--text);
}

/* ✅ تحسين اختيار المقاس واللون والكمية */
.options {
    margin: 15px 0;
    display: flex;
    flex-direction: column; /* جعل الخيارات تحت بعضها */
    align-items: center;
}

.option-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 10px; /* مسافة بين كل خيار */
}

.option-group label {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 5px; /* مسافة بين التسمية و القائمة المنسدلة */
}

.option-group select {
    padding: 8px;
    font-size: 16px;
    border-radius: 5px;
    border: 1px solid #ccc;
    width: 120px;
    text-align: center;
}

/* ✅ تحسين الأزرار */
.add-to-cart, .go-to-cart, .back-button {
    display: block;
    margin: 10px auto;
    padding: 12px;
    font-size: 16px;
    color: white;
    background: var(--muted);
    text-decoration: none;
    border-radius: 5px;
    width: 80%;
    text-align: center;
    transition: background 0.3s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
}

.add-to-cart:hover, .go-to-cart:hover  {
    background: var(--accent);
    transform: scale(1.05);
}
.back-button:hover {
    background: var(--accent);
    transform: scale(1.05);
}

/* ================= BUNDLE DESIGN ================= */

.product-details{
    margin-top: 30px;
    background: linear-gradient(145deg,#151515,#1d1d1d);
    border: 1px solid rgba(201,166,87,0.15);
}

/* العنوان */
.product-details h2{
    color: var(--accent);
    margin-bottom: 15px;
    font-size: 28px;
}

/* البراجرافات */
.product-details p{
    color: #d8d8d8;
    line-height: 1.7;
    font-size: 15px;
}

/* البوكس بتاع الاختيارات */
.options{
    margin-top: 25px;
    gap: 18px;
}

/* كل اختيار */
.option-group{
    width: 100%;
    max-width: 300px;
    align-items: flex-start;
}

/* الليبل */
.option-group label{
    color: var(--accent);
    margin-bottom: 8px;
    font-size: 15px;
}

/* السليكت */
.option-group select{
    width: 100%;
    background: #111;
    color: white;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 12px;
    outline: none;
    transition: 0.3s;
}

/* hover + focus */
.option-group select:hover,
.option-group select:focus{
    border-color: var(--accent);
    box-shadow: 0 0 10px rgba(201,166,87,0.2);
}

/* زرار الاضافة */
.add-to-cart{
    background: var(--accent);
    color: black;
    font-weight: bold;
    border-radius: 14px;
    margin-top: 25px;
}

.add-to-cart:hover{
    background: #d9b96d;
}

/* زرار الكارت */
.go-to-cart{
    background: #222;
    border: 1px solid #333;
}

/* زرار الرجوع */
.back-button{
    background: #181818;
    border: 1px solid #333;
}

/* الصورة */
.slider img{
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.08);
}

/* السلايدر */
.slider{
    margin-top: 25px;
}

/* شريط الخصم */
.discount-tag{
    display: inline-block;
    margin-top: 10px;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 14px;
}

/* موبايل */
@media (max-width:768px){

    .product-details{
        width: 92%;
        padding: 20px 15px;
    }

    .product-details h2{
        font-size: 22px;
    }

    .option-group{
        max-width: 100%;
    }
}


/* ✅ تحسين التجاوب مع الأجهزة الصغيرة */
@media (max-width: 480px) {
    .product-details {
        max-width: 95%;
        padding: 15px;
    }

    .slider {
        max-width: 95%;
    }

    .slider button {
        padding: 8px;
        font-size: 16px;
    }

    .add-to-cart, .go-to-cart, .back-button {
        width: 90%;
        font-size: 14px;
        padding: 10px;
    }

    .option-group select {
        width: 100px; /* تقليل عرض القوائم المنسدلة */
    }
}
