:root {
    --primary-color: #1a5276; /* الكحلي الملكي من لوجو شركة الفجر */
    --accent-color: #27ae60;  /* الأخضر الطبي من اللوجو */
    --dark-color: #2c3e50;
    --bg-color: #f4f6f8;
    --card-bg: #ffffff;
    --price-color: #e74c3c;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    direction: rtl;
    background-color: var(--bg-color);
    color: var(--dark-color);
    line-height: 1.6;
}

/* شريط الاتصال العلوي */
.contact-bar {
    background-color: var(--primary-color);
    color: white;
    padding: 12px 20px;
    text-align: center;
    font-size: 14px;
    border-bottom: 3px solid var(--accent-color);
}

.contact-bar span {
    margin: 0 15px;
    display: inline-block;
}

.contact-bar a {
    color: white;
    text-decoration: none;
    direction: ltr;
    display: inline-block;
}

/* هيدر الموقع */
header {
    background: linear-gradient(135deg, var(--primary-color), #2980b9);
    color: white;
    padding: 60px 20px;
    text-align: center;
}

.logo-box {
    margin-bottom: 20px;
}

.logo-box img {
    max-height: 110px;
    background: white;
    padding: 10px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

header h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 10px;
}

header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* الحاوية وبنية الصفحات */
.container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

/* من نحن */
.about-card {
    background: var(--card-bg);
    padding: 35px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    margin-bottom: 50px;
    border-right: 6px solid var(--accent-color);
}

.about-card h2 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.section-title {
    color: var(--primary-color);
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 40px;
}

.section-title span {
    border-bottom: 4px solid var(--accent-color);
    padding-bottom: 8px;
}

/* شبكة المنتجات */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    border: 1px solid #eef2f5;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.1);
    border-color: var(--accent-color);
}

.product-image-area {
    width: 100%;
    height: 240px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #edf2f7;
}

.product-image-area img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    padding: 10px;
}

/* في حال عدم وجود صورة */
.no-image-box {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f5f7fa, #e4e8ed);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #7f8c8d;
    padding: 20px;
}

.no-image-box svg {
    width: 50px;
    height: 50px;
    fill: var(--primary-color);
    margin-bottom: 10px;
    opacity: 0.6;
}

.product-info-box {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 12px;
    min-height: 48px;
}

.badge-code {
    font-size: 12px;
    color: white;
    background-color: var(--primary-color);
    padding: 4px 12px;
    border-radius: 50px;
    display: inline-block;
    margin-bottom: 15px;
    width: fit-content;
}

.size-details {
    font-size: 13px;
    color: #566573;
    background: #f8f9f9;
    border: 1px dashed #d5dbdb;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 20px;
}

/* بوكس السعر للمريض بدون أسعار الجملة */
.price-footer {
    border-top: 1px solid #f2f4f4;
    padding-top: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price-label {
    font-size: 14px;
    color: #7f8c8d;
}

.price-value {
    font-size: 22px;
    color: var(--price-color);
    font-weight: 700;
}

/* الفوتر */
footer {
    background: var(--dark-color);
    color: #eaeded;
    padding: 60px 20px 30px;
    margin-top: 80px;
    text-align: center;
    border-top: 5px solid var(--accent-color);
}

footer h3 {
    color: white;
    font-size: 1.6rem;
    margin-bottom: 15px;
}

footer p {
    margin: 8px 0;
}

footer a {
    color: white;
    text-decoration: none;
}

.footer-bottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #34495e;
    font-size: 13px;
    color: #bdc3c7;
}