/* الحاوية الرئيسية للخيارات الرئيسية */
.main-options-group {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
    direction: rtl;
}

/* الحاوية للخيارات الفرعية */
.sub-options-group {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin-bottom: 1.5rem;
    direction: rtl;
}

/* حاوية الطلبات الخاصة */
.special-requests-group {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin-bottom: 1.5rem;
    direction: rtl;
}

.custom-modern-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 1.13rem;
    font-family: inherit;
    position: relative;
    gap: 12px;
    min-height: 36px;
    user-select: none;
    flex-direction: row-reverse;
}

.custom-modern-input {
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    border: none;
    margin: 0;
    padding: 0;
    width: 0;
    height: 0;
    position: absolute;
    left: 0;
    opacity: 0;
    z-index: -1;
}

.custom-modern-label .custom-modern-box,
.custom-modern-label .custom-modern-radio {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    min-height: 28px;
    width: 28px;
    height: 28px;
    margin-right: 0.7em;
    border-radius: 8px;
    box-shadow: 0 1px 2px #0001;
    transition: background 0.2s, border 0.2s;
    position: relative;
}

/* مربع الشيك بوكس */
.custom-modern-box {
    background: #fff;
    border: 2px solid #21b77e;
    border-radius: 8px;
}

/* دائرة الراديو */
.custom-modern-radio {
    background: #fff;
    border: 2px solid #ea5a2a;
    border-radius: 50%;
}

/* علامة الشيك بوكس */
.custom-modern-input[type="checkbox"]:checked + .custom-modern-label .custom-modern-box::after {
    content: '';
    position: absolute;
    width: 11px;
    height: 20px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -55%) rotate(45deg);
    border: solid #21b77e;
    border-width: 0 4px 4px 0;
    background: transparent;
    z-index: 1;
    pointer-events: none;
}

/* نقطة الراديو */
.custom-modern-input[type="radio"]:checked + .custom-modern-label .custom-modern-radio::after {
    content: '';
    position: absolute;
    width: 14px;
    height: 14px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: #ea5a2a;
    border-radius: 50%;
    z-index: 1;
    pointer-events: none;
}

.custom-modern-input:focus + .custom-modern-label .custom-modern-box,
.custom-modern-input:focus + .custom-modern-label .custom-modern-radio {
    box-shadow: 0 0 0 3px #21b77e33;
}

.custom-modern-label:hover .custom-modern-box,
.custom-modern-label:hover .custom-modern-radio {
    border-color: #18815a;
}

.custom-modern-label small {
    font-size: 1.05rem;
    color: #888;
    margin-top: 2px;
    display: block;
}

/* تحسين للـ RTL */
.custom-modern-label {
    flex-direction: row-reverse;
}
.custom-modern-label .custom-modern-box,
.custom-modern-label .custom-modern-radio {
    margin-left: 0;
    margin-right: 0.7em;
}

.form-check-label {
    margin-right: 0.5rem;
}

/* خيار البطاقة (للكروت التفاعلية) */
.card-option {
    border: 2px solid transparent;
    cursor: pointer;
    transition: 0.3s;
    border-radius: 10px;
    padding: 1rem;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    gap: 10px;
}
.card-option:hover {
    border-color: #0d6efd40;
    background-color: #eef6ff;
}
.card-option.selected {
    border-color: #0d6efd;
    background-color: #f0f8ff;
}

/* خيارات فرعية (داخل البطاقات) */
.suboptions .border {
    background-color: #f8f9fa;
    transition: 0.3s;
    border-radius: 10px;
}
.suboptions .border:hover {
    background-color: #eef6ff;
}
.suboptions input[type="number"] {
    max-width: 90px;
    font-size: 1rem;
}

/* نصوص فرعية */
.text-primary {
    font-size: 0.98rem;
}

/* استجابة للجوال والتابلت */
@media (max-width: 600px) {
    .main-options-group,
    .sub-options-group,
    .special-requests-group {
        gap: 1rem;
        margin-bottom: 1rem;
    }
    .custom-modern-label {
        font-size: 1rem;
        min-height: 26px;
        gap: 7px;
    }
    .custom-modern-label .custom-modern-box,
    .custom-modern-label .custom-modern-radio {
        width: 23px;
        height: 23px;
        min-width: 23px;
        min-height: 23px;
    }
    .card-option {
        padding: 0.5rem;
        font-size: 0.97rem;
    }
}
.modern-radio { display: none; }
.modern-radio-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 1.18rem;
    direction: rtl;
}
.modern-radio-inner {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #eee;
    border: 2.5px solid #ea5a2a;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: border 0.3s, background 0.3s;
}
.modern-radio-text { user-select: none; }
.modern-radio:checked + .modern-radio-label .modern-radio-inner {
    border-color: #ea5a2a;
    background: #fff3f1;
}
.modern-radio-inner::after {
    content: "";
    display: block;
    width: 14px; height: 14px;
    border-radius: 50%;
    background: #ea5a2a;
    opacity: 0;
    transition: opacity 0.2s;
}
.modern-radio:checked + .modern-radio-label .modern-radio-inner::after {
    opacity: 1;
}

.modern-toggle {
    display: none;
}
.modern-toggle-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    gap: 12px;
    font-size: 1.18rem;
    direction: rtl;
}
.modern-toggle-inner {
    width: 44px;
    height: 24px;
    border-radius: 16px;
    background: #d1d5db;
    position: relative;
    transition: background 0.3s;
}
.modern-toggle-label .modern-toggle-text { user-select: none; }
.modern-toggle-inner::before {
    content: "";
    position: absolute;
    top: 2px; right: 2px;
    width: 20px; height: 20px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 5px #0001;
    transition: right 0.3s, background 0.3s;
}
.modern-toggle:checked + .modern-toggle-label .modern-toggle-inner {
    background: #21b77e;
}
.modern-toggle:checked + .modern-toggle-label .modern-toggle-inner::before {
    right: 22px;
    background: #fff;
}
.product-info-list {
    margin: 0;
    padding: 0;
}

.product-info-list .info-item {
    display: flex;
    align-items: center;
    gap: 5px;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 6px 14px;
    font-size: 0.97rem;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
    margin-bottom: 0;
    /* لجعل العناصر متقاربة أكثر عند تصغير الشاشة */
    min-width: 120px;
    white-space: nowrap;
}
.sticky-gallery {
    position: sticky;
    top: 100px;      /* يمكنك تغييرها حسب المسافة التي تريدها من الأعلى */
    z-index: 10;    /* لكي يبقى فوق بعض العناصر */
    background: #fff; /* لتفادي مشكلة ظهور الخلفية */
}