/* Category Header Section */
.category-header-section {
    background-color: var(--secondary-color);
    color: white;
    padding: 60px 0;
    margin-bottom: 50px;
}

.breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 20px;
}

.breadcrumb-item a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb-item a:hover {
    color: white;
}

.breadcrumb-item.active {
    color: white;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.5);
}

.category-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.category-description {
    max-width: 800px;
    font-size: 1.1rem;
    opacity: 0.9;
    margin-top: 15px;
}

/* Products Grid Section */
.products-grid-section {
    padding: 0 0 70px;
}

.product-card {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    height: 100%;
    transition: var(--transition);
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease forwards;
}

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

.product-image {
    position: relative;
    overflow: hidden;
    height: 220px;
}

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

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

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

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

.product-details {
    padding: 25px;
}

.product-details h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
    transition: var(--transition);
}

.product-card:hover .product-details h3 {
    color: var(--primary-color);
}

.product-features {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.product-features span {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    color: var(--grey-color);
}

.product-features i {
    color: var(--primary-color);
    margin-right: 8px;
    font-size: 0.9rem;
}

.btn-link {
    background: none;
    border: none;
    padding: 0;
    color: var(--primary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    transition: var(--transition);
    cursor: pointer;
    text-align: left;
}

.btn-link i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.btn-link:hover {
    color: var(--secondary-color);
}

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

/* Animation for staggered product card appearance */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Each product card gets a different animation delay */
.product-card:nth-child(1) {
    animation-delay: 0.1s;
}

.product-card:nth-child(2) {
    animation-delay: 0.2s;
}

.product-card:nth-child(3) {
    animation-delay: 0.3s;
}

.product-card:nth-child(4) {
    animation-delay: 0.4s;
}

.product-card:nth-child(5) {
    animation-delay: 0.5s;
}

/* Consultation Section */
.consultation-section {
    padding: 0 0 100px;
}

.consultation-box {
    background: linear-gradient(135deg, var(--secondary-color) 0%, black, var(--primary-color) 100%);
    padding: 50px;
    border-radius: var(--border-radius);
    color: white;
    box-shadow: var(--box-shadow);
}

.consultation-box h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.consultation-box p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 0;
}

.consultation-box .btn {
    padding: 12px 30px;
    font-weight: 600;
    background-color: white;
    color: var(--primary-color);
    border: none;
    transition: var(--transition);
}

.consultation-box .btn:hover {
    background-color: var(--accent-color);
    color: white;
    transform: translateY(-5px);
}

/* Product Modal Styles - UPDATED FOR WIDER, SHORTER DISPLAY */
.modal-content {
    border: none;
    border-radius: var(--border-radius);
    overflow: hidden;
}
/* Increase the modal width and adjust height */
.modal-dialog.modal-lg {
    max-width: 95%; /* Further increased width */
    width: 1200px; /* Wider fixed width */
    margin: 1.75rem auto;
}

.modal-header {
    background-color: var(--secondary-color);
    color: white;
    border-bottom: none;
    padding: 15px 30px; /* Reduced vertical padding */
}

.modal-title {
    font-weight: 600;
    font-size: 1.4rem;
}

.btn-close {
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

.modal-body {
    padding: 25px 40px; /* Reduced vertical padding */
}

.modal-image-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px; /* Reduced padding */
    /* background-color: #f5f5f5; */
    border-radius: var(--border-radius);
    overflow: hidden;
    height: 80%; /* Make sure container takes full height */
}

.modal-product-image {
    max-height: 280px; /* Reduced height */
    width: fit-content;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.modal-product-image:hover {
    transform: scale(1.05);
}

.modal-product-title {
    color: var(--secondary-color);
    margin-bottom: 10px; /* Reduced margin */
    font-size: 1.8rem; /* Slightly reduced */
}

.product-description {
    color: var(--grey-color);
    margin-bottom: 15px; /* Reduced margin */
    font-size: 1rem; /* Reduced slightly */
    line-height: 1.5;
    max-height: fit-content; /* Limit height */
    overflow-y: none; /* Add scrolling if needed */
}

.product-specs h4, .product-certifications h4 {
    color: var(--secondary-color);
    font-size: 1.2rem; /* Reduced slightly */
    margin-bottom: 10px; /* Reduced margin */
    margin-top: 5px;
}

.feature-list {
    padding-left: 20px;
    margin-bottom: 15px; /* Added to reduce space */
    max-height: 120px; /* Limit height */
    overflow-y: auto; /* Add scrolling if needed */
}

.feature-list li {
    margin-bottom: 8px; /* Reduced spacing */
    position: relative;
    font-size: 0.95rem; /* Reduced slightly */
}

.certification-badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.certification-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 15px; /* Reduced padding */
    background-color: #f5f5f5;
    border-radius: 30px;
    font-size: 0.9rem; /* Reduced */
    font-weight: 500;
}

.certification-badge i {
    margin-right: 6px;
    color: var(--success-color);
}

.modal-actions {
    margin-top: 20px; /* Reduced margin */
}

.modal-actions .btn {
    padding: 10px 20px; /* Reduced padding */
    font-weight: 500;
    font-size: 0.95rem; /* Reduced */
}

.download-spec {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.download-spec:hover {
    background-color: var(--primary-color);
    color: white;
}

.modal-dialog {
    left:6%;
}

/* Modal Animation */
.modal.fade .modal-dialog {
    transform: scale(0.95);
    opacity: 0;
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
}

.modal.show .modal-dialog {
    transform: scale(1);
    opacity: 1;
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .modal-dialog.modal-lg {
        max-width: 95%;
        width: auto;
    }
}

@media (max-width: 991px) {
    .category-header-section {
        padding: 50px 0;
    }
    
    .consultation-box {
        padding: 30px;
    }
    
    .consultation-box h2 {
        font-size: 1.8rem;
    }
    
    .modal-dialog.modal-lg {
        max-width: 95%;
    }
    
    .modal-body {
        padding: 30px;
    }
}

@media (max-width: 767px) {
    .category-title {
        font-size: 2rem;
    }
    
    .modal-product-image {
        max-height: 300px;
        margin-bottom: 20px;
    }
    
    .modal-body {
        padding: 25px;
    }
    
    .modal-product-title {
        font-size: 1.7rem;
    }
}

@media (max-width: 575px) {
    .category-header-section {
        padding: 40px 0;
        margin-bottom: 30px;
    }
    
    .category-title {
        font-size: 1.8rem;
    }
    
    .product-details {
        padding: 20px 15px;
    }
    
    .consultation-box {
        padding: 25px 20px;
        text-align: center;
    }
    
    .consultation-box .btn {
        margin-top: 15px;
    }
    
    .modal-actions .btn {
        display: block;
        width: 100%;
        margin-bottom: 10px;
        margin-right: 0 !important;
    }
    
    .modal-dialog.modal-lg {
        max-width: 98%;
        margin: 0.5rem auto;
    }
    
    .modal-body {
        padding: 20px 15px;
    }
}