*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: #222;
    display: flex;
    flex-direction: column;
}

/* خلي المحتوى يتمدّد وياخذ الفراغ */
main {
    flex: 1 0 auto;
}

a {
    color: inherit;
}

.container {
    width: 1180px;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 15px;
}

/* ====== HEADER ====== */

.top-header {
    background: #ffffff;
    border-bottom: 1px solid #eee;
}

.header-inner {
    padding-top: 20px;
    padding-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;

    position: relative; /* ضروري لتموضع زر الهامبرجر */
}

.logo img {
    height: 90px;
    width: auto;
    display: block;
}

/* القائمة الرئيسية في الديسكتوب */
.main-nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.main-nav > a,
.main-nav > .nav-item > a {
    font-size: 13px;
    text-decoration: none;
    color: #333;
}

.main-nav > a:hover,
.main-nav > .nav-item > a:hover {
    color: #0064c8;
}

/* عناصر تحتوي على ميجا منيو */
.nav-item {
    position: relative;
}

/* صندوق الميجا منيو (القائمة + الصورة) في الديسكتوب */
.mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 8px;
    background: #ffffff;
    border: 1px solid #eee;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    padding: 16px 18px;
    min-width: 460px;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 18px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: 0.18s ease;
    z-index: 900;
}

/* روابط الميجا منيو */
.mega-menu-links a {
    display: block;
    padding: 6px 0;
    font-size: 13px;
    color: #333;
    text-decoration: none;
}
.mega-menu-links a:hover {
    color: #0064c8;
}

/* صورة الميجا منيو */
.mega-menu-image img {
    width: 100%;
    height: 140px;
    object-fit: cover;
}

/* إظهار الميجا منيو عند مرور الماوس في الديسكتوب */
.nav-item:hover > .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.home-hero--video {
    position: relative;
    min-height: 70vh;
    color: #f9fafb;
    overflow: hidden;
}

/* فيديو الخلفية */
.home-hero--video .home-hero-media {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.home-hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* احتفظ بالفيديو بنفس نسبة العرض إلى الارتفاع */
}

/* تدرّج فوق الفيديو */
.home-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(15, 23, 42, 0.55),
        rgba(15, 23, 42, 0.25),
        rgba(15, 23, 42, 0.75)
    );
}

/* الحاوية الداخلية */
.home-hero-inner {
    position: relative;
    z-index: 2;
    min-height: 70vh;
    display: flex;
    align-items: flex-end !important; /* تأكيد أنه تحت */
    justify-content: flex-start !important;
}

/* نستخدم هذه مع الـ section */
.home-hero-inner--single {
    justify-content: flex-start !important;
}

/* حركة تلاشي ناعمة */
@keyframes heroSoftFade {
    0%, 8% {
        opacity: 0;
        transform: translateY(10px);
    }
    15%, 80% {
        opacity: 1;
        transform: translateY(0);
    }
    90%, 100% {
        opacity: 0;
        transform: translateY(6px);
    }
}

.home-hero-col--left {
    max-width: 520px;
    margin-bottom: 40px;
    margin-left: 40px;
    animation: heroSoftFade 16s ease-in-out infinite;
    text-align: left;
}

/* أحجام خط صغيرة كما طلب العميل */
.home-hero-kicker {
    font-size: 12px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    opacity: 0.9;
}

.home-hero-title {
    margin-top: 4px;
    font-size: 24px;
    line-height: 1.35;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.home-hero-sub {
    margin-top: 4px;
    font-size: 12px;
    letter-spacing: 0.16em;
}

.home-hero-desc {
    margin-top: 8px;
    font-size: 12px;
    line-height: 1.7;
    opacity: 0.9;
}

.home-hero-meta {
    margin-top: 10px;
    font-size: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
    opacity: 0.9;
}

.home-hero-meta i {
    margin-right: 4px;
}

/* ===== RESPONSIVE ===== */

/* الجوال - النص في المنتصف */
@media (max-width: 768px) {

    .home-hero-inner {
        justify-content: center !important;
        align-items: flex-end !important;
    }

    .home-hero-col--left {
        text-align: center;
        max-width: 100%;
        margin: 0 0 30px;
    }

    .home-hero-title {
        font-size: 15px;
    }

    .home-hero-sub {
        font-size: 11px;
    }

    .home-hero-desc {
        font-size: 11px;
    }

    .home-hero-meta {
        justify-content: center;
        font-size: 12px;
        margin-bottom: 10px;
    }
}

/* ===== Fix HERO container alignment (Osoul Albinaa) ===== */

/* فكّ التوسيط عن container فقط داخل الهيرو */
.home-hero-inner.container {
    max-width: 100% !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 40px !important;
    padding-right: 40px !important;
}

/* على الشاشات الكبيرة: النص يلتصق باليسار */
@media (min-width: 992px) {
    .home-hero-inner--single {
        justify-content: flex-start !important;
        align-items: flex-end !important;
    }

    .home-hero-col--left {
        text-align: left !important;
        margin-left: 0 !important;
        margin-bottom: 50px;
        max-width: 520px;
    }
}

/* على الموبايل النص يبقى في المنتصف */
@media (max-width: 991px) {
    .home-hero-col--left {
        text-align: center !important;
        margin: 0 auto !important;
    }
}


/* ====== Generic sections ====== */

.section {
    padding: 50px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 25px;
}

.section-sub {
    font-size: 13px;
    letter-spacing: 1px;
}

.section-title-right h2,
.section-title-main {
    font-size: 24px;
}

.section-sub-2 {
    margin-top: 4px;
    color: #777;
}

/* ====== Products Center (WE CAN PROVIDE YOU) ====== */

.section-products-center {
    padding: 40px 0 60px;
}

.section-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.section-title-row .section-sub {
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #666;
}

.section-title-row h2 {
    font-size: 22px;
    font-weight: 700;
    margin-top: 4px;
}

.btn-main--small {
    padding: 6px 18px;
    font-size: 13px;
    border-radius: 20px;
}

.plus-circle {
    display: inline-block;
    margin-left: 6px;
    font-weight: bold;
}

/* شبكة المنتجات في Products Center */

.products-center-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 30px;
}

.prod-center-card {
    text-align: center;
}

.prod-center-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* صندوق الصورة */
.prod-center-img-wrap {
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #eee;
    padding: 10px 15px;
    height: 160px; /* عدّل الارتفاع لو حاب يكبر/يصغر */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.prod-center-img-wrap img {
    max-width: 100%;
    max-height: 100%;
    display: block;
    transition: transform 0.25s ease;
}

/* تكبير خفيف عند مرور الماوس */
.prod-center-card:hover .prod-center-img-wrap {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.16);
}

.prod-center-card:hover .prod-center-img-wrap img {
    transform: scale(1.06);
}

/* المستطيل الأزرق تحت الصورة */
.prod-center-name {
    margin-top: 8px;
    background: #004f9e;
    color: #fff;
    font-size: 13px;
    padding: 8px 4px;
    border-radius: 4px;
}

/* ====== Home products center (القديمة – لو محتاجها) ====== */

.home-products-center {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 16px 26px;
}

.home-product-box {
    background: #f7f7f7;
    padding: 22px 30px;
    min-height: 110px;
}

.home-product-box h3 {
    font-size: 14px;
    margin-bottom: 18px;
}

.home-product-more {
    font-size: 12px;
    text-decoration: none;
}

/* ====== About home block ====== */

.section-about {
    background: #fafafa;
}

.about-home-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 26px;
    align-items: center;
}
.about-home-logos img {
    height: 40px;
    margin-right: 12px;
}
.btn-main {
    display: inline-block;
    background: linear-gradient(180deg, #00204a, #00152f);
    color: #fff;
    padding: 8px 18px;
    font-size: 13px;
    text-decoration: none;
    border-radius: 100px;
    border: none;
    cursor: pointer;
}

.btn-main.small {
    padding: 6px 14px;
}

/* ====== Topfix products grid ====== */

.topfix-products-grid {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 20px;
}

.topfix-card {
    background: linear-gradient(180deg, #00204a, #00152f);
    color: #fff;
    border-radius: 4px;
    overflow: hidden;
}

.topfix-card-image {
    height: 220px; /* اضبط الارتفاع حسب ما تريد */
    overflow: hidden;
    border-bottom: 1px solid #e5e7eb;
    border-radius: 12px 12px 0 0;
}

.topfix-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* منع القص */
    background: #fff;
    padding: 8px;
}

.topfix-card-body {
    padding: 16px 18px 14px;
}
.topfix-card-body h3 {
    color: #111;           /* لون غامق وواضح */
    font-weight: 700;
    text-align: center;
    padding-top: 10px;
    font-size: 1rem;
}

/* ====== headline products ====== */

.home-headline-products {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 30px;
}

.headline-card {
    flex: 1;
}

.headline-image img {
    width: 100%;
    height: 120px;
    object-fit: contain;
}

.headline-caption {
    background: linear-gradient(180deg, #00204a, #00152f);
    color: #fff;
    text-align: center;
    padding: 7px 5px;
    font-size: 13px;
}

/* ====== Blog strip ====== */

.blog-strip {
    margin-top: 15px;
}

.blog-item {
    display: flex;
    padding: 16px 20px;
    background: #f7f7f7;
    margin-bottom: 10px;
}

.blog-date {
    width: 70px;
    font-size: 13px;
}

.blog-content {
    flex: 1;
}

.blog-title {
    text-decoration: none;
    font-weight: 600;
}

.blog-title:hover {
    text-decoration: underline;
}

/* ====== Products page ====== */

.products-page {
    padding: 40px 0 50px;
}

.products-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 30px;
}

.products-sidebar {
    background: #f7f7f7;
    padding-bottom: 20px;
}

.sidebar-title {
    background: linear-gradient(180deg, #00204a, #00152f);
    color: #fff;
    padding: 12px 18px;
    margin: 0;
}

.sidebar-parent {
    width: 100%;
    text-align: left;
    padding: 9px 18px;
    border: none;
    background: #f7f7f7;
    font-size: 13px;
    cursor: pointer;      /* كان default */
    font-weight: 600;
}

.sidebar-parent::after {
    content: "▼";
    float: right;
    font-size: 10px;
    opacity: 0.6;
}

.sidebar-parent.is-open::after {
    content: "▲";
}

.sidebar-children {
    list-style: none;
    padding: 0 0 5px 0;
    margin: 0;
    display: none;       /* مخفية افتراضياً */
}

.sidebar-children.is-open {
    display: block;      /* تظهر عند الفتح */
}
.sidebar-children li a {
    display: block;
    padding: 6px 26px;
    font-size: 13px;
    text-decoration: none;
    color: #333;
}

.sidebar-children li a:hover {
    background: #eaeaea;
}

.products-main-title {
    font-size: 18px;
    margin-bottom: 18px;
}
.products-grid {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 20px;
}

.product-card {
    border: 1px solid #eee;
    background: #fafafa;
    text-align: center;
    padding-bottom: 10px;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.product-image img {
    width: 100%;
    height: 150px;
    object-fit: contain;
    transition: transform 0.25s ease;
}

.product-name {
    font-size: 13px;
    padding: 8px 6px 6px;
    color: #222;
}
/* تأثير الهوفر – تكبير الصورة وتغيير لون الاسم */
.product-card:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    transform: translateY(-3px);
}

.product-card:hover .product-image img {
    transform: scale(1.06);
}

.product-card:hover .product-name {
    color: #0056b3;
}

/* ===== Product detail modern ===== */
.product-detail--modern {
    padding: 40px 0 60px;
}

.product-detail-top {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 26px;
    align-items: flex-start;
}

/* معرض الصور الصغير */
.product-gallery-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
}

.gallery-thumb {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
    background: #fff;
}

.gallery-thumb:hover {
    transform: scale(1.06);
    box-shadow: 0 6px 16px rgba(0,0,0,0.18);
}

.gallery-thumb.active {
    border-color: #004f9e;
}

/* عارض الصورة الرئيسي */
.product-img-viewer {
    background: radial-gradient(circle at top, #ffffff 0, #f2f4f8 55%, #e5e8f0 100%);
    border-radius: 22px;
    box-shadow: 0 18px 45px rgba(0,0,0,0.16);
    padding: 26px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 320px;
}

.product-zoom-img {
    max-width: 100%;
    max-height: 360px;
    object-fit: contain;
    transition: transform .25s ease, transform-origin .25s ease;
}

.product-zoom-img.zoomed {
    transform: scale(1.8);
}

/* معلومات المنتج */
.product-info-modern {
    padding: 10px 8px;
}

.product-info-modern h2 {
    font-size: 24px;
    margin-bottom: 6px;
}

.product-meta {
    font-size: 13px;
    color: #666;
    margin-bottom: 14px;
}

.product-meta i {
    margin-right: 6px;
}

.product-desc {
    font-size: 14px;
    color: #444;
    line-height: 1.7;
    margin-bottom: 16px;
}

.btn-modern {
    margin-top: 4px;
    padding-inline: 26px;
}

/* جدول المواصفات */
.product-spec-section {
    margin-top: 40px;
}

.spec-title {
    font-size: 18px;
    margin-bottom: 12px;
}

.modern-table-wrapper {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 26px rgba(0,0,0,0.08);
    background: #fff;
}

.modern-table th {
    background: linear-gradient(180deg, #00204a, #00152f);
    color: #fff;
    font-weight: 600;
    font-size: 13px;
}

.modern-table td {
    font-size: 13px;
}

/* Prev / Next */
.modern-prev-next {
    margin-top: 18px;
    display: flex;
    justify-content: space-between;
    font-size: 13px;
}

.modern-prev-next a {
    text-decoration: none;
    color: #004f9e;
}

.modern-prev-next a:hover {
    text-decoration: underline;
}

/* Related modern */
.related-modern-section {
    margin-top: 40px;
}

.related-modern-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 16px;
}

.related-modern-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #f7f7f7;
    border-radius: 12px;
    padding: 12px 10px;
    text-decoration: none;
    color: inherit;
    transition: transform .2s ease, box-shadow .2s ease;
}

.related-modern-card img {
    width: 100%;
    height: 120px;
    object-fit: contain;
    margin-bottom: 6px;
}

.related-modern-card span {
    font-size: 13px;
    text-align: center;
}

.related-modern-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.12);
}

/* موبايل */
@media (max-width: 768px) {
    .product-detail-top {
        grid-template-columns: 1fr;
    }
}


/* ====== News list / detail ====== */

.news-page,
.news-detail-page {
    padding: 35px 0 50px;
}
.breadcrumb-simple {
    font-size: 12px;
    color: #777;
    margin-bottom: 20px;
}

.breadcrumb-simple a {
    color: #777;
    text-decoration: none;
}

.news-list-section {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* كل سطر خبر */
.news-item {
    background: #f7f7f7;
    padding: 12px 20px;
    font-size: 14px;
}

/* الأزرق فقط عند مرور الماوس */
.news-item:hover {
    background: linear-gradient(180deg, #00204a, #00152f);
    color: #fff;
}

.news-item:hover .news-title,
.news-item:hover .news-excerpt,
.news-item:hover .news-item-date {
    color: #fff !important;
}



.news-item-date {
    font-size: 13px;
    margin-bottom: 4px;
}

.news-title {
    display: block;
    font-weight: 600;
    text-decoration: none;
    margin-bottom: 3px;
    color: #222;
}

.news-title:hover {
    text-decoration: underline;
}

.news-excerpt {
    font-size: 13px;
    color: #0a2e7c;
}

/* ====== News detail layout ====== */

.news-detail-wrapper {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 40px;
}

.news-detail-title {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 10px;
}

.news-release-time {
    color: linear-gradient(180deg, #00204a, #00152f);
    font-size: 14px;
    margin-bottom: 20px;
}

.news-inner-image img {
    width: 100%;
    margin: 20px 0;
    border-radius: 6px;
}

.news-body {
    line-height: 1.9;
    font-size: 15px;
    color: #333;
}

.news-prev-next {
    margin-top: 30px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    font-size: 13px;
}

.news-prev-next a {
    color: #0056b3;
    text-decoration: none;
}

.news-prev-next a:hover {
    text-decoration: underline;
}
.news-sidebar {
    border-left: 1px solid #eee;
    padding-left: 20px;
}

.related-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
}

.related-news-list {
    list-style: none;
    padding-left: 0;
}

.related-news-list li {
    margin-bottom: 8px;
}
.related-news-list a {
    color: #222;
    text-decoration: none;
    font-size: 14px;
}

.related-news-list a:hover {
    color: #0056b3;
}

/* موبايل */
@media (max-width: 768px) {
    .news-detail-wrapper {
        grid-template-columns: 1fr;
    }

    .news-sidebar {
        border-left: none;
        padding-left: 0;
        margin-top: 25px;
    }
}

/* =========================================================
   CONTACT PAGE – PREMIUM BLUE THEME (OSOUL ALBINAA)
   ========================================================= */

.contact-page {
    padding: 50px 0 70px;
}

/* ===== SECTION TITLE ===== */
.contact-title {
    text-align: center;
    font-size: 26px;
    font-weight: 700;
    color: #00204a;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.contact-form-line {
    width: 70px;
    height: 3px;
    background: #f7b500; /* ذهبي فاخر */
    margin: 0 auto 30px;
    border-radius: 3px;
}

/* =========================================================
   CONTACT BOXES (Phone – Email – Address)
   ========================================================= */
.contact-box-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 22px;
    margin-bottom: 40px;
}

.contact-box {
    background: #ffffff;
    padding: 30px 20px;
    border-radius: 14px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    border: 1px solid #e5e7eb;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.contact-box:hover {
    transform: translateY(-6px);
    border-color: #00204a;
    box-shadow: 0 18px 40px rgba(0,0,0,0.15);
}

/* ICON */
.contact-box-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: #00204a;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 18px rgba(0,32,74,0.25);
}

.contact-box-icon i {
    font-size: 28px;
    color: #fff;
}

/* TITLE + TEXT */
.contact-box h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    color: #00204a;
    margin-bottom: 6px;
}

.contact-box p {
    margin: 0;
    font-size: 14px;
    color: #4b5563;
}

/* =========================================================
   CONTACT FORM
   ========================================================= */
.contact-main-form--card {
    background: #ffffff;
    padding: 28px 26px;
    border-radius: 16px;
    max-width: 700px;
    margin: 0 auto;
    box-shadow: 0 12px 40px rgba(0,0,0,0.08);
    border: 1px solid #e5e7eb;
}

.contact-two-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.contact-main-form input,
.contact-main-form textarea,
.contact-main-form select {
    width: 100%;
    border: 1px solid #cbd5e1;
    padding: 10px 12px;
    font-size: 14px;
    border-radius: 10px;
    outline: none;
    transition: border-color 0.22s ease, box-shadow 0.22s ease;
}

/* Focus */
.contact-main-form input:focus,
.contact-main-form textarea:focus,
.contact-main-form select:focus {
    border-color: #00204a;
    box-shadow: 0 0 0 3px rgba(0,32,74,0.12);
}

/* Textarea */
.contact-main-form textarea {
    resize: vertical;
    min-height: 120px;
}

/* Button */
.contact-main-form button.btn-main {
    width: 180px;
    background: #00204a;
    color: #fff;
    border-radius: 50px;
    padding: 10px 20px;
    margin-top: 8px;
    font-size: 14px;
    letter-spacing: 0.5px;
    border: none;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.25s ease;
}

.contact-main-form button.btn-main:hover {
    background: #003b7a;
    transform: translateY(-3px);
}

/* Success / Error message */
.contact-status {
    margin: 8px 0 14px;
    padding: 10px 14px;
    border-radius: 10px;
    text-align: center;
    font-size: 14px;
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #34d399;
}

/* =========================================================
   MOBILE
   ========================================================= */
@media (max-width: 600px) {
    .contact-two-cols {
        grid-template-columns: 1fr;
    }

    .contact-main-form--card {
        padding: 20px;
    }

    .contact-box-icon {
        width: 60px;
        height: 60px;
    }

    .contact-box-icon i {
        font-size: 24px;
    }
}

/* ====== Footer ====== */

/* =========================================================
   PREMIUM DARK BLUE FOOTER – RESPONSIVE + CLEAN
   ========================================================= */

.site-footer {
    background: linear-gradient(180deg, #00152f, #00204a);
    color: #e5e7eb;
    padding: 55px 0 25px;
    font-size: 14px;
    margin-top: 40px;
}

/* شبكة الأعمدة */
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 40px;
    align-items: flex-start;
}

/* عناوين الأعمدة */
.footer-title {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 14px;
    color: #ffffff;
    position: relative;
}

.footer-title::after {
    content: "";
    width: 46px;
    height: 2px;
    background: rgba(255,255,255,0.25);
    display: block;
    margin-top: 6px;
    border-radius: 3px;
}

/* ===== LEFT COLUMN – CONTACT FORM ===== */

.footer-form input,
.footer-form textarea {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.06);
    font-size: 13px;
    color: #fff;
    outline: none;
    transition: border 0.25s ease, background 0.25s ease;
}

.footer-form input::placeholder,
.footer-form textarea::placeholder {
    color: #9ca3af;
}

.footer-form input:focus,
.footer-form textarea:focus {
    border-color: #38bdf8;
    background: rgba(255,255,255,0.12);
}

.footer-submit {
    margin-top: 10px;
    padding: 10px 20px;
    border-radius: 999px;
    background: #38bdf8;
    color: #00121f;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: transform .22s, box-shadow .22s;
}

.footer-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(56,189,248,0.4);
}

/* ===== CENTER COLUMN – LINKS ===== */

.footer-links ul { padding: 0; margin: 0; list-style: none; }

.footer-links li { margin-bottom: 8px; }

.footer-links a {
    color: #e5e7eb;
    font-size: 14px;
    opacity: 0.85;
    transition: color 0.22s ease, transform 0.22s ease;
}

.footer-links a:hover {
    color: #38bdf8;
    transform: translateX(4px);
}

/* ===== RIGHT COLUMN – CONTACT INFO ===== */

.footer-contact ul { list-style: none; padding: 0; }

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0.9;
    margin-bottom: 10px;
    font-size: 14px;
}

.footer-contact i {
    color: #38bdf8;
    font-size: 16px;
}

/* ===== BOTTOM ===== */

.footer-bottom {
    margin-top: 32px;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.15);
    text-align: center;
    font-size: 13px;
    opacity: 0.75;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 24px;
    }

    .footer-title::after {
        margin-left: auto;
        margin-right: auto;
    }

    .footer-contact li {
        justify-content: center;
    }

    .footer-submit {
        margin-left: auto;
        margin-right: auto;
    }
}

/* --- Right toolbar general --- */
.right-toolbar {
    position: fixed;
    right: 18px;
    top: 35%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 9999;
}

.tool-icon {
    background: #0f172a;
    padding: 12px 14px;
    border-radius: 10px;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    border: 1px solid rgba(255,255,255,0.15);
    transition: all .25s ease;
    position: relative;
}

.tool-icon:hover {
    background: #1e293b;
    transform: translateY(-3px);
}

/* Tooltip */
.tool-tooltip {
    position: absolute;
    right: 46px;
    top: 50%;
    transform: translateY(-50%);
    background: #0b1120;
    padding: 6px 10px;
    font-size: 12px;
    color: #fff;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all .2s ease;
    border: 1px solid rgba(255,255,255,0.1);
}

.tool-icon:hover .tool-tooltip {
    opacity: 1;
    right: 52px;
}

/* --- Phone Popup --- */
.phone-popup {
    position: fixed;
    right: 75px;
    top: 48%;
    background: #0b1120;
    padding: 15px 18px;
    width: 210px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 15px 35px rgba(0,0,0,0.45);
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: all .25s ease;
    z-index: 9999;
}

.phone-popup.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.phone-number {
    color: #fff;
    font-size: 17px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 12px;
}

.phone-actions {
    display: flex;
    gap: 8px;
}

.phone-btn {
    flex: 1;
    padding: 7px 10px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    display: flex;
    gap: 6px;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    border: none;
}

.call-btn {
    background: #16a34a;
    color: #fff;
}

.copy-btn {
    background: #1e40af;
    color: #fff;
}

.phone-btn:hover {
    opacity: .85;
}

/* ====== About / tabs ====== */

.about-page {
    padding: 35px 0 55px;
}

.about-section {
    margin-top: 20px;
}

.about-title {
    font-size: 22px;
    margin-bottom: 18px;
}

/* التبويبات */
.about-tabs-wrapper {
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}

.about-tabs {
    list-style: none;
    padding-left: 0;
    margin: 0;
    display: flex;
}
.about-tabs li a {
    display: block;
    padding: 10px 26px;
    font-size: 14px;
    text-decoration: none;
    background: #f7f7f7;
    border-right: 1px solid #e0e0e0;
    color: #333;
}

.about-tabs li.is-active a {
    background: linear-gradient(180deg, #00204a, #00152f);
    color: #fff;
}

/* النص والصور في Profile */
.about-text-block p {
    margin-bottom: 12px;
    line-height: 1.6;
}

.about-image-large img {
    width: 100%;
    height: auto;
    margin-top: 20px;
}

/* ============ Credentials ============ */

.credentials-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

/* كرت الشهادة */
.credential-card {
    background: #f7f7f7;
    text-align: center;
    padding: 10px 10px 12px;
    transition: 0.2s;
}

/* إطار للصورة عشان كلها تكون نفس الشكل */
.credential-image {
    background: #fff;
    height: 320px;              /* ثبات الارتفاع */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

/* الصورة نفسها */
.credential-image img {
    max-height: 100%;
    width: auto;
    display: block;
}

/* عنوان تحت الصورة */
.credential-caption {
    padding-top: 8px;
    font-size: 13px;
    color: #333;
}

/* تأثير الهـوفر مثل الموقع الأصلي */
.credential-card:hover {
    background: linear-gradient(180deg, #00204a, #00152f);
    color: #fff;
    cursor: pointer;
}

.credential-card:hover .credential-caption {
    color: #fff;
}

.credential-card:hover .credential-image {
    opacity: 0.9;
}

/* ===== popup لتكبير الصورة ===== */

.popup-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0,0,0,0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 99999;
}

.popup-img {
    max-width: 80%;
    max-height: 80%;
    border-radius: 8px;
}

/* موبايل: خليهم عمودين */
@media (max-width: 768px) {
    .credentials-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        justify-items: center;
    }
}

/* ===== WORKSHOP GALLERY ===== */

.workshop-page {
    margin-top: 24px;
}

.workshop-header {
    margin-bottom: 18px;
}

.workshop-sub {
    font-size: 0.95rem;
    color: #4b5563;
    max-width: 520px;
}

/* شبكة الكروت */
.workshop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

.ws-card {
    position: relative;
    border: none;
    padding: 0;
    background: transparent;
    cursor: pointer;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(15,23,42,0.18);
    transform: translateY(0);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ws-card.is-hidden {
    display: none;
}

.ws-card-img {
    width: 100%;
    height: 180px;
    background: #000;
}

.ws-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ws-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15,23,42,0.82), rgba(15,23,42,0.05));
    color: #e5e7eb;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 12px 14px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.ws-card-title {
    font-size: 0.9rem;
    font-weight: 600;
}

.ws-card-zoom {
    font-size: 0.78rem;
    margin-top: 4px;
    opacity: 0.85;
}

.ws-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(15,23,42,0.35);
}

.ws-card:hover .ws-card-overlay {
    opacity: 1;
}

/* زر Load more */
.workshop-more-wrap {
    margin-top: 20px;
    text-align: center;
}

/* ===== Lightbox ===== */

.ws-lightbox {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.ws-lightbox.is-open {
    display: flex;
}

.ws-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15,23,42,0.75);
    backdrop-filter: blur(4px);
}

.ws-lightbox-inner {
    position: relative;
    z-index: 1;
    max-width: 900px;
    width: 90%;
    background: #020617;
    border-radius: 18px;
    padding: 18px 18px 16px;
    box-shadow: 0 24px 60px rgba(0,0,0,0.6);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ws-lightbox-img-wrap {
    width: 100%;
    max-height: 520px;
    border-radius: 16px;
    overflow: hidden;
    background: #000;
}

.ws-lightbox-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.ws-caption {
    color: #e5e7eb;
    font-size: 0.9rem;
}

/* أزرار التحكم */
.ws-close,
.ws-prev,
.ws-next {
    position: absolute;
    border: none;
    background: rgba(15,23,42,0.9);
    color: #e5e7eb;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.18s ease, transform 0.18s ease;
}

.ws-close {
    top: 10px;
    right: 10px;
    font-size: 16px;
}

.ws-prev {
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
}

.ws-next {
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
}

.ws-close:hover,
.ws-prev:hover,
.ws-next:hover {
    background: #facc15;
    color: #111827;
}

.ws-close:hover {
    transform: scale(1.05);
}

/* Pagination for Workshop gallery */
.ws-pager {
    margin-top: 18px;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.ws-page-btn {
    min-width: 32px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid #d1d5db;
    background: #ffffff;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease,
                transform 0.18s ease;
}

.ws-page-btn:hover {
    background: #f3f4f6;
    transform: translateY(-1px);
}

.ws-page-btn.is-active {
    background: #00204a;
    color: #ffffff;
    border-color: #00204a;
}

/* إخفاء الكروت خارج الصفحة الحالية */
.ws-card.is-hidden {
    display: none;
}

/* موبايل */
@media (max-width: 768px) {
    .ws-lightbox-inner {
        padding: 14px;
    }

    .ws-lightbox-img-wrap {
        max-height: 70vh;
    }
}

/* ====== زر الهامبرجر ====== */
.nav-toggle {
    display: none;          /* يظهر فقط في الشاشات الصغيرة */
    width: 34px;
    height: 26px;
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
    position: absolute;
    right: 15px;
    top: 18px;
    z-index: 1001;
}

.nav-toggle span {
    position: absolute;
    left: 0;
    right: 0;
    height: 3px;
    background: #00204a;
    border-radius: 3px;
    transition: 0.25s;
}
.nav-toggle span:nth-child(1) { top: 3px; }
.nav-toggle span:nth-child(2) { top: 11px; }
.nav-toggle span:nth-child(3) { top: 19px; }

.nav-toggle.is-open span:nth-child(1) {
    top: 11px;
    transform: rotate(45deg);
}
.nav-toggle.is-open span:nth-child(2) {
    opacity: 0;
}
.nav-toggle.is-open span:nth-child(3) {
    top: 11px;
    transform: rotate(-45deg);
}

/* ====== وضع الموبايل للقائمة الرئيسية والميجا منيو ====== */

@media (max-width: 992px) {

    .header-inner {
        padding: 10px 0;
    }

    .nav-toggle {
        display: block;
    }

    .main-nav {
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: #ffffff;
        flex-direction: column;
        align-items: flex-start;
        padding: 8px 0;
        border-top: 1px solid #eee;
        box-shadow: 0 4px 12px rgba(0,0,0,0.08);
        display: none;          /* مخفية افتراضياً */
        z-index: 1000;
    }

    .main-nav.is-open {
        display: flex;          /* تظهر لما نضيف is-open من الجافاسكربت */
    }

    .main-nav > a,
    .main-nav > .nav-item > a {
        width: 100%;
        margin-left: 0;
        padding: 10px 18px;
        font-size: 14px;
        border-top: 1px solid #f1f1f1;
    }

    .main-nav > a:first-child {
        border-top: none;
    }

    /* الميجا منيو في الموبايل تظهر كقائمة فرعية */
    .nav-item {
        width: 100%;
    }

    .has-megamenu .mega-menu {
        position: static;
        box-shadow: none;
        border: none;
        padding: 4px 0 8px 24px;
        margin: 0;
        grid-template-columns: 1fr;
        min-width: auto;
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .mega-menu-image {
        display: none;
    }
}

/* ====== Product detail (zoom + prev/next) ====== */

/* الحاوية العامة لصفحة التفاصيل */
.product-detail-page {
    padding: 40px 0 60px;
}

/* تقسيم الصورة + المعلومات يمين/يسار */
.product-detail-top {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 30px;
}

/* حاوية الصورة مع الزوم */
.product-detail-gallery {
    position: relative;
    width: 100%;
    height: 320px;
    overflow: hidden;
    background: #f7f7f7;
    border: 1px solid #eee;
}

/* صورة المنتج */
.product-main-img {
    width: 100%;
    height: 260px;
    object-fit: contain;
    /* انتقال ناعم */
    transition: transform 0.25s ease, transform-origin 0.25s ease;
    cursor: zoom-in;
}

/* لما نكون في وضع الزوم تكبر الصورة أكثر شوي */
.js-zoom-wrap.is-zoomed .js-zoom-img {
    transform: scale(2.3); /* تقدر تخليها 2 أو 2.5 حسب الراحة */
}

/* عنوان المنتج */
.product-detail-info h1 {
    font-size: 22px;
}

/* عنوان جدول التفاصيل */
.product-table-section h2 {
    margin-top: 35px;
    margin-bottom: 12px;
}

/* لفّة للجدول لو الشاشة صغيرة */
.product-table-wrapper {
    overflow-x: auto;
}

/* تنسيق الجدول */
.product-table {
    width: 100%;
    border-collapse: collapse;
}

.product-table th,
.product-table td {
    border: 1px solid #ddd;
    padding: 8px 10px;
    font-size: 13px;
}

.product-table th {
    background: linear-gradient(180deg, #00204a, #00152f);
    color: #fff;
}

/* أزرار Previous / Next تحت الجدول */
.product-prev-next {
    margin-top: 15px;
    display: flex;
    justify-content: space-between;
    font-size: 13px;
}

.product-prev-next a {
    text-decoration: none;
    color: #0056b3;
}

.product-prev-next a:hover {
    text-decoration: underline;
}
/* عنوان قسم المنتجات ذات الصلة */
.related-products h2 {
    margin-top: 35px;
    margin-bottom: 15px;
}
/* شبكة المنتجات ذات الصلة */
.related-grid {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 18px;
}

.related-card {
    text-align: center;
    background: #f7f7f7;
    padding-bottom: 8px;
}

.related-image img {
    width: 100%;
    height: 135px;
    object-fit: contain;
}


/* ========== GENERAL HOME SECTIONS ========== */

.home-page {
    background-color: #f7f7f9;
}

.home-section {
    padding: 60px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 32px;
}

.section-header h2 {
    font-size: 1.9rem;
    margin-bottom: 0.35rem;
}

.section-header p {
    max-width: 600px;
    margin: 0 auto;
    color: #666;
    font-size: 0.98rem;
}

.section-header--row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    text-align: left;
}

/* ========== PRODUCT SYSTEMS GRID ========== */

.home-systems-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.home-system-card {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    border: 1px solid #eee;
    box-shadow: 0 10px 20px rgba(0,0,0,0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    text-decoration: none;
    color: inherit;
}

.home-system-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 35px rgba(0,0,0,0.08);
    border-color: #c2992d;
}

.home-system-icon {
    margin-bottom: 12px;
    height: 120px;
    overflow: hidden;
    border-radius: 10px;
}

.home-system-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-system-card h3 {
    font-size: 1.05rem;
    margin-bottom: 0.4rem;
}

.inner-banner {
    position: relative;
    background: linear-gradient(180deg, #00204a, #00152f);
    color: #fff;
    padding: 60px 0;
}
.inner-banner-overlay {
    position: absolute;
    inset: 0;
    opacity: 0.3;
    background: #000;
}

.inner-banner-content {
    position: relative;
    z-index: 1;
}

.inner-banner-content h1 {
    font-size: 30px;
    letter-spacing: 3px;
    margin: 0 0 8px;
}

.inner-banner-content p {
    margin: 0;
    font-size: 14px;
    letter-spacing: 1px;
}

/* لو حبيت تخصص لكل صفحة */
.inner-banner--about { }
.inner-banner--news { }
.inner-banner--contact { }

.about-profile-layout {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 32px;
    align-items: center;
}

.about-profile-text p {
    margin-bottom: 12px;
    line-height: 1.7;
}

.about-profile-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}

/* أرقام الإحصائيات */
.about-highlights {
    display: flex;
    gap: 22px;
    margin-top: 18px;
}

.about-highlight-item {
    background: #f5f7fb;
    padding: 12px 16px;
    border-radius: 8px;
    min-width: 110px;
    text-align: center;
}

.ahi-number {
    font-size: 22px;
    font-weight: 700;
    color: #00204a;
}

.ahi-label {
    font-size: 12px;
    color: #555;
}

/* why choose */
.about-why {
    margin-top: 40px;
}

.about-why h3 {
    font-size: 18px;
    letter-spacing: 2px;
    margin-bottom: 14px;
}

.about-why-grid {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 18px;
}

.about-why-item {
    background: #f7f7f7;
    padding: 14px 16px;
    border-radius: 6px;
    font-size: 13px;
}

.about-why-item h4 {
    margin-top: 0;
    margin-bottom: 6px;
    font-size: 14px;
}

/* موبايل */
@media (max-width: 768px) {
    .about-profile-layout {
        grid-template-columns: 1fr;
    }
    .about-why-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.contact-box--accent {
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    border: 1px solid #e6e6e6;
}

.contact-box-icon {
    font-size: 26px;
    margin-bottom: 8px;
    color: #00204a;
}

.contact-two-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.contact-main-form--card {
    background: #ffffff;
    border-radius: 10px;
    padding: 20px 22px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.contact-box h3 {
    color: #111;
}

.contact-box p {
    color: #333;
    margin: 0;
}

.contact-main-form--card input,
.contact-main-form--card select,
.contact-main-form--card textarea {
    background: #ffffff;
    color: #111;
    border: 1px solid #ddd;
}

.contact-main-form--card input::placeholder,
.contact-main-form--card textarea::placeholder {
    color: #888;
}


/* ====== HOME – FEATURES ====== */

.home-section--alt {
    background: #f2f5fb;
}

.home-features-grid {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 20px;
}

.home-feature-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 18px 16px 20px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 8px 20px rgba(0,0,0,0.04);
}

.home-feature-icon {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #00204a;
    color: #fff;
    margin-bottom: 10px;
    font-size: 15px;
}

.home-feature-card h3 {
    font-size: 13px;
    letter-spacing: 0.16em;
    margin: 0 0 6px;
}

.home-feature-card p {
    font-size: 13px;
    margin: 0;
}

/* موبايل للميزات */
@media (max-width: 992px) {
    .home-features-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }
}
@media (max-width: 600px) {
    .home-features-grid {
        grid-template-columns: 1fr;
    }
}

/* ====== HOME – FEATURED PRODUCTS ====== */

.home-featured-grid {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 20px;
}

.home-featured-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 10px 26px rgba(0,0,0,0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.home-featured-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.08);
    border-color: #c2992d;
}

.home-featured-img {
    background: #f9fafb;
    padding: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-featured-img img {
    max-width: 100%;
    max-height: 140px;
}

.home-featured-body {
    padding: 12px 14px 14px;
}

.home-featured-body h3 {
    font-size: 13px;
    margin: 0 0 6px;
}
.home-featured-tag {
    display: inline-block;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 999px;
    background: #00204a;
    color: #fff;
}

/* موبايل للمنتجات المميزة */
@media (max-width: 992px) {
    .home-featured-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }
}
@media (max-width: 600px) {
    .home-featured-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== ABOUT + VIDEO (HOME) ===== */

.home-about-section {
    background: #fafafa;
}

.home-about-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr);
    gap: 32px;
    align-items: center;
}

.home-about-title {
    font-size: 24px;
    letter-spacing: 2px;
    margin: 8px 0 12px;
}

.home-about-lead {
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 8px;
}

.home-about-body {
    font-size: 14px;
    line-height: 1.8;
    color: #555;
}

.home-about-badges {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 16px 0 10px;
}

.home-about-badges img {
    height: 38px;
    object-fit: contain;
}

.home-about-btn {
    margin-top: 4px;
}

/* كرت الفيديو */
.home-about-video-card {
    position: relative;
}

.home-about-video-wrap {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
    background: #000;
}

.home-about-video {
    display: block;
    width: 100%;
    height: 320px;
    object-fit: cover;
}

/* شريط التنقّل فوق الفيديو */
.home-about-video-nav {
    position: absolute;
    left: 50%;
    bottom: 14px;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.82);
    backdrop-filter: blur(6px);
}

/* أزرار الأسهم */
.nav-circle {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.7);
    background: transparent;
    color: #e5e7eb;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.18s ease;
}

.nav-circle:hover {
    background: #e5e7eb;
    color: #111827;
}

/* النقاط */
.nav-dots {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.nav-dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    border: none;
    background: rgba(148, 163, 184, 0.7);
    cursor: pointer;
    transition: transform 0.18s ease, background 0.18s ease;
}

.nav-dot.is-active {
    background: #38bdf8;
    transform: scale(1.4);
}

.home-about-video-caption {
    margin-top: 10px;
    font-size: 13px;
    color: #666;
}

/* أزرار تقديم/ترجيع الفيديو */
.home-about-video-extra {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    font-size: 12px;
}

.home-about-video-extra .skip-btn {
    border: none;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    cursor: pointer;
    background: #00204a;
    color: #fff;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.home-about-video-extra .skip-btn:hover {
    background: #004f9e;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.18);
}

.home-about-video-extra .skip-label {
    color: #666;
}

/* موبايل */
@media (max-width: 992px) {
    .home-about-grid {
        grid-template-columns: 1fr;
    }

    .home-about-video {
        height: 260px;
    }
}

/* =========================================================
   HOME – LATEST NEWS (Ultra Premium Corporate Style)
   ========================================================= */

.home-news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    padding-top: 10px;
}

/* بطاقة الخبر */
.home-news-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 20px 20px 24px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 8px 18px rgba(15,23,42,0.06);
    font-size: 13px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
    overflow: hidden;
    transition:
        transform .25s ease,
        box-shadow .28s ease,
        border-color .25s ease,
        background-color .25s ease;
}

/* خط علوي متحرك */
.home-news-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: -50%;
    width: 200%;
    height: 3px;
    background: linear-gradient(120deg, #00204a, #2563eb);
    transform: translateX(-20%);
    transition: transform .35s ease;
}
.home-news-card:hover::before {
    transform: translateX(0);
}

/* تأثير زجاجي عند الهوفر */
.home-news-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(0px);
    opacity: 0;
    transition: opacity .3s ease, backdrop-filter .35s ease;
}
.home-news-card:hover::after {
    opacity: 1;
    backdrop-filter: blur(4px);
}

/* تاريخ */
.home-news-date {
    font-size: 11px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: .18em;
}

/* عنوان */
.home-news-card h3 {
    margin: 0;
    font-size: 15px;
    line-height: 1.45;
    font-weight: 700;
}

.home-news-card h3 a {
    color: #0f172a;
}
.home-news-card h3 a:hover {
    color: #2563eb;
}

/* نص مختصر */
.home-news-card p {
    margin: 0;
    color: #475569;
    font-size: 13px;
    line-height: 1.6;
}

/* Hover تأثير عالمي */
.home-news-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 46px rgba(15,23,42,0.18);
    border-color: #00204a;
}

/* حركة دخول */
.home-news-card {
    animation: fadeNewsUp .45s ease both;
}
@keyframes fadeNewsUp {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .home-news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }
}

@media (max-width: 600px) {
    .home-news-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .home-news-card {
        padding: 16px;
    }
}

/* ====== HOME – CTA STRIP ====== */

.home-cta-strip {
    background: linear-gradient(180deg, #00204a, #00152f);
    color: #ffffff;
    padding: 32px 0;
    margin-top: 10px;
}

.home-cta-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.home-cta-text h2 {
    margin: 0 0 6px;
    font-size: 20px;
}

.home-cta-text p {
    margin: 0;
    font-size: 13px;
}

.home-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.home-cta-mail {
    font-size: 13px;
    text-decoration: none;
    color: #e5e7eb;
}

.home-cta-mail i {
    margin-right: 4px;
}

.home-cta-mail:hover {
    text-decoration: underline;
}




/* =========================
   GLOBAL UPGRADE (BIG / PREMIUM FEEL)
   يُضاف في آخر base.css
   ========================= */

/* خلفية خفيفة وخط أنعم */
body {
    background-color: #f3f4f6;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
                 Arial, sans-serif;
    color: #111827;
}

/* كل السكاشن تصير أوسع وأفخم */
.section {
    padding: 70px 0;
}

.home-page .section:first-of-type {
    padding-top: 50px;
}

/* عناوين الأقسام */
.section-header h2,
.section-title-main {
    font-size: 2.1rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.section-sub {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: #6b7280;
}

.section-sub-2 {
    font-size: 0.9rem;
    color: #6b7280;
}


/* =========================
   BUTTONS لمسات فخمة
   ========================= */

.btn-main {
    border-radius: 999px;
    padding: 9px 22px;
    font-size: 0.88rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: 0 14px 35px rgba(0,0,0,0.22);
    transform: translateY(0);
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn-main:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 45px rgba(0,0,0,0.28);
}

/* نسخة صغيرة */
.btn-main--small {
    padding: 7px 18px;
    font-size: 0.8rem;
}

/* =========================
   CARDS (Products / We Can / Topfix / News / Contact)
   ========================= */

.headline-card,
.prod-center-card,
.topfix-card,
.news-item,
.contact-box,
.workshop-card,
.credential-card {
    border-radius: 14px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #ebe8e5;
    box-shadow: 0 10px 28px rgba(15,23,42,0.12);
    transform: translateY(0);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease,
                background 0.2s ease, color 0.2s ease;
}

/* نخلي التي في الأصل رمادية تبقى رمادية */
.news-item {
    background: #f7f7f7;
}

/* Hover عام للكروت */
.headline-card:hover,
.prod-center-card:hover,
.topfix-card:hover,
.news-item:hover,
.contact-box:hover,
.workshop-card:hover,
.credential-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(15,23,42,0.22);
    border-color: linear-gradient(180deg, #00204a, #00152f);
}

/* كروت المنتجات في صفحات المنتجات */
.product-card,
.related-card {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 26px rgba(15,23,42,0.08);
    transform: translateY(0);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.product-card:hover,
.related-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 32px rgba(15,23,42,0.18);
    border-color: #2563eb;
}

/* صورة headline */
.headline-image img {
    border-bottom: 1px solid #e5e7eb;
}

/* كروت WE CAN */
.prod-center-img-wrap {
    border-radius: 10px;
    background: #ffffff;
}

/* كروت TOPFIX */
.topfix-card-body h3 {
    font-size: 1rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* Blog strip أحلى شوية */
.blog-item {
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}
/* =========================
   ABOUT + VIDEO SECTION (لو استخدمت layout الجانبي)
   ========================= */

.about-profile-layout {
    background: #ffffff;
    border-radius: 18px;
    padding: 24px 24px;
    box-shadow: 0 18px 48px rgba(15,23,42,0.2);
}

.about-profile-text p {
    font-size: 0.95rem;
    color: #374151;
}

/* لو حاط الفيديو في نفس الشبكة جنب الـ about */
.about-profile-layout video,
.about-profile-layout .video-embed {
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(15,23,42,0.3);
}



/* =========================
   SMALL GLOBAL ANIMATION
   ========================= */

@keyframes fadeUpSoft {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.home-page .section {
    animation: fadeUpSoft 0.6s ease both;
}

/* تأخير بسيط لبعض السكاشن عشان الإحساس المتدرّج */
.home-page .section:nth-of-type(2) {
    animation-delay: 0.05s;
}
.home-page .section:nth-of-type(3) {
    animation-delay: 0.1s;
}
.home-page .section:nth-of-type(4) {
    animation-delay: 0.15s;
}


@media (max-width: 640px) {
    .section {
        padding: 50px 0;
    }

    .section-header h2,
    .section-title-main {
        font-size: 1.6rem;
    }
}

/* ABOUT block text – خلي النص واضح وقوي */
.about-home-text h3,
.about-home-text h2 {
    color: #111;           /* أسود غامق */
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-bottom: 10px;
}

.about-home-text p {
    color: #374151;        /* رمادي غامق وواضح */
    font-size: 15px;
    line-height: 1.9;
    font-weight: 500;
}

/* تأكد أن البلوك نفسه فوق أي أوفرلاي */
.about-home-text {
    position: relative;
    z-index: 2;
}
/* الشريط العلوي الكبير في صفحة HOME */
.home-side-brand {
    width: 40%;                 /* بدل 30% → عشان النص يدخل كامل */
    padding: 60px 40px;         /* يعطي مساحة للنص */
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
}

/* النص الكبير "TOPFIX MACHINERY MFG" */
.home-side-brand h1 {
    font-size: 48px;
    font-weight: 900;
    line-height: 1.1;
    color: #fff;
    text-transform: uppercase;
}

/* ===================== */
/*  TOUCHES FOR PRODUCTS */
/* ===================== */

/* --- Inner banners for products --- */
.inner-banner--products,
.inner-banner--product {
    position: relative;
    background: radial-gradient(circle at top, #00204a, #00152f);
    color: #fff;
    padding: 70px 0 60px;
    overflow: hidden;
}

.inner-banner--products::before,
.inner-banner--product::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 10% 0, rgba(255,255,255,0.18), transparent 55%);
    opacity: 0.4;
    pointer-events: none;
}

.inner-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(0,0,0,0.55), rgba(0,0,0,0.15));
    pointer-events: none;
}

.inner-banner-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.inner-banner-content h1 {
    margin: 0 0 6px;
    font-size: 28px;
    letter-spacing: 0.18em;
}

.inner-banner-content p {
    margin: 0;
    font-size: 13px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    opacity: 0.9;
}

/* --- Products page modern layout --- */
.products-page--modern {
    padding: 40px 0 55px;
}

.products-sidebar--modern {
    background: #0f172a;
    border-radius: 16px;
    padding-bottom: 16px;
    border: 1px solid rgba(148,163,184,0.5);
    box-shadow: 0 14px 40px rgba(15,23,42,0.6);
    color: #e5e7eb;
}

.products-sidebar--modern .sidebar-title {
    background: linear-gradient(120deg, #0369a1, #0f172a);
    border-radius: 16px 16px 0 0;
    padding: 14px 18px;
    font-size: 14px;
    letter-spacing: 0.16em;
}

.products-sidebar--modern .sidebar-parent {
    background: transparent;
    color: #e5e7eb;
    border-top: 1px solid rgba(31,41,55,0.8);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    font-size: 13px;
    transition: background .18s ease, color .18s ease;
}

.products-sidebar--modern .sidebar-parent i {
    font-size: 13px;
    opacity: 0.8;
}

.products-sidebar--modern .sidebar-parent:hover {
    background: rgba(30,64,175,0.6);
    color: #f9fafb;
}

.products-sidebar--modern .sidebar-children {
    background: #020617;
}

.products-sidebar--modern .sidebar-children li a {
    color: #e5e7eb;
    border-left: 2px solid transparent;
    display: flex;
    align-items: center;
    gap: 6px;
}

.products-sidebar--modern .sidebar-children li a i {
    font-size: 11px;
    opacity: 0.7;
}

.products-sidebar--modern .sidebar-children li a:hover {
    background: rgba(37,99,235,0.22);
    border-left-color: #38bdf8;
}

/* --- Products grid modern cards --- */
.products-modern-content {
    position: relative;
}

.products-modern-content .products-main-title {
    font-size: 20px;
    margin-bottom: 18px;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: #0f172a;
}

.products-grid--modern {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 20px;
}

@media (max-width: 1200px) {
    .products-grid--modern { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 992px) {
    .products-grid--modern { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 600px) {
    .products-grid--modern { grid-template-columns: 1fr; }
}

.product-card-modern {
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    box-shadow: 0 10px 26px rgba(15,23,42,0.10);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.product-card-modern a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.product-card-modern:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 45px rgba(15,23,42,0.18);
    border-color: rgba(37,99,235,0.7);
}

.product-card-img {
    padding: 14px;
    background: radial-gradient(circle at top,#eff6ff,#e0f2fe);
    display:flex;
    align-items:center;
    justify-content:center;
    min-height: 150px;
}

.product-card-img img {
    max-width: 100%;
    max-height: 140px;
    object-fit: contain;
}
.product-card-info {
    padding: 10px 14px 14px;
}

.product-card-info h3 {
    font-size: 14px;
    margin: 0 0 6px;
    color: #111827;
}

.product-cat-tag {
    display: inline-block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .16em;
    color: #64748b;
}

/* pagination wrapper */
.pagination-modern {
    margin-top: 20px;
}

/* --- Product detail modern --- */
.product-detail--modern {
    padding: 40px 0 55px;
}

.product-detail--modern .product-detail-top {
    align-items: flex-start;
}

/* viewer */
.product-img-viewer {
    background: #0f172a;
    border-radius: 18px;
    padding: 14px;
    border: 1px solid rgba(148,163,184,0.6);
    box-shadow: 0 20px 50px rgba(15,23,42,0.8);
    display:flex;
    align-items:center;
    justify-content:center;
    overflow:hidden;
}

.product-img-viewer .product-zoom-img {
    max-width: 100%;
    max-height: 320px;
    object-fit: contain;
    transition: transform .22s ease, transform-origin .22s ease;
    cursor: zoom-in;
}

/* حالة الزوم */
.product-img-viewer .product-zoom-img.zoomed {
    transform: scale(2.1);
}

/* info */
.product-info-modern h2 {
    font-size: 24px;
    margin-top: 0;
    margin-bottom: 8px;
    color: #0f172a;
}

.product-info-modern .product-meta {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .18em;
    color: #64748b;
    margin-bottom: 14px;
}

.product-info-modern .product-meta i {
    margin-right: 6px;
    color: #0ea5e9;
}

.product-desc {
    font-size: 14px;
    color: #4b5563;
    margin-bottom: 18px;
}

.btn-modern {
    margin-top: 4px;
    background: linear-gradient(120deg,#0ea5e9,#2563eb);
}

/* specs */
.product-spec-section {
    margin-top: 40px;
}

.spec-title {
    font-size: 18px;
    margin-bottom: 10px;
    color: #0f172a;
}

.modern-table-wrapper {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    box-shadow: 0 14px 34px rgba(15,23,42,0.15);
    background: #ffffff;
}

.modern-table {
    width: 100%;
    border-collapse: collapse;
}

.modern-table thead {
    background: linear-gradient(120deg,#0ea5e9,#2563eb);
}

.modern-table th,
.modern-table td {
    padding: 9px 12px;
    font-size: 13px;
    border-bottom: 1px solid #e5e7eb;
}

.modern-table th {
    color: #f9fafb;
    text-align: left;
}

.modern-table tbody tr:nth-child(2n) {
    background: #f9fafb;
}

/* prev / next */
.modern-prev-next {
    margin-top: 16px;
    display:flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

.modern-prev-next a {
    color: #2563eb;
    text-decoration: none;
    display:inline-flex;
    align-items:center;
    gap: 6px;
}

.modern-prev-next a:hover {
    text-decoration: underline;
}

/* related */
.related-modern-section {
    margin-top: 40px;
}

.related-modern-section h3 {
    font-size: 18px;
    margin-bottom: 14px;
    color: #0f172a;
}

.related-modern-grid {
    display:grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 16px;
}

@media (max-width: 992px) {
    .related-modern-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 600px) {
    .related-modern-grid { grid-template-columns: 1fr; }
}

.related-modern-card {
    background: #f9fafb;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    padding: 10px 10px 12px;
    text-align: center;
    text-decoration: none;
    color: #111827;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.related-modern-card img {
    max-width: 100%;
    max-height: 110px;
    object-fit: contain;
    margin-bottom: 6px;
}

.related-modern-card span {
    font-size: 13px;
}

.related-modern-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(15,23,42,0.18);
    border-color: rgba(37,99,235,0.8);
}
/* ========== PRODUCT DETAIL – HERO CARD & GALLERY ========== */

.product-detail--modern {
  padding-bottom: 60px;
}

.product-detail-top {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

/* كرت الصورة الكبير */
.product-visual-wrap {
  display: flex;
  justify-content: center;
}

.product-visual-card {
  position: relative;
  max-width: 420px;
  width: 100%;
  min-height: 320px;
  background: radial-gradient(circle at top, #222, #05070c);
  border-radius: 26px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.65);
  padding: 24px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* منطقة الصورة الرئيسية */
.product-zoom-area {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-main-img-hero {
  max-width: 100%;
  max-height: 260px;
  object-fit: contain;
  transition: transform 0.25s ease, transform-origin 0.25s ease, opacity 0.2s ease;
  cursor: zoom-in;
}

.product-main-img-hero.zoomed {
  transform: scale(1.85);
}

.product-main-img-hero.changing {
  opacity: 0;
}

/* شريط الصور الجانبي */
.product-thumbs-rail {
  position: absolute;
  right: 12px;
  top: 18px;
  bottom: 18px;
  width: 70px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.thumb-arrow {
  width: 38px;
  height: 30px;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: background 0.2s ease, transform 0.15s ease;
}

.thumb-arrow:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-1px);
}

.product-thumbs-window {
  flex: 1;
  width: 100%;
  overflow: hidden;
}

.product-thumbs-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 2px;
  overflow-y: auto;
  max-height: 100%;
  scrollbar-width: thin;
}

.product-thumbs-list::-webkit-scrollbar {
  width: 4px;
}
.product-thumbs-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.4);
  border-radius: 999px;
}

/* زر الصورة المصغرة */
.product-thumb {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  padding: 0;
  border: 2px solid transparent;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.product-thumb img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 10px;
  object-fit: contain;
}

.product-thumb:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
}

.product-thumb.is-active {
  border-color: #29a1ff;
  box-shadow: 0 0 0 1px rgba(41, 161, 255, 0.35);
}

/* معلومات المنتج */
.product-info-modern {
  padding-left: 10px;
}

.product-title-modern {
  font-size: 24px;
  margin-bottom: 10px;
}

.product-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #555;
  margin-bottom: 10px;
}

.product-meta i {
  font-size: 14px;
}

.product-desc {
  font-size: 14px;
  color: #444;
  max-width: 360px;
  margin-bottom: 14px;
}

.btn-modern {
  margin-top: 4px;
  padding-inline: 22px;
}

/* الجدول والـ related التي أضفناها سابقاً */
.product-spec-section {
  margin-top: 40px;
}

.spec-title {
  font-size: 18px;
  margin-bottom: 12px;
}

.modern-table-wrapper {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.modern-table th {
  background: linear-gradient(180deg, #00204a, #00152f);
  color: #fff;
  white-space: nowrap;
}

.modern-table tbody tr:nth-child(even) {
  background: #fafafa;
}

.modern-table tbody tr:hover {
  background: #eef4ff;
}

/* prev / next */
.modern-prev-next {
  margin-top: 16px;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
}
.modern-prev-next a {
  text-decoration: none;
  color: #0056b3;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.modern-prev-next a:hover {
  text-decoration: underline;
}

/* related grid */
.related-modern-section {
  margin-top: 40px;
}
.related-modern-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(150px,1fr));
  gap: 16px;
}
.related-modern-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 10px 14px;
  background: #f7f7f7;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.related-modern-card img {
  width: 100%;
  height: 120px;
  object-fit: contain;
}
.related-modern-card:hover {
  transform: translateY(-3px);
  background: #ffffff;
  box-shadow: 0 10px 20px rgba(0,0,0,0.12);
}

/* موبايل */
@media (max-width: 900px) {
  .product-detail-top {
    grid-template-columns: 1fr;
  }
  .product-visual-card {
    max-width: 100%;
  }
  .product-info-modern {
    padding-left: 0;
    margin-top: 16px;
  }
}

/* ====== Product main viewer ====== */
.product-visual-card {
    background: #f8fafc;
    border-radius: 18px;
    padding: 18px 18px 12px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 18px 40px rgba(15,23,42,0.08);
}

/* الحاوية الرئيسية للصورة */
.product-main-viewport {
    position: relative;
    background: #ffffff;
    border-radius: 16px;
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 280px;
    overflow: hidden;              /* مهم عشان الزوم ما يطلع خارج الكرت */
}

/* صورة المنتج (مع زوم) */
.product-main-img-modern {
    max-width: 100%;
    max-height: 320px;
    object-fit: contain;
    transition:
        opacity 0.18s ease,
        transform 0.25s ease,
        transform-origin 0.25s ease;
    transform: scale(1);
}

/* عند التبديل بين الصور */
.product-main-img-modern.is-fading {
    opacity: 0;
    transform: scale(0.98);
}

/* وضع الزوم */
.product-main-img-modern.is-zoomed {
    transform: scale(2.2);   /* تقدر تخليها 2 أو 2.5 حسب ما تحب */
}

/* arrows */
.product-main-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: none;
    background: rgba(15,23,42,0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.2s ease;
}

.product-main-arrow i {
    font-size: 14px;
}

.product-main-arrow.left { left: 12px; }
.product-main-arrow.right { right: 12px; }

.product-main-arrow:hover {
    background: rgba(59,130,246,0.18);
}

/* thumbs row */
.product-thumbs-row {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.product-thumb {
    border: 2px solid transparent;
    border-radius: 10px;
    padding: 3px;
    background: transparent;
    cursor: pointer;
    flex: 0 0 auto;
    transition: 0.18s ease;
}

.product-thumb img {
    display: block;
    width: 58px;
    height: 58px;
    object-fit: cover;
    border-radius: 8px;
}

.product-thumb.is-active {
    border-color: #2563eb;
    box-shadow: 0 0 0 1px rgba(37,99,235,0.3);
}

.product-thumb:hover:not(.is-active) {
    border-color: #cbd5f5;
}

/* ===== Product gallery modern ===== */

.product-gallery {
    max-width: 420px;
}

.product-main-wrapper {
    background: #f7f7f7;
    border-radius: 18px;
    padding: 18px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.product-main-img {
    width: 100%;
    height: 280px;
    object-fit: contain;
    transition: transform 0.2s ease, transform-origin 0.2s ease, opacity 0.15s ease;
}

.product-main-img.is-zoomed {
    transform: scale(1.9);
    box-shadow: 0 16px 40px rgba(0,0,0,0.15);
}

.product-main-img.is-fading {
    opacity: 0;
}

.zoom-hint {
    position: absolute;
    left: 20px;
    bottom: 18px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #555;
    opacity: 0.9;
}

.zoom-hint i {
    font-size: 13px;
}

/* thumbnails */

.product-thumb-list {
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.thumb-arrow {
    border: none;
    background:  #e5e7eb;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 13px;
}

.thumb-arrow:hover {
    background: #e0e0e0;
}

.product-thumb-track {
    display: flex;
    gap: 6px;
    overflow-x: auto;
}

.product-thumb-item {
    border: 2px solid transparent;
    border-radius: 8px;
    padding: 2px;
    background:  #f3f4f6;
    cursor: pointer;

}

.product-thumb-item img {
    display: block;
    width: 52px;
    height: 52px;
    object-fit: contain;
}

.product-thumb-item.is-active {
    border-color:  #004f9e;
    background: #e0edff;
    box-shadow: 0 0 0 1px rgba(11,94,215,0.3);
}

/* موبايل */
@media (max-width: 768px) {
    .product-detail-top {
        grid-template-columns: 1fr;
    }
    .product-gallery {
        max-width: 100%;
        margin-bottom: 20px;
    }
}

/* =========================
   HOME – RESPONSIVE TWEAKS
   ========================= */


/* ====== أقسام الـ HOME الأخرى (شبكات) ====== */

/* about */
.home-about-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 32px;
    align-items: center;
}

/* latest products */
.home-headline-products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 18px;
}

/* we can provide you */
.products-center-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 18px;
}

/* topfix solutions */
.topfix-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

/* blog strip */
.blog-strip {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr);
    gap: 14px;
}

/* =========================
   BREAKPOINTS
   ========================= */

/* تابلت */
@media (max-width: 992px) {
    .home-about-grid {
        grid-template-columns: 1fr;
    }

    .about-profile-image {
        max-width: 520px;
        margin: 0 auto;
    }
}

/* موبايل */
@media (max-width: 640px) {
    .home-about-section .section-sub,
    .home-about-title,
    .home-about-lead,
    .home-about-body {
        text-align: left;
    }

    .home-headline-products,
    .products-center-grid,
    .topfix-products-grid {
        grid-template-columns: 1fr 1fr;
    }

    .blog-strip {
        grid-template-columns: 1fr;
    }
}

/* ===== ABOUT – BRAND STRIP (هوية المصنع) ===== */

.about-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 999px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
    margin-bottom: 14px;
    border: 1px solid #e5e7eb;
}

.about-brand-logo img {
    height: 46px;
    width: auto;
    display: block;
}

.about-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.about-brand-name {
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #111827;
}

.about-brand-tagline {
    font-size: 0.8rem;
    color: #6b7280;
}

/* موبايل */
@media (max-width: 768px) {
    .about-brand {
        width: 100%;
        border-radius: 16px;
    }

    .about-brand-name {
        font-size: 0.85rem;
    }

    .about-brand-tagline {
        font-size: 0.75rem;
    }
}

/* ===============================
   🔧 إصلاح مشكلة الهيرو على الجوال
   النص كان ينزل كثير ويظهر الموقع مقصوص
   =============================== */

@media (max-width: 768px) {

    /* تصغير ارتفاع الهيرو قليلاً */
    .home-hero--video {
        min-height: 65vh !important;
    }

    /* رفع النص وتعديل وضعه */
    .home-hero-inner {
        min-height: 65vh !important;
        padding-top: 40px !important;   /* يرفع النص فوق */
        padding-bottom: 15px !important;
        justify-content: center !important;
        align-items: flex-start !important;  /* يخلي النص يبدأ من فوق */
    }

    /* العمود نفسه يكون في الوسط وتحت السيطرة */
    .home-hero-col--left {
        text-align: center !important;
        margin: 0 auto !important;
        max-width: 90% !important;
        padding: 0 !important;
        transform: translateY(0) !important;
    }

    /* تصغير حجم العنوان ليظهر بالكامل */
    .home-hero-title {
        font-size: 20px !important;
        line-height: 1.3;
        margin-bottom: 6px;
    }

    .home-hero-kicker {
        font-size: 11px !important;
        letter-spacing: 0.18em;
    }

    .home-hero-sub {
        font-size: 11px !important;
        margin-top: 4px;
    }

    .home-hero-desc {
        font-size: 11px !important;
        margin-top: 6px;
        line-height: 1.6;
    }

    .home-hero-meta {
        font-size: 10px !important;
        justify-content: center !important;
        gap: 6px 10px;
    }

    /* إصلاح تراكب اليمين (toolbar) ليصغر في الجوال */
    .right-toolbar {
        transform: scale(0.85);
        right: 8px !important;
    }
}


/* ===============================
   💻 تحسين الظهور على الأجهزة الكبيرة
   =============================== */

@media (min-width: 992px) {
    .home-hero-inner {
        align-items: flex-end !important;
        justify-content: flex-start !important;
    }

    .home-hero-col--left {
        margin-left: 40px !important;
        text-align: left !important;
    }
}

/* ====== إصلاحات عامة للجوال ====== */
html, body {
  overflow-x: hidden; /* يمنع القصّ والتمرير الأفقي */
}

/* الصور تتقلص ولا تكسر التخطيط */
img { max-width: 100%; height: auto; }

/* الحاويات لا تضغط الحواف */
.container { padding-left: 14px; padding-right: 14px; }

/* ====== الهيرو (فيديو) على الجوال ====== */
@media (max-width: 768px) {
  .top-header { position: relative; z-index: 50; }

  .home-hero--video {
    min-height: 58vh !important; /* أصغر عشان كل المحتوى يبان */
  }
  .home-hero-inner {
    min-height: 58vh !important;
    align-items: flex-start !important;  /* يبدأ من أعلى */
    justify-content: center !important;
    padding-top: 28px !important;
    padding-bottom: 12px !important;
  }
  .home-hero-col--left {
    max-width: 92% !important;
    margin: 0 auto !important;
    text-align: center !important;
  }
  .home-hero-kicker { font-size: 11px !important; letter-spacing: .16em; }
  .home-hero-title  { font-size: 20px !important; line-height: 1.28; margin-bottom: 6px; }
  .home-hero-sub    { font-size: 11px !important; }
  .home-hero-desc   { font-size: 11px !important; line-height: 1.6; margin-top: 6px; }
  .home-hero-meta   { font-size: 10px !important; gap: 6px 10px; justify-content: center; }
}

/* ====== شريط الأيقونات يمين الشاشة ====== */
.right-toolbar {
  position: fixed;
  top: 30%;
  right: 14px;
  z-index: 60;
}
@media (max-width: 768px) {
  .right-toolbar {
    right: 6px !important;
    transform: scale(.80);       /* تصغير الشريط ككل */
    transform-origin: 100% 0;
    gap: 8px;
  }
  .right-toolbar .rt-btn {       /* أزرار أصغر قليلاً */
    width: 46px; height: 46px; border-radius: 12px;
  }
}

/* ====== البنر الداخلي لكل الصفحات ====== */
.inner-banner {
  min-height: 42vh;
  display: grid;
  align-items: end;
}
@media (max-width: 768px) {
  .inner-banner { min-height: 32vh; }
  .inner-banner .inner-banner-content { padding: 18px 14px; }
  .inner-banner h1 { font-size: 22px; }
  .inner-banner p  { font-size: 12px; opacity: .9; }
}

/* ====== صفحة المنتجات – ترتيب الجوال ====== */
@media (max-width: 768px) {
  /* لو عندك شبكة منتجات/سايدبار مشابهة لهذه الكلاسات */
  .product-layout,
  .products-layout,
  .product-page-grid {
    display: block !important;   /* يُسقط السايدبار تحت */
  }

  .product-sidebar,
  .products-sidebar {
    margin-bottom: 16px;
  }

  .product-list-grid,
  .products-grid {
    display: grid;
    grid-template-columns: 1fr;  /* كرت واحد في الصف */
    gap: 14px;
  }

  .product-card,
  .prod-card {
    border-radius: 14px;
    overflow: hidden;
  }
}

/* ====== بُطينات/هوامش عامة للجوال ====== */
@media (max-width: 768px) {
  .section { padding-top: 28px; padding-bottom: 28px; }
  .section-title-main { font-size: 20px; }
  .section-sub, .section-sub-2 { font-size: 12px; }
}

/* اختيارية: تخفيف تدرّج الهيرو على الجوال لظهور الفيديو أكثر */
@media (max-width: 768px) {
  .home-hero-overlay {
    background: linear-gradient(
      to bottom,
      rgba(15,23,42,.45),
      rgba(15,23,42,.20),
      rgba(15,23,42,.55)
    ) !important;
  }
}

/* ====== Related products (صفحة show) – نسخة متجاوبة وجميلة ====== */

.related-products {
    margin-top: 40px;
}

.related-products h2 {
    font-size: 18px;
    margin-bottom: 16px;
    color: #0f172a;
}

/* شبكة متجاوبة: كرت واحد يمين الشاشة الكاملة في الجوال
   وعلى الشاشات الأوسع يصير أكثر من كرت */
.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

/* كرت المنتج المرتبط */
.related-card {
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 26px rgba(15,23,42,0.08);
    overflow: hidden;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
    text-align: center;
}

/* نخلي الرابط يملأ الكرت بالكامل */
.related-card > a {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

/* الجزء الخاص بالصورة */
.related-image {
    background: #f9fafb;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 130px;
}

.related-image img {
    width: 100%;
    max-height: 120px;
    object-fit: contain;
}

/* اسم المنتج */
.related-name {
    padding: 10px 12px 14px;
    font-size: 13px;
    color: #111827;
}

/* تأثير الهوفر */
.related-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(15,23,42,0.18);
    border-color: #00204a;
}
.related-card:hover .related-name {
    color: #00204a;
}

/* موبايل صغير جداً: تأكيد أن الكرت يأخذ العرض كامل تقريباً */
@media (max-width: 480px) {
    .related-grid {
        grid-template-columns: 1fr;
    }
}

.developer-link {
    color: inherit;
    text-decoration: none;
    font-weight: 400;
    transition: all 0.3s ease;
}

.developer-link:hover {
    color: #9392ab; /* لون صناعي مناسب */
    text-decoration: underline;
}
