/* ==========================
   Custom Theme - Optimized
========================== */

/* Body & Text */
body {
    font-family: 'Open Sans', sans-serif !important;
    font-weight: 400 !important;
    color: #111827 !important;
    font-size: 14px !important;
    line-height: 17px !important; /* ضيقنا المسافات شوي */
    background-color: #F9FAFB !important;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    color: #111827 !important;
    margin-bottom: 8px !important;
}

/* Links */
a {
    color: #1E3A8A !important;
}
a:hover {
    color: #F97316 !important;
    text-decoration: none !important;
}

/* Header */
#header, .header {
    background-color: #1E3A8A !important;
}
#header a, #header .btn {
    color: #ffffff !important;
}
#header .btn-add-ad, #header .btn-language {
    background-color: #F97316 !important;
    color: #ffffff !important;
    border: none !important;
}
#header .btn-add-ad:hover, #header .btn-language:hover {
    background-color: #e25800 !important;
    color: #ffffff !important;
}

/* Menu / Navigation */
#menu, .nav {
    background-color: #1E3A8A !important;
}
#menu .nav > li > a {
    color: #ffffff !important;
    padding: 10px 15px !important;
}
#menu .nav > li > a:hover, #menu .nav > li.open > a {
    background-color: #F97316 !important;
    color: #ffffff !important;
    border-radius: 4px !important; /* حواف مستديرة */
}

/* Buttons */
.btn, .button, input[type="submit"] {
    border-radius: 4px !important;
    text-transform: uppercase !important;
    font-size: 13px !important;
    padding: 6px 12px !important;
}
.btn-primary {
    background-color: #F97316 !important;
    color: #ffffff !important;
    border: none !important;
}
.btn-primary:hover {
    background-color: #e25800 !important;
}

/* Language & Account buttons */
#top #form-language .btn-language {
    background-color: #F97316 !important;
    color: #ffffff !important;
    border-radius: 4px !important;
    padding: 5px 12px !important;
    font-size: 12px !important;
    text-transform: uppercase !important;
}

/* Cards / Product Thumbs */
.product-thumb, .card {
    background-color: #ffffff !important;
    border: 1px solid #ddd !important;
    box-shadow: 0 3px 6px rgba(0,0,0,0.08) !important;
    padding: 12px !important;
    margin-bottom: 16px !important;
    border-radius: 8px !important;
    min-height: 180px !important; /* حجم موحد لكل الكروت */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Featured Ads */
.featured, .product-featured {
    border: 2px solid #F97316 !important;
}

/* Buttons inside product thumbs */
.product-thumb .button-group button {
    background-color: #F97316 !important;
    color: #ffffff !important;
    border: none !important;
}
.product-thumb .button-group button:hover {
    background-color: #e25800 !important;
    color: #ffffff !important;
}

/* Category Cards */
.category-card {
    display: inline-block;
    background-color: #ffffff !important;
    border: 1px solid #ddd !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05) !important;
    border-radius: 50% !important; /* دائري */
    width: 60px !important;
    height: 60px !important;
    text-align: center;
    line-height: 60px !important;
    margin: 6px !important;
    font-size: 12px !important;
    color: #1E3A8A !important;
    transition: all 0.3s ease;
}
.category-card:hover {
    background-color: #F97316 !important;
    color: #ffffff !important;
    transform: scale(1.1);
}

/* Footer */
footer {
    background-color: #1E3A8A !important;
    color: #ffffff !important;
    padding: 16px 0 !important;
}
footer a {
    color: #F9FAFB !important;
}
footer a:hover {
    color: #F97316 !important;
}

/* Misc */
.alert {
    border-left: 4px solid #F97316 !important;
}
