/*
 Theme Name:   GeneratePress Child
 Theme URI:    https://generatepress.com
 Description:  Child theme for GeneratePress - التيم الفرعي للتعديلات المخصصة
 Author:       Faz Team
 Author URI:   https://generatepress.com
 Template:     generatepress
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  generatepress-child
*/

/* ====================================
   متغيرات الألوان المحسّنة
   ==================================== */
:root {
    /* الألوان الأساسية */
    --faz-primary: #30697D;
    --faz-primary-dark: #245565;
    --faz-primary-light: #4a89a3;
    --faz-accent: #8BC34A;
    --faz-accent-dark: #7CB342;
    
    /* ألوان النصوص */
    --faz-text-dark: #1a1a1a;
    --faz-text-medium: #333333;
    --faz-text-light: #666666;
    --faz-text-muted: #999999;
    
    /* ألوان الخلفيات */
    --faz-bg-main: #ffffff;
    --faz-bg-light: #f8f9fa;
    --faz-bg-lighter: #e9ecef;
    
    /* ألوان الحدود */
    --faz-border-light: #e0e0e0;
    --faz-border-medium: #d0d0d0;
    
    /* الظلال */
    --faz-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --faz-shadow-md: 0 4px 15px rgba(0, 0, 0, 0.08);
    --faz-shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
    --faz-shadow-xl: 0 15px 50px rgba(0, 0, 0, 0.15);
    
    /* التدرجات */
    --faz-gradient-primary: linear-gradient(135deg, var(--faz-primary) 0%, var(--faz-primary-dark) 100%);
    --faz-gradient-light: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

/* ====================================
   إضف التعديلات المخصصة هنا
   ==================================== */

/* =======================================
   تصميم صفحة المنتجات - Products Page
   ======================================= */

/* المنتجات - Grid Layout */


p {
    margin-bottom: 8px !important;
}

.woocommerce ul.products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
    gap: 30px;
    margin: 0;
    padding: 0;
}

/* بطاقة المنتج */
.faz-product-card {
    list-style: none;
    margin: 0;
    transition: all 0.4s ease;
    border-radius: 15px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    direction: rtl;
    text-align: right;
}

.faz-product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.faz-product-wrapper {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* قسم الصورة */
.faz-product-image-wrapper {
    position: relative;
    overflow: hidden;
    background: #f8f8f8;
    aspect-ratio: 1 / 1;
}

.faz-product-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.faz-product-card:hover .faz-product-image-wrapper img {
    transform: scale(1.1);
}

/* بادج التخفيض */
.faz-sale-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #FF6B6B 0%, #FF5252 100%);
    color: #fff;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 700;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

/* بادج نفذت الكمية */
.faz-stock-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 600;
    z-index: 2;
}

/* أزرار الإجراءات السريعة */
.faz-quick-actions {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 3;
}

.faz-product-card:hover .faz-quick-actions {
    opacity: 1;
}

.faz-quick-view {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: #fff;
    border-radius: 50%;
    color: #333;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.faz-quick-view:hover {
    background: #30697D;
    color: #fff;
    transform: scale(1.1);
}

/* محتوى المنتج */
.faz-product-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    text-align: right;
    direction: rtl;
}

.faz-product-content h2,
.faz-product-content .woocommerce-loop-product__title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 10px 0;
    line-height: 1.4;
    color: #333;
    transition: color 0.3s ease;
}

.faz-product-card:hover .faz-product-content h2,
.faz-product-card:hover .faz-product-content .woocommerce-loop-product__title {
    color: #30697D;
}


/* السعر */
.faz-product-content .price {
    font-size: 20px;
    font-weight: 700;
    color: #30697D;
    margin: 10px 0;
    text-decoration: none;

}

.faz-product-content .price del {
    color: #999;
    font-size: 16px;
    font-weight: 400;
    margin-right: 8px;
    text-decoration: none;

}

.faz-product-content .price ins {
    text-decoration: none;
}

.faz-product-content .price {
    text-decoration: none;
}

.faz-product-content .price * {
      color: #3c3939;
    font-size: 20px;
    font-weight: 500;
    margin-top: auto;
    text-align: right;
    text-decoration: none !important;
}

/* زر إضافة للسلة */
.faz-product-actions {
    margin-top: auto;
}

.faz-product-actions .button,
.faz-product-actions .add_to_cart_button {
    width: 100%;
    background: #30697D;
    color: #fff !important;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    text-align: center;
    display: block;
    cursor: pointer;
    text-decoration: none !important;
}

.faz-product-actions .button:hover,
.faz-product-actions .add_to_cart_button:hover {
    background: #245565;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(48, 105, 125, 0.4);
}

.faz-product-actions .added_to_cart {
    display: inline-block;
    width: 100%;
    margin-top: 10px;
    text-align: center;
    background: #4CAF50;
    color: #fff;
    padding: 10px;
    border-radius: 8px;
    font-size: 13px;
}

/* Responsive */
@media (max-width: 768px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 15px;
    }

    .faz-product-content {
        padding: 15px;
    }

    .faz-product-content h2,
    .faz-product-content .woocommerce-loop-product__title {
        font-size: 14px;
    }

    .faz-product-content .price {
        font-size: 16px;
    }
}

/* =======================================
   صفحة المنتج الواحد - Single Product
   ======================================= */

/* Breadcrumb */
.woocommerce-breadcrumb {
    font-size: 12px;
    color: #999;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.woocommerce-breadcrumb a {
    color: #30697D;
    text-decoration: none;
    transition: color 0.3s ease;
}

.woocommerce-breadcrumb a:hover {
    color: #245565;
}

/* اللون الأساسي */
:root {
    --faz-primary-color: #30697D;
    --faz-primary-hover: #245565;
    --faz-primary-light: rgba(48, 105, 125, 0.1);
}

/* Layout الصفحة */
.faz-single-product {
    max-width: 1200px;
    margin:  0auto;
    padding: 40px 20px;
}

.faz-product-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 80px;
    margin-bottom: 50px;
    align-items: start;
    max-width: 1100px;
}

/* قسم معرض الصور */
.faz-product-gallery {
    position: relative;
    max-width: 280px;
}

/* مقاس ثابت للصور */
.woocommerce-product-gallery {
    position: relative;
    max-height: 550px;
    max-width: 550px;
}

.woocommerce-product-gallery__wrapper {
    margin: 0;
    padding: 0;
    background: transparent;
}

.woocommerce-product-gallery__image {
    aspect-ratio: 1 / 1;
    background: white;
    overflow: hidden;
    border-radius: 0;
    margin-bottom: 12px;
    box-shadow: none;
    width: 100%;
    border: none;
    height: 430px;
}


.woocommerce-product-gallery__image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    border-radius: 0;
    transition: transform 0.3s ease;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.woocommerce-product-gallery__image:hover img {
    transform: scale(1.05);
}

/* أيقونة الزوم */
.woocommerce-product-gallery__trigger {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 50px;
    height: 50px;
    background: #30697D;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.woocommerce-product-gallery__trigger:hover {
    background: #245565;
    transform: scale(1.1);
}

.woocommerce-product-gallery__trigger::before {
    content: '+';
    color: #fff;
    font-size: 28px;
    font-weight: 300;
    line-height: 1;
}

.woocommerce-product-gallery__trigger img {
    display: none !important;
}

/* Thumbnails */
.flex-control-thumbs {
    display: flex !important;
    gap: 6px;
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: auto;
}

.flex-control-thumbs li {
    list-style: none;
    margin: 0 !important;
    flex: 0 0 65px;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 0;
    cursor: pointer;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
    background: transparent;
    max-height: 65px;
}

.flex-control-thumbs li:hover,
.flex-control-thumbs li.flex-active {
    border-color: #30697D;
}

.flex-control-thumbs li img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.flex-control-thumbs li:hover img,
.flex-control-thumbs li.flex-active img {
    opacity: 1;
}

/* بادج التخفيض */
.faz-single-sale-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 10;
}

.faz-single-sale-badge span {
    background: #8BC34A;
    color: #fff;
    padding: 6px 14px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
    letter-spacing: 0.5px;
}

/* إخفاء البادج الافتراضي */
.woocommerce div.product .onsale {
    display: none;
}

/* قسم معلومات المنتج */
.faz-product-summary {
    padding: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
}

/* عنوان المنتج */
.faz-product-summary .product_title {
    font-size: 32px;
    font-weight: 700;
    color: #30697D;
    margin: 0 0 18px 0;
    line-height: 1.3;
    letter-spacing: -0.5px;
}

/* التقييمات - مخفية */
.woocommerce-product-rating {
    display: none !important;
}

.star-rating {
    color: #FFA500;
}

.woocommerce-review-link {
    color: #666;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.woocommerce-review-link:hover {
    color: var(--faz-primary-color);
}


woocommerce-Price-amount amount

/* السعر */
.faz-product-summary .price  {
    font-size: 26px !important;
    font-weight: 700 !important;
    color: #30697D !important;
    margin: 0 0 22px 0;
    display: flex;
    align-items: right;
    gap: 10px;
    text-decoration: none;

}

.faz-product-summary .price del {
    font-size: 17px;
    color: #999 !important;
    font-weight: 400;
    text-decoration: line-through;
    text-decoration: none;



    font-size: 26px !important;
    font-weight: 700 !important;
    color: #30697D !important;
    margin: 0 0 22px 0;
    display: flex;
    align-items: right;
    gap: 10px;
    text-decoration: none;


}

.faz-product-summary .price ins {
    text-decoration: none;
}

/* الوصف */
.woocommerce-product-details__short-description {
    color: #666;
    font-size: 13px;
    line-height: 2;
    margin: 0 0 22px 0;
    text-align: justify;
}

.woocommerce-product-details__short-description p {
    margin-bottom: 12px;
}

/* زر إضافة للسلة */
.faz-product-summary .cart {
    margin: 30px 0;
    display: flex;
    align-items: center;
    gap: 15px;
}

.faz-product-summary .quantity {
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    display: inline-flex;
}

.faz-product-summary .quantity input {
    border: none;
    padding: 15px 20px;
    font-size: 16px;
    font-weight: 600;
    width: 80px;
    text-align: center;
    background: #fff;
}

.faz-product-summary .single_add_to_cart_button {
    background: #30697D;
    color: #fff !important;
    border: none;
    padding: 14px 35px;
    border-radius: 3px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.faz-product-summary .single_add_to_cart_button:hover {
    background: #245565;
    transform: translateY(-2px);
}

/* معلومات المنتج (SKU, Categories, Tags) - مخفية */
.product_meta {
    display: none;
}

/* قسم التفاصيل والتابات */
.faz-product-details {
    margin-top: 60px;
}

.woocommerce-tabs {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.woocommerce-tabs ul.tabs {
    display: flex;
    margin: 0;
    padding: 0;
    background: #f8f8f8;
    border-bottom: 3px solid var(--faz-primary-color);
    list-style: none;
}

.woocommerce-tabs ul.tabs li {
    margin: 0;
    padding: 0;
    flex: 1;
}

.woocommerce-tabs ul.tabs li a {
    display: block;
    padding: 20px;
    text-align: center;
    color: #666;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

.woocommerce-tabs ul.tabs li.active a,
.woocommerce-tabs ul.tabs li a:hover {
    background: #fff;
    color: var(--faz-primary-color);
}

.woocommerce-tabs ul.tabs li.active a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--faz-primary-color);
}

.woocommerce-tabs .woocommerce-Tabs-panel {
    padding: 40px;
}

/* المراجعات */
.woocommerce-Reviews {
    padding: 20px 0;
}

.woocommerce-Reviews .star-rating {
    color: #FFA500;
}

#review_form_wrapper {
    background: var(--faz-primary-light);
    padding: 30px;
    border-radius: 10px;
    margin-top: 30px;
}

#respond input[type="submit"],
#respond .submit {
    background: var(--faz-primary-color);
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

#respond input[type="submit"]:hover {
    background: var(--faz-primary-hover);
}

/* =======================================
   المنتجات ذات الصلة - Related Products
   تصميم احترافي كامل
   ======================================= */
.related.products,
.upsells.products {
    margin-top: 70px;
    padding-top: 40px;
    border-top: 2px solid #f5f5f5;
}

.related.products h2,
.upsells.products h2 {
    font-size: 36px;
    margin-bottom: 40px;
    color: #222;
    text-align: center;
    font-weight: 800;
    position: relative;
    padding-right: 0;
}

.related.products h2::before,
.upsells.products h2::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -10px;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--faz-primary-color), var(--faz-primary-hover));
}

.related.products ul.products,
.upsells.products ul.products {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)) !important;
    gap: 25px !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.related.products ul.products li,
.upsells.products ul.products li {
    margin: 0 !important;
    padding: 0 !important;
    width: auto !important;
    float: none !important;
}

/* بطاقة المنتج - Clean Modern Card */
.related.products .faz-product-card,
.upsells.products .faz-product-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.related.products .faz-product-card:hover,
.upsells.products .faz-product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    border-color: var(--faz-primary-color);
}

/* منطقة الصورة - Large & Clean */
.related.products .faz-product-image-wrapper,
.upsells.products .faz-product-image-wrapper {
    height: 260px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px !important;
    position: relative;
    overflow: hidden;
}

.related.products .faz-product-image-wrapper img,
.upsells.products .faz-product-image-wrapper img {
    max-width: 100% !important;
    max-height: 100% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    filter: none !important;
    /* scale:1.3; */
}

.related.products .faz-product-card:hover .faz-product-image-wrapper img,
.upsells.products .faz-product-card:hover .faz-product-image-wrapper img {
    transform: scale(1.08);
}

/* Sale Badge */
.related.products .faz-sale-badge,
.upsells.products .faz-sale-badge {
    position: absolute;
    top: -60px;
    right: 91px;
    z-index: 10;
    background: linear-gradient(135deg, #ff6b6b, #ff5252);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

/* منطقة المحتوى */
.related.products .faz-product-content,
.upsells.products .faz-product-content {
    padding: 20px 20px 20px 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    text-align: right;
    background: #fff;
}

.related.products .faz-product-content h2,
.upsells.products .faz-product-content h2,
.related.products .faz-product-content .woocommerce-loop-product__title,
.upsells.products .faz-product-content .woocommerce-loop-product__title {
    font-size: 26px;
    line-height: 1.6;
    color: #2c2c2c;
    font-weight: 700;
    transition: color 0.3s ease;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-align: right;
}

.related.products .faz-product-card:hover .faz-product-content h2,
.upsells.products .faz-product-card:hover .faz-product-content h2,
.related.products .faz-product-card:hover .faz-product-content .woocommerce-loop-product__title,
.upsells.products .faz-product-card:hover .faz-product-content .woocommerce-loop-product__title {
    color: var(--faz-primary-color);
}

.related.products .faz-product-content .price,
.upsells.products .faz-product-content .price,
.related.products .faz-product-content .price .woocommerce-Price-amount,
.upsells.products .faz-product-content .price .woocommerce-Price-amount,
.related.products .faz-product-content .price .amount,
.upsells.products .faz-product-content .price .amount,
.related.products .faz-product-content .price bdi,
.upsells.products .faz-product-content .price bdi {
    color: var(--faz-primary-color) !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    margin-top: auto;
    margin-bottom: 15px;
    display: block;
    text-align: right;
}

.related.products .faz-product-content .price del,
.upsells.products .faz-product-content .price del {
    color: #3c3939 !important;
    font-size: 20px !important;
    font-weight: 500 !important;
    margin-left: 8px;
}

.related.products .faz-product-content .price ins,
.upsells.products .faz-product-content .price ins {
    font-size: 20px !important;
    color: var(--faz-primary-color) !important;
    font-weight: 800 !important;
    text-decoration: none !important;
}

/* زر الإضافة للسلة */
.related.products .faz-product-actions,
.upsells.products .faz-product-actions {
    margin-top: 0;
}

.related.products .faz-product-actions .button,
.upsells.products .faz-product-actions .button {
    width: 100%;
    padding: 13px 20px;
    background: linear-gradient(135deg, var(--faz-primary-color), var(--faz-primary-hover));
    color: #fff;
    border: none;
    border-radius: 6px;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(48, 105, 125, 0.2);
}

.related.products .faz-product-actions .button:hover,
.upsells.products .faz-product-actions .button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(48, 105, 125, 0.35);
}

/* Responsive */
@media (max-width: 768px) {

    .related.products ul.products,
    .upsells.products ul.products {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 15px;
    }

    .related.products .faz-product-image-wrapper,
    .upsells.products .faz-product-image-wrapper {
        height: 180px;
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .related.products ul.products,
    .upsells.products ul.products {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Responsive - صفحة المنتج */
@media (max-width: 991px) {
    .faz-product-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .faz-product-summary .product_title {
        font-size: 26px;
    }

    .faz-product-summary .price {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .faz-single-product {
        padding: 20px 15px;
    }

    .faz-product-layout {
        gap: 30px;
    }

    .faz-product-summary .cart {
        flex-direction: column;
    }

    .faz-product-summary .quantity {
        width: 100%;
        justify-content: center;
    }

    .faz-product-summary .single_add_to_cart_button {
        width: 100%;
    }

    .woocommerce-tabs ul.tabs {
        flex-direction: column;
    }

    .woocommerce-tabs .woocommerce-Tabs-panel {
        padding: 20px;
    }

    .flex-control-thumbs {
        grid-template-columns: repeat(3, 1fr);
    }

    .woocommerce-product-gallery__image {
        height: 320px;
    }
}

/* ===============================================
   أزرار الواتساب - WhatsApp Buttons
   =============================================== */

/* أزرار صفحات الأرشيف (Shop/Category/Related) */
.faz-archive-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
    direction: rtl;
}

.faz-archive-buttons a {
    width: 100%;
    padding: 12px 15px;
    text-align: center;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none !important;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-direction: row-reverse;
}

.faz-quote-btn {
    background: #30697D;
    color: #fff !important;
    border: none;
    box-shadow: 0 4px 15px rgba(48, 105, 125, 0.3);
}

.faz-quote-btn:hover {
    background: #245565;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(48, 105, 125, 0.4);
}

.faz-details-btn {
    background: #fff;
    color: #30697D !important;
    border: 2px solid #30697D;
}

.faz-details-btn:hover {
    background: #30697D;
    color: #fff !important;
    transform: translateY(-2px);
}

/* أزرار صفحة المنتج الواحد */
/* أزرار صفحة المنتج الواحد */
.faz-single-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 5px !important;
    direction: rtl;
    order: 3;
    /* للموبايل - تظهر بعد الصور */
}

.faz-single-buttons a {
    width: 100%;
    padding: 12px 15px;
    text-align: center;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none !important;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-direction: row-reverse;
}

/* زر تواصل معنا (بخلفية) */
.faz-contact-btn {
    background: #30697D;
    color: #fff !important;
    border: 2px solid #30697D;
}

.faz-contact-btn:hover {
    background: #245565;
    border-color: #245565;
    transform: translateY(-2px);
}

/* زر احسب التكلفة (outline - بدون خلفية) */
.faz-quote-btn-single {
    background: #fff;
    color: #30697D !important;
    border: 2px solid #30697D;
}

.faz-quote-btn-single:hover {
    background: #30697D;
    color: #fff !important;
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
    .faz-archive-buttons {
        flex-direction: column;
    }

    .faz-archive-buttons a {
        width: 100%;
    }

    /* صفحة المنتج الواحد - الأزرار بعد الصور في الموبايل */
    .single-product div.product .summary {
        display: flex !important;
        flex-direction: column !important;
    }

    .single-product .woocommerce-product-gallery {
        order: 1;
    }

    .single-product .summary .product_title {
        order: 1;
    }

    .single-product .summary .woocommerce-product-details__short-description {
        order: 2;
    }

    .single-product .summary .price {
        order: 3;
    }

    .single-product .faz-single-buttons {
        order: 4 !important;
        margin-top: 15px !important;
    }

    .faz-single-buttons a {
        font-size: 15px;
        padding: 14px 18px;
    }
}

/* إخفاء عناصر السلة إذا ظهرت */
.woocommerce-message,
.cart-empty,
.woocommerce-cart,
.woocommerce-checkout {
    display: none !important;
}

/* ===============================================
   =============================================== */

    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #30697D 0%, #245565 100%);
    border-radius: 2px;
}

/* معلومات المقال - التاريخ والكاتب */
.single-post .entry-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    padding: 20px 0;
    margin-bottom: 30px;
    border-top: 2px solid #f0f0f0;
    border-bottom: 2px solid #f0f0f0;
    text-align: right;
    direction: rtl;
}

.single-post .entry-meta > span,
.single-post .entry-meta .posted-on,
.single-post .entry-meta .byline,
.single-post .entry-meta .updated {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.single-post .entry-meta a {
    color: #30697D;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.single-post .entry-meta a:hover {
    color: #245565;
}

/* إضافة أيقونات للتاريخ والكاتب */
.single-post .entry-meta .posted-on::before {
    content: '📅';
    font-size: 16px;
}

.single-post .entry-meta .byline::before,
.single-post .entry-meta .author::before {
    content: '✍️';
    font-size: 16px;
}

.single-post .entry-meta .updated::before {
    content: '🔄';
    font-size: 16px;
}

/* محتوى المقال */
.single-post .entry-content {
    font-size: 18px;
    line-height: 2;
    color: #333;
    text-align: justify;
    direction: rtl;
}

/* فقرات المقال */
.single-post .entry-content p {
    margin-bottom: 25px;
    line-height: 2;
}

/* العناوين داخل المقال */
.single-post .entry-content h2 {
    font-size: 30px;
    font-weight: 700;
    color: #30697D;
    margin: 45px 0 20px 0;
    padding-right: 20px;
    border-right: 5px solid #30697D;
    line-height: 1.4;
}

.single-post .entry-content h3 {
    font-size: 24px;
    font-weight: 600;
    color: #245565;
    margin: 35px 0 18px 0;
    padding-right: 15px;
    border-right: 4px solid #8BC34A;
}

.single-post .entry-content h4 {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin: 30px 0 15px 0;
}

/* القوائم */
.single-post .entry-content ul,
.single-post .entry-content ol {
    margin: 25px 0 25px 30px;
    padding-right: 30px;
    line-height: 1.9;
}

.single-post .entry-content ul li,
.single-post .entry-content ol li {
    margin-bottom: 12px;
    color: #444;
}

.single-post .entry-content ul li::marker {
    color: #30697D;
    font-size: 1.2em;
}

.single-post .entry-content ol li::marker {
    color: #30697D;
    font-weight: 700;
}

/* الصور داخل المقال */
.single-post .entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    margin: 30px 0;
    transition: all 0.3s ease;
}

.single-post .entry-content img:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

/* الاقتباسات */
.single-post .entry-content blockquote {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-right: 5px solid #30697D;
    margin: 35px 0;
    padding: 25px 30px;
    border-radius: 10px;
    font-size: 19px;
    font-style: italic;
    color: #555;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.single-post .entry-content blockquote::before {
    content: '"';
    position: absolute;
    top: -10px;
    right: 20px;
    font-size: 70px;
    color: #30697D;
    opacity: 0.2;
    font-family: Georgia, serif;
}

.single-post .entry-content blockquote p {
    margin-bottom: 10px;
}

/* الكود */
.single-post .entry-content code {
    background: #f4f4f4;
    color: #c7254e;
    padding: 3px 8px;
    border-radius: 4px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 15px;
}

.single-post .entry-content pre {
    background: #2d2d2d;
    color: #f8f8f2;
    padding: 25px;
    border-radius: 10px;
    overflow-x: auto;
    margin: 30px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.single-post .entry-content pre code {
    background: transparent;
    color: #f8f8f2;
    padding: 0;
}

/* الجداول */
.single-post .entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    background: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    overflow: hidden;
}

.single-post .entry-content table thead {
    background: linear-gradient(135deg, #30697D 0%, #245565 100%);
    color: #fff;
}

.single-post .entry-content table th,
.single-post .entry-content table td {
    padding: 15px;
    text-align: right;
    border-bottom: 1px solid #e0e0e0;
}

.single-post .entry-content table tbody tr:hover {
    background: #f8f9fa;
}

/* الروابط داخل المقال */
.single-post .entry-content a {
    color: #30697D;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.single-post .entry-content a:hover {
    color: #245565;
    border-bottom-color: #30697D;
}

/* التاجات (الوسوم) */
.single-post .entry-footer {
    padding: 30px 60px 40px 60px;
    background: #f8f9fa;
    border-top: 2px solid #e9ecef;
}

.single-post .entry-footer .tags-links,
.single-post .entry-footer .tag-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    direction: rtl;
}

.single-post .entry-footer .tags-links::before,
.single-post .entry-footer .tag-links::before {
    content: '🏷️ الوسوم:';
    font-weight: 600;
    color: #666;
    margin-left: 12px;
}

.single-post .entry-footer .tags-links a,
.single-post .entry-footer .tag-links a {
    background: #fff;
    color: #30697D !important;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
    border: 2px solid #30697D;
    transition: all 0.3s ease;
}

.single-post .entry-footer .tags-links a:hover,
.single-post .entry-footer .tag-links a:hover {
    background: #30697D;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(48, 105, 125, 0.3);
}

/* صندوق الكاتب */
.single-post .author-box,
.single-post .author-info {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 35px;
    border-radius: 15px;
    margin: 40px 60px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
    display: flex;
    gap: 25px;
    align-items: center;
    direction: rtl;
    text-align: right;
}

.single-post .author-box .avatar,
.single-post .author-info .avatar {
    flex-shrink: 0;
    border-radius: 50%;
    border: 4px solid #30697D;
    box-shadow: 0 4px 15px rgba(48, 105, 125, 0.2);
}

.single-post .author-box .author-name,
.single-post .author-info .author-name {
    font-size: 22px;
    font-weight: 700;
    color: #30697D;
    margin-bottom: 8px;
}

.single-post .author-box .author-description,
.single-post .author-info .author-bio {
    font-size: 15px;
    line-height: 1.7;
    color: #666;
}

/* التنقل بين المقالات */
.single-post .post-navigation,
.single-post .nav-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 30px 60px;
    margin-top: 30px;
}

.single-post .post-navigation a,
.single-post .nav-links a {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    text-decoration: none !important;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.single-post .post-navigation a:hover,
.single-post .nav-links a:hover {
    border-color: #30697D;
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(48, 105, 125, 0.15);
}

.single-post .post-navigation .nav-previous::before {
    content: '→';
    margin-left: 8px;
    font-size: 20px;
    color: #30697D;
}

.single-post .post-navigation .nav-next::before {
    content: '←';
    margin-right: 8px;
    font-size: 20px;
    color: #30697D;
}

/* قسم التعليقات */
.single-post #comments {
    max-width: 850px;
    margin: 40px auto;
    padding: 40px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.single-post #comments .comments-title {
    font-size: 28px;
    font-weight: 700;
    color: #30697D;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid #e9ecef;
    text-align: right;
    direction: rtl;
}

.single-post .comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.single-post .comment-list .comment {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 20px;
    border-right: 4px solid #30697D;
}

.single-post .comment-list .comment-author {
    font-weight: 700;
    color: #30697D;
    margin-bottom: 10px;
}

.single-post .comment-list .comment-content {
    color: #555;
    line-height: 1.8;
}

/* نموذج التعليق */
.single-post #respond {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 15px;
    margin-top: 30px;
}

.single-post #respond .comment-form-comment textarea,
.single-post #respond input[type="text"],
.single-post #respond input[type="email"],
.single-post #respond input[type="url"] {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
    direction: rtl;
    text-align: right;
}

.single-post #respond textarea:focus,
.single-post #respond input:focus {
    border-color: #30697D;
    outline: none;
    box-shadow: 0 0 0 3px rgba(48, 105, 125, 0.1);
}

.single-post #respond .submit,
.single-post #respond input[type="submit"] {
    background: linear-gradient(135deg, #30697D 0%, #245565 100%);
    color: #fff;
    border: none;
    padding: 15px 40px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(48, 105, 125, 0.3);
}

.single-post #respond .submit:hover,
.single-post #respond input[type="submit"]:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(48, 105, 125, 0.4);
}

/* Responsive - الجوال */
@media (max-width: 768px) {
    .single-post .inside-article {
        padding: 35px 25px;
    }

    .single-post .entry-title,
    .single-post h1.entry-title {
        font-size: 28px;
        margin-bottom: 20px;
    }

    .single-post .entry-content {
        font-size: 16px;
        line-height: 1.9;
    }

    .single-post .entry-content h2 {
        font-size: 24px;
        margin: 35px 0 15px 0;
    }

    .single-post .entry-content h3 {
        font-size: 20px;
    }

    .single-post .entry-footer {
        padding: 25px;
    }

    .single-post .author-box,
    .single-post .author-info {
        margin: 30px 20px;
        padding: 25px;
        flex-direction: column;
        text-align: center;
    }

    .single-post .post-navigation,
    .single-post .nav-links {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .single-post #comments {
        padding: 25px;
    }

    .single-post .post-image img,
    .single-post .featured-image img {
        max-height: 300px;
    }
}

@media (max-width: 480px) {
    .single-post .entry-title,
    .single-post h1.entry-title {
        font-size: 24px;
    }

    .single-post .entry-content {
        font-size: 15px;
    }
}

/* ===============================================
   تحسينات إضافية لصفحة المقال
   =============================================== */

/* جدول المحتويات التلقائي */
.faz-table-of-contents {
    background: var(--faz-gradient-light);
    border: 2px solid var(--faz-primary);
    border-radius: 15px;
    padding: 25px 30px;
    margin: 30px 0;
    box-shadow: var(--faz-shadow-md);
    direction: rtl;
    text-align: right;
}

.faz-toc-title {
    color: var(--faz-primary);
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 20px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--faz-border-light);
}

.faz-toc-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.faz-toc-list li {
    margin-bottom: 12px;
    position: relative;
    padding-right: 25px;
}

.faz-toc-list li::before {
    content: '▶';
    position: absolute;
    right: 0;
    color: var(--faz-primary);
    font-size: 10px;
    top: 5px;
}

.faz-toc-list li.toc-level-3 {
    padding-right: 45px;
    font-size: 14px;
}

.faz-toc-list a {
    color: var(--faz-text-medium);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: block;
    line-height: 1.6;
}

.faz-toc-list a:hover {
    color: var(--faz-primary);
    padding-right: 8px;
}

/* زر مشاركة واتساب */
.faz-post-share {
    text-align: center;
    margin: 40px 0;
    padding: 30px;
    background: var(--faz-bg-light);
    border-radius: 15px;
}

.faz-whatsapp-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--faz-gradient-primary);
    color: #fff !important;
    padding: 15px 35px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none !important;
    box-shadow: 0 4px 20px rgba(48, 105, 125, 0.3);
    transition: all 0.3s ease;
}

.faz-whatsapp-share-btn .share-icon {
    font-size: 22px;
}

.faz-whatsapp-share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(48, 105, 125, 0.4);
}

/* وقت القراءة وعداد المشاهدات */
.faz-reading-time,
.faz-post-views {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--faz-bg-light);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: var(--faz-text-light);
    margin-left: 5px;
}

.faz-reading-time .reading-icon,
.faz-post-views .views-icon {
    font-size: 16px;
}

/* تحسين شكل الـ meta للمقالات */
.single-post .entry-meta {
    background: var(--faz-bg-light);
    border-radius: 12px;
    padding: 20px 25px !important;
    border: none !important;
    box-shadow: var(--faz-shadow-sm);
}

/* أنيميشن سلس للعناصر عند التمرير */
.single-post .entry-content > * {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* تحسين شكل الصور مع Caption */
.single-post .entry-content .wp-caption {
    max-width: 100% !important;
    background: var(--faz-bg-light);
    padding: 10px;
    border-radius: 12px;
    box-shadow: var(--faz-shadow-md);
}

.single-post .entry-content .wp-caption-text {
    text-align: center;
    font-size: 13px;
    color: var(--faz-text-light);
    margin-top: 10px;
    font-style: italic;
}

/* زر رجوع إلى الأعلى */
.faz-back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background: var(--faz-gradient-primary);
    color: #fff;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--faz-shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.faz-back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.faz-back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--faz-shadow-xl);
}

.faz-back-to-top::before {
    content: '↑';
    font-size: 24px;
    font-weight: 700;
}

/* Responsive للتحسينات الإضافية */
@media (max-width: 768px) {
    .faz-table-of-contents {
        padding: 20px;
        margin: 25px 10px;
    }
    
    .faz-post-share {
        padding: 20px;
        margin: 30px 0;
    }
    
    .faz-whatsapp-share-btn {
        padding: 12px 25px;
        font-size: 14px;
    }
    
    .faz-back-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        left: 20px;
    }
}

/* تحسين شكل السلايدر في المقالات إذا وجد */
.single-post .gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin: 30px 0;
}

.single-post .gallery-item {
    margin: 0;
}

.single-post .gallery-item img {
    border-radius: 10px;
    box-shadow: var(--faz-shadow-sm);
    transition: all 0.3s ease;
}

.single-post .gallery-item img:hover {
    transform: scale(1.05);
    box-shadow: var(--faz-shadow-md);
}

/* تحسين شكل الفيديوهات المضمنة */
.single-post .entry-content iframe,
.single-post .entry-content video {
    max-width: 100%;
    border-radius: 12px;
    box-shadow: var(--faz-shadow-md);
    margin: 30px 0;
}

/* تحسين شكل الملفات القابلة للتنزيل */
.single-post .entry-content .wp-block-file {
    background: var(--faz-bg-light);
    padding: 20px;
    border-radius: 12px;
    border-right: 4px solid var(--faz-primary);
    margin: 25px 0;
}

.single-post .entry-content .wp-block-file a {
    font-weight: 700;
    color: var(--faz-primary);
}

.single-post .entry-content .wp-block-file .wp-block-file__button {
    background: var(--faz-gradient-primary);
    color: #fff;
    padding: 10px 25px;
    border-radius: 8px;
    margin-right: 15px;
}

/* تأثيرات hover احترافية للروابط */
.single-post .entry-content a:not(.button) {
    position: relative;
}

.single-post .entry-content a:not(.button)::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--faz-primary);
    transition: width 0.3s ease;
}

.single-post .entry-content a:not(.button):hover::after {
    width: 100%;
}