/* ==========================================================
   Featured Products
   Costa Power Industries Pvt Ltd
========================================================== */

.featured-products-section {
    position: relative;
    padding: 74px 0;
    background: #ffffff;
}

.featured-products-container {
    width: 90%;
    max-width: 1320px;
    margin: 0 auto;
}

.featured-products-heading {
    max-width: 760px;
    margin: 0 auto 42px;
    text-align: center;
}

.featured-products-label {
    display: inline-block;
    margin-bottom: 10px;
    color: #006aa9;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 1.3px;
    text-transform: uppercase;
}

.featured-products-heading h2 {
    margin: 0 0 14px;
    color: #12304a;
    font-size: 40px;
    line-height: 1.2;
    font-weight: 800;
}

.featured-products-heading p {
    margin: 0;
    color: #66798b;
    font-size: 16px;
    line-height: 1.7;
}

.featured-products-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px 24px;
    align-items: stretch;
}

.product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 1px solid #e3eaf1;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 12px 32px rgba(18, 48, 74, 0.08);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}

.product-card:hover {
    transform: translateY(-7px);
    border-color: #0a70b5;
    box-shadow: 0 20px 44px rgba(18, 74, 112, 0.16);
}

.product-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 5;
    max-width: calc(100% - 32px);
    padding: 7px 14px;
    border-radius: 30px;
    background: #006ba9;
    color: #ffffff;
    font-size: 12px;
    line-height: 1.2;
    font-weight: 800;
    white-space: nowrap;
    box-shadow: 0 5px 14px rgba(0, 75, 120, 0.16);
}

.sale-badge {
    background: #e1a000;
    color: #111111;
}

.service-badge {
    background: #118a56;
}

.product-image-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 280px;
    padding: 54px 24px 24px;
    overflow: hidden;
    background:
        radial-gradient(circle at center, #ffffff 0%, #f0f6fb 100%);
    text-decoration: none;
}

.product-image {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.35s ease;
}

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

.product-image-wrap img:not([src]),
.product-image-wrap img[src=""] {
    visibility: hidden;
}

.product-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 22px 20px 20px;
    border-top: 1px solid #edf1f5;
}

.product-category {
    display: block;
    margin-bottom: 10px;
    color: #0b70b5;
    font-size: 12px;
    line-height: 1.4;
    font-weight: 800;
    letter-spacing: 0.7px;
    text-transform: uppercase;
}

.product-content h3 {
    min-height: 52px;
    margin: 0 0 12px;
    color: #17354f;
    font-size: 18px;
    line-height: 1.42;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.product-content h3 a {
    color: #17354f;
    text-decoration: none;
    transition: color 0.25s ease;
}

.product-content h3 a:hover {
    color: #006ba9;
}

.product-rating {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 16px;
}

.product-rating span {
    color: #f2b500;
    font-size: 15px;
    line-height: 1;
    letter-spacing: 1px;
}

.product-rating small {
    color: #7a8b99;
    font-size: 12px;
    line-height: 1.4;
}

.product-price {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    min-height: 32px;
    margin-bottom: 20px;
}

.current-price {
    color: #0d2e48;
    font-size: 21px;
    line-height: 1.2;
    font-weight: 800;
}

.old-price {
    color: #9aa6b1;
    font-size: 14px;
    line-height: 1.2;
    text-decoration: line-through;
}

.product-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: auto;
}

.product-actions a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 48px;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.25;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
    overflow-wrap: anywhere;
    transition:
        background 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease;
}

.view-product-btn {
    background: #006ba9;
    color: #ffffff;
}

.quote-product-btn {
    border: 1px solid #006ba9;
    background: #ffffff;
    color: #006ba9;
}

.product-actions a:hover {
    transform: translateY(-2px);
}

.view-product-btn:hover {
    background: #004d7e;
}

.quote-product-btn:hover {
    border-color: #ffd33f;
    background: #ffd33f;
    color: #111111;
}

.featured-products-footer {
    margin-top: 40px;
    text-align: center;
}

.view-all-products-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 32px;
    border-radius: 8px;
    background: #ffd33f;
    color: #111111;
    font-size: 15px;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(224, 170, 0, 0.18);
    transition:
        transform 0.25s ease,
        background 0.25s ease;
}

.view-all-products-btn:hover {
    transform: translateY(-3px);
    background: #ffdf68;
}

/* ==========================================================
   Responsive
========================================================== */

@media (max-width: 1120px) {
    .featured-products-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 850px) {
    .featured-products-section {
        padding: 58px 0;
    }

    .featured-products-heading h2 {
        font-size: 34px;
    }

    .featured-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px 18px;
    }

    .product-image-wrap {
        height: 250px;
    }
}

@media (max-width: 560px) {
    .featured-products-section {
        padding: 46px 0;
    }

    .featured-products-container {
        width: 92%;
    }

    .featured-products-heading {
        margin-bottom: 32px;
    }

    .featured-products-heading h2 {
        font-size: 29px;
    }

    .featured-products-grid {
        grid-template-columns: 1fr;
    }

    .product-image-wrap {
        height: 260px;
    }

    .product-content h3 {
        min-height: auto;
    }

    .product-actions {
        grid-template-columns: 1fr;
    }
}