.summary-item .product-detail-value {
    display: block;
    margin-top: 5px;
    line-height: 1.5;
    text-align: justify;
    max-height: 150px;
    overflow-y: auto;
    padding: 5px;
    background-color: #f9f9f9;
    border-radius: 5px;
}

.product-detail-about {
    display: block;
    margin-top: 5px;
    line-height: 1.6;
    text-align: justify;
    max-height: none;
    overflow-y: visible;
    padding: 8px;
    background-color: #f2f2f2;
    border-radius: 8px;
    font-size: 1rem;
    color: #1a1a1a;
}

.product-detail-item {
    margin-bottom: 10px;
}

.product-info-boxes {
    display: flex;
    justify-content: space-between;
    margin: 15px 0;
    gap: 10px;
}

.info-box {
    flex: 1;
    background-color: #f0f0f0;
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border: 1px solid #ddd;
}

.info-box .box-label {
    display: block;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 5px;
}

.info-box .box-value {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* تعديل هيكل نافذة تفاصيل المنتج */
.product-details-modal {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* أنماط القائمة المنسدلة للمشاركة المتقدمة */
.share-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1001;
    min-width: 280px;
    max-width: 320px;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.share-dropdown-header {
    padding: 15px;
    border-bottom: 1px solid #eee;
    background-color: #f8f9fa;
    border-radius: 8px 8px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.share-dropdown-header h4 {
    margin: 0;
    font-size: 16px;
    color: #333;
    font-weight: 600;
}

.close-dropdown {
    background: none;
    border: none;
    font-size: 20px;
    color: #666;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.close-dropdown:hover {
    background-color: #e9ecef;
    color: #333;
}

.share-options {
    padding: 10px;
    max-height: 300px;
    overflow-y: auto;
}

.share-option {
    display: flex;
    align-items: center;
    padding: 8px 10px;
    margin-bottom: 5px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    user-select: none;
}

.share-option:hover {
    background-color: #f0f0f0;
}

.share-option input[type="checkbox"] {
    margin-left: 10px;
    margin-right: 0;
    transform: scale(1.1);
    accent-color: var(--primary-color);
}

.share-option input[type="checkbox"]:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.share-option span {
    font-size: 14px;
    color: #333;
    flex: 1;
}

.share-option:has(input:disabled) {
    opacity: 0.6;
    cursor: not-allowed;
}

.share-option:has(input:disabled):hover {
    background-color: transparent;
}

.share-actions {
    padding: 15px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.share-action-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 80px;
}

.share-copy-btn {
    background-color: var(--primary-color);
    color: white;
}

.share-copy-btn:hover {
    background-color: #45a049;
    transform: translateY(-1px);
}

.share-cancel-btn {
    background-color: #6c757d;
    color: white;
}

.share-cancel-btn:hover {
    background-color: #545b62;
    transform: translateY(-1px);
}

/* تعديل موضع زر المشاركة ليكون نسبيًا */
#action-btn-2 {
    position: relative;
}

.product-details-modal.active {
    opacity: 1;
    visibility: visible;
}

/* إضافة CSS للهيكل الجديد */
.modal-content {
    display: flex;
    flex-direction: column;
    max-height: 90vh;
    max-width: 90%;
    width: 600px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    position: relative;
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f8f9fa;
}

.modal-header h3 {
    margin: 0;
    color: #333;
    font-size: 1.5rem;
}

.close-modal {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #666;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-modal:hover {
    background-color: #e9ecef;
    color: #333;
}

.modal-body {
    padding: 20px;
    flex: 1;
    overflow-y: auto;
}

.product-details-content {
    display: flex;
    flex-direction: column;
    max-height: 90vh;
    max-width: 90%;
    width: 600px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    overflow-y: hidden;
    position: relative;
    padding: 0;
}

/* إضافة قسم المحتوى مع شريط تمرير منفصل */
.product-details-body {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) transparent;
}

.product-details-body::-webkit-scrollbar {
    width: 8px;
}

.product-details-body::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 10px;
}

.product-details-body::-webkit-scrollbar-thumb {
    background-color: var(--primary-color);
    border-radius: 10px;
    border: 3px solid transparent;
    background-clip: padding-box;
}

/* تنسيق القسم العلوي */
.product-details-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 15px;
    background-color: var(--primary-color);
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    position: sticky;
    top: 0;
    z-index: 1002;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}



/* تنسيق أزرار الإجراءات العلوية */
.product-details-actions-top {
    display: flex;
    gap: 10px;
}

.action-btn {
    background-color: #ffffff;
    color: var(--primary-color);
    border: none;
    border-radius: 25px;
    padding: 6px 12px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.action-btn:hover {
    background-color: #f1f1f1;
    transform: translateY(-2px);
}

/* تنسيق زر الإغلاق */
#action-btn-1 {
    background-color:  #ffffff;
    color: var(--primary-color);
}

#action-btn-1:hover {
    background-color: #f1f1f1;
    transform: translateY(-2px);
}

/* تنسيق قسم الصورة */
.product-details-image {
    width: 100%;
    height: 0;
    padding-bottom: 141.18%; /* 24:17 aspect ratio (24/17 = 1.4118) */
    position: relative;
    margin: 0;
    background-color: #f8f9fa;
    border-radius: 0 !important;

}

.product-details-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

/* تنسيق قسم المعلومات */
.product-details-info {
    padding: 15px;
    width: 100%;
    margin-top: 10px;
}
