/*===================================================
    Professional Product Portfolio Section
    Gapat Engineering Pvt. Ltd.
====================================================*/

.products-portfolio-section {
    position: relative;
    padding: 20px 0 20px;
    background-color: #f8fafc;
    border-top: 1px solid #eef2f6;
    border-bottom: 1px solid #eef2f6;
    overflow: hidden;
}

/* Header & Controls Wrap */
.products-header-wrap {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 40px;
    gap: 20px;
}

.products-portfolio-section .section-heading {
    margin-bottom: 0;
}

.products-portfolio-section .section-heading h3 {
    display: inline-block;
    color: var(--primary-color, #089fac);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    position: relative;
    padding-left: 45px;
    margin-bottom: 8px;
}

.products-portfolio-section .section-heading h3:before {
    background-color: var(--primary-color, #089fac);
    width: 35px;
    height: 2px;
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

.products-portfolio-section .section-heading h2 {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.28;
    color: var(--heading-color, #1e293b);
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.products-portfolio-section .section-heading p {
    font-size: 15.5px;
    color: #64748b;
    line-height: 1.65;
    margin: 0;
    max-width: 650px;
}

/* Header Carousel Arrows */
.products-slider-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.prod-nav-btn {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    color: var(--heading-color, #1e293b);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.04);
    transition: all 0.3s ease;
    user-select: none;
}

.prod-nav-btn:hover {
    background: var(--primary-color, #089fac);
    border-color: var(--primary-color, #089fac);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(8, 159, 172, 0.25);
}

.prod-nav-btn:active {
    transform: translateY(0);
}

/* ===================================================
   Product Cards
=================================================== */
.products-carousel-wrap {
    position: relative;
    padding-bottom: 30px;
}

.product-card-modern {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.product-card-modern:hover {
    transform: translateY(-6px);
    border-color: rgba(8, 159, 172, 0.35);
    box-shadow: 0 16px 36px rgba(8, 159, 172, 0.12);
}

/* Image Thumb Box */
.product-thumb-box {
    position: relative;
    width: 100%;
    height: 230px;
    overflow: hidden;
    background: #1a2734;
}

.product-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

.product-category-tag {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(26, 39, 52, 0.88);
    backdrop-filter: blur(6px);
    border-left: 3px solid var(--primary-color, #089fac);
    padding: 4px 10px;
    border-radius: 4px;
    color: #ffffff;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

/* Card Body */
.product-card-body {
    padding: 22px 22px 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-card-title {
    font-family: var(--primary-font, "Space Grotesk", sans-serif);
    font-size: 19px;
    font-weight: 700;
    color: var(--heading-color, #1e293b);
    line-height: 1.35;
    margin-bottom: 10px;
}

.product-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.product-card-title a:hover {
    color: var(--primary-color, #089fac);
}

.product-card-desc {
    font-size: 14px;
    line-height: 1.6;
    color: #64748b;
    margin-bottom: 16px;
    flex-grow: 1;
}

/* Spec Pills */
.product-specs-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.spec-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11.5px;
    font-weight: 600;
    color: #475569;
    background: #f1f5f9;
    padding: 4px 9px;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
}

.spec-pill i {
    color: var(--primary-color, #089fac);
    font-size: 13px;
}

/* Card Footer */
.product-card-footer {
    padding: 14px 22px;
    background: #fbfcfd;
    border-top: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.product-explore-link {
    font-family: var(--primary-font, "Space Grotesk", sans-serif);
    font-size: 13.5px;
    font-weight: 700;
    color: var(--primary-color, #089fac);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.product-explore-link i {
    font-size: 14px;
    transition: transform 0.3s ease;
}

.product-explore-link:hover {
    color: #067a84;
}

.product-explore-link:hover i {
    transform: translateX(4px);
}

.product-quick-rfq {
    font-size: 12.5px;
    font-weight: 600;
    color: #64748b;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s ease;
}

.product-quick-rfq:hover {
    color: var(--heading-color, #1e293b);
}

/* Swiper Pagination */
.products-carousel-wrap .project-pagination {
    position: relative;
    margin-top: 25px;
    text-align: center;
}

.products-carousel-wrap .swiper-pagination-bullet {
    width: 9px;
    height: 9px;
    background: #cbd5e1;
    opacity: 1;
    margin: 0 4px;
    transition: all 0.3s ease;
    border-radius: 6px;
}

.products-carousel-wrap .swiper-pagination-bullet-active {
    background: var(--primary-color, #089fac);
    width: 26px;
}

/* ===================================================
   Responsive Breakpoints
=================================================== */
@media (max-width: 991px) {
    .products-portfolio-section {
        padding: 65px 0 75px;
    }

    .products-header-wrap {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 30px;
    }

    .products-portfolio-section .section-heading h2 {
        font-size: 28px;
    }

    .product-thumb-box {
        height: 210px;
    }
}

@media (max-width: 575px) {
    .products-portfolio-section {
        padding: 50px 0 60px;
    }

    .products-portfolio-section .section-heading h2 {
        font-size: 24px;
        line-height: 1.3;
    }

    .product-thumb-box {
        height: 190px;
    }

    .product-card-body {
        padding: 18px 18px 14px;
    }

    .product-card-footer {
        padding: 12px 18px;
    }
}