@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css');

/*
 Theme Name:   GeneratePress Child
 Description:   قالب ابن مخصص لمتجر المصطفى (النسخة النهائية المدمجة)
 Template:      generatepress
 Version:       1.2
*/

/**************************************************************
 * 1. إعدادات الصفحة العامة والمتجر
 **************************************************************/

/* إخفاء عناوين الصفحات (المنتجات، الأقسام، إلخ) */
.woocommerce-products-header__title.page-title, 
.entry-title {
    display: none !important;
}

/* إلغاء السايد بار وجعل المتجر بعرض كامل */
.archive.woocommerce #primary, 
.archive.woocommerce .content-area {
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
    max-width: 100% !important;
}

.archive.woocommerce #right-sidebar, 
.archive.woocommerce #left-sidebar {
    display: none !important;
}

/**************************************************************
 * 2. تنسيق كروت المنتجات والأزرار
 **************************************************************/

/* توحيد شكل الكرت */
.woocommerce ul.products li.product {
    display: flex !important;
    flex-direction: column !important;
    min-height: 480px; 
    background: #fff;
    padding: 15px !important;
    border: 1px solid #eee !important;
    border-radius: 12px !important;
    transition: 0.3s ease-in-out !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.02) !important;
}

.woocommerce ul.products li.product:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,0.08) !important;
    transform: translateY(-5px);
}

/* توحيد ارتفاع عنوان المنتج */
.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 16px !important;
    min-height: 50px !important;
    max-height: 50px !important;
    overflow: hidden;
    margin-bottom: 10px !important;
    color: #1a2233 !important;
}

/* تنسيق زر "تحديد أحد الخيارات" الجديد */
.woocommerce ul.products li.product .button {
    margin-top: auto !important;
    width: 100% !important;
    text-align: center !important;
    border-radius: 8px !important;
    background-color: #b19452 !important; /* اللون الذهبي */
    color: #fff !important;
    font-weight: bold !important;
    padding: 12px 5px !important;
    font-size: 15px !important;
    border: none !important;
    transition: 0.3s !important;
}

.woocommerce ul.products li.product .button:hover {
    background-color: #1a2233 !important; /* الكحلي عند التمرير */
}

/**************************************************************
 * 3. الفوتر الاحترافي (المصطفى ستور)
 **************************************************************/

.almostafa-custom-footer {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding: 60px 8%;
    background: linear-gradient(135deg, #1a2233 0%, #111723 100%) !important;
    color: #fff !important;
    direction: rtl;
    text-align: right;
    border-top: 5px solid #b19452;
}

.footer-logo {
    max-width: 110px !important;
    height: auto;
    margin-bottom: 20px;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

.footer-desc, .footer-col p {
    font-size: 15px !important;
    line-height: 1.8;
    color: #cbd5e1 !important;
}

.footer-col h3 {
    color: #b19452 !important;
    margin-bottom: 25px;
    font-size: 19px !important;
    font-weight: 700;
}

/* أيقونات التواصل الاجتماعي */
.footer-social-icons {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.footer-social-icons a {
    color: #fff !important;
    font-size: 18px;
    background: rgba(255,255,255,0.05);
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(177, 148, 82, 0.4);
    text-decoration: none;
    transition: 0.4s;
}

.footer-social-icons a:hover {
    background: #b19452;
    border-color: #b19452;
    transform: translateY(-3px);
}

.custom-copyright-bar {
    background: #0d121d;
    color: #94a3b8;
    text-align: center;
    padding: 20px;
    font-size: 14px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

/* إخفاء فوتر القالب الأصلي نهائياً */
.site-info, .site-footer {
    display: none !important;
}

/**************************************************************
 * 4. تنسيق محتوى وصف المنتجات (Modern UI)
 **************************************************************/

.product-description-wrapper {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.8;
    color: #333;
    max-width: 900px;
    margin: 0 auto;
    direction: rtl;
}

.spec-list {
    list-style: none;
    padding: 0;
}

.spec-list li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.spec-list i {
    color: #b19452; /* توحيد الأيقونات باللون الذهبي الخاص بالمتجر */
}

.product-spec-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.product-spec-table th, .product-spec-table td {
    padding: 12px 15px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.product-spec-table th {
    background-color: #f8f9fa;
    color: #1a2233; /* لون كحلي متناسق مع الفوتر */
}

.faq-item {
    background: #fdfdfd;
    border: 1px solid #eee;
    margin-bottom: 10px;
    border-radius: 5px;
    padding: 10px;
}

.faq-item summary {
    font-weight: bold;
    cursor: pointer;
    color: #1a2233;
    outline: none;
}

.faq-item p {
    margin-top: 10px;
    color: #555;
}

/* أنيميشن النزول للأسفل */
.scroll-indicator {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-5px);}
    60% {transform: translateY(-3px);}
}