/* ============================================
   ScienceMed - Home Page Styles
   Direction: RTL | Colors: Blue & White
   Font: Cairo (Google Fonts)
   ============================================ */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700;800;900&display=swap');

/* ---------- CSS Variables ---------- */
:root  {
        /* Primary Blues */    --primary-900: #023e8a;
        --primary-800: #0353a4;
        --primary-700: #0466c8;
        --primary-600: #0077b6;
        --primary-500: #0096c7;
        --primary-400: #00b4d8;
        --primary-300: #48cae4;
        --primary-200: #90e0ef;
        --primary-100: #caf0f8;
        /* Neutrals */    --white: #ffffff;
        --gray-50: #f8f9fa;
        --gray-100: #e9ecef;
        --gray-200: #dee2e6;
        --gray-300: #ced4da;
        --gray-700: #495057;
        --gray-800: #343a40;
        --gray-900: #212529;
        /* Background & Text */
    --bg-primary: #bfd4e6;
    --bg-main: #d9e8f5;
    --bg-card: #d9e8f5;
    --bg-footer: #96b5d2;
    --bg-secondary: #d9e8f5;
    --bg-header: var(--primary-600);
    --bg-navbar: var(--primary-800);
    --text-primary: var(--gray-900);
    --text-secondary: var(--gray-700);
    --text-light: var(--white);

    /* Shadows & Transitions */    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12);
        --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
        --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.2);
        --transition: all 0.3s ease;
        --transition-slow: all 0.6s ease;
    
}

/* ---------- Dark Mode Variables ---------- */[data-theme="dark"] {
    --bg-primary: #0a1628;
    --bg-main: #0f1f3a;
    --bg-card: #112240;
    --bg-footer: #0c182c;
    --bg-secondary: #0f1f3a;
    --bg-header: #0d1b33;
    --bg-navbar: #081425;
        
        
        
        
        --text-primary: #e0e6ed;
        --text-secondary: #a0aec0;
        --text-light: #ffffff;
        --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
        --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.5);
        --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.6);
    
}

/* ---------- Reset & Base ---------- */*,*::before,*::after  {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    
}

html  {
        scroll-behavior: smooth;
    
}

body {
    font-family: 'Cairo', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

a  {
        text-decoration: none;
        color: inherit;
        transition: var(--transition);
    
}

ul  {
        list-style: none;
    
}

img  {
        max-width: 100%;
        height: auto;
        display: block;
    
}

/* ---------- Header ---------- */.header  {
        background: linear-gradient(135deg, var(--primary-700) 0%, var(--primary-600) 50%, var(--primary-500) 100%);
        padding: 10px 40px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        box-shadow: var(--shadow-md);
        position: relative;
        z-index: 100;
    
}

[data-theme="dark"] .header  {
        background: linear-gradient(135deg, #0d1b33 0%, #122240 50%, #162a4d 100%);
    
}

.header__brand  {
        display: flex;
        align-items: center;
        gap: 14px;
        cursor: pointer;
        text-decoration: none;
        transition: var(--transition);
    
}

.header__brand:hover  {
        opacity: 0.9;
    
}

.header__logo-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.header__brand:hover .header__logo-wrapper {
    transform: scale(1.05);
}

.header__logo {
    height: 64px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.18));
    transition: var(--transition);
}

.header__info  {
        display: flex;
        flex-direction: column;
    
}

.header__title  {
        font-size: 1.6rem;
        font-weight: 800;
        color: var(--white);
        letter-spacing: 1.5px;
        line-height: 1.2;
        text-transform: uppercase;
    
}

.header__subtitle  {
        font-size: 0.75rem;
        color: rgba(255, 255, 255, 0.8);
        font-weight: 400;
        letter-spacing: 0.5px;
    
}

.header__controls  {
        display: flex;
        align-items: center;
        gap: 12px;
    
}

/* ---------- Toggle Buttons ---------- */.toggle-btn  {
        background: rgba(255, 255, 255, 0.15);
        border: 1px solid rgba(255, 255, 255, 0.25);
        color: var(--white);
        padding: 8px 16px;
        border-radius: 25px;
        cursor: pointer;
        font-family: 'Cairo', sans-serif;
        font-size: 0.85rem;
        font-weight: 600;
        display: flex;
        align-items: center;
        gap: 8px;
        transition: var(--transition);
        backdrop-filter: blur(10px);
    
}

.toggle-btn:hover  {
        background: rgba(255, 255, 255, 0.3);
        transform: translateY(-1px);
    
}

.toggle-btn i  {
        font-size: 1rem;
    
}

.toggle-btn--active  {
        background: rgba(255, 255, 255, 0.9);
        color: var(--primary-700);
    
}

/* ---------- Navigation Bar ---------- */.navbar  {
        background: var(--bg-navbar);
        padding: 0 40px;
        box-shadow: var(--shadow-sm);
        position: relative;
        z-index: 99;
    
}

[data-theme="dark"] .navbar  {
        background: #081425;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    
}

.navbar__list  {
        display: flex;
        align-items: center;
        gap: 0;
    
}

.navbar__item  {
    
}

.navbar__link  {
        display: block;
        padding: 14px 28px;
        color: rgba(255, 255, 255, 0.85);
        font-size: 0.95rem;
        font-weight: 600;
        position: relative;
        transition: var(--transition);
    
}

.navbar__link::after  {
        content: '';
        position: absolute;
        bottom: 0;
        right: 0;
        width: 0;
        height: 3px;
        background: var(--primary-300);
        transition: var(--transition);
        border-radius: 3px 3px 0 0;
    
}

.navbar__link:hover,.navbar__link--active  {
        color: var(--white);
        background: rgba(255, 255, 255, 0.08);
    
}

.navbar__link:hover::after,.navbar__link--active::after  {
        width: 100%;
    
}

/* Hamburger Menu (Mobile) */.navbar__toggle  {
        display: none;
        background: none;
        border: none;
        color: var(--white);
        font-size: 1.5rem;
        cursor: pointer;
        padding: 14px 0;
    
}

/* ---------- Footer ---------- */.footer  {
        background: linear-gradient(135deg, var(--primary-900) 0%, var(--primary-800) 100%);
        color: var(--white);
        padding: 40px;
        text-align: center;
    
}

[data-theme="dark"] .footer  {
        background: linear-gradient(135deg, #060e1a 0%, #0a1628 100%);
    
}

.footer__text  {
        font-size: 0.9rem;
        color: rgba(255, 255, 255, 0.7);
    
}

.footer__text a  {
        color: var(--primary-300);
        font-weight: 600;
    
}

.footer__text a:hover  {
        color: var(--white);
    
}

/* Social specific colors *//* Social tooltip *//* ---------- Animations ---------- */@keyframes fadeIn  {
        from  {
            opacity: 0;
            transform: translateY(20px);
        
}

    to  {
            opacity: 1;
            transform: translateY(0);
        
}


}

@keyframes slideInRight  {
        from  {
            opacity: 0;
            transform: translateX(40px);
        
}

    to  {
            opacity: 1;
            transform: translateX(0);
        
}


}

.animate-fadeIn  {
        animation: fadeIn 0.8s ease forwards;
    
}

.animate-slideIn  {
        animation: slideInRight 0.8s ease forwards;
    
}

/* ---------- Responsive Design ---------- *//* Tablet */@media (max-width: 992px)  {
        .header  {
            padding: 12px 24px;
        
}

    .header__title  {
            font-size: 1.25rem;
        
}

    .navbar  {
            padding: 0 24px;
        
}

    .navbar__link  {
            padding: 12px 18px;
            font-size: 0.88rem;
        
}

    .slider__number  {
            font-size: 4rem;
        
}

    .slider__text  {
            font-size: 1.2rem;
        
}

    .welcome__title  {
            font-size: 2rem;
        
}

    .features  {
            grid-template-columns: repeat(2, 1fr);
            padding: 40px 24px;
        
}


}

/* Mobile */@media (max-width: 768px)  {
        .header  {
            padding: 10px 16px;
            flex-wrap: wrap;
        
}

    .header__logo { height: 48px; width: auto; }

    .header__title  {
            font-size: 1.1rem;
        
}

    .header__subtitle  {
            font-size: 0.65rem;
        
}

    .header__controls  {
            gap: 8px;
        
}

    .toggle-btn  {
            padding: 6px 12px;
            font-size: 0.78rem;
        
}

    /* Mobile Nav */    .navbar  {
            padding: 0 16px;
        
}

    .navbar__toggle  {
            display: block;
        
}

    .navbar__list  {
            display: none;
            flex-direction: column;
            width: 100%;
        
}

    .navbar__list--open  {
            display: flex;
        
}

    .navbar__link  {
            padding: 12px 16px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        
}

    .navbar__link::after  {
            display: none;
        
}

    /* Slider */    .slider__number  {
            font-size: 3rem;
        
}

    .slider__text  {
            font-size: 1rem;
        
}

    .slider__text-en  {
            font-size: 0.85rem;
        
}

    /* Welcome */    .welcome  {
            padding: 50px 16px;
        
}

    .welcome__title  {
            font-size: 1.6rem;
        
}

    .welcome__text  {
            font-size: 1rem;
        
}

    /* Features */    .features  {
            grid-template-columns: 1fr;
            padding: 30px 16px;
            gap: 20px;
        
}

    /* Social Float *//* Footer */    .footer  {
            padding: 30px 16px;
        
}

    .main-content  {
            padding: 40px 16px;
        
}


}

/* Small Mobile */@media (max-width: 480px)  {
        .header__brand  {
            gap: 10px;
        
}

    .header__logo { height: 40px; width: auto; }

    .header__title  {
            font-size: 0.95rem;
        
}

    .header__controls  {
            width: 100%;
            justify-content: center;
            margin-top: 8px;
        
}

    .slider__number  {
            font-size: 2.5rem;
        
}

    .slider__text  {
            font-size: 0.9rem;
        
}

    .welcome__title  {
            font-size: 1.4rem;
        
}


}

/* ---------- LTR Mode (English) ---------- */[dir="ltr"]  {
        text-align: left;
    
}

[dir="ltr"] .navbar__link::after  {
        right: auto;
        left: 0;
    
}

[dir="ltr"] .section-title::after  {
        right: auto;
        left: 0;
    
}

/* ---------- Products Grid ---------- */.products-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 30px;
        max-width: 100%;
        margin: 0;
    

    
    
    
    
    
}

.product-card {
    background: var(--bg-card);
        border-radius: 12px;
        box-shadow: var(--shadow-sm);
        padding: 20px;
        text-align: center;
        cursor: pointer;
        transition: var(--transition);
        position: relative;
        overflow: hidden;
        height: auto; min-height: 350px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        border: 1px solid rgba(0, 0, 0, 0.05);
    
}

[data-theme="dark"] .product-card  {
        background: var(--gray-800);
        border-color: rgba(255, 255, 255, 0.05);
    
}

.product-card:hover  {
        transform: translateY(-5px);
        box-shadow: var(--shadow-md);
    
}

.product-card__image-container {
        width: 100%;
        height: 280px;
        background-size: contain;
     /* Zoom in dramatically to show only the bottle */    background-position: center;
     /* Focus on the bottom center where the bottle is */    background-repeat: no-repeat;
        transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.1));
}

.product-card:hover .product-card__image-container  {
        transform: scale(1.15) translateY(-5px);
    
}

.product-card__info {
    position: relative;
    padding-top: 15px;
    background: transparent;
    opacity: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}



.product-card__name-ar {
        font-size: 1.2rem;
        font-weight: 700;
    
    color: var(--text-primary);
}

.product-card__name-en {
        font-size: 1.1rem;
        font-weight: 600;
        font-family: Arial, sans-serif;
    color: var(--text-secondary);
    text-transform: uppercase;
}

/* ---------- Product Modal ---------- */.product-modal  {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 2000;
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    
}

.product-modal--active  {
        opacity: 1;
        visibility: visible;
    
}

.product-modal__overlay  {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(5px);
}

.product-modal__content  {
        position: relative;
        width: 95%;
        max-width: 100%;
        height: 85vh;
        background: rgba(217, 237, 251, 0.78); /* خلفية النافذة شفافة بوضوح بنفس درجة الآيس بلو */
        backdrop-filter: blur(20px) saturate(160%);
        -webkit-backdrop-filter: blur(20px) saturate(160%);
        border: 1px solid rgba(162, 210, 242, 0.6);
        border-radius: 16px;
        box-shadow: 0 20px 45px rgba(0, 30, 60, 0.22);
        overflow: hidden;
        display: flex;
        flex-direction: column;
}

[data-theme="dark"] .product-modal__content  {
        background: rgba(13, 27, 49, 0.82);
        backdrop-filter: blur(20px) saturate(160%);
        -webkit-backdrop-filter: blur(20px) saturate(160%);
        border: 1px solid rgba(162, 210, 242, 0.25);
}

.product-modal__close  {
        position: absolute;
        top: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: rgba(162, 210, 242, 0.3);
        border: 1px solid rgba(162, 210, 242, 0.6);
        font-size: 1.2rem;
        color: var(--primary-700);
        cursor: pointer;
        z-index: 30;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: var(--transition);
}

[data-theme="dark"] .product-modal__close  {
        background: rgba(17, 40, 72, 0.6);
        border-color: #1a3c68;
        color: var(--white);
}

.product-modal__close:hover  {
        background: var(--primary-600);
        color: var(--white);
        transform: rotate(90deg);
}

.product-modal__body  {
        display: flex;
        height: 100%;
        overflow: hidden;
        direction: ltr !important;
     /* Force EN on left, AR on right always */
}

.product-modal__side  {
        flex: 1;
        padding: 60px 30px 30px 30px; /* مسافة 60px من الأعلى تمنع أي تداخل نهائياً مع زر الإغلاق */
        overflow-y: auto;
        font-size: 0.95rem;
        line-height: 1.7;
        background: rgba(162, 210, 242, 0.14); /* نفس درجة اللون بالضبط ولكنها شفافة أكثر وغير معتمة */
        scrollbar-width: thin;
        scrollbar-color: var(--primary-500) rgba(162, 210, 242, 0.55);
}

[data-theme="dark"] .product-modal__side  {
        background: rgba(15, 37, 63, 0.2);
        border-color: rgba(255,255,255,0.05);
        scrollbar-color: var(--primary-500) #0d2138;
}

/* Custom Modern Scrollbar with Deeper Ice-Blue Track */
.product-modal__side::-webkit-scrollbar,
.product-modal__body::-webkit-scrollbar  {
        width: 10px;
}

.product-modal__side::-webkit-scrollbar-track,
.product-modal__body::-webkit-scrollbar-track  {
        background: rgba(162, 210, 242, 0.55) !important; /* نفس درجة اللون بشفافية انسيابية مريحة للعين */
        border-radius: 10px;
}

[data-theme="dark"] .product-modal__side::-webkit-scrollbar-track,
[data-theme="dark"] .product-modal__body::-webkit-scrollbar-track  {
        background: rgba(13, 33, 56, 0.6) !important;
        border-radius: 10px;
}

.product-modal__side::-webkit-scrollbar-thumb,
.product-modal__body::-webkit-scrollbar-thumb  {
        background: var(--primary-500) !important;
        border-radius: 10px;
        border: 2px solid rgba(162, 210, 242, 0.55);
}

.product-modal__side::-webkit-scrollbar-thumb:hover,
.product-modal__body::-webkit-scrollbar-thumb:hover  {
        background: var(--primary-600) !important;
}

/* Arabic Side: Scrollbar on the RIGHT of Arabic text */
.product-modal__side--ar  {
        direction: ltr !important; /* تجعل شريط التمرير على يمين النص العربي */
        text-align: right;
        border-left: 1px solid rgba(0,0,0,0.05);
}

.product-modal__side--ar h3,
.product-modal__title-ar  {
        margin-top: 15px !important;
        margin-bottom: 15px !important;
        color: var(--primary-500);
        font-size: 1.5rem;
}

.product-modal__side--ar .product-modal__side-inner,
.product-modal__side--ar > *  {
        direction: rtl !important; /* تحافظ على اتجاه قراءة الكلام العربي من اليمين لليسار */
        text-align: right !important;
}

/* English Side: Scrollbar on the LEFT of English text */
.product-modal__side--en  {
        direction: rtl !important; /* تجعل شريط التمرير على يسار النص الإنجليزي */
        text-align: left;
        border-right: 1px solid rgba(0,0,0,0.05);
        font-family: Arial, sans-serif;
}

.product-modal__side--en h3,
.product-modal__title-en  {
        margin-top: 15px !important;
        margin-bottom: 15px !important;
        color: var(--primary-500);
        font-size: 1.5rem;
}

.product-modal__side--en .product-modal__side-inner,
.product-modal__side--en > *  {
        direction: ltr !important; /* تحافظ على اتجاه قراءة الكلام الإنجليزي من اليسار لليمين */
        text-align: left !important;
}

.product-modal__side h4  {
        color: var(--primary-600);
        margin-top: 20px;
        margin-bottom: 8px;
        font-size: 1.1rem;
    
}

.product-modal__side p  {
        margin-bottom: 15px;
    
}

.product-modal__side strong  {
        color: var(--primary-800);
    
}

[data-theme="dark"] .product-modal__side strong  {
        color: var(--primary-400);
    
}

.product-modal__center  {
        flex: 0 0 300px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 20px;
        background: rgba(0,0,0,0.02);
    
}

[data-theme="dark"] .product-modal__center  {
        background: rgba(255,255,255,0.02);
    
}

.product-modal__image  {
        width: 100%;
        height: 100%;
        background-size: contain;
        background-position: center;
        background-repeat: no-repeat;
        filter: drop-shadow(0 15px 25px rgba(0,0,0,0.15));
    
}

@media (max-width: 992px)  {
        .product-modal__body  {
            flex-direction: column;
            overflow-y: auto;
        
}

        .product-modal__center  {
            flex: 0 0 250px;
            order: -1;
     /* Image always on top in mobile */    
}

        .product-modal__side  {
            border: none !important;
            padding: 20px;
        
}


}

/* ========== Navbar Search ========== */.navbar  {
        display: flex;
        justify-content: space-between;
        align-items: center;
        
}

.navbar__search-container  {
        position: relative;
        display: flex;
        align-items: center;
        
}

.navbar__search-input  {
        padding: 8px 35px 8px 15px;
        border-radius: 20px;
        border: 1px solid var(--primary-300);
        outline: none;
        background: var(--bg-card);
        color: var(--text-color);
        font-size: 0.9rem;
        width: 350px;
        transition: all 0.3s ease;
    
}

.navbar__search-input:focus  {
        border-color: var(--primary-600);
        box-shadow: 0 0 5px rgba(0, 119, 182, 0.3);
    
}

.navbar__search-icon  {
        position: absolute;
        right: 12px;
        color: var(--primary-500);
        pointer-events: none;
    
}

[dir="rtl"] .navbar__search-input  {
        padding: 8px 15px 8px 35px;
    
}

[dir="rtl"] .navbar__search-icon  {
        right: auto;
        left: 12px;
    
}

.navbar__search-results  {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-card);
        border-radius: 8px;
        box-shadow: var(--shadow-md);
        margin-top: 10px;
        max-height: 300px;
        overflow-y: auto;
        z-index: 100;
        display: none;
        border: 1px solid rgba(0,0,0,0.05);
    
}

[data-theme="dark"] .navbar__search-results  {
        border: 1px solid rgba(255,255,255,0.05);
    
}

.navbar__search-results.active  {
        display: block;
    
}

.search-result-item  {
        padding: 10px 15px;
        cursor: pointer;
        border-bottom: 1px solid rgba(0,0,0,0.05);
        display: flex;
        align-items: center;
        gap: 10px;
    
}

[data-theme="dark"] .search-result-item  {
        border-bottom: 1px solid rgba(255,255,255,0.05);
    
}

.search-result-item:last-child  {
        border-bottom: none;
    
}

.search-result-item:hover  {
        background: var(--bg-main);
    
}

.search-result-img  {
        width: 30px;
        height: 30px;
        object-fit: contain;
        border-radius: 4px;
    
}

.search-result-name  {
        font-size: 0.9rem;
        color: var(--text-color);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    
}

.search-no-results  {
        padding: 15px;
        text-align: center;
        color: var(--text-color);
        font-size: 0.9rem;
        opacity: 0.7;
    
}

@media (max-width: 768px)  {
        .navbar__search-input  {
            width: 150px;
        
}


}

/* Additional Theme Variables (Appended) */:root  {
        --bg-navbar: var(--primary-800);
        }

[data-theme="dark"]  {
        --bg-navbar: #081425;
        --bg-card: #112240;
    
    
}

/* ========== Custom Modern Scrollbars ========== *//* Search Dropdown */#navbarSearchResults::-webkit-scrollbar  {
        width: 6px;
    
}

#navbarSearchResults::-webkit-scrollbar-track  {
        background: rgba(0, 0, 0, 0.04);
        border-radius: 10px;
    
}

[data-theme="dark"] #navbarSearchResults::-webkit-scrollbar-track  {
        background: rgba(255, 255, 255, 0.05);
    
}

#navbarSearchResults::-webkit-scrollbar-thumb  {
        background: var(--primary-500);
        border-radius: 10px;
    
}

#navbarSearchResults::-webkit-scrollbar-thumb:hover  {
        background: var(--primary-600);
    
}

/* Firefox Scrollbar Support */#navbarSearchResults  {
        scrollbar-width: thin;
        scrollbar-color: var(--primary-500) rgba(0, 0, 0, 0.04);
}

[data-theme="dark"] #navbarSearchResults  {
        scrollbar-color: var(--primary-500) rgba(255, 255, 255, 0.05);
}

/* ========== Sidebar & Grid Layout ========== */.products-layout {
    padding-inline-end: 60px; padding-inline-start: 0;

        display: flex;
        gap: 30px;
        align-items: flex-start;
    
}

.products-sidebar {
    width: 345px;
    flex-shrink: 0;
    background: var(--bg-card);
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow-sm);
    
    
}

[data-theme="dark"] .products-sidebar  {
        border: 1px solid rgba(255, 255, 255, 0.05);
    
}

.products-sidebar::-webkit-scrollbar  {
        width: 4px;
    
}

.products-sidebar::-webkit-scrollbar-track  {
        background: transparent;
    
}

.products-sidebar::-webkit-scrollbar-thumb  {
        background: var(--primary-500);
        border-radius: 10px;
    
}

.sidebar-title  {
        font-size: 1.2rem;
        color: var(--primary-700);
        border-bottom: 2px solid var(--primary-100);
        padding-bottom: 10px;
        margin-bottom: 20px;
    
}

[data-theme="dark"] .sidebar-title  {
        color: var(--primary-300);
        border-bottom-color: rgba(255, 255, 255, 0.1);
    
}

.categories-list  {
        list-style: none;
        padding: 0;
        margin: 0;
        display: flex;
        flex-direction: column;
        gap: 8px;
    
}

.category-item {
    font-size: 0.85rem;
        padding: 10px 15px;
        border-radius: 8px;
        cursor: pointer;
        transition: all 0.2s ease;
        color: var(--text-color);
        font-size: 1rem;
        background: transparent;
    
}

.category-item:hover  {
        background: rgba(0, 119, 182, 0.05);
        color: var(--primary-600);
    
}

[data-theme="dark"] .category-item:hover  {
        background: rgba(255, 255, 255, 0.05);
        color: var(--primary-300);
    
}

.category-item--active  {
        background: var(--primary-600) !important;
        color: #fff !important;
        font-weight: bold;
    
}

.products-main  {
        flex: 1;
    
}

@media (max-width: 992px)  {
        .products-layout  {
            flex-direction: column;
        
}

    .products-sidebar  {
            width: 100%;
            position: static;
            order: -1 !important;
     /* Always on top for mobile */        margin-bottom: 20px;
        
}


}





/* ---------- Social Media Float Directions ---------- *//* ========== Footer Modern Styles ========== */
.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
}
.footer-link:hover {
    color: var(--primary-500);
    transform: translateX(-5px); /* Slide left in RTL */
}
html[dir="ltr"] .footer-link:hover {
    transform: translateX(5px); /* Slide right in LTR */
}

.footer-social:hover {
    background: var(--primary-500) !important;
    color: var(--white) !important;
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
}
[data-theme="dark"] .footer__bottom {
    background: transparent !important;
    border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.footer-email:hover { color: var(--primary-500) !important; text-decoration: underline !important; }

.footer-human-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    background: linear-gradient(135deg, var(--primary-600), var(--primary-800)) !important;
}


/* TELEGRAM INJECTIONS *//* Telegram Magic Circle & Fairy Dust */
.tg-dust-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60px;
    height: 60px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
    animation: tg-spin-dust 4s linear infinite;
}
.tg-dust-ring::before,
.tg-dust-ring::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 2px;
    border-radius: 50%;
}
.tg-dust-ring::before {
    top: 5px; left: 50%;
    box-shadow: 
        10px -5px 3px #ff0000, 
        20px 5px 3px #ff7f00, 
        15px 20px 3px #ffff00, 
        -5px 20px 3px #00ff00, 
        -20px 10px 3px #0000ff, 
        -15px -10px 3px #4b0082, 
        -5px -20px 3px #9400d3;
    animation: tg-twinkle-dust 1s infinite alternate;
}
.tg-dust-ring::after {
    bottom: 5px; left: 50%;
    box-shadow: 
        15px 15px 2px #ffcc00, 
        -15px 15px 3px #00ffff, 
        -15px -15px 3px #ff00ff, 
        15px -15px 2px #00ff00,
        25px 0px 3px #ff0000,
        -25px 0px 3px #0000ff;
    animation: tg-twinkle-dust 1.5s infinite alternate-reverse;
}

.tg-stars-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 75px;
    height: 75px;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: -1;
    animation: tg-spin-stars 10s linear infinite reverse;
}
.tg-stars-circle i {
    position: absolute;
    color: #ffcc00;
    font-size: 9px;
    text-shadow: 0 0 5px rgba(255,255,255,0.8);
    animation: tg-star-blink 1.2s infinite alternate;
}
.tg-stars-circle .s1 { top: 0; left: 50%; margin-left: -4px; animation-delay: 0s; }
.tg-stars-circle .s2 { top: 12px; right: 12px; color: #00ffff; animation-delay: 0.2s; }
.tg-stars-circle .s3 { top: 50%; right: 0; margin-top: -4px; animation-delay: 0.4s; }
.tg-stars-circle .s4 { bottom: 12px; right: 12px; color: #ff00ff; animation-delay: 0.6s; }
.tg-stars-circle .s5 { bottom: 0; left: 50%; margin-left: -4px; animation-delay: 0.8s; }
.tg-stars-circle .s6 { bottom: 12px; left: 12px; color: #00ff00; animation-delay: 1s; }
.tg-stars-circle .s7 { top: 50%; left: 0; margin-top: -4px; animation-delay: 1.2s; }
.tg-stars-circle .s8 { top: 12px; left: 12px; color: #ffcc00; animation-delay: 1.4s; }

@keyframes tg-spin-dust { 100% { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes tg-spin-stars { 100% { transform: translate(-50%, -50%) rotate(-360deg); } }
@keyframes tg-twinkle-dust {
    0% { opacity: 0.3; filter: brightness(0.8); }
    100% { opacity: 1; filter: brightness(1.5) drop-shadow(0 0 2px #fff); }
}
@keyframes tg-star-blink {
    0% { opacity: 0.2; transform: scale(0.5); }
    100% { opacity: 1; transform: scale(1.3); }
}


/* Permanent Popup for Floating Icon */
.tg-popup {
    position: absolute;
    right: calc(100% + 20px);
    top: 50%;
    transform: translateY(-50%);
    background: #ffcc00;
    color: #111;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 800;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    pointer-events: none;
    animation: tg-bounce 2s infinite;
    z-index: 20;
    font-family: 'Cairo', sans-serif;
}
.tg-popup::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 8px 0 8px 8px;
    border-style: solid;
    border-color: transparent transparent transparent #ffcc00;
}
@keyframes tg-bounce {
    0%, 100% { transform: translate(0, -50%); }
    50% { transform: translate(-10px, -50%); }
}

/* Permanent Popup for Footer Icon */
.tg-popup-footer {
    position: absolute;
    bottom: calc(100% + 20px);
    left: 50%;
    transform: translateX(-50%);
    background: #ffcc00;
    color: #111;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 800;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    pointer-events: none;
    animation: tg-bounce-up 2s infinite;
    z-index: 20;
    font-family: 'Cairo', sans-serif;
}
.tg-popup-footer::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 8px 8px 0 8px;
    border-style: solid;
    border-color: #ffcc00 transparent transparent transparent;
}
@keyframes tg-bounce-up {
    0%, 100% { transform: translate(-50%, 0); }
    50% { transform: translate(-50%, -8px); }
}


/* RTL Popup Fix for Arabic */
[dir="rtl"] .tg-popup {
    left: calc(100% + 20px) !important;
    right: auto !important;
    animation: tg-bounce-rtl 2s infinite !important;
}
[dir="rtl"] .tg-popup::after {
    left: -8px !important;
    right: auto !important;
    border-width: 8px 8px 8px 0 !important;
    border-color: transparent #ffcc00 transparent transparent !important;
}
@keyframes tg-bounce-rtl {
    0%, 100% { transform: translate(0, -50%); }
    50% { transform: translate(10px, -50%); }
}

/* Ensure absolute positioning for stars to prevent layout breaking */
.tg-stars-circle i {
    position: absolute !important;
    display: inline-block !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
}

/* Telegram Popup Close Button */
.tg-popup, .tg-popup-footer {
    pointer-events: auto !important;
    padding-right: 24px !important;
}
[dir="rtl"] .tg-popup, [dir="rtl"] .tg-popup-footer {
    padding-right: 12px !important;
    padding-left: 24px !important;
}
.close-tg-popup {
    position: absolute;
    top: 4px;
    right: 5px;
    cursor: pointer;
    color: #444;
    font-size: 10px;
    width: 14px;
    height: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0,0,0,0.05);
    transition: 0.2s;
}
.close-tg-popup:hover {
    color: #000;
    background: rgba(0,0,0,0.15);
    transform: scale(1.1);
}
[dir="rtl"] .close-tg-popup {
    right: auto;
    left: 5px;
}


/* Universal Telegram Fix */
.telegram-magic {
    animation: magic-pulse 2s infinite ease-in-out !important;
    position: relative !important;
    z-index: 10 !important;
    overflow: visible !important;
    isolation: isolate !important;
    transform: translateZ(0) !important;
}
@keyframes magic-pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 136, 204, 0.8), 0 0 15px rgba(0, 136, 204, 0.6); }
    50% { box-shadow: 0 0 0 15px rgba(0, 136, 204, 0), 0 0 25px rgba(0, 136, 204, 1); }
    100% { box-shadow: 0 0 0 0 rgba(0, 136, 204, 0), 0 0 15px rgba(0, 136, 204, 0.6); }
}


/* Swap Close Button Positions */
.close-tg-popup {
    left: 5px !important;
    right: auto !important;
}
.tg-popup, .tg-popup-footer {
    padding-left: 26px !important;
    padding-right: 14px !important;
}

[dir="rtl"] .close-tg-popup {
    right: 5px !important;
    left: auto !important;
}
[dir="rtl"] .tg-popup, [dir="rtl"] .tg-popup-footer {
    padding-right: 26px !important;
    padding-left: 14px !important;
}


/* Enlarge Close Button (X) */
.close-tg-popup {
    font-size: 14px !important;
    width: 24px !important;
    height: 24px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: rgba(0,0,0,0.08) !important;
}
.close-tg-popup:hover {
    transform: translateY(-50%) scale(1.15) !important;
    background: transparent !important;
}

/* Adjust popup padding for larger X */
.tg-popup, .tg-popup-footer {
    padding-left: 34px !important;
    padding-right: 14px !important;
    padding-top: 8px !important;
    padding-bottom: 8px !important;
}
[dir="rtl"] .tg-popup, [dir="rtl"] .tg-popup-footer {
    padding-right: 34px !important;
    padding-left: 14px !important;
}


/* Footer Active Page Indicator */
.footer-link--active {
    color: var(--primary-500) !important;
    font-weight: 800;
    position: relative;
}
.footer-link--active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 25px;
    height: 3px;
    background: var(--primary-500);
    border-radius: 2px;
    box-shadow: 0 0 8px var(--primary-500);
}


/* Hide default black tooltip for Telegram */
.telegram-magic::before {
    display: none !important;
}/* =========================================
   NEW MULTI-LEVEL CATEGORY DESIGN SYSTEM
   ========================================= */

/* "All Products" Main Button */
.all-products-btn {
    position: relative;
    background: linear-gradient(145deg, var(--bg-card, #ffffff), #f3f4f6);
    color: var(--primary-700);
    font-weight: 800;
    font-size: 1.05rem;
    padding: 14px 20px;
    border-radius: 50px; /* Elegant pill shape */
    text-align: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 25px;
    list-style: none;
    border: 1px solid rgba(0, 119, 182, 0.15);
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    overflow: hidden;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.all-products-btn::before {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    background: linear-gradient(135deg, var(--primary-600), var(--primary-400));
    z-index: -1;
    transition: opacity 0.4s ease;
    opacity: 0;
}

.all-products-btn:hover {
    color: white;
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 119, 182, 0.3);
    border-color: transparent;
}

.all-products-btn:hover::before {
    opacity: 1;
}

.all-products-btn--active {
    background: linear-gradient(135deg, var(--primary-700), var(--primary-500)) !important;
    color: white !important;
    border: none !important;
    box-shadow: 0 6px 18px rgba(0, 119, 182, 0.35);
}

[data-theme="dark"] .all-products-btn {
    background: linear-gradient(145deg, #1e293b, #0f172a);
    color: var(--primary-300);
    border: 1px solid rgba(255,255,255,0.08);
}
[data-theme="dark"] .all-products-btn:hover {
    color: white;
}
[data-theme="dark"] .all-products-btn:hover::before {
    opacity: 1;
}

/* Level 1: Main Accordion Headers */
.level-1-header {
    background: linear-gradient(135deg, var(--primary-600), var(--primary-800));
    color: white;
    font-weight: bold;
    padding: 14px 18px;
    margin-top: 15px;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0, 119, 182, 0.25);
    transition: all 0.3s ease;
}
.level-1-header:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 119, 182, 0.35);
}
.level-1-header span {
    font-size: 0.9rem;
    letter-spacing: -0.2px;
    white-space: normal;
    line-height: 1.4;
}
.level-1-header .toggle-icon {
    background: rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Level 2: Sub-group Headers */
.level-2-header {
    background: rgba(0, 119, 182, 0.08);
    color: var(--primary-700);
    font-weight: 700;
    padding: 10px 14px;
    margin-top: 10px;
    border-radius: 8px;
    border-right: 4px solid var(--primary-500);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}
.level-2-header:hover {
    background: rgba(0, 119, 182, 0.15);
    border-right-width: 6px;
}
[data-theme="dark"] .level-2-header {
    background: rgba(255, 255, 255, 0.05);
    color: var(--primary-200);
    border-right-color: var(--primary-400);
}
.level-2-header span {
    font-size: 0.85rem;
    white-space: normal;
    line-height: 1.4;
}
.level-2-header .toggle-icon {
    background: rgba(0, 119, 182, 0.15);
    color: var(--primary-600);
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    flex-shrink: 0;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
[data-theme="dark"] .level-2-header .toggle-icon {
    background: rgba(255,255,255,0.1);
    color: var(--primary-200);
}

/* Level 3: Leaf Items (Clickable Categories) */
.level-3-item {
    font-size: 0.85rem;
    padding: 10px 12px;
    margin-top: 4px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--text-color);
    background: var(--bg-card, #ffffff);
    border: 1px solid rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}
[data-theme="dark"] .level-3-item {
    background: var(--bg-color);
    border-color: rgba(255,255,255,0.05);
}
.level-3-item .indicator-icon {
    color: var(--primary-400);
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}
.level-3-item:hover {
    border-color: var(--primary-300);
    color: var(--primary-700);
    transform: translateX(-4px); /* Pushes to the left in RTL, creates an indent effect */
    box-shadow: 0 4px 10px rgba(0, 119, 182, 0.1);
}
.level-3-item:hover .indicator-icon {
    color: var(--primary-600);
    transform: translateX(-2px);
}
[data-theme="dark"] .level-3-item:hover {
    border-color: var(--primary-500);
    color: var(--primary-300);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}
.level-3-item--active {
    background: var(--primary-600) !important;
    color: white !important;
    border-color: var(--primary-600) !important;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(0, 119, 182, 0.3);
}
.level-3-item--active .indicator-icon {
    color: white !important;
}

/* Re-apply desktop sticky sidebar */
@media (min-width: 993px) {
    .products-sidebar {
        position: sticky;
        top: 100px;
        max-height: calc(100vh - 120px);
        overflow-y: auto;
    }
}


/* RTL/LTR specific positioning for social float *//* =========================================
   OFF-CANVAS SIDEBAR & RESPONSIVE GRID OVERRIDES
   ========================================= */

/* Layout resets */
.products-layout {
    display: block !important;
    padding: 0 !important;
    margin: 0 !important;
}
.products-main {
    width: 100% !important;
    flex: none !important;
}

/* Products Grid */
.products-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
    gap: 30px !important;
    width: 100% !important;
    height: auto !important;
    overflow: visible !important;
}

/* The Drawer Sidebar */
.products-sidebar {
    position: fixed !important;
    top: 0 !important;
    width: 320px !important;
    max-width: 85vw !important;
    height: 100vh !important;
    max-height: 100vh !important;
    background: var(--bg-card, #fff) !important;
    z-index: 4000 !important;
    padding: 20px 20px 80px 20px !important; /* extra bottom padding */
    overflow-y: auto !important;
    border-radius: 0 !important;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    box-shadow: 0 0 30px rgba(0,0,0,0.3) !important;
}

/* Drawer Positioning (RTL/LTR) */
[dir="rtl"] .products-sidebar {
    right: -100% !important;
    left: auto !important;
}
[dir="rtl"] .products-sidebar.products-sidebar--open {
    right: 0 !important;
}

[dir="ltr"] .products-sidebar {
    left: -100% !important;
    right: auto !important;
}
[dir="ltr"] .products-sidebar.products-sidebar--open {
    left: 0 !important;
}

/* Sidebar Overlay */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px);
    z-index: 3999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.sidebar-overlay--active {
    opacity: 1;
    visibility: visible;
}

/* Product Card Fixes */
.product-card {
    height: auto !important;
    min-height: 300px !important;
    padding-bottom: 25px !important;
}
.product-card__image-container {
    height: 250px !important;
}

/* Remove old scrollbars */
.products-grid::-webkit-scrollbar { display: none; }


/* Telegram Magic Circle & Fairy Dust */
.tg-dust-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60px;
    height: 60px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
    animation: tg-spin-dust 4s linear infinite;
}
.tg-dust-ring::before,
.tg-dust-ring::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 2px;
    border-radius: 50%;
}
.tg-dust-ring::before {
    top: 5px; left: 50%;
    box-shadow: 
        10px -5px 3px #ff0000, 
        20px 5px 3px #ff7f00, 
        15px 20px 3px #ffff00, 
        -5px 20px 3px #00ff00, 
        -20px 10px 3px #0000ff, 
        -15px -10px 3px #4b0082, 
        -5px -20px 3px #9400d3;
    animation: tg-twinkle-dust 1s infinite alternate;
}
.tg-dust-ring::after {
    bottom: 5px; left: 50%;
    box-shadow: 
        15px 15px 2px #ffcc00, 
        -15px 15px 3px #00ffff, 
        -15px -15px 3px #ff00ff, 
        15px -15px 2px #00ff00,
        25px 0px 3px #ff0000,
        -25px 0px 3px #0000ff;
    animation: tg-twinkle-dust 1.5s infinite alternate-reverse;
}

.tg-stars-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 75px;
    height: 75px;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: -1;
    animation: tg-spin-stars 10s linear infinite reverse;
}
.tg-stars-circle i {
    position: absolute;
    color: #ffcc00;
    font-size: 9px;
    text-shadow: 0 0 5px rgba(255,255,255,0.8);
    animation: tg-star-blink 1.2s infinite alternate;
}
.tg-stars-circle .s1 { top: 0; left: 50%; margin-left: -4px; animation-delay: 0s; }
.tg-stars-circle .s2 { top: 12px; right: 12px; color: #00ffff; animation-delay: 0.2s; }
.tg-stars-circle .s3 { top: 50%; right: 0; margin-top: -4px; animation-delay: 0.4s; }
.tg-stars-circle .s4 { bottom: 12px; right: 12px; color: #ff00ff; animation-delay: 0.6s; }
.tg-stars-circle .s5 { bottom: 0; left: 50%; margin-left: -4px; animation-delay: 0.8s; }
.tg-stars-circle .s6 { bottom: 12px; left: 12px; color: #00ff00; animation-delay: 1s; }
.tg-stars-circle .s7 { top: 50%; left: 0; margin-top: -4px; animation-delay: 1.2s; }
.tg-stars-circle .s8 { top: 12px; left: 12px; color: #ffcc00; animation-delay: 1.4s; }

@keyframes tg-spin-dust { 100% { transform: translate(-50%, -50%) rotate(360deg); } }

@keyframes tg-twinkle-dust {
    0% { opacity: 0.3; filter: brightness(0.8); }
    100% { opacity: 1; filter: brightness(1.5) drop-shadow(0 0 2px #fff); }
}
@keyframes tg-spin-stars { 100% { transform: translate(-50%, -50%) rotate(-360deg); } }
@keyframes tg-star-blink {
    0% { opacity: 0.2; transform: scale(0.5); }
    100% { opacity: 1; transform: scale(1.3); }
}

/* Force Footer Upper Parts to keep the same visual order regardless of language */
html[dir="ltr"] .footer__brand {
    order: 2 !important;
}
html[dir="ltr"] .footer__contact {
    order: 1 !important;
}


/* ---------- Social Media Floating Buttons ---------- */
.social-float {
    position: fixed;
    /* Position handled by dir attribute */
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 1000;
}

.social-float__link {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
}

.social-float__link:hover {
    transform: scale(1.15);
    box-shadow: var(--shadow-lg);
}

/* Social specific colors */
.social-float__link--facebook {
    background: linear-gradient(135deg, #1877f2, #0d65d9);
}

.social-float__link--whatsapp {
    background: linear-gradient(135deg, #25d366, #128c7e);
}
.social-float__link--telegram {
    background: linear-gradient(135deg, #0088cc, #005580);
}


.social-float__link--youtube {
    background: linear-gradient(135deg, #ff0000, #cc0000);
}

.social-float__link--tiktok {
    background: linear-gradient(135deg, #000000, #333333);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Social tooltip */
.social-float__link::before {
    content: attr(data-tooltip);
    position: absolute;
    /* Position handled by dir attribute */
    top: 50%;
    transform: translateY(-50%);
    background: var(--gray-900);
    color: var(--white);
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.social-float__link:hover::before {
    opacity: 1;
    visibility: visible;
}



/* Modern Edge Social Icons - Sleek Slide Out */
.social-float {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-float__link {
    width: 38px !important;
    height: 42px !important;
    font-size: 1.2rem !important;
}

[dir="rtl"] .social-float__link {
    border-radius: 0 20px 20px 0 !important;
    transform-origin: left center;
    padding-left: 4px;
}
[dir="ltr"] .social-float__link {
    border-radius: 20px 0 0 20px !important;
    transform-origin: right center;
    padding-right: 4px;
}

[dir="rtl"] .social-float {
    left: 0 !important;
    right: auto !important;
    transform: translateX(-4px);
}
[dir="rtl"] .social-float:hover {
    transform: translateX(0);
}

[dir="ltr"] .social-float {
    right: 0 !important;
    left: auto !important;
    transform: translateX(4px);
}
[dir="ltr"] .social-float:hover {
    transform: translateX(0);
}

@media (max-width: 768px) {
    [dir="rtl"] .social-float { transform: translateX(0); }
    [dir="ltr"] .social-float { transform: translateX(0); }
}

/* Ensure Telegram Stars are perfectly centered on the icon */
.social-float__link--telegram .tg-dust-ring,
.social-float__link--telegram .tg-stars-circle {
    top: 50% !important;
    left: 50% !important;
    margin: 0 !important;
}

/* ===== Footer contact people cards ===== */
.footer-person {
    width: 100%;
    max-width: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 18px 16px;
    background: var(--bg-primary);
    border: 1px solid rgba(4, 102, 200, 0.15);
    border-radius: 16px;
    box-shadow: 0 6px 18px rgba(2, 62, 138, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.footer-person:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(2, 62, 138, 0.16); }
[data-theme="dark"] .footer-person { border-color: rgba(72, 202, 228, 0.2); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35); }
.footer-person__icon {
    width: 46px; height: 46px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--primary-700), var(--primary-500));
    color: #fff; font-size: 1.1rem; margin-bottom: 4px;
}
.footer-person__name { font-weight: 800; font-size: 1.05rem; color: var(--text-primary); }
.footer-person__role { font-size: 0.88rem; color: var(--text-secondary); margin-bottom: 6px; }
.footer-person__phone {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 7px 18px; border-radius: 25px;
    background: linear-gradient(135deg, var(--primary-700), var(--primary-500));
    color: #fff !important; font-weight: 700; font-size: 0.95rem; text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.footer-person__phone:hover { transform: translateY(-2px); box-shadow: 0 6px 14px rgba(4, 102, 200, 0.35); }

/* ===== Footer people: one horizontal row ===== */
.footer__people {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 10px 20px;
}
.footer__people .footer-person {
    flex: 1 1 240px;
    max-width: 320px;
}
@media (max-width: 768px) {
    .footer__people { flex-direction: column; align-items: center; }
    .footer__people .footer-person { width: 100%; max-width: 340px; flex: 0 0 auto; }
}

/* ===== Footer people: first element in footer ===== */
.footer__people { padding: 50px 20px 0 20px; }
.footer__people + .footer__container { padding-top: 40px !important; }

/* ===== Footer contact title above people ===== */
.footer__people-title {
    text-align: center;
    color: var(--primary-600);
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 auto;
    padding: 50px 20px 0 20px;
}
.footer__people-title + .footer__people { padding-top: 24px; }
[data-theme="dark"] .footer__people-title { color: var(--primary-300); }

/* ==========================================================================
   Unified Balanced Footer Design (Preserves --bg-footer & Original Card Styles)
   ========================================================================== */
.footer {
    background: var(--bg-footer) !important;
    padding: 40px 20px 22px 20px !important;
    color: var(--text-primary);
}

.footer__inner {
    max-width: 1200px;
    margin: 0 auto;
}

.footer__people-title {
    text-align: center;
    color: var(--primary-700) !important;
    font-size: 1.55rem !important;
    font-weight: 800 !important;
    margin: 0 auto 22px auto !important;
    padding: 0 20px 10px 20px !important;
    position: relative;
}

.footer__people-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 68px;
    height: 3.5px;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--primary-700), var(--primary-500));
}

[data-theme="dark"] .footer__people-title {
    color: var(--primary-300) !important;
}

.footer__people {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 22px !important;
    max-width: 1200px !important;
    margin: 0 auto 36px auto !important;
    padding: 0 !important;
}

.footer__people .footer-person {
    max-width: none !important;
    width: 100% !important;
}

/* 3 Balanced Columns inside the SAME unified footer */
.footer__main-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr 1.15fr;
    gap: 36px;
    align-items: start;
    padding: 34px 0 28px 0;
    border-top: 1px solid rgba(4, 102, 200, 0.16);
    border-bottom: 1px solid rgba(4, 102, 200, 0.16);
    text-align: start;
}

[data-theme="dark"] .footer__main-grid {
    border-color: rgba(255, 255, 255, 0.1);
}

/* Column 1: Brand + Golden Logo */
.footer__brand-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    align-self: center;
    text-align: center;
    gap: 16px;
}

.footer__brand-desc {
    color: var(--text-primary);
    line-height: 1.7;
    font-weight: 800;
    font-size: 1.04rem;
    margin: 0;
    text-align: center;
}

.footer__brand-desc span {
    color: var(--primary-700);
}

[data-theme="dark"] .footer__brand-desc span {
    color: var(--primary-300);
}

/* Column Headings */
.footer__col-title {
    font-size: 1.12rem;
    font-weight: 800;
    color: var(--primary-800);
    margin: 0 0 16px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

[data-theme="dark"] .footer__col-title {
    color: var(--primary-300);
}

.footer__col-title::before {
    content: '';
    width: 4px;
    height: 20px;
    border-radius: 4px;
    background: linear-gradient(180deg, var(--primary-700), var(--primary-500));
    flex-shrink: 0;
}

/* Column 2: Quick Links */
.footer__links-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 9px;
    max-width: 240px;
}

.footer__links-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 8px 14px;
    border-radius: 11px;
    background: var(--bg-primary);
    border: 1px solid rgba(4, 102, 200, 0.15);
    color: var(--text-primary);
    font-size: 0.96rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, color 0.22s ease;
}

[data-theme="dark"] .footer__links-pill {
    border-color: rgba(72, 202, 228, 0.2);
}

.footer__links-pill:hover {
    transform: translateX(-4px);
    border-color: var(--primary-500);
    color: var(--primary-700);
    box-shadow: 0 4px 12px rgba(2, 62, 138, 0.1);
}

html[dir="ltr"] .footer__links-pill:hover {
    transform: translateX(4px);
}

[data-theme="dark"] .footer__links-pill:hover {
    color: var(--primary-300);
    border-color: var(--primary-400);
}

.footer__links-pill.active {
    background: linear-gradient(135deg, var(--primary-700), var(--primary-500));
    color: #ffffff !important;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(4, 102, 200, 0.25);
}

.footer__links-pill i {
    font-size: 0.72rem;
    color: var(--primary-600);
    transition: transform 0.22s ease;
}

html[dir="ltr"] .footer__links-pill i {
    transform: rotate(180deg);
}

[data-theme="dark"] .footer__links-pill i {
    color: var(--primary-300);
}

.footer__links-pill.active i {
    color: #ffffff !important;
}

/* Column 3: Contact Info + Human Health + Original Telegram Magic Socials */
.footer__contact-col {
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.footer__info-pill {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 12px;
    background: var(--bg-primary);
    border: 1px solid rgba(4, 102, 200, 0.15);
    color: var(--text-primary);
    font-size: 0.94rem;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.22s ease, border-color 0.22s ease;
}

[data-theme="dark"] .footer__info-pill {
    border-color: rgba(72, 202, 228, 0.2);
}

a.footer__info-pill:hover {
    transform: translateY(-2px);
    border-color: var(--primary-500);
}

.footer__info-pill i {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: linear-gradient(135deg, var(--primary-700), var(--primary-500));
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.92rem;
    flex-shrink: 0;
}

.footer__human-cta {
    background: linear-gradient(135deg, var(--primary-500), var(--primary-700));
    color: #ffffff !important;
    padding: 11px 18px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.96rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    box-shadow: var(--shadow-sm);
    margin-top: 2px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.footer__human-cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.footer__social-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 62px;
    padding-bottom: 6px;
}

.footer__bottom {
    text-align: center;
    padding: 20px 10px 4px 10px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.footer__bottom-brand {
    color: var(--primary-700);
    font-weight: 700;
    text-decoration: none;
}

[data-theme="dark"] .footer__bottom-brand {
    color: var(--primary-300);
}

@media (max-width: 960px) {
    .footer__main-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .footer__col-title {
        justify-content: center;
    }

    .footer__links-list {
        margin: 0 auto;
        max-width: 290px;
    }

    .footer__contact-col {
        max-width: 360px;
        margin: 0 auto;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .footer__people {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
        max-width: 360px !important;
    }
}
