/* =====================================================
   PRODUCTS PAGE - COMPLETE
   File: assets/css/products.css
===================================================== */

/*=====================================================
  SECTION BASE
===================================================== */

.Section {
    padding: 80px 0;
}

.Section-Header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
}

.Section-SubTitle {
    display: inline-block;
    padding: 6px 20px;
    border-radius: 30px;
    background: rgba(242, 140, 40, 0.10);
    color: #F28C28;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.Section-Title {
    font-size: 38px;
    font-weight: 700;
    color: #0B2B4A;
    margin-bottom: 16px;
    line-height: 1.2;
}

.Section-Description {
    font-size: 18px;
    color: #64748b;
    line-height: 1.8;
    max-width: 600px;
    margin: 0 auto;
}

/*=====================================================
  PRODUCTS HERO
===================================================== */

.Products-Hero {
    position: relative;
    margin-top: 90px;
    padding: 120px 0;
    overflow: hidden;
    min-height: 400px;
    display: flex;
    align-items: center;
}

.Products-Hero-Bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.Products-Hero-Bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.Products-Hero-Overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(11, 43, 74, 0.85) 0%,
        rgba(11, 43, 74, 0.65) 50%,
        rgba(11, 43, 74, 0.80) 100%
    );
    z-index: 1;
}

.Products-Hero .Container {
    position: relative;
    z-index: 2;
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
}

.Products-Hero-Content {
    max-width: 700px;
}

.Products-Hero-SubTitle {
    display: inline-block;
    padding: 8px 28px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.10);
    color: #F28C28;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 18px;
    border: 1px solid rgba(242, 140, 40, 0.20);
    backdrop-filter: blur(6px);
}

.Products-Hero-Title {
    color: #ffffff;
    font-size: 52px;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.15;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.20);
}

.Products-Hero-Description {
    color: rgba(255, 255, 255, 0.88);
    font-size: 18px;
    line-height: 1.8;
    max-width: 550px;
}

/*=====================================================
  PRODUCTS CATEGORIES
===================================================== */

.Products-Categories {
    padding: 80px 0;
    background: #ffffff;
}

.Products-Categories .Container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
}

/* Category Section */
.Category-Section {
    margin-bottom: 60px;
    padding-bottom: 50px;
    border-bottom: 1px solid #e8edf2;
}

.Category-Section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.Category-Header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

.Category-Header-Content {
    display: flex;
    align-items: center;
    gap: 16px;
}

.Category-Number {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #F28C28;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 15px;
    transition: all 0.3s ease;
}

.Category-Section:hover .Category-Number {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(242, 140, 40, 0.30);
}

.Category-Title {
    font-size: 26px;
    font-weight: 700;
    color: #0B2B4A;
    margin: 0;
}

.Category-ViewAll {
    color: #F28C28;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.Category-ViewAll:hover {
    color: #d97706;
}

.Category-ViewAll i {
    transition: transform 0.3s ease;
}

.Category-ViewAll:hover i {
    transform: translateX(4px);
}

.Category-Description {
    color: #64748b;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 28px;
    max-width: 800px;
    padding-left: 60px;
}

/*=====================================================
  PRODUCTS GRID
===================================================== */

.Products-Grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

/*=====================================================
  PRODUCT ITEM
===================================================== */

.Product-Item {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e8edf2;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.Product-Item:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
    border-color: #F28C28;
}

.Product-Item a {
    text-decoration: none;
    display: block;
}

.Product-Image {
    position: relative;
    width: 100%;
    height: 210px;
    overflow: hidden;
    background: #f8fafc;
}

.Product-Image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.Product-Item:hover .Product-Image img {
    transform: scale(1.06);
}

.Product-Badge {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 5px 16px;
    border-radius: 20px;
    background: #F28C28;
    color: #ffffff;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 10px rgba(242, 140, 40, 0.30);
}

.Product-Content {
    padding: 18px 20px 22px;
}

.Product-Category {
    font-size: 12px;
    font-weight: 600;
    color: #F28C28;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    margin-bottom: 4px;
}

.Product-Name {
    font-size: 18px;
    font-weight: 700;
    color: #0B2B4A;
    margin: 4px 0 8px;
    line-height: 1.3;
}

.Product-Description {
    font-size: 14px;
    color: #64748b;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.Product-Detail-Link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    font-size: 14px;
    font-weight: 600;
    color: #0d4d8b;
    transition: all 0.3s ease;
}

.Product-Item:hover .Product-Detail-Link {
    color: #F28C28;
}

.Product-Detail-Link i {
    transition: transform 0.3s ease;
}

.Product-Item:hover .Product-Detail-Link i {
    transform: translateX(4px);
}

.No-Products {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 0;
    color: #94a3b8;
    font-size: 16px;
}

/*=====================================================
  FEATURED PRODUCTS
===================================================== */

.Products-Featured {
    padding: 80px 0;
    background: #f8fafc;
}

.Products-Featured .Container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
}

.Products-Featured .Product-Item {
    background: #ffffff;
}

/*=====================================================
  RESPONSIVE
===================================================== */

/* Large Tablets */
@media (max-width: 1024px) {
    .Products-Grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .Products-Hero-Title {
        font-size: 42px;
    }
    
    .Section-Title {
        font-size: 32px;
    }
}

/* Tablets */
@media (max-width: 768px) {
    .Products-Hero {
        padding: 80px 0;
        margin-top: 70px;
        min-height: 350px;
    }
    
    .Products-Hero-Title {
        font-size: 34px;
    }
    
    .Products-Hero-Description {
        font-size: 16px;
    }
    
    .Products-Categories {
        padding: 50px 0;
    }
    
    .Products-Featured {
        padding: 50px 0;
    }
    
    .Products-Grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .Category-Header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .Category-Title {
        font-size: 22px;
    }
    
    .Category-Description {
        padding-left: 0;
        font-size: 15px;
    }
    
    .Category-Number {
        width: 38px;
        height: 38px;
        font-size: 13px;
    }
    
    .Product-Image {
        height: 180px;
    }
    
    .Product-Name {
        font-size: 16px;
    }
    
    .Section-Title {
        font-size: 28px;
    }
    
    .Section-Description {
        font-size: 16px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .Products-Hero {
        padding: 60px 0;
        min-height: 300px;
    }
    
    .Products-Hero-Title {
        font-size: 28px;
    }
    
    .Products-Hero-SubTitle {
        font-size: 12px;
        padding: 6px 18px;
    }
    
    .Products-Hero-Description {
        font-size: 15px;
    }
    
    .Products-Categories {
        padding: 35px 0;
    }
    
    .Products-Featured {
        padding: 35px 0;
    }
    
    .Products-Grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    
    .Category-Section {
        margin-bottom: 40px;
        padding-bottom: 35px;
    }
    
    .Category-Title {
        font-size: 20px;
    }
    
    .Category-Number {
        width: 34px;
        height: 34px;
        font-size: 12px;
    }
    
    .Category-Description {
        font-size: 14px;
        margin-bottom: 20px;
    }
    
    .Product-Image {
        height: 200px;
    }
    
    .Product-Content {
        padding: 14px 16px 18px;
    }
    
    .Product-Name {
        font-size: 15px;
    }
    
    .Product-Description {
        font-size: 13px;
    }
    
    .Section-Title {
        font-size: 24px;
    }
    
    .Section-SubTitle {
        font-size: 12px;
        padding: 4px 14px;
    }
    
    .Section-Description {
        font-size: 15px;
    }
}

/* Small Mobile */
@media (max-width: 360px) {
    .Products-Hero-Title {
        font-size: 24px;
    }
    
    .Product-Image {
        height: 170px;
    }
    
    .Category-Title {
        font-size: 18px;
    }
}

/*=====================================================
  RTL SUPPORT
===================================================== */

[dir="rtl"] .Products-Hero-Content {
    text-align: right;
}

[dir="rtl"] .Category-Number {
    margin-left: 0;
    margin-right: 16px;
}

[dir="rtl"] .Product-Badge {
    left: auto;
    right: 14px;
}

[dir="rtl"] .Category-ViewAll i {
    transform: rotate(180deg);
}

[dir="rtl"] .Category-ViewAll:hover i {
    transform: rotate(180deg) translateX(4px);
}

[dir="rtl"] .Product-Detail-Link i {
    transform: rotate(180deg);
}

[dir="rtl"] .Product-Item:hover .Product-Detail-Link i {
    transform: rotate(180deg) translateX(4px);
}

[dir="rtl"] .Category-Description {
    padding-left: 0;
    padding-right: 60px;
}

[dir="rtl"] .Category-Header-Content {
    flex-direction: row-reverse;
}

@media (max-width: 768px) {
    [dir="rtl"] .Category-Description {
        padding-right: 0;
    }
}

/*=====================================================
  ANIMATIONS
===================================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.Product-Item {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.Product-Item:nth-child(1) { animation-delay: 0.05s; }
.Product-Item:nth-child(2) { animation-delay: 0.10s; }
.Product-Item:nth-child(3) { animation-delay: 0.15s; }
.Product-Item:nth-child(4) { animation-delay: 0.20s; }
.Product-Item:nth-child(5) { animation-delay: 0.25s; }
.Product-Item:nth-child(6) { animation-delay: 0.30s; }
.Product-Item:nth-child(7) { animation-delay: 0.35s; }
.Product-Item:nth-child(8) { animation-delay: 0.40s; }

/*=====================================================
  PRINT STYLES
===================================================== */

@media print {
    .Products-Hero {
        margin-top: 0;
        padding: 40px 0;
        min-height: auto;
    }
    
    .Products-Hero-Overlay {
        display: none;
    }
    
    .Product-Item {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .Product-Item:hover {
        transform: none !important;
    }
    
    .Products-Featured {
        background: #ffffff !important;
    }
}

/* Features Detailed Grid */
.Features-Detailed-Grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.Feature-Detailed-Item {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e8edf2;
    transition: all 0.3s ease;
}

.Feature-Detailed-Item:hover {
    border-color: #F28C28;
    transform: translateY(-2px);
}

.Feature-Detailed-Icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #F28C28;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.Feature-Detailed-Content h4 {
    font-size: 16px;
    font-weight: 600;
    color: #0B2B4A;
    margin-bottom: 4px;
}

.Feature-Detailed-Content p {
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
}

/* Applications Detailed Grid */
.Applications-Detailed-Grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.Application-Detailed-Item {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e8edf2;
    transition: all 0.3s ease;
}

.Application-Detailed-Item:hover {
    border-color: #F28C28;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

.Application-Detailed-Icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #0B2B4A;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.Application-Detailed-Content h4 {
    font-size: 16px;
    font-weight: 600;
    color: #0B2B4A;
    margin-bottom: 4px;
}

.Application-Detailed-Content p {
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
    .Features-Detailed-Grid,
    .Applications-Detailed-Grid {
        grid-template-columns: 1fr;
    }
}

    /* ============================================
       PRODUCTS PAGE - تحسينات إضافية
       ============================================ */
    
    /* ====== Hero ====== */
    .Products-Page-Hero {
        padding: 60px 0 40px;
        background: linear-gradient(135deg, #f8fafc 0%, #eef3f9 100%);
        text-align: left;
    }

    .Products-Page-Hero .Container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 20px; /* محاذاة مع باقي الأقسام */
    }

    .Products-Page-Hero h1 {
        font-size: 38px;
        font-weight: 800;
        color: #0B2B4A;
        margin-bottom: 12px;
    }

    .Products-Page-Hero p {
        font-size: 18px;
        color: #5A6B75;
        max-width: 700px;
        margin: 0;
        line-height: 1.8;
    }

    /* ====== Breadcrumb ====== */
    .Products-Page-Hero .breadcrumb {
        font-size: 14px;
        color: #5A6B75;
        margin-bottom: 20px;
        text-align: left;
    }

    .Products-Page-Hero .breadcrumb a {
        color: #54B448;
        text-decoration: none;
    }

    .Products-Page-Hero .breadcrumb .separator {
        color: #c0c8d0;
        margin: 0 6px;
    }

    .Products-Page-Hero .breadcrumb .current {
        color: #0B2B4A;
        font-weight: 500;
    }

    /* ====== RTL ====== */
    [dir="rtl"] .Products-Page-Hero {
        text-align: right;
    }

    [dir="rtl"] .Products-Page-Hero .breadcrumb {
        text-align: right;
    }

    [dir="rtl"] .Products-Page-Hero .breadcrumb .separator {
        margin: 0 6px;
    }

    /* عكس اتجاه الأسهم */
    [dir="rtl"] .Category-ViewAll i,
    [dir="rtl"] .Product-Detail-Link i {
        transform: scaleX(-1);
        display: inline-block;
    }

    /* ====== Responsive ====== */
    @media (max-width: 768px) {
        .Products-Page-Hero {
            padding: 40px 0 30px;
        }
        .Products-Page-Hero h1 {
            font-size: 28px;
        }
        .Products-Page-Hero p {
            font-size: 16px;
        }
    }