/*
Theme Name: Abdullah Al-Shammari Store Theme
Theme URI: https://abdullahit-sa.com
Description: قالب مخصص لمتجر عبدالله الشمري لبيع الجوالات والخدمات الرقمية واشتراكات IPTV
Author: Abdullah Al-Shammari
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: abdullah-store
*/

/* 1. إعدادات الخطوط والألوان الأساسية للهوية */
@import url('https://googleapis.com');

:root {
    --bg-dark: #070b19;       /* الخلفية الكحلية الداكنة الفخمة */
    --bg-card: #0d1527;       /* خلفية بطاقات المنتجات */
    --primary-blue: #0088ff;  /* الأزرق المضيء (النيون) للأزرار والروابط */
    --text-white: #ffffff;    /* اللون الأبيض الصافي للتوقيع والنصوص */
    --text-muted: #a0aec0;    /* الرمادي الخفيف للنصوص الثانوية */
    --accent-gold: #ffd700;   /* الذهبي الملكي لباقات الـ VIP والعروض */
    --main-font: 'Cairo', sans-serif;
}

/* 2. التنسيق العام للموقع */
body {
    background-color: var(--bg-dark) !important;
    color: var(--text-white) !important;
    font-family: var(--main-font) !important;
    direction: rtl;
    text-align: right;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--accent-gold);
}

/* 3. الهيدر والقائمة العلوية (Header & Navbar) */
.site-header {
    background-color: rgba(7, 11, 25, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 999;
    backdrop-filter: blur(10px);
}

.user-nav-info {
    font-size: 13px;
    color: var(--text-muted);
}

.user-nav-info strong {
    color: var(--text-white);
}

/* 4. بطاقات المنتجات (WooCommerce Products Grid) */
.woocommerce ul.products li.product, 
.product-card-custom {
    background: var(--bg-card) !important;
    border: 1px solid rgba(255, 255, 255, 0.03) !important;
    border-radius: 12px !important;
    padding: 20px !important;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.woocommerce ul.products li.product:hover,
.product-card-custom:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 136, 255, 0.15) !important;
    border-color: rgba(0, 136, 255, 0.3) !important;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    color: var(--text-white) !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    margin: 15px 0 10px 0 !important;
}

.woocommerce ul.products li.product .price {
    color: var(--accent-gold) !important;
    font-size: 18px !important;
    font-weight: 700 !important;
}

/* 5. تخصيص أزرار الشراء (Add to Cart & Apple Pay Button) */
.woocommerce ul.products li.product .button.add_to_cart_button,
.custom-buy-btn {
    background-color: var(--primary-blue) !important;
    color: var(--text-white) !important;
    border-radius: 30px !important;
    padding: 10px 25px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    border: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 15px !important;
}

.woocommerce ul.products li.product .button.add_to_cart_button:hover,
.custom-buy-btn:hover {
    background-color: #0077dd !important;
    box-shadow: 0 4px 15px rgba(0, 136, 255, 0.4);
}

/* زر إتمام الدفع السريع المخصص لـ Apple Pay في السلة */
.apple-pay-button-container {
    background-color: #000000 !important;
    border-radius: 8px;
    padding: 12px;
    text-align: center;
    cursor: pointer;
    font-weight: bold;
    margin-top: 10px;
    border: 1px solid rgba(255,255,255,0.1);
}

/* 6. بنرات أقسام المتجر (IPTV - منتجات رقمية - إكسسوارات) */
.category-banner {
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.category-banner::before {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    background: linear-gradient(to top, rgba(7, 11, 25, 0.9), transparent);
    z-index: 1;
}

/* 7. الفوتر السفلي (Footer) */
.site-footer {
    background-color: #040710;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 40px 0 20px 0;
    font-size: 14px;
    color: var(--text-muted);
}

.site-footer h5 {
    color: var(--text-white);
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-social-icons a {
    font-size: 20px;
    color: var(--text-muted);
    margin: 0 10px;
}

.footer-social-icons a:hover {
    color: var(--primary-blue);
}

.payment-gateways-icons {
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.payment-gateways-icons:hover {
    opacity: 1;
}

/* 8. متجاوب تماماً مع شاشات الجوال والهواتف الذكية */
@media (max-width: 768px) {
    body {
        font-size: 14px;
    }
    .woocommerce ul.products li.product {
        width: 48% !important; /* عرض منتجين في الصف الواحد على الجوال */
        float: right;
        margin-left: 4% !important;
    }
    .woocommerce ul.products li.product:nth-child(2n) {
        margin-left: 0 !important;
    }
}
