/* -----------------------------------
   RESET + BODY
----------------------------------- */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', sans-serif;
    margin: 0;
    color: #111;
    background: #f7f8fa;
    padding-top: 150px;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

/* -----------------------------------
   HEADER
----------------------------------- */
.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 */
.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;
}

/* إخفاء القائمة في الهاتف */
@media(max-width: 768px){
    .nav { display:none !important; }
}

/* -----------------------------------
   HERO
----------------------------------- */
.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;
}

/* -----------------------------------
   GRID
----------------------------------- */
.grid {
    display: grid;
    gap: 16px;
}

/* -----------------------------------
   CONTACT PAGE
----------------------------------- */
.contact-card {
    background: #fff;
    padding: 35px;
    border-radius: 18px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.title-center {
    text-align: center;
    margin-top: 0;
    font-size: 32px;
    font-weight: 800;
}

.subtitle-center {
    text-align: center;
    color: #666;
    margin-bottom: 25px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid #dfe5ea;
    border-radius: 12px;
    margin-bottom: 12px;
    background: #fff;
    font-size: 16px;
}

.contact-form .row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.whatsapp-btn {
    width: 100%;
    padding: 14px;
    font-size: 18px;
    background: #25d366;
    color: #fff !important;
    border-radius: 12px;
    border: none;
    font-weight: bold;
    cursor: pointer;
}

/* الهاتف */
@media(max-width:600px) {
    .contact-form .row { grid-template-columns: 1fr; }
}

/* -----------------------------------
   PRODUCT GRID (General Products)
----------------------------------- */
.products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

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

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

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

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

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

.price {
    margin-top: 6px;
    color: #222;
    font-weight: 800;
}

/* -----------------------------------
   FILTER BAR
----------------------------------- */
/* -----------------------------------
   FILTER BAR — NEW DESIGN
----------------------------------- */

/* -----------------------------------
   FILTER BAR — CLEAN + FIXED
----------------------------------- */

.filterbar {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto auto;
    gap: 12px;
    background: #ffffff;
    padding: 15px;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    align-items: center;
}

/* عناصر الفلترة */
.filterbar select,
.filterbar input[type=text] {
    padding: 12px 14px;
    border: 1px solid #dfe5ea;
    border-radius: 10px;
    font-size: 15px;
    background: #fff;
}

/* أيقونة البحث */
.filterbar input[type="text"] {
    background: url('/assets/icons/search.png') no-repeat 12px center;
    background-size: 18px;
    padding-right: 40px;
}

/* زر تطبيق */
.filterbar .btn {
    background: #27a6cf;
    color: #fff;
    padding: 12px 18px;
    border-radius: 10px;
    font-weight: 700;
    border: none;
    text-align: center;
    cursor: pointer;
}

/* زر إعادة تعيين */
.filterbar .btn-outline {
    background: #fff;
    color: #27a6cf;
    border: 1px solid #27a6cf;
    padding: 12px 16px;
    border-radius: 10px;
    font-weight: 700;
    text-align: center;
}

/* -----------------------------------
   RESPONSIVE — MOBILE
----------------------------------- */
@media(max-width: 700px){
    .filterbar {
        grid-template-columns: 1fr;
    }

    .filterbar select,
    .filterbar input,
    .filterbar .btn,
    .filterbar .btn-outline {
        width: 100%;
    }
}
/* ----------------------------------------------------
   RESPONSIVE — MOBILE
---------------------------------------------------- */
@media(max-width: 700px){
    .filterbar {
        grid-template-columns: 1fr; /* عمود واحد */
    }

    .filterbar select,
    .filterbar input,
    .filterbar .btn,
    .filterbar .btn-outline {
        width: 100%;
    }
}

/* -----------------------------------
   CATEGORY TABS
----------------------------------- */
.category-tabs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 10px 0;
    margin-bottom: 15px;
}

.category-tabs a {
    padding: 8px 14px;
    border-radius: 10px;
    background: #eee;
    color: #333;
    white-space: nowrap;
    font-weight: 600;
    text-decoration: none;
}

.category-tabs a.active {
    background: #27a6cf;
    color: #fff;
}

/* -----------------------------------
   PRODUCT CARDS (Advanced)
----------------------------------- */
.products-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

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

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

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

.card-body {
    padding: 14px;
}

.card-body h3 {
    margin: 0;
    font-size: 18px;
}

.category {
    display: block;
    font-size: 13px;
    color: #777;
    margin-bottom: 6px;
}

/* واتساب */
.whatsapp-btn {
    display: block;
    background: #25D366;
    color: white;
    padding: 8px;
    text-align: center;
    border-radius: 10px;
    text-decoration: none;
    margin-top: 8px;
    font-weight: 700;
}

/* الهاتف */
@media(max-width: 600px) {
    .product-card img { height: 150px; }
    .category-tabs { gap: 6px; }
}

/* -----------------------------------
   FOOTER
----------------------------------- */
.site-footer {
    background: #111;
    color: #eee;
    margin-top: 30px;
    padding: 30px 0;
}

@media(max-width:600px){
    .site-footer .grid {
        grid-template-columns: 1fr ;
        text-align: center;
    }

    .site-footer iframe {
        width: 100% ;
        height: 220px ;
    }
}

/* -----------------------------------
   RESPONSIVE GENERAL
----------------------------------- */
@media(max-width: 768px){
    body { padding-top: 120px; }

    .site-header { padding: 12px 0; }

    .logo img { height: 60px; }

    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 10px;
    }

    .hero h1 { font-size: 28px; }

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

    .product img { height: 140px; }
}