/*
Theme Name: Simple Budget Ultimate Pro
Author: Simple Budget Studio
Description: Clean, High-Conversion, Mobile-First Digital Store.
Version: 6.0
*/

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;700;800&display=swap');

:root {
    --blue: #007AFF;
    --green: #34C759;
    --red: #FF3B30;
    --dark: #1D1D1F;
    --white: #ffffff;
    --bg: #F5F5F7;
}

body { font-family: 'Plus Jakarta Sans', sans-serif; background: var(--white); color: var(--dark); margin: 0; overflow-x: hidden; }

/* --- HEADER --- */
header.site-header { padding: 20px 0; border-bottom: 1px solid #eee; background: #fff; position: sticky; top: 0; z-index: 1000; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.header-flex { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 22px; font-weight: 800; color: var(--dark); text-decoration: none; }
.logo span { color: var(--green); }

/* --- SINGLE PRODUCT PAGE (MOBILE FIX) --- */
.single-product div.product { 
    display: flex; 
    flex-direction: row; 
    gap: 50px; 
    margin-top: 40px !important; 
}

.woocommerce-product-gallery { 
    flex: 1; 
    max-width: 500px;
}

.woocommerce-product-gallery img { 
    width: 100% !important; 
    border-radius: 20px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.single-product .summary { 
    flex: 1; 
}

.product_title { font-size: 2.5rem !important; font-weight: 800 !important; margin-top: 0 !important; }
.price { font-size: 2rem !important; color: var(--green) !important; margin-bottom: 20px !important; display: block; }
.description-area { margin: 25px 0; font-size: 1.1rem; color: #555; border-top: 1px solid #eee; padding-top: 20px; }

.single-product .cart .button { 
    background: var(--red) !important; 
    padding: 18px 40px !important; 
    border-radius: 12px !important; 
    font-size: 1.2rem !important; 
    font-weight: 800 !important; 
    width: 100%; 
}

/* RESPONSIVE FIX FOR PHONES */
@media (max-width: 768px) {
    .single-product div.product { flex-direction: column; gap: 30px; }
    .woocommerce-product-gallery { max-width: 100%; }
    .product_title { font-size: 1.8rem !important; }
    section { padding: 50px 0; }
}

/* --- FOOTER --- */
.site-footer { background: #000; color: #fff; padding: 80px 0 40px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; }
.footer-col h4 { color: #fff; margin-bottom: 20px; font-size: 16px; text-transform: uppercase; letter-spacing: 1px; }
.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin-bottom: 12px; }
.footer-col a { color: #888; text-decoration: none; transition: 0.3s; font-size: 14px; }
.footer-col a:hover { color: #fff; }

/* --- BUTTONS & GRID --- */
.woocommerce ul.products li.product { background: #fff; border-radius: 20px; border: 1px solid #eee; overflow: hidden; padding: 0 !important; }
.woocommerce-loop-product__title { padding: 15px !important; font-size: 1.1rem !important; }
.woocommerce ul.products li.product .button { margin: 0 15px 15px !important; background: var(--blue) !important; color: #fff !important; border-radius: 8px !important; display: block !important; text-align: center !important; }
/* تحسين شكل السلة والدفع */
.woocommerce-cart-form, .woocommerce-checkout { 
    background: #fff; 
    padding: 20px; 
    border-radius: 20px; 
    box-shadow: 0 5px 20px rgba(0,0,0,0.05); 
    margin-top: 20px;
}

/* إصلاح الجوال لصفحة المنتج */
@media (max-width: 768px) {
    .single-product div.product { 
        display: flex !important; 
        flex-direction: column !important; 
    }
    .woocommerce-product-gallery { 
        width: 100% !important; 
        margin-bottom: 30px;
    }
    .single-product .summary { 
        width: 100% !important; 
    }
}