/* ================================================== */
/* Modern Products Section Styles */
/* ================================================== */

.products-section {
    position: relative;
    padding: 80px 0;
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
}

.products-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(var(--primary-color-rgb, 0, 123, 255), 0.03) 0%, transparent 50%),
                radial-gradient(circle at 80% 50%, rgba(var(--secondary-color-rgb, 108, 117, 125), 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.product-card {
    height: 100%;
    margin-bottom: 30px;
}

.product-card-inner {
    position: relative;
    height: 100%;
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
}

.product-card-inner:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.product-image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
    background: #f8f9fa;
}

.product-image-container {
    position: relative;
    width: 100%;
    padding-top: 75%;
    overflow: hidden;
}

.product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.product-image-link:hover .product-image {
    transform: scale(1.1) rotate(2deg);
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

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

.product-link-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color, #007bff);
    font-size: 20px;
    z-index: 2;
    opacity: 0;
    transform: scale(0.8) rotate(-45deg);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-decoration: none;
}

.product-card-inner:hover .product-link-icon {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

.product-link-icon:hover {
    background: var(--primary-color, #007bff);
    color: #ffffff;
    transform: scale(1.1) rotate(45deg);
}

.product-content {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
}

.product-title {
    margin-bottom: 15px;
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.3;
}

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

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

.product-description {
    color: #666;
    line-height: 1.7;
    margin-bottom: 20px;
    flex: 1;
    font-size: 0.95rem;
}

.product-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-color, #007bff);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    width: fit-content;
}

.product-btn i {
    transition: transform 0.3s ease;
    font-size: 0.9rem;
}

.product-btn:hover {
    color: var(--primary-color, #007bff);
    gap: 15px;
}

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

.btn-view-all {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 15px 40px;
    background: linear-gradient(135deg, var(--primary-color, #007bff) 0%, var(--secondary-color, #6c757d) 100%);
    color: #ffffff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px 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 {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 123, 255, 0.4);
    gap: 20px;
}

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

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

/* Responsive Design */
@media (max-width: 991px) {
    .products-section {
        padding: 60px 0;
    }
    
    .product-card-inner {
        margin-bottom: 20px;
    }
    
    .product-content {
        padding: 25px;
    }
    
    .product-title {
        font-size: 1.3rem;
    }
}

@media (max-width: 767px) {
    .products-section {
        padding: 50px 0;
    }
    
    .product-content {
        padding: 20px;
    }
    
    .product-title {
        font-size: 1.2rem;
    }
    
    .product-description {
        font-size: 0.9rem;
    }
    
    .btn-view-all {
        padding: 12px 30px;
        font-size: 1rem;
    }
}

