/* ====================================
   Products Section - Grid Cards Modern
   Clean Grid Layout with Smooth Hover
   ==================================== */

/* Section Container */
.products-modern-section {
    position: relative;
    padding: 100px 0;
    background: #ffffff;
    overflow: hidden;
}

.products-bg-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        180deg,
        rgba(196, 38, 54, 0.02) 0%,
        rgba(255, 255, 255, 1) 40%,
        rgba(40, 102, 143, 0.02) 100%
    );
    z-index: 0;
}

.products-modern-section .container {
    position: relative;
    z-index: 1;
}

/* Section Header */
.products-header-modern {
    margin-bottom: 60px;
}

.mini-badge-modern {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(196, 38, 54, 0.08);
    border-radius: 50px;
    margin-bottom: 20px;
}

.badge-dot-modern {
    width: 8px;
    height: 8px;
    background: #c42636;
    border-radius: 50%;
    animation: pulse-dot-modern 2s ease-in-out infinite;
}

@keyframes pulse-dot-modern {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.3);
        opacity: 0.6;
    }
}

.badge-text-modern {
    color: #c42636;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.products-title-modern {
    font-size: 44px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 20px;
    line-height: 1.2;
}

.title-line-modern {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.line-accent {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #c42636, #28668f);
    border-radius: 2px;
}

/* Products Grid */
.products-grid-modern {
    margin-top: 40px;
}

/* Product Card */
.product-card-modern {
    position: relative;
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.4s ease;
    margin-bottom: 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card-modern:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(196, 38, 54, 0.15);
}

/* Card Image */
.card-image-wrapper {
    position: relative;
    height: 280px;
    overflow: hidden;
}

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

.product-img-modern {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.product-card-modern:hover .product-img-modern {
    transform: scale(1.1);
}

/* Placeholder Image */
.product-placeholder-img {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(196, 38, 54, 0.05), rgba(40, 102, 143, 0.05));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 30px;
    text-align: center;
}

.product-placeholder-img svg {
    color: rgba(196, 38, 54, 0.3);
    width: 80px;
    height: 80px;
}

.placeholder-text {
    color: #718096;
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    line-height: 1.4;
}

.image-overlay-modern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(196, 38, 54, 0.85),
        rgba(40, 102, 143, 0.85)
    );
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.4s ease;
}

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

.overlay-icon {
    width: 60px;
    height: 60px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c42636;
    transform: scale(0);
    transition: transform 0.3s ease 0.2s;
}

.product-card-modern:hover .overlay-icon {
    transform: scale(1);
}

.overlay-icon svg {
    width: 28px;
    height: 28px;
}

/* Badge */
.card-badge-modern {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #c42636, #28668f);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    z-index: 2;
    animation: float-badge-modern 3s ease-in-out infinite;
}

@keyframes float-badge-modern {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

.card-badge-modern svg {
    width: 20px;
    height: 20px;
}

/* Card Content */
.card-content-modern {
    padding: 28px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-name-modern {
    margin: 0 0 20px 0;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.4;
}

.product-name-modern a {
    color: #1a202c;
    text-decoration: none;
    transition: color 0.3s ease;
}

.product-name-modern a:hover {
    color: #c42636;
}

/* Button */
.product-btn-modern {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    background: linear-gradient(135deg, #c42636, #28668f);
    color: #ffffff;
    text-decoration: none;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.product-btn-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.4s ease;
}

.product-btn-modern:hover::before {
    left: 100%;
}

.product-btn-modern:hover {
    transform: translateX(-5px);
    box-shadow: 0 5px 20px rgba(196, 38, 54, 0.4);
    color: #ffffff;
}

.btn-arrow {
    transition: transform 0.3s ease;
}

.product-btn-modern:hover .btn-arrow {
    transform: translateX(5px);
}

[dir="rtl"] .product-btn-modern:hover {
    transform: translateX(5px);
}

[dir="rtl"] .product-btn-modern:hover .btn-arrow {
    transform: translateX(-5px);
}

/* Card Glow Effect */
.card-glow-modern {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 4px;
    background: linear-gradient(90deg, transparent, #c42636, #28668f, transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

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

/* Responsive Design */
@media (max-width: 1199px) {
    .card-image-wrapper {
        height: 260px;
    }
}

@media (max-width: 991px) {
    .products-modern-section {
        padding: 80px 0;
    }

    .products-title-modern {
        font-size: 36px;
    }

    .card-image-wrapper {
        height: 240px;
    }
}

@media (max-width: 767px) {
    .products-modern-section {
        padding: 60px 0;
    }

    .products-header-modern {
        margin-bottom: 40px;
    }

    .products-title-modern {
        font-size: 28px;
    }

    .card-image-wrapper {
        height: 220px;
    }

    .card-content-modern {
        padding: 20px;
    }

    .product-name-modern {
        font-size: 20px;
    }

    .product-card-modern {
        margin-bottom: 20px;
    }
}

/* Print Styles */
@media print {
    .products-modern-section {
        padding: 40px 0;
    }

    .card-badge-modern,
    .card-glow-modern,
    .products-bg-gradient {
        display: none;
    }
}
