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

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

.Section {
    padding: 60px 0 80px;
}

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

/*=====================================================
  CATEGORY HERO
===================================================== */

.Category-Hero {
    position: relative;
    margin-top: 90px;
    padding: 80px 0 60px;
    overflow: hidden;
    min-height: 350px;
    display: flex;
    align-items: center;
}

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

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

.Category-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;
}

.Category-Hero .Container {
    position: relative;
    z-index: 2;
}

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

.Category-Hero-Breadcrumb {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 16px;
}

.Category-Hero-Breadcrumb a {
    color: #F28C28;
    text-decoration: none;
    transition: color 0.3s ease;
}

.Category-Hero-Breadcrumb a:hover {
    color: #d97706;
    text-decoration: underline;
}

.Category-Hero-Breadcrumb span {
    color: rgba(255, 255, 255, 0.5);
    margin: 0 8px;
}

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

.Category-Hero-Description {
    color: rgba(255, 255, 255, 0.88);
    font-size: 18px;
    line-height: 1.8;
    max-width: 600px;
    margin-bottom: 20px;
}

.Category-Hero-Meta {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.Category-Hero-Count {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 18px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-size: 14px;
    border: 1px solid rgba(255, 255, 255, 0.10);
}

/*=====================================================
  CATEGORY PRODUCTS
===================================================== */

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

.Category-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-Link {
    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-Name {
    font-size: 18px;
    font-weight: 700;
    color: #0B2B4A;
    margin: 0 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;
    margin: 0;
}

.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 MESSAGE
===================================================== */

.No-Products-Message {
    text-align: center;
    padding: 80px 20px;
}

.No-Products-Message i {
    font-size: 64px;
    color: #e2e8f0;
    margin-bottom: 20px;
}

.No-Products-Message h3 {
    font-size: 24px;
    color: #0B2B4A;
    margin-bottom: 12px;
}

.No-Products-Message p {
    color: #64748b;
    margin-bottom: 30px;
}

/*=====================================================
  CATEGORY BACK
===================================================== */

.Category-Back {
    text-align: center;
    margin-top: 50px;
}

.Category-Back .Btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.Category-Back .Btn-Secondary {
    background: #0B2B4A;
    color: #ffffff;
}

.Category-Back .Btn-Secondary:hover {
    background: #0d4d8b;
    transform: translateY(-3px);
}

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

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

/* Tablets */
@media (max-width: 768px) {
    .Category-Hero {
        margin-top: 70px;
        padding: 60px 0 40px;
        min-height: 280px;
    }
    
    .Category-Hero-Title {
        font-size: 30px;
    }
    
    .Category-Hero-Description {
        font-size: 16px;
    }
    
    .Category-Products {
        padding: 40px 0 60px;
    }
    
    .Category-Products-Grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .Product-Image {
        height: 170px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .Category-Hero {
        padding: 50px 0 35px;
        min-height: 240px;
    }
    
    .Category-Hero-Title {
        font-size: 26px;
    }
    
    .Category-Hero-Description {
        font-size: 15px;
    }
    
    .Category-Hero-Breadcrumb {
        font-size: 12px;
    }
    
    .Category-Products {
        padding: 30px 0 50px;
    }
    
    .Category-Products-Grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    
    .Product-Image {
        height: 200px;
    }
    
    .Product-Name {
        font-size: 16px;
    }
    
    .No-Products-Message i {
        font-size: 48px;
    }
    
    .No-Products-Message h3 {
        font-size: 20px;
    }
    
    .Category-Back .Btn {
        width: 100%;
        justify-content: center;
    }
}

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

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

[dir="rtl"] .Category-Hero-Breadcrumb span {
    margin: 0 8px;
}

[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-Back .Btn i {
    transform: rotate(180deg);
}

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

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

/*=====================================================
  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; }
.Product-Item:nth-child(9) { animation-delay: 0.45s; }
.Product-Item:nth-child(10) { animation-delay: 0.50s; }
.Product-Item:nth-child(11) { animation-delay: 0.55s; }
.Product-Item:nth-child(12) { animation-delay: 0.60s; }

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

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

/* =====================================================
   PRODUCTS CATEGORY PAGE
   ==================================================== */

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

.Category-Products .Container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ====== Products Header ====== */
.Category-Products-Header {
    margin-bottom: 30px;
    text-align: left;
}

.Category-Products-Header .product-count {
    display: inline-block;
    padding: 8px 20px;
    background: #ffffff;
    border: 1px solid #e8edf2;
    border-radius: 30px;
    font-size: 14px;
    color: #475569;
}

.Category-Products-Header .product-count i {
    color: #54B448;
    margin-right: 8px;
}

/* ====== Products Grid ====== */
.Category-Products-Grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.Product-Item {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e8edf2;
    transition: all 0.3s ease;
}

.Product-Item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    border-color: #54B448;
}

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

.Product-Image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.Product-Image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.Product-Badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #54B448;
    color: #ffffff;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.Product-Content {
    padding: 20px 24px 24px;
}

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

.Product-Description {
    color: #5A6B75;
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 16px;
}

.Product-Detail-Link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #54B448;
    font-weight: 600;
    font-size: 14px;
    transition: gap 0.3s ease;
}

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

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

/* ====== No Products ====== */
.No-Products-Message {
    text-align: center;
    padding: 60px 20px;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e8edf2;
}

.No-Products-Message i {
    font-size: 48px;
    color: #54B448;
    margin-bottom: 16px;
}

.No-Products-Message h3 {
    font-size: 22px;
    color: #0B2B4A;
    margin: 0 0 8px;
}

.No-Products-Message p {
    color: #5A6B75;
    margin: 0 0 20px;
}

.No-Products-Message .Btn {
    display: inline-block;
    padding: 12px 30px;
    background: #54B448;
    color: #ffffff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease;
}

.No-Products-Message .Btn:hover {
    background: #3C6078;
}

/* ====== Back Button ====== */
.Category-Back {
    margin-top: 40px;
    text-align: center;
}

.Category-Back .Btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 30px;
    background: transparent;
    color: #0B2B4A;
    border: 2px solid #e8edf2;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.Category-Back .Btn:hover {
    border-color: #54B448;
    color: #54B448;
}

/* ====== RTL Support ====== */
[dir="rtl"] .Product-Badge {
    left: auto;
    right: 12px;
}

[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-Products-Header .product-count i {
    margin-right: 0;
    margin-left: 8px;
}

/* ====== Responsive ====== */
@media (max-width: 992px) {
    .Category-Products-Grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .Category-Products {
        padding: 40px 0 60px;
    }
    
    .Category-Products-Grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .Product-Image {
        height: 180px;
    }
    
    .Product-Content {
        padding: 16px 20px 20px;
    }
    
    .Product-Name {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .Category-Products {
        padding: 30px 0 40px;
    }
    
    .Product-Image {
        height: 150px;
    }
    
    .Product-Content {
        padding: 14px 16px 18px;
    }
    
    .Product-Name {
        font-size: 15px;
    }
    
    .Product-Description {
        font-size: 13px;
    }
}