* {
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', sans-serif;
    margin: 0;
    color: #111;
    background: #f7f8fa;

    /* حل مشكلة التداخل مع الهيدر */
    padding-top: 150px; /* يمكنك تعديلها بين 130–170 */
}

/* حاوية */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ===========================
   الهيدر
   =========================== */
.site-header {
    background: #fff;
    border-bottom: 1px solid #e9eef3;
    position: fixed;         /* هيدر ثابت */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 99;
    padding: 25px 0;
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* الشعار */
.logo img {
    height: 95px;
}

/* القائمة */
.nav a {
    margin: 0 10px;
    text-decoration: none;
    color: #222;
    font-weight: 700;
    font-size: 17px;
}

.nav .btn {
    background: #27a6cf;
    color: #fff;
    padding: 10px 16px;
    border-radius: 10px;
    font-weight: 700;
}

/* ===========================
   الهيرو
   =========================== */
.hero {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 22px;
    padding: 40px 0;
    align-items: center;
}

.hero h1 {
    font-size: 42px;
    margin: 0 0 10px;
}

.badge {
    background: #27a6cf;
    color: #fff;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 10px;
}

.hero .card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,.06);
    padding: 18px;
}

/* ===========================
   المنتجات
   =========================== */
.grid {
    display: grid;
    gap: 16px;
}

.products {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    margin: 20px 0;
}

.product {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 8px 20px rgba(0,0,0,.06);
    overflow: hidden;
    transition: .2s;
}

.product:hover {
    transform: translateY(-4px);
}

.product img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.product .p-body {
    padding: 12px;
}

.product .cat {
    color: #777;
    font-size: 13px;
}

.tag {
    display: inline-block;
    background: #ffd54d;
    padding: 4px 8px;
    font-weight: 700;
    border-radius: 8px;
    margin-top: 6px;
}

/* ===========================
   الفلاتر
   =========================== */
.filterbar {
    display: flex;
    gap: 10px;
    align-items: center;
    margin: 10px 0 20px;
    background: #fff;
    padding: 10px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,.05);
}

.filterbar select,
.filterbar input[type=text] {
    padding: 8px 10px;
    height: 42px;
    border: 1px solid #dfe5ea;
    border-radius: 10px;
    background: #fff;
    font-size: 15px;
}

.filterbar .btn {
    background: #27a6cf;
    color: #fff;
    padding: 10px 14px;
    border-radius: 10px;
    border: none;
}

.filterbar .btn.btn-outline {
    background: #fff;
    color: #27a6cf;
    border: 1px solid #27a6cf;
}

/* السعر */
.products .price {
    margin-top: 6px;
    font-weight: 800;
    color: #222;
}

/* ===========================
   البانرات والصور
   =========================== */
.banner {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,.06);
}

/* ===========================
   الفوتر
   =========================== */
.site-footer {
    background: #111;
    color: #eee;
    margin-top: 30px;
    padding: 30px 0;
}

.site-footer a {
    color: #eee;
    text-decoration: none;
}

/* ===========================
   استجابة
   =========================== */
@media(max-width:900px) {
    body {
        padding-top: 120px; /* تقليل الهيدر في الهاتف */
    }

    .hero {
        grid-template-columns: 1fr;
    }

    .logo img {
        height: 80px;
    }

    .nav a {
        font-size: 15px;
        margin: 0 6px;
    }
}