/* ==================================================== */
/* تخصيص هوية "دواء المجتمع" - تحسينات CSS الشاملة      */
/* ==================================================== */

/* --- إصلاحات عامة وتنسيق اللوجو --- */
.s-header__logo img, .header-logo img {
    max-width: 140px !important; 
    height: auto !important;
}

/* --- الهيدر وشريط البحث العلوى --- */
.top-navbar {
    background-color: #005baa !important; /* أزرق دواء المجتمع */
}

.top-navbar .s-search-input {
    border-style: none !important;
    background-color: rgba(255, 255, 255, 0.15) !important; /* خلفية شفافة أنيقة للبحث */
    color: #ffffff !important;
    border-radius: 20px !important;
}

.top-navbar .s-search-input::placeholder {
    color: rgba(255, 255, 255, 0.8) !important;
}

.s-search-icon svg {
    fill: #ffffff !important;
}

div#mainnav.bg-white {
    background: transparent;
}

/* --- القائمة الرئيسية (الأقسام) --- */
.main-menu {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
}

.main-menu li a {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #005baa !important; /* أزرق دواء المجتمع */
    transition: all 0.3s ease !important;
    padding: 8px 16px !important;
    border-radius: 8px !important;
}

.main-menu li a:hover {
    color: #00a651 !important; /* أخضر دواء المجتمع */
    background-color: rgba(0, 166, 81, 0.05) !important;
}

/* --- أيقونات الهيدر (السلة وحسابي) --- */
.header-btn__icon {
    display: flex;
    height: 2.5rem;
    width: 2.5rem;
    align-items: center;
    justify-content: center;
    border-radius: 50% !important; /* شكل دائري منتظم */
    border: 1px solid #005baa !important; 
    color: #005baa !important; 
    font-size: 20px;
    transition: all 0.3s ease !important;
}

.s-header__actions .btn:hover .header-btn__icon {
    background-color: #00a651 !important;
    color: #ffffff !important;
    border-color: #00a651 !important;
    transform: translateY(-2px);
}

/* --- كروت المنتجات (تصميم احترافي) --- */
.s-products-list-horizontal-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    align-items: stretch;
}

.s-product-card-vertical {
    flex-direction: column;
    border-radius: 16px !important; 
    border: 1px solid #f3f4f6 !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
    overflow: hidden;
}

.s-product-card-vertical:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 8px 25px rgba(0, 91, 186, 0.08) !important;
}

.s-product-card-image {
    background-color: #ffffff;
}

.s-product-card-content-title {
    font-size: 14px;
    font-weight: bold;
    color: #333333;
    text-align: center;
    white-space: normal;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin-bottom: 10px;
    max-width: 90%;
    height: 40px;
    line-height: 1.4;
    margin: 10px auto;
}

.s-product-card-price {
    font-size: 18px;
    font-weight: bold;
    color: #005baa !important; /* أزرق طبي */
    text-align: center;
    margin: auto; 
    line-height: 1.5;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- أزرار إضافة للسلة --- */
.s-button-wide {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 90%;
    background-color: #00a651 !important; /* أخضر طبي للزر */
    color: #ffffff !important;
    border: none;
    border-radius: 8px !important;
    padding: 10px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease !important;
    margin: 10px auto 15px auto;
    height: 40px;
}

.s-button-wide:hover {
    background-color: #008f45 !important; 
    transform: scale(1.02);
}

/* --- الفوتر (أسفل الموقع) --- */
.store-footer__inner {
    border-top: 3px solid #00a651 !important; /* خط أخضر أنيق يفصل الفوتر */
    background-color: #005baa !important; /* أزرق دواء المجتمع */
    padding-top: 2rem;
    padding-bottom: 2rem !important;
}

.copyright-text p {
    color: #ffffff !important;
}

.s-contacts-header {
    display: none;
}

/* --- تنسيقات النصوص --- */
.md\:text-2xl {
    font-size: 1.2rem;
    line-height: 2rem;
}

h3 {
    font-size: 1.1rem;
    line-height: 1.75rem;
}