:root {
    --primary-color: #0d47a1; /* أزرق طبي ملكي لشركة الفجر */
    --secondary-color: #1976d2; /* أزرق فاتح متناسق */
    --dark-color: #1e293b;
    --bg-color: #f8fafc;
    --card-bg: #ffffff;
    --price-wholesale: #2e7d32;
    --price-patient: #c62828;
}

* {
    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: #334155;
    line-height: 1.6;
}

/* شريط الاتصال السريع العلوي */
.contact-bar {
    background-color: var(--primary-color);
    color: white;
    padding: 12px 20px;
    text-align: center;
    font-size: 14px;
}

.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), var(--secondary-color));
    color: white;
    padding: 50px 20px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(13, 71, 161, 0.15);
}

.logo-container {
    margin-bottom: 15px;
}

.logo-container img {
    max-height: 100px;
    width: auto;
    background: white;
    padding: 8px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

header h1 {
    font-size: 2.6rem;
    margin-bottom: 10px;
    font-weight: 700;
}

header p {
    font-size: 1.1rem;
    opacity: 0.95;
}

/* الحاوية الرئيسية */
.container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

/* قسم من نحن */
.about-section {
    background-color: var(--card-bg);
    padding: 35px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    margin-bottom: 50px;
    border-right: 6px solid var(--primary-color);
}

.about-section h2 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.8rem;
}

/* عنوان القسم */
.section-title {
    color: var(--primary-color);
    margin-bottom: 35px;
    text-align: center;
    font-size: 2.1rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 70px;
    height: 4px;
    background-color: var(--secondary-color);
    margin: 12px auto 0;
    border-radius: 2px;
}

/* شبكة المنتجات */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    gap: 30px;
}

/* كرت المنتج */
.product-card {
    background-color: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    border: 1px solid #f1f5f9;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

/* صورة المنتج */
.product-img-container {
    width: 100%;
    height: 230px;
    background-color: #f8fafc;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 14px;
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid #f1f5f9;
}

.product-img-container svg {
    width: 60px;
    height: 60px;
    fill: #cbd5e1;
    margin-bottom: 12px;
}

.product-info {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-title {
    font-size: 16px;
    color: var(--dark-color);
    margin-bottom: 12px;
    font-weight: 700;
    min-height: 50px;
}

.product-code {
    font-size: 13px;
    color: var(--primary-color);
    background: #eff6ff;
    padding: 4px 12px;
    border-radius: 50px;
    display: inline-block;
    margin-bottom: 15px;
    font-weight: 600;
}

.product-sizes {
    font-size: 13px;
    color: #475569;
    margin-bottom: 20px;
    background: #fdfdfd;
    border: 1px dashed #cbd5e1;
    padding: 12px;
    border-radius: 8px;
}

/* بوكس الأسعار المحسن بالشيكل */
.price-box {
    border-top: 1px solid #f1f5f9;
    padding-top: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price-wholesale {
    font-size: 13px;
    color: var(--price-wholesale);
}

.price-wholesale strong {
    font-size: 17px;
}

.price-patient {
    font-size: 13px;
    color: var(--price-patient);
}

.price-patient strong {
    font-size: 19px;
}

/* الفوتر */
footer {
    background-color: var(--dark-color);
    color: #cbd5e1;
    padding: 50px 20px 30px;
    margin-top: 80px;
    text-align: center;
}

footer h3 {
    margin-bottom: 15px;
    color: white;
    font-size: 1.5rem;
}

footer p {
    margin: 10px 0;
}

footer a {
    color: #f1f5f9;
    text-decoration: none;
}

.copyright {
    margin-top: 35px;
    padding-top: 20px;
    border-top: 1px solid #334155;
    font-size: 13px;
    color: #94a3b8;
}