/* Products Section Modern Styles */
.products-section-modern {
    position: relative;
    padding: 120px 0;
    background: #ffffff;
    overflow: hidden;
}

/* Background Elements */
.products-bg-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.products-bg-shape-1 {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 123, 255, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    top: -300px;
    left: -300px;
    animation: products-float-1 25s ease-in-out infinite;
}

.products-bg-shape-2 {
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 123, 255, 0.04) 0%, transparent 70%);
    border-radius: 50%;
    bottom: -250px;
    right: -250px;
    animation: products-float-2 30s ease-in-out infinite;
}

@keyframes products-float-1 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(50px, 50px) scale(1.1);
    }
}

@keyframes products-float-2 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(-50px, -50px) scale(1.15);
    }
}

/* Container */
.products-section-modern .container {
    position: relative;
    z-index: 2;
}

/* Header Section */
.products-header-wrapper {
    margin-bottom: 70px;
}

.products-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.products-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.1) 0%, rgba(0, 123, 255, 0.05) 100%);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-color, #007bff);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 25px;
    border: 1px solid rgba(0, 123, 255, 0.2);
}

.products-label i {
    font-size: 16px;
}

.products-main-title {
    font-size: 52px;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 25px;
    color: var(--heading-font-color, #1a1a1a);
    background: linear-gradient(135deg, var(--heading-font-color, #1a1a1a) 0%, var(--primary-color, #007bff) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.products-description {
    font-size: 18px;
    line-height: 1.9;
    color: var(--body-font-color, #666);
    margin: 0;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 35px;
    margin-bottom: 60px;
}

/* Product Item */
.product-item {
    position: relative;
}

.product-card {
    position: relative;
    background: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.product-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 70px rgba(0, 123, 255, 0.15);
    border-color: rgba(0, 123, 255, 0.2);
}

/* Product Image */
.product-image-container {
    position: relative;
    height: 320px;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.product-image-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover .product-image {
    transform: scale(1.15);
}

.product-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.3) 0%, rgba(0, 123, 255, 0) 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.product-card:hover .product-image-overlay {
    opacity: 1;
}

/* Product Badge */
.product-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary-color, #007bff);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(-15px) scale(0.9);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 3;
}

.product-card:hover .product-badge {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.product-badge i {
    font-size: 14px;
}

/* Quick View Button */
.product-quick-view {
    position: absolute;
    bottom: 20px;
    right: 20px;
    opacity: 0;
    transform: translateY(15px) scale(0.9);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 3;
}

.product-card:hover .product-quick-view {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.quick-view-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: var(--primary-color, #007bff);
    color: #ffffff;
    border-radius: 50%;
    text-decoration: none;
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.4);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.quick-view-btn:hover {
    background: var(--heading-font-color, #1a1a1a);
    transform: scale(1.15) rotate(90deg);
    box-shadow: 0 12px 35px rgba(0, 123, 255, 0.5);
}

.quick-view-btn i {
    font-size: 22px;
}

/* Product Content */
.product-content {
    padding: 32px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
}

.product-content-inner {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    margin: 0 0 15px 0;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
}

.product-title a {
    color: var(--heading-font-color, #1a1a1a);
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
}

.product-title a:hover {
    color: var(--primary-color, #007bff);
}

.product-excerpt {
    color: var(--body-font-color, #666);
    font-size: 15px;
    line-height: 1.8;
    margin: 0 0 25px 0;
    flex-grow: 1;
}

.product-footer {
    margin-top: auto;
}

.product-read-more {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-color, #007bff);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    padding: 8px 0;
}

.product-read-more:hover {
    gap: 15px;
    color: var(--heading-font-color, #1a1a1a);
}

.product-read-more i {
    transition: transform 0.3s ease;
    font-size: 16px;
}

.product-read-more:hover i {
    transform: translateX(5px);
}

html[dir="rtl"] .product-read-more:hover i,
[dir="rtl"] .product-read-more:hover i {
    transform: translateX(-5px);
}

/* Product Glow Effect */
.product-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.1) 0%, rgba(0, 123, 255, 0) 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: 1;
}

.product-card:hover .product-glow {
    opacity: 1;
}

/* View All Button */
.products-footer {
    text-align: center;
    margin-top: 50px;
}

.btn-view-all {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 45px;
    background: linear-gradient(135deg, var(--primary-color, #007bff) 0%, rgba(0, 123, 255, 0.9) 100%);
    color: #ffffff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 30px rgba(0, 123, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-view-all::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-view-all:hover::before {
    left: 100%;
}

.btn-view-all:hover {
    background: linear-gradient(135deg, var(--heading-font-color, #1a1a1a) 0%, rgba(26, 26, 26, 0.9) 100%);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 123, 255, 0.4);
}

.btn-view-all i {
    transition: transform 0.3s ease;
    font-size: 18px;
}

.btn-view-all:hover i {
    transform: translateX(5px);
}

html[dir="rtl"] .btn-view-all:hover i,
[dir="rtl"] .btn-view-all:hover i {
    transform: translateX(-5px);
}

/* RTL Support */
html[dir="rtl"] .products-section-modern,
[dir="rtl"] .products-section-modern {
    direction: rtl;
}

html[dir="rtl"] .product-badge,
[dir="rtl"] .product-badge {
    right: auto;
    left: 20px;
}

html[dir="rtl"] .product-quick-view,
[dir="rtl"] .product-quick-view {
    right: auto;
    left: 20px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 30px;
    }
}

@media (max-width: 991px) {
    .products-section-modern {
        padding: 90px 0;
    }
    
    .products-header-wrapper {
        margin-bottom: 50px;
    }
    
    .products-main-title {
        font-size: 40px;
    }
    
    .products-description {
        font-size: 16px;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 25px;
    }
    
    .product-image-container {
        height: 280px;
    }
}

@media (max-width: 768px) {
    .products-section-modern {
        padding: 70px 0;
    }
    
    .products-header-wrapper {
        margin-bottom: 40px;
    }
    
    .products-main-title {
        font-size: 32px;
    }
    
    .products-label {
        font-size: 12px;
        padding: 10px 24px;
    }
    
    .products-description {
        font-size: 15px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .product-image-container {
        height: 260px;
    }
    
    .product-content {
        padding: 25px;
    }
    
    .product-title {
        font-size: 20px;
    }
    
    .btn-view-all {
        padding: 16px 35px;
        font-size: 15px;
    }
}

@media (max-width: 576px) {
    .products-section-modern {
        padding: 60px 0;
    }
    
    .products-main-title {
        font-size: 28px;
    }
    
    .products-label {
        font-size: 11px;
        padding: 8px 20px;
    }
    
    .product-image-container {
        height: 240px;
    }
    
    .product-content {
        padding: 20px;
    }
    
    .product-title {
        font-size: 18px;
    }
    
    .product-excerpt {
        font-size: 14px;
    }
    
    .quick-view-btn {
        width: 48px;
        height: 48px;
    }
    
    .quick-view-btn i {
        font-size: 18px;
    }
}

